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

Image * MergeImageLayers(Image *image,LayerMethod method,ExceptionInfo *exception)

{
  int iVar1;
  int iVar2;
  Image *pIVar3;
  size_t sVar4;
  int iVar5;
  MagickBooleanType MVar6;
  size_t sVar7;
  int iVar8;
  ssize_t sVar9;
  size_t sVar10;
  ssize_t sVar11;
  uint uVar12;
  uint uVar13;
  bool bVar14;
  size_t local_4c;
  size_t local_44;
  size_t local_40;
  ssize_t local_3c;
  ssize_t local_38;
  
  if (image == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");
  }
  if (image->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,
                  "MergeImageLayers");
  }
  if (image->debug != MagickFalse) {
    LogMagickEvent(TraceEvent,"MagickCore/layer.c","MergeImageLayers",0x7ae,"%s",image->filename);
  }
  if (exception == (ExceptionInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,
                  "MergeImageLayers");
  }
  if (exception->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,
                  "MergeImageLayers");
  }
  local_40 = (image->page).height;
  iVar5 = (image->page).x;
  iVar8 = (image->page).y;
  sVar7 = image->columns;
  sVar4 = (image->page).width;
  local_4c = image->rows;
  local_44 = sVar7;
  if (method == FlattenLayer) {
    if (sVar4 == 0) {
      sVar4 = sVar7;
      if (local_40 != 0) {
        local_3c = 0;
        local_38 = 0;
        local_4c = local_40;
        goto LAB_00100a5b;
      }
    }
    else {
      local_44 = sVar4;
      if (local_40 != 0) goto LAB_00100a44;
    }
    local_3c = 0;
    local_38 = 0;
    local_44 = sVar4;
LAB_00100be8:
    local_40 = local_3c + local_4c;
  }
  else {
    if (method == MosaicLayer) {
      if (sVar4 == 0) {
        sVar4 = sVar7;
      }
      pIVar3 = image;
      sVar9 = iVar8;
      sVar11 = iVar5;
      if (local_40 == 0) {
        local_40 = local_4c;
      }
      while( true ) {
        if ((int)sVar4 < (int)(sVar7 + sVar11)) {
          sVar4 = sVar7 + sVar11;
        }
        sVar7 = local_4c + sVar9;
        if ((int)(local_4c + sVar9) <= (int)local_40) {
          sVar7 = local_40;
        }
        pIVar3 = GetNextImageInList(pIVar3);
        local_40 = sVar7;
        if (pIVar3 == (Image *)0x0) break;
        sVar7 = pIVar3->columns;
        local_4c = pIVar3->rows;
        sVar9 = (pIVar3->page).y;
        sVar11 = (pIVar3->page).x;
      }
      if (sVar4 == 0) {
        local_44 = 0;
        if (sVar7 == 0) {
          local_4c = 0;
          local_3c = 0;
          local_38 = 0;
          sVar4 = 0;
          goto LAB_00100be8;
        }
      }
      else {
        local_44 = sVar4;
        if (sVar7 == 0) {
          local_4c = 0;
          local_3c = 0;
          local_38 = 0;
          goto LAB_00100be8;
        }
      }
LAB_00100a44:
      local_3c = 0;
      local_38 = 0;
      local_4c = local_40;
      sVar7 = sVar4;
      goto LAB_00100a5b;
    }
    pIVar3 = GetNextImageInList(image);
    local_38 = iVar5;
    local_3c = iVar8;
    while (pIVar3 != (Image *)0x0) {
      iVar1 = (pIVar3->page).x;
      if (iVar1 < local_38) {
        local_44 = local_44 + (local_38 - iVar1);
        local_38 = iVar1;
      }
      iVar2 = (pIVar3->page).y;
      if (iVar2 < local_3c) {
        local_4c = local_4c + (local_3c - iVar2);
        local_3c = iVar2;
      }
      sVar7 = (iVar1 + pIVar3->columns) - local_38;
      if ((int)sVar7 <= (int)local_44) {
        sVar7 = local_44;
      }
      sVar10 = (iVar2 + pIVar3->rows) - local_3c;
      if ((int)sVar10 <= (int)local_4c) {
        sVar10 = local_4c;
      }
      pIVar3 = GetNextImageInList(pIVar3);
      local_44 = sVar7;
      local_4c = sVar10;
    }
    if ((sVar4 == 0) && (sVar4 = local_44, -1 < local_38)) {
      sVar4 = local_38 + local_44;
    }
    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;
  }
  sVar7 = sVar4;
  if (method == TrimBoundsLayer) {
    sVar4 = GetImageListLength(image);
    if ((int)sVar4 < 1) {
      return (Image *)0x0;
    }
    uVar12 = 0;
    uVar13 = 0;
    while( true ) {
      (image->page).x = iVar5 - local_38;
      (image->page).y = iVar8 - local_3c;
      (image->page).width = local_44;
      (image->page).height = local_4c;
      MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);
      if (MVar6 == MagickFalse) {
        return (Image *)0x0;
      }
      image = GetNextImageInList(image);
      if (image == (Image *)0x0) break;
      bVar14 = 0xfffffffe < uVar12;
      uVar12 = uVar12 + 1;
      uVar13 = uVar13 + bVar14;
      if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {
        return (Image *)0x0;
      }
      iVar5 = (image->page).x;
      iVar8 = (image->page).y;
    }
    return (Image *)0x0;
  }
LAB_00100a5b:
  pIVar3 = CloneImage(image,local_44,local_4c,MagickTrue,exception);
  if (pIVar3 == (Image *)0x0) {
    return (Image *)0x0;
  }
  (pIVar3->background_color).alpha_trait = BlendPixelTrait;
  SetImageBackgroundColor(pIVar3,exception);
  (pIVar3->page).width = sVar7;
  (pIVar3->page).height = local_40;
  pIVar3->dispose = UndefinedDispose;
  (pIVar3->page).y = local_3c;
  (pIVar3->page).x = local_38;
  sVar4 = GetImageListLength(image);
  if (0 < (int)sVar4) {
    uVar12 = 0;
    uVar13 = 0;
    while( true ) {
      CompositeImage(pIVar3,image,image->compose,MagickTrue,(image->page).x - local_38,
                     (image->page).y - local_3c,exception);
      MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);
      if ((MVar6 == MagickFalse) || (image = GetNextImageInList(image), image == (Image *)0x0))
      break;
      bVar14 = 0xfffffffe < uVar12;
      uVar12 = uVar12 + 1;
      uVar13 = uVar13 + bVar14;
      if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {
        return pIVar3;
      }
      local_3c = (pIVar3->page).y;
      local_38 = (pIVar3->page).x;
    }
  }
  return pIVar3;
}



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

int MergeImageLayers(int param_1,int param_2,int param_3)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  uint uVar8;
  uint uVar9;
  int iVar10;
  bool bVar11;
  int local_4c;
  int local_44;
  int local_40;
  int local_3c;
  int local_38;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");
  }
  if (*(int *)(param_1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,
                  "MergeImageLayers");
  }
  if (*(int *)(param_1 + 0x3328) != 0) {
    LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,
                   param_1 + 0x318);
  }
  if (param_3 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,
                  "MergeImageLayers");
  }
  if (*(int *)(param_3 + 0x1c) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,
                  "MergeImageLayers");
  }
  local_40 = *(int *)(param_1 + 0x204);
  iVar3 = *(int *)(param_1 + 0x208);
  iVar4 = *(int *)(param_1 + 0x20c);
  iVar1 = *(int *)(param_1 + 0x18);
  iVar10 = *(int *)(param_1 + 0x200);
  local_4c = *(int *)(param_1 + 0x1c);
  local_44 = iVar1;
  if (param_2 == 0xe) {
    if (iVar10 == 0) {
      iVar10 = iVar1;
      if (local_40 != 0) {
        local_3c = 0;
        local_38 = 0;
        local_4c = local_40;
        goto LAB_00100a5b;
      }
    }
    else {
      local_44 = iVar10;
      if (local_40 != 0) goto LAB_00100a44;
    }
    local_3c = 0;
    local_38 = 0;
    local_44 = iVar10;
LAB_00100be8:
    local_40 = local_3c + local_4c;
  }
  else {
    if (param_2 == 0xf) {
      if (iVar10 == 0) {
        iVar10 = iVar1;
      }
      iVar5 = param_1;
      iVar6 = iVar4;
      iVar7 = iVar3;
      if (local_40 == 0) {
        local_40 = local_4c;
      }
      while( true ) {
        if (iVar10 < iVar1 + iVar7) {
          iVar10 = iVar1 + iVar7;
        }
        iVar1 = local_4c + iVar6;
        if (local_4c + iVar6 <= local_40) {
          iVar1 = local_40;
        }
        iVar5 = GetNextImageInList(iVar5);
        local_40 = iVar1;
        if (iVar5 == 0) break;
        iVar1 = *(int *)(iVar5 + 0x18);
        local_4c = *(int *)(iVar5 + 0x1c);
        iVar6 = *(int *)(iVar5 + 0x20c);
        iVar7 = *(int *)(iVar5 + 0x208);
      }
      if (iVar10 == 0) {
        local_44 = 0;
        if (iVar1 == 0) {
          local_4c = 0;
          local_3c = 0;
          local_38 = 0;
          iVar10 = 0;
          goto LAB_00100be8;
        }
      }
      else {
        local_44 = iVar10;
        if (iVar1 == 0) {
          local_4c = 0;
          local_3c = 0;
          local_38 = 0;
          goto LAB_00100be8;
        }
      }
LAB_00100a44:
      local_3c = 0;
      local_38 = 0;
      local_4c = local_40;
      iVar1 = iVar10;
      goto LAB_00100a5b;
    }
    iVar1 = GetNextImageInList(param_1);
    local_38 = iVar3;
    local_3c = iVar4;
    while (iVar1 != 0) {
      iVar5 = *(int *)(iVar1 + 0x208);
      if (iVar5 < local_38) {
        local_44 = local_44 + (local_38 - iVar5);
        local_38 = iVar5;
      }
      iVar6 = *(int *)(iVar1 + 0x20c);
      if (iVar6 < local_3c) {
        local_4c = local_4c + (local_3c - iVar6);
        local_3c = iVar6;
      }
      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;
      if (iVar5 <= local_44) {
        iVar5 = local_44;
      }
      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;
      if (iVar6 <= local_4c) {
        iVar6 = local_4c;
      }
      iVar1 = GetNextImageInList(iVar1);
      local_44 = iVar5;
      local_4c = iVar6;
    }
    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {
      iVar10 = local_38 + local_44;
    }
    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;
  }
  iVar1 = iVar10;
  if (param_2 == 0x10) {
    uVar2 = GetImageListLength(param_1);
    if ((int)uVar2 < 1) {
      return 0;
    }
    uVar8 = 0;
    uVar9 = 0;
    while( true ) {
      *(int *)(param_1 + 0x208) = iVar3 - local_38;
      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;
      *(int *)(param_1 + 0x200) = local_44;
      *(int *)(param_1 + 0x204) = local_4c;
      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);
      if (iVar3 == 0) {
        return 0;
      }
      param_1 = GetNextImageInList(param_1);
      if (param_1 == 0) break;
      bVar11 = 0xfffffffe < uVar8;
      uVar8 = uVar8 + 1;
      uVar9 = uVar9 + bVar11;
      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {
        return 0;
      }
      iVar3 = *(int *)(param_1 + 0x208);
      iVar4 = *(int *)(param_1 + 0x20c);
    }
    return 0;
  }
LAB_00100a5b:
  iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3);
  if (iVar3 == 0) {
    return 0;
  }
  *(undefined4 *)(iVar3 + 0x84) = 4;
  SetImageBackgroundColor(iVar3,param_3);
  *(int *)(iVar3 + 0x200) = iVar1;
  *(int *)(iVar3 + 0x204) = local_40;
  *(undefined4 *)(iVar3 + 0x240) = 0;
  *(int *)(iVar3 + 0x20c) = local_3c;
  *(int *)(iVar3 + 0x208) = local_38;
  uVar2 = GetImageListLength(param_1);
  if (0 < (int)uVar2) {
    uVar8 = 0;
    uVar9 = 0;
    while( true ) {
      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,
                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,
                     param_3);
      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);
      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;
      bVar11 = 0xfffffffe < uVar8;
      uVar8 = uVar8 + 1;
      uVar9 = uVar9 + bVar11;
      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {
        return iVar3;
      }
      local_3c = *(int *)(iVar3 + 0x20c);
      local_38 = *(int *)(iVar3 + 0x208);
    }
  }
  return iVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00039d70
ADD EBX,0x31d877
SUB ESP,0x3c
MOV EBP,dword ptr [ESP + 0x50]
TEST EBP,EBP
JZ 0x00100d31
CMP dword ptr [EBP + 0x3344],0xabacadab
JNZ 0x00100d50
MOV EAX,dword ptr [EBP + 0x3328]
TEST EAX,EAX
JNZ 0x00100bf8
MOV EAX,dword ptr [ESP + 0x58]
TEST EAX,EAX
JZ 0x00100d12
MOV EAX,dword ptr [ESP + 0x58]
CMP dword ptr [EAX + 0x1c],0xabacadab
JNZ 0x00100d6f
MOV EAX,dword ptr [EBP + 0x204]
MOV ESI,dword ptr [EBP + 0x208]
MOV ECX,dword ptr [EBP + 0x20c]
CMP dword ptr [ESP + 0x54],0xe
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EBP + 0x18]
MOV EDI,dword ptr [EBP + 0x200]
MOV dword ptr [ESP + 0x2c],ESI
MOV dword ptr [ESP + 0x28],ECX
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [EBP + 0x1c]
MOV dword ptr [ESP],EAX
JZ 0x00100bb8
CMP dword ptr [ESP + 0x54],0xf
JZ 0x001009c0
SUB ESP,0xc
PUSH EBP
CALL 0x000319e0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00100cf0
MOV ECX,dword ptr [ESP + 0x28]
MOV dword ptr [ESP + 0x14],EDI
MOV dword ptr [ESP + 0x50],EBP
MOV EBP,ESI
MOV EDI,ECX
LEA ESI,[ESI]
MOV ECX,dword ptr [EAX + 0x208]
CMP ECX,EBP
JGE 0x0010085a
SUB EBP,ECX
ADD dword ptr [ESP + 0x8],EBP
MOV EBP,ECX
MOV EDX,dword ptr [EAX + 0x20c]
CMP EDX,EDI
JGE 0x0010086b
SUB EDI,EDX
ADD dword ptr [ESP],EDI
MOV EDI,EDX
ADD ECX,dword ptr [EAX + 0x18]
SUB ECX,EBP
CMP ECX,dword ptr [ESP + 0x8]
MOV ESI,ECX
CMOVLE ESI,dword ptr [ESP + 0x8]
ADD EDX,dword ptr [EAX + 0x1c]
MOV dword ptr [ESP + 0x8],ESI
MOV ESI,dword ptr [ESP]
SUB EDX,EDI
CMP EDX,ESI
CMOVLE EDX,ESI
SUB ESP,0xc
MOV dword ptr [ESP + 0xc],EDX
PUSH EAX
CALL 0x000319e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00100848
MOV dword ptr [ESP + 0x10],EDI
MOV EDI,dword ptr [ESP + 0x14]
MOV dword ptr [ESP + 0x14],EBP
MOV EBP,dword ptr [ESP + 0x50]
TEST EDI,EDI
JNZ 0x001008c4
MOV EAX,dword ptr [ESP + 0x14]
TEST EAX,EAX
JNS 0x00100d05
MOV EDI,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JZ 0x00100c48
CMP dword ptr [ESP + 0x54],0x10
JNZ 0x00100a5b
SUB ESP,0xc
PUSH EBP
CALL 0x00032180
ADD ESP,0x10
TEST EAX,EAX
JLE 0x001009ac
MOV dword ptr [ESP + 0x18],EAX
SUB EAX,0x1
XOR EDX,EDX
MOV ECX,dword ptr [ESP + 0x28]
ADD EAX,0x1
MOV dword ptr [ESP + 0x1c],0x0
ADC EDX,0x0
MOV dword ptr [ESP + 0x20],EAX
XOR ESI,ESI
XOR EDI,EDI
LEA EAX,[EBX + 0xffeda8d6]
MOV dword ptr [ESP + 0x24],EDX
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x2c]
JMP 0x00100966
SUB ESP,0xc
PUSH EBP
CALL 0x000319e0
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x001009ac
MOV EDX,dword ptr [ESP + 0x20]
ADD ESI,0x1
MOV ECX,dword ptr [ESP + 0x24]
ADC EDI,0x0
MOV EAX,EDX
XOR EAX,ESI
XOR ECX,EDI
OR ECX,EAX
JZ 0x001009ac
MOV EAX,dword ptr [EBP + 0x208]
MOV ECX,dword ptr [EBP + 0x20c]
SUB EAX,dword ptr [ESP + 0x14]
SUB ESP,0x8
SUB ECX,dword ptr [ESP + 0x18]
MOV dword ptr [EBP + 0x208],EAX
MOV EAX,dword ptr [ESP + 0x10]
MOV dword ptr [EBP + 0x20c],ECX
MOV dword ptr [EBP + 0x200],EAX
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EBP + 0x204],EAX
PUSH dword ptr [ESP + 0x24]
PUSH dword ptr [ESP + 0x24]
PUSH EDI
PUSH ESI
PUSH dword ptr [ESP + 0x24]
PUSH EBP
CALL 0x00033840
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x00100930
ADD ESP,0x3c
XOR ECX,ECX
POP EBX
MOV EAX,ECX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0xc]
TEST EDI,EDI
MOV dword ptr [ESP + 0x50],EBP
CMOVZ EDI,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0x2c]
TEST EAX,EAX
CMOVZ EAX,ESI
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,EBP
MOV EBP,dword ptr [ESP + 0x8]
JMP 0x00100a02
MOV EDX,dword ptr [EAX + 0x208]
MOV ECX,dword ptr [EAX + 0x20c]
MOV EBP,dword ptr [EAX + 0x18]
MOV ESI,dword ptr [EAX + 0x1c]
ADD EBP,EDX
MOV EDX,dword ptr [ESP + 0xc]
CMP EBP,EDI
CMOVG EDI,EBP
ADD ESI,ECX
CMP ESI,EDX
CMOVLE ESI,EDX
SUB ESP,0xc
MOV dword ptr [ESP + 0x18],ESI
PUSH EAX
CALL 0x000319e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x001009f0
MOV EBP,dword ptr [ESP + 0x50]
TEST EDI,EDI
JZ 0x00100c90
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0x8],EDI
TEST EAX,EAX
JZ 0x00100c68
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0x10],0x0
MOV dword ptr [ESP + 0x14],0x0
MOV dword ptr [ESP],EAX
SUB ESP,0xc
PUSH dword ptr [ESP + 0x64]
PUSH 0x1
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x20]
PUSH EBP
CALL 0x00030b90
ADD ESP,0x20
TEST EAX,EAX
JZ 0x001009ac
MOV dword ptr [EAX + 0x84],0x4
SUB ESP,0x8
PUSH dword ptr [ESP + 0x60]
PUSH EAX
MOV dword ptr [ESP + 0x18],EAX
CALL 0x000330a0
MOV ECX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP + 0x1c]
MOV dword ptr [ECX + 0x200],EDI
MOV EDI,dword ptr [ESP + 0x20]
MOV dword ptr [ECX + 0x204],EAX
MOV EAX,dword ptr [ESP + 0x24]
MOV dword ptr [ECX + 0x240],0x0
MOV dword ptr [ECX + 0x20c],EDI
MOV dword ptr [ECX + 0x208],EAX
MOV dword ptr [ESP],EBP
CALL 0x00032180
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JLE 0x00100bab
MOV dword ptr [ESP],EAX
SUB EAX,0x1
XOR EDX,EDX
MOV ECX,dword ptr [ESP + 0x14]
ADD EAX,0x1
MOV dword ptr [ESP + 0x4],0x0
ADC EDX,0x0
MOV dword ptr [ESP + 0x18],EAX
XOR ESI,ESI
XOR EDI,EDI
MOV dword ptr [ESP + 0x1c],EDX
LEA EDX,[EBX + 0xffeda8d6]
MOV EAX,dword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0xc],EDX
JMP 0x00100b5a
SUB ESP,0xc
PUSH EBP
CALL 0x000319e0
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x00100ba7
MOV EDX,dword ptr [ESP + 0x18]
ADD ESI,0x1
MOV ECX,dword ptr [ESP + 0x1c]
ADC EDI,0x0
MOV EAX,EDX
XOR EAX,ESI
XOR ECX,EDI
OR ECX,EAX
JZ 0x00100ba7
MOV EDX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EDX + 0x20c]
MOV ECX,dword ptr [EDX + 0x208]
MOV EDX,dword ptr [EBP + 0x20c]
SUB ESP,0x4
PUSH dword ptr [ESP + 0x5c]
SUB EDX,EAX
PUSH EDX
MOV EAX,dword ptr [EBP + 0x208]
SUB EAX,ECX
PUSH EAX
PUSH 0x1
PUSH dword ptr [EBP + 0x23c]
PUSH EBP
PUSH dword ptr [ESP + 0x24]
CALL 0x000337f0
ADD ESP,0x18
PUSH dword ptr [ESP + 0xc]
PUSH dword ptr [ESP + 0xc]
PUSH EDI
PUSH ESI
PUSH dword ptr [ESP + 0x24]
PUSH EBP
CALL 0x00033840
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x00100b20
MOV ECX,dword ptr [ESP + 0x8]
ADD ESP,0x3c
MOV EAX,ECX
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST EDI,EDI
JNZ 0x00100c30
MOV EDX,dword ptr [ESP + 0xc]
TEST EDX,EDX
JNZ 0x00100cd0
MOV EDI,dword ptr [ESP + 0x8]
MOV EAX,EDI
MOV dword ptr [ESP + 0x10],0x0
MOV EDI,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0x14],0x0
MOV dword ptr [ESP + 0x8],EAX
XOR EAX,EAX
ADD EAX,dword ptr [ESP]
MOV dword ptr [ESP + 0xc],EAX
JMP 0x001008d0
LEA EAX,[EBP + 0x318]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xffed95ae]
PUSH EAX
LEA EAX,[EBX + 0xffeda994]
PUSH 0x7ae
PUSH EAX
LEA EAX,[EBX + 0xffeda7e3]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
ADD ESP,0x20
JMP 0x001007bc
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0x8],EDI
TEST EAX,EAX
JNZ 0x00100a44
JMP 0x00100bcc
MOV ESI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESP]
TEST ESI,ESI
MOV dword ptr [ESP + 0xc],EAX
JS 0x001008d0
MOV dword ptr [ESP + 0xc],EDI
JMP 0x00100cbf
MOV dword ptr [ESP],0x0
XOR EAX,EAX
MOV dword ptr [ESP + 0x10],0x0
MOV dword ptr [ESP + 0x14],0x0
JMP 0x00100be8
MOV ECX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0x8],0x0
TEST ECX,ECX
JNZ 0x00100a44
MOV EDI,dword ptr [ESP + 0xc]
MOV dword ptr [ESP],0x0
MOV dword ptr [ESP + 0x10],0x0
MOV dword ptr [ESP + 0x14],0x0
MOV EAX,dword ptr [ESP + 0x10]
JMP 0x00100be8
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0x10],0x0
MOV EDI,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0x14],0x0
MOV dword ptr [ESP],EAX
JMP 0x00100a5b
MOV EAX,dword ptr [ESP + 0x28]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x2c]
MOV dword ptr [ESP + 0x14],EAX
JMP 0x001008b0
MOV EDI,dword ptr [ESP + 0x14]
ADD EDI,dword ptr [ESP + 0x8]
JMP 0x001008c4
LEA EAX,[EBX + 0xffeda9a8]
PUSH EAX
LEA EAX,[EBX + 0xffeda7e3]
PUSH 0x7af
PUSH EAX
LEA EAX,[EBX + 0xffec1be4]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffeda9a8]
PUSH EAX
LEA EAX,[EBX + 0xffeda7e3]
PUSH 0x7ab
PUSH EAX
LEA EAX,[EBX + 0xffed9cf4]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffeda9a8]
PUSH EAX
LEA EAX,[EBX + 0xffeda7e3]
PUSH 0x7ac
PUSH EAX
LEA EAX,[EBX + 0xffecc4b8]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffeda9a8]
PUSH EAX
LEA EAX,[EBX + 0xffeda7e3]
PUSH 0x7b0
PUSH EAX
LEA EAX,[EBX + 0xffec29d4]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint MergeImageLayers(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  bool bVar11;\n  int local_4c;\n  int local_44;\n  int local_40;\n  int local_3c;\n  int local_38;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);\n  }\n  if (param_3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }\n  if (*(int *)(param_3 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }\n  local_40 = *(int *)(param_1 + 0x204);\n  iVar3 = *(int *)(param_1 + 0x208);\n  iVar4 = *(int *)(param_1 + 0x20c);\n  iVar1 = *(int *)(param_1 + 0x18);\n  iVar10 = *(int *)(param_1 + 0x200);\n  local_4c = *(int *)(param_1 + 0x1c);\n  local_44 = iVar1;\n  if (param_2 == 0xe) {\n    if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = iVar10;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }\n  else {\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }\n  iVar1 = iVar10;\n  if (param_2 == 0x10) {\n    uVar2 = GetImageListLength(param_1);\n    if ((int)uVar2 < 1) {\n      return 0;\n    }\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }\n    return 0;\n  }\nLAB_00100a5b:\n  iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  *(undefined4 *)(iVar3 + 0x84) = 4;\n  SetImageBackgroundColor(iVar3,param_3);\n  *(int *)(iVar3 + 0x200) = iVar1;\n  *(int *)(iVar3 + 0x204) = local_40;\n  *(undefined4 *)(iVar3 + 0x240) = 0;\n  *(int *)(iVar3 + 0x20c) = local_3c;\n  *(int *)(iVar3 + 0x208) = local_38;\n  uVar2 = GetImageListLength(param_1);\n  if (0 < (int)uVar2) {\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int MergeImageLayers(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  bool bVar11;\n  int local_4c;\n  int local_44;\n  int local_40;\n  int local_3c;\n  int local_38;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);\n  }\n  if (param_3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }\n  if (*(int *)(param_3 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }\n  local_40 = *(int *)(param_1 + 0x204);\n  iVar3 = *(int *)(param_1 + 0x208);\n  iVar4 = *(int *)(param_1 + 0x20c);\n  iVar1 = *(int *)(param_1 + 0x18);\n  iVar10 = *(int *)(param_1 + 0x200);\n  local_4c = *(int *)(param_1 + 0x1c);\n  local_44 = iVar1;\n  if (param_2 == 0xe) {\n    if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = iVar10;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }\n  else {\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }\n  iVar1 = iVar10;\n  if (param_2 == 0x10) {\n    uVar2 = GetImageListLength(param_1);\n    if ((int)uVar2 < 1) {\n      return 0;\n    }\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }\n    return 0;\n  }\nLAB_00100a5b:\n  iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  *(undefined4 *)(iVar3 + 0x84) = 4;\n  SetImageBackgroundColor(iVar3,param_3);\n  *(int *)(iVar3 + 0x200) = iVar1;\n  *(int *)(iVar3 + 0x204) = local_40;\n  *(undefined4 *)(iVar3 + 0x240) = 0;\n  *(int *)(iVar3 + 0x20c) = local_3c;\n  *(int *)(iVar3 + 0x208) = local_38;\n  uVar2 = GetImageListLength(param_1);\n  if (0 < (int)uVar2) {\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }\n  }\n  return iVar3;\n}" primitive_type (function_declarator "MergeImageLayers(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  bool bVar11;\n  int local_4c;\n  int local_44;\n  int local_40;\n  int local_3c;\n  int local_38;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);\n  }\n  if (param_3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }\n  if (*(int *)(param_3 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }\n  local_40 = *(int *)(param_1 + 0x204);\n  iVar3 = *(int *)(param_1 + 0x208);\n  iVar4 = *(int *)(param_1 + 0x20c);\n  iVar1 = *(int *)(param_1 + 0x18);\n  iVar10 = *(int *)(param_1 + 0x200);\n  local_4c = *(int *)(param_1 + 0x1c);\n  local_44 = iVar1;\n  if (param_2 == 0xe) {\n    if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = iVar10;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }\n  else {\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }\n  iVar1 = iVar10;\n  if (param_2 == 0x10) {\n    uVar2 = GetImageListLength(param_1);\n    if ((int)uVar2 < 1) {\n      return 0;\n    }\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }\n    return 0;\n  }\nLAB_00100a5b:\n  iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  *(undefined4 *)(iVar3 + 0x84) = 4;\n  SetImageBackgroundColor(iVar3,param_3);\n  *(int *)(iVar3 + 0x200) = iVar1;\n  *(int *)(iVar3 + 0x204) = local_40;\n  *(undefined4 *)(iVar3 + 0x240) = 0;\n  *(int *)(iVar3 + 0x20c) = local_3c;\n  *(int *)(iVar3 + 0x208) = local_38;\n  uVar2 = GetImageListLength(param_1);\n  if (0 < (int)uVar2) {\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }\n  }\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier 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 "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "bool bVar11;" primitive_type identifier ;) (declaration "int local_4c;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "int local_38;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers")" identifier (argument_list "("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""MergeImageLayers"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3344) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" * (cast_expression "(int *)(param_1 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3344)" ( (binary_expression "param_1 + 0x3344" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }" { comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""MergeImageLayers"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3328) != 0)" ( (binary_expression "*(int *)(param_1 + 0x3328) != 0" (pointer_expression "*(int *)(param_1 + 0x3328)" * (cast_expression "(int *)(param_1 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3328)" ( (binary_expression "param_1 + 0x3328" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318)" ( number_literal , (string_literal ""MagickCore/layer.c"" " string_content ") , (string_literal ""MergeImageLayers"" " string_content ") , number_literal , (pointer_expression "&DAT_002f75ae" & identifier) , (binary_expression "param_1 + 0x318" identifier + number_literal) ))) ;) })) (if_statement "if (param_3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""MergeImageLayers"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_3 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0x1c) != -0x54535255)" ( (binary_expression "*(int *)(param_3 + 0x1c) != -0x54535255" (pointer_expression "*(int *)(param_3 + 0x1c)" * (cast_expression "(int *)(param_3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }" { comment (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers")" identifier (argument_list "("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers")" ( (string_literal ""exception->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""MergeImageLayers"" " string_content ") ))) ;) })) (expression_statement "local_40 = *(int *)(param_1 + 0x204);" (assignment_expression "local_40 = *(int *)(param_1 + 0x204)" identifier = (pointer_expression "*(int *)(param_1 + 0x204)" * (cast_expression "(int *)(param_1 + 0x204)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x204)" ( (binary_expression "param_1 + 0x204" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x208);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x208)" identifier = (pointer_expression "*(int *)(param_1 + 0x208)" * (cast_expression "(int *)(param_1 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x208)" ( (binary_expression "param_1 + 0x208" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x20c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x20c)" identifier = (pointer_expression "*(int *)(param_1 + 0x20c)" * (cast_expression "(int *)(param_1 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20c)" ( (binary_expression "param_1 + 0x20c" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "iVar10 = *(int *)(param_1 + 0x200);" (assignment_expression "iVar10 = *(int *)(param_1 + 0x200)" identifier = (pointer_expression "*(int *)(param_1 + 0x200)" * (cast_expression "(int *)(param_1 + 0x200)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x200)" ( (binary_expression "param_1 + 0x200" identifier + number_literal) ))))) ;) (expression_statement "local_4c = *(int *)(param_1 + 0x1c);" (assignment_expression "local_4c = *(int *)(param_1 + 0x1c)" identifier = (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "local_44 = iVar1;" (assignment_expression "local_44 = iVar1" identifier = identifier) ;) (if_statement "if (param_2 == 0xe) {\n    if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = iVar10;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }\n  else {\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }" if (parenthesized_expression "(param_2 == 0xe)" ( (binary_expression "param_2 == 0xe" identifier == number_literal) )) (compound_statement "{\n    if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = iVar10;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }" { (if_statement "if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }" { (expression_statement "iVar10 = iVar1;" (assignment_expression "iVar10 = iVar1" identifier = identifier) ;) (if_statement "if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }" if (parenthesized_expression "(local_40 != 0)" ( (binary_expression "local_40 != 0" identifier != number_literal) )) (compound_statement "{\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }" { (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_4c = local_40;" (assignment_expression "local_4c = local_40" identifier = identifier) ;) (goto_statement "goto LAB_00100a5b;" goto statement_identifier ;) })) }) (else_clause "else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }" else (compound_statement "{\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }" { (expression_statement "local_44 = iVar10;" (assignment_expression "local_44 = iVar10" identifier = identifier) ;) (if_statement "if (local_40 != 0) goto LAB_00100a44;" if (parenthesized_expression "(local_40 != 0)" ( (binary_expression "local_40 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00100a44;" goto statement_identifier ;)) }))) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_44 = iVar10;" (assignment_expression "local_44 = iVar10" identifier = identifier) ;) (labeled_statement "LAB_00100be8:\n    local_40 = local_3c + local_4c;" statement_identifier : (expression_statement "local_40 = local_3c + local_4c;" (assignment_expression "local_40 = local_3c + local_4c" identifier = (binary_expression "local_3c + local_4c" identifier + identifier)) ;)) }) (else_clause "else {\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }" else (compound_statement "{\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }" { (if_statement "if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }" if (parenthesized_expression "(param_2 == 0xf)" ( (binary_expression "param_2 == 0xf" identifier == number_literal) )) (compound_statement "{\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }" { (if_statement "if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar10 = iVar1;\n      }" { (expression_statement "iVar10 = iVar1;" (assignment_expression "iVar10 = iVar1" identifier = identifier) ;) })) (expression_statement "iVar5 = param_1;" (assignment_expression "iVar5 = param_1" identifier = identifier) ;) (expression_statement "iVar6 = iVar4;" (assignment_expression "iVar6 = iVar4" identifier = identifier) ;) (expression_statement "iVar7 = iVar3;" (assignment_expression "iVar7 = iVar3" identifier = identifier) ;) (if_statement "if (local_40 == 0) {\n        local_40 = local_4c;\n      }" if (parenthesized_expression "(local_40 == 0)" ( (binary_expression "local_40 == 0" identifier == number_literal) )) (compound_statement "{\n        local_40 = local_4c;\n      }" { (expression_statement "local_40 = local_4c;" (assignment_expression "local_40 = local_4c" identifier = identifier) ;) })) (while_statement "while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }" { (if_statement "if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }" if (parenthesized_expression "(iVar10 < iVar1 + iVar7)" ( (binary_expression "iVar10 < iVar1 + iVar7" identifier < (binary_expression "iVar1 + iVar7" identifier + identifier)) )) (compound_statement "{\n          iVar10 = iVar1 + iVar7;\n        }" { (expression_statement "iVar10 = iVar1 + iVar7;" (assignment_expression "iVar10 = iVar1 + iVar7" identifier = (binary_expression "iVar1 + iVar7" identifier + identifier)) ;) })) (expression_statement "iVar1 = local_4c + iVar6;" (assignment_expression "iVar1 = local_4c + iVar6" identifier = (binary_expression "local_4c + iVar6" identifier + identifier)) ;) (if_statement "if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }" if (parenthesized_expression "(local_4c + iVar6 <= local_40)" ( (binary_expression "local_4c + iVar6 <= local_40" (binary_expression "local_4c + iVar6" identifier + identifier) <= identifier) )) (compound_statement "{\n          iVar1 = local_40;\n        }" { (expression_statement "iVar1 = local_40;" (assignment_expression "iVar1 = local_40" identifier = identifier) ;) })) (expression_statement "iVar5 = GetNextImageInList(iVar5);" (assignment_expression "iVar5 = GetNextImageInList(iVar5)" identifier = (call_expression "GetNextImageInList(iVar5)" identifier (argument_list "(iVar5)" ( identifier )))) ;) (expression_statement "local_40 = iVar1;" (assignment_expression "local_40 = iVar1" identifier = identifier) ;) (if_statement "if (iVar5 == 0) break;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *(int *)(iVar5 + 0x18);" (assignment_expression "iVar1 = *(int *)(iVar5 + 0x18)" identifier = (pointer_expression "*(int *)(iVar5 + 0x18)" * (cast_expression "(int *)(iVar5 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "local_4c = *(int *)(iVar5 + 0x1c);" (assignment_expression "local_4c = *(int *)(iVar5 + 0x1c)" identifier = (pointer_expression "*(int *)(iVar5 + 0x1c)" * (cast_expression "(int *)(iVar5 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(iVar5 + 0x20c);" (assignment_expression "iVar6 = *(int *)(iVar5 + 0x20c)" identifier = (pointer_expression "*(int *)(iVar5 + 0x20c)" * (cast_expression "(int *)(iVar5 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20c)" ( (binary_expression "iVar5 + 0x20c" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = *(int *)(iVar5 + 0x208);" (assignment_expression "iVar7 = *(int *)(iVar5 + 0x208)" identifier = (pointer_expression "*(int *)(iVar5 + 0x208)" * (cast_expression "(int *)(iVar5 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x208)" ( (binary_expression "iVar5 + 0x208" identifier + number_literal) ))))) ;) })) (if_statement "if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }" { (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }" { (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00100be8;" goto statement_identifier ;) })) }) (else_clause "else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }" else (compound_statement "{\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }" { (expression_statement "local_44 = iVar10;" (assignment_expression "local_44 = iVar10" identifier = identifier) ;) (if_statement "if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }" { (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00100be8;" goto statement_identifier ;) })) }))) (labeled_statement "LAB_00100a44:\n      local_3c = 0;" statement_identifier : (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;)) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_4c = local_40;" (assignment_expression "local_4c = local_40" identifier = identifier) ;) (expression_statement "iVar1 = iVar10;" (assignment_expression "iVar1 = iVar10" identifier = identifier) ;) (goto_statement "goto LAB_00100a5b;" goto statement_identifier ;) })) (expression_statement "iVar1 = GetNextImageInList(param_1);" (assignment_expression "iVar1 = GetNextImageInList(param_1)" identifier = (call_expression "GetNextImageInList(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "local_38 = iVar3;" (assignment_expression "local_38 = iVar3" identifier = identifier) ;) (expression_statement "local_3c = iVar4;" (assignment_expression "local_3c = iVar4" identifier = identifier) ;) (while_statement "while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }" { (expression_statement "iVar5 = *(int *)(iVar1 + 0x208);" (assignment_expression "iVar5 = *(int *)(iVar1 + 0x208)" identifier = (pointer_expression "*(int *)(iVar1 + 0x208)" * (cast_expression "(int *)(iVar1 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x208)" ( (binary_expression "iVar1 + 0x208" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }" if (parenthesized_expression "(iVar5 < local_38)" ( (binary_expression "iVar5 < local_38" identifier < identifier) )) (compound_statement "{\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }" { (expression_statement "local_44 = local_44 + (local_38 - iVar5);" (assignment_expression "local_44 = local_44 + (local_38 - iVar5)" identifier = (binary_expression "local_44 + (local_38 - iVar5)" identifier + (parenthesized_expression "(local_38 - iVar5)" ( (binary_expression "local_38 - iVar5" identifier - identifier) )))) ;) (expression_statement "local_38 = iVar5;" (assignment_expression "local_38 = iVar5" identifier = identifier) ;) })) (expression_statement "iVar6 = *(int *)(iVar1 + 0x20c);" (assignment_expression "iVar6 = *(int *)(iVar1 + 0x20c)" identifier = (pointer_expression "*(int *)(iVar1 + 0x20c)" * (cast_expression "(int *)(iVar1 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20c)" ( (binary_expression "iVar1 + 0x20c" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }" if (parenthesized_expression "(iVar6 < local_3c)" ( (binary_expression "iVar6 < local_3c" identifier < identifier) )) (compound_statement "{\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }" { (expression_statement "local_4c = local_4c + (local_3c - iVar6);" (assignment_expression "local_4c = local_4c + (local_3c - iVar6)" identifier = (binary_expression "local_4c + (local_3c - iVar6)" identifier + (parenthesized_expression "(local_3c - iVar6)" ( (binary_expression "local_3c - iVar6" identifier - identifier) )))) ;) (expression_statement "local_3c = iVar6;" (assignment_expression "local_3c = iVar6" identifier = identifier) ;) })) (expression_statement "iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;" (assignment_expression "iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38" identifier = (binary_expression "(iVar5 + *(int *)(iVar1 + 0x18)) - local_38" (parenthesized_expression "(iVar5 + *(int *)(iVar1 + 0x18))" ( (binary_expression "iVar5 + *(int *)(iVar1 + 0x18)" identifier + (pointer_expression "*(int *)(iVar1 + 0x18)" * (cast_expression "(int *)(iVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) ))))) )) - identifier)) ;) (if_statement "if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }" if (parenthesized_expression "(iVar5 <= local_44)" ( (binary_expression "iVar5 <= local_44" identifier <= identifier) )) (compound_statement "{\n        iVar5 = local_44;\n      }" { (expression_statement "iVar5 = local_44;" (assignment_expression "iVar5 = local_44" identifier = identifier) ;) })) (expression_statement "iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;" (assignment_expression "iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c" identifier = (binary_expression "(iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c" (parenthesized_expression "(iVar6 + *(int *)(iVar1 + 0x1c))" ( (binary_expression "iVar6 + *(int *)(iVar1 + 0x1c)" identifier + (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) ))))) )) - identifier)) ;) (if_statement "if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }" if (parenthesized_expression "(iVar6 <= local_4c)" ( (binary_expression "iVar6 <= local_4c" identifier <= identifier) )) (compound_statement "{\n        iVar6 = local_4c;\n      }" { (expression_statement "iVar6 = local_4c;" (assignment_expression "iVar6 = local_4c" identifier = identifier) ;) })) (expression_statement "iVar1 = GetNextImageInList(iVar1);" (assignment_expression "iVar1 = GetNextImageInList(iVar1)" identifier = (call_expression "GetNextImageInList(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "local_44 = iVar5;" (assignment_expression "local_44 = iVar5" identifier = identifier) ;) (expression_statement "local_4c = iVar6;" (assignment_expression "local_4c = iVar6" identifier = identifier) ;) })) (if_statement "if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }" if (parenthesized_expression "((iVar10 == 0) && (iVar10 = local_44, -1 < local_38))" ( (binary_expression "(iVar10 == 0) && (iVar10 = local_44, -1 < local_38)" (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar10 = local_44, -1 < local_38)" ( (comma_expression "iVar10 = local_44, -1 < local_38" (assignment_expression "iVar10 = local_44" identifier = identifier) , (binary_expression "-1 < local_38" number_literal < identifier)) ))) )) (compound_statement "{\n      iVar10 = local_38 + local_44;\n    }" { (expression_statement "iVar10 = local_38 + local_44;" (assignment_expression "iVar10 = local_38 + local_44" identifier = (binary_expression "local_38 + local_44" identifier + identifier)) ;) })) (if_statement "if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;" if (parenthesized_expression "((local_40 == 0) && (local_40 = local_4c, -1 < local_3c))" ( (binary_expression "(local_40 == 0) && (local_40 = local_4c, -1 < local_3c)" (parenthesized_expression "(local_40 == 0)" ( (binary_expression "local_40 == 0" identifier == number_literal) )) && (parenthesized_expression "(local_40 = local_4c, -1 < local_3c)" ( (comma_expression "local_40 = local_4c, -1 < local_3c" (assignment_expression "local_40 = local_4c" identifier = identifier) , (binary_expression "-1 < local_3c" number_literal < identifier)) ))) )) (goto_statement "goto LAB_00100be8;" goto statement_identifier ;)) }))) (expression_statement "iVar1 = iVar10;" (assignment_expression "iVar1 = iVar10" identifier = identifier) ;) (if_statement "if (param_2 == 0x10) {\n    uVar2 = GetImageListLength(param_1);\n    if ((int)uVar2 < 1) {\n      return 0;\n    }\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0x10)" ( (binary_expression "param_2 == 0x10" identifier == number_literal) )) (compound_statement "{\n    uVar2 = GetImageListLength(param_1);\n    if ((int)uVar2 < 1) {\n      return 0;\n    }\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }\n    return 0;\n  }" { (expression_statement "uVar2 = GetImageListLength(param_1);" (assignment_expression "uVar2 = GetImageListLength(param_1)" identifier = (call_expression "GetImageListLength(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if ((int)uVar2 < 1) {\n      return 0;\n    }" if (parenthesized_expression "((int)uVar2 < 1)" ( (binary_expression "(int)uVar2 < 1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }" { (expression_statement "*(int *)(param_1 + 0x208) = iVar3 - local_38;" (assignment_expression "*(int *)(param_1 + 0x208) = iVar3 - local_38" (pointer_expression "*(int *)(param_1 + 0x208)" * (cast_expression "(int *)(param_1 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x208)" ( (binary_expression "param_1 + 0x208" identifier + number_literal) )))) = (binary_expression "iVar3 - local_38" identifier - identifier)) ;) (expression_statement "*(int *)(param_1 + 0x20c) = iVar4 - local_3c;" (assignment_expression "*(int *)(param_1 + 0x20c) = iVar4 - local_3c" (pointer_expression "*(int *)(param_1 + 0x20c)" * (cast_expression "(int *)(param_1 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20c)" ( (binary_expression "param_1 + 0x20c" identifier + number_literal) )))) = (binary_expression "iVar4 - local_3c" identifier - identifier)) ;) (expression_statement "*(int *)(param_1 + 0x200) = local_44;" (assignment_expression "*(int *)(param_1 + 0x200) = local_44" (pointer_expression "*(int *)(param_1 + 0x200)" * (cast_expression "(int *)(param_1 + 0x200)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x200)" ( (binary_expression "param_1 + 0x200" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x204) = local_4c;" (assignment_expression "*(int *)(param_1 + 0x204) = local_4c" (pointer_expression "*(int *)(param_1 + 0x204)" * (cast_expression "(int *)(param_1 + 0x204)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x204)" ( (binary_expression "param_1 + 0x204" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);" (assignment_expression "iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" identifier = (call_expression "SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" identifier (argument_list "(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" ( identifier , (string_literal ""Merge/Layers"" " string_content ") , identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1 = GetNextImageInList(param_1);" (assignment_expression "param_1 = GetNextImageInList(param_1)" identifier = (call_expression "GetNextImageInList(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (param_1 == 0) break;" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "bVar11 = 0xfffffffe < uVar8;" (assignment_expression "bVar11 = 0xfffffffe < uVar8" identifier = (binary_expression "0xfffffffe < uVar8" number_literal < identifier)) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar9 = uVar9 + bVar11;" (assignment_expression "uVar9 = uVar9 + bVar11" identifier = (binary_expression "uVar9 + bVar11" identifier + identifier)) ;) (if_statement "if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }" if (parenthesized_expression "(0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8)" ( (binary_expression "0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8" (binary_expression "0xfffffffe < uVar2 - 1 == uVar9" (binary_expression "0xfffffffe < uVar2 - 1" number_literal < (binary_expression "uVar2 - 1" identifier - number_literal)) == identifier) && (binary_expression "uVar2 == uVar8" identifier == identifier)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = *(int *)(param_1 + 0x208);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x208)" identifier = (pointer_expression "*(int *)(param_1 + 0x208)" * (cast_expression "(int *)(param_1 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x208)" ( (binary_expression "param_1 + 0x208" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x20c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x20c)" identifier = (pointer_expression "*(int *)(param_1 + 0x20c)" * (cast_expression "(int *)(param_1 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20c)" ( (binary_expression "param_1 + 0x20c" identifier + number_literal) ))))) ;) })) (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_00100a5b:\n  iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3);" statement_identifier : (expression_statement "iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3);" (assignment_expression "iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3)" identifier = (call_expression "CloneImage(param_1,local_44,local_4c,1,param_3)" identifier (argument_list "(param_1,local_44,local_4c,1,param_3)" ( identifier , identifier , identifier , number_literal , identifier )))) ;)) (if_statement "if (iVar3 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined4 *)(iVar3 + 0x84) = 4;" (assignment_expression "*(undefined4 *)(iVar3 + 0x84) = 4" (pointer_expression "*(undefined4 *)(iVar3 + 0x84)" * (cast_expression "(undefined4 *)(iVar3 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x84)" ( (binary_expression "iVar3 + 0x84" identifier + number_literal) )))) = number_literal) ;) (expression_statement "SetImageBackgroundColor(iVar3,param_3);" (call_expression "SetImageBackgroundColor(iVar3,param_3)" identifier (argument_list "(iVar3,param_3)" ( identifier , identifier ))) ;) (expression_statement "*(int *)(iVar3 + 0x200) = iVar1;" (assignment_expression "*(int *)(iVar3 + 0x200) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x200)" * (cast_expression "(int *)(iVar3 + 0x200)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x200)" ( (binary_expression "iVar3 + 0x200" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar3 + 0x204) = local_40;" (assignment_expression "*(int *)(iVar3 + 0x204) = local_40" (pointer_expression "*(int *)(iVar3 + 0x204)" * (cast_expression "(int *)(iVar3 + 0x204)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x204)" ( (binary_expression "iVar3 + 0x204" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x240) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x240) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x240)" * (cast_expression "(undefined4 *)(iVar3 + 0x240)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x240)" ( (binary_expression "iVar3 + 0x240" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar3 + 0x20c) = local_3c;" (assignment_expression "*(int *)(iVar3 + 0x20c) = local_3c" (pointer_expression "*(int *)(iVar3 + 0x20c)" * (cast_expression "(int *)(iVar3 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20c)" ( (binary_expression "iVar3 + 0x20c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar3 + 0x208) = local_38;" (assignment_expression "*(int *)(iVar3 + 0x208) = local_38" (pointer_expression "*(int *)(iVar3 + 0x208)" * (cast_expression "(int *)(iVar3 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x208)" ( (binary_expression "iVar3 + 0x208" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = GetImageListLength(param_1);" (assignment_expression "uVar2 = GetImageListLength(param_1)" identifier = (call_expression "GetImageListLength(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (0 < (int)uVar2) {\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }\n  }" if (parenthesized_expression "(0 < (int)uVar2)" ( (binary_expression "0 < (int)uVar2" number_literal < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }" { (expression_statement "CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);" (call_expression "CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3)" identifier (argument_list "(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3)" ( identifier , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x23c)" * (cast_expression "(undefined4 *)(param_1 + 0x23c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x23c)" ( (binary_expression "param_1 + 0x23c" identifier + number_literal) )))) , number_literal , (binary_expression "*(int *)(param_1 + 0x208) - local_38" (pointer_expression "*(int *)(param_1 + 0x208)" * (cast_expression "(int *)(param_1 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x208)" ( (binary_expression "param_1 + 0x208" identifier + number_literal) )))) - identifier) , (binary_expression "*(int *)(param_1 + 0x20c) - local_3c" (pointer_expression "*(int *)(param_1 + 0x20c)" * (cast_expression "(int *)(param_1 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20c)" ( (binary_expression "param_1 + 0x20c" identifier + number_literal) )))) - identifier) , identifier ))) ;) (expression_statement "iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);" (assignment_expression "iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" identifier = (call_expression "SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" identifier (argument_list "(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" ( identifier , (string_literal ""Merge/Layers"" " string_content ") , identifier , identifier , identifier , number_literal )))) ;) (if_statement "if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;" if (parenthesized_expression "((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0))" ( (binary_expression "(iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_1 = GetNextImageInList(param_1), param_1 == 0)" ( (comma_expression "param_1 = GetNextImageInList(param_1), param_1 == 0" (assignment_expression "param_1 = GetNextImageInList(param_1)" identifier = (call_expression "GetNextImageInList(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "param_1 == 0" identifier == number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "bVar11 = 0xfffffffe < uVar8;" (assignment_expression "bVar11 = 0xfffffffe < uVar8" identifier = (binary_expression "0xfffffffe < uVar8" number_literal < identifier)) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar9 = uVar9 + bVar11;" (assignment_expression "uVar9 = uVar9 + bVar11" identifier = (binary_expression "uVar9 + bVar11" identifier + identifier)) ;) (if_statement "if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }" if (parenthesized_expression "(0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8)" ( (binary_expression "0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8" (binary_expression "0xfffffffe < uVar2 - 1 == uVar9" (binary_expression "0xfffffffe < uVar2 - 1" number_literal < (binary_expression "uVar2 - 1" identifier - number_literal)) == identifier) && (binary_expression "uVar2 == uVar8" identifier == identifier)) )) (compound_statement "{\n        return iVar3;\n      }" { (return_statement "return iVar3;" return identifier ;) })) (expression_statement "local_3c = *(int *)(iVar3 + 0x20c);" (assignment_expression "local_3c = *(int *)(iVar3 + 0x20c)" identifier = (pointer_expression "*(int *)(iVar3 + 0x20c)" * (cast_expression "(int *)(iVar3 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20c)" ( (binary_expression "iVar3 + 0x20c" identifier + number_literal) ))))) ;) (expression_statement "local_38 = *(int *)(iVar3 + 0x208);" (assignment_expression "local_38 = *(int *)(iVar3 + 0x208)" identifier = (pointer_expression "*(int *)(iVar3 + 0x208)" * (cast_expression "(int *)(iVar3 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x208)" ( (binary_expression "iVar3 + 0x208" identifier + number_literal) ))))) ;) })) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n/* WARNING: Enum "LogEventType": Some values do not have unique names */\n\nImage * MergeImageLayers(Image *image,LayerMethod method,ExceptionInfo *exception)\n\n{\n  int iVar1;\n  int iVar2;\n  Image *pIVar3;\n  size_t sVar4;\n  int iVar5;\n  MagickBooleanType MVar6;\n  size_t sVar7;\n  int iVar8;\n  ssize_t sVar9;\n  size_t sVar10;\n  ssize_t sVar11;\n  uint uVar12;\n  uint uVar13;\n  bool bVar14;\n  size_t local_4c;\n  size_t local_44;\n  size_t local_40;\n  ssize_t local_3c;\n  ssize_t local_38;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }\n  if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/layer.c","MergeImageLayers",0x7ae,"%s",image->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }\n  if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }\n  local_40 = (image->page).height;\n  iVar5 = (image->page).x;\n  iVar8 = (image->page).y;\n  sVar7 = image->columns;\n  sVar4 = (image->page).width;\n  local_4c = image->rows;\n  local_44 = sVar7;\n  if (method == FlattenLayer) {\n    if (sVar4 == 0) {\n      sVar4 = sVar7;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = sVar4;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = sVar4;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }\n  else {\n    if (method == MosaicLayer) {\n      if (sVar4 == 0) {\n        sVar4 = sVar7;\n      }\n      pIVar3 = image;\n      sVar9 = iVar8;\n      sVar11 = iVar5;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if ((int)sVar4 < (int)(sVar7 + sVar11)) {\n          sVar4 = sVar7 + sVar11;\n        }\n        sVar7 = local_4c + sVar9;\n        if ((int)(local_4c + sVar9) <= (int)local_40) {\n          sVar7 = local_40;\n        }\n        pIVar3 = GetNextImageInList(pIVar3);\n        local_40 = sVar7;\n        if (pIVar3 == (Image *)0x0) break;\n        sVar7 = pIVar3->columns;\n        local_4c = pIVar3->rows;\n        sVar9 = (pIVar3->page).y;\n        sVar11 = (pIVar3->page).x;\n      }\n      if (sVar4 == 0) {\n        local_44 = 0;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          sVar4 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = sVar4;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      sVar7 = sVar4;\n      goto LAB_00100a5b;\n    }\n    pIVar3 = GetNextImageInList(image);\n    local_38 = iVar5;\n    local_3c = iVar8;\n    while (pIVar3 != (Image *)0x0) {\n      iVar1 = (pIVar3->page).x;\n      if (iVar1 < local_38) {\n        local_44 = local_44 + (local_38 - iVar1);\n        local_38 = iVar1;\n      }\n      iVar2 = (pIVar3->page).y;\n      if (iVar2 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar2);\n        local_3c = iVar2;\n      }\n      sVar7 = (iVar1 + pIVar3->columns) - local_38;\n      if ((int)sVar7 <= (int)local_44) {\n        sVar7 = local_44;\n      }\n      sVar10 = (iVar2 + pIVar3->rows) - local_3c;\n      if ((int)sVar10 <= (int)local_4c) {\n        sVar10 = local_4c;\n      }\n      pIVar3 = GetNextImageInList(pIVar3);\n      local_44 = sVar7;\n      local_4c = sVar10;\n    }\n    if ((sVar4 == 0) && (sVar4 = local_44, -1 < local_38)) {\n      sVar4 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }\n  sVar7 = sVar4;\n  if (method == TrimBoundsLayer) {\n    sVar4 = GetImageListLength(image);\n    if ((int)sVar4 < 1) {\n      return (Image *)0x0;\n    }\n    uVar12 = 0;\n    uVar13 = 0;\n    while( true ) {\n      (image->page).x = iVar5 - local_38;\n      (image->page).y = iVar8 - local_3c;\n      (image->page).width = local_44;\n      (image->page).height = local_4c;\n      MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);\n      if (MVar6 == MagickFalse) {\n        return (Image *)0x0;\n      }\n      image = GetNextImageInList(image);\n      if (image == (Image *)0x0) break;\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      uVar13 = uVar13 + bVar14;\n      if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {\n        return (Image *)0x0;\n      }\n      iVar5 = (image->page).x;\n      iVar8 = (image->page).y;\n    }\n    return (Image *)0x0;\n  }\nLAB_00100a5b:\n  pIVar3 = CloneImage(image,local_44,local_4c,MagickTrue,exception);\n  if (pIVar3 == (Image *)0x0) {\n    return (Image *)0x0;\n  }\n  (pIVar3->background_color).alpha_trait = BlendPixelTrait;\n  SetImageBackgroundColor(pIVar3,exception);\n  (pIVar3->page).width = sVar7;\n  (pIVar3->page).height = local_40;\n  pIVar3->dispose = UndefinedDispose;\n  (pIVar3->page).y = local_3c;\n  (pIVar3->page).x = local_38;\n  sVar4 = GetImageListLength(image);\n  if (0 < (int)sVar4) {\n    uVar12 = 0;\n    uVar13 = 0;\n    while( true ) {\n      CompositeImage(pIVar3,image,image->compose,MagickTrue,(image->page).x - local_38,\n                     (image->page).y - local_3c,exception);\n      MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);\n      if ((MVar6 == MagickFalse) || (image = GetNextImageInList(image), image == (Image *)0x0))\n      break;\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      uVar13 = uVar13 + bVar14;\n      if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {\n        return pIVar3;\n      }\n      local_3c = (pIVar3->page).y;\n      local_38 = (pIVar3->page).x;\n    }\n  }\n  return pIVar3;\n}\n\n" comment comment comment comment comment comment comment (function_definition "Image * MergeImageLayers(Image *image,LayerMethod method,ExceptionInfo *exception)\n\n{\n  int iVar1;\n  int iVar2;\n  Image *pIVar3;\n  size_t sVar4;\n  int iVar5;\n  MagickBooleanType MVar6;\n  size_t sVar7;\n  int iVar8;\n  ssize_t sVar9;\n  size_t sVar10;\n  ssize_t sVar11;\n  uint uVar12;\n  uint uVar13;\n  bool bVar14;\n  size_t local_4c;\n  size_t local_44;\n  size_t local_40;\n  ssize_t local_3c;\n  ssize_t local_38;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }\n  if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/layer.c","MergeImageLayers",0x7ae,"%s",image->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }\n  if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }\n  local_40 = (image->page).height;\n  iVar5 = (image->page).x;\n  iVar8 = (image->page).y;\n  sVar7 = image->columns;\n  sVar4 = (image->page).width;\n  local_4c = image->rows;\n  local_44 = sVar7;\n  if (method == FlattenLayer) {\n    if (sVar4 == 0) {\n      sVar4 = sVar7;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = sVar4;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = sVar4;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }\n  else {\n    if (method == MosaicLayer) {\n      if (sVar4 == 0) {\n        sVar4 = sVar7;\n      }\n      pIVar3 = image;\n      sVar9 = iVar8;\n      sVar11 = iVar5;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if ((int)sVar4 < (int)(sVar7 + sVar11)) {\n          sVar4 = sVar7 + sVar11;\n        }\n        sVar7 = local_4c + sVar9;\n        if ((int)(local_4c + sVar9) <= (int)local_40) {\n          sVar7 = local_40;\n        }\n        pIVar3 = GetNextImageInList(pIVar3);\n        local_40 = sVar7;\n        if (pIVar3 == (Image *)0x0) break;\n        sVar7 = pIVar3->columns;\n        local_4c = pIVar3->rows;\n        sVar9 = (pIVar3->page).y;\n        sVar11 = (pIVar3->page).x;\n      }\n      if (sVar4 == 0) {\n        local_44 = 0;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          sVar4 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = sVar4;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      sVar7 = sVar4;\n      goto LAB_00100a5b;\n    }\n    pIVar3 = GetNextImageInList(image);\n    local_38 = iVar5;\n    local_3c = iVar8;\n    while (pIVar3 != (Image *)0x0) {\n      iVar1 = (pIVar3->page).x;\n      if (iVar1 < local_38) {\n        local_44 = local_44 + (local_38 - iVar1);\n        local_38 = iVar1;\n      }\n      iVar2 = (pIVar3->page).y;\n      if (iVar2 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar2);\n        local_3c = iVar2;\n      }\n      sVar7 = (iVar1 + pIVar3->columns) - local_38;\n      if ((int)sVar7 <= (int)local_44) {\n        sVar7 = local_44;\n      }\n      sVar10 = (iVar2 + pIVar3->rows) - local_3c;\n      if ((int)sVar10 <= (int)local_4c) {\n        sVar10 = local_4c;\n      }\n      pIVar3 = GetNextImageInList(pIVar3);\n      local_44 = sVar7;\n      local_4c = sVar10;\n    }\n    if ((sVar4 == 0) && (sVar4 = local_44, -1 < local_38)) {\n      sVar4 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }\n  sVar7 = sVar4;\n  if (method == TrimBoundsLayer) {\n    sVar4 = GetImageListLength(image);\n    if ((int)sVar4 < 1) {\n      return (Image *)0x0;\n    }\n    uVar12 = 0;\n    uVar13 = 0;\n    while( true ) {\n      (image->page).x = iVar5 - local_38;\n      (image->page).y = iVar8 - local_3c;\n      (image->page).width = local_44;\n      (image->page).height = local_4c;\n      MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);\n      if (MVar6 == MagickFalse) {\n        return (Image *)0x0;\n      }\n      image = GetNextImageInList(image);\n      if (image == (Image *)0x0) break;\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      uVar13 = uVar13 + bVar14;\n      if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {\n        return (Image *)0x0;\n      }\n      iVar5 = (image->page).x;\n      iVar8 = (image->page).y;\n    }\n    return (Image *)0x0;\n  }\nLAB_00100a5b:\n  pIVar3 = CloneImage(image,local_44,local_4c,MagickTrue,exception);\n  if (pIVar3 == (Image *)0x0) {\n    return (Image *)0x0;\n  }\n  (pIVar3->background_color).alpha_trait = BlendPixelTrait;\n  SetImageBackgroundColor(pIVar3,exception);\n  (pIVar3->page).width = sVar7;\n  (pIVar3->page).height = local_40;\n  pIVar3->dispose = UndefinedDispose;\n  (pIVar3->page).y = local_3c;\n  (pIVar3->page).x = local_38;\n  sVar4 = GetImageListLength(image);\n  if (0 < (int)sVar4) {\n    uVar12 = 0;\n    uVar13 = 0;\n    while( true ) {\n      CompositeImage(pIVar3,image,image->compose,MagickTrue,(image->page).x - local_38,\n                     (image->page).y - local_3c,exception);\n      MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);\n      if ((MVar6 == MagickFalse) || (image = GetNextImageInList(image), image == (Image *)0x0))\n      break;\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      uVar13 = uVar13 + bVar14;\n      if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {\n        return pIVar3;\n      }\n      local_3c = (pIVar3->page).y;\n      local_38 = (pIVar3->page).x;\n    }\n  }\n  return pIVar3;\n}" type_identifier (pointer_declarator "* MergeImageLayers(Image *image,LayerMethod method,ExceptionInfo *exception)" * (function_declarator "MergeImageLayers(Image *image,LayerMethod method,ExceptionInfo *exception)" identifier (parameter_list "(Image *image,LayerMethod method,ExceptionInfo *exception)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) , (parameter_declaration "LayerMethod method" type_identifier identifier) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  Image *pIVar3;\n  size_t sVar4;\n  int iVar5;\n  MagickBooleanType MVar6;\n  size_t sVar7;\n  int iVar8;\n  ssize_t sVar9;\n  size_t sVar10;\n  ssize_t sVar11;\n  uint uVar12;\n  uint uVar13;\n  bool bVar14;\n  size_t local_4c;\n  size_t local_44;\n  size_t local_40;\n  ssize_t local_3c;\n  ssize_t local_38;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }\n  if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/layer.c","MergeImageLayers",0x7ae,"%s",image->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }\n  if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }\n  local_40 = (image->page).height;\n  iVar5 = (image->page).x;\n  iVar8 = (image->page).y;\n  sVar7 = image->columns;\n  sVar4 = (image->page).width;\n  local_4c = image->rows;\n  local_44 = sVar7;\n  if (method == FlattenLayer) {\n    if (sVar4 == 0) {\n      sVar4 = sVar7;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = sVar4;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = sVar4;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }\n  else {\n    if (method == MosaicLayer) {\n      if (sVar4 == 0) {\n        sVar4 = sVar7;\n      }\n      pIVar3 = image;\n      sVar9 = iVar8;\n      sVar11 = iVar5;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if ((int)sVar4 < (int)(sVar7 + sVar11)) {\n          sVar4 = sVar7 + sVar11;\n        }\n        sVar7 = local_4c + sVar9;\n        if ((int)(local_4c + sVar9) <= (int)local_40) {\n          sVar7 = local_40;\n        }\n        pIVar3 = GetNextImageInList(pIVar3);\n        local_40 = sVar7;\n        if (pIVar3 == (Image *)0x0) break;\n        sVar7 = pIVar3->columns;\n        local_4c = pIVar3->rows;\n        sVar9 = (pIVar3->page).y;\n        sVar11 = (pIVar3->page).x;\n      }\n      if (sVar4 == 0) {\n        local_44 = 0;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          sVar4 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = sVar4;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      sVar7 = sVar4;\n      goto LAB_00100a5b;\n    }\n    pIVar3 = GetNextImageInList(image);\n    local_38 = iVar5;\n    local_3c = iVar8;\n    while (pIVar3 != (Image *)0x0) {\n      iVar1 = (pIVar3->page).x;\n      if (iVar1 < local_38) {\n        local_44 = local_44 + (local_38 - iVar1);\n        local_38 = iVar1;\n      }\n      iVar2 = (pIVar3->page).y;\n      if (iVar2 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar2);\n        local_3c = iVar2;\n      }\n      sVar7 = (iVar1 + pIVar3->columns) - local_38;\n      if ((int)sVar7 <= (int)local_44) {\n        sVar7 = local_44;\n      }\n      sVar10 = (iVar2 + pIVar3->rows) - local_3c;\n      if ((int)sVar10 <= (int)local_4c) {\n        sVar10 = local_4c;\n      }\n      pIVar3 = GetNextImageInList(pIVar3);\n      local_44 = sVar7;\n      local_4c = sVar10;\n    }\n    if ((sVar4 == 0) && (sVar4 = local_44, -1 < local_38)) {\n      sVar4 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }\n  sVar7 = sVar4;\n  if (method == TrimBoundsLayer) {\n    sVar4 = GetImageListLength(image);\n    if ((int)sVar4 < 1) {\n      return (Image *)0x0;\n    }\n    uVar12 = 0;\n    uVar13 = 0;\n    while( true ) {\n      (image->page).x = iVar5 - local_38;\n      (image->page).y = iVar8 - local_3c;\n      (image->page).width = local_44;\n      (image->page).height = local_4c;\n      MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);\n      if (MVar6 == MagickFalse) {\n        return (Image *)0x0;\n      }\n      image = GetNextImageInList(image);\n      if (image == (Image *)0x0) break;\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      uVar13 = uVar13 + bVar14;\n      if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {\n        return (Image *)0x0;\n      }\n      iVar5 = (image->page).x;\n      iVar8 = (image->page).y;\n    }\n    return (Image *)0x0;\n  }\nLAB_00100a5b:\n  pIVar3 = CloneImage(image,local_44,local_4c,MagickTrue,exception);\n  if (pIVar3 == (Image *)0x0) {\n    return (Image *)0x0;\n  }\n  (pIVar3->background_color).alpha_trait = BlendPixelTrait;\n  SetImageBackgroundColor(pIVar3,exception);\n  (pIVar3->page).width = sVar7;\n  (pIVar3->page).height = local_40;\n  pIVar3->dispose = UndefinedDispose;\n  (pIVar3->page).y = local_3c;\n  (pIVar3->page).x = local_38;\n  sVar4 = GetImageListLength(image);\n  if (0 < (int)sVar4) {\n    uVar12 = 0;\n    uVar13 = 0;\n    while( true ) {\n      CompositeImage(pIVar3,image,image->compose,MagickTrue,(image->page).x - local_38,\n                     (image->page).y - local_3c,exception);\n      MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);\n      if ((MVar6 == MagickFalse) || (image = GetNextImageInList(image), image == (Image *)0x0))\n      break;\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      uVar13 = uVar13 + bVar14;\n      if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {\n        return pIVar3;\n      }\n      local_3c = (pIVar3->page).y;\n      local_38 = (pIVar3->page).x;\n    }\n  }\n  return pIVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Image *pIVar3;" type_identifier (pointer_declarator "*pIVar3" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "MagickBooleanType MVar6;" type_identifier identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "ssize_t sVar9;" primitive_type identifier ;) (declaration "size_t sVar10;" primitive_type identifier ;) (declaration "ssize_t sVar11;" primitive_type identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "bool bVar14;" primitive_type identifier ;) (declaration "size_t local_4c;" primitive_type identifier ;) (declaration "size_t local_44;" primitive_type identifier ;) (declaration "size_t local_40;" primitive_type identifier ;) (declaration "ssize_t local_3c;" primitive_type identifier ;) (declaration "ssize_t local_38;" primitive_type identifier ;) (if_statement "if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\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 "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers")" identifier (argument_list "("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""MergeImageLayers"" " string_content ") ))) ;) })) (if_statement "if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }" if (parenthesized_expression "(image->signature != 0xabacadab)" ( (binary_expression "image->signature != 0xabacadab" (field_expression "image->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }" { comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""MergeImageLayers"" " string_content ") ))) ;) })) (if_statement "if (image->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/layer.c","MergeImageLayers",0x7ae,"%s",image->filename);\n  }" if (parenthesized_expression "(image->debug != MagickFalse)" ( (binary_expression "image->debug != MagickFalse" (field_expression "image->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    LogMagickEvent(TraceEvent,"MagickCore/layer.c","MergeImageLayers",0x7ae,"%s",image->filename);\n  }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/layer.c","MergeImageLayers",0x7ae,"%s",image->filename);" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/layer.c","MergeImageLayers",0x7ae,"%s",image->filename)" identifier (argument_list "(TraceEvent,"MagickCore/layer.c","MergeImageLayers",0x7ae,"%s",image->filename)" ( identifier , (string_literal ""MagickCore/layer.c"" " string_content ") , (string_literal ""MergeImageLayers"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "image->filename" identifier -> field_identifier) ))) ;) })) (if_statement "if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }" if (parenthesized_expression "(exception == (ExceptionInfo *)0x0)" ( (binary_expression "exception == (ExceptionInfo *)0x0" identifier == (cast_expression "(ExceptionInfo *)0x0" ( (type_descriptor "ExceptionInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""MergeImageLayers"" " string_content ") ))) ;) })) (if_statement "if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }" if (parenthesized_expression "(exception->signature != 0xabacadab)" ( (binary_expression "exception->signature != 0xabacadab" (field_expression "exception->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }" { comment (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers")" identifier (argument_list "("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers")" ( (string_literal ""exception->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""MergeImageLayers"" " string_content ") ))) ;) })) (expression_statement "local_40 = (image->page).height;" (assignment_expression "local_40 = (image->page).height" identifier = (field_expression "(image->page).height" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar5 = (image->page).x;" (assignment_expression "iVar5 = (image->page).x" identifier = (field_expression "(image->page).x" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar8 = (image->page).y;" (assignment_expression "iVar8 = (image->page).y" identifier = (field_expression "(image->page).y" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "sVar7 = image->columns;" (assignment_expression "sVar7 = image->columns" identifier = (field_expression "image->columns" identifier -> field_identifier)) ;) (expression_statement "sVar4 = (image->page).width;" (assignment_expression "sVar4 = (image->page).width" identifier = (field_expression "(image->page).width" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "local_4c = image->rows;" (assignment_expression "local_4c = image->rows" identifier = (field_expression "image->rows" identifier -> field_identifier)) ;) (expression_statement "local_44 = sVar7;" (assignment_expression "local_44 = sVar7" identifier = identifier) ;) (if_statement "if (method == FlattenLayer) {\n    if (sVar4 == 0) {\n      sVar4 = sVar7;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = sVar4;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = sVar4;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }\n  else {\n    if (method == MosaicLayer) {\n      if (sVar4 == 0) {\n        sVar4 = sVar7;\n      }\n      pIVar3 = image;\n      sVar9 = iVar8;\n      sVar11 = iVar5;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if ((int)sVar4 < (int)(sVar7 + sVar11)) {\n          sVar4 = sVar7 + sVar11;\n        }\n        sVar7 = local_4c + sVar9;\n        if ((int)(local_4c + sVar9) <= (int)local_40) {\n          sVar7 = local_40;\n        }\n        pIVar3 = GetNextImageInList(pIVar3);\n        local_40 = sVar7;\n        if (pIVar3 == (Image *)0x0) break;\n        sVar7 = pIVar3->columns;\n        local_4c = pIVar3->rows;\n        sVar9 = (pIVar3->page).y;\n        sVar11 = (pIVar3->page).x;\n      }\n      if (sVar4 == 0) {\n        local_44 = 0;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          sVar4 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = sVar4;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      sVar7 = sVar4;\n      goto LAB_00100a5b;\n    }\n    pIVar3 = GetNextImageInList(image);\n    local_38 = iVar5;\n    local_3c = iVar8;\n    while (pIVar3 != (Image *)0x0) {\n      iVar1 = (pIVar3->page).x;\n      if (iVar1 < local_38) {\n        local_44 = local_44 + (local_38 - iVar1);\n        local_38 = iVar1;\n      }\n      iVar2 = (pIVar3->page).y;\n      if (iVar2 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar2);\n        local_3c = iVar2;\n      }\n      sVar7 = (iVar1 + pIVar3->columns) - local_38;\n      if ((int)sVar7 <= (int)local_44) {\n        sVar7 = local_44;\n      }\n      sVar10 = (iVar2 + pIVar3->rows) - local_3c;\n      if ((int)sVar10 <= (int)local_4c) {\n        sVar10 = local_4c;\n      }\n      pIVar3 = GetNextImageInList(pIVar3);\n      local_44 = sVar7;\n      local_4c = sVar10;\n    }\n    if ((sVar4 == 0) && (sVar4 = local_44, -1 < local_38)) {\n      sVar4 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }" if (parenthesized_expression "(method == FlattenLayer)" ( (binary_expression "method == FlattenLayer" identifier == identifier) )) (compound_statement "{\n    if (sVar4 == 0) {\n      sVar4 = sVar7;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = sVar4;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = sVar4;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }" { (if_statement "if (sVar4 == 0) {\n      sVar4 = sVar7;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = sVar4;\n      if (local_40 != 0) goto LAB_00100a44;\n    }" if (parenthesized_expression "(sVar4 == 0)" ( (binary_expression "sVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      sVar4 = sVar7;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }" { (expression_statement "sVar4 = sVar7;" (assignment_expression "sVar4 = sVar7" identifier = identifier) ;) (if_statement "if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }" if (parenthesized_expression "(local_40 != 0)" ( (binary_expression "local_40 != 0" identifier != number_literal) )) (compound_statement "{\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }" { (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_4c = local_40;" (assignment_expression "local_4c = local_40" identifier = identifier) ;) (goto_statement "goto LAB_00100a5b;" goto statement_identifier ;) })) }) (else_clause "else {\n      local_44 = sVar4;\n      if (local_40 != 0) goto LAB_00100a44;\n    }" else (compound_statement "{\n      local_44 = sVar4;\n      if (local_40 != 0) goto LAB_00100a44;\n    }" { (expression_statement "local_44 = sVar4;" (assignment_expression "local_44 = sVar4" identifier = identifier) ;) (if_statement "if (local_40 != 0) goto LAB_00100a44;" if (parenthesized_expression "(local_40 != 0)" ( (binary_expression "local_40 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00100a44;" goto statement_identifier ;)) }))) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_44 = sVar4;" (assignment_expression "local_44 = sVar4" identifier = identifier) ;) (labeled_statement "LAB_00100be8:\n    local_40 = local_3c + local_4c;" statement_identifier : (expression_statement "local_40 = local_3c + local_4c;" (assignment_expression "local_40 = local_3c + local_4c" identifier = (binary_expression "local_3c + local_4c" identifier + identifier)) ;)) }) (else_clause "else {\n    if (method == MosaicLayer) {\n      if (sVar4 == 0) {\n        sVar4 = sVar7;\n      }\n      pIVar3 = image;\n      sVar9 = iVar8;\n      sVar11 = iVar5;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if ((int)sVar4 < (int)(sVar7 + sVar11)) {\n          sVar4 = sVar7 + sVar11;\n        }\n        sVar7 = local_4c + sVar9;\n        if ((int)(local_4c + sVar9) <= (int)local_40) {\n          sVar7 = local_40;\n        }\n        pIVar3 = GetNextImageInList(pIVar3);\n        local_40 = sVar7;\n        if (pIVar3 == (Image *)0x0) break;\n        sVar7 = pIVar3->columns;\n        local_4c = pIVar3->rows;\n        sVar9 = (pIVar3->page).y;\n        sVar11 = (pIVar3->page).x;\n      }\n      if (sVar4 == 0) {\n        local_44 = 0;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          sVar4 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = sVar4;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      sVar7 = sVar4;\n      goto LAB_00100a5b;\n    }\n    pIVar3 = GetNextImageInList(image);\n    local_38 = iVar5;\n    local_3c = iVar8;\n    while (pIVar3 != (Image *)0x0) {\n      iVar1 = (pIVar3->page).x;\n      if (iVar1 < local_38) {\n        local_44 = local_44 + (local_38 - iVar1);\n        local_38 = iVar1;\n      }\n      iVar2 = (pIVar3->page).y;\n      if (iVar2 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar2);\n        local_3c = iVar2;\n      }\n      sVar7 = (iVar1 + pIVar3->columns) - local_38;\n      if ((int)sVar7 <= (int)local_44) {\n        sVar7 = local_44;\n      }\n      sVar10 = (iVar2 + pIVar3->rows) - local_3c;\n      if ((int)sVar10 <= (int)local_4c) {\n        sVar10 = local_4c;\n      }\n      pIVar3 = GetNextImageInList(pIVar3);\n      local_44 = sVar7;\n      local_4c = sVar10;\n    }\n    if ((sVar4 == 0) && (sVar4 = local_44, -1 < local_38)) {\n      sVar4 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }" else (compound_statement "{\n    if (method == MosaicLayer) {\n      if (sVar4 == 0) {\n        sVar4 = sVar7;\n      }\n      pIVar3 = image;\n      sVar9 = iVar8;\n      sVar11 = iVar5;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if ((int)sVar4 < (int)(sVar7 + sVar11)) {\n          sVar4 = sVar7 + sVar11;\n        }\n        sVar7 = local_4c + sVar9;\n        if ((int)(local_4c + sVar9) <= (int)local_40) {\n          sVar7 = local_40;\n        }\n        pIVar3 = GetNextImageInList(pIVar3);\n        local_40 = sVar7;\n        if (pIVar3 == (Image *)0x0) break;\n        sVar7 = pIVar3->columns;\n        local_4c = pIVar3->rows;\n        sVar9 = (pIVar3->page).y;\n        sVar11 = (pIVar3->page).x;\n      }\n      if (sVar4 == 0) {\n        local_44 = 0;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          sVar4 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = sVar4;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      sVar7 = sVar4;\n      goto LAB_00100a5b;\n    }\n    pIVar3 = GetNextImageInList(image);\n    local_38 = iVar5;\n    local_3c = iVar8;\n    while (pIVar3 != (Image *)0x0) {\n      iVar1 = (pIVar3->page).x;\n      if (iVar1 < local_38) {\n        local_44 = local_44 + (local_38 - iVar1);\n        local_38 = iVar1;\n      }\n      iVar2 = (pIVar3->page).y;\n      if (iVar2 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar2);\n        local_3c = iVar2;\n      }\n      sVar7 = (iVar1 + pIVar3->columns) - local_38;\n      if ((int)sVar7 <= (int)local_44) {\n        sVar7 = local_44;\n      }\n      sVar10 = (iVar2 + pIVar3->rows) - local_3c;\n      if ((int)sVar10 <= (int)local_4c) {\n        sVar10 = local_4c;\n      }\n      pIVar3 = GetNextImageInList(pIVar3);\n      local_44 = sVar7;\n      local_4c = sVar10;\n    }\n    if ((sVar4 == 0) && (sVar4 = local_44, -1 < local_38)) {\n      sVar4 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }" { (if_statement "if (method == MosaicLayer) {\n      if (sVar4 == 0) {\n        sVar4 = sVar7;\n      }\n      pIVar3 = image;\n      sVar9 = iVar8;\n      sVar11 = iVar5;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if ((int)sVar4 < (int)(sVar7 + sVar11)) {\n          sVar4 = sVar7 + sVar11;\n        }\n        sVar7 = local_4c + sVar9;\n        if ((int)(local_4c + sVar9) <= (int)local_40) {\n          sVar7 = local_40;\n        }\n        pIVar3 = GetNextImageInList(pIVar3);\n        local_40 = sVar7;\n        if (pIVar3 == (Image *)0x0) break;\n        sVar7 = pIVar3->columns;\n        local_4c = pIVar3->rows;\n        sVar9 = (pIVar3->page).y;\n        sVar11 = (pIVar3->page).x;\n      }\n      if (sVar4 == 0) {\n        local_44 = 0;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          sVar4 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = sVar4;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      sVar7 = sVar4;\n      goto LAB_00100a5b;\n    }" if (parenthesized_expression "(method == MosaicLayer)" ( (binary_expression "method == MosaicLayer" identifier == identifier) )) (compound_statement "{\n      if (sVar4 == 0) {\n        sVar4 = sVar7;\n      }\n      pIVar3 = image;\n      sVar9 = iVar8;\n      sVar11 = iVar5;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if ((int)sVar4 < (int)(sVar7 + sVar11)) {\n          sVar4 = sVar7 + sVar11;\n        }\n        sVar7 = local_4c + sVar9;\n        if ((int)(local_4c + sVar9) <= (int)local_40) {\n          sVar7 = local_40;\n        }\n        pIVar3 = GetNextImageInList(pIVar3);\n        local_40 = sVar7;\n        if (pIVar3 == (Image *)0x0) break;\n        sVar7 = pIVar3->columns;\n        local_4c = pIVar3->rows;\n        sVar9 = (pIVar3->page).y;\n        sVar11 = (pIVar3->page).x;\n      }\n      if (sVar4 == 0) {\n        local_44 = 0;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          sVar4 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = sVar4;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      sVar7 = sVar4;\n      goto LAB_00100a5b;\n    }" { (if_statement "if (sVar4 == 0) {\n        sVar4 = sVar7;\n      }" if (parenthesized_expression "(sVar4 == 0)" ( (binary_expression "sVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        sVar4 = sVar7;\n      }" { (expression_statement "sVar4 = sVar7;" (assignment_expression "sVar4 = sVar7" identifier = identifier) ;) })) (expression_statement "pIVar3 = image;" (assignment_expression "pIVar3 = image" identifier = identifier) ;) (expression_statement "sVar9 = iVar8;" (assignment_expression "sVar9 = iVar8" identifier = identifier) ;) (expression_statement "sVar11 = iVar5;" (assignment_expression "sVar11 = iVar5" identifier = identifier) ;) (if_statement "if (local_40 == 0) {\n        local_40 = local_4c;\n      }" if (parenthesized_expression "(local_40 == 0)" ( (binary_expression "local_40 == 0" identifier == number_literal) )) (compound_statement "{\n        local_40 = local_4c;\n      }" { (expression_statement "local_40 = local_4c;" (assignment_expression "local_40 = local_4c" identifier = identifier) ;) })) (while_statement "while( true ) {\n        if ((int)sVar4 < (int)(sVar7 + sVar11)) {\n          sVar4 = sVar7 + sVar11;\n        }\n        sVar7 = local_4c + sVar9;\n        if ((int)(local_4c + sVar9) <= (int)local_40) {\n          sVar7 = local_40;\n        }\n        pIVar3 = GetNextImageInList(pIVar3);\n        local_40 = sVar7;\n        if (pIVar3 == (Image *)0x0) break;\n        sVar7 = pIVar3->columns;\n        local_4c = pIVar3->rows;\n        sVar9 = (pIVar3->page).y;\n        sVar11 = (pIVar3->page).x;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if ((int)sVar4 < (int)(sVar7 + sVar11)) {\n          sVar4 = sVar7 + sVar11;\n        }\n        sVar7 = local_4c + sVar9;\n        if ((int)(local_4c + sVar9) <= (int)local_40) {\n          sVar7 = local_40;\n        }\n        pIVar3 = GetNextImageInList(pIVar3);\n        local_40 = sVar7;\n        if (pIVar3 == (Image *)0x0) break;\n        sVar7 = pIVar3->columns;\n        local_4c = pIVar3->rows;\n        sVar9 = (pIVar3->page).y;\n        sVar11 = (pIVar3->page).x;\n      }" { (if_statement "if ((int)sVar4 < (int)(sVar7 + sVar11)) {\n          sVar4 = sVar7 + sVar11;\n        }" if (parenthesized_expression "((int)sVar4 < (int)(sVar7 + sVar11))" ( (binary_expression "(int)sVar4 < (int)(sVar7 + sVar11)" (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)(sVar7 + sVar11)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(sVar7 + sVar11)" ( (binary_expression "sVar7 + sVar11" identifier + identifier) )))) )) (compound_statement "{\n          sVar4 = sVar7 + sVar11;\n        }" { (expression_statement "sVar4 = sVar7 + sVar11;" (assignment_expression "sVar4 = sVar7 + sVar11" identifier = (binary_expression "sVar7 + sVar11" identifier + identifier)) ;) })) (expression_statement "sVar7 = local_4c + sVar9;" (assignment_expression "sVar7 = local_4c + sVar9" identifier = (binary_expression "local_4c + sVar9" identifier + identifier)) ;) (if_statement "if ((int)(local_4c + sVar9) <= (int)local_40) {\n          sVar7 = local_40;\n        }" if (parenthesized_expression "((int)(local_4c + sVar9) <= (int)local_40)" ( (binary_expression "(int)(local_4c + sVar9) <= (int)local_40" (cast_expression "(int)(local_4c + sVar9)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_4c + sVar9)" ( (binary_expression "local_4c + sVar9" identifier + identifier) ))) <= (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          sVar7 = local_40;\n        }" { (expression_statement "sVar7 = local_40;" (assignment_expression "sVar7 = local_40" identifier = identifier) ;) })) (expression_statement "pIVar3 = GetNextImageInList(pIVar3);" (assignment_expression "pIVar3 = GetNextImageInList(pIVar3)" identifier = (call_expression "GetNextImageInList(pIVar3)" identifier (argument_list "(pIVar3)" ( identifier )))) ;) (expression_statement "local_40 = sVar7;" (assignment_expression "local_40 = sVar7" identifier = identifier) ;) (if_statement "if (pIVar3 == (Image *)0x0) break;" if (parenthesized_expression "(pIVar3 == (Image *)0x0)" ( (binary_expression "pIVar3 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "sVar7 = pIVar3->columns;" (assignment_expression "sVar7 = pIVar3->columns" identifier = (field_expression "pIVar3->columns" identifier -> field_identifier)) ;) (expression_statement "local_4c = pIVar3->rows;" (assignment_expression "local_4c = pIVar3->rows" identifier = (field_expression "pIVar3->rows" identifier -> field_identifier)) ;) (expression_statement "sVar9 = (pIVar3->page).y;" (assignment_expression "sVar9 = (pIVar3->page).y" identifier = (field_expression "(pIVar3->page).y" (parenthesized_expression "(pIVar3->page)" ( (field_expression "pIVar3->page" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "sVar11 = (pIVar3->page).x;" (assignment_expression "sVar11 = (pIVar3->page).x" identifier = (field_expression "(pIVar3->page).x" (parenthesized_expression "(pIVar3->page)" ( (field_expression "pIVar3->page" identifier -> field_identifier) )) . field_identifier)) ;) })) (if_statement "if (sVar4 == 0) {\n        local_44 = 0;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          sVar4 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = sVar4;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }" if (parenthesized_expression "(sVar4 == 0)" ( (binary_expression "sVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        local_44 = 0;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          sVar4 = 0;\n          goto LAB_00100be8;\n        }\n      }" { (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (if_statement "if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          sVar4 = 0;\n          goto LAB_00100be8;\n        }" if (parenthesized_expression "(sVar7 == 0)" ( (binary_expression "sVar7 == 0" identifier == number_literal) )) (compound_statement "{\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          sVar4 = 0;\n          goto LAB_00100be8;\n        }" { (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00100be8;" goto statement_identifier ;) })) }) (else_clause "else {\n        local_44 = sVar4;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }" else (compound_statement "{\n        local_44 = sVar4;\n        if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }" { (expression_statement "local_44 = sVar4;" (assignment_expression "local_44 = sVar4" identifier = identifier) ;) (if_statement "if (sVar7 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }" if (parenthesized_expression "(sVar7 == 0)" ( (binary_expression "sVar7 == 0" identifier == number_literal) )) (compound_statement "{\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }" { (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00100be8;" goto statement_identifier ;) })) }))) (labeled_statement "LAB_00100a44:\n      local_3c = 0;" statement_identifier : (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;)) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_4c = local_40;" (assignment_expression "local_4c = local_40" identifier = identifier) ;) (expression_statement "sVar7 = sVar4;" (assignment_expression "sVar7 = sVar4" identifier = identifier) ;) (goto_statement "goto LAB_00100a5b;" goto statement_identifier ;) })) (expression_statement "pIVar3 = GetNextImageInList(image);" (assignment_expression "pIVar3 = GetNextImageInList(image)" identifier = (call_expression "GetNextImageInList(image)" identifier (argument_list "(image)" ( identifier )))) ;) (expression_statement "local_38 = iVar5;" (assignment_expression "local_38 = iVar5" identifier = identifier) ;) (expression_statement "local_3c = iVar8;" (assignment_expression "local_3c = iVar8" identifier = identifier) ;) (while_statement "while (pIVar3 != (Image *)0x0) {\n      iVar1 = (pIVar3->page).x;\n      if (iVar1 < local_38) {\n        local_44 = local_44 + (local_38 - iVar1);\n        local_38 = iVar1;\n      }\n      iVar2 = (pIVar3->page).y;\n      if (iVar2 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar2);\n        local_3c = iVar2;\n      }\n      sVar7 = (iVar1 + pIVar3->columns) - local_38;\n      if ((int)sVar7 <= (int)local_44) {\n        sVar7 = local_44;\n      }\n      sVar10 = (iVar2 + pIVar3->rows) - local_3c;\n      if ((int)sVar10 <= (int)local_4c) {\n        sVar10 = local_4c;\n      }\n      pIVar3 = GetNextImageInList(pIVar3);\n      local_44 = sVar7;\n      local_4c = sVar10;\n    }" while (parenthesized_expression "(pIVar3 != (Image *)0x0)" ( (binary_expression "pIVar3 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar1 = (pIVar3->page).x;\n      if (iVar1 < local_38) {\n        local_44 = local_44 + (local_38 - iVar1);\n        local_38 = iVar1;\n      }\n      iVar2 = (pIVar3->page).y;\n      if (iVar2 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar2);\n        local_3c = iVar2;\n      }\n      sVar7 = (iVar1 + pIVar3->columns) - local_38;\n      if ((int)sVar7 <= (int)local_44) {\n        sVar7 = local_44;\n      }\n      sVar10 = (iVar2 + pIVar3->rows) - local_3c;\n      if ((int)sVar10 <= (int)local_4c) {\n        sVar10 = local_4c;\n      }\n      pIVar3 = GetNextImageInList(pIVar3);\n      local_44 = sVar7;\n      local_4c = sVar10;\n    }" { (expression_statement "iVar1 = (pIVar3->page).x;" (assignment_expression "iVar1 = (pIVar3->page).x" identifier = (field_expression "(pIVar3->page).x" (parenthesized_expression "(pIVar3->page)" ( (field_expression "pIVar3->page" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (iVar1 < local_38) {\n        local_44 = local_44 + (local_38 - iVar1);\n        local_38 = iVar1;\n      }" if (parenthesized_expression "(iVar1 < local_38)" ( (binary_expression "iVar1 < local_38" identifier < identifier) )) (compound_statement "{\n        local_44 = local_44 + (local_38 - iVar1);\n        local_38 = iVar1;\n      }" { (expression_statement "local_44 = local_44 + (local_38 - iVar1);" (assignment_expression "local_44 = local_44 + (local_38 - iVar1)" identifier = (binary_expression "local_44 + (local_38 - iVar1)" identifier + (parenthesized_expression "(local_38 - iVar1)" ( (binary_expression "local_38 - iVar1" identifier - identifier) )))) ;) (expression_statement "local_38 = iVar1;" (assignment_expression "local_38 = iVar1" identifier = identifier) ;) })) (expression_statement "iVar2 = (pIVar3->page).y;" (assignment_expression "iVar2 = (pIVar3->page).y" identifier = (field_expression "(pIVar3->page).y" (parenthesized_expression "(pIVar3->page)" ( (field_expression "pIVar3->page" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (iVar2 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar2);\n        local_3c = iVar2;\n      }" if (parenthesized_expression "(iVar2 < local_3c)" ( (binary_expression "iVar2 < local_3c" identifier < identifier) )) (compound_statement "{\n        local_4c = local_4c + (local_3c - iVar2);\n        local_3c = iVar2;\n      }" { (expression_statement "local_4c = local_4c + (local_3c - iVar2);" (assignment_expression "local_4c = local_4c + (local_3c - iVar2)" identifier = (binary_expression "local_4c + (local_3c - iVar2)" identifier + (parenthesized_expression "(local_3c - iVar2)" ( (binary_expression "local_3c - iVar2" identifier - identifier) )))) ;) (expression_statement "local_3c = iVar2;" (assignment_expression "local_3c = iVar2" identifier = identifier) ;) })) (expression_statement "sVar7 = (iVar1 + pIVar3->columns) - local_38;" (assignment_expression "sVar7 = (iVar1 + pIVar3->columns) - local_38" identifier = (binary_expression "(iVar1 + pIVar3->columns) - local_38" (parenthesized_expression "(iVar1 + pIVar3->columns)" ( (binary_expression "iVar1 + pIVar3->columns" identifier + (field_expression "pIVar3->columns" identifier -> field_identifier)) )) - identifier)) ;) (if_statement "if ((int)sVar7 <= (int)local_44) {\n        sVar7 = local_44;\n      }" if (parenthesized_expression "((int)sVar7 <= (int)local_44)" ( (binary_expression "(int)sVar7 <= (int)local_44" (cast_expression "(int)sVar7" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)local_44" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        sVar7 = local_44;\n      }" { (expression_statement "sVar7 = local_44;" (assignment_expression "sVar7 = local_44" identifier = identifier) ;) })) (expression_statement "sVar10 = (iVar2 + pIVar3->rows) - local_3c;" (assignment_expression "sVar10 = (iVar2 + pIVar3->rows) - local_3c" identifier = (binary_expression "(iVar2 + pIVar3->rows) - local_3c" (parenthesized_expression "(iVar2 + pIVar3->rows)" ( (binary_expression "iVar2 + pIVar3->rows" identifier + (field_expression "pIVar3->rows" identifier -> field_identifier)) )) - identifier)) ;) (if_statement "if ((int)sVar10 <= (int)local_4c) {\n        sVar10 = local_4c;\n      }" if (parenthesized_expression "((int)sVar10 <= (int)local_4c)" ( (binary_expression "(int)sVar10 <= (int)local_4c" (cast_expression "(int)sVar10" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)local_4c" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        sVar10 = local_4c;\n      }" { (expression_statement "sVar10 = local_4c;" (assignment_expression "sVar10 = local_4c" identifier = identifier) ;) })) (expression_statement "pIVar3 = GetNextImageInList(pIVar3);" (assignment_expression "pIVar3 = GetNextImageInList(pIVar3)" identifier = (call_expression "GetNextImageInList(pIVar3)" identifier (argument_list "(pIVar3)" ( identifier )))) ;) (expression_statement "local_44 = sVar7;" (assignment_expression "local_44 = sVar7" identifier = identifier) ;) (expression_statement "local_4c = sVar10;" (assignment_expression "local_4c = sVar10" identifier = identifier) ;) })) (if_statement "if ((sVar4 == 0) && (sVar4 = local_44, -1 < local_38)) {\n      sVar4 = local_38 + local_44;\n    }" if (parenthesized_expression "((sVar4 == 0) && (sVar4 = local_44, -1 < local_38))" ( (binary_expression "(sVar4 == 0) && (sVar4 = local_44, -1 < local_38)" (parenthesized_expression "(sVar4 == 0)" ( (binary_expression "sVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "(sVar4 = local_44, -1 < local_38)" ( (comma_expression "sVar4 = local_44, -1 < local_38" (assignment_expression "sVar4 = local_44" identifier = identifier) , (binary_expression "-1 < local_38" number_literal < identifier)) ))) )) (compound_statement "{\n      sVar4 = local_38 + local_44;\n    }" { (expression_statement "sVar4 = local_38 + local_44;" (assignment_expression "sVar4 = local_38 + local_44" identifier = (binary_expression "local_38 + local_44" identifier + identifier)) ;) })) (if_statement "if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;" if (parenthesized_expression "((local_40 == 0) && (local_40 = local_4c, -1 < local_3c))" ( (binary_expression "(local_40 == 0) && (local_40 = local_4c, -1 < local_3c)" (parenthesized_expression "(local_40 == 0)" ( (binary_expression "local_40 == 0" identifier == number_literal) )) && (parenthesized_expression "(local_40 = local_4c, -1 < local_3c)" ( (comma_expression "local_40 = local_4c, -1 < local_3c" (assignment_expression "local_40 = local_4c" identifier = identifier) , (binary_expression "-1 < local_3c" number_literal < identifier)) ))) )) (goto_statement "goto LAB_00100be8;" goto statement_identifier ;)) }))) (expression_statement "sVar7 = sVar4;" (assignment_expression "sVar7 = sVar4" identifier = identifier) ;) (if_statement "if (method == TrimBoundsLayer) {\n    sVar4 = GetImageListLength(image);\n    if ((int)sVar4 < 1) {\n      return (Image *)0x0;\n    }\n    uVar12 = 0;\n    uVar13 = 0;\n    while( true ) {\n      (image->page).x = iVar5 - local_38;\n      (image->page).y = iVar8 - local_3c;\n      (image->page).width = local_44;\n      (image->page).height = local_4c;\n      MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);\n      if (MVar6 == MagickFalse) {\n        return (Image *)0x0;\n      }\n      image = GetNextImageInList(image);\n      if (image == (Image *)0x0) break;\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      uVar13 = uVar13 + bVar14;\n      if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {\n        return (Image *)0x0;\n      }\n      iVar5 = (image->page).x;\n      iVar8 = (image->page).y;\n    }\n    return (Image *)0x0;\n  }" if (parenthesized_expression "(method == TrimBoundsLayer)" ( (binary_expression "method == TrimBoundsLayer" identifier == identifier) )) (compound_statement "{\n    sVar4 = GetImageListLength(image);\n    if ((int)sVar4 < 1) {\n      return (Image *)0x0;\n    }\n    uVar12 = 0;\n    uVar13 = 0;\n    while( true ) {\n      (image->page).x = iVar5 - local_38;\n      (image->page).y = iVar8 - local_3c;\n      (image->page).width = local_44;\n      (image->page).height = local_4c;\n      MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);\n      if (MVar6 == MagickFalse) {\n        return (Image *)0x0;\n      }\n      image = GetNextImageInList(image);\n      if (image == (Image *)0x0) break;\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      uVar13 = uVar13 + bVar14;\n      if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {\n        return (Image *)0x0;\n      }\n      iVar5 = (image->page).x;\n      iVar8 = (image->page).y;\n    }\n    return (Image *)0x0;\n  }" { (expression_statement "sVar4 = GetImageListLength(image);" (assignment_expression "sVar4 = GetImageListLength(image)" identifier = (call_expression "GetImageListLength(image)" identifier (argument_list "(image)" ( identifier )))) ;) (if_statement "if ((int)sVar4 < 1) {\n      return (Image *)0x0;\n    }" if (parenthesized_expression "((int)sVar4 < 1)" ( (binary_expression "(int)sVar4 < 1" (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      return (Image *)0x0;\n    }" { (return_statement "return (Image *)0x0;" return (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "uVar12 = 0;" (assignment_expression "uVar12 = 0" identifier = number_literal) ;) (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      (image->page).x = iVar5 - local_38;\n      (image->page).y = iVar8 - local_3c;\n      (image->page).width = local_44;\n      (image->page).height = local_4c;\n      MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);\n      if (MVar6 == MagickFalse) {\n        return (Image *)0x0;\n      }\n      image = GetNextImageInList(image);\n      if (image == (Image *)0x0) break;\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      uVar13 = uVar13 + bVar14;\n      if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {\n        return (Image *)0x0;\n      }\n      iVar5 = (image->page).x;\n      iVar8 = (image->page).y;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      (image->page).x = iVar5 - local_38;\n      (image->page).y = iVar8 - local_3c;\n      (image->page).width = local_44;\n      (image->page).height = local_4c;\n      MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);\n      if (MVar6 == MagickFalse) {\n        return (Image *)0x0;\n      }\n      image = GetNextImageInList(image);\n      if (image == (Image *)0x0) break;\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      uVar13 = uVar13 + bVar14;\n      if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {\n        return (Image *)0x0;\n      }\n      iVar5 = (image->page).x;\n      iVar8 = (image->page).y;\n    }" { (expression_statement "(image->page).x = iVar5 - local_38;" (assignment_expression "(image->page).x = iVar5 - local_38" (field_expression "(image->page).x" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier) = (binary_expression "iVar5 - local_38" identifier - identifier)) ;) (expression_statement "(image->page).y = iVar8 - local_3c;" (assignment_expression "(image->page).y = iVar8 - local_3c" (field_expression "(image->page).y" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier) = (binary_expression "iVar8 - local_3c" identifier - identifier)) ;) (expression_statement "(image->page).width = local_44;" (assignment_expression "(image->page).width = local_44" (field_expression "(image->page).width" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(image->page).height = local_4c;" (assignment_expression "(image->page).height = local_4c" (field_expression "(image->page).height" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);" (assignment_expression "MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4)" identifier = (call_expression "SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4)" identifier (argument_list "(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4)" ( identifier , (string_literal ""Merge/Layers"" " string_content ") , (call_expression "CONCAT44(uVar13,uVar12)" identifier (argument_list "(uVar13,uVar12)" ( identifier , identifier ))) , (cast_expression "(ulonglong)sVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) )))) ;) (if_statement "if (MVar6 == MagickFalse) {\n        return (Image *)0x0;\n      }" if (parenthesized_expression "(MVar6 == MagickFalse)" ( (binary_expression "MVar6 == MagickFalse" identifier == identifier) )) (compound_statement "{\n        return (Image *)0x0;\n      }" { (return_statement "return (Image *)0x0;" return (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "image = GetNextImageInList(image);" (assignment_expression "image = GetNextImageInList(image)" identifier = (call_expression "GetNextImageInList(image)" identifier (argument_list "(image)" ( identifier )))) ;) (if_statement "if (image == (Image *)0x0) break;" 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)) )) (break_statement "break;" break ;)) (expression_statement "bVar14 = 0xfffffffe < uVar12;" (assignment_expression "bVar14 = 0xfffffffe < uVar12" identifier = (binary_expression "0xfffffffe < uVar12" number_literal < identifier)) ;) (expression_statement "uVar12 = uVar12 + 1;" (assignment_expression "uVar12 = uVar12 + 1" identifier = (binary_expression "uVar12 + 1" identifier + number_literal)) ;) (expression_statement "uVar13 = uVar13 + bVar14;" (assignment_expression "uVar13 = uVar13 + bVar14" identifier = (binary_expression "uVar13 + bVar14" identifier + identifier)) ;) (if_statement "if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {\n        return (Image *)0x0;\n      }" if (parenthesized_expression "(0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12)" ( (binary_expression "0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12" (binary_expression "0xfffffffe < sVar4 - 1 == uVar13" (binary_expression "0xfffffffe < sVar4 - 1" number_literal < (binary_expression "sVar4 - 1" identifier - number_literal)) == identifier) && (binary_expression "sVar4 == uVar12" identifier == identifier)) )) (compound_statement "{\n        return (Image *)0x0;\n      }" { (return_statement "return (Image *)0x0;" return (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar5 = (image->page).x;" (assignment_expression "iVar5 = (image->page).x" identifier = (field_expression "(image->page).x" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar8 = (image->page).y;" (assignment_expression "iVar8 = (image->page).y" identifier = (field_expression "(image->page).y" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier)) ;) })) (return_statement "return (Image *)0x0;" return (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (labeled_statement "LAB_00100a5b:\n  pIVar3 = CloneImage(image,local_44,local_4c,MagickTrue,exception);" statement_identifier : (expression_statement "pIVar3 = CloneImage(image,local_44,local_4c,MagickTrue,exception);" (assignment_expression "pIVar3 = CloneImage(image,local_44,local_4c,MagickTrue,exception)" identifier = (call_expression "CloneImage(image,local_44,local_4c,MagickTrue,exception)" identifier (argument_list "(image,local_44,local_4c,MagickTrue,exception)" ( identifier , identifier , identifier , identifier , identifier )))) ;)) (if_statement "if (pIVar3 == (Image *)0x0) {\n    return (Image *)0x0;\n  }" if (parenthesized_expression "(pIVar3 == (Image *)0x0)" ( (binary_expression "pIVar3 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (Image *)0x0;\n  }" { (return_statement "return (Image *)0x0;" return (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "(pIVar3->background_color).alpha_trait = BlendPixelTrait;" (assignment_expression "(pIVar3->background_color).alpha_trait = BlendPixelTrait" (field_expression "(pIVar3->background_color).alpha_trait" (parenthesized_expression "(pIVar3->background_color)" ( (field_expression "pIVar3->background_color" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "SetImageBackgroundColor(pIVar3,exception);" (call_expression "SetImageBackgroundColor(pIVar3,exception)" identifier (argument_list "(pIVar3,exception)" ( identifier , identifier ))) ;) (expression_statement "(pIVar3->page).width = sVar7;" (assignment_expression "(pIVar3->page).width = sVar7" (field_expression "(pIVar3->page).width" (parenthesized_expression "(pIVar3->page)" ( (field_expression "pIVar3->page" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(pIVar3->page).height = local_40;" (assignment_expression "(pIVar3->page).height = local_40" (field_expression "(pIVar3->page).height" (parenthesized_expression "(pIVar3->page)" ( (field_expression "pIVar3->page" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "pIVar3->dispose = UndefinedDispose;" (assignment_expression "pIVar3->dispose = UndefinedDispose" (field_expression "pIVar3->dispose" identifier -> field_identifier) = identifier) ;) (expression_statement "(pIVar3->page).y = local_3c;" (assignment_expression "(pIVar3->page).y = local_3c" (field_expression "(pIVar3->page).y" (parenthesized_expression "(pIVar3->page)" ( (field_expression "pIVar3->page" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(pIVar3->page).x = local_38;" (assignment_expression "(pIVar3->page).x = local_38" (field_expression "(pIVar3->page).x" (parenthesized_expression "(pIVar3->page)" ( (field_expression "pIVar3->page" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "sVar4 = GetImageListLength(image);" (assignment_expression "sVar4 = GetImageListLength(image)" identifier = (call_expression "GetImageListLength(image)" identifier (argument_list "(image)" ( identifier )))) ;) (if_statement "if (0 < (int)sVar4) {\n    uVar12 = 0;\n    uVar13 = 0;\n    while( true ) {\n      CompositeImage(pIVar3,image,image->compose,MagickTrue,(image->page).x - local_38,\n                     (image->page).y - local_3c,exception);\n      MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);\n      if ((MVar6 == MagickFalse) || (image = GetNextImageInList(image), image == (Image *)0x0))\n      break;\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      uVar13 = uVar13 + bVar14;\n      if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {\n        return pIVar3;\n      }\n      local_3c = (pIVar3->page).y;\n      local_38 = (pIVar3->page).x;\n    }\n  }" if (parenthesized_expression "(0 < (int)sVar4)" ( (binary_expression "0 < (int)sVar4" number_literal < (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar12 = 0;\n    uVar13 = 0;\n    while( true ) {\n      CompositeImage(pIVar3,image,image->compose,MagickTrue,(image->page).x - local_38,\n                     (image->page).y - local_3c,exception);\n      MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);\n      if ((MVar6 == MagickFalse) || (image = GetNextImageInList(image), image == (Image *)0x0))\n      break;\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      uVar13 = uVar13 + bVar14;\n      if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {\n        return pIVar3;\n      }\n      local_3c = (pIVar3->page).y;\n      local_38 = (pIVar3->page).x;\n    }\n  }" { (expression_statement "uVar12 = 0;" (assignment_expression "uVar12 = 0" identifier = number_literal) ;) (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      CompositeImage(pIVar3,image,image->compose,MagickTrue,(image->page).x - local_38,\n                     (image->page).y - local_3c,exception);\n      MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);\n      if ((MVar6 == MagickFalse) || (image = GetNextImageInList(image), image == (Image *)0x0))\n      break;\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      uVar13 = uVar13 + bVar14;\n      if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {\n        return pIVar3;\n      }\n      local_3c = (pIVar3->page).y;\n      local_38 = (pIVar3->page).x;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      CompositeImage(pIVar3,image,image->compose,MagickTrue,(image->page).x - local_38,\n                     (image->page).y - local_3c,exception);\n      MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);\n      if ((MVar6 == MagickFalse) || (image = GetNextImageInList(image), image == (Image *)0x0))\n      break;\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      uVar13 = uVar13 + bVar14;\n      if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {\n        return pIVar3;\n      }\n      local_3c = (pIVar3->page).y;\n      local_38 = (pIVar3->page).x;\n    }" { (expression_statement "CompositeImage(pIVar3,image,image->compose,MagickTrue,(image->page).x - local_38,\n                     (image->page).y - local_3c,exception);" (call_expression "CompositeImage(pIVar3,image,image->compose,MagickTrue,(image->page).x - local_38,\n                     (image->page).y - local_3c,exception)" identifier (argument_list "(pIVar3,image,image->compose,MagickTrue,(image->page).x - local_38,\n                     (image->page).y - local_3c,exception)" ( identifier , identifier , (field_expression "image->compose" identifier -> field_identifier) , identifier , (binary_expression "(image->page).x - local_38" (field_expression "(image->page).x" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier) - identifier) , (binary_expression "(image->page).y - local_3c" (field_expression "(image->page).y" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier) - identifier) , identifier ))) ;) (expression_statement "MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4);" (assignment_expression "MVar6 = SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4)" identifier = (call_expression "SetImageProgress(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4)" identifier (argument_list "(image,"Merge/Layers",CONCAT44(uVar13,uVar12),(ulonglong)sVar4)" ( identifier , (string_literal ""Merge/Layers"" " string_content ") , (call_expression "CONCAT44(uVar13,uVar12)" identifier (argument_list "(uVar13,uVar12)" ( identifier , identifier ))) , (cast_expression "(ulonglong)sVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) )))) ;) (if_statement "if ((MVar6 == MagickFalse) || (image = GetNextImageInList(image), image == (Image *)0x0))\n      break;" if (parenthesized_expression "((MVar6 == MagickFalse) || (image = GetNextImageInList(image), image == (Image *)0x0))" ( (binary_expression "(MVar6 == MagickFalse) || (image = GetNextImageInList(image), image == (Image *)0x0)" (parenthesized_expression "(MVar6 == MagickFalse)" ( (binary_expression "MVar6 == MagickFalse" identifier == identifier) )) || (parenthesized_expression "(image = GetNextImageInList(image), image == (Image *)0x0)" ( (comma_expression "image = GetNextImageInList(image), image == (Image *)0x0" (assignment_expression "image = GetNextImageInList(image)" identifier = (call_expression "GetNextImageInList(image)" identifier (argument_list "(image)" ( identifier )))) , (binary_expression "image == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (break_statement "break;" break ;)) (expression_statement "bVar14 = 0xfffffffe < uVar12;" (assignment_expression "bVar14 = 0xfffffffe < uVar12" identifier = (binary_expression "0xfffffffe < uVar12" number_literal < identifier)) ;) (expression_statement "uVar12 = uVar12 + 1;" (assignment_expression "uVar12 = uVar12 + 1" identifier = (binary_expression "uVar12 + 1" identifier + number_literal)) ;) (expression_statement "uVar13 = uVar13 + bVar14;" (assignment_expression "uVar13 = uVar13 + bVar14" identifier = (binary_expression "uVar13 + bVar14" identifier + identifier)) ;) (if_statement "if (0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12) {\n        return pIVar3;\n      }" if (parenthesized_expression "(0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12)" ( (binary_expression "0xfffffffe < sVar4 - 1 == uVar13 && sVar4 == uVar12" (binary_expression "0xfffffffe < sVar4 - 1 == uVar13" (binary_expression "0xfffffffe < sVar4 - 1" number_literal < (binary_expression "sVar4 - 1" identifier - number_literal)) == identifier) && (binary_expression "sVar4 == uVar12" identifier == identifier)) )) (compound_statement "{\n        return pIVar3;\n      }" { (return_statement "return pIVar3;" return identifier ;) })) (expression_statement "local_3c = (pIVar3->page).y;" (assignment_expression "local_3c = (pIVar3->page).y" identifier = (field_expression "(pIVar3->page).y" (parenthesized_expression "(pIVar3->page)" ( (field_expression "pIVar3->page" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "local_38 = (pIVar3->page).x;" (assignment_expression "local_38 = (pIVar3->page).x" identifier = (field_expression "(pIVar3->page).x" (parenthesized_expression "(pIVar3->page)" ( (field_expression "pIVar3->page" identifier -> field_identifier) )) . field_identifier)) ;) })) })) (return_statement "return pIVar3;" return identifier ;) })))
(translation_unit "int MergeImageLayers(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  bool bVar11;\n  int local_4c;\n  int local_44;\n  int local_40;\n  int local_3c;\n  int local_38;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);\n  }\n  if (param_3 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }\n  if (*(int *)(param_3 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }\n  local_40 = *(int *)(param_1 + 0x204);\n  iVar3 = *(int *)(param_1 + 0x208);\n  iVar4 = *(int *)(param_1 + 0x20c);\n  iVar1 = *(int *)(param_1 + 0x18);\n  iVar10 = *(int *)(param_1 + 0x200);\n  local_4c = *(int *)(param_1 + 0x1c);\n  local_44 = iVar1;\n  if (param_2 == 0xe) {\n    if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = iVar10;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }\n  else {\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }\n  iVar1 = iVar10;\n  if (param_2 == 0x10) {\n    uVar2 = GetImageListLength(param_1);\n    if ((int)uVar2 < 1) {\n      return 0;\n    }\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }\n    return 0;\n  }\nLAB_00100a5b:\n  iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  *(undefined4 *)(iVar3 + 0x84) = 4;\n  SetImageBackgroundColor(iVar3,param_3);\n  *(int *)(iVar3 + 0x200) = iVar1;\n  *(int *)(iVar3 + 0x204) = local_40;\n  *(undefined4 *)(iVar3 + 0x240) = 0;\n  *(int *)(iVar3 + 0x20c) = local_3c;\n  *(int *)(iVar3 + 0x208) = local_38;\n  uVar2 = GetImageListLength(param_1);\n  if (0 < (int)uVar2) {\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }\n  }\n  return iVar3;\n}\n\n" (function_definition "int MergeImageLayers(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  bool bVar11;\n  int local_4c;\n  int local_44;\n  int local_40;\n  int local_3c;\n  int local_38;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);\n  }\n  if (param_3 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }\n  if (*(int *)(param_3 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }\n  local_40 = *(int *)(param_1 + 0x204);\n  iVar3 = *(int *)(param_1 + 0x208);\n  iVar4 = *(int *)(param_1 + 0x20c);\n  iVar1 = *(int *)(param_1 + 0x18);\n  iVar10 = *(int *)(param_1 + 0x200);\n  local_4c = *(int *)(param_1 + 0x1c);\n  local_44 = iVar1;\n  if (param_2 == 0xe) {\n    if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = iVar10;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }\n  else {\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }\n  iVar1 = iVar10;\n  if (param_2 == 0x10) {\n    uVar2 = GetImageListLength(param_1);\n    if ((int)uVar2 < 1) {\n      return 0;\n    }\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }\n    return 0;\n  }\nLAB_00100a5b:\n  iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  *(undefined4 *)(iVar3 + 0x84) = 4;\n  SetImageBackgroundColor(iVar3,param_3);\n  *(int *)(iVar3 + 0x200) = iVar1;\n  *(int *)(iVar3 + 0x204) = local_40;\n  *(undefined4 *)(iVar3 + 0x240) = 0;\n  *(int *)(iVar3 + 0x20c) = local_3c;\n  *(int *)(iVar3 + 0x208) = local_38;\n  uVar2 = GetImageListLength(param_1);\n  if (0 < (int)uVar2) {\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }\n  }\n  return iVar3;\n}" primitive_type (function_declarator "MergeImageLayers(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  bool bVar11;\n  int local_4c;\n  int local_44;\n  int local_40;\n  int local_3c;\n  int local_38;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);\n  }\n  if (param_3 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }\n  if (*(int *)(param_3 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }\n  local_40 = *(int *)(param_1 + 0x204);\n  iVar3 = *(int *)(param_1 + 0x208);\n  iVar4 = *(int *)(param_1 + 0x20c);\n  iVar1 = *(int *)(param_1 + 0x18);\n  iVar10 = *(int *)(param_1 + 0x200);\n  local_4c = *(int *)(param_1 + 0x1c);\n  local_44 = iVar1;\n  if (param_2 == 0xe) {\n    if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = iVar10;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }\n  else {\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }\n  iVar1 = iVar10;\n  if (param_2 == 0x10) {\n    uVar2 = GetImageListLength(param_1);\n    if ((int)uVar2 < 1) {\n      return 0;\n    }\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }\n    return 0;\n  }\nLAB_00100a5b:\n  iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  *(undefined4 *)(iVar3 + 0x84) = 4;\n  SetImageBackgroundColor(iVar3,param_3);\n  *(int *)(iVar3 + 0x200) = iVar1;\n  *(int *)(iVar3 + 0x204) = local_40;\n  *(undefined4 *)(iVar3 + 0x240) = 0;\n  *(int *)(iVar3 + 0x20c) = local_3c;\n  *(int *)(iVar3 + 0x208) = local_38;\n  uVar2 = GetImageListLength(param_1);\n  if (0 < (int)uVar2) {\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }\n  }\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier 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 "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "bool bVar11;" primitive_type identifier ;) (declaration "int local_4c;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "int local_38;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }" { (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers")" identifier (argument_list "("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""MergeImageLayers"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3344) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" * (cast_expression "(int *)(param_1 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3344)" ( (binary_expression "param_1 + 0x3344" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }" { (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""MergeImageLayers"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3328) != 0)" ( (binary_expression "*(int *)(param_1 + 0x3328) != 0" (pointer_expression "*(int *)(param_1 + 0x3328)" * (cast_expression "(int *)(param_1 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3328)" ( (binary_expression "param_1 + 0x3328" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318)" ( number_literal , (string_literal ""MagickCore/layer.c"" " string_content ") , (string_literal ""MergeImageLayers"" " string_content ") , number_literal , (pointer_expression "&DAT_002f75ae" & identifier) , (binary_expression "param_1 + 0x318" identifier + number_literal) ))) ;) })) (if_statement "if (param_3 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }" { (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""MergeImageLayers"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_3 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0x1c) != -0x54535255)" ( (binary_expression "*(int *)(param_3 + 0x1c) != -0x54535255" (pointer_expression "*(int *)(param_3 + 0x1c)" * (cast_expression "(int *)(param_3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }" { (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers")" identifier (argument_list "("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers")" ( (string_literal ""exception->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/layer.c"" " string_content ") , number_literal , (string_literal ""MergeImageLayers"" " string_content ") ))) ;) })) (expression_statement "local_40 = *(int *)(param_1 + 0x204);" (assignment_expression "local_40 = *(int *)(param_1 + 0x204)" identifier = (pointer_expression "*(int *)(param_1 + 0x204)" * (cast_expression "(int *)(param_1 + 0x204)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x204)" ( (binary_expression "param_1 + 0x204" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x208);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x208)" identifier = (pointer_expression "*(int *)(param_1 + 0x208)" * (cast_expression "(int *)(param_1 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x208)" ( (binary_expression "param_1 + 0x208" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x20c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x20c)" identifier = (pointer_expression "*(int *)(param_1 + 0x20c)" * (cast_expression "(int *)(param_1 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20c)" ( (binary_expression "param_1 + 0x20c" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "iVar10 = *(int *)(param_1 + 0x200);" (assignment_expression "iVar10 = *(int *)(param_1 + 0x200)" identifier = (pointer_expression "*(int *)(param_1 + 0x200)" * (cast_expression "(int *)(param_1 + 0x200)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x200)" ( (binary_expression "param_1 + 0x200" identifier + number_literal) ))))) ;) (expression_statement "local_4c = *(int *)(param_1 + 0x1c);" (assignment_expression "local_4c = *(int *)(param_1 + 0x1c)" identifier = (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "local_44 = iVar1;" (assignment_expression "local_44 = iVar1" identifier = identifier) ;) (if_statement "if (param_2 == 0xe) {\n    if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = iVar10;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }\n  else {\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }" if (parenthesized_expression "(param_2 == 0xe)" ( (binary_expression "param_2 == 0xe" identifier == number_literal) )) (compound_statement "{\n    if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = iVar10;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }" { (if_statement "if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }" { (expression_statement "iVar10 = iVar1;" (assignment_expression "iVar10 = iVar1" identifier = identifier) ;) (if_statement "if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }" if (parenthesized_expression "(local_40 != 0)" ( (binary_expression "local_40 != 0" identifier != number_literal) )) (compound_statement "{\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }" { (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_4c = local_40;" (assignment_expression "local_4c = local_40" identifier = identifier) ;) (goto_statement "goto LAB_00100a5b;" goto statement_identifier ;) })) }) (else_clause "else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }" else (compound_statement "{\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }" { (expression_statement "local_44 = iVar10;" (assignment_expression "local_44 = iVar10" identifier = identifier) ;) (if_statement "if (local_40 != 0) goto LAB_00100a44;" if (parenthesized_expression "(local_40 != 0)" ( (binary_expression "local_40 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00100a44;" goto statement_identifier ;)) }))) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_44 = iVar10;" (assignment_expression "local_44 = iVar10" identifier = identifier) ;) (labeled_statement "LAB_00100be8:\n    local_40 = local_3c + local_4c;" statement_identifier : (expression_statement "local_40 = local_3c + local_4c;" (assignment_expression "local_40 = local_3c + local_4c" identifier = (binary_expression "local_3c + local_4c" identifier + identifier)) ;)) }) (else_clause "else {\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }" else (compound_statement "{\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }" { (if_statement "if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }" if (parenthesized_expression "(param_2 == 0xf)" ( (binary_expression "param_2 == 0xf" identifier == number_literal) )) (compound_statement "{\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }" { (if_statement "if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar10 = iVar1;\n      }" { (expression_statement "iVar10 = iVar1;" (assignment_expression "iVar10 = iVar1" identifier = identifier) ;) })) (expression_statement "iVar5 = param_1;" (assignment_expression "iVar5 = param_1" identifier = identifier) ;) (expression_statement "iVar6 = iVar4;" (assignment_expression "iVar6 = iVar4" identifier = identifier) ;) (expression_statement "iVar7 = iVar3;" (assignment_expression "iVar7 = iVar3" identifier = identifier) ;) (if_statement "if (local_40 == 0) {\n        local_40 = local_4c;\n      }" if (parenthesized_expression "(local_40 == 0)" ( (binary_expression "local_40 == 0" identifier == number_literal) )) (compound_statement "{\n        local_40 = local_4c;\n      }" { (expression_statement "local_40 = local_4c;" (assignment_expression "local_40 = local_4c" identifier = identifier) ;) })) (while_statement "while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }" { (if_statement "if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }" if (parenthesized_expression "(iVar10 < iVar1 + iVar7)" ( (binary_expression "iVar10 < iVar1 + iVar7" identifier < (binary_expression "iVar1 + iVar7" identifier + identifier)) )) (compound_statement "{\n          iVar10 = iVar1 + iVar7;\n        }" { (expression_statement "iVar10 = iVar1 + iVar7;" (assignment_expression "iVar10 = iVar1 + iVar7" identifier = (binary_expression "iVar1 + iVar7" identifier + identifier)) ;) })) (expression_statement "iVar1 = local_4c + iVar6;" (assignment_expression "iVar1 = local_4c + iVar6" identifier = (binary_expression "local_4c + iVar6" identifier + identifier)) ;) (if_statement "if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }" if (parenthesized_expression "(local_4c + iVar6 <= local_40)" ( (binary_expression "local_4c + iVar6 <= local_40" (binary_expression "local_4c + iVar6" identifier + identifier) <= identifier) )) (compound_statement "{\n          iVar1 = local_40;\n        }" { (expression_statement "iVar1 = local_40;" (assignment_expression "iVar1 = local_40" identifier = identifier) ;) })) (expression_statement "iVar5 = GetNextImageInList(iVar5);" (assignment_expression "iVar5 = GetNextImageInList(iVar5)" identifier = (call_expression "GetNextImageInList(iVar5)" identifier (argument_list "(iVar5)" ( identifier )))) ;) (expression_statement "local_40 = iVar1;" (assignment_expression "local_40 = iVar1" identifier = identifier) ;) (if_statement "if (iVar5 == 0) break;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *(int *)(iVar5 + 0x18);" (assignment_expression "iVar1 = *(int *)(iVar5 + 0x18)" identifier = (pointer_expression "*(int *)(iVar5 + 0x18)" * (cast_expression "(int *)(iVar5 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "local_4c = *(int *)(iVar5 + 0x1c);" (assignment_expression "local_4c = *(int *)(iVar5 + 0x1c)" identifier = (pointer_expression "*(int *)(iVar5 + 0x1c)" * (cast_expression "(int *)(iVar5 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(iVar5 + 0x20c);" (assignment_expression "iVar6 = *(int *)(iVar5 + 0x20c)" identifier = (pointer_expression "*(int *)(iVar5 + 0x20c)" * (cast_expression "(int *)(iVar5 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20c)" ( (binary_expression "iVar5 + 0x20c" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = *(int *)(iVar5 + 0x208);" (assignment_expression "iVar7 = *(int *)(iVar5 + 0x208)" identifier = (pointer_expression "*(int *)(iVar5 + 0x208)" * (cast_expression "(int *)(iVar5 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x208)" ( (binary_expression "iVar5 + 0x208" identifier + number_literal) ))))) ;) })) (if_statement "if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }" { (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }" { (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00100be8;" goto statement_identifier ;) })) }) (else_clause "else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }" else (compound_statement "{\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }" { (expression_statement "local_44 = iVar10;" (assignment_expression "local_44 = iVar10" identifier = identifier) ;) (if_statement "if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }" { (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00100be8;" goto statement_identifier ;) })) }))) (labeled_statement "LAB_00100a44:\n      local_3c = 0;" statement_identifier : (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;)) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_4c = local_40;" (assignment_expression "local_4c = local_40" identifier = identifier) ;) (expression_statement "iVar1 = iVar10;" (assignment_expression "iVar1 = iVar10" identifier = identifier) ;) (goto_statement "goto LAB_00100a5b;" goto statement_identifier ;) })) (expression_statement "iVar1 = GetNextImageInList(param_1);" (assignment_expression "iVar1 = GetNextImageInList(param_1)" identifier = (call_expression "GetNextImageInList(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "local_38 = iVar3;" (assignment_expression "local_38 = iVar3" identifier = identifier) ;) (expression_statement "local_3c = iVar4;" (assignment_expression "local_3c = iVar4" identifier = identifier) ;) (while_statement "while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }" { (expression_statement "iVar5 = *(int *)(iVar1 + 0x208);" (assignment_expression "iVar5 = *(int *)(iVar1 + 0x208)" identifier = (pointer_expression "*(int *)(iVar1 + 0x208)" * (cast_expression "(int *)(iVar1 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x208)" ( (binary_expression "iVar1 + 0x208" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }" if (parenthesized_expression "(iVar5 < local_38)" ( (binary_expression "iVar5 < local_38" identifier < identifier) )) (compound_statement "{\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }" { (expression_statement "local_44 = local_44 + (local_38 - iVar5);" (assignment_expression "local_44 = local_44 + (local_38 - iVar5)" identifier = (binary_expression "local_44 + (local_38 - iVar5)" identifier + (parenthesized_expression "(local_38 - iVar5)" ( (binary_expression "local_38 - iVar5" identifier - identifier) )))) ;) (expression_statement "local_38 = iVar5;" (assignment_expression "local_38 = iVar5" identifier = identifier) ;) })) (expression_statement "iVar6 = *(int *)(iVar1 + 0x20c);" (assignment_expression "iVar6 = *(int *)(iVar1 + 0x20c)" identifier = (pointer_expression "*(int *)(iVar1 + 0x20c)" * (cast_expression "(int *)(iVar1 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20c)" ( (binary_expression "iVar1 + 0x20c" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }" if (parenthesized_expression "(iVar6 < local_3c)" ( (binary_expression "iVar6 < local_3c" identifier < identifier) )) (compound_statement "{\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }" { (expression_statement "local_4c = local_4c + (local_3c - iVar6);" (assignment_expression "local_4c = local_4c + (local_3c - iVar6)" identifier = (binary_expression "local_4c + (local_3c - iVar6)" identifier + (parenthesized_expression "(local_3c - iVar6)" ( (binary_expression "local_3c - iVar6" identifier - identifier) )))) ;) (expression_statement "local_3c = iVar6;" (assignment_expression "local_3c = iVar6" identifier = identifier) ;) })) (expression_statement "iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;" (assignment_expression "iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38" identifier = (binary_expression "(iVar5 + *(int *)(iVar1 + 0x18)) - local_38" (parenthesized_expression "(iVar5 + *(int *)(iVar1 + 0x18))" ( (binary_expression "iVar5 + *(int *)(iVar1 + 0x18)" identifier + (pointer_expression "*(int *)(iVar1 + 0x18)" * (cast_expression "(int *)(iVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) ))))) )) - identifier)) ;) (if_statement "if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }" if (parenthesized_expression "(iVar5 <= local_44)" ( (binary_expression "iVar5 <= local_44" identifier <= identifier) )) (compound_statement "{\n        iVar5 = local_44;\n      }" { (expression_statement "iVar5 = local_44;" (assignment_expression "iVar5 = local_44" identifier = identifier) ;) })) (expression_statement "iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;" (assignment_expression "iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c" identifier = (binary_expression "(iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c" (parenthesized_expression "(iVar6 + *(int *)(iVar1 + 0x1c))" ( (binary_expression "iVar6 + *(int *)(iVar1 + 0x1c)" identifier + (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) ))))) )) - identifier)) ;) (if_statement "if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }" if (parenthesized_expression "(iVar6 <= local_4c)" ( (binary_expression "iVar6 <= local_4c" identifier <= identifier) )) (compound_statement "{\n        iVar6 = local_4c;\n      }" { (expression_statement "iVar6 = local_4c;" (assignment_expression "iVar6 = local_4c" identifier = identifier) ;) })) (expression_statement "iVar1 = GetNextImageInList(iVar1);" (assignment_expression "iVar1 = GetNextImageInList(iVar1)" identifier = (call_expression "GetNextImageInList(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "local_44 = iVar5;" (assignment_expression "local_44 = iVar5" identifier = identifier) ;) (expression_statement "local_4c = iVar6;" (assignment_expression "local_4c = iVar6" identifier = identifier) ;) })) (if_statement "if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }" if (parenthesized_expression "((iVar10 == 0) && (iVar10 = local_44, -1 < local_38))" ( (binary_expression "(iVar10 == 0) && (iVar10 = local_44, -1 < local_38)" (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar10 = local_44, -1 < local_38)" ( (comma_expression "iVar10 = local_44, -1 < local_38" (assignment_expression "iVar10 = local_44" identifier = identifier) , (binary_expression "-1 < local_38" number_literal < identifier)) ))) )) (compound_statement "{\n      iVar10 = local_38 + local_44;\n    }" { (expression_statement "iVar10 = local_38 + local_44;" (assignment_expression "iVar10 = local_38 + local_44" identifier = (binary_expression "local_38 + local_44" identifier + identifier)) ;) })) (if_statement "if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;" if (parenthesized_expression "((local_40 == 0) && (local_40 = local_4c, -1 < local_3c))" ( (binary_expression "(local_40 == 0) && (local_40 = local_4c, -1 < local_3c)" (parenthesized_expression "(local_40 == 0)" ( (binary_expression "local_40 == 0" identifier == number_literal) )) && (parenthesized_expression "(local_40 = local_4c, -1 < local_3c)" ( (comma_expression "local_40 = local_4c, -1 < local_3c" (assignment_expression "local_40 = local_4c" identifier = identifier) , (binary_expression "-1 < local_3c" number_literal < identifier)) ))) )) (goto_statement "goto LAB_00100be8;" goto statement_identifier ;)) }))) (expression_statement "iVar1 = iVar10;" (assignment_expression "iVar1 = iVar10" identifier = identifier) ;) (if_statement "if (param_2 == 0x10) {\n    uVar2 = GetImageListLength(param_1);\n    if ((int)uVar2 < 1) {\n      return 0;\n    }\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0x10)" ( (binary_expression "param_2 == 0x10" identifier == number_literal) )) (compound_statement "{\n    uVar2 = GetImageListLength(param_1);\n    if ((int)uVar2 < 1) {\n      return 0;\n    }\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }\n    return 0;\n  }" { (expression_statement "uVar2 = GetImageListLength(param_1);" (assignment_expression "uVar2 = GetImageListLength(param_1)" identifier = (call_expression "GetImageListLength(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if ((int)uVar2 < 1) {\n      return 0;\n    }" if (parenthesized_expression "((int)uVar2 < 1)" ( (binary_expression "(int)uVar2 < 1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }" { (expression_statement "*(int *)(param_1 + 0x208) = iVar3 - local_38;" (assignment_expression "*(int *)(param_1 + 0x208) = iVar3 - local_38" (pointer_expression "*(int *)(param_1 + 0x208)" * (cast_expression "(int *)(param_1 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x208)" ( (binary_expression "param_1 + 0x208" identifier + number_literal) )))) = (binary_expression "iVar3 - local_38" identifier - identifier)) ;) (expression_statement "*(int *)(param_1 + 0x20c) = iVar4 - local_3c;" (assignment_expression "*(int *)(param_1 + 0x20c) = iVar4 - local_3c" (pointer_expression "*(int *)(param_1 + 0x20c)" * (cast_expression "(int *)(param_1 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20c)" ( (binary_expression "param_1 + 0x20c" identifier + number_literal) )))) = (binary_expression "iVar4 - local_3c" identifier - identifier)) ;) (expression_statement "*(int *)(param_1 + 0x200) = local_44;" (assignment_expression "*(int *)(param_1 + 0x200) = local_44" (pointer_expression "*(int *)(param_1 + 0x200)" * (cast_expression "(int *)(param_1 + 0x200)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x200)" ( (binary_expression "param_1 + 0x200" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x204) = local_4c;" (assignment_expression "*(int *)(param_1 + 0x204) = local_4c" (pointer_expression "*(int *)(param_1 + 0x204)" * (cast_expression "(int *)(param_1 + 0x204)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x204)" ( (binary_expression "param_1 + 0x204" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);" (assignment_expression "iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" identifier = (call_expression "SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" identifier (argument_list "(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" ( identifier , (string_literal ""Merge/Layers"" " string_content ") , identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1 = GetNextImageInList(param_1);" (assignment_expression "param_1 = GetNextImageInList(param_1)" identifier = (call_expression "GetNextImageInList(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (param_1 == 0) break;" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "bVar11 = 0xfffffffe < uVar8;" (assignment_expression "bVar11 = 0xfffffffe < uVar8" identifier = (binary_expression "0xfffffffe < uVar8" number_literal < identifier)) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar9 = uVar9 + bVar11;" (assignment_expression "uVar9 = uVar9 + bVar11" identifier = (binary_expression "uVar9 + bVar11" identifier + identifier)) ;) (if_statement "if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }" if (parenthesized_expression "(0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8)" ( (binary_expression "0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8" (binary_expression "0xfffffffe < uVar2 - 1 == uVar9" (binary_expression "0xfffffffe < uVar2 - 1" number_literal < (binary_expression "uVar2 - 1" identifier - number_literal)) == identifier) && (binary_expression "uVar2 == uVar8" identifier == identifier)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = *(int *)(param_1 + 0x208);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x208)" identifier = (pointer_expression "*(int *)(param_1 + 0x208)" * (cast_expression "(int *)(param_1 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x208)" ( (binary_expression "param_1 + 0x208" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x20c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x20c)" identifier = (pointer_expression "*(int *)(param_1 + 0x20c)" * (cast_expression "(int *)(param_1 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20c)" ( (binary_expression "param_1 + 0x20c" identifier + number_literal) ))))) ;) })) (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_00100a5b:\n  iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3);" statement_identifier : (expression_statement "iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3);" (assignment_expression "iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3)" identifier = (call_expression "CloneImage(param_1,local_44,local_4c,1,param_3)" identifier (argument_list "(param_1,local_44,local_4c,1,param_3)" ( identifier , identifier , identifier , number_literal , identifier )))) ;)) (if_statement "if (iVar3 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined4 *)(iVar3 + 0x84) = 4;" (assignment_expression "*(undefined4 *)(iVar3 + 0x84) = 4" (pointer_expression "*(undefined4 *)(iVar3 + 0x84)" * (cast_expression "(undefined4 *)(iVar3 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x84)" ( (binary_expression "iVar3 + 0x84" identifier + number_literal) )))) = number_literal) ;) (expression_statement "SetImageBackgroundColor(iVar3,param_3);" (call_expression "SetImageBackgroundColor(iVar3,param_3)" identifier (argument_list "(iVar3,param_3)" ( identifier , identifier ))) ;) (expression_statement "*(int *)(iVar3 + 0x200) = iVar1;" (assignment_expression "*(int *)(iVar3 + 0x200) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x200)" * (cast_expression "(int *)(iVar3 + 0x200)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x200)" ( (binary_expression "iVar3 + 0x200" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar3 + 0x204) = local_40;" (assignment_expression "*(int *)(iVar3 + 0x204) = local_40" (pointer_expression "*(int *)(iVar3 + 0x204)" * (cast_expression "(int *)(iVar3 + 0x204)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x204)" ( (binary_expression "iVar3 + 0x204" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x240) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x240) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x240)" * (cast_expression "(undefined4 *)(iVar3 + 0x240)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x240)" ( (binary_expression "iVar3 + 0x240" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar3 + 0x20c) = local_3c;" (assignment_expression "*(int *)(iVar3 + 0x20c) = local_3c" (pointer_expression "*(int *)(iVar3 + 0x20c)" * (cast_expression "(int *)(iVar3 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20c)" ( (binary_expression "iVar3 + 0x20c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar3 + 0x208) = local_38;" (assignment_expression "*(int *)(iVar3 + 0x208) = local_38" (pointer_expression "*(int *)(iVar3 + 0x208)" * (cast_expression "(int *)(iVar3 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x208)" ( (binary_expression "iVar3 + 0x208" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = GetImageListLength(param_1);" (assignment_expression "uVar2 = GetImageListLength(param_1)" identifier = (call_expression "GetImageListLength(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (0 < (int)uVar2) {\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }\n  }" if (parenthesized_expression "(0 < (int)uVar2)" ( (binary_expression "0 < (int)uVar2" number_literal < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }" { (expression_statement "CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);" (call_expression "CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3)" identifier (argument_list "(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3)" ( identifier , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x23c)" * (cast_expression "(undefined4 *)(param_1 + 0x23c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x23c)" ( (binary_expression "param_1 + 0x23c" identifier + number_literal) )))) , number_literal , (binary_expression "*(int *)(param_1 + 0x208) - local_38" (pointer_expression "*(int *)(param_1 + 0x208)" * (cast_expression "(int *)(param_1 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x208)" ( (binary_expression "param_1 + 0x208" identifier + number_literal) )))) - identifier) , (binary_expression "*(int *)(param_1 + 0x20c) - local_3c" (pointer_expression "*(int *)(param_1 + 0x20c)" * (cast_expression "(int *)(param_1 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20c)" ( (binary_expression "param_1 + 0x20c" identifier + number_literal) )))) - identifier) , identifier ))) ;) (expression_statement "iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);" (assignment_expression "iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" identifier = (call_expression "SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" identifier (argument_list "(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" ( identifier , (string_literal ""Merge/Layers"" " string_content ") , identifier , identifier , identifier , number_literal )))) ;) (if_statement "if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;" if (parenthesized_expression "((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0))" ( (binary_expression "(iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_1 = GetNextImageInList(param_1), param_1 == 0)" ( (comma_expression "param_1 = GetNextImageInList(param_1), param_1 == 0" (assignment_expression "param_1 = GetNextImageInList(param_1)" identifier = (call_expression "GetNextImageInList(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "param_1 == 0" identifier == number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "bVar11 = 0xfffffffe < uVar8;" (assignment_expression "bVar11 = 0xfffffffe < uVar8" identifier = (binary_expression "0xfffffffe < uVar8" number_literal < identifier)) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar9 = uVar9 + bVar11;" (assignment_expression "uVar9 = uVar9 + bVar11" identifier = (binary_expression "uVar9 + bVar11" identifier + identifier)) ;) (if_statement "if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }" if (parenthesized_expression "(0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8)" ( (binary_expression "0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8" (binary_expression "0xfffffffe < uVar2 - 1 == uVar9" (binary_expression "0xfffffffe < uVar2 - 1" number_literal < (binary_expression "uVar2 - 1" identifier - number_literal)) == identifier) && (binary_expression "uVar2 == uVar8" identifier == identifier)) )) (compound_statement "{\n        return iVar3;\n      }" { (return_statement "return iVar3;" return identifier ;) })) (expression_statement "local_3c = *(int *)(iVar3 + 0x20c);" (assignment_expression "local_3c = *(int *)(iVar3 + 0x20c)" identifier = (pointer_expression "*(int *)(iVar3 + 0x20c)" * (cast_expression "(int *)(iVar3 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20c)" ( (binary_expression "iVar3 + 0x20c" identifier + number_literal) ))))) ;) (expression_statement "local_38 = *(int *)(iVar3 + 0x208);" (assignment_expression "local_38 = *(int *)(iVar3 + 0x208)" identifier = (pointer_expression "*(int *)(iVar3 + 0x208)" * (cast_expression "(int *)(iVar3 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x208)" ( (binary_expression "iVar3 + 0x208" identifier + number_literal) ))))) ;) })) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (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) ))))) ;) (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) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (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) ))))) ;) (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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ;) (expression_statement (assignment_expression IDENT = 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 < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression LIT < IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression LIT < IDENT)) ))) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_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 (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression LIT < IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (binary_expression LIT < (binary_expression IDENT - LIT)) == IDENT) && (binary_expression IDENT == IDENT)) )) (compound_statement { (return_statement return 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) ))))) ;) })) (return_statement return LIT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT , IDENT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (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) )))) = 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) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression LIT < IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (binary_expression LIT < (binary_expression IDENT - LIT)) == IDENT) && (binary_expression IDENT == IDENT)) )) (compound_statement { (return_statement return 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 IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "int MergeImageLayers(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  bool bVar11;\n  int local_4c;\n  int local_44;\n  int local_40;\n  int local_3c;\n  int local_38;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);\n  }\n  if (param_3 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }\n  if (*(int *)(param_3 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }\n  local_40 = *(int *)(param_1 + 0x204);\n  iVar3 = *(int *)(param_1 + 0x208);\n  iVar4 = *(int *)(param_1 + 0x20c);\n  iVar1 = *(int *)(param_1 + 0x18);\n  iVar10 = *(int *)(param_1 + 0x200);\n  local_4c = *(int *)(param_1 + 0x1c);\n  local_44 = iVar1;\n  if (param_2 == 0xe) {\n    if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = iVar10;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }\n  else {\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }\n  iVar1 = iVar10;\n  if (param_2 == 0x10) {\n    uVar2 = GetImageListLength(param_1);\n    if ((int)uVar2 < 1) {\n      return 0;\n    }\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }\n    return 0;\n  }\nLAB_00100a5b:\n  iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  *(undefined4 *)(iVar3 + 0x84) = 4;\n  SetImageBackgroundColor(iVar3,param_3);\n  *(int *)(iVar3 + 0x200) = iVar1;\n  *(int *)(iVar3 + 0x204) = local_40;\n  *(undefined4 *)(iVar3 + 0x240) = 0;\n  *(int *)(iVar3 + 0x20c) = local_3c;\n  *(int *)(iVar3 + 0x208) = local_38;\n  uVar2 = GetImageListLength(param_1);\n  if (0 < (int)uVar2) {\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "MergeImageLayers(int param_1,int param_2,int param_3)" (identifier "MergeImageLayers") (parameter_list "(int param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  bool bVar11;\n  int local_4c;\n  int local_44;\n  int local_40;\n  int local_3c;\n  int local_38;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }\n  if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);\n  }\n  if (param_3 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }\n  if (*(int *)(param_3 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }\n  local_40 = *(int *)(param_1 + 0x204);\n  iVar3 = *(int *)(param_1 + 0x208);\n  iVar4 = *(int *)(param_1 + 0x20c);\n  iVar1 = *(int *)(param_1 + 0x18);\n  iVar10 = *(int *)(param_1 + 0x200);\n  local_4c = *(int *)(param_1 + 0x1c);\n  local_44 = iVar1;\n  if (param_2 == 0xe) {\n    if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = iVar10;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }\n  else {\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }\n  iVar1 = iVar10;\n  if (param_2 == 0x10) {\n    uVar2 = GetImageListLength(param_1);\n    if ((int)uVar2 < 1) {\n      return 0;\n    }\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }\n    return 0;\n  }\nLAB_00100a5b:\n  iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  *(undefined4 *)(iVar3 + 0x84) = 4;\n  SetImageBackgroundColor(iVar3,param_3);\n  *(int *)(iVar3 + 0x200) = iVar1;\n  *(int *)(iVar3 + 0x204) = local_40;\n  *(undefined4 *)(iVar3 + 0x240) = 0;\n  *(int *)(iVar3 + 0x20c) = local_3c;\n  *(int *)(iVar3 + 0x208) = local_38;\n  uVar2 = GetImageListLength(param_1);\n  if (0 < (int)uVar2) {\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }\n  }\n  return iVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "bool bVar11;" (primitive_type "bool") (identifier "bVar11") (; ";")) (declaration "int local_4c;" (primitive_type "int") (identifier "local_4c") (; ";")) (declaration "int local_44;" (primitive_type "int") (identifier "local_44") (; ";")) (declaration "int local_40;" (primitive_type "int") (identifier "local_40") (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (declaration "int local_38;" (primitive_type "int") (identifier "local_38") (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");\n  }" ({ "{") (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers")" (identifier "__assert_fail") (argument_list "("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers")" (( "(") (string_literal ""image != (Image *) NULL"" (" """) (string_content "image != (Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/layer.c"" (" """) (string_content "MagickCore/layer.c") (" """)) (, ",") (number_literal "0x7ab") (, ",") (string_literal ""MergeImageLayers"" (" """) (string_content "MergeImageLayers") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x3344) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x3344) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" (* "*") (cast_expression "(int *)(param_1 + 0x3344)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3344)" (( "(") (binary_expression "param_1 + 0x3344" (identifier "param_1") (+ "+") (number_literal "0x3344")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");\n  }" ({ "{") (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers")" (identifier "__assert_fail") (argument_list "("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,\n                  "MergeImageLayers")" (( "(") (string_literal ""image->signature == MagickCoreSignature"" (" """) (string_content "image->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/layer.c"" (" """) (string_content "MagickCore/layer.c") (" """)) (, ",") (number_literal "0x7ac") (, ",") (string_literal ""MergeImageLayers"" (" """) (string_content "MergeImageLayers") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x3328) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x3328) != 0" (pointer_expression "*(int *)(param_1 + 0x3328)" (* "*") (cast_expression "(int *)(param_1 + 0x3328)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3328)" (( "(") (binary_expression "param_1 + 0x3328" (identifier "param_1") (+ "+") (number_literal "0x3328")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);\n  }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318)" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/layer.c","MergeImageLayers",0x7ae,&DAT_002f75ae,\n                   param_1 + 0x318)" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/layer.c"" (" """) (string_content "MagickCore/layer.c") (" """)) (, ",") (string_literal ""MergeImageLayers"" (" """) (string_content "MergeImageLayers") (" """)) (, ",") (number_literal "0x7ae") (, ",") (pointer_expression "&DAT_002f75ae" (& "&") (identifier "DAT_002f75ae")) (, ",") (binary_expression "param_1 + 0x318" (identifier "param_1") (+ "+") (number_literal "0x318")) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");\n  }" ({ "{") (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers")" (identifier "__assert_fail") (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,\n                  "MergeImageLayers")" (( "(") (string_literal ""exception != (ExceptionInfo *) NULL"" (" """) (string_content "exception != (ExceptionInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/layer.c"" (" """) (string_content "MagickCore/layer.c") (" """)) (, ",") (number_literal "0x7af") (, ",") (string_literal ""MergeImageLayers"" (" """) (string_content "MergeImageLayers") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_3 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0x1c) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_3 + 0x1c) != -0x54535255" (pointer_expression "*(int *)(param_3 + 0x1c)" (* "*") (cast_expression "(int *)(param_3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1c)" (( "(") (binary_expression "param_3 + 0x1c" (identifier "param_3") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");\n  }" ({ "{") (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers")" (identifier "__assert_fail") (argument_list "("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,\n                  "MergeImageLayers")" (( "(") (string_literal ""exception->signature == MagickCoreSignature"" (" """) (string_content "exception->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/layer.c"" (" """) (string_content "MagickCore/layer.c") (" """)) (, ",") (number_literal "0x7b0") (, ",") (string_literal ""MergeImageLayers"" (" """) (string_content "MergeImageLayers") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "local_40 = *(int *)(param_1 + 0x204);" (assignment_expression "local_40 = *(int *)(param_1 + 0x204)" (identifier "local_40") (= "=") (pointer_expression "*(int *)(param_1 + 0x204)" (* "*") (cast_expression "(int *)(param_1 + 0x204)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x204)" (( "(") (binary_expression "param_1 + 0x204" (identifier "param_1") (+ "+") (number_literal "0x204")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x208);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x208)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x208)" (* "*") (cast_expression "(int *)(param_1 + 0x208)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x208)" (( "(") (binary_expression "param_1 + 0x208" (identifier "param_1") (+ "+") (number_literal "0x208")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0x20c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x20c)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x20c)" (* "*") (cast_expression "(int *)(param_1 + 0x20c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20c)" (( "(") (binary_expression "param_1 + 0x20c" (identifier "param_1") (+ "+") (number_literal "0x20c")) () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "iVar10 = *(int *)(param_1 + 0x200);" (assignment_expression "iVar10 = *(int *)(param_1 + 0x200)" (identifier "iVar10") (= "=") (pointer_expression "*(int *)(param_1 + 0x200)" (* "*") (cast_expression "(int *)(param_1 + 0x200)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x200)" (( "(") (binary_expression "param_1 + 0x200" (identifier "param_1") (+ "+") (number_literal "0x200")) () ")"))))) (; ";")) (expression_statement "local_4c = *(int *)(param_1 + 0x1c);" (assignment_expression "local_4c = *(int *)(param_1 + 0x1c)" (identifier "local_4c") (= "=") (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "local_44 = iVar1;" (assignment_expression "local_44 = iVar1" (identifier "local_44") (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (param_2 == 0xe) {\n    if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = iVar10;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }\n  else {\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }" (if "if") (parenthesized_expression "(param_2 == 0xe)" (( "(") (binary_expression "param_2 == 0xe" (identifier "param_2") (== "==") (number_literal "0xe")) () ")")) (compound_statement "{\n    if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }\n    local_3c = 0;\n    local_38 = 0;\n    local_44 = iVar10;\nLAB_00100be8:\n    local_40 = local_3c + local_4c;\n  }" ({ "{") (if_statement "if (iVar10 == 0) {\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }\n    else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }" (if "if") (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar10 = iVar1;\n      if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }\n    }" ({ "{") (expression_statement "iVar10 = iVar1;" (assignment_expression "iVar10 = iVar1" (identifier "iVar10") (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (local_40 != 0) {\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }" (if "if") (parenthesized_expression "(local_40 != 0)" (( "(") (binary_expression "local_40 != 0" (identifier "local_40") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        local_3c = 0;\n        local_38 = 0;\n        local_4c = local_40;\n        goto LAB_00100a5b;\n      }" ({ "{") (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" (identifier "local_38") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_4c = local_40;" (assignment_expression "local_4c = local_40" (identifier "local_4c") (= "=") (identifier "local_40")) (; ";")) (goto_statement "goto LAB_00100a5b;" (goto "goto") (statement_identifier "LAB_00100a5b") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }" (else "else") (compound_statement "{\n      local_44 = iVar10;\n      if (local_40 != 0) goto LAB_00100a44;\n    }" ({ "{") (expression_statement "local_44 = iVar10;" (assignment_expression "local_44 = iVar10" (identifier "local_44") (= "=") (identifier "iVar10")) (; ";")) (if_statement "if (local_40 != 0) goto LAB_00100a44;" (if "if") (parenthesized_expression "(local_40 != 0)" (( "(") (binary_expression "local_40 != 0" (identifier "local_40") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00100a44;" (goto "goto") (statement_identifier "LAB_00100a44") (; ";"))) (} "}")))) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" (identifier "local_38") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_44 = iVar10;" (assignment_expression "local_44 = iVar10" (identifier "local_44") (= "=") (identifier "iVar10")) (; ";")) (labeled_statement "LAB_00100be8:\n    local_40 = local_3c + local_4c;" (statement_identifier "LAB_00100be8") (: ":") (expression_statement "local_40 = local_3c + local_4c;" (assignment_expression "local_40 = local_3c + local_4c" (identifier "local_40") (= "=") (binary_expression "local_3c + local_4c" (identifier "local_3c") (+ "+") (identifier "local_4c"))) (; ";"))) (} "}")) (else_clause "else {\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }" (else "else") (compound_statement "{\n    if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }\n    iVar1 = GetNextImageInList(param_1);\n    local_38 = iVar3;\n    local_3c = iVar4;\n    while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }\n    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }\n    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;\n  }" ({ "{") (if_statement "if (param_2 == 0xf) {\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }" (if "if") (parenthesized_expression "(param_2 == 0xf)" (( "(") (binary_expression "param_2 == 0xf" (identifier "param_2") (== "==") (number_literal "0xf")) () ")")) (compound_statement "{\n      if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }\n      iVar5 = param_1;\n      iVar6 = iVar4;\n      iVar7 = iVar3;\n      if (local_40 == 0) {\n        local_40 = local_4c;\n      }\n      while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }\n      if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }\nLAB_00100a44:\n      local_3c = 0;\n      local_38 = 0;\n      local_4c = local_40;\n      iVar1 = iVar10;\n      goto LAB_00100a5b;\n    }" ({ "{") (if_statement "if (iVar10 == 0) {\n        iVar10 = iVar1;\n      }" (if "if") (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar10 = iVar1;\n      }" ({ "{") (expression_statement "iVar10 = iVar1;" (assignment_expression "iVar10 = iVar1" (identifier "iVar10") (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (expression_statement "iVar5 = param_1;" (assignment_expression "iVar5 = param_1" (identifier "iVar5") (= "=") (identifier "param_1")) (; ";")) (expression_statement "iVar6 = iVar4;" (assignment_expression "iVar6 = iVar4" (identifier "iVar6") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "iVar7 = iVar3;" (assignment_expression "iVar7 = iVar3" (identifier "iVar7") (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (local_40 == 0) {\n        local_40 = local_4c;\n      }" (if "if") (parenthesized_expression "(local_40 == 0)" (( "(") (binary_expression "local_40 == 0" (identifier "local_40") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        local_40 = local_4c;\n      }" ({ "{") (expression_statement "local_40 = local_4c;" (assignment_expression "local_40 = local_4c" (identifier "local_40") (= "=") (identifier "local_4c")) (; ";")) (} "}"))) (while_statement "while( true ) {\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }\n        iVar1 = local_4c + iVar6;\n        if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }\n        iVar5 = GetNextImageInList(iVar5);\n        local_40 = iVar1;\n        if (iVar5 == 0) break;\n        iVar1 = *(int *)(iVar5 + 0x18);\n        local_4c = *(int *)(iVar5 + 0x1c);\n        iVar6 = *(int *)(iVar5 + 0x20c);\n        iVar7 = *(int *)(iVar5 + 0x208);\n      }" ({ "{") (if_statement "if (iVar10 < iVar1 + iVar7) {\n          iVar10 = iVar1 + iVar7;\n        }" (if "if") (parenthesized_expression "(iVar10 < iVar1 + iVar7)" (( "(") (binary_expression "iVar10 < iVar1 + iVar7" (identifier "iVar10") (< "<") (binary_expression "iVar1 + iVar7" (identifier "iVar1") (+ "+") (identifier "iVar7"))) () ")")) (compound_statement "{\n          iVar10 = iVar1 + iVar7;\n        }" ({ "{") (expression_statement "iVar10 = iVar1 + iVar7;" (assignment_expression "iVar10 = iVar1 + iVar7" (identifier "iVar10") (= "=") (binary_expression "iVar1 + iVar7" (identifier "iVar1") (+ "+") (identifier "iVar7"))) (; ";")) (} "}"))) (expression_statement "iVar1 = local_4c + iVar6;" (assignment_expression "iVar1 = local_4c + iVar6" (identifier "iVar1") (= "=") (binary_expression "local_4c + iVar6" (identifier "local_4c") (+ "+") (identifier "iVar6"))) (; ";")) (if_statement "if (local_4c + iVar6 <= local_40) {\n          iVar1 = local_40;\n        }" (if "if") (parenthesized_expression "(local_4c + iVar6 <= local_40)" (( "(") (binary_expression "local_4c + iVar6 <= local_40" (binary_expression "local_4c + iVar6" (identifier "local_4c") (+ "+") (identifier "iVar6")) (<= "<=") (identifier "local_40")) () ")")) (compound_statement "{\n          iVar1 = local_40;\n        }" ({ "{") (expression_statement "iVar1 = local_40;" (assignment_expression "iVar1 = local_40" (identifier "iVar1") (= "=") (identifier "local_40")) (; ";")) (} "}"))) (expression_statement "iVar5 = GetNextImageInList(iVar5);" (assignment_expression "iVar5 = GetNextImageInList(iVar5)" (identifier "iVar5") (= "=") (call_expression "GetNextImageInList(iVar5)" (identifier "GetNextImageInList") (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")")))) (; ";")) (expression_statement "local_40 = iVar1;" (assignment_expression "local_40 = iVar1" (identifier "local_40") (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar5 == 0) break;" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = *(int *)(iVar5 + 0x18);" (assignment_expression "iVar1 = *(int *)(iVar5 + 0x18)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar5 + 0x18)" (* "*") (cast_expression "(int *)(iVar5 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x18)" (( "(") (binary_expression "iVar5 + 0x18" (identifier "iVar5") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "local_4c = *(int *)(iVar5 + 0x1c);" (assignment_expression "local_4c = *(int *)(iVar5 + 0x1c)" (identifier "local_4c") (= "=") (pointer_expression "*(int *)(iVar5 + 0x1c)" (* "*") (cast_expression "(int *)(iVar5 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x1c)" (( "(") (binary_expression "iVar5 + 0x1c" (identifier "iVar5") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "iVar6 = *(int *)(iVar5 + 0x20c);" (assignment_expression "iVar6 = *(int *)(iVar5 + 0x20c)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar5 + 0x20c)" (* "*") (cast_expression "(int *)(iVar5 + 0x20c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x20c)" (( "(") (binary_expression "iVar5 + 0x20c" (identifier "iVar5") (+ "+") (number_literal "0x20c")) () ")"))))) (; ";")) (expression_statement "iVar7 = *(int *)(iVar5 + 0x208);" (assignment_expression "iVar7 = *(int *)(iVar5 + 0x208)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(iVar5 + 0x208)" (* "*") (cast_expression "(int *)(iVar5 + 0x208)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x208)" (( "(") (binary_expression "iVar5 + 0x208" (identifier "iVar5") (+ "+") (number_literal "0x208")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (iVar10 == 0) {\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }\n      else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }" (if "if") (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        local_44 = 0;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }\n      }" ({ "{") (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" (identifier "local_44") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          iVar10 = 0;\n          goto LAB_00100be8;\n        }" ({ "{") (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" (identifier "local_4c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" (identifier "local_38") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" (identifier "iVar10") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00100be8;" (goto "goto") (statement_identifier "LAB_00100be8") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }" (else "else") (compound_statement "{\n        local_44 = iVar10;\n        if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }\n      }" ({ "{") (expression_statement "local_44 = iVar10;" (assignment_expression "local_44 = iVar10" (identifier "local_44") (= "=") (identifier "iVar10")) (; ";")) (if_statement "if (iVar1 == 0) {\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          local_4c = 0;\n          local_3c = 0;\n          local_38 = 0;\n          goto LAB_00100be8;\n        }" ({ "{") (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" (identifier "local_4c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" (identifier "local_38") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00100be8;" (goto "goto") (statement_identifier "LAB_00100be8") (; ";")) (} "}"))) (} "}")))) (labeled_statement "LAB_00100a44:\n      local_3c = 0;" (statement_identifier "LAB_00100a44") (: ":") (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";"))) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" (identifier "local_38") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_4c = local_40;" (assignment_expression "local_4c = local_40" (identifier "local_4c") (= "=") (identifier "local_40")) (; ";")) (expression_statement "iVar1 = iVar10;" (assignment_expression "iVar1 = iVar10" (identifier "iVar1") (= "=") (identifier "iVar10")) (; ";")) (goto_statement "goto LAB_00100a5b;" (goto "goto") (statement_identifier "LAB_00100a5b") (; ";")) (} "}"))) (expression_statement "iVar1 = GetNextImageInList(param_1);" (assignment_expression "iVar1 = GetNextImageInList(param_1)" (identifier "iVar1") (= "=") (call_expression "GetNextImageInList(param_1)" (identifier "GetNextImageInList") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "local_38 = iVar3;" (assignment_expression "local_38 = iVar3" (identifier "local_38") (= "=") (identifier "iVar3")) (; ";")) (expression_statement "local_3c = iVar4;" (assignment_expression "local_3c = iVar4" (identifier "local_3c") (= "=") (identifier "iVar4")) (; ";")) (while_statement "while (iVar1 != 0) {\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }" (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar5 = *(int *)(iVar1 + 0x208);\n      if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }\n      iVar6 = *(int *)(iVar1 + 0x20c);\n      if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }\n      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;\n      if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }\n      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;\n      if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }\n      iVar1 = GetNextImageInList(iVar1);\n      local_44 = iVar5;\n      local_4c = iVar6;\n    }" ({ "{") (expression_statement "iVar5 = *(int *)(iVar1 + 0x208);" (assignment_expression "iVar5 = *(int *)(iVar1 + 0x208)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar1 + 0x208)" (* "*") (cast_expression "(int *)(iVar1 + 0x208)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x208)" (( "(") (binary_expression "iVar1 + 0x208" (identifier "iVar1") (+ "+") (number_literal "0x208")) () ")"))))) (; ";")) (if_statement "if (iVar5 < local_38) {\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }" (if "if") (parenthesized_expression "(iVar5 < local_38)" (( "(") (binary_expression "iVar5 < local_38" (identifier "iVar5") (< "<") (identifier "local_38")) () ")")) (compound_statement "{\n        local_44 = local_44 + (local_38 - iVar5);\n        local_38 = iVar5;\n      }" ({ "{") (expression_statement "local_44 = local_44 + (local_38 - iVar5);" (assignment_expression "local_44 = local_44 + (local_38 - iVar5)" (identifier "local_44") (= "=") (binary_expression "local_44 + (local_38 - iVar5)" (identifier "local_44") (+ "+") (parenthesized_expression "(local_38 - iVar5)" (( "(") (binary_expression "local_38 - iVar5" (identifier "local_38") (- "-") (identifier "iVar5")) () ")")))) (; ";")) (expression_statement "local_38 = iVar5;" (assignment_expression "local_38 = iVar5" (identifier "local_38") (= "=") (identifier "iVar5")) (; ";")) (} "}"))) (expression_statement "iVar6 = *(int *)(iVar1 + 0x20c);" (assignment_expression "iVar6 = *(int *)(iVar1 + 0x20c)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar1 + 0x20c)" (* "*") (cast_expression "(int *)(iVar1 + 0x20c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20c)" (( "(") (binary_expression "iVar1 + 0x20c" (identifier "iVar1") (+ "+") (number_literal "0x20c")) () ")"))))) (; ";")) (if_statement "if (iVar6 < local_3c) {\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }" (if "if") (parenthesized_expression "(iVar6 < local_3c)" (( "(") (binary_expression "iVar6 < local_3c" (identifier "iVar6") (< "<") (identifier "local_3c")) () ")")) (compound_statement "{\n        local_4c = local_4c + (local_3c - iVar6);\n        local_3c = iVar6;\n      }" ({ "{") (expression_statement "local_4c = local_4c + (local_3c - iVar6);" (assignment_expression "local_4c = local_4c + (local_3c - iVar6)" (identifier "local_4c") (= "=") (binary_expression "local_4c + (local_3c - iVar6)" (identifier "local_4c") (+ "+") (parenthesized_expression "(local_3c - iVar6)" (( "(") (binary_expression "local_3c - iVar6" (identifier "local_3c") (- "-") (identifier "iVar6")) () ")")))) (; ";")) (expression_statement "local_3c = iVar6;" (assignment_expression "local_3c = iVar6" (identifier "local_3c") (= "=") (identifier "iVar6")) (; ";")) (} "}"))) (expression_statement "iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;" (assignment_expression "iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38" (identifier "iVar5") (= "=") (binary_expression "(iVar5 + *(int *)(iVar1 + 0x18)) - local_38" (parenthesized_expression "(iVar5 + *(int *)(iVar1 + 0x18))" (( "(") (binary_expression "iVar5 + *(int *)(iVar1 + 0x18)" (identifier "iVar5") (+ "+") (pointer_expression "*(int *)(iVar1 + 0x18)" (* "*") (cast_expression "(int *)(iVar1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (- "-") (identifier "local_38"))) (; ";")) (if_statement "if (iVar5 <= local_44) {\n        iVar5 = local_44;\n      }" (if "if") (parenthesized_expression "(iVar5 <= local_44)" (( "(") (binary_expression "iVar5 <= local_44" (identifier "iVar5") (<= "<=") (identifier "local_44")) () ")")) (compound_statement "{\n        iVar5 = local_44;\n      }" ({ "{") (expression_statement "iVar5 = local_44;" (assignment_expression "iVar5 = local_44" (identifier "iVar5") (= "=") (identifier "local_44")) (; ";")) (} "}"))) (expression_statement "iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;" (assignment_expression "iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c" (identifier "iVar6") (= "=") (binary_expression "(iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c" (parenthesized_expression "(iVar6 + *(int *)(iVar1 + 0x1c))" (( "(") (binary_expression "iVar6 + *(int *)(iVar1 + 0x1c)" (identifier "iVar6") (+ "+") (pointer_expression "*(int *)(iVar1 + 0x1c)" (* "*") (cast_expression "(int *)(iVar1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (- "-") (identifier "local_3c"))) (; ";")) (if_statement "if (iVar6 <= local_4c) {\n        iVar6 = local_4c;\n      }" (if "if") (parenthesized_expression "(iVar6 <= local_4c)" (( "(") (binary_expression "iVar6 <= local_4c" (identifier "iVar6") (<= "<=") (identifier "local_4c")) () ")")) (compound_statement "{\n        iVar6 = local_4c;\n      }" ({ "{") (expression_statement "iVar6 = local_4c;" (assignment_expression "iVar6 = local_4c" (identifier "iVar6") (= "=") (identifier "local_4c")) (; ";")) (} "}"))) (expression_statement "iVar1 = GetNextImageInList(iVar1);" (assignment_expression "iVar1 = GetNextImageInList(iVar1)" (identifier "iVar1") (= "=") (call_expression "GetNextImageInList(iVar1)" (identifier "GetNextImageInList") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "local_44 = iVar5;" (assignment_expression "local_44 = iVar5" (identifier "local_44") (= "=") (identifier "iVar5")) (; ";")) (expression_statement "local_4c = iVar6;" (assignment_expression "local_4c = iVar6" (identifier "local_4c") (= "=") (identifier "iVar6")) (; ";")) (} "}"))) (if_statement "if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {\n      iVar10 = local_38 + local_44;\n    }" (if "if") (parenthesized_expression "((iVar10 == 0) && (iVar10 = local_44, -1 < local_38))" (( "(") (binary_expression "(iVar10 == 0) && (iVar10 = local_44, -1 < local_38)" (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar10 = local_44, -1 < local_38)" (( "(") (comma_expression "iVar10 = local_44, -1 < local_38" (assignment_expression "iVar10 = local_44" (identifier "iVar10") (= "=") (identifier "local_44")) (, ",") (binary_expression "-1 < local_38" (number_literal "-1") (< "<") (identifier "local_38"))) () ")"))) () ")")) (compound_statement "{\n      iVar10 = local_38 + local_44;\n    }" ({ "{") (expression_statement "iVar10 = local_38 + local_44;" (assignment_expression "iVar10 = local_38 + local_44" (identifier "iVar10") (= "=") (binary_expression "local_38 + local_44" (identifier "local_38") (+ "+") (identifier "local_44"))) (; ";")) (} "}"))) (if_statement "if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;" (if "if") (parenthesized_expression "((local_40 == 0) && (local_40 = local_4c, -1 < local_3c))" (( "(") (binary_expression "(local_40 == 0) && (local_40 = local_4c, -1 < local_3c)" (parenthesized_expression "(local_40 == 0)" (( "(") (binary_expression "local_40 == 0" (identifier "local_40") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(local_40 = local_4c, -1 < local_3c)" (( "(") (comma_expression "local_40 = local_4c, -1 < local_3c" (assignment_expression "local_40 = local_4c" (identifier "local_40") (= "=") (identifier "local_4c")) (, ",") (binary_expression "-1 < local_3c" (number_literal "-1") (< "<") (identifier "local_3c"))) () ")"))) () ")")) (goto_statement "goto LAB_00100be8;" (goto "goto") (statement_identifier "LAB_00100be8") (; ";"))) (} "}")))) (expression_statement "iVar1 = iVar10;" (assignment_expression "iVar1 = iVar10" (identifier "iVar1") (= "=") (identifier "iVar10")) (; ";")) (if_statement "if (param_2 == 0x10) {\n    uVar2 = GetImageListLength(param_1);\n    if ((int)uVar2 < 1) {\n      return 0;\n    }\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 == 0x10)" (( "(") (binary_expression "param_2 == 0x10" (identifier "param_2") (== "==") (number_literal "0x10")) () ")")) (compound_statement "{\n    uVar2 = GetImageListLength(param_1);\n    if ((int)uVar2 < 1) {\n      return 0;\n    }\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }\n    return 0;\n  }" ({ "{") (expression_statement "uVar2 = GetImageListLength(param_1);" (assignment_expression "uVar2 = GetImageListLength(param_1)" (identifier "uVar2") (= "=") (call_expression "GetImageListLength(param_1)" (identifier "GetImageListLength") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if ((int)uVar2 < 1) {\n      return 0;\n    }" (if "if") (parenthesized_expression "((int)uVar2 < 1)" (( "(") (binary_expression "(int)uVar2 < 1" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      *(int *)(param_1 + 0x208) = iVar3 - local_38;\n      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;\n      *(int *)(param_1 + 0x200) = local_44;\n      *(int *)(param_1 + 0x204) = local_4c;\n      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if (iVar3 == 0) {\n        return 0;\n      }\n      param_1 = GetNextImageInList(param_1);\n      if (param_1 == 0) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }\n      iVar3 = *(int *)(param_1 + 0x208);\n      iVar4 = *(int *)(param_1 + 0x20c);\n    }" ({ "{") (expression_statement "*(int *)(param_1 + 0x208) = iVar3 - local_38;" (assignment_expression "*(int *)(param_1 + 0x208) = iVar3 - local_38" (pointer_expression "*(int *)(param_1 + 0x208)" (* "*") (cast_expression "(int *)(param_1 + 0x208)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x208)" (( "(") (binary_expression "param_1 + 0x208" (identifier "param_1") (+ "+") (number_literal "0x208")) () ")")))) (= "=") (binary_expression "iVar3 - local_38" (identifier "iVar3") (- "-") (identifier "local_38"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x20c) = iVar4 - local_3c;" (assignment_expression "*(int *)(param_1 + 0x20c) = iVar4 - local_3c" (pointer_expression "*(int *)(param_1 + 0x20c)" (* "*") (cast_expression "(int *)(param_1 + 0x20c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20c)" (( "(") (binary_expression "param_1 + 0x20c" (identifier "param_1") (+ "+") (number_literal "0x20c")) () ")")))) (= "=") (binary_expression "iVar4 - local_3c" (identifier "iVar4") (- "-") (identifier "local_3c"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x200) = local_44;" (assignment_expression "*(int *)(param_1 + 0x200) = local_44" (pointer_expression "*(int *)(param_1 + 0x200)" (* "*") (cast_expression "(int *)(param_1 + 0x200)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x200)" (( "(") (binary_expression "param_1 + 0x200" (identifier "param_1") (+ "+") (number_literal "0x200")) () ")")))) (= "=") (identifier "local_44")) (; ";")) (expression_statement "*(int *)(param_1 + 0x204) = local_4c;" (assignment_expression "*(int *)(param_1 + 0x204) = local_4c" (pointer_expression "*(int *)(param_1 + 0x204)" (* "*") (cast_expression "(int *)(param_1 + 0x204)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x204)" (( "(") (binary_expression "param_1 + 0x204" (identifier "param_1") (+ "+") (number_literal "0x204")) () ")")))) (= "=") (identifier "local_4c")) (; ";")) (expression_statement "iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);" (assignment_expression "iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" (identifier "iVar3") (= "=") (call_expression "SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" (identifier "SetImageProgress") (argument_list "(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" (( "(") (identifier "param_1") (, ",") (string_literal ""Merge/Layers"" (" """) (string_content "Merge/Layers") (" """)) (, ",") (identifier "uVar8") (, ",") (identifier "uVar9") (, ",") (identifier "uVar2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "param_1 = GetNextImageInList(param_1);" (assignment_expression "param_1 = GetNextImageInList(param_1)" (identifier "param_1") (= "=") (call_expression "GetNextImageInList(param_1)" (identifier "GetNextImageInList") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (param_1 == 0) break;" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "bVar11 = 0xfffffffe < uVar8;" (assignment_expression "bVar11 = 0xfffffffe < uVar8" (identifier "bVar11") (= "=") (binary_expression "0xfffffffe < uVar8" (number_literal "0xfffffffe") (< "<") (identifier "uVar8"))) (; ";")) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar9 = uVar9 + bVar11;" (assignment_expression "uVar9 = uVar9 + bVar11" (identifier "uVar9") (= "=") (binary_expression "uVar9 + bVar11" (identifier "uVar9") (+ "+") (identifier "bVar11"))) (; ";")) (if_statement "if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8)" (( "(") (binary_expression "0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8" (binary_expression "0xfffffffe < uVar2 - 1 == uVar9" (binary_expression "0xfffffffe < uVar2 - 1" (number_literal "0xfffffffe") (< "<") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1"))) (== "==") (identifier "uVar9")) (&& "&&") (binary_expression "uVar2 == uVar8" (identifier "uVar2") (== "==") (identifier "uVar8"))) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(param_1 + 0x208);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x208)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x208)" (* "*") (cast_expression "(int *)(param_1 + 0x208)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x208)" (( "(") (binary_expression "param_1 + 0x208" (identifier "param_1") (+ "+") (number_literal "0x208")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0x20c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x20c)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x20c)" (* "*") (cast_expression "(int *)(param_1 + 0x20c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20c)" (( "(") (binary_expression "param_1 + 0x20c" (identifier "param_1") (+ "+") (number_literal "0x20c")) () ")"))))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (labeled_statement "LAB_00100a5b:\n  iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3);" (statement_identifier "LAB_00100a5b") (: ":") (expression_statement "iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3);" (assignment_expression "iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3)" (identifier "iVar3") (= "=") (call_expression "CloneImage(param_1,local_44,local_4c,1,param_3)" (identifier "CloneImage") (argument_list "(param_1,local_44,local_4c,1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "local_44") (, ",") (identifier "local_4c") (, ",") (number_literal "1") (, ",") (identifier "param_3") () ")")))) (; ";"))) (if_statement "if (iVar3 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar3 + 0x84) = 4;" (assignment_expression "*(undefined4 *)(iVar3 + 0x84) = 4" (pointer_expression "*(undefined4 *)(iVar3 + 0x84)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x84)" (( "(") (binary_expression "iVar3 + 0x84" (identifier "iVar3") (+ "+") (number_literal "0x84")) () ")")))) (= "=") (number_literal "4")) (; ";")) (expression_statement "SetImageBackgroundColor(iVar3,param_3);" (call_expression "SetImageBackgroundColor(iVar3,param_3)" (identifier "SetImageBackgroundColor") (argument_list "(iVar3,param_3)" (( "(") (identifier "iVar3") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "*(int *)(iVar3 + 0x200) = iVar1;" (assignment_expression "*(int *)(iVar3 + 0x200) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x200)" (* "*") (cast_expression "(int *)(iVar3 + 0x200)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x200)" (( "(") (binary_expression "iVar3 + 0x200" (identifier "iVar3") (+ "+") (number_literal "0x200")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(int *)(iVar3 + 0x204) = local_40;" (assignment_expression "*(int *)(iVar3 + 0x204) = local_40" (pointer_expression "*(int *)(iVar3 + 0x204)" (* "*") (cast_expression "(int *)(iVar3 + 0x204)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x204)" (( "(") (binary_expression "iVar3 + 0x204" (identifier "iVar3") (+ "+") (number_literal "0x204")) () ")")))) (= "=") (identifier "local_40")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x240) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x240) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x240)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x240)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x240)" (( "(") (binary_expression "iVar3 + 0x240" (identifier "iVar3") (+ "+") (number_literal "0x240")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(iVar3 + 0x20c) = local_3c;" (assignment_expression "*(int *)(iVar3 + 0x20c) = local_3c" (pointer_expression "*(int *)(iVar3 + 0x20c)" (* "*") (cast_expression "(int *)(iVar3 + 0x20c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x20c)" (( "(") (binary_expression "iVar3 + 0x20c" (identifier "iVar3") (+ "+") (number_literal "0x20c")) () ")")))) (= "=") (identifier "local_3c")) (; ";")) (expression_statement "*(int *)(iVar3 + 0x208) = local_38;" (assignment_expression "*(int *)(iVar3 + 0x208) = local_38" (pointer_expression "*(int *)(iVar3 + 0x208)" (* "*") (cast_expression "(int *)(iVar3 + 0x208)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x208)" (( "(") (binary_expression "iVar3 + 0x208" (identifier "iVar3") (+ "+") (number_literal "0x208")) () ")")))) (= "=") (identifier "local_38")) (; ";")) (expression_statement "uVar2 = GetImageListLength(param_1);" (assignment_expression "uVar2 = GetImageListLength(param_1)" (identifier "uVar2") (= "=") (call_expression "GetImageListLength(param_1)" (identifier "GetImageListLength") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (0 < (int)uVar2) {\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }\n  }" (if "if") (parenthesized_expression "(0 < (int)uVar2)" (( "(") (binary_expression "0 < (int)uVar2" (number_literal "0") (< "<") (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2"))) () ")")) (compound_statement "{\n    uVar8 = 0;\n    uVar9 = 0;\n    while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }\n  }" ({ "{") (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);\n      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);\n      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;\n      bVar11 = 0xfffffffe < uVar8;\n      uVar8 = uVar8 + 1;\n      uVar9 = uVar9 + bVar11;\n      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }\n      local_3c = *(int *)(iVar3 + 0x20c);\n      local_38 = *(int *)(iVar3 + 0x208);\n    }" ({ "{") (expression_statement "CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3);" (call_expression "CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3)" (identifier "CompositeImage") (argument_list "(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,\n                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,\n                     param_3)" (( "(") (identifier "iVar3") (, ",") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x23c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x23c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x23c)" (( "(") (binary_expression "param_1 + 0x23c" (identifier "param_1") (+ "+") (number_literal "0x23c")) () ")")))) (, ",") (number_literal "1") (, ",") (binary_expression "*(int *)(param_1 + 0x208) - local_38" (pointer_expression "*(int *)(param_1 + 0x208)" (* "*") (cast_expression "(int *)(param_1 + 0x208)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x208)" (( "(") (binary_expression "param_1 + 0x208" (identifier "param_1") (+ "+") (number_literal "0x208")) () ")")))) (- "-") (identifier "local_38")) (, ",") (binary_expression "*(int *)(param_1 + 0x20c) - local_3c" (pointer_expression "*(int *)(param_1 + 0x20c)" (* "*") (cast_expression "(int *)(param_1 + 0x20c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20c)" (( "(") (binary_expression "param_1 + 0x20c" (identifier "param_1") (+ "+") (number_literal "0x20c")) () ")")))) (- "-") (identifier "local_3c")) (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);" (assignment_expression "iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" (identifier "iVar4") (= "=") (call_expression "SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" (identifier "SetImageProgress") (argument_list "(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0)" (( "(") (identifier "param_1") (, ",") (string_literal ""Merge/Layers"" (" """) (string_content "Merge/Layers") (" """)) (, ",") (identifier "uVar8") (, ",") (identifier "uVar9") (, ",") (identifier "uVar2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;" (if "if") (parenthesized_expression "((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0))" (( "(") (binary_expression "(iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)" (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_1 = GetNextImageInList(param_1), param_1 == 0)" (( "(") (comma_expression "param_1 = GetNextImageInList(param_1), param_1 == 0" (assignment_expression "param_1 = GetNextImageInList(param_1)" (identifier "param_1") (= "=") (call_expression "GetNextImageInList(param_1)" (identifier "GetNextImageInList") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (, ",") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "bVar11 = 0xfffffffe < uVar8;" (assignment_expression "bVar11 = 0xfffffffe < uVar8" (identifier "bVar11") (= "=") (binary_expression "0xfffffffe < uVar8" (number_literal "0xfffffffe") (< "<") (identifier "uVar8"))) (; ";")) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar9 = uVar9 + bVar11;" (assignment_expression "uVar9 = uVar9 + bVar11" (identifier "uVar9") (= "=") (binary_expression "uVar9 + bVar11" (identifier "uVar9") (+ "+") (identifier "bVar11"))) (; ";")) (if_statement "if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {\n        return iVar3;\n      }" (if "if") (parenthesized_expression "(0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8)" (( "(") (binary_expression "0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8" (binary_expression "0xfffffffe < uVar2 - 1 == uVar9" (binary_expression "0xfffffffe < uVar2 - 1" (number_literal "0xfffffffe") (< "<") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1"))) (== "==") (identifier "uVar9")) (&& "&&") (binary_expression "uVar2 == uVar8" (identifier "uVar2") (== "==") (identifier "uVar8"))) () ")")) (compound_statement "{\n        return iVar3;\n      }" ({ "{") (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (expression_statement "local_3c = *(int *)(iVar3 + 0x20c);" (assignment_expression "local_3c = *(int *)(iVar3 + 0x20c)" (identifier "local_3c") (= "=") (pointer_expression "*(int *)(iVar3 + 0x20c)" (* "*") (cast_expression "(int *)(iVar3 + 0x20c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x20c)" (( "(") (binary_expression "iVar3 + 0x20c" (identifier "iVar3") (+ "+") (number_literal "0x20c")) () ")"))))) (; ";")) (expression_statement "local_38 = *(int *)(iVar3 + 0x208);" (assignment_expression "local_38 = *(int *)(iVar3 + 0x208)" (identifier "local_38") (= "=") (pointer_expression "*(int *)(iVar3 + 0x208)" (* "*") (cast_expression "(int *)(iVar3 + 0x208)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x208)" (( "(") (binary_expression "iVar3 + 0x208" (identifier "iVar3") (+ "+") (number_literal "0x208")) () ")"))))) (; ";")) (} "}"))) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

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

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

{
  int var_18;
  int var_21;
  type_1 *var_17;
  size_t var_8;
  int var_24;
  type_4 var_28;
  size_t var_13;
  int var_25;
  ssize_t var_15;
  size_t sVar10;
  ssize_t var_14;
  type_5 var_29;
  type_5 var_30;
  bool var_31;
  size_t var_11;
  size_t var_20;
  size_t var_9;
  ssize_t var_10;
  ssize_t var_19;
  
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MergeImageLayers");
  }
  if (var_1->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_2("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,
                  "MergeImageLayers");
  }
  if (var_1->debug != var_3) {
    var_4(TraceEvent,"MagickCore/layer.c","MergeImageLayers",0x7ae,"%s",var_1->filename);
  }
  if (var_5 == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,
                  "MergeImageLayers");
  }
  if (var_5->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_2("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,
                  "MergeImageLayers");
  }
  var_9 = (var_1->page).height;
  var_24 = (var_1->page).x;
  var_25 = (var_1->page).y;
  var_13 = var_1->columns;
  var_8 = (var_1->page).width;
  var_11 = var_1->rows;
  var_20 = var_13;
  if (var_6 == var_7) {
    if (var_8 == 0) {
      var_8 = var_13;
      if (var_9 != 0) {
        var_10 = 0;
        var_19 = 0;
        var_11 = var_9;
        goto LAB_00100a5b;
      }
    }
    else {
      var_20 = var_8;
      if (var_9 != 0) goto LAB_00100a44;
    }
    var_10 = 0;
    var_19 = 0;
    var_20 = var_8;
LAB_00100be8:
    var_9 = var_10 + var_11;
  }
  else {
    if (var_6 == var_12) {
      if (var_8 == 0) {
        var_8 = var_13;
      }
      var_17 = var_1;
      var_15 = var_25;
      var_14 = var_24;
      if (var_9 == 0) {
        var_9 = var_11;
      }
      while( true ) {
        if ((int)var_8 < (int)(var_13 + var_14)) {
          var_8 = var_13 + var_14;
        }
        var_13 = var_11 + var_15;
        if ((int)(var_11 + var_15) <= (int)var_9) {
          var_13 = var_9;
        }
        var_17 = var_16(var_17);
        var_9 = var_13;
        if (var_17 == (type_1 *)0x0) break;
        var_13 = var_17->columns;
        var_11 = var_17->rows;
        var_15 = (var_17->page).y;
        var_14 = (var_17->page).x;
      }
      if (var_8 == 0) {
        var_20 = 0;
        if (var_13 == 0) {
          var_11 = 0;
          var_10 = 0;
          var_19 = 0;
          var_8 = 0;
          goto LAB_00100be8;
        }
      }
      else {
        var_20 = var_8;
        if (var_13 == 0) {
          var_11 = 0;
          var_10 = 0;
          var_19 = 0;
          goto LAB_00100be8;
        }
      }
LAB_00100a44:
      var_10 = 0;
      var_19 = 0;
      var_11 = var_9;
      var_13 = var_8;
      goto LAB_00100a5b;
    }
    var_17 = var_16(var_1);
    var_19 = var_24;
    var_10 = var_25;
    while (var_17 != (type_1 *)0x0) {
      var_18 = (var_17->page).x;
      if (var_18 < var_19) {
        var_20 = var_20 + (var_19 - var_18);
        var_19 = var_18;
      }
      var_21 = (var_17->page).y;
      if (var_21 < var_10) {
        var_11 = var_11 + (var_10 - var_21);
        var_10 = var_21;
      }
      var_13 = (var_18 + var_17->columns) - var_19;
      if ((int)var_13 <= (int)var_20) {
        var_13 = var_20;
      }
      sVar10 = (var_21 + var_17->rows) - var_10;
      if ((int)sVar10 <= (int)var_11) {
        sVar10 = var_11;
      }
      var_17 = var_16(var_17);
      var_20 = var_13;
      var_11 = sVar10;
    }
    if ((var_8 == 0) && (var_8 = var_20, -1 < var_19)) {
      var_8 = var_19 + var_20;
    }
    if ((var_9 == 0) && (var_9 = var_11, -1 < var_10)) goto LAB_00100be8;
  }
  var_13 = var_8;
  if (var_6 == var_22) {
    var_8 = var_23(var_1);
    if ((int)var_8 < 1) {
      return (type_1 *)0x0;
    }
    var_29 = 0;
    var_30 = 0;
    while( true ) {
      (var_1->page).x = var_24 - var_19;
      (var_1->page).y = var_25 - var_10;
      (var_1->page).width = var_20;
      (var_1->page).height = var_11;
      var_28 = var_26(var_1,"Merge/Layers",var_27(var_30,var_29),(type_6)var_8);
      if (var_28 == var_3) {
        return (type_1 *)0x0;
      }
      var_1 = var_16(var_1);
      if (var_1 == (type_1 *)0x0) break;
      var_31 = 0xfffffffe < var_29;
      var_29 = var_29 + 1;
      var_30 = var_30 + var_31;
      if (0xfffffffe < var_8 - 1 == var_30 && var_8 == var_29) {
        return (type_1 *)0x0;
      }
      var_24 = (var_1->page).x;
      var_25 = (var_1->page).y;
    }
    return (type_1 *)0x0;
  }
LAB_00100a5b:
  var_17 = var_32(var_1,var_20,var_11,MagickTrue,var_5);
  if (var_17 == (type_1 *)0x0) {
    return (type_1 *)0x0;
  }
  (var_17->background_color).alpha_trait = BlendPixelTrait;
  var_33(var_17,var_5);
  (var_17->page).width = var_13;
  (var_17->page).height = var_9;
  var_17->dispose = UndefinedDispose;
  (var_17->page).y = var_10;
  (var_17->page).x = var_19;
  var_8 = var_23(var_1);
  if (0 < (int)var_8) {
    var_29 = 0;
    var_30 = 0;
    while( true ) {
      var_34(var_17,var_1,var_1->compose,MagickTrue,(var_1->page).x - var_19,
                     (var_1->page).y - var_10,var_5);
      var_28 = var_26(var_1,"Merge/Layers",var_27(var_30,var_29),(type_6)var_8);
      if ((var_28 == var_3) || (var_1 = var_16(var_1), var_1 == (type_1 *)0x0))
      break;
      var_31 = 0xfffffffe < var_29;
      var_29 = var_29 + 1;
      var_30 = var_30 + var_31;
      if (0xfffffffe < var_8 - 1 == var_30 && var_8 == var_29) {
        return var_17;
      }
      var_10 = (var_17->page).y;
      var_19 = (var_17->page).x;
    }
  }
  return var_17;
}


(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)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (string_literal (string_content)) (number_literal) (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (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))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (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: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_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))))))) (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))) (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (number_literal) right: (identifier)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (number_literal) right: (identifier)))))) consequence: (goto_statement label: (statement_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: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (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: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (number_literal) right: (binary_expression left: (identifier) right: (number_literal))) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (compound_statement (return_statement (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))))))))) (return_statement (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (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: (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: (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: (primitive_type) 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: (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: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal) (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)) (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)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (number_literal) right: (binary_expression left: (identifier) right: (number_literal))) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (compound_statement (return_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: (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))))))))))) (return_statement (identifier)))))

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

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

{
  int iVar1;
  uint uVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  uint uVar8;
  uint uVar9;
  int iVar10;
  bool bVar11;
  int local_4c;
  int local_44;
  int local_40;
  int local_3c;
  int local_38;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/layer.c",0x7ab,"MASKED");
  }
  if (*(int *)(param_1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/layer.c",0x7ac,
                  "MASKED");
  }
  if (*(int *)(param_1 + 0x3328) != 0) {
    LogMagickEvent(0x8000,"MagickCore/layer.c","MASKED",0x7ae,&DAT_002f75ae,
                   param_1 + 0x318);
  }
  if (param_3 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/layer.c",0x7af,
                  "MASKED");
  }
  if (*(int *)(param_3 + 0x1c) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception->signature == MagickCoreSignature","MagickCore/layer.c",0x7b0,
                  "MASKED");
  }
  local_40 = *(int *)(param_1 + 0x204);
  iVar3 = *(int *)(param_1 + 0x208);
  iVar4 = *(int *)(param_1 + 0x20c);
  iVar1 = *(int *)(param_1 + 0x18);
  iVar10 = *(int *)(param_1 + 0x200);
  local_4c = *(int *)(param_1 + 0x1c);
  local_44 = iVar1;
  if (param_2 == 0xe) {
    if (iVar10 == 0) {
      iVar10 = iVar1;
      if (local_40 != 0) {
        local_3c = 0;
        local_38 = 0;
        local_4c = local_40;
        goto LAB_00100a5b;
      }
    }
    else {
      local_44 = iVar10;
      if (local_40 != 0) goto LAB_00100a44;
    }
    local_3c = 0;
    local_38 = 0;
    local_44 = iVar10;
LAB_00100be8:
    local_40 = local_3c + local_4c;
  }
  else {
    if (param_2 == 0xf) {
      if (iVar10 == 0) {
        iVar10 = iVar1;
      }
      iVar5 = param_1;
      iVar6 = iVar4;
      iVar7 = iVar3;
      if (local_40 == 0) {
        local_40 = local_4c;
      }
      while( true ) {
        if (iVar10 < iVar1 + iVar7) {
          iVar10 = iVar1 + iVar7;
        }
        iVar1 = local_4c + iVar6;
        if (local_4c + iVar6 <= local_40) {
          iVar1 = local_40;
        }
        iVar5 = GetNextImageInList(iVar5);
        local_40 = iVar1;
        if (iVar5 == 0) break;
        iVar1 = *(int *)(iVar5 + 0x18);
        local_4c = *(int *)(iVar5 + 0x1c);
        iVar6 = *(int *)(iVar5 + 0x20c);
        iVar7 = *(int *)(iVar5 + 0x208);
      }
      if (iVar10 == 0) {
        local_44 = 0;
        if (iVar1 == 0) {
          local_4c = 0;
          local_3c = 0;
          local_38 = 0;
          iVar10 = 0;
          goto LAB_00100be8;
        }
      }
      else {
        local_44 = iVar10;
        if (iVar1 == 0) {
          local_4c = 0;
          local_3c = 0;
          local_38 = 0;
          goto LAB_00100be8;
        }
      }
LAB_00100a44:
      local_3c = 0;
      local_38 = 0;
      local_4c = local_40;
      iVar1 = iVar10;
      goto LAB_00100a5b;
    }
    iVar1 = GetNextImageInList(param_1);
    local_38 = iVar3;
    local_3c = iVar4;
    while (iVar1 != 0) {
      iVar5 = *(int *)(iVar1 + 0x208);
      if (iVar5 < local_38) {
        local_44 = local_44 + (local_38 - iVar5);
        local_38 = iVar5;
      }
      iVar6 = *(int *)(iVar1 + 0x20c);
      if (iVar6 < local_3c) {
        local_4c = local_4c + (local_3c - iVar6);
        local_3c = iVar6;
      }
      iVar5 = (iVar5 + *(int *)(iVar1 + 0x18)) - local_38;
      if (iVar5 <= local_44) {
        iVar5 = local_44;
      }
      iVar6 = (iVar6 + *(int *)(iVar1 + 0x1c)) - local_3c;
      if (iVar6 <= local_4c) {
        iVar6 = local_4c;
      }
      iVar1 = GetNextImageInList(iVar1);
      local_44 = iVar5;
      local_4c = iVar6;
    }
    if ((iVar10 == 0) && (iVar10 = local_44, -1 < local_38)) {
      iVar10 = local_38 + local_44;
    }
    if ((local_40 == 0) && (local_40 = local_4c, -1 < local_3c)) goto LAB_00100be8;
  }
  iVar1 = iVar10;
  if (param_2 == 0x10) {
    uVar2 = GetImageListLength(param_1);
    if ((int)uVar2 < 1) {
      return 0;
    }
    uVar8 = 0;
    uVar9 = 0;
    while( true ) {
      *(int *)(param_1 + 0x208) = iVar3 - local_38;
      *(int *)(param_1 + 0x20c) = iVar4 - local_3c;
      *(int *)(param_1 + 0x200) = local_44;
      *(int *)(param_1 + 0x204) = local_4c;
      iVar3 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);
      if (iVar3 == 0) {
        return 0;
      }
      param_1 = GetNextImageInList(param_1);
      if (param_1 == 0) break;
      bVar11 = 0xfffffffe < uVar8;
      uVar8 = uVar8 + 1;
      uVar9 = uVar9 + bVar11;
      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {
        return 0;
      }
      iVar3 = *(int *)(param_1 + 0x208);
      iVar4 = *(int *)(param_1 + 0x20c);
    }
    return 0;
  }
LAB_00100a5b:
  iVar3 = CloneImage(param_1,local_44,local_4c,1,param_3);
  if (iVar3 == 0) {
    return 0;
  }
  *(undefined4 *)(iVar3 + 0x84) = 4;
  SetImageBackgroundColor(iVar3,param_3);
  *(int *)(iVar3 + 0x200) = iVar1;
  *(int *)(iVar3 + 0x204) = local_40;
  *(undefined4 *)(iVar3 + 0x240) = 0;
  *(int *)(iVar3 + 0x20c) = local_3c;
  *(int *)(iVar3 + 0x208) = local_38;
  uVar2 = GetImageListLength(param_1);
  if (0 < (int)uVar2) {
    uVar8 = 0;
    uVar9 = 0;
    while( true ) {
      CompositeImage(iVar3,param_1,*(undefined4 *)(param_1 + 0x23c),1,
                     *(int *)(param_1 + 0x208) - local_38,*(int *)(param_1 + 0x20c) - local_3c,
                     param_3);
      iVar4 = SetImageProgress(param_1,"Merge/Layers",uVar8,uVar9,uVar2,0);
      if ((iVar4 == 0) || (param_1 = GetNextImageInList(param_1), param_1 == 0)) break;
      bVar11 = 0xfffffffe < uVar8;
      uVar8 = uVar8 + 1;
      uVar9 = uVar9 + bVar11;
      if (0xfffffffe < uVar2 - 1 == uVar9 && uVar2 == uVar8) {
        return iVar3;
      }
      local_3c = *(int *)(iVar3 + 0x20c);
      local_38 = *(int *)(iVar3 + 0x208);
    }
  }
  return iVar3;
}

