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

MagickBooleanType __regparm3
WritePSDLayersInternal
          (Image *image,ImageInfo *image_info,PSDInfo *psd_info,size_t *layers_size,
          ExceptionInfo *exception)

{
  ssize_t *psVar1;
  int iVar2;
  _Image *p_Var3;
  double dVar4;
  uchar value;
  short sVar5;
  Image *pIVar6;
  Image *pIVar7;
  uint *memory;
  char *pcVar8;
  size_t sVar9;
  ssize_t sVar10;
  ssize_t sVar11;
  ssize_t sVar12;
  ssize_t sVar13;
  MagickBooleanType MVar14;
  ssize_t sVar15;
  long lVar16;
  CacheType CVar17;
  int iVar18;
  StringInfo *pSVar19;
  uchar *puVar20;
  StringInfo *string_info;
  ssize_t sVar21;
  ssize_t sVar22;
  ssize_t sVar23;
  ssize_t sVar24;
  size_t value_00;
  Image *next_image;
  size_t sVar25;
  CompressionType compression;
  ChannelType CVar26;
  int iVar27;
  short sVar28;
  uint uVar29;
  uint uVar30;
  size_t sVar31;
  undefined4 *puVar32;
  uint uVar33;
  int iVar34;
  int iVar35;
  char (*pacVar36) [5];
  int in_GS_OFFSET;
  bool bVar37;
  byte bVar38;
  MagickOffsetType offset;
  MagickOffsetType MVar39;
  MagickSizeType MVar40;
  Image *local_1178;
  Image *local_1174;
  int local_116c;
  undefined4 uStack_1168;
  size_t local_115c;
  int local_1158;
  uint *local_1150;
  uint local_1130;
  MagickOffsetType size_offset;
  byte local_1103;
  double local_10f4;
  Image *local_10ec;
  undefined4 local_10e8;
  ExceptionInfo *local_10e4;
  undefined4 local_10e0;
  char allowed [36] [5];
  char key [5];
  char layer_name [4096];
  
  bVar38 = 0;
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  pIVar6 = GetNextImageInList(image);
  if (pIVar6 == (Image *)0x0) {
    pIVar6 = image;
  }
  offset = TellBlob(image);
  if (psd_info->version == 1) {
    WriteBlobLong(image,0);
  }
  else {
    WriteBlobLongLong(image,0);
  }
  sVar31 = 0;
  for (pIVar7 = pIVar6; pIVar7 != (Image *)0x0; pIVar7 = GetNextImageInList(pIVar7)) {
    sVar31 = sVar31 + 1;
  }
  sVar25 = sVar31;
  if (image->alpha_trait != UndefinedPixelTrait) {
    sVar25 = -sVar31;
  }
  local_1130 = WriteBlobShort(image,(ushort)sVar25);
  memory = (uint *)AcquireQuantumMemory(sVar31,8);
  if (memory == (uint *)0x0) {
    ThrowMagickException
              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,
               "MemoryAllocationFailed","`%s\'",0x6e,image->filename);
    p_Var3 = (_Image *)image_info->adjoin;
    pIVar6 = image;
    while (pIVar7 = image, p_Var3 != (_Image *)0x0) {
      p_Var3 = pIVar7->previous;
      image = p_Var3;
      pIVar6 = pIVar7;
    }
    CloseBlob(pIVar6);
    local_1178 = (Image *)0x0;
  }
  else {
    if (pIVar6 != (Image *)0x0) {
      iVar27 = 0;
      local_1178 = pIVar6;
      do {
        pcVar8 = GetImageArtifact(local_1178,"psd:opacity-mask");
        if (pcVar8 == (char *)0x0) {
          local_1103 = 0;
          local_1174 = (Image *)0x0;
        }
        else {
          local_1174 = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception);
          sVar9 = strlen(pcVar8);
          local_1103 = -(sVar9 == 9);
        }
        sVar10 = WriteBlobSignedLong(image,(local_1178->page).y);
        sVar11 = WriteBlobSignedLong(image,(local_1178->page).x);
        sVar12 = WriteBlobSignedLong(image,local_1178->rows + (local_1178->page).y);
        sVar13 = WriteBlobSignedLong(image,local_1178->columns + (local_1178->page).x);
        if ((local_1178->storage_class == PseudoClass) ||
           (MVar14 = IsImageGray(local_1178), MVar14 != MagickFalse)) {
          sVar5 = 2;
          local_115c = 1;
          sVar28 = 1;
        }
        else {
          sVar5 = (local_1178->colorspace == CMYKColorspace) + 4;
          local_115c = (local_1178->colorspace == CMYKColorspace) + 3;
          sVar28 = (local_1178->colorspace == CMYKColorspace) + 3;
        }
        if (local_1178->alpha_trait == UndefinedPixelTrait) {
          sVar5 = sVar28;
        }
        sVar15 = WriteBlobShort(image,(sVar5 + 1) - (ushort)(local_1174 == (Image *)0x0));
        iVar27 = iVar27 + 1;
        local_116c = sVar15 + local_1130 + sVar10 + sVar11 + sVar12 + sVar13;
        MVar39 = TellBlob(image);
        memory[iVar27 * 2 + -2] = (uint)MVar39;
        memory[iVar27 * 2 + -1] = (uint)((ulonglong)MVar39 >> 0x20);
        iVar35 = 0;
        do {
          while (sVar10 = WriteBlobShort(image,(ushort)iVar35), psd_info->version != 1) {
            iVar35 = iVar35 + 1;
            sVar11 = WriteBlobLongLong(image,0);
            local_116c = local_116c + sVar10 + sVar11;
            if (iVar35 == local_115c) {
              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;
              goto LAB_0029cb4b;
            }
          }
          iVar35 = iVar35 + 1;
          sVar11 = WriteBlobLong(image,0);
          local_116c = local_116c + sVar10 + sVar11;
        } while (local_115c != iVar35);
        if (local_1178->alpha_trait != UndefinedPixelTrait) {
LAB_0029cb4b:
          sVar10 = WriteBlobShort(image,0xffff);
          if (psd_info->version == 1) {
            iVar35 = WriteBlobLong(image,0);
          }
          else {
            iVar35 = WriteBlobLongLong(image,0);
          }
          local_116c = iVar35 + local_116c + sVar10;
        }
LAB_0029ca7f:
        if (local_1174 != (Image *)0x0) {
          sVar10 = WriteBlobShort(image,0xfffe);
          if (psd_info->version == 1) {
            iVar35 = WriteBlobLong(image,0);
          }
          else {
            iVar35 = WriteBlobLongLong(image,0);
          }
          local_116c = iVar35 + local_116c + sVar10;
        }
        pcVar8 = "8BIM";
        if (image->endian == LSBEndian) {
          pcVar8 = "MIB8";
        }
        sVar10 = WriteBlobString(image,pcVar8);
        switch(local_1178->compose) {
        case ColorBurnCompositeOp:
          pcVar8 = "idiv";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "vidi";
          }
          break;
        case ColorDodgeCompositeOp:
          pcVar8 = "div ";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = " vid";
          }
          break;
        case ColorizeCompositeOp:
          pcVar8 = "colr";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "rloc";
          }
          break;
        default:
          pcVar8 = "norm";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "mron";
          }
          break;
        case DarkenCompositeOp:
          pcVar8 = "dark";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "krad";
          }
          break;
        case DifferenceCompositeOp:
          pcVar8 = "diff";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "ffid";
          }
          break;
        case DissolveCompositeOp:
          pcVar8 = "diss";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "ssid";
          }
          break;
        case ExclusionCompositeOp:
          pcVar8 = "smud";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "dums";
          }
          break;
        case HardLightCompositeOp:
          pcVar8 = "hLit";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "tiLh";
          }
          break;
        case HardMixCompositeOp:
          pcVar8 = "hMix";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "xiMh";
          }
          break;
        case HueCompositeOp:
          pcVar8 = "hue ";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = " euh";
          }
          break;
        case LightenCompositeOp:
          pcVar8 = "lite";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "etil";
          }
          break;
        case LinearBurnCompositeOp:
          pcVar8 = "lbrn";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "nrbl";
          }
          break;
        case LinearDodgeCompositeOp:
          pcVar8 = "lddg";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "gddl";
          }
          break;
        case LinearLightCompositeOp:
          pcVar8 = "lLit";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "tiLl";
          }
          break;
        case LuminizeCompositeOp:
          pcVar8 = "lum ";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = " mul";
          }
          break;
        case MultiplyCompositeOp:
          pcVar8 = "mul ";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = " lum";
          }
          break;
        case OverlayCompositeOp:
          pcVar8 = "over";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "revo";
          }
          break;
        case PinLightCompositeOp:
          pcVar8 = "pLit";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "tiLp";
          }
          break;
        case SaturateCompositeOp:
          pcVar8 = "sat ";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = " tas";
          }
          break;
        case ScreenCompositeOp:
          pcVar8 = "scrn";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "nrcs";
          }
          break;
        case SoftLightCompositeOp:
          pcVar8 = "sLit";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "tiLs";
          }
          break;
        case VividLightCompositeOp:
          pcVar8 = "vLit";
          if (local_1178->endian == LSBEndian) {
            pcVar8 = "tiLv";
          }
        }
        sVar11 = WriteBlobString(image,pcVar8);
        iVar35 = local_116c + sVar10 + sVar11;
        pcVar8 = GetImageArtifact(local_1178,"psd:layer.opacity");
        if (pcVar8 == (char *)0x0) {
          sVar10 = WriteBlobByte(image,0xff);
          iVar35 = iVar35 + sVar10;
        }
        else {
          lVar16 = strtol(pcVar8,(char **)0x0,10);
          dVar4 = (double)lVar16;
          value = '\0';
          if (0.0 < dVar4) {
            value = 0xff;
            if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {
              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);
            }
          }
          sVar10 = WriteBlobByte(image,value);
          iVar35 = iVar35 + sVar10;
          if (local_1178->debug != MagickFalse) {
            uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);
            LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,
                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);
          }
          if ((float)lVar16 != DAT_002df8a8) {
            if (local_1178->alpha_trait != BlendPixelTrait) {
              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);
            }
            CVar17 = GetImagePixelCacheType(local_1178);
            if (((CVar17 == MemoryCache) ||
                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&
               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||
                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {
              MVar40 = GetMagickResourceLimit(ThreadResource);
              sVar31 = local_1178->rows;
              sVar25 = sVar31 + 0x3f;
              if (-1 < (int)sVar31) {
                sVar25 = sVar31;
              }
              bVar37 = 0x7f < (int)sVar31;
              if ((int)MVar40 < (int)sVar25 >> 6) {
                MVar40 = GetMagickResourceLimit(ThreadResource);
                bVar37 = 1 < (int)MVar40;
              }
              if (bVar37) {
                MVar40 = GetMagickResourceLimit(ThreadResource);
                sVar31 = local_1178->rows;
                sVar25 = sVar31 + 0x3f;
                if (-1 < (int)sVar31) {
                  sVar25 = sVar31;
                }
                iVar18 = (int)sVar25 >> 6;
                if ((int)MVar40 < iVar18) {
                  MVar40 = GetMagickResourceLimit(ThreadResource);
                  iVar18 = (int)MVar40;
                }
              }
              else {
LAB_0029d989:
                iVar18 = 1;
              }
            }
            else {
              MVar40 = GetMagickResourceLimit(ThreadResource);
              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {
                MVar40 = GetMagickResourceLimit(ThreadResource);
                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;
              }
              MVar40 = GetMagickResourceLimit(ThreadResource);
              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {
                MVar40 = GetMagickResourceLimit(ThreadResource);
                iVar18 = (int)MVar40;
              }
              else {
                iVar18 = 2;
              }
            }
            local_10e8 = 1;
            local_10e0 = 1;
            local_10e4 = exception;
            local_10ec = local_1178;
            local_10f4 = dVar4;
            GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);
          }
        }
        sVar10 = WriteBlobByte(image,'\0');
        sVar11 = WriteBlobByte(image,(local_1178->compose == NoCompositeOp) * '\x03' + '\x01');
        sVar12 = WriteBlobByte(image,'\0');
        iVar35 = sVar12 + iVar35 + sVar10 + sVar11;
        puVar32 = &DAT_0034d420;
        pacVar36 = allowed;
        for (iVar18 = 0x2d; iVar18 != 0; iVar18 = iVar18 + -1) {
          *(undefined4 *)*pacVar36 = *puVar32;
          puVar32 = puVar32 + (uint)bVar38 * -2 + 1;
          pacVar36 = (char (*) [5])((int)pacVar36 + (uint)bVar38 * -8 + 4);
        }
        pSVar19 = GetImageProfile(local_1178,"psd:additional-info");
        if (pSVar19 == (StringInfo *)0x0) {
LAB_0029ddc4:
          string_info = (StringInfo *)0x0;
        }
        else {
          pcVar8 = GetImageOption(image_info,"psd:additional-info");
          iVar18 = LocaleCompare(pcVar8,"all");
          string_info = pSVar19;
          if (iVar18 != 0) {
            iVar18 = LocaleCompare(pcVar8,"selective");
            if (iVar18 == 0) {
              sVar31 = GetStringInfoLength(pSVar19);
              puVar20 = GetStringInfoDatum(pSVar19);
              if (sVar31 < 0xc) {
                string_info = RemoveImageProfile(local_1178,"psd:additional-info");
              }
              else {
                local_115c = 0;
                do {
                  key[0] = puVar20[4];
                  uVar30 = sVar31 - 0xc;
                  key[4] = '\0';
                  uVar33 = *(uint *)(puVar20 + 8);
                  key[1] = puVar20[5];
                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |
                           uVar33 << 0x18;
                  key[2] = puVar20[6];
                  key[3] = puVar20[7];
                  pacVar36 = allowed;
                  if (uVar30 < uVar33) goto LAB_0029ddc4;
                  do {
                    iVar18 = LocaleNCompare(key,*pacVar36,5);
                    if (iVar18 == 0) {
                      sVar31 = uVar30 - uVar33;
                      local_115c = local_115c + 0xc + uVar33;
                      puVar20 = puVar20 + uVar33 + 0xc;
                      goto LAB_0029cee4;
                    }
                    pacVar36 = pacVar36 + 1;
                  } while (&key != pacVar36);
                  sVar31 = uVar30 - uVar33;
                  if (sVar31 == 0) break;
                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);
LAB_0029cee4:
                } while (0xb < sVar31);
                string_info = RemoveImageProfile(local_1178,"psd:additional-info");
                if (local_115c != 0) {
                  SetStringInfoLength(string_info,local_115c);
                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);
                  goto LAB_0029cfc8;
                }
              }
              string_info = DestroyStringInfo(string_info);
            }
            else {
              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");
              string_info = DestroyStringInfo(pSVar19);
            }
          }
        }
LAB_0029cfc8:
        pcVar8 = GetImageProperty(local_1178,"label",exception);
        if (pcVar8 == (char *)0x0) {
          pcVar8 = layer_name;
          FormatLocaleString(pcVar8,0x1000,"L%.20g",SUB84((double)iVar27,0),
                             (int)((ulonglong)(double)iVar27 >> 0x20));
        }
        sVar9 = strlen(pcVar8);
        uVar33 = sVar9 + 1;
        if ((uVar33 & 3) != 0) {
          uVar33 = (uVar33 & 0xfffffffc) + 4;
        }
        if (string_info != (StringInfo *)0x0) {
          sVar31 = GetStringInfoLength(string_info);
          uVar33 = uVar33 + sVar31;
        }
        if (local_1174 == (Image *)0x0) {
          sVar10 = WriteBlobLong(image,uVar33 + 8);
          sVar11 = WriteBlobLong(image,0);
          iVar35 = sVar10 + sVar11 + iVar35;
        }
        else {
          sVar10 = WriteBlobLong(image,uVar33 + 0x1c);
          if ((local_1174->compose != NoCompositeOp) &&
             (local_1178->alpha_trait != UndefinedPixelTrait)) {
            ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),
                                MagickTrue,exception);
          }
          psVar1 = &(local_1174->page).y;
          *psVar1 = *psVar1 + (image->page).y;
          psVar1 = &(local_1174->page).x;
          *psVar1 = *psVar1 + (image->page).x;
          sVar11 = WriteBlobLong(image,0x14);
          sVar12 = WriteBlobSignedLong(image,(local_1174->page).y);
          sVar13 = WriteBlobSignedLong(image,(local_1174->page).x);
          sVar15 = WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows);
          sVar21 = WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns);
          sVar22 = WriteBlobByte(image,local_1103);
          sVar23 = WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02');
          sVar24 = WriteBlobMSBShort(image,0);
          iVar35 = iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +
                   sVar24;
        }
        sVar10 = WriteBlobLong(image,0);
        sVar9 = strlen(pcVar8);
        if (sVar9 < 0x100) {
          if (sVar9 == 0) {
            sVar12 = WriteBlobByte(image,'\0');
            iVar18 = 3;
          }
          else {
            sVar12 = WriteBlobByte(image,(uchar)sVar9);
            sVar11 = WriteBlob(image,sVar9,pcVar8);
            sVar12 = sVar12 + sVar11;
            uVar33 = sVar9 + 1 & 3;
            if (uVar33 == 0) goto LAB_0029d1b9;
            iVar18 = 4 - uVar33;
          }
          iVar34 = 0;
          do {
            iVar34 = iVar34 + 1;
            sVar11 = WriteBlobByte(image,'\0');
            sVar12 = sVar12 + sVar11;
          } while (iVar34 != iVar18);
        }
        else {
          sVar12 = WriteBlobByte(image,0xff);
          sVar11 = WriteBlob(image,0xff,pcVar8);
          sVar12 = sVar12 + sVar11;
        }
LAB_0029d1b9:
        local_1130 = sVar12 + sVar10 + iVar35;
        if (string_info != (StringInfo *)0x0) {
          puVar20 = GetStringInfoDatum(string_info);
          sVar31 = GetStringInfoLength(string_info);
          sVar10 = WriteBlob(image,sVar31,puVar20);
          local_1130 = local_1130 + sVar10;
        }
        local_1178 = GetNextImageInList(local_1178);
        pIVar7 = pIVar6;
        local_1150 = memory;
      } while (local_1178 != (Image *)0x0);
      do {
        local_1178 = (Image *)0x0;
        uVar33 = *local_1150;
        uVar30 = local_1150[1];
        compression = image_info->compression;
        if (image_info->compression == UndefinedCompression) {
          compression = pIVar7->compression;
        }
        if ((compression == RLECompression) &&
           (local_1178 = (Image *)AcquireQuantumMemory
                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1),
           next_image = pIVar7, local_1178 == (Image *)0x0)) {
LAB_0029dbfc:
          ThrowMagickException
                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,
                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename);
          local_1178 = (Image *)0x0;
          goto LAB_0029dc36;
        }
        uVar29 = uVar33 + 2;
        iVar27 = uVar30 + (0xfffffffd < uVar33);
        if ((pIVar7->storage_class == PseudoClass) &&
           (MVar14 = IsImageGray(pIVar7), MVar14 == MagickFalse)) {
          sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178
                                   ,0,MagickTrue,compression,exception);
          MVar39 = TellBlob(image);
          SeekBlob(image,CONCAT44(iVar27,uVar29),0);
          if (psd_info->version == 1) {
            sVar10 = WriteBlobLong(image,sVar31);
          }
          else {
            sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);
          }
          uVar33 = sVar10 + 2;
          SeekBlob(image,MVar39,0);
          local_115c = uVar33 + uVar29;
          local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);
        }
        else {
          MVar14 = IsImageGray(pIVar7);
          if (MVar14 == MagickFalse) {
            if (pIVar7->colorspace == CMYKColorspace) {
              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);
              NegateImage(pIVar7,MagickFalse,exception);
              SetImageChannelMask(pIVar7,CVar26);
            }
            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178
                                     ,0,MagickTrue,compression,exception);
            MVar39 = TellBlob(image);
            SeekBlob(image,CONCAT44(iVar27,uVar29),0);
            if (psd_info->version == 1) {
              sVar10 = WriteBlobLong(image,sVar25);
            }
            else {
              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);
            }
            uVar30 = sVar10 + 2;
            SeekBlob(image,MVar39,0);
            uVar33 = uVar30 + uVar29;
            iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);
            value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,
                                       (uchar *)local_1178,0,MagickTrue,compression,exception);
            MVar39 = TellBlob(image);
            SeekBlob(image,CONCAT44(iVar27,uVar33),0);
            if (psd_info->version == 1) {
              sVar10 = WriteBlobLong(image,value_00);
            }
            else {
              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);
            }
            uVar29 = sVar10 + 2;
            SeekBlob(image,MVar39,0);
            uVar30 = uVar29 + uVar33;
            iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);
            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,
                                     (uchar *)local_1178,0,MagickTrue,compression,exception);
            MVar39 = TellBlob(image);
            SeekBlob(image,CONCAT44(iVar27,uVar30),0);
            if (psd_info->version == 1) {
              sVar10 = WriteBlobLong(image,sVar31);
            }
            else {
              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);
            }
            uVar33 = sVar10 + 2;
            SeekBlob(image,MVar39,0);
            local_115c = uVar33 + uVar30;
            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);
            sVar31 = sVar25 + value_00 + sVar31;
            if (pIVar7->colorspace == CMYKColorspace) {
              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,
                                       (uchar *)local_1178,0,MagickTrue,compression,exception);
              MVar39 = TellBlob(image);
              SeekBlob(image,CONCAT44(local_1158,local_115c),0);
              if (psd_info->version == 1) {
                sVar10 = WriteBlobLong(image,sVar25);
              }
              else {
                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);
              }
              uVar33 = sVar10 + 2;
              SeekBlob(image,MVar39,0);
              bVar37 = CARRY4(local_115c,uVar33);
              local_115c = local_115c + uVar33;
              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;
              sVar31 = sVar31 + sVar25;
            }
          }
          else {
            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,
                                     (uchar *)local_1178,0,MagickTrue,compression,exception);
            MVar39 = TellBlob(image);
            SeekBlob(image,CONCAT44(iVar27,uVar29),0);
            if (psd_info->version == 1) {
              sVar10 = WriteBlobLong(image,sVar31);
            }
            else {
              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);
            }
            uVar33 = sVar10 + 2;
            SeekBlob(image,MVar39,0);
            local_115c = uVar33 + uVar29;
            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);
          }
          if (pIVar7->alpha_trait != UndefinedPixelTrait) {
            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,
                                     (uchar *)local_1178,0,MagickTrue,compression,exception);
            MVar39 = TellBlob(image);
            SeekBlob(image,CONCAT44(local_1158,local_115c),0);
            if (psd_info->version == 1) {
              sVar10 = WriteBlobLong(image,sVar25);
            }
            else {
              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);
            }
            uVar33 = sVar10 + 2;
            SeekBlob(image,MVar39,0);
            bVar37 = CARRY4(local_115c,uVar33);
            local_115c = local_115c + uVar33;
            local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;
            sVar31 = sVar31 + sVar25;
          }
        }
        local_1178 = (Image *)RelinquishMagickMemory(local_1178);
        if (pIVar7->colorspace == CMYKColorspace) {
          CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);
          NegateImage(pIVar7,MagickFalse,exception);
          SetImageChannelMask(pIVar7,CVar26);
        }
        pcVar8 = GetImageArtifact(pIVar7,"psd:opacity-mask");
        if ((pcVar8 != (char *)0x0) &&
           (next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception),
           next_image != (Image *)0x0)) {
          if ((compression == RLECompression) &&
             (local_1178 = (Image *)AcquireQuantumMemory
                                              (next_image->columns * 9 + 1,
                                               (8 < next_image->depth) + 1),
             local_1178 == (Image *)0x0)) goto LAB_0029dbfc;
          sVar25 = WritePSDChannel(psd_info,image_info,image,next_image,RedQuantum,
                                   (uchar *)local_1178,0,MagickTrue,compression,exception);
          MVar39 = TellBlob(image);
          SeekBlob(image,CONCAT44(local_1158,local_115c),0);
          if (psd_info->version == 1) {
            WriteBlobLong(image,sVar25);
          }
          else {
            WriteBlobLongLong(image,(ulonglong)sVar25);
          }
          SeekBlob(image,MVar39,0);
          sVar31 = sVar31 + sVar25;
          RelinquishMagickMemory(local_1178);
        }
        if (sVar31 == 0) {
          local_1178 = (Image *)0x0;
          goto LAB_0029dc36;
        }
        local_1130 = local_1130 + sVar31;
        pIVar7 = GetNextImageInList(pIVar7);
        local_1150 = local_1150 + 2;
      } while (pIVar7 != (Image *)0x0);
    }
    local_1178 = (Image *)0x1;
LAB_0029dc36:
    if (layers_size != (size_t *)0x0) {
      *layers_size = local_1130;
    }
    uVar33 = local_1130 + 1;
    if (local_1130 >> 1 == local_1130 + 1 >> 1) {
      uVar33 = local_1130;
    }
    MVar39 = TellBlob(image);
    SeekBlob(image,offset,0);
    if (psd_info->version == 1) {
      WriteBlobLong(image,uVar33);
    }
    else {
      WriteBlobLongLong(image,(ulonglong)uVar33);
    }
    SeekBlob(image,MVar39,0);
    RelinquishMagickMemory(memory);
    for (; pIVar6 != (Image *)0x0; pIVar6 = GetNextImageInList(pIVar6)) {
      while (pcVar8 = GetImageArtifact(pIVar6,"psd:opacity-mask"), pcVar8 != (char *)0x0) {
        DeleteImageRegistry(pcVar8);
        pIVar6 = GetNextImageInList(pIVar6);
        if (pIVar6 == (Image *)0x0) goto LAB_0029dd18;
      }
    }
  }
LAB_0029dd18:
  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return (MagickBooleanType)local_1178;
}



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

undefined4 __regparm3
FUN_0029c7a0(int *param_1,int *param_2,int param_3,uint *param_4,undefined4 param_5)

{
  double dVar1;
  undefined1 uVar2;
  short sVar3;
  int *piVar4;
  int *piVar5;
  uint *puVar6;
  char *pcVar7;
  size_t sVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  int iVar13;
  undefined1 *puVar14;
  long lVar15;
  undefined4 uVar16;
  void *__dest;
  int iVar17;
  int iVar18;
  int iVar19;
  int iVar20;
  int iVar21;
  int iVar22;
  undefined4 uVar23;
  int *piVar24;
  short sVar25;
  uint uVar26;
  uint uVar27;
  uint uVar28;
  undefined4 *puVar29;
  undefined4 *puVar30;
  int in_GS_OFFSET;
  bool bVar31;
  byte bVar32;
  undefined8 uVar33;
  undefined8 uVar34;
  int *local_1178;
  int local_1174;
  int local_116c;
  uint local_115c;
  int local_1158;
  uint *local_1150;
  int local_114c;
  uint local_1130;
  byte local_1103;
  double local_10f4;
  int *local_10ec;
  undefined4 local_10e8;
  undefined4 local_10e4;
  undefined4 local_10e0;
  undefined4 local_10d9 [45];
  undefined1 local_1025;
  undefined1 local_1024;
  undefined1 local_1023;
  undefined1 local_1022;
  undefined1 local_1021;
  char local_1020 [4096];
  int local_20;
  undefined4 uStack_14;
  
  bVar32 = 0;
  uStack_14 = 0x29c7ad;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  piVar4 = (int *)GetNextImageInList(param_1);
  if (piVar4 == (int *)0x0) {
    piVar4 = param_1;
  }
  uVar33 = TellBlob(param_1);
  if (*(short *)(param_3 + 0x1e) == 1) {
    WriteBlobLong(param_1,0);
  }
  else {
    WriteBlobLongLong(param_1,0,0);
  }
  uVar27 = 0;
  for (piVar5 = piVar4; piVar5 != (int *)0x0; piVar5 = (int *)GetNextImageInList(piVar5)) {
    uVar27 = uVar27 + 1;
  }
  uVar28 = uVar27;
  if (param_1[0xa5] != 0) {
    uVar28 = -uVar27;
  }
  local_1130 = WriteBlobShort(param_1,uVar28 & 0xffff);
  puVar6 = (uint *)AcquireQuantumMemory(uVar27,8);
  if (puVar6 == (uint *)0x0) {
    ThrowMagickException
              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",
               "`%s\'",param_1 + 0xc6);
    piVar4 = (int *)param_2[3];
    piVar5 = param_1;
    while (piVar24 = param_1, piVar4 != (int *)0x0) {
      piVar4 = (int *)piVar24[0xccf];
      param_1 = piVar4;
      piVar5 = piVar24;
    }
    CloseBlob(piVar5);
    local_1178 = (int *)0x0;
  }
  else {
    if (piVar4 != (int *)0x0) {
      local_114c = 0;
      local_1178 = piVar4;
      do {
        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");
        if (pcVar7 == (char *)0x0) {
          local_1103 = 0;
          local_1174 = 0;
        }
        else {
          local_1174 = GetImageRegistry(1,pcVar7,param_5);
          sVar8 = strlen(pcVar7);
          local_1103 = -(sVar8 == 9);
        }
        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);
        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);
        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);
        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);
        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {
          sVar3 = 2;
          local_115c = 1;
          sVar25 = 1;
        }
        else {
          sVar3 = (local_1178[1] == 2) + 4;
          local_115c = (local_1178[1] == 2) + 3;
          sVar25 = (local_1178[1] == 2) + 3;
        }
        if (local_1178[0xa5] == 0) {
          sVar3 = sVar25;
        }
        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));
        local_114c = local_114c + 1;
        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;
        uVar34 = TellBlob(param_1);
        puVar6[local_114c * 2 + -2] = (uint)uVar34;
        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);
        iVar9 = 0;
        do {
          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {
            iVar9 = iVar9 + 1;
            iVar11 = WriteBlobLongLong(param_1,0,0);
            local_116c = local_116c + iVar10 + iVar11;
            if (iVar9 == local_115c) {
              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;
              goto LAB_0029cb4b;
            }
          }
          iVar9 = iVar9 + 1;
          iVar11 = WriteBlobLong(param_1,0);
          local_116c = local_116c + iVar10 + iVar11;
        } while (local_115c != iVar9);
        if (local_1178[0xa5] != 0) {
LAB_0029cb4b:
          iVar9 = WriteBlobShort(param_1,0xffff);
          if (*(short *)(param_3 + 0x1e) == 1) {
            iVar10 = WriteBlobLong(param_1,0);
          }
          else {
            iVar10 = WriteBlobLongLong(param_1,0,0);
          }
          local_116c = iVar10 + local_116c + iVar9;
        }
LAB_0029ca7f:
        if (local_1174 != 0) {
          iVar9 = WriteBlobShort(param_1,0xfffe);
          if (*(short *)(param_3 + 0x1e) == 1) {
            iVar10 = WriteBlobLong(param_1,0);
          }
          else {
            iVar10 = WriteBlobLongLong(param_1,0,0);
          }
          local_116c = iVar10 + local_116c + iVar9;
        }
        puVar14 = &DAT_002e24fa;
        if (param_1[0x8d] == 1) {
          puVar14 = &DAT_0034cdc9;
        }
        iVar9 = WriteBlobString(param_1,puVar14);
        switch(local_1178[0x8f]) {
        case 8:
          pcVar7 = "idiv";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "vidi";
          }
          break;
        case 9:
          pcVar7 = "div ";
          if (local_1178[0x8d] == 1) {
            pcVar7 = " vid";
          }
          break;
        case 10:
          pcVar7 = "colr";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "rloc";
          }
          break;
        default:
          pcVar7 = "norm";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "mron";
          }
          break;
        case 0x14:
          pcVar7 = "dark";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "krad";
          }
          break;
        case 0x16:
          pcVar7 = "diff";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "ffid";
          }
          break;
        case 0x18:
          pcVar7 = "diss";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "ssid";
          }
          break;
        case 0x21:
          pcVar7 = "smud";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "dums";
          }
          break;
        case 0x22:
          pcVar7 = "hLit";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "tiLh";
          }
          break;
        case 0x23:
          pcVar7 = "hMix";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "xiMh";
          }
          break;
        case 0x24:
          pcVar7 = "hue ";
          if (local_1178[0x8d] == 1) {
            pcVar7 = " euh";
          }
          break;
        case 0x27:
          pcVar7 = "lite";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "etil";
          }
          break;
        case 0x29:
          pcVar7 = "lbrn";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "nrbl";
          }
          break;
        case 0x2a:
          pcVar7 = "lddg";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "gddl";
          }
          break;
        case 0x2b:
          pcVar7 = "lLit";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "tiLl";
          }
          break;
        case 0x2c:
          pcVar7 = "lum ";
          if (local_1178[0x8d] == 1) {
            pcVar7 = " mul";
          }
          break;
        case 0x33:
          pcVar7 = "mul ";
          if (local_1178[0x8d] == 1) {
            pcVar7 = " lum";
          }
          break;
        case 0x37:
          pcVar7 = "over";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "revo";
          }
          break;
        case 0x39:
          pcVar7 = "pLit";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "tiLp";
          }
          break;
        case 0x3c:
          pcVar7 = "sat ";
          if (local_1178[0x8d] == 1) {
            pcVar7 = " tas";
          }
          break;
        case 0x3d:
          pcVar7 = "scrn";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "nrcs";
          }
          break;
        case 0x3e:
          pcVar7 = "sLit";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "tiLs";
          }
          break;
        case 0x45:
          pcVar7 = "vLit";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "tiLv";
          }
        }
        iVar10 = WriteBlobString(param_1,pcVar7);
        iVar10 = local_116c + iVar9 + iVar10;
        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");
        if (pcVar7 == (char *)0x0) {
          iVar9 = WriteBlobByte(param_1,0xff);
          iVar10 = iVar10 + iVar9;
        }
        else {
          lVar15 = strtol(pcVar7,(char **)0x0,10);
          dVar1 = (double)lVar15;
          uVar2 = 0;
          if (0.0 < dVar1) {
            uVar2 = 0xff;
            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {
              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);
            }
          }
          iVar9 = WriteBlobByte(param_1,uVar2);
          iVar10 = iVar10 + iVar9;
          if (local_1178[0xcca] != 0) {
            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,
                           "  applying layer opacity %.20g",dVar1);
          }
          if ((float)lVar15 != DAT_002df8a8) {
            if (local_1178[0xa5] != 4) {
              SetImageAlphaChannel(local_1178,0xb,param_5);
            }
            iVar9 = GetImagePixelCacheType(local_1178);
            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&
               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||
                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {
              iVar12 = GetMagickResourceLimit(7);
              iVar9 = local_1178[7];
              iVar11 = iVar9 + 0x3f;
              if (-1 < iVar9) {
                iVar11 = iVar9;
              }
              bVar31 = 0x7f < iVar9;
              if (iVar12 < iVar11 >> 6) {
                iVar9 = GetMagickResourceLimit(7);
                bVar31 = 1 < iVar9;
              }
              if (bVar31) {
                iVar12 = GetMagickResourceLimit(7);
                iVar11 = local_1178[7];
                iVar9 = iVar11 + 0x3f;
                if (-1 < iVar11) {
                  iVar9 = iVar11;
                }
                iVar9 = iVar9 >> 6;
                if (iVar12 < iVar9) {
                  iVar9 = GetMagickResourceLimit(7);
                }
              }
              else {
LAB_0029d989:
                iVar9 = 1;
              }
            }
            else {
              uVar34 = GetMagickResourceLimit(7);
              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {
                uVar34 = GetMagickResourceLimit(7);
                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))
                goto LAB_0029d989;
              }
              uVar34 = GetMagickResourceLimit(7);
              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {
                iVar9 = GetMagickResourceLimit(7);
              }
              else {
                iVar9 = 2;
              }
            }
            local_10e8 = 1;
            local_10e0 = 1;
            local_10e4 = param_5;
            local_10ec = local_1178;
            local_10f4 = dVar1;
            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);
          }
        }
        iVar11 = WriteBlobByte(param_1,0);
        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');
        iVar9 = WriteBlobByte(param_1,0);
        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;
        puVar30 = &DAT_0034d420;
        puVar29 = local_10d9;
        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {
          *puVar29 = *puVar30;
          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;
          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;
        }
        iVar10 = GetImageProfile(local_1178,"psd:additional-info");
        if (iVar10 == 0) {
LAB_0029ddc4:
          iVar11 = 0;
        }
        else {
          uVar16 = GetImageOption(param_2,"psd:additional-info");
          iVar12 = LocaleCompare(uVar16,"all");
          iVar11 = iVar10;
          if (iVar12 != 0) {
            iVar11 = LocaleCompare(uVar16,"selective");
            if (iVar11 == 0) {
              uVar27 = GetStringInfoLength(iVar10);
              __dest = (void *)GetStringInfoDatum(iVar10);
              if (uVar27 < 0xc) {
                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");
              }
              else {
                local_115c = 0;
                do {
                  local_1025 = *(undefined1 *)((int)__dest + 4);
                  uVar27 = uVar27 - 0xc;
                  local_1021 = 0;
                  uVar28 = *(uint *)((int)__dest + 8);
                  local_1024 = *(undefined1 *)((int)__dest + 5);
                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |
                           uVar28 << 0x18;
                  local_1023 = *(undefined1 *)((int)__dest + 6);
                  local_1022 = *(undefined1 *)((int)__dest + 7);
                  puVar30 = local_10d9;
                  if (uVar27 < uVar28) goto LAB_0029ddc4;
                  do {
                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);
                    if (iVar11 == 0) {
                      uVar27 = uVar27 - uVar28;
                      local_115c = local_115c + 0xc + uVar28;
                      __dest = (void *)((int)__dest + uVar28 + 0xc);
                      goto LAB_0029cee4;
                    }
                    puVar30 = (undefined4 *)((int)puVar30 + 5);
                  } while ((undefined4 *)&local_1025 != puVar30);
                  uVar27 = uVar27 - uVar28;
                  if (uVar27 == 0) break;
                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);
LAB_0029cee4:
                } while (0xb < uVar27);
                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");
                if (local_115c != 0) {
                  SetStringInfoLength(iVar11,local_115c);
                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);
                  goto LAB_0029cfc8;
                }
              }
              iVar11 = DestroyStringInfo(iVar11);
            }
            else {
              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");
              iVar11 = DestroyStringInfo(uVar16);
            }
          }
        }
LAB_0029cfc8:
        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);
        if (pcVar7 == (char *)0x0) {
          pcVar7 = local_1020;
          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);
        }
        sVar8 = strlen(pcVar7);
        uVar27 = sVar8 + 1;
        if ((uVar27 & 3) != 0) {
          uVar27 = (uVar27 & 0xfffffffc) + 4;
        }
        if (iVar11 != 0) {
          iVar10 = GetStringInfoLength(iVar11);
          uVar27 = uVar27 + iVar10;
        }
        if (local_1174 == 0) {
          iVar10 = WriteBlobLong(param_1,uVar27 + 8);
          iVar12 = WriteBlobLong(param_1,0);
          iVar10 = iVar10 + iVar12 + iVar9;
        }
        else {
          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);
          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {
            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);
          }
          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];
          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];
          iVar13 = WriteBlobLong(param_1,0x14);
          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));
          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));
          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +
                                               *(int *)(local_1174 + 0x1c));
          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +
                                               *(int *)(local_1174 + 0x18));
          iVar21 = WriteBlobByte(param_1,local_1103);
          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');
          iVar10 = WriteBlobMSBShort(param_1,0);
          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +
                   iVar10;
        }
        iVar9 = WriteBlobLong(param_1,0);
        sVar8 = strlen(pcVar7);
        if (sVar8 < 0x100) {
          if (sVar8 == 0) {
            iVar13 = WriteBlobByte(param_1,0);
            local_1174 = 3;
          }
          else {
            iVar13 = WriteBlobByte(param_1,sVar8);
            iVar12 = WriteBlob(param_1,sVar8,pcVar7);
            iVar13 = iVar13 + iVar12;
            uVar27 = sVar8 + 1 & 3;
            if (uVar27 == 0) goto LAB_0029d1b9;
            local_1174 = 4 - uVar27;
          }
          iVar12 = 0;
          do {
            iVar12 = iVar12 + 1;
            iVar17 = WriteBlobByte(param_1,0);
            iVar13 = iVar13 + iVar17;
          } while (iVar12 != local_1174);
        }
        else {
          iVar13 = WriteBlobByte(param_1,0xff);
          iVar12 = WriteBlob(param_1,0xff,pcVar7);
          iVar13 = iVar13 + iVar12;
        }
LAB_0029d1b9:
        local_1130 = iVar13 + iVar9 + iVar10;
        if (iVar11 != 0) {
          uVar16 = GetStringInfoDatum(iVar11);
          uVar23 = GetStringInfoLength(iVar11);
          iVar9 = WriteBlob(param_1,uVar23,uVar16);
          local_1130 = local_1130 + iVar9;
        }
        local_1178 = (int *)GetNextImageInList(local_1178);
        piVar5 = piVar4;
        local_1150 = puVar6;
      } while (local_1178 != (int *)0x0);
      do {
        local_1178 = (int *)0x0;
        uVar27 = *local_1150;
        uVar28 = local_1150[1];
        iVar9 = *param_2;
        if (*param_2 == 0) {
          iVar9 = piVar5[2];
        }
        if ((iVar9 == 0x13) &&
           (local_1178 = (int *)AcquireQuantumMemory
                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),
           piVar24 = piVar5, local_1178 == (int *)0x0)) {
LAB_0029dbfc:
          ThrowMagickException
                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,
                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);
          local_1178 = (int *)0x0;
          goto LAB_0029dc36;
        }
        uVar26 = uVar27 + 2;
        iVar10 = uVar28 + (0xfffffffd < uVar27);
        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {
          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);
          uVar34 = TellBlob(param_1);
          SeekBlob(param_1,uVar26,iVar10,0);
          if (*(short *)(param_3 + 0x1e) == 1) {
            iVar12 = WriteBlobLong(param_1,iVar11);
          }
          else {
            iVar12 = WriteBlobLongLong(param_1,iVar11,0);
          }
          uVar27 = iVar12 + 2;
          SeekBlob(param_1,uVar34,0);
          local_115c = uVar27 + uVar26;
          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);
        }
        else {
          iVar11 = IsImageGray(piVar5);
          if (iVar11 == 0) {
            if (piVar5[1] == 2) {
              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);
              NegateImage(piVar5,0,param_5);
              SetImageChannelMask(piVar5,uVar16);
            }
            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);
            uVar34 = TellBlob(param_1);
            SeekBlob(param_1,uVar26,iVar10,0);
            if (*(short *)(param_3 + 0x1e) == 1) {
              iVar11 = WriteBlobLong(param_1,iVar12);
            }
            else {
              iVar11 = WriteBlobLongLong(param_1,iVar12,0);
            }
            uVar28 = iVar11 + 2;
            SeekBlob(param_1,uVar34,0);
            uVar27 = uVar28 + uVar26;
            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);
            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);
            uVar34 = TellBlob(param_1);
            SeekBlob(param_1,uVar27,iVar11,0);
            if (*(short *)(param_3 + 0x1e) == 1) {
              iVar13 = WriteBlobLong(param_1,iVar10);
            }
            else {
              iVar13 = WriteBlobLongLong(param_1,iVar10,0);
            }
            uVar26 = iVar13 + 2;
            SeekBlob(param_1,uVar34,0);
            uVar28 = uVar26 + uVar27;
            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);
            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);
            uVar34 = TellBlob(param_1);
            SeekBlob(param_1,uVar28,iVar13,0);
            if (*(short *)(param_3 + 0x1e) == 1) {
              iVar17 = WriteBlobLong(param_1,iVar11);
            }
            else {
              iVar17 = WriteBlobLongLong(param_1,iVar11,0);
            }
            uVar27 = iVar17 + 2;
            SeekBlob(param_1,uVar34,0);
            local_115c = uVar27 + uVar28;
            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);
            iVar11 = iVar12 + iVar10 + iVar11;
            if (piVar5[1] == 2) {
              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);
              uVar34 = TellBlob(param_1);
              SeekBlob(param_1,local_115c,local_1158,0);
              if (*(short *)(param_3 + 0x1e) == 1) {
                iVar12 = WriteBlobLong(param_1,iVar10);
              }
              else {
                iVar12 = WriteBlobLongLong(param_1,iVar10,0);
              }
              uVar27 = iVar12 + 2;
              SeekBlob(param_1,uVar34,0);
              bVar31 = CARRY4(local_115c,uVar27);
              local_115c = local_115c + uVar27;
              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;
              iVar11 = iVar11 + iVar10;
            }
          }
          else {
            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);
            uVar34 = TellBlob(param_1);
            SeekBlob(param_1,uVar26,iVar10,0);
            if (*(short *)(param_3 + 0x1e) == 1) {
              iVar12 = WriteBlobLong(param_1,iVar11);
            }
            else {
              iVar12 = WriteBlobLongLong(param_1,iVar11,0);
            }
            uVar27 = iVar12 + 2;
            SeekBlob(param_1,uVar34,0);
            local_115c = uVar27 + uVar26;
            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);
          }
          if (piVar5[0xa5] != 0) {
            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);
            uVar34 = TellBlob(param_1);
            SeekBlob(param_1,local_115c,local_1158,0);
            if (*(short *)(param_3 + 0x1e) == 1) {
              iVar12 = WriteBlobLong(param_1,iVar10);
            }
            else {
              iVar12 = WriteBlobLongLong(param_1,iVar10,0);
            }
            uVar27 = iVar12 + 2;
            SeekBlob(param_1,uVar34,0);
            bVar31 = CARRY4(local_115c,uVar27);
            local_115c = local_115c + uVar27;
            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;
            iVar11 = iVar11 + iVar10;
          }
        }
        local_1178 = (int *)RelinquishMagickMemory(local_1178);
        if (piVar5[1] == 2) {
          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);
          NegateImage(piVar5,0,param_5);
          SetImageChannelMask(piVar5,uVar16);
        }
        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");
        if ((iVar10 != 0) &&
           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {
          if ((iVar9 == 0x13) &&
             (local_1178 = (int *)AcquireQuantumMemory
                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),
             local_1178 == (int *)0x0)) goto LAB_0029dbfc;
          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);
          uVar34 = TellBlob(param_1);
          SeekBlob(param_1,local_115c,local_1158,0);
          if (*(short *)(param_3 + 0x1e) == 1) {
            WriteBlobLong(param_1,iVar9);
          }
          else {
            WriteBlobLongLong(param_1,iVar9,0);
          }
          SeekBlob(param_1,uVar34,0);
          iVar11 = iVar11 + iVar9;
          RelinquishMagickMemory(local_1178);
        }
        if (iVar11 == 0) {
          local_1178 = (int *)0x0;
          goto LAB_0029dc36;
        }
        local_1130 = local_1130 + iVar11;
        piVar5 = (int *)GetNextImageInList(piVar5);
        local_1150 = local_1150 + 2;
      } while (piVar5 != (int *)0x0);
    }
    local_1178 = (int *)0x1;
LAB_0029dc36:
    if (param_4 != (uint *)0x0) {
      *param_4 = local_1130;
    }
    uVar27 = local_1130 + 1;
    if (local_1130 >> 1 == local_1130 + 1 >> 1) {
      uVar27 = local_1130;
    }
    uVar34 = TellBlob(param_1);
    SeekBlob(param_1,uVar33,0);
    if (*(short *)(param_3 + 0x1e) == 1) {
      WriteBlobLong(param_1,uVar27);
    }
    else {
      WriteBlobLongLong(param_1,uVar27,0);
    }
    SeekBlob(param_1,uVar34,0);
    RelinquishMagickMemory(puVar6);
    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {
      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {
        DeleteImageRegistry(iVar9);
        piVar4 = (int *)GetNextImageInList(piVar4);
        if (piVar4 == (int *)0x0) goto LAB_0029dd18;
      }
    }
  }
LAB_0029dd18:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_002decd0();
  }
  return local_1178;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
MOV EDI,ECX
PUSH ESI
PUSH EBX
CALL 0x00039d70
ADD EBX,0x181853
SUB ESP,0x1178
MOV EAX,dword ptr [ESP + 0x118c]
MOV dword ptr [ESP + 0x34],EDX
MOV dword ptr [ESP + 0x24],ECX
MOV dword ptr [ESP + 0x80],EAX
MOV EAX,dword ptr [ESP + 0x1190]
MOV dword ptr [ESP + 0x28],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1168],EAX
XOR EAX,EAX
PUSH EBP
CALL 0x000319e0
MOV dword ptr [ESP],EBP
TEST EAX,EAX
CMOVZ EAX,EBP
MOV dword ptr [ESP + 0x74],EAX
CALL 0x00031f30
MOV dword ptr [ESP + 0x78],EAX
MOV dword ptr [ESP + 0x7c],EDX
ADD ESP,0x10
CMP word ptr [EDI + 0x1e],0x1
JZ 0x0029e040
SUB ESP,0x4
PUSH 0x0
PUSH 0x0
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x64]
XOR ESI,ESI
TEST EAX,EAX
JZ 0x0029c843
SUB ESP,0xc
ADD ESI,0x1
PUSH EAX
CALL 0x000319e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0029c830
MOV EDI,dword ptr [EBP + 0x294]
TEST EDI,EDI
JZ 0x0029cbe0
MOV EAX,ESI
SUB ESP,0x8
NEG EAX
MOVZX EAX,AX
PUSH EAX
PUSH EBP
CALL 0x00031660
MOV dword ptr [ESP + 0x5c],EAX
ADD ESP,0x10
SUB ESP,0x8
PUSH 0x8
PUSH ESI
CALL 0x000317b0
MOV dword ptr [ESP + 0x64],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0029e111
MOV ESI,dword ptr [ESP + 0x64]
TEST ESI,ESI
JZ 0x0029dfd8
MOV EAX,dword ptr [ESP + 0x64]
MOV dword ptr [ESP + 0x30],0x0
MOV EDI,dword ptr [ESP + 0x4c]
MOV dword ptr [ESP + 0x4],EAX
LEA EAX,[EBX + 0xfff2edb3]
MOV dword ptr [ESP + 0x40],EAX
LEA EAX,[EBX + 0xfff2ed29]
MOV dword ptr [ESP + 0x60],EAX
LEA EAX,[ESP + 0xa3]
MOV dword ptr [ESP + 0x44],EAX
LEA EAX,[EBX + 0xfff2f420]
MOV dword ptr [ESP + 0x5c],EAX
LEA EAX,[EBX + 0xfff2ee41]
MOV dword ptr [ESP + 0x48],EAX
LEA EAX,[EBX + 0xffee0f69]
MOV dword ptr [ESP + 0x58],EAX
LEA EAX,[ESP + 0x157]
MOV dword ptr [ESP + 0x38],EAX
NOP
LEA ESI,[ESI]
SUB ESP,0x8
PUSH dword ptr [ESP + 0x48]
PUSH dword ptr [ESP + 0x10]
CALL 0x000318c0
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x0029cbb0
SUB ESP,0x4
PUSH dword ptr [ESP + 0x20]
PUSH EAX
PUSH 0x1
CALL 0x00031110
MOV dword ptr [ESP],ESI
MOV dword ptr [ESP + 0x18],EAX
CALL 0x00031eb0
ADD ESP,0x10
CMP EAX,0x9
SETZ AL
NEG EAX
MOV byte ptr [ESP + 0x79],AL
SUB ESP,0x8
MOV ESI,dword ptr [ESP + 0xc]
PUSH dword ptr [ESI + 0x20c]
PUSH EBP
CALL 0x00031ff0
MOV ESI,EAX
POP EAX
POP EDX
MOV EAX,dword ptr [ESP + 0xc]
PUSH dword ptr [EAX + 0x208]
PUSH EBP
CALL 0x00031ff0
POP ECX
ADD ESI,EAX
ADD EDI,ESI
POP ESI
MOV ESI,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [ESI + 0x1c]
ADD EAX,dword ptr [ESI + 0x20c]
PUSH EAX
PUSH EBP
CALL 0x00031ff0
ADD EDI,EAX
POP EAX
MOV EAX,dword ptr [ESI + 0x18]
ADD EAX,dword ptr [ESI + 0x208]
POP EDX
PUSH EAX
PUSH EBP
CALL 0x00031ff0
ADD ESP,0x10
ADD EDI,EAX
CMP dword ptr [ESI],0x2
JZ 0x0029cb90
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x10]
PUSH ESI
CALL 0x000336f0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0029cb90
XOR EAX,EAX
CMP dword ptr [ESI + 0x4],0x2
SETZ AL
XOR ECX,ECX
ADD EAX,0x4
CMP dword ptr [ESI + 0x4],0x2
SETZ CL
ADD ECX,0x3
CMP dword ptr [ESI + 0x4],0x2
MOV dword ptr [ESP + 0x20],ECX
SETZ DL
MOVZX EDX,DL
ADD EDX,0x3
MOV ECX,dword ptr [ESP + 0x4]
MOV ECX,dword ptr [ECX + 0x294]
TEST ECX,ECX
CMOVZ EAX,EDX
CMP dword ptr [ESP + 0x8],0x1
SBB AX,-0x1
SUB ESP,0x8
MOVZX EAX,AX
PUSH EAX
PUSH EBP
CALL 0x00031660
MOV dword ptr [ESP],EBP
ADD dword ptr [ESP + 0x40],0x1
ADD EAX,EDI
MOV dword ptr [ESP + 0x20],EAX
MOV EDI,dword ptr [ESP + 0x40]
CALL 0x00031f30
MOV ESI,dword ptr [ESP + 0x64]
ADD ESP,0x10
MOV dword ptr [ESI + EDI*0x8 + -0x8],EAX
MOV dword ptr [ESI + EDI*0x8 + -0x4],EDX
XOR EDI,EDI
NOP
LEA ESI,[ESI]
SUB ESP,0x8
PUSH EDI
PUSH EBP
CALL 0x00031660
ADD ESP,0x10
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x18]
CMP word ptr [EAX + 0x1e],0x1
JZ 0x0029cb18
SUB ESP,0x4
ADD EDI,0x1
PUSH 0x0
PUSH 0x0
PUSH EBP
CALL 0x00031c70
ADD ESI,EAX
ADD dword ptr [ESP + 0x20],ESI
ADD ESP,0x10
CMP EDI,dword ptr [ESP + 0x20]
JNZ 0x0029ca30
MOV EAX,dword ptr [ESP + 0x4]
MOV ESI,dword ptr [EAX + 0x294]
TEST ESI,ESI
JNZ 0x0029cb4b
MOV ECX,dword ptr [ESP + 0x8]
TEST ECX,ECX
JZ 0x0029cac5
SUB ESP,0x8
PUSH 0xfffe
PUSH EBP
CALL 0x00031660
ADD ESP,0x10
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x18]
CMP word ptr [EAX + 0x1e],0x1
JZ 0x0029cbc8
SUB ESP,0x4
PUSH 0x0
PUSH 0x0
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x10]
ADD EDX,ESI
ADD EAX,EDX
MOV dword ptr [ESP + 0x10],EAX
CMP dword ptr [EBP + 0x234],0x1
LEA EAX,[EBX + 0xffec44fa]
JNZ 0x0029cada
LEA EAX,[EBX + 0xfff2edc9]
SUB ESP,0x8
PUSH EAX
PUSH EBP
CALL 0x00031550
MOV ESI,dword ptr [ESP + 0x20]
ADD ESP,0x10
ADD ESI,EAX
MOV EAX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [EAX + 0x23c]
LEA EDX,[EAX + -0x8]
MOV dword ptr [ESP + 0x10],EAX
CMP EDX,0x3d
JA 0x0029d993
MOV EAX,dword ptr [EBX + EDX*0x4 + 0xfff2f4d4]
ADD EAX,EBX
JMP EAX
SUB ESP,0x8
ADD EDI,0x1
PUSH 0x0
PUSH EBP
CALL 0x00032b90
ADD ESI,EAX
ADD dword ptr [ESP + 0x20],ESI
ADD ESP,0x10
CMP dword ptr [ESP + 0x20],EDI
JNZ 0x0029ca30
MOV EAX,dword ptr [ESP + 0x4]
MOV ESI,dword ptr [EAX + 0x294]
TEST ESI,ESI
JZ 0x0029ca7f
SUB ESP,0x8
PUSH 0xffff
PUSH EBP
CALL 0x00031660
ADD ESP,0x10
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x18]
CMP word ptr [EAX + 0x1e],0x1
JZ 0x0029dfe8
SUB ESP,0x4
PUSH 0x0
PUSH 0x0
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x10]
ADD EDX,ESI
ADD EAX,EDX
MOV dword ptr [ESP + 0x10],EAX
JMP 0x0029ca7f
MOV EAX,0x2
MOV dword ptr [ESP + 0x20],0x1
MOV EDX,0x1
JMP 0x0029c9db
MOV byte ptr [ESP + 0x79],0x0
MOV dword ptr [ESP + 0x8],0x0
JMP 0x0029c937
SUB ESP,0x8
PUSH 0x0
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
JMP 0x0029cab9
SUB ESP,0x8
MOVZX EAX,SI
JMP 0x0029c85b
SUB ESP,0x8
PUSH EAX
PUSH EBP
CALL 0x00031550
ADD ESI,EAX
POP EAX
POP EDX
PUSH dword ptr [ESP + 0x68]
PUSH dword ptr [ESP + 0x10]
CALL 0x000318c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0029db30
SUB ESP,0x4
PUSH 0xa
PUSH 0x0
PUSH EAX
CALL 0x000316a0
MOV dword ptr [ESP + 0x20],EAX
FILD dword ptr [ESP + 0x20]
XOR EAX,EAX
FST qword ptr [ESP + 0x20]
ADD ESP,0x10
FUCOMI ST0,ST0
JP 0x0029cca0
FLDZ
FUCOMIP ST0,ST1
JNC 0x0029cca8
MOV EAX,0xff
FDIV dword ptr [EBX + 0xffeca14c]
FLD dword ptr [EBX + 0xffeca150]
FXCH
FUCOMI ST0,ST1
FSTP ST1
JNC 0x0029ccb0
FNSTCW word ptr [ESP + 0x7e]
FADD dword ptr [EBX + 0xffec12b8]
MOVZX EAX,word ptr [ESP + 0x7e]
OR AH,0xc
MOV word ptr [ESP + 0x7c],AX
FLDCW word ptr [ESP + 0x7c]
FISTP word ptr [ESP + 0x7a]
FLDCW word ptr [ESP + 0x7e]
MOVZX EAX,word ptr [ESP + 0x7a]
MOVZX EAX,AL
JMP 0x0029ccb8
FSTP ST0
JMP 0x0029ccb8
FSTP ST0
JMP 0x0029ccb8
FSTP ST0
LEA ESI,[ESI]
SUB ESP,0x8
PUSH EAX
PUSH EBP
CALL 0x00032b80
ADD ESP,0x10
ADD ESI,EAX
MOV EAX,dword ptr [ESP + 0x4]
MOV EDI,dword ptr [EAX + 0x3328]
TEST EDI,EDI
JNZ 0x0029db80
FLD dword ptr [EBX + 0xffec18a8]
FLD qword ptr [ESP + 0x10]
FUCOMIP ST0,ST1
FSTP ST0
JP 0x0029ccef
JZ 0x0029cde1
MOV EAX,dword ptr [ESP + 0x4]
CMP dword ptr [EAX + 0x294],0x4
JZ 0x0029cd0e
SUB ESP,0x4
PUSH dword ptr [ESP + 0x20]
PUSH 0xb
PUSH EAX
CALL 0x000336b0
ADD ESP,0x10
SUB ESP,0xc
PUSH dword ptr [ESP + 0x10]
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x4
JZ 0x0029d928
SUB ESP,0xc
PUSH dword ptr [ESP + 0x10]
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x3
JZ 0x0029d928
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EDX,0x0
JA 0x0029cd70
CMP EAX,0x1
JA 0x0029cd70
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EDX,0x0
JA 0x0029cd70
CMP EAX,0x1
JBE 0x0029d989
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EDX,0x0
JA 0x0029cd8b
CMP EAX,0x1
JBE 0x0029d912
MOV EAX,0x2
MOV dword ptr [ESP + 0x94],0x1
MOV ECX,dword ptr [ESP + 0x1c]
MOV dword ptr [ESP + 0x9c],0x1
FLD qword ptr [ESP + 0x10]
FSTP qword ptr [ESP + 0x88]
MOV dword ptr [ESP + 0x98],ECX
MOV ECX,dword ptr [ESP + 0x4]
MOV dword ptr [ESP + 0x90],ECX
PUSH 0x0
PUSH EAX
LEA EAX,[ESP + 0x90]
PUSH EAX
LEA EAX,[EBX + 0xffe7b110]
PUSH EAX
CALL 0x000324d0
ADD ESP,0x10
SUB ESP,0x8
PUSH 0x0
PUSH EBP
CALL 0x00032b80
POP ECX
XOR EDX,EDX
POP EDI
ADD ESI,EAX
MOV EAX,dword ptr [ESP + 0xc]
CMP dword ptr [EAX + 0x23c],0x34
SETZ DL
LEA EDX,[EDX + EDX*0x2 + 0x1]
PUSH EDX
PUSH EBP
CALL 0x00032b80
ADD ESI,EAX
POP EAX
POP EDX
PUSH 0x0
PUSH EBP
CALL 0x00032b80
MOV EDI,dword ptr [ESP + 0x54]
LEA ECX,[EAX + ESI*0x1]
MOV ESI,dword ptr [ESP + 0x6c]
MOV dword ptr [ESP + 0x5c],ECX
MOV ECX,0x2d
MOVSD.REP ES:EDI,ESI
POP ECX
POP ESI
PUSH dword ptr [ESP + 0x50]
PUSH dword ptr [ESP + 0x10]
CALL 0x00031c60
MOV dword ptr [ESP + 0x20],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0029ddc4
SUB ESP,0x8
MOV EDI,dword ptr [ESP + 0x50]
PUSH EDI
PUSH dword ptr [ESP + 0x34]
CALL 0x00032590
MOV ESI,EAX
POP EAX
POP EDX
LEA EAX,[EBX + 0xffed9264]
PUSH EAX
PUSH ESI
CALL 0x000326f0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0029cfc8
LEA EAX,[EBX + 0xfff2ee55]
SUB ESP,0x8
PUSH EAX
PUSH ESI
CALL 0x000326f0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0029dd40
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x1c]
PUSH EDI
CALL 0x000335d0
MOV dword ptr [ESP],EDI
MOV dword ptr [ESP + 0x30],EAX
CALL 0x00033130
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x20]
MOV EDI,EAX
CMP EDX,0xb
JBE 0x0029e053
MOV dword ptr [ESP + 0x70],EBP
MOV EBP,EDX
MOV dword ptr [ESP + 0x20],0x0
JMP 0x0029ceed
MOV EAX,dword ptr [ESP + 0x20]
SUB EBP,ESI
MOV EDI,dword ptr [ESP + 0x2c]
LEA EAX,[EAX + ESI*0x1 + 0xc]
MOV dword ptr [ESP + 0x20],EAX
ADD EDI,ESI
CMP EBP,0xb
JBE 0x0029cf71
MOVZX EAX,byte ptr [EDI + 0x4]
SUB EBP,0xc
MOV byte ptr [ESP + 0x15b],0x0
MOV ESI,dword ptr [EDI + 0x8]
MOV byte ptr [ESP + 0x157],AL
MOVZX EAX,byte ptr [EDI + 0x5]
BSWAP ESI
MOV byte ptr [ESP + 0x158],AL
MOVZX EAX,byte ptr [EDI + 0x6]
MOV byte ptr [ESP + 0x159],AL
MOVZX EAX,byte ptr [EDI + 0x7]
MOV byte ptr [ESP + 0x15a],AL
LEA EAX,[EDI + 0xc]
MOV dword ptr [ESP + 0x2c],EAX
CMP ESI,EBP
JA 0x0029ddc0
MOV EDX,dword ptr [ESP + 0x44]
MOV dword ptr [ESP + 0x50],EDI
MOV EDI,EDX
SUB ESP,0x4
PUSH 0x5
PUSH EDI
PUSH dword ptr [ESP + 0x44]
CALL 0x00031370
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0029ced0
ADD EDI,0x5
CMP dword ptr [ESP + 0x38],EDI
JNZ 0x0029cf42
SUB EBP,ESI
MOV EDI,dword ptr [ESP + 0x50]
JNZ 0x0029de93
MOV EBP,dword ptr [ESP + 0x70]
SUB ESP,0x8
PUSH dword ptr [ESP + 0x50]
PUSH dword ptr [ESP + 0x10]
CALL 0x00032a30
ADD ESP,0x10
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x20]
TEST EAX,EAX
JZ 0x0029e070
SUB ESP,0x8
PUSH dword ptr [ESP + 0x28]
PUSH ESI
CALL 0x00031010
ADD ESP,0x10
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x50]
PUSH dword ptr [ESP + 0x10]
CALL 0x00031190
ADD ESP,0x10
MOV dword ptr [ESP + 0x10],ESI
LEA ESI,[ESI]
SUB ESP,0x4
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [ESP + 0x10]
CALL 0x00031bb0
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x0029de68
SUB ESP,0xc
PUSH ESI
CALL 0x00031eb0
ADD ESP,0x10
LEA EDI,[EAX + 0x1]
MOV EAX,EDI
AND EAX,0xfffffffc
ADD EAX,0x4
TEST EDI,0x3
CMOVNZ EDI,EAX
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x0029d01f
SUB ESP,0xc
PUSH EAX
CALL 0x000335d0
ADD ESP,0x10
ADD EDI,EAX
MOV EAX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x0029db50
SUB ESP,0x8
ADD EDI,0x1c
PUSH EDI
PUSH EBP
CALL 0x00032b90
MOVZX ECX,byte ptr [ESP + 0x89]
MOV EDI,dword ptr [ESP + 0x5c]
MOV dword ptr [ESP + 0x30],ECX
ADD ESP,0x10
ADD EDI,EAX
MOV EAX,dword ptr [ESP + 0x8]
CMP dword ptr [EAX + 0x23c],0x34
JZ 0x0029d06c
MOV EAX,dword ptr [ESP + 0x4]
MOV ECX,dword ptr [EAX + 0x294]
TEST ECX,ECX
JNZ 0x0029de30
MOV ECX,dword ptr [ESP + 0x8]
SUB ESP,0x8
MOV EAX,dword ptr [EBP + 0x20c]
ADD dword ptr [ECX + 0x20c],EAX
MOV EAX,dword ptr [EBP + 0x208]
ADD dword ptr [ECX + 0x208],EAX
PUSH 0x14
PUSH EBP
CALL 0x00032b90
ADD EDI,EAX
POP EAX
POP EDX
MOV ECX,dword ptr [ESP + 0x10]
PUSH dword ptr [ECX + 0x20c]
PUSH EBP
CALL 0x00031ff0
POP ECX
ADD EDI,EAX
POP EAX
MOV ECX,dword ptr [ESP + 0x10]
PUSH dword ptr [ECX + 0x208]
PUSH EBP
CALL 0x00031ff0
ADD EDI,EAX
POP EAX
POP EDX
MOV ECX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ECX + 0x20c]
ADD EAX,dword ptr [ECX + 0x1c]
PUSH EAX
PUSH EBP
CALL 0x00031ff0
POP ECX
ADD EDI,EAX
POP EAX
MOV ECX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ECX + 0x208]
ADD EAX,dword ptr [ECX + 0x18]
PUSH EAX
PUSH EBP
CALL 0x00031ff0
ADD EDI,EAX
POP EAX
POP EDX
PUSH dword ptr [ESP + 0x28]
PUSH EBP
CALL 0x00032b80
POP ECX
ADD EDI,EAX
POP EAX
XOR EAX,EAX
MOV ECX,dword ptr [ESP + 0x10]
CMP dword ptr [ECX + 0x23c],0x34
SETZ AL
ADD EAX,EAX
PUSH EAX
PUSH EBP
CALL 0x00032b80
ADD EDI,EAX
POP EAX
POP EDX
PUSH 0x0
PUSH EBP
CALL 0x00032150
ADD ESP,0x10
ADD EDI,EAX
SUB ESP,0x8
PUSH 0x0
PUSH EBP
CALL 0x00032b90
MOV dword ptr [ESP],ESI
ADD EAX,EDI
MOV dword ptr [ESP + 0x30],EAX
CALL 0x00031eb0
ADD ESP,0x10
CMP EAX,0xff
JA 0x0029d9c0
TEST EAX,EAX
JZ 0x0029dd68
SUB ESP,0x8
PUSH EAX
MOV dword ptr [ESP + 0x14],EAX
PUSH EBP
CALL 0x00032b80
ADD ESP,0xc
PUSH ESI
MOV EDX,dword ptr [ESP + 0x10]
MOV EDI,EAX
PUSH EDX
MOV dword ptr [ESP + 0x14],EDX
PUSH EBP
CALL 0x00030660
MOV EDX,dword ptr [ESP + 0x18]
ADD ESP,0x10
ADD EDI,EAX
ADD EDX,0x1
AND EDX,0x3
JZ 0x0029d1b9
MOV ESI,0x4
SUB ESI,EDX
MOV dword ptr [ESP + 0x8],ESI
XOR ESI,ESI
MOV ESI,ESI
LEA EDI,[EDI]
SUB ESP,0x8
ADD ESI,0x1
PUSH 0x0
PUSH EBP
CALL 0x00032b80
ADD ESP,0x10
ADD EDI,EAX
CMP ESI,dword ptr [ESP + 0x8]
JNZ 0x0029d1a0
MOV EAX,dword ptr [ESP + 0x10]
ADD EDI,dword ptr [ESP + 0x20]
TEST EAX,EAX
JZ 0x0029d9b8
SUB ESP,0xc
MOV dword ptr [ESP + 0x1c],EAX
PUSH EAX
CALL 0x00033130
POP ECX
PUSH dword ptr [ESP + 0x1c]
MOV ESI,EAX
CALL 0x000335d0
ADD ESP,0xc
PUSH ESI
PUSH EAX
PUSH EBP
CALL 0x00030660
POP ESI
ADD EDI,EAX
PUSH dword ptr [ESP + 0x10]
CALL 0x000319e0
ADD ESP,0x10
MOV dword ptr [ESP + 0x4],EAX
TEST EAX,EAX
JNZ 0x0029c8f0
MOV EAX,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0x4c],EDI
MOV dword ptr [ESP + 0x2c],EAX
MOV EAX,dword ptr [ESP + 0x64]
MOV EDI,EAX
JMP 0x0029d553
SUB ESP,0xc
PUSH EDI
CALL 0x000336f0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0029da90
CMP dword ptr [EDI + 0x4],0x2
JZ 0x0029def0
PUSH dword ptr [ESP + 0x1c]
MOV ECX,EBP
PUSH dword ptr [ESP + 0xc]
PUSH 0x1
PUSH 0x0
PUSH 0x0
PUSH dword ptr [ESP + 0x18]
PUSH 0x15
PUSH EDI
MOV ESI,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [ESP + 0x48]
MOV EAX,ESI
CALL 0x002999f0
MOV dword ptr [ESP + 0x30],EAX
ADD ESP,0x14
PUSH EBP
CALL 0x00031f30
MOV dword ptr [ESP + 0x40],EAX
MOV dword ptr [ESP + 0x44],EDX
ADD ESP,0x10
PUSH 0x0
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH EBP
CALL 0x00031f00
ADD ESP,0x10
CMP word ptr [ESI + 0x1e],0x1
JZ 0x0029de10
SUB ESP,0x4
XOR EDX,EDX
MOV EAX,dword ptr [ESP + 0x14]
PUSH EDX
PUSH EAX
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
MOV ESI,EAX
PUSH 0x0
ADD ESI,0x2
PUSH dword ptr [ESP + 0x38]
PUSH dword ptr [ESP + 0x38]
PUSH EBP
CALL 0x00031f00
MOV EAX,ESI
MOV ECX,EBP
CDQ
ADD EAX,dword ptr [ESP + 0x30]
ADC EDX,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0x30],EAX
MOV dword ptr [ESP + 0x34],EDX
ADD ESP,0x10
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0xc]
PUSH 0x1
PUSH 0x0
PUSH 0x0
PUSH dword ptr [ESP + 0x18]
PUSH 0x10
PUSH EDI
MOV ESI,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [ESP + 0x48]
MOV EAX,ESI
CALL 0x002999f0
MOV dword ptr [ESP + 0x50],EAX
ADD ESP,0x14
PUSH EBP
CALL 0x00031f30
MOV dword ptr [ESP + 0x48],EAX
MOV dword ptr [ESP + 0x4c],EDX
ADD ESP,0x10
PUSH 0x0
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH EBP
CALL 0x00031f00
ADD ESP,0x10
CMP word ptr [ESI + 0x1e],0x1
JZ 0x0029ddf0
SUB ESP,0x4
XOR EDX,EDX
MOV EAX,dword ptr [ESP + 0x34]
PUSH EDX
PUSH EAX
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
MOV ESI,EAX
PUSH 0x0
ADD ESI,0x2
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x40]
PUSH EBP
CALL 0x00031f00
MOV EAX,ESI
MOV ECX,dword ptr [ESP + 0x20]
CDQ
ADD EAX,dword ptr [ESP + 0x30]
ADC EDX,dword ptr [ESP + 0x34]
ADD ECX,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0x30],EAX
MOV dword ptr [ESP + 0x34],EDX
MOV dword ptr [ESP + 0x40],ECX
ADD ESP,0x10
MOV ECX,EBP
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0xc]
PUSH 0x1
PUSH 0x0
PUSH 0x0
PUSH dword ptr [ESP + 0x18]
PUSH 0x6
PUSH EDI
MOV ESI,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [ESP + 0x48]
MOV EAX,ESI
CALL 0x002999f0
MOV dword ptr [ESP + 0x30],EAX
ADD ESP,0x14
PUSH EBP
CALL 0x00031f30
MOV dword ptr [ESP + 0x48],EAX
MOV dword ptr [ESP + 0x4c],EDX
ADD ESP,0x10
PUSH 0x0
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH EBP
CALL 0x00031f00
ADD ESP,0x10
CMP word ptr [ESI + 0x1e],0x1
JZ 0x0029ddd8
SUB ESP,0x4
XOR EDX,EDX
MOV EAX,dword ptr [ESP + 0x14]
PUSH EDX
PUSH EAX
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
MOV ESI,EAX
PUSH 0x0
ADD ESI,0x2
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x40]
PUSH EBP
CALL 0x00031f00
MOV EAX,ESI
CDQ
ADD EAX,dword ptr [ESP + 0x30]
ADC EDX,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0x30],EAX
MOV EAX,dword ptr [ESP + 0x40]
ADD EAX,dword ptr [ESP + 0x20]
MOV dword ptr [ESP + 0x34],EDX
MOV dword ptr [ESP + 0x20],EAX
ADD ESP,0x10
CMP dword ptr [EDI + 0x4],0x2
JZ 0x0029df20
MOV ECX,dword ptr [EDI + 0x294]
TEST ECX,ECX
JNZ 0x0029d9f0
SUB ESP,0xc
PUSH dword ptr [ESP + 0x10]
CALL 0x00033ac8
MOV dword ptr [ESP + 0x14],EAX
ADD ESP,0x10
CMP dword ptr [EDI + 0x4],0x2
JZ 0x0029dd88
SUB ESP,0x8
PUSH dword ptr [ESP + 0x48]
PUSH EDI
CALL 0x000318c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0029d528
SUB ESP,0x4
PUSH dword ptr [ESP + 0x20]
PUSH EAX
PUSH 0x1
CALL 0x00031110
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x0029d528
CMP dword ptr [ESP + 0x8],0x13
JZ 0x0029deb0
PUSH dword ptr [ESP + 0x1c]
MOV ECX,EBP
PUSH dword ptr [ESP + 0xc]
PUSH 0x1
PUSH 0x0
PUSH 0x0
PUSH dword ptr [ESP + 0x18]
PUSH 0x15
PUSH ESI
MOV EDX,dword ptr [ESP + 0x48]
MOV EAX,dword ptr [ESP + 0x38]
CALL 0x002999f0
ADD ESP,0x14
PUSH EBP
MOV ESI,EAX
CALL 0x00031f30
MOV dword ptr [ESP + 0x18],EAX
MOV dword ptr [ESP + 0x1c],EDX
ADD ESP,0x10
PUSH 0x0
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH EBP
CALL 0x00031f00
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x18]
CMP word ptr [EAX + 0x1e],0x1
JZ 0x0029dfc0
SUB ESP,0x4
XOR EDX,EDX
PUSH EDX
PUSH ESI
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
PUSH 0x0
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0x10]
PUSH EBP
CALL 0x00031f00
ADD dword ptr [ESP + 0x20],ESI
POP ESI
PUSH dword ptr [ESP + 0x10]
CALL 0x00033ac8
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x10]
TEST EDX,EDX
JZ 0x0029e19c
ADD dword ptr [ESP + 0x4c],EDX
SUB ESP,0xc
PUSH EDI
CALL 0x000319e0
ADD ESP,0x10
ADD dword ptr [ESP + 0x2c],0x8
MOV EDI,EAX
TEST EAX,EAX
JZ 0x0029dfd8
MOV EAX,dword ptr [ESP + 0x2c]
MOV dword ptr [ESP + 0x4],0x0
MOV EDX,dword ptr [EAX]
MOV ECX,dword ptr [EAX + 0x4]
MOV EAX,dword ptr [ESP + 0x28]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
CMOVZ EAX,dword ptr [EDI + 0x8]
MOV dword ptr [ESP + 0x8],EAX
CMP EAX,0x13
JZ 0x0029dbb8
ADD EDX,0x2
ADC ECX,0x0
CMP dword ptr [EDI],0x2
MOV dword ptr [ESP + 0x20],EDX
MOV dword ptr [ESP + 0x24],ECX
JNZ 0x0029d220
SUB ESP,0xc
PUSH EDI
CALL 0x000336f0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0029d220
PUSH dword ptr [ESP + 0x1c]
MOV ECX,EBP
PUSH dword ptr [ESP + 0xc]
PUSH 0x1
PUSH 0x0
PUSH 0x0
PUSH dword ptr [ESP + 0x18]
PUSH 0x12
PUSH EDI
MOV ESI,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [ESP + 0x48]
MOV EAX,ESI
CALL 0x002999f0
MOV dword ptr [ESP + 0x30],EAX
ADD ESP,0x14
PUSH EBP
CALL 0x00031f30
MOV dword ptr [ESP + 0x40],EAX
MOV dword ptr [ESP + 0x44],EDX
ADD ESP,0x10
PUSH 0x0
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH EBP
CALL 0x00031f00
ADD ESP,0x10
CMP word ptr [ESI + 0x1e],0x1
JZ 0x0029e185
SUB ESP,0x4
XOR EDX,EDX
MOV EAX,dword ptr [ESP + 0x14]
PUSH EDX
PUSH EAX
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
MOV ESI,EAX
PUSH 0x0
ADD ESI,0x2
PUSH dword ptr [ESP + 0x38]
PUSH dword ptr [ESP + 0x38]
PUSH EBP
CALL 0x00031f00
MOV EAX,ESI
CDQ
ADD EAX,dword ptr [ESP + 0x30]
ADC EDX,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0x30],EAX
MOV dword ptr [ESP + 0x34],EDX
ADD ESP,0x10
JMP 0x0029d43f
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
JMP 0x0029cd90
SUB ESP,0xc
PUSH dword ptr [ESP + 0x10]
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x4
JZ 0x0029d954
SUB ESP,0xc
PUSH dword ptr [ESP + 0x10]
CALL 0x000318f0
ADD ESP,0x10
CMP EAX,0x3
JNZ 0x0029cd3e
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
MOV ECX,dword ptr [ESP + 0x14]
ADD ESP,0x10
MOV ECX,dword ptr [ECX + 0x1c]
LEA EDX,[ECX + 0x3f]
TEST ECX,ECX
CMOVNS EDX,ECX
SAR EDX,0x6
CMP ECX,0x7f
SETG CL
CMP EDX,EAX
JG 0x0029e0e2
TEST CL,CL
JNZ 0x0029e097
MOV EAX,0x1
JMP 0x0029cd90
MOV ECX,dword ptr [ESP + 0x4]
LEA EAX,[EBX + 0xfff2edc4]
CMP dword ptr [ECX + 0x234],0x1
JNZ 0x0029cc08
LEA EAX,[EBX + 0xfff2ee3c]
JMP 0x0029cc08
SUB ESP,0xc
JMP 0x0029d1f0
SUB ESP,0x8
PUSH 0xff
PUSH EBP
CALL 0x00032b80
ADD ESP,0xc
PUSH ESI
MOV EDI,EAX
PUSH 0xff
PUSH EBP
CALL 0x00030660
ADD ESP,0x10
ADD EDI,EAX
JMP 0x0029d1b9
PUSH dword ptr [ESP + 0x1c]
MOV ECX,EBP
PUSH dword ptr [ESP + 0xc]
PUSH 0x1
PUSH 0x0
PUSH 0x0
PUSH dword ptr [ESP + 0x18]
PUSH 0x1
PUSH EDI
MOV ESI,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [ESP + 0x48]
MOV EAX,ESI
CALL 0x002999f0
MOV dword ptr [ESP + 0x50],EAX
ADD ESP,0x14
PUSH EBP
CALL 0x00031f30
MOV dword ptr [ESP + 0x48],EAX
MOV dword ptr [ESP + 0x4c],EDX
ADD ESP,0x10
PUSH 0x0
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH EBP
CALL 0x00031f00
ADD ESP,0x10
CMP word ptr [ESI + 0x1e],0x1
JZ 0x0029e000
SUB ESP,0x4
XOR EDX,EDX
MOV EAX,dword ptr [ESP + 0x34]
PUSH EDX
PUSH EAX
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
MOV ESI,EAX
PUSH 0x0
ADD ESI,0x2
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x40]
PUSH EBP
CALL 0x00031f00
MOV EAX,ESI
MOV ECX,dword ptr [ESP + 0x40]
CDQ
ADD dword ptr [ESP + 0x30],ESI
ADC dword ptr [ESP + 0x34],EDX
ADD dword ptr [ESP + 0x20],ECX
ADD ESP,0x10
JMP 0x0029d43f
PUSH dword ptr [ESP + 0x1c]
MOV ECX,EBP
PUSH dword ptr [ESP + 0xc]
PUSH 0x1
PUSH 0x0
PUSH 0x0
PUSH dword ptr [ESP + 0x18]
PUSH 0xf
PUSH EDI
MOV ESI,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [ESP + 0x48]
MOV EAX,ESI
CALL 0x002999f0
MOV dword ptr [ESP + 0x30],EAX
ADD ESP,0x14
PUSH EBP
CALL 0x00031f30
MOV dword ptr [ESP + 0x40],EAX
MOV dword ptr [ESP + 0x44],EDX
ADD ESP,0x10
PUSH 0x0
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH EBP
CALL 0x00031f00
ADD ESP,0x10
CMP word ptr [ESI + 0x1e],0x1
JZ 0x0029e020
SUB ESP,0x4
XOR EDX,EDX
MOV EAX,dword ptr [ESP + 0x14]
PUSH EDX
PUSH EAX
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
MOV ESI,EAX
PUSH 0x0
ADD ESI,0x2
PUSH dword ptr [ESP + 0x38]
PUSH dword ptr [ESP + 0x38]
PUSH EBP
CALL 0x00031f00
MOV EAX,ESI
CDQ
ADD EAX,dword ptr [ESP + 0x30]
ADC EDX,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0x30],EAX
MOV dword ptr [ESP + 0x34],EDX
ADD ESP,0x10
JMP 0x0029d431
SUB ESP,0x8
PUSH 0xff
PUSH EBP
CALL 0x00032b80
ADD ESP,0x10
ADD ESI,EAX
JMP 0x0029cde1
SUB ESP,0x8
ADD EDI,0x8
PUSH EDI
PUSH EBP
CALL 0x00032b90
MOV EDI,EAX
POP EAX
POP EDX
PUSH 0x0
PUSH EBP
CALL 0x00032b90
ADD EDI,EAX
ADD EDI,dword ptr [ESP + 0x5c]
ADD ESP,0x10
JMP 0x0029d127
LEA EAX,[EBX + 0xfff2f0bc]
SUB ESP,0x4
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x18]
PUSH EAX
LEA EAX,[EBX + 0xfff2f6d4]
PUSH 0x18a
PUSH EAX
LEA EAX,[EBX + 0xfff2ec75]
PUSH EAX
PUSH 0x10
CALL 0x000323b0
ADD ESP,0x20
JMP 0x0029ccd9
XOR EAX,EAX
CMP dword ptr [EDI + 0x20],0x8
MOV dword ptr [ESP + 0x10],EDX
MOV dword ptr [ESP + 0x14],ECX
SETA AL
SUB ESP,0x8
ADD EAX,0x1
PUSH EAX
MOV EAX,dword ptr [EDI + 0x18]
LEA EAX,[EAX + EAX*0x8 + 0x1]
PUSH EAX
CALL 0x000317b0
MOV dword ptr [ESP + 0x14],EAX
ADD ESP,0x10
TEST EAX,EAX
MOV EDX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x14]
JNZ 0x0029d57d
MOV EAX,EDI
ADD EAX,0x318
PUSH EAX
LEA EAX,[EBX + 0xffec3be0]
PUSH EAX
LEA EAX,[EBX + 0xffec156e]
PUSH EAX
LEA EAX,[EBX + 0xfff2f658]
PUSH 0x190
PUSH 0xbf3
PUSH EAX
LEA EAX,[EBX + 0xfff2ec75]
PUSH EAX
PUSH dword ptr [ESP + 0x38]
CALL 0x00032e80
ADD ESP,0x20
MOV dword ptr [ESP + 0x4],0x0
MOV EAX,dword ptr [ESP + 0x74]
TEST EAX,EAX
JZ 0x0029dc44
MOV ECX,dword ptr [ESP + 0x4c]
MOV dword ptr [EAX],ECX
MOV ECX,dword ptr [ESP + 0x4c]
LEA ESI,[ECX + 0x1]
MOV EDX,ECX
MOV EAX,ESI
SHR EDX,0x1
SHR EAX,0x1
CMP EDX,EAX
CMOVZ ESI,ECX
SUB ESP,0xc
PUSH EBP
CALL 0x00031f30
MOV dword ptr [ESP + 0x18],EAX
MOV dword ptr [ESP + 0x1c],EDX
ADD ESP,0x10
PUSH 0x0
PUSH dword ptr [ESP + 0x70]
PUSH dword ptr [ESP + 0x70]
PUSH EBP
CALL 0x00031f00
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x18]
CMP word ptr [EAX + 0x1e],0x1
JZ 0x0029e085
SUB ESP,0x4
XOR EDI,EDI
PUSH EDI
PUSH ESI
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
PUSH 0x0
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0x10]
PUSH EBP
CALL 0x00031f00
POP ECX
PUSH dword ptr [ESP + 0x60]
CALL 0x00033ac8
LEA EAX,[EBX + 0xfff2edb3]
ADD ESP,0x10
MOV dword ptr [ESP + 0x40],EAX
MOV EAX,dword ptr [ESP + 0x64]
TEST EAX,EAX
JZ 0x0029dd18
MOV ESI,EAX
JMP 0x0029dcf2
SUB ESP,0xc
PUSH EAX
CALL 0x00033820
MOV dword ptr [ESP],ESI
CALL 0x000319e0
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x0029dd18
SUB ESP,0x8
PUSH dword ptr [ESP + 0x48]
PUSH ESI
CALL 0x000318c0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0029dcd8
SUB ESP,0xc
PUSH ESI
CALL 0x000319e0
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x0029dcf2
MOV ECX,dword ptr [ESP + 0x115c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,dword ptr [ESP + 0x4]
JNZ 0x0029e1a9
ADD ESP,0x116c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [ESP + 0x10]
CALL 0x00032a30
MOV dword ptr [ESP],EAX
CALL 0x000332e0
MOV dword ptr [ESP + 0x20],EAX
ADD ESP,0x10
JMP 0x0029cfc8
SUB ESP,0x8
PUSH 0x0
PUSH EBP
CALL 0x00032b80
ADD ESP,0x10
MOV EDI,EAX
MOV dword ptr [ESP + 0x8],0x3
JMP 0x0029d195
SUB ESP,0x8
PUSH 0x7ffffef
PUSH EDI
CALL 0x000315a0
ADD ESP,0xc
PUSH dword ptr [ESP + 0x20]
PUSH 0x0
MOV ESI,EAX
PUSH EDI
CALL 0x00030af0
POP EAX
POP EDX
PUSH ESI
PUSH EDI
CALL 0x000315a0
ADD ESP,0x10
JMP 0x0029d45c
MOV EBP,dword ptr [ESP + 0x70]
MOV dword ptr [ESP + 0x10],0x0
JMP 0x0029cfc8
SUB ESP,0x8
PUSH dword ptr [ESP + 0x18]
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
MOV ESI,EAX
JMP 0x0029d3f2
SUB ESP,0x8
PUSH dword ptr [ESP + 0x38]
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
MOV ESI,EAX
JMP 0x0029d34b
SUB ESP,0x8
PUSH dword ptr [ESP + 0x18]
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
MOV ESI,EAX
JMP 0x0029d2b0
SUB ESP,0x4
MOV ECX,0x1
PUSH dword ptr [ESP + 0x20]
FILD dword ptr [ESP + 0x28]
SUB ESP,0x8
FMUL dword ptr [EBX + 0xffeca14c]
MOV EDX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP + 0x14]
FSTP qword ptr [ESP]
CALL 0x00299700
ADD ESP,0x10
JMP 0x0029d06c
LEA EAX,[EBX + 0xfff2ee5f]
SUB ESP,0x14
FILD dword ptr [ESP + 0x44]
FSTP qword ptr [ESP]
PUSH EAX
PUSH 0x1000
LEA ESI,[ESP + 0x178]
PUSH ESI
CALL 0x000334e0
ADD ESP,0x20
JMP 0x0029cfe9
SUB ESP,0x4
PUSH EBP
ADD ESI,dword ptr [ESP + 0x34]
PUSH ESI
PUSH EDI
CALL 0x00032dc0
ADD ESP,0x10
JMP 0x0029cee4
XOR EAX,EAX
CMP dword ptr [ESI + 0x20],0x8
SETA AL
SUB ESP,0x8
ADD EAX,0x1
PUSH EAX
MOV EAX,dword ptr [ESI + 0x18]
LEA EAX,[EAX + EAX*0x8 + 0x1]
PUSH EAX
CALL 0x000317b0
MOV dword ptr [ESP + 0x14],EAX
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0029d49b
MOV EDX,ESI
ADD EDX,0x318
PUSH EDX
JMP 0x0029dbfc
SUB ESP,0x8
PUSH 0x7ffffef
PUSH EDI
CALL 0x000315a0
ADD ESP,0xc
PUSH dword ptr [ESP + 0x20]
PUSH 0x0
MOV ESI,EAX
PUSH EDI
CALL 0x00030af0
POP EAX
POP EDX
PUSH ESI
PUSH EDI
CALL 0x000315a0
ADD ESP,0x10
JMP 0x0029d23e
PUSH dword ptr [ESP + 0x1c]
MOV ECX,EBP
PUSH dword ptr [ESP + 0xc]
PUSH 0x1
PUSH 0x0
PUSH 0x0
PUSH dword ptr [ESP + 0x18]
PUSH 0x5
PUSH EDI
MOV ESI,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [ESP + 0x48]
MOV EAX,ESI
CALL 0x002999f0
MOV dword ptr [ESP + 0x50],EAX
ADD ESP,0x14
PUSH EBP
CALL 0x00031f30
MOV dword ptr [ESP + 0x48],EAX
MOV dword ptr [ESP + 0x4c],EDX
ADD ESP,0x10
PUSH 0x0
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH EBP
CALL 0x00031f00
ADD ESP,0x10
CMP word ptr [ESI + 0x1e],0x1
JZ 0x0029e0fa
SUB ESP,0x4
XOR EDX,EDX
MOV EAX,dword ptr [ESP + 0x34]
PUSH EDX
PUSH EAX
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
MOV ESI,EAX
PUSH 0x0
ADD ESI,0x2
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x40]
PUSH EBP
CALL 0x00031f00
MOV EAX,ESI
MOV ECX,dword ptr [ESP + 0x40]
CDQ
ADD dword ptr [ESP + 0x30],ESI
ADC dword ptr [ESP + 0x34],EDX
ADD dword ptr [ESP + 0x20],ECX
ADD ESP,0x10
JMP 0x0029d431
SUB ESP,0x8
PUSH ESI
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
JMP 0x0029d507
MOV dword ptr [ESP + 0x4],0x1
JMP 0x0029dc36
SUB ESP,0x8
PUSH 0x0
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
JMP 0x0029cb7d
SUB ESP,0x8
PUSH dword ptr [ESP + 0x38]
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
MOV ESI,EAX
JMP 0x0029da62
SUB ESP,0x8
PUSH dword ptr [ESP + 0x18]
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
MOV ESI,EAX
JMP 0x0029db02
SUB ESP,0x8
PUSH 0x0
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
JMP 0x0029c826
SUB ESP,0x8
PUSH dword ptr [ESP + 0x50]
PUSH dword ptr [ESP + 0x10]
CALL 0x00032a30
ADD ESP,0x10
MOV ESI,EAX
NOP
LEA ESI,[ESI]
SUB ESP,0xc
PUSH ESI
CALL 0x000332e0
MOV dword ptr [ESP + 0x20],EAX
ADD ESP,0x10
JMP 0x0029cfc8
SUB ESP,0x8
PUSH ESI
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
JMP 0x0029dc9e
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
MOV ECX,dword ptr [ESP + 0x14]
ADD ESP,0x10
MOV ECX,dword ptr [ECX + 0x1c]
LEA EDX,[ECX + 0x3f]
TEST ECX,ECX
CMOVNS EDX,ECX
SAR EDX,0x6
CMP EDX,EAX
JG 0x0029e0cc
MOV EAX,EDX
JMP 0x0029cd90
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
MOV EDX,EAX
MOV EAX,EDX
JMP 0x0029cd90
SUB ESP,0xc
PUSH 0x7
CALL 0x00032640
ADD ESP,0x10
CMP EAX,0x1
SETG CL
JMP 0x0029d981
SUB ESP,0x8
PUSH dword ptr [ESP + 0x38]
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
MOV ESI,EAX
JMP 0x0029df92
LEA EAX,[EBP + 0x318]
PUSH EAX
LEA EAX,[EBX + 0xffec3be0]
PUSH EAX
LEA EAX,[EBX + 0xffec156e]
PUSH EAX
LEA EAX,[EBX + 0xfff2f670]
PUSH 0x190
PUSH 0xdf3
PUSH EAX
LEA EAX,[EBX + 0xfff2ec75]
PUSH EAX
PUSH dword ptr [ESP + 0x38]
CALL 0x00032e80
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0x28]
MOV ECX,dword ptr [EAX + 0xc]
TEST ECX,ECX
JNZ 0x0029e162
JMP 0x0029e16c
MOV EBP,EAX
MOV EAX,dword ptr [EBP + 0x333c]
TEST EAX,EAX
JNZ 0x0029e160
SUB ESP,0xc
PUSH EBP
CALL 0x000311d0
ADD ESP,0x10
MOV dword ptr [ESP + 0x4],0x0
JMP 0x0029dd18
SUB ESP,0x8
PUSH dword ptr [ESP + 0x18]
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
MOV ESI,EAX
JMP 0x0029d61a
MOV dword ptr [ESP + 0x4],0x0
JMP 0x0029dc36
CALL 0x002decd0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3\nFUN_0029c7a0(int *param_1,int *param_2,int param_3,uint *param_4,undefined4 param_5)\n\n{\n  double dVar1;\n  undefined1 uVar2;\n  short sVar3;\n  int *piVar4;\n  int *piVar5;\n  uint *puVar6;\n  char *pcVar7;\n  size_t sVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  undefined1 *puVar14;\n  long lVar15;\n  undefined4 uVar16;\n  void *__dest;\n  int iVar17;\n  int iVar18;\n  int iVar19;\n  int iVar20;\n  int iVar21;\n  int iVar22;\n  undefined4 uVar23;\n  int *piVar24;\n  short sVar25;\n  uint uVar26;\n  uint uVar27;\n  uint uVar28;\n  undefined4 *puVar29;\n  undefined4 *puVar30;\n  int in_GS_OFFSET;\n  bool bVar31;\n  byte bVar32;\n  undefined8 uVar33;\n  undefined8 uVar34;\n  int *local_1178;\n  int local_1174;\n  int local_116c;\n  uint local_115c;\n  int local_1158;\n  uint *local_1150;\n  int local_114c;\n  uint local_1130;\n  byte local_1103;\n  double local_10f4;\n  int *local_10ec;\n  undefined4 local_10e8;\n  undefined4 local_10e4;\n  undefined4 local_10e0;\n  undefined4 local_10d9 [45];\n  undefined1 local_1025;\n  undefined1 local_1024;\n  undefined1 local_1023;\n  undefined1 local_1022;\n  undefined1 local_1021;\n  char local_1020 [4096];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar32 = 0;\n  uStack_14 = 0x29c7ad;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar4 = (int *)GetNextImageInList(param_1);\n  if (piVar4 == (int *)0x0) {\n    piVar4 = param_1;\n  }\n  uVar33 = TellBlob(param_1);\n  if (*(short *)(param_3 + 0x1e) == 1) {\n    WriteBlobLong(param_1,0);\n  }\n  else {\n    WriteBlobLongLong(param_1,0,0);\n  }\n  uVar27 = 0;\n  for (piVar5 = piVar4; piVar5 != (int *)0x0; piVar5 = (int *)GetNextImageInList(piVar5)) {\n    uVar27 = uVar27 + 1;\n  }\n  uVar28 = uVar27;\n  if (param_1[0xa5] != 0) {\n    uVar28 = -uVar27;\n  }\n  local_1130 = WriteBlobShort(param_1,uVar28 & 0xffff);\n  puVar6 = (uint *)AcquireQuantumMemory(uVar27,8);\n  if (puVar6 == (uint *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = (int *)param_2[3];\n    piVar5 = param_1;\n    while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }\n    CloseBlob(piVar5);\n    local_1178 = (int *)0x0;\n  }\n  else {\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }\nLAB_0029dd18:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002decd0();\n  }\n  return local_1178;\n}\n\n" comment (function_definition "undefined4 __regparm3\nFUN_0029c7a0(int *param_1,int *param_2,int param_3,uint *param_4,undefined4 param_5)\n\n{\n  double dVar1;\n  undefined1 uVar2;\n  short sVar3;\n  int *piVar4;\n  int *piVar5;\n  uint *puVar6;\n  char *pcVar7;\n  size_t sVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  undefined1 *puVar14;\n  long lVar15;\n  undefined4 uVar16;\n  void *__dest;\n  int iVar17;\n  int iVar18;\n  int iVar19;\n  int iVar20;\n  int iVar21;\n  int iVar22;\n  undefined4 uVar23;\n  int *piVar24;\n  short sVar25;\n  uint uVar26;\n  uint uVar27;\n  uint uVar28;\n  undefined4 *puVar29;\n  undefined4 *puVar30;\n  int in_GS_OFFSET;\n  bool bVar31;\n  byte bVar32;\n  undefined8 uVar33;\n  undefined8 uVar34;\n  int *local_1178;\n  int local_1174;\n  int local_116c;\n  uint local_115c;\n  int local_1158;\n  uint *local_1150;\n  int local_114c;\n  uint local_1130;\n  byte local_1103;\n  double local_10f4;\n  int *local_10ec;\n  undefined4 local_10e8;\n  undefined4 local_10e4;\n  undefined4 local_10e0;\n  undefined4 local_10d9 [45];\n  undefined1 local_1025;\n  undefined1 local_1024;\n  undefined1 local_1023;\n  undefined1 local_1022;\n  undefined1 local_1021;\n  char local_1020 [4096];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar32 = 0;\n  uStack_14 = 0x29c7ad;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar4 = (int *)GetNextImageInList(param_1);\n  if (piVar4 == (int *)0x0) {\n    piVar4 = param_1;\n  }\n  uVar33 = TellBlob(param_1);\n  if (*(short *)(param_3 + 0x1e) == 1) {\n    WriteBlobLong(param_1,0);\n  }\n  else {\n    WriteBlobLongLong(param_1,0,0);\n  }\n  uVar27 = 0;\n  for (piVar5 = piVar4; piVar5 != (int *)0x0; piVar5 = (int *)GetNextImageInList(piVar5)) {\n    uVar27 = uVar27 + 1;\n  }\n  uVar28 = uVar27;\n  if (param_1[0xa5] != 0) {\n    uVar28 = -uVar27;\n  }\n  local_1130 = WriteBlobShort(param_1,uVar28 & 0xffff);\n  puVar6 = (uint *)AcquireQuantumMemory(uVar27,8);\n  if (puVar6 == (uint *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = (int *)param_2[3];\n    piVar5 = param_1;\n    while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }\n    CloseBlob(piVar5);\n    local_1178 = (int *)0x0;\n  }\n  else {\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }\nLAB_0029dd18:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002decd0();\n  }\n  return local_1178;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0029c7a0(int *param_1,int *param_2,int param_3,uint *param_4,undefined4 param_5)" identifier (parameter_list "(int *param_1,int *param_2,int param_3,uint *param_4,undefined4 param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  double dVar1;\n  undefined1 uVar2;\n  short sVar3;\n  int *piVar4;\n  int *piVar5;\n  uint *puVar6;\n  char *pcVar7;\n  size_t sVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  undefined1 *puVar14;\n  long lVar15;\n  undefined4 uVar16;\n  void *__dest;\n  int iVar17;\n  int iVar18;\n  int iVar19;\n  int iVar20;\n  int iVar21;\n  int iVar22;\n  undefined4 uVar23;\n  int *piVar24;\n  short sVar25;\n  uint uVar26;\n  uint uVar27;\n  uint uVar28;\n  undefined4 *puVar29;\n  undefined4 *puVar30;\n  int in_GS_OFFSET;\n  bool bVar31;\n  byte bVar32;\n  undefined8 uVar33;\n  undefined8 uVar34;\n  int *local_1178;\n  int local_1174;\n  int local_116c;\n  uint local_115c;\n  int local_1158;\n  uint *local_1150;\n  int local_114c;\n  uint local_1130;\n  byte local_1103;\n  double local_10f4;\n  int *local_10ec;\n  undefined4 local_10e8;\n  undefined4 local_10e4;\n  undefined4 local_10e0;\n  undefined4 local_10d9 [45];\n  undefined1 local_1025;\n  undefined1 local_1024;\n  undefined1 local_1023;\n  undefined1 local_1022;\n  undefined1 local_1021;\n  char local_1020 [4096];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar32 = 0;\n  uStack_14 = 0x29c7ad;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar4 = (int *)GetNextImageInList(param_1);\n  if (piVar4 == (int *)0x0) {\n    piVar4 = param_1;\n  }\n  uVar33 = TellBlob(param_1);\n  if (*(short *)(param_3 + 0x1e) == 1) {\n    WriteBlobLong(param_1,0);\n  }\n  else {\n    WriteBlobLongLong(param_1,0,0);\n  }\n  uVar27 = 0;\n  for (piVar5 = piVar4; piVar5 != (int *)0x0; piVar5 = (int *)GetNextImageInList(piVar5)) {\n    uVar27 = uVar27 + 1;\n  }\n  uVar28 = uVar27;\n  if (param_1[0xa5] != 0) {\n    uVar28 = -uVar27;\n  }\n  local_1130 = WriteBlobShort(param_1,uVar28 & 0xffff);\n  puVar6 = (uint *)AcquireQuantumMemory(uVar27,8);\n  if (puVar6 == (uint *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = (int *)param_2[3];\n    piVar5 = param_1;\n    while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }\n    CloseBlob(piVar5);\n    local_1178 = (int *)0x0;\n  }\n  else {\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }\nLAB_0029dd18:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002decd0();\n  }\n  return local_1178;\n}" { (declaration "double dVar1;" primitive_type identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "short sVar3;" (sized_type_specifier "short" short) identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "undefined1 *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "long lVar15;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 uVar16;" type_identifier identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "int iVar18;" primitive_type identifier ;) (declaration "int iVar19;" primitive_type identifier ;) (declaration "int iVar20;" primitive_type identifier ;) (declaration "int iVar21;" primitive_type identifier ;) (declaration "int iVar22;" primitive_type identifier ;) (declaration "undefined4 uVar23;" type_identifier identifier ;) (declaration "int *piVar24;" primitive_type (pointer_declarator "*piVar24" * identifier) ;) (declaration "short sVar25;" (sized_type_specifier "short" short) identifier ;) (declaration "uint uVar26;" type_identifier identifier ;) (declaration "uint uVar27;" type_identifier identifier ;) (declaration "uint uVar28;" type_identifier identifier ;) (declaration "undefined4 *puVar29;" type_identifier (pointer_declarator "*puVar29" * identifier) ;) (declaration "undefined4 *puVar30;" type_identifier (pointer_declarator "*puVar30" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar31;" primitive_type identifier ;) (declaration "byte bVar32;" type_identifier identifier ;) (declaration "undefined8 uVar33;" type_identifier identifier ;) (declaration "undefined8 uVar34;" type_identifier identifier ;) (declaration "int *local_1178;" primitive_type (pointer_declarator "*local_1178" * identifier) ;) (declaration "int local_1174;" primitive_type identifier ;) (declaration "int local_116c;" primitive_type identifier ;) (declaration "uint local_115c;" type_identifier identifier ;) (declaration "int local_1158;" primitive_type identifier ;) (declaration "uint *local_1150;" type_identifier (pointer_declarator "*local_1150" * identifier) ;) (declaration "int local_114c;" primitive_type identifier ;) (declaration "uint local_1130;" type_identifier identifier ;) (declaration "byte local_1103;" type_identifier identifier ;) (declaration "double local_10f4;" primitive_type identifier ;) (declaration "int *local_10ec;" primitive_type (pointer_declarator "*local_10ec" * identifier) ;) (declaration "undefined4 local_10e8;" type_identifier identifier ;) (declaration "undefined4 local_10e4;" type_identifier identifier ;) (declaration "undefined4 local_10e0;" type_identifier identifier ;) (declaration "undefined4 local_10d9 [45];" type_identifier (array_declarator "local_10d9 [45]" identifier [ number_literal ]) ;) (declaration "undefined1 local_1025;" type_identifier identifier ;) (declaration "undefined1 local_1024;" type_identifier identifier ;) (declaration "undefined1 local_1023;" type_identifier identifier ;) (declaration "undefined1 local_1022;" type_identifier identifier ;) (declaration "undefined1 local_1021;" type_identifier identifier ;) (declaration "char local_1020 [4096];" primitive_type (array_declarator "local_1020 [4096]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar32 = 0;" (assignment_expression "bVar32 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x29c7ad;" (assignment_expression "uStack_14 = 0x29c7ad" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = (int *)GetNextImageInList(param_1);" (assignment_expression "piVar4 = (int *)GetNextImageInList(param_1)" identifier = (cast_expression "(int *)GetNextImageInList(param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageInList(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if (piVar4 == (int *)0x0) {\n    piVar4 = param_1;\n  }" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar4 = param_1;\n  }" { (expression_statement "piVar4 = param_1;" (assignment_expression "piVar4 = param_1" identifier = identifier) ;) })) (expression_statement "uVar33 = TellBlob(param_1);" (assignment_expression "uVar33 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n    WriteBlobLong(param_1,0);\n  }\n  else {\n    WriteBlobLongLong(param_1,0,0);\n  }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    WriteBlobLong(param_1,0);\n  }" { (expression_statement "WriteBlobLong(param_1,0);" (call_expression "WriteBlobLong(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n    WriteBlobLongLong(param_1,0,0);\n  }" else (compound_statement "{\n    WriteBlobLongLong(param_1,0,0);\n  }" { (expression_statement "WriteBlobLongLong(param_1,0,0);" (call_expression "WriteBlobLongLong(param_1,0,0)" identifier (argument_list "(param_1,0,0)" ( identifier , number_literal , number_literal ))) ;) }))) (expression_statement "uVar27 = 0;" (assignment_expression "uVar27 = 0" identifier = number_literal) ;) (for_statement "for (piVar5 = piVar4; piVar5 != (int *)0x0; piVar5 = (int *)GetNextImageInList(piVar5)) {\n    uVar27 = uVar27 + 1;\n  }" for ( (assignment_expression "piVar5 = piVar4" identifier = identifier) ; (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar5 = (int *)GetNextImageInList(piVar5)" identifier = (cast_expression "(int *)GetNextImageInList(piVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageInList(piVar5)" identifier (argument_list "(piVar5)" ( identifier ))))) ) (compound_statement "{\n    uVar27 = uVar27 + 1;\n  }" { (expression_statement "uVar27 = uVar27 + 1;" (assignment_expression "uVar27 = uVar27 + 1" identifier = (binary_expression "uVar27 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar28 = uVar27;" (assignment_expression "uVar28 = uVar27" identifier = identifier) ;) (if_statement "if (param_1[0xa5] != 0) {\n    uVar28 = -uVar27;\n  }" if (parenthesized_expression "(param_1[0xa5] != 0)" ( (binary_expression "param_1[0xa5] != 0" (subscript_expression "param_1[0xa5]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    uVar28 = -uVar27;\n  }" { (expression_statement "uVar28 = -uVar27;" (assignment_expression "uVar28 = -uVar27" identifier = (unary_expression "-uVar27" - identifier)) ;) })) (expression_statement "local_1130 = WriteBlobShort(param_1,uVar28 & 0xffff);" (assignment_expression "local_1130 = WriteBlobShort(param_1,uVar28 & 0xffff)" identifier = (call_expression "WriteBlobShort(param_1,uVar28 & 0xffff)" identifier (argument_list "(param_1,uVar28 & 0xffff)" ( identifier , (binary_expression "uVar28 & 0xffff" identifier & number_literal) )))) ;) (expression_statement "puVar6 = (uint *)AcquireQuantumMemory(uVar27,8);" (assignment_expression "puVar6 = (uint *)AcquireQuantumMemory(uVar27,8)" identifier = (cast_expression "(uint *)AcquireQuantumMemory(uVar27,8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory(uVar27,8)" identifier (argument_list "(uVar27,8)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar6 == (uint *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = (int *)param_2[3];\n    piVar5 = param_1;\n    while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }\n    CloseBlob(piVar5);\n    local_1178 = (int *)0x0;\n  }\n  else {\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }" if (parenthesized_expression "(puVar6 == (uint *)0x0)" ( (binary_expression "puVar6 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = (int *)param_2[3];\n    piVar5 = param_1;\n    while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }\n    CloseBlob(piVar5);\n    local_1178 = (int *)0x0;\n  }" { (expression_statement "ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);" (call_expression "ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6)" identifier (argument_list "(param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6)" ( identifier , (string_literal ""coders/psd.c"" " string_content ") , (string_literal ""WritePSDLayersInternal"" " string_content ") , number_literal , number_literal , (string_literal ""MemoryAllocationFailed"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , (binary_expression "param_1 + 0xc6" identifier + number_literal) ))) ;) (expression_statement "piVar4 = (int *)param_2[3];" (assignment_expression "piVar4 = (int *)param_2[3]" identifier = (cast_expression "(int *)param_2[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[3]" identifier [ number_literal ]))) ;) (expression_statement "piVar5 = param_1;" (assignment_expression "piVar5 = param_1" identifier = identifier) ;) (while_statement "while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }" while (parenthesized_expression "(piVar24 = param_1, piVar4 != (int *)0x0)" ( (comma_expression "piVar24 = param_1, piVar4 != (int *)0x0" (assignment_expression "piVar24 = param_1" identifier = identifier) , (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }" { (expression_statement "piVar4 = (int *)piVar24[0xccf];" (assignment_expression "piVar4 = (int *)piVar24[0xccf]" identifier = (cast_expression "(int *)piVar24[0xccf]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar24[0xccf]" identifier [ number_literal ]))) ;) (expression_statement "param_1 = piVar4;" (assignment_expression "param_1 = piVar4" identifier = identifier) ;) (expression_statement "piVar5 = piVar24;" (assignment_expression "piVar5 = piVar24" identifier = identifier) ;) })) (expression_statement "CloseBlob(piVar5);" (call_expression "CloseBlob(piVar5)" identifier (argument_list "(piVar5)" ( identifier ))) ;) (expression_statement "local_1178 = (int *)0x0;" (assignment_expression "local_1178 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }" else (compound_statement "{\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }" { (if_statement "if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }" if (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }" { (expression_statement "local_114c = 0;" (assignment_expression "local_114c = 0" identifier = number_literal) ;) (expression_statement "local_1178 = piVar4;" (assignment_expression "local_1178 = piVar4" identifier = identifier) ;) (do_statement "do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);" do (compound_statement "{\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      }" { (expression_statement "pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");" (assignment_expression "pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask")" identifier = (cast_expression "(char *)GetImageArtifact(local_1178,"psd:opacity-mask")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageArtifact(local_1178,"psd:opacity-mask")" identifier (argument_list "(local_1178,"psd:opacity-mask")" ( identifier , (string_literal ""psd:opacity-mask"" " string_content ") ))))) ;) (if_statement "if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }" if (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          local_1103 = 0;\n          local_1174 = 0;\n        }" { (expression_statement "local_1103 = 0;" (assignment_expression "local_1103 = 0" identifier = number_literal) ;) (expression_statement "local_1174 = 0;" (assignment_expression "local_1174 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }" else (compound_statement "{\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }" { (expression_statement "local_1174 = GetImageRegistry(1,pcVar7,param_5);" (assignment_expression "local_1174 = GetImageRegistry(1,pcVar7,param_5)" identifier = (call_expression "GetImageRegistry(1,pcVar7,param_5)" identifier (argument_list "(1,pcVar7,param_5)" ( number_literal , identifier , identifier )))) ;) (expression_statement "sVar8 = strlen(pcVar7);" (assignment_expression "sVar8 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "local_1103 = -(sVar8 == 9);" (assignment_expression "local_1103 = -(sVar8 == 9)" identifier = (unary_expression "-(sVar8 == 9)" - (parenthesized_expression "(sVar8 == 9)" ( (binary_expression "sVar8 == 9" identifier == number_literal) )))) ;) }))) (expression_statement "iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);" (assignment_expression "iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83])" identifier = (call_expression "WriteBlobSignedLong(param_1,local_1178[0x83])" identifier (argument_list "(param_1,local_1178[0x83])" ( identifier , (subscript_expression "local_1178[0x83]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);" (assignment_expression "iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82])" identifier = (call_expression "WriteBlobSignedLong(param_1,local_1178[0x82])" identifier (argument_list "(param_1,local_1178[0x82])" ( identifier , (subscript_expression "local_1178[0x82]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);" (assignment_expression "iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83])" identifier = (call_expression "WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83])" identifier (argument_list "(param_1,local_1178[7] + local_1178[0x83])" ( identifier , (binary_expression "local_1178[7] + local_1178[0x83]" (subscript_expression "local_1178[7]" identifier [ number_literal ]) + (subscript_expression "local_1178[0x83]" identifier [ number_literal ])) )))) ;) (expression_statement "iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);" (assignment_expression "iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82])" identifier = (call_expression "WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82])" identifier (argument_list "(param_1,local_1178[6] + local_1178[0x82])" ( identifier , (binary_expression "local_1178[6] + local_1178[0x82]" (subscript_expression "local_1178[6]" identifier [ number_literal ]) + (subscript_expression "local_1178[0x82]" identifier [ number_literal ])) )))) ;) (if_statement "if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }" if (parenthesized_expression "((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0))" ( (binary_expression "(*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)" (parenthesized_expression "(*local_1178 == 2)" ( (binary_expression "*local_1178 == 2" (pointer_expression "*local_1178" * identifier) == number_literal) )) || (parenthesized_expression "(iVar13 = IsImageGray(local_1178), iVar13 != 0)" ( (comma_expression "iVar13 = IsImageGray(local_1178), iVar13 != 0" (assignment_expression "iVar13 = IsImageGray(local_1178)" identifier = (call_expression "IsImageGray(local_1178)" identifier (argument_list "(local_1178)" ( identifier )))) , (binary_expression "iVar13 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }" { (expression_statement "sVar3 = 2;" (assignment_expression "sVar3 = 2" identifier = number_literal) ;) (expression_statement "local_115c = 1;" (assignment_expression "local_115c = 1" identifier = number_literal) ;) (expression_statement "sVar25 = 1;" (assignment_expression "sVar25 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }" else (compound_statement "{\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }" { (expression_statement "sVar3 = (local_1178[1] == 2) + 4;" (assignment_expression "sVar3 = (local_1178[1] == 2) + 4" identifier = (binary_expression "(local_1178[1] == 2) + 4" (parenthesized_expression "(local_1178[1] == 2)" ( (binary_expression "local_1178[1] == 2" (subscript_expression "local_1178[1]" identifier [ number_literal ]) == number_literal) )) + number_literal)) ;) (expression_statement "local_115c = (local_1178[1] == 2) + 3;" (assignment_expression "local_115c = (local_1178[1] == 2) + 3" identifier = (binary_expression "(local_1178[1] == 2) + 3" (parenthesized_expression "(local_1178[1] == 2)" ( (binary_expression "local_1178[1] == 2" (subscript_expression "local_1178[1]" identifier [ number_literal ]) == number_literal) )) + number_literal)) ;) (expression_statement "sVar25 = (local_1178[1] == 2) + 3;" (assignment_expression "sVar25 = (local_1178[1] == 2) + 3" identifier = (binary_expression "(local_1178[1] == 2) + 3" (parenthesized_expression "(local_1178[1] == 2)" ( (binary_expression "local_1178[1] == 2" (subscript_expression "local_1178[1]" identifier [ number_literal ]) == number_literal) )) + number_literal)) ;) }))) (if_statement "if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }" if (parenthesized_expression "(local_1178[0xa5] == 0)" ( (binary_expression "local_1178[0xa5] == 0" (subscript_expression "local_1178[0xa5]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          sVar3 = sVar25;\n        }" { (expression_statement "sVar3 = sVar25;" (assignment_expression "sVar3 = sVar25" identifier = identifier) ;) })) (expression_statement "local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));" (assignment_expression "local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0))" identifier = (call_expression "WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0))" identifier (argument_list "(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0))" ( identifier , (binary_expression "(sVar3 + 1) - (ushort)(local_1174 == 0)" (parenthesized_expression "(sVar3 + 1)" ( (binary_expression "sVar3 + 1" identifier + number_literal) )) - (call_expression "(ushort)(local_1174 == 0)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(local_1174 == 0)" ( (binary_expression "local_1174 == 0" identifier == number_literal) )))) )))) ;) (expression_statement "local_114c = local_114c + 1;" (assignment_expression "local_114c = local_114c + 1" identifier = (binary_expression "local_114c + 1" identifier + number_literal)) ;) (expression_statement "local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;" (assignment_expression "local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12" identifier = (binary_expression "local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12" (binary_expression "local_116c + local_1130 + iVar9 + iVar10 + iVar11" (binary_expression "local_116c + local_1130 + iVar9 + iVar10" (binary_expression "local_116c + local_1130 + iVar9" (binary_expression "local_116c + local_1130" identifier + identifier) + identifier) + identifier) + identifier) + identifier)) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar6[local_114c * 2 + -2] = (uint)uVar34;" (assignment_expression "puVar6[local_114c * 2 + -2] = (uint)uVar34" (subscript_expression "puVar6[local_114c * 2 + -2]" identifier [ (binary_expression "local_114c * 2 + -2" (binary_expression "local_114c * 2" identifier * number_literal) + number_literal) ]) = (cast_expression "(uint)uVar34" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);" (assignment_expression "puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20)" (subscript_expression "puVar6[local_114c * 2 + -1]" identifier [ (binary_expression "local_114c * 2 + -1" (binary_expression "local_114c * 2" identifier * number_literal) + number_literal) ]) = (call_expression "(uint)((ulonglong)uVar34 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar34 >> 0x20)" ( (binary_expression "(ulonglong)uVar34 >> 0x20" (cast_expression "(ulonglong)uVar34" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);" do (compound_statement "{\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        }" { (while_statement "while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }" while (parenthesized_expression "(iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1)" ( (comma_expression "iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1" (assignment_expression "iVar10 = WriteBlobShort(param_1,iVar9)" identifier = (call_expression "WriteBlobShort(param_1,iVar9)" identifier (argument_list "(param_1,iVar9)" ( identifier , identifier )))) , (binary_expression "*(short *)(param_3 + 0x1e) != 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) != number_literal)) )) (compound_statement "{\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }" { (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "iVar11 = WriteBlobLongLong(param_1,0,0);" (assignment_expression "iVar11 = WriteBlobLongLong(param_1,0,0)" identifier = (call_expression "WriteBlobLongLong(param_1,0,0)" identifier (argument_list "(param_1,0,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "local_116c = local_116c + iVar10 + iVar11;" (assignment_expression "local_116c = local_116c + iVar10 + iVar11" identifier = (binary_expression "local_116c + iVar10 + iVar11" (binary_expression "local_116c + iVar10" identifier + identifier) + identifier)) ;) (if_statement "if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }" if (parenthesized_expression "(iVar9 == local_115c)" ( (binary_expression "iVar9 == local_115c" identifier == identifier) )) (compound_statement "{\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }" { (if_statement "if (local_1178[0xa5] == 0) goto LAB_0029ca7f;" if (parenthesized_expression "(local_1178[0xa5] == 0)" ( (binary_expression "local_1178[0xa5] == 0" (subscript_expression "local_1178[0xa5]" identifier [ number_literal ]) == number_literal) )) (goto_statement "goto LAB_0029ca7f;" goto statement_identifier ;)) (goto_statement "goto LAB_0029cb4b;" goto statement_identifier ;) })) })) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "iVar11 = WriteBlobLong(param_1,0);" (assignment_expression "iVar11 = WriteBlobLong(param_1,0)" identifier = (call_expression "WriteBlobLong(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "local_116c = local_116c + iVar10 + iVar11;" (assignment_expression "local_116c = local_116c + iVar10 + iVar11" identifier = (binary_expression "local_116c + iVar10 + iVar11" (binary_expression "local_116c + iVar10" identifier + identifier) + identifier)) ;) }) while (parenthesized_expression "(local_115c != iVar9)" ( (binary_expression "local_115c != iVar9" identifier != identifier) )) ;) (if_statement "if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }" if (parenthesized_expression "(local_1178[0xa5] != 0)" ( (binary_expression "local_1178[0xa5] != 0" (subscript_expression "local_1178[0xa5]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }" { (labeled_statement "LAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);" statement_identifier : (expression_statement "iVar9 = WriteBlobShort(param_1,0xffff);" (assignment_expression "iVar9 = WriteBlobShort(param_1,0xffff)" identifier = (call_expression "WriteBlobShort(param_1,0xffff)" identifier (argument_list "(param_1,0xffff)" ( identifier , number_literal )))) ;)) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n            iVar10 = WriteBlobLong(param_1,0);\n          }" { (expression_statement "iVar10 = WriteBlobLong(param_1,0);" (assignment_expression "iVar10 = WriteBlobLong(param_1,0)" identifier = (call_expression "WriteBlobLong(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" else (compound_statement "{\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" { (expression_statement "iVar10 = WriteBlobLongLong(param_1,0,0);" (assignment_expression "iVar10 = WriteBlobLongLong(param_1,0,0)" identifier = (call_expression "WriteBlobLongLong(param_1,0,0)" identifier (argument_list "(param_1,0,0)" ( identifier , number_literal , number_literal )))) ;) }))) (expression_statement "local_116c = iVar10 + local_116c + iVar9;" (assignment_expression "local_116c = iVar10 + local_116c + iVar9" identifier = (binary_expression "iVar10 + local_116c + iVar9" (binary_expression "iVar10 + local_116c" identifier + identifier) + identifier)) ;) })) (labeled_statement "LAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }" statement_identifier : (if_statement "if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }" if (parenthesized_expression "(local_1174 != 0)" ( (binary_expression "local_1174 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }" { (expression_statement "iVar9 = WriteBlobShort(param_1,0xfffe);" (assignment_expression "iVar9 = WriteBlobShort(param_1,0xfffe)" identifier = (call_expression "WriteBlobShort(param_1,0xfffe)" identifier (argument_list "(param_1,0xfffe)" ( identifier , number_literal )))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n            iVar10 = WriteBlobLong(param_1,0);\n          }" { (expression_statement "iVar10 = WriteBlobLong(param_1,0);" (assignment_expression "iVar10 = WriteBlobLong(param_1,0)" identifier = (call_expression "WriteBlobLong(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" else (compound_statement "{\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" { (expression_statement "iVar10 = WriteBlobLongLong(param_1,0,0);" (assignment_expression "iVar10 = WriteBlobLongLong(param_1,0,0)" identifier = (call_expression "WriteBlobLongLong(param_1,0,0)" identifier (argument_list "(param_1,0,0)" ( identifier , number_literal , number_literal )))) ;) }))) (expression_statement "local_116c = iVar10 + local_116c + iVar9;" (assignment_expression "local_116c = iVar10 + local_116c + iVar9" identifier = (binary_expression "iVar10 + local_116c + iVar9" (binary_expression "iVar10 + local_116c" identifier + identifier) + identifier)) ;) }))) (expression_statement "puVar14 = &DAT_002e24fa;" (assignment_expression "puVar14 = &DAT_002e24fa" identifier = (pointer_expression "&DAT_002e24fa" & identifier)) ;) (if_statement "if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }" if (parenthesized_expression "(param_1[0x8d] == 1)" ( (binary_expression "param_1[0x8d] == 1" (subscript_expression "param_1[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          puVar14 = &DAT_0034cdc9;\n        }" { (expression_statement "puVar14 = &DAT_0034cdc9;" (assignment_expression "puVar14 = &DAT_0034cdc9" identifier = (pointer_expression "&DAT_0034cdc9" & identifier)) ;) })) (expression_statement "iVar9 = WriteBlobString(param_1,puVar14);" (assignment_expression "iVar9 = WriteBlobString(param_1,puVar14)" identifier = (call_expression "WriteBlobString(param_1,puVar14)" identifier (argument_list "(param_1,puVar14)" ( identifier , identifier )))) ;) (switch_statement "switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }" switch (parenthesized_expression "(local_1178[0x8f])" ( (subscript_expression "local_1178[0x8f]" identifier [ number_literal ]) )) (compound_statement "{\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }" { (case_statement "case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "idiv";" (assignment_expression "pcVar7 = "idiv"" identifier = (string_literal ""idiv"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "vidi";\n          }" { (expression_statement "pcVar7 = "vidi";" (assignment_expression "pcVar7 = "vidi"" identifier = (string_literal ""vidi"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "div ";" (assignment_expression "pcVar7 = "div "" identifier = (string_literal ""div "" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = " vid";\n          }" { (expression_statement "pcVar7 = " vid";" (assignment_expression "pcVar7 = " vid"" identifier = (string_literal "" vid"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "colr";" (assignment_expression "pcVar7 = "colr"" identifier = (string_literal ""colr"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "rloc";\n          }" { (expression_statement "pcVar7 = "rloc";" (assignment_expression "pcVar7 = "rloc"" identifier = (string_literal ""rloc"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;" default : (expression_statement "pcVar7 = "norm";" (assignment_expression "pcVar7 = "norm"" identifier = (string_literal ""norm"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "mron";\n          }" { (expression_statement "pcVar7 = "mron";" (assignment_expression "pcVar7 = "mron"" identifier = (string_literal ""mron"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "dark";" (assignment_expression "pcVar7 = "dark"" identifier = (string_literal ""dark"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "krad";\n          }" { (expression_statement "pcVar7 = "krad";" (assignment_expression "pcVar7 = "krad"" identifier = (string_literal ""krad"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "diff";" (assignment_expression "pcVar7 = "diff"" identifier = (string_literal ""diff"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "ffid";\n          }" { (expression_statement "pcVar7 = "ffid";" (assignment_expression "pcVar7 = "ffid"" identifier = (string_literal ""ffid"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "diss";" (assignment_expression "pcVar7 = "diss"" identifier = (string_literal ""diss"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "ssid";\n          }" { (expression_statement "pcVar7 = "ssid";" (assignment_expression "pcVar7 = "ssid"" identifier = (string_literal ""ssid"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "smud";" (assignment_expression "pcVar7 = "smud"" identifier = (string_literal ""smud"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "dums";\n          }" { (expression_statement "pcVar7 = "dums";" (assignment_expression "pcVar7 = "dums"" identifier = (string_literal ""dums"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "hLit";" (assignment_expression "pcVar7 = "hLit"" identifier = (string_literal ""hLit"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "tiLh";\n          }" { (expression_statement "pcVar7 = "tiLh";" (assignment_expression "pcVar7 = "tiLh"" identifier = (string_literal ""tiLh"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "hMix";" (assignment_expression "pcVar7 = "hMix"" identifier = (string_literal ""hMix"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "xiMh";\n          }" { (expression_statement "pcVar7 = "xiMh";" (assignment_expression "pcVar7 = "xiMh"" identifier = (string_literal ""xiMh"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "hue ";" (assignment_expression "pcVar7 = "hue "" identifier = (string_literal ""hue "" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = " euh";\n          }" { (expression_statement "pcVar7 = " euh";" (assignment_expression "pcVar7 = " euh"" identifier = (string_literal "" euh"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "lite";" (assignment_expression "pcVar7 = "lite"" identifier = (string_literal ""lite"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "etil";\n          }" { (expression_statement "pcVar7 = "etil";" (assignment_expression "pcVar7 = "etil"" identifier = (string_literal ""etil"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "lbrn";" (assignment_expression "pcVar7 = "lbrn"" identifier = (string_literal ""lbrn"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "nrbl";\n          }" { (expression_statement "pcVar7 = "nrbl";" (assignment_expression "pcVar7 = "nrbl"" identifier = (string_literal ""nrbl"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "lddg";" (assignment_expression "pcVar7 = "lddg"" identifier = (string_literal ""lddg"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "gddl";\n          }" { (expression_statement "pcVar7 = "gddl";" (assignment_expression "pcVar7 = "gddl"" identifier = (string_literal ""gddl"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "lLit";" (assignment_expression "pcVar7 = "lLit"" identifier = (string_literal ""lLit"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "tiLl";\n          }" { (expression_statement "pcVar7 = "tiLl";" (assignment_expression "pcVar7 = "tiLl"" identifier = (string_literal ""tiLl"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "lum ";" (assignment_expression "pcVar7 = "lum "" identifier = (string_literal ""lum "" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = " mul";\n          }" { (expression_statement "pcVar7 = " mul";" (assignment_expression "pcVar7 = " mul"" identifier = (string_literal "" mul"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "mul ";" (assignment_expression "pcVar7 = "mul "" identifier = (string_literal ""mul "" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = " lum";\n          }" { (expression_statement "pcVar7 = " lum";" (assignment_expression "pcVar7 = " lum"" identifier = (string_literal "" lum"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "over";" (assignment_expression "pcVar7 = "over"" identifier = (string_literal ""over"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "revo";\n          }" { (expression_statement "pcVar7 = "revo";" (assignment_expression "pcVar7 = "revo"" identifier = (string_literal ""revo"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "pLit";" (assignment_expression "pcVar7 = "pLit"" identifier = (string_literal ""pLit"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "tiLp";\n          }" { (expression_statement "pcVar7 = "tiLp";" (assignment_expression "pcVar7 = "tiLp"" identifier = (string_literal ""tiLp"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "sat ";" (assignment_expression "pcVar7 = "sat "" identifier = (string_literal ""sat "" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = " tas";\n          }" { (expression_statement "pcVar7 = " tas";" (assignment_expression "pcVar7 = " tas"" identifier = (string_literal "" tas"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "scrn";" (assignment_expression "pcVar7 = "scrn"" identifier = (string_literal ""scrn"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "nrcs";\n          }" { (expression_statement "pcVar7 = "nrcs";" (assignment_expression "pcVar7 = "nrcs"" identifier = (string_literal ""nrcs"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "sLit";" (assignment_expression "pcVar7 = "sLit"" identifier = (string_literal ""sLit"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "tiLs";\n          }" { (expression_statement "pcVar7 = "tiLs";" (assignment_expression "pcVar7 = "tiLs"" identifier = (string_literal ""tiLs"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }" case number_literal : (expression_statement "pcVar7 = "vLit";" (assignment_expression "pcVar7 = "vLit"" identifier = (string_literal ""vLit"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "tiLv";\n          }" { (expression_statement "pcVar7 = "tiLv";" (assignment_expression "pcVar7 = "tiLv"" identifier = (string_literal ""tiLv"" " string_content ")) ;) }))) })) (expression_statement "iVar10 = WriteBlobString(param_1,pcVar7);" (assignment_expression "iVar10 = WriteBlobString(param_1,pcVar7)" identifier = (call_expression "WriteBlobString(param_1,pcVar7)" identifier (argument_list "(param_1,pcVar7)" ( identifier , identifier )))) ;) (expression_statement "iVar10 = local_116c + iVar9 + iVar10;" (assignment_expression "iVar10 = local_116c + iVar9 + iVar10" identifier = (binary_expression "local_116c + iVar9 + iVar10" (binary_expression "local_116c + iVar9" identifier + identifier) + identifier)) ;) (expression_statement "pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");" (assignment_expression "pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity")" identifier = (cast_expression "(char *)GetImageArtifact(local_1178,"psd:layer.opacity")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageArtifact(local_1178,"psd:layer.opacity")" identifier (argument_list "(local_1178,"psd:layer.opacity")" ( identifier , (string_literal ""psd:layer.opacity"" " string_content ") ))))) ;) (if_statement "if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }" if (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }" { (expression_statement "iVar9 = WriteBlobByte(param_1,0xff);" (assignment_expression "iVar9 = WriteBlobByte(param_1,0xff)" identifier = (call_expression "WriteBlobByte(param_1,0xff)" identifier (argument_list "(param_1,0xff)" ( identifier , number_literal )))) ;) (expression_statement "iVar10 = iVar10 + iVar9;" (assignment_expression "iVar10 = iVar10 + iVar9" identifier = (binary_expression "iVar10 + iVar9" identifier + identifier)) ;) }) (else_clause "else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }" else (compound_statement "{\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }" { (expression_statement "lVar15 = strtol(pcVar7,(char **)0x0,10);" (assignment_expression "lVar15 = strtol(pcVar7,(char **)0x0,10)" identifier = (call_expression "strtol(pcVar7,(char **)0x0,10)" identifier (argument_list "(pcVar7,(char **)0x0,10)" ( identifier , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , number_literal )))) ;) (expression_statement "dVar1 = (double)lVar15;" (assignment_expression "dVar1 = (double)lVar15" identifier = (cast_expression "(double)lVar15" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }" if (parenthesized_expression "(0.0 < dVar1)" ( (binary_expression "0.0 < dVar1" number_literal < identifier) )) (compound_statement "{\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }" { (expression_statement "uVar2 = 0xff;" (assignment_expression "uVar2 = 0xff" identifier = number_literal) ;) (if_statement "if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }" if (parenthesized_expression "(dVar1 / (double)DAT_002e814c < (double)DAT_002e8150)" ( (binary_expression "dVar1 / (double)DAT_002e814c < (double)DAT_002e8150" (binary_expression "dVar1 / (double)DAT_002e814c" identifier / (cast_expression "(double)DAT_002e814c" ( (type_descriptor "double" primitive_type) ) identifier)) < (cast_expression "(double)DAT_002e8150" ( (type_descriptor "double" primitive_type) ) identifier)) )) (compound_statement "{\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }" { (expression_statement "uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);" (assignment_expression "uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8)" identifier = (cast_expression "(undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8)" ( (type_descriptor "undefined1" type_identifier) ) (cast_expression "(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (call_expression "ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8)" identifier (argument_list "(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8)" ( (binary_expression "dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8" (binary_expression "dVar1 / (double)DAT_002e814c" identifier / (cast_expression "(double)DAT_002e814c" ( (type_descriptor "double" primitive_type) ) identifier)) + (cast_expression "(double)DAT_002df2b8" ( (type_descriptor "double" primitive_type) ) identifier)) )))))) ;) })) })) (expression_statement "iVar9 = WriteBlobByte(param_1,uVar2);" (assignment_expression "iVar9 = WriteBlobByte(param_1,uVar2)" identifier = (call_expression "WriteBlobByte(param_1,uVar2)" identifier (argument_list "(param_1,uVar2)" ( identifier , identifier )))) ;) (expression_statement "iVar10 = iVar10 + iVar9;" (assignment_expression "iVar10 = iVar10 + iVar9" identifier = (binary_expression "iVar10 + iVar9" identifier + identifier)) ;) (if_statement "if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }" if (parenthesized_expression "(local_1178[0xcca] != 0)" ( (binary_expression "local_1178[0xcca] != 0" (subscript_expression "local_1178[0xcca]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }" { (expression_statement "LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);" (call_expression "LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1)" identifier (argument_list "(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1)" ( number_literal , (string_literal ""coders/psd.c"" " string_content ") , (string_literal ""ApplyPSDLayerOpacity"" " string_content ") , number_literal , (string_literal ""  applying layer opacity %.20g"" " string_content ") , identifier ))) ;) })) (if_statement "if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }" if (parenthesized_expression "((float)lVar15 != DAT_002df8a8)" ( (binary_expression "(float)lVar15 != DAT_002df8a8" (cast_expression "(float)lVar15" ( (type_descriptor "float" primitive_type) ) identifier) != identifier) )) (compound_statement "{\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }" { (if_statement "if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }" if (parenthesized_expression "(local_1178[0xa5] != 4)" ( (binary_expression "local_1178[0xa5] != 4" (subscript_expression "local_1178[0xa5]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }" { (expression_statement "SetImageAlphaChannel(local_1178,0xb,param_5);" (call_expression "SetImageAlphaChannel(local_1178,0xb,param_5)" identifier (argument_list "(local_1178,0xb,param_5)" ( identifier , number_literal , identifier ))) ;) })) (expression_statement "iVar9 = GetImagePixelCacheType(local_1178);" (assignment_expression "iVar9 = GetImagePixelCacheType(local_1178)" identifier = (call_expression "GetImagePixelCacheType(local_1178)" identifier (argument_list "(local_1178)" ( identifier )))) ;) (if_statement "if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }" if (parenthesized_expression "(((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3))))" ( (binary_expression "((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))" (parenthesized_expression "((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3))" ( (binary_expression "(iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)" (parenthesized_expression "(iVar9 == 4)" ( (binary_expression "iVar9 == 4" identifier == number_literal) )) || (parenthesized_expression "(iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)" ( (comma_expression "iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3" (assignment_expression "iVar9 = GetImagePixelCacheType(local_1178)" identifier = (call_expression "GetImagePixelCacheType(local_1178)" identifier (argument_list "(local_1178)" ( identifier )))) , (binary_expression "iVar9 == 3" identifier == number_literal)) ))) )) && (parenthesized_expression "((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))" ( (parenthesized_expression "(iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3))" ( (comma_expression "iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)" (assignment_expression "iVar9 = GetImagePixelCacheType(local_1178)" identifier = (call_expression "GetImagePixelCacheType(local_1178)" identifier (argument_list "(local_1178)" ( identifier )))) , (binary_expression "iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)" (binary_expression "iVar9 == 4" identifier == number_literal) || (parenthesized_expression "(iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)" ( (comma_expression "iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3" (assignment_expression "iVar9 = GetImagePixelCacheType(local_1178)" identifier = (call_expression "GetImagePixelCacheType(local_1178)" identifier (argument_list "(local_1178)" ( identifier )))) , (binary_expression "iVar9 == 3" identifier == number_literal)) )))) )) ))) )) (compound_statement "{\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }" { (expression_statement "iVar12 = GetMagickResourceLimit(7);" (assignment_expression "iVar12 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "iVar9 = local_1178[7];" (assignment_expression "iVar9 = local_1178[7]" identifier = (subscript_expression "local_1178[7]" identifier [ number_literal ])) ;) (expression_statement "iVar11 = iVar9 + 0x3f;" (assignment_expression "iVar11 = iVar9 + 0x3f" identifier = (binary_expression "iVar9 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }" if (parenthesized_expression "(-1 < iVar9)" ( (binary_expression "-1 < iVar9" number_literal < identifier) )) (compound_statement "{\n                iVar11 = iVar9;\n              }" { (expression_statement "iVar11 = iVar9;" (assignment_expression "iVar11 = iVar9" identifier = identifier) ;) })) (expression_statement "bVar31 = 0x7f < iVar9;" (assignment_expression "bVar31 = 0x7f < iVar9" identifier = (binary_expression "0x7f < iVar9" number_literal < identifier)) ;) (if_statement "if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }" if (parenthesized_expression "(iVar12 < iVar11 >> 6)" ( (binary_expression "iVar12 < iVar11 >> 6" identifier < (binary_expression "iVar11 >> 6" identifier >> number_literal)) )) (compound_statement "{\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }" { (expression_statement "iVar9 = GetMagickResourceLimit(7);" (assignment_expression "iVar9 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "bVar31 = 1 < iVar9;" (assignment_expression "bVar31 = 1 < iVar9" identifier = (binary_expression "1 < iVar9" number_literal < identifier)) ;) })) (if_statement "if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }" if (parenthesized_expression "(bVar31)" ( identifier )) (compound_statement "{\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }" { (expression_statement "iVar12 = GetMagickResourceLimit(7);" (assignment_expression "iVar12 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "iVar11 = local_1178[7];" (assignment_expression "iVar11 = local_1178[7]" identifier = (subscript_expression "local_1178[7]" identifier [ number_literal ])) ;) (expression_statement "iVar9 = iVar11 + 0x3f;" (assignment_expression "iVar9 = iVar11 + 0x3f" identifier = (binary_expression "iVar11 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }" if (parenthesized_expression "(-1 < iVar11)" ( (binary_expression "-1 < iVar11" number_literal < identifier) )) (compound_statement "{\n                  iVar9 = iVar11;\n                }" { (expression_statement "iVar9 = iVar11;" (assignment_expression "iVar9 = iVar11" identifier = identifier) ;) })) (expression_statement "iVar9 = iVar9 >> 6;" (assignment_expression "iVar9 = iVar9 >> 6" identifier = (binary_expression "iVar9 >> 6" identifier >> number_literal)) ;) (if_statement "if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }" if (parenthesized_expression "(iVar12 < iVar9)" ( (binary_expression "iVar12 < iVar9" identifier < identifier) )) (compound_statement "{\n                  iVar9 = GetMagickResourceLimit(7);\n                }" { (expression_statement "iVar9 = GetMagickResourceLimit(7);" (assignment_expression "iVar9 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) })) }) (else_clause "else {\nLAB_0029d989:\n                iVar9 = 1;\n              }" else (compound_statement "{\nLAB_0029d989:\n                iVar9 = 1;\n              }" { (labeled_statement "LAB_0029d989:\n                iVar9 = 1;" statement_identifier : (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;)) }))) }) (else_clause "else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }" else (compound_statement "{\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }" { (expression_statement "uVar34 = GetMagickResourceLimit(7);" (assignment_expression "uVar34 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }" if (parenthesized_expression "(((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))" ( (binary_expression "((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)" (parenthesized_expression "((int)((ulonglong)uVar34 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar34 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar34 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar34 >> 0x20)" ( (binary_expression "(ulonglong)uVar34 >> 0x20" (cast_expression "(ulonglong)uVar34" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar34 < 2)" ( (binary_expression "(uint)uVar34 < 2" (cast_expression "(uint)uVar34" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }" { (expression_statement "uVar34 = GetMagickResourceLimit(7);" (assignment_expression "uVar34 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;" if (parenthesized_expression "(((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))" ( (binary_expression "((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)" (parenthesized_expression "((int)((ulonglong)uVar34 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar34 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar34 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar34 >> 0x20)" ( (binary_expression "(ulonglong)uVar34 >> 0x20" (cast_expression "(ulonglong)uVar34" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar34 < 2)" ( (binary_expression "(uint)uVar34 < 2" (cast_expression "(uint)uVar34" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_0029d989;" goto statement_identifier ;)) })) (expression_statement "uVar34 = GetMagickResourceLimit(7);" (assignment_expression "uVar34 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }" if (parenthesized_expression "(((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))" ( (binary_expression "((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)" (parenthesized_expression "((int)((ulonglong)uVar34 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar34 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar34 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar34 >> 0x20)" ( (binary_expression "(ulonglong)uVar34 >> 0x20" (cast_expression "(ulonglong)uVar34" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar34 < 2)" ( (binary_expression "(uint)uVar34 < 2" (cast_expression "(uint)uVar34" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n                iVar9 = GetMagickResourceLimit(7);\n              }" { (expression_statement "iVar9 = GetMagickResourceLimit(7);" (assignment_expression "iVar9 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) }) (else_clause "else {\n                iVar9 = 2;\n              }" else (compound_statement "{\n                iVar9 = 2;\n              }" { (expression_statement "iVar9 = 2;" (assignment_expression "iVar9 = 2" identifier = number_literal) ;) }))) }))) (expression_statement "local_10e8 = 1;" (assignment_expression "local_10e8 = 1" identifier = number_literal) ;) (expression_statement "local_10e0 = 1;" (assignment_expression "local_10e0 = 1" identifier = number_literal) ;) (expression_statement "local_10e4 = param_5;" (assignment_expression "local_10e4 = param_5" identifier = identifier) ;) (expression_statement "local_10ec = local_1178;" (assignment_expression "local_10ec = local_1178" identifier = identifier) ;) (expression_statement "local_10f4 = dVar1;" (assignment_expression "local_10f4 = dVar1" identifier = identifier) ;) (expression_statement "GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);" (call_expression "GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0)" identifier (argument_list "(FUN_00299110,&local_10f4,iVar9,0)" ( identifier , (pointer_expression "&local_10f4" & identifier) , identifier , number_literal ))) ;) })) }))) (expression_statement "iVar11 = WriteBlobByte(param_1,0);" (assignment_expression "iVar11 = WriteBlobByte(param_1,0)" identifier = (call_expression "WriteBlobByte(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');" (assignment_expression "iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01')" identifier = (call_expression "WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01')" identifier (argument_list "(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01')" ( identifier , (binary_expression "(local_1178[0x8f] == 0x34) * '\x03' + '\x01'" (binary_expression "(local_1178[0x8f] == 0x34) * '\x03'" (parenthesized_expression "(local_1178[0x8f] == 0x34)" ( (binary_expression "local_1178[0x8f] == 0x34" (subscript_expression "local_1178[0x8f]" identifier [ number_literal ]) == number_literal) )) * (char_literal "'\x03'" ' escape_sequence ')) + (char_literal "'\x01'" ' escape_sequence ')) )))) ;) (expression_statement "iVar9 = WriteBlobByte(param_1,0);" (assignment_expression "iVar9 = WriteBlobByte(param_1,0)" identifier = (call_expression "WriteBlobByte(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar9 = iVar9 + iVar10 + iVar11 + iVar12;" (assignment_expression "iVar9 = iVar9 + iVar10 + iVar11 + iVar12" identifier = (binary_expression "iVar9 + iVar10 + iVar11 + iVar12" (binary_expression "iVar9 + iVar10 + iVar11" (binary_expression "iVar9 + iVar10" identifier + identifier) + identifier) + identifier)) ;) (expression_statement "puVar30 = &DAT_0034d420;" (assignment_expression "puVar30 = &DAT_0034d420" identifier = (pointer_expression "&DAT_0034d420" & identifier)) ;) (expression_statement "puVar29 = local_10d9;" (assignment_expression "puVar29 = local_10d9" identifier = identifier) ;) (for_statement "for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }" for ( (assignment_expression "iVar10 = 0x2d" identifier = number_literal) ; (binary_expression "iVar10 != 0" identifier != number_literal) ; (assignment_expression "iVar10 = iVar10 + -1" identifier = (binary_expression "iVar10 + -1" identifier + number_literal)) ) (compound_statement "{\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }" { (expression_statement "*puVar29 = *puVar30;" (assignment_expression "*puVar29 = *puVar30" (pointer_expression "*puVar29" * identifier) = (pointer_expression "*puVar30" * identifier)) ;) (expression_statement "puVar30 = puVar30 + (uint)bVar32 * -2 + 1;" (assignment_expression "puVar30 = puVar30 + (uint)bVar32 * -2 + 1" identifier = (binary_expression "puVar30 + (uint)bVar32 * -2 + 1" (binary_expression "puVar30 + (uint)bVar32 * -2" identifier + (binary_expression "(uint)bVar32 * -2" (cast_expression "(uint)bVar32" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar29 = puVar29 + (uint)bVar32 * -2 + 1;" (assignment_expression "puVar29 = puVar29 + (uint)bVar32 * -2 + 1" identifier = (binary_expression "puVar29 + (uint)bVar32 * -2 + 1" (binary_expression "puVar29 + (uint)bVar32 * -2" identifier + (binary_expression "(uint)bVar32 * -2" (cast_expression "(uint)bVar32" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "iVar10 = GetImageProfile(local_1178,"psd:additional-info");" (assignment_expression "iVar10 = GetImageProfile(local_1178,"psd:additional-info")" identifier = (call_expression "GetImageProfile(local_1178,"psd:additional-info")" identifier (argument_list "(local_1178,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (if_statement "if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0029ddc4:\n          iVar11 = 0;\n        }" { (labeled_statement "LAB_0029ddc4:\n          iVar11 = 0;" statement_identifier : (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }" else (compound_statement "{\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }" { (expression_statement "uVar16 = GetImageOption(param_2,"psd:additional-info");" (assignment_expression "uVar16 = GetImageOption(param_2,"psd:additional-info")" identifier = (call_expression "GetImageOption(param_2,"psd:additional-info")" identifier (argument_list "(param_2,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (expression_statement "iVar12 = LocaleCompare(uVar16,"all");" (assignment_expression "iVar12 = LocaleCompare(uVar16,"all")" identifier = (call_expression "LocaleCompare(uVar16,"all")" identifier (argument_list "(uVar16,"all")" ( identifier , (string_literal ""all"" " string_content ") )))) ;) (expression_statement "iVar11 = iVar10;" (assignment_expression "iVar11 = iVar10" identifier = identifier) ;) (if_statement "if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }" if (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) (compound_statement "{\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }" { (expression_statement "iVar11 = LocaleCompare(uVar16,"selective");" (assignment_expression "iVar11 = LocaleCompare(uVar16,"selective")" identifier = (call_expression "LocaleCompare(uVar16,"selective")" identifier (argument_list "(uVar16,"selective")" ( identifier , (string_literal ""selective"" " string_content ") )))) ;) (if_statement "if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }" { (expression_statement "uVar27 = GetStringInfoLength(iVar10);" (assignment_expression "uVar27 = GetStringInfoLength(iVar10)" identifier = (call_expression "GetStringInfoLength(iVar10)" identifier (argument_list "(iVar10)" ( identifier )))) ;) (expression_statement "__dest = (void *)GetStringInfoDatum(iVar10);" (assignment_expression "__dest = (void *)GetStringInfoDatum(iVar10)" identifier = (cast_expression "(void *)GetStringInfoDatum(iVar10)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetStringInfoDatum(iVar10)" identifier (argument_list "(iVar10)" ( identifier ))))) ;) (if_statement "if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }" if (parenthesized_expression "(uVar27 < 0xc)" ( (binary_expression "uVar27 < 0xc" identifier < number_literal) )) (compound_statement "{\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }" { (expression_statement "iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");" (assignment_expression "iVar11 = RemoveImageProfile(local_1178,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(local_1178,"psd:additional-info")" identifier (argument_list "(local_1178,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) }) (else_clause "else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }" else (compound_statement "{\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }" { (expression_statement "local_115c = 0;" (assignment_expression "local_115c = 0" identifier = number_literal) ;) (do_statement "do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);" do (compound_statement "{\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                }" { (expression_statement "local_1025 = *(undefined1 *)((int)__dest + 4);" (assignment_expression "local_1025 = *(undefined1 *)((int)__dest + 4)" identifier = (pointer_expression "*(undefined1 *)((int)__dest + 4)" * (cast_expression "(undefined1 *)((int)__dest + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + 4)" ( (binary_expression "(int)__dest + 4" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar27 = uVar27 - 0xc;" (assignment_expression "uVar27 = uVar27 - 0xc" identifier = (binary_expression "uVar27 - 0xc" identifier - number_literal)) ;) (expression_statement "local_1021 = 0;" (assignment_expression "local_1021 = 0" identifier = number_literal) ;) (expression_statement "uVar28 = *(uint *)((int)__dest + 8);" (assignment_expression "uVar28 = *(uint *)((int)__dest + 8)" identifier = (pointer_expression "*(uint *)((int)__dest + 8)" * (cast_expression "(uint *)((int)__dest + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + 8)" ( (binary_expression "(int)__dest + 8" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "local_1024 = *(undefined1 *)((int)__dest + 5);" (assignment_expression "local_1024 = *(undefined1 *)((int)__dest + 5)" identifier = (pointer_expression "*(undefined1 *)((int)__dest + 5)" * (cast_expression "(undefined1 *)((int)__dest + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + 5)" ( (binary_expression "(int)__dest + 5" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;" (assignment_expression "uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18" identifier = (binary_expression "uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18" (binary_expression "uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8" (binary_expression "uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8" (binary_expression "uVar28 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar28 & 0xff0000) >> 8" (parenthesized_expression "(uVar28 & 0xff0000)" ( (binary_expression "uVar28 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar28 & 0xff00) << 8" (parenthesized_expression "(uVar28 & 0xff00)" ( (binary_expression "uVar28 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar28 << 0x18" identifier << number_literal))) ;) (expression_statement "local_1023 = *(undefined1 *)((int)__dest + 6);" (assignment_expression "local_1023 = *(undefined1 *)((int)__dest + 6)" identifier = (pointer_expression "*(undefined1 *)((int)__dest + 6)" * (cast_expression "(undefined1 *)((int)__dest + 6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + 6)" ( (binary_expression "(int)__dest + 6" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "local_1022 = *(undefined1 *)((int)__dest + 7);" (assignment_expression "local_1022 = *(undefined1 *)((int)__dest + 7)" identifier = (pointer_expression "*(undefined1 *)((int)__dest + 7)" * (cast_expression "(undefined1 *)((int)__dest + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + 7)" ( (binary_expression "(int)__dest + 7" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "puVar30 = local_10d9;" (assignment_expression "puVar30 = local_10d9" identifier = identifier) ;) (if_statement "if (uVar27 < uVar28) goto LAB_0029ddc4;" if (parenthesized_expression "(uVar27 < uVar28)" ( (binary_expression "uVar27 < uVar28" identifier < identifier) )) (goto_statement "goto LAB_0029ddc4;" goto statement_identifier ;)) (do_statement "do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);" do (compound_statement "{\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  }" { (expression_statement "iVar11 = LocaleNCompare(&local_1025,puVar30,5);" (assignment_expression "iVar11 = LocaleNCompare(&local_1025,puVar30,5)" identifier = (call_expression "LocaleNCompare(&local_1025,puVar30,5)" identifier (argument_list "(&local_1025,puVar30,5)" ( (pointer_expression "&local_1025" & identifier) , identifier , number_literal )))) ;) (if_statement "if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }" { (expression_statement "uVar27 = uVar27 - uVar28;" (assignment_expression "uVar27 = uVar27 - uVar28" identifier = (binary_expression "uVar27 - uVar28" identifier - identifier)) ;) (expression_statement "local_115c = local_115c + 0xc + uVar28;" (assignment_expression "local_115c = local_115c + 0xc + uVar28" identifier = (binary_expression "local_115c + 0xc + uVar28" (binary_expression "local_115c + 0xc" identifier + number_literal) + identifier)) ;) (expression_statement "__dest = (void *)((int)__dest + uVar28 + 0xc);" (assignment_expression "__dest = (void *)((int)__dest + uVar28 + 0xc)" identifier = (cast_expression "(void *)((int)__dest + uVar28 + 0xc)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + uVar28 + 0xc)" ( (binary_expression "(int)__dest + uVar28 + 0xc" (binary_expression "(int)__dest + uVar28" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (goto_statement "goto LAB_0029cee4;" goto statement_identifier ;) })) (expression_statement "puVar30 = (undefined4 *)((int)puVar30 + 5);" (assignment_expression "puVar30 = (undefined4 *)((int)puVar30 + 5)" identifier = (cast_expression "(undefined4 *)((int)puVar30 + 5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar30 + 5)" ( (binary_expression "(int)puVar30 + 5" (cast_expression "(int)puVar30" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "((undefined4 *)&local_1025 != puVar30)" ( (binary_expression "(undefined4 *)&local_1025 != puVar30" (cast_expression "(undefined4 *)&local_1025" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_1025" & identifier)) != identifier) )) ;) (expression_statement "uVar27 = uVar27 - uVar28;" (assignment_expression "uVar27 = uVar27 - uVar28" identifier = (binary_expression "uVar27 - uVar28" identifier - identifier)) ;) (if_statement "if (uVar27 == 0) break;" if (parenthesized_expression "(uVar27 == 0)" ( (binary_expression "uVar27 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);" (call_expression "memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27)" identifier (argument_list "(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27)" ( identifier , (cast_expression "(void *)((int)__dest + uVar28 + 0xc)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + uVar28 + 0xc)" ( (binary_expression "(int)__dest + uVar28 + 0xc" (binary_expression "(int)__dest + uVar28" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) ))) , identifier ))) ;) (labeled_statement "LAB_0029cee4:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(0xb < uVar27)" ( (binary_expression "0xb < uVar27" number_literal < identifier) )) ;) (expression_statement "iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");" (assignment_expression "iVar11 = RemoveImageProfile(local_1178,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(local_1178,"psd:additional-info")" identifier (argument_list "(local_1178,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (if_statement "if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }" if (parenthesized_expression "(local_115c != 0)" ( (binary_expression "local_115c != 0" identifier != number_literal) )) (compound_statement "{\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }" { (expression_statement "SetStringInfoLength(iVar11,local_115c);" (call_expression "SetStringInfoLength(iVar11,local_115c)" identifier (argument_list "(iVar11,local_115c)" ( identifier , identifier ))) ;) (expression_statement "SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);" (call_expression "SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5)" identifier (argument_list "(local_1178,"psd:additional-info",iVar10,param_5)" ( identifier , (string_literal ""psd:additional-info"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto LAB_0029cfc8;" goto statement_identifier ;) })) }))) (expression_statement "iVar11 = DestroyStringInfo(iVar11);" (assignment_expression "iVar11 = DestroyStringInfo(iVar11)" identifier = (call_expression "DestroyStringInfo(iVar11)" identifier (argument_list "(iVar11)" ( identifier )))) ;) }) (else_clause "else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }" else (compound_statement "{\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }" { (expression_statement "uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");" (assignment_expression "uVar16 = RemoveImageProfile(local_1178,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(local_1178,"psd:additional-info")" identifier (argument_list "(local_1178,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (expression_statement "iVar11 = DestroyStringInfo(uVar16);" (assignment_expression "iVar11 = DestroyStringInfo(uVar16)" identifier = (call_expression "DestroyStringInfo(uVar16)" identifier (argument_list "(uVar16)" ( identifier )))) ;) }))) })) }))) (labeled_statement "LAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);" statement_identifier : (expression_statement "pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);" (assignment_expression "pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5)" identifier = (cast_expression "(char *)GetImageProperty(local_1178,"label",param_5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageProperty(local_1178,"label",param_5)" identifier (argument_list "(local_1178,"label",param_5)" ( identifier , (string_literal ""label"" " string_content ") , identifier ))))) ;)) (if_statement "if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }" if (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }" { (expression_statement "pcVar7 = local_1020;" (assignment_expression "pcVar7 = local_1020" identifier = identifier) ;) (expression_statement "FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);" (call_expression "FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c)" identifier (argument_list "(pcVar7,0x1000,"L%.20g",(double)local_114c)" ( identifier , number_literal , (string_literal ""L%.20g"" " string_content ") , (cast_expression "(double)local_114c" ( (type_descriptor "double" primitive_type) ) identifier) ))) ;) })) (expression_statement "sVar8 = strlen(pcVar7);" (assignment_expression "sVar8 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "uVar27 = sVar8 + 1;" (assignment_expression "uVar27 = sVar8 + 1" identifier = (binary_expression "sVar8 + 1" identifier + number_literal)) ;) (if_statement "if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }" if (parenthesized_expression "((uVar27 & 3) != 0)" ( (binary_expression "(uVar27 & 3) != 0" (parenthesized_expression "(uVar27 & 3)" ( (binary_expression "uVar27 & 3" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }" { (expression_statement "uVar27 = (uVar27 & 0xfffffffc) + 4;" (assignment_expression "uVar27 = (uVar27 & 0xfffffffc) + 4" identifier = (binary_expression "(uVar27 & 0xfffffffc) + 4" (parenthesized_expression "(uVar27 & 0xfffffffc)" ( (binary_expression "uVar27 & 0xfffffffc" identifier & number_literal) )) + number_literal)) ;) })) (if_statement "if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }" if (parenthesized_expression "(iVar11 != 0)" ( (binary_expression "iVar11 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }" { (expression_statement "iVar10 = GetStringInfoLength(iVar11);" (assignment_expression "iVar10 = GetStringInfoLength(iVar11)" identifier = (call_expression "GetStringInfoLength(iVar11)" identifier (argument_list "(iVar11)" ( identifier )))) ;) (expression_statement "uVar27 = uVar27 + iVar10;" (assignment_expression "uVar27 = uVar27 + iVar10" identifier = (binary_expression "uVar27 + iVar10" identifier + identifier)) ;) })) (if_statement "if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }" if (parenthesized_expression "(local_1174 == 0)" ( (binary_expression "local_1174 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }" { (expression_statement "iVar10 = WriteBlobLong(param_1,uVar27 + 8);" (assignment_expression "iVar10 = WriteBlobLong(param_1,uVar27 + 8)" identifier = (call_expression "WriteBlobLong(param_1,uVar27 + 8)" identifier (argument_list "(param_1,uVar27 + 8)" ( identifier , (binary_expression "uVar27 + 8" identifier + number_literal) )))) ;) (expression_statement "iVar12 = WriteBlobLong(param_1,0);" (assignment_expression "iVar12 = WriteBlobLong(param_1,0)" identifier = (call_expression "WriteBlobLong(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar10 = iVar10 + iVar12 + iVar9;" (assignment_expression "iVar10 = iVar10 + iVar12 + iVar9" identifier = (binary_expression "iVar10 + iVar12 + iVar9" (binary_expression "iVar10 + iVar12" identifier + identifier) + identifier)) ;) }) (else_clause "else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }" else (compound_statement "{\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }" { (expression_statement "iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);" (assignment_expression "iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c)" identifier = (call_expression "WriteBlobLong(param_1,uVar27 + 0x1c)" identifier (argument_list "(param_1,uVar27 + 0x1c)" ( identifier , (binary_expression "uVar27 + 0x1c" identifier + number_literal) )))) ;) (if_statement "if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }" if (parenthesized_expression "((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0))" ( (binary_expression "(*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)" (parenthesized_expression "(*(int *)(local_1174 + 0x23c) != 0x34)" ( (binary_expression "*(int *)(local_1174 + 0x23c) != 0x34" (pointer_expression "*(int *)(local_1174 + 0x23c)" * (cast_expression "(int *)(local_1174 + 0x23c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x23c)" ( (binary_expression "local_1174 + 0x23c" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(local_1178[0xa5] != 0)" ( (binary_expression "local_1178[0xa5] != 0" (subscript_expression "local_1178[0xa5]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }" { (expression_statement "FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);" (call_expression "FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5)" identifier (argument_list "((double)((float)local_1103 * DAT_002e814c),param_5)" ( (cast_expression "(double)((float)local_1103 * DAT_002e814c)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)local_1103 * DAT_002e814c)" ( (binary_expression "(float)local_1103 * DAT_002e814c" (cast_expression "(float)local_1103" ( (type_descriptor "float" primitive_type) ) identifier) * identifier) ))) , identifier ))) ;) })) (expression_statement "*(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];" (assignment_expression "*(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83]" (pointer_expression "*(int *)(local_1174 + 0x20c)" * (cast_expression "(int *)(local_1174 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x20c)" ( (binary_expression "local_1174 + 0x20c" identifier + number_literal) )))) = (binary_expression "*(int *)(local_1174 + 0x20c) + param_1[0x83]" (pointer_expression "*(int *)(local_1174 + 0x20c)" * (cast_expression "(int *)(local_1174 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x20c)" ( (binary_expression "local_1174 + 0x20c" identifier + number_literal) )))) + (subscript_expression "param_1[0x83]" identifier [ number_literal ]))) ;) (expression_statement "*(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];" (assignment_expression "*(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82]" (pointer_expression "*(int *)(local_1174 + 0x208)" * (cast_expression "(int *)(local_1174 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x208)" ( (binary_expression "local_1174 + 0x208" identifier + number_literal) )))) = (binary_expression "*(int *)(local_1174 + 0x208) + param_1[0x82]" (pointer_expression "*(int *)(local_1174 + 0x208)" * (cast_expression "(int *)(local_1174 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x208)" ( (binary_expression "local_1174 + 0x208" identifier + number_literal) )))) + (subscript_expression "param_1[0x82]" identifier [ number_literal ]))) ;) (expression_statement "iVar13 = WriteBlobLong(param_1,0x14);" (assignment_expression "iVar13 = WriteBlobLong(param_1,0x14)" identifier = (call_expression "WriteBlobLong(param_1,0x14)" identifier (argument_list "(param_1,0x14)" ( identifier , number_literal )))) ;) (expression_statement "iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));" (assignment_expression "iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c))" identifier = (call_expression "WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c))" identifier (argument_list "(param_1,*(undefined4 *)(local_1174 + 0x20c))" ( identifier , (pointer_expression "*(undefined4 *)(local_1174 + 0x20c)" * (cast_expression "(undefined4 *)(local_1174 + 0x20c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x20c)" ( (binary_expression "local_1174 + 0x20c" identifier + number_literal) )))) )))) ;) (expression_statement "iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));" (assignment_expression "iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208))" identifier = (call_expression "WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208))" identifier (argument_list "(param_1,*(undefined4 *)(local_1174 + 0x208))" ( identifier , (pointer_expression "*(undefined4 *)(local_1174 + 0x208)" * (cast_expression "(undefined4 *)(local_1174 + 0x208)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x208)" ( (binary_expression "local_1174 + 0x208" identifier + number_literal) )))) )))) ;) (expression_statement "iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));" (assignment_expression "iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c))" identifier = (call_expression "WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c))" identifier (argument_list "(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c))" ( identifier , (binary_expression "*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c)" (pointer_expression "*(int *)(local_1174 + 0x20c)" * (cast_expression "(int *)(local_1174 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x20c)" ( (binary_expression "local_1174 + 0x20c" identifier + number_literal) )))) + (pointer_expression "*(int *)(local_1174 + 0x1c)" * (cast_expression "(int *)(local_1174 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x1c)" ( (binary_expression "local_1174 + 0x1c" identifier + number_literal) ))))) )))) ;) (expression_statement "iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));" (assignment_expression "iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18))" identifier = (call_expression "WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18))" identifier (argument_list "(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18))" ( identifier , (binary_expression "*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18)" (pointer_expression "*(int *)(local_1174 + 0x208)" * (cast_expression "(int *)(local_1174 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x208)" ( (binary_expression "local_1174 + 0x208" identifier + number_literal) )))) + (pointer_expression "*(int *)(local_1174 + 0x18)" * (cast_expression "(int *)(local_1174 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x18)" ( (binary_expression "local_1174 + 0x18" identifier + number_literal) ))))) )))) ;) (expression_statement "iVar21 = WriteBlobByte(param_1,local_1103);" (assignment_expression "iVar21 = WriteBlobByte(param_1,local_1103)" identifier = (call_expression "WriteBlobByte(param_1,local_1103)" identifier (argument_list "(param_1,local_1103)" ( identifier , identifier )))) ;) (expression_statement "iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');" (assignment_expression "iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02')" identifier = (call_expression "WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02')" identifier (argument_list "(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02')" ( identifier , (binary_expression "(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02'" (parenthesized_expression "(*(int *)(local_1174 + 0x23c) == 0x34)" ( (binary_expression "*(int *)(local_1174 + 0x23c) == 0x34" (pointer_expression "*(int *)(local_1174 + 0x23c)" * (cast_expression "(int *)(local_1174 + 0x23c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x23c)" ( (binary_expression "local_1174 + 0x23c" identifier + number_literal) )))) == number_literal) )) * (char_literal "'\x02'" ' escape_sequence ')) )))) ;) (expression_statement "iVar10 = WriteBlobMSBShort(param_1,0);" (assignment_expression "iVar10 = WriteBlobMSBShort(param_1,0)" identifier = (call_expression "WriteBlobMSBShort(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;" (assignment_expression "iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10" identifier = (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17" (binary_expression "iVar9 + iVar12 + iVar13" (binary_expression "iVar9 + iVar12" identifier + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier)) ;) }))) (expression_statement "iVar9 = WriteBlobLong(param_1,0);" (assignment_expression "iVar9 = WriteBlobLong(param_1,0)" identifier = (call_expression "WriteBlobLong(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "sVar8 = strlen(pcVar7);" (assignment_expression "sVar8 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (if_statement "if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }" if (parenthesized_expression "(sVar8 < 0x100)" ( (binary_expression "sVar8 < 0x100" identifier < number_literal) )) (compound_statement "{\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }" { (if_statement "if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }" if (parenthesized_expression "(sVar8 == 0)" ( (binary_expression "sVar8 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }" { (expression_statement "iVar13 = WriteBlobByte(param_1,0);" (assignment_expression "iVar13 = WriteBlobByte(param_1,0)" identifier = (call_expression "WriteBlobByte(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "local_1174 = 3;" (assignment_expression "local_1174 = 3" identifier = number_literal) ;) }) (else_clause "else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }" else (compound_statement "{\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }" { (expression_statement "iVar13 = WriteBlobByte(param_1,sVar8);" (assignment_expression "iVar13 = WriteBlobByte(param_1,sVar8)" identifier = (call_expression "WriteBlobByte(param_1,sVar8)" identifier (argument_list "(param_1,sVar8)" ( identifier , identifier )))) ;) (expression_statement "iVar12 = WriteBlob(param_1,sVar8,pcVar7);" (assignment_expression "iVar12 = WriteBlob(param_1,sVar8,pcVar7)" identifier = (call_expression "WriteBlob(param_1,sVar8,pcVar7)" identifier (argument_list "(param_1,sVar8,pcVar7)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar13 = iVar13 + iVar12;" (assignment_expression "iVar13 = iVar13 + iVar12" identifier = (binary_expression "iVar13 + iVar12" identifier + identifier)) ;) (expression_statement "uVar27 = sVar8 + 1 & 3;" (assignment_expression "uVar27 = sVar8 + 1 & 3" identifier = (binary_expression "sVar8 + 1 & 3" (binary_expression "sVar8 + 1" identifier + number_literal) & number_literal)) ;) (if_statement "if (uVar27 == 0) goto LAB_0029d1b9;" if (parenthesized_expression "(uVar27 == 0)" ( (binary_expression "uVar27 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0029d1b9;" goto statement_identifier ;)) (expression_statement "local_1174 = 4 - uVar27;" (assignment_expression "local_1174 = 4 - uVar27" identifier = (binary_expression "4 - uVar27" number_literal - identifier)) ;) }))) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (do_statement "do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);" do (compound_statement "{\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          }" { (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "iVar17 = WriteBlobByte(param_1,0);" (assignment_expression "iVar17 = WriteBlobByte(param_1,0)" identifier = (call_expression "WriteBlobByte(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar13 = iVar13 + iVar17;" (assignment_expression "iVar13 = iVar13 + iVar17" identifier = (binary_expression "iVar13 + iVar17" identifier + identifier)) ;) }) while (parenthesized_expression "(iVar12 != local_1174)" ( (binary_expression "iVar12 != local_1174" identifier != identifier) )) ;) }) (else_clause "else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }" else (compound_statement "{\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }" { (expression_statement "iVar13 = WriteBlobByte(param_1,0xff);" (assignment_expression "iVar13 = WriteBlobByte(param_1,0xff)" identifier = (call_expression "WriteBlobByte(param_1,0xff)" identifier (argument_list "(param_1,0xff)" ( identifier , number_literal )))) ;) (expression_statement "iVar12 = WriteBlob(param_1,0xff,pcVar7);" (assignment_expression "iVar12 = WriteBlob(param_1,0xff,pcVar7)" identifier = (call_expression "WriteBlob(param_1,0xff,pcVar7)" identifier (argument_list "(param_1,0xff,pcVar7)" ( identifier , number_literal , identifier )))) ;) (expression_statement "iVar13 = iVar13 + iVar12;" (assignment_expression "iVar13 = iVar13 + iVar12" identifier = (binary_expression "iVar13 + iVar12" identifier + identifier)) ;) }))) (labeled_statement "LAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;" statement_identifier : (expression_statement "local_1130 = iVar13 + iVar9 + iVar10;" (assignment_expression "local_1130 = iVar13 + iVar9 + iVar10" identifier = (binary_expression "iVar13 + iVar9 + iVar10" (binary_expression "iVar13 + iVar9" identifier + identifier) + identifier)) ;)) (if_statement "if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }" if (parenthesized_expression "(iVar11 != 0)" ( (binary_expression "iVar11 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }" { (expression_statement "uVar16 = GetStringInfoDatum(iVar11);" (assignment_expression "uVar16 = GetStringInfoDatum(iVar11)" identifier = (call_expression "GetStringInfoDatum(iVar11)" identifier (argument_list "(iVar11)" ( identifier )))) ;) (expression_statement "uVar23 = GetStringInfoLength(iVar11);" (assignment_expression "uVar23 = GetStringInfoLength(iVar11)" identifier = (call_expression "GetStringInfoLength(iVar11)" identifier (argument_list "(iVar11)" ( identifier )))) ;) (expression_statement "iVar9 = WriteBlob(param_1,uVar23,uVar16);" (assignment_expression "iVar9 = WriteBlob(param_1,uVar23,uVar16)" identifier = (call_expression "WriteBlob(param_1,uVar23,uVar16)" identifier (argument_list "(param_1,uVar23,uVar16)" ( identifier , identifier , identifier )))) ;) (expression_statement "local_1130 = local_1130 + iVar9;" (assignment_expression "local_1130 = local_1130 + iVar9" identifier = (binary_expression "local_1130 + iVar9" identifier + identifier)) ;) })) (expression_statement "local_1178 = (int *)GetNextImageInList(local_1178);" (assignment_expression "local_1178 = (int *)GetNextImageInList(local_1178)" identifier = (cast_expression "(int *)GetNextImageInList(local_1178)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageInList(local_1178)" identifier (argument_list "(local_1178)" ( identifier ))))) ;) (expression_statement "piVar5 = piVar4;" (assignment_expression "piVar5 = piVar4" identifier = identifier) ;) (expression_statement "local_1150 = puVar6;" (assignment_expression "local_1150 = puVar6" identifier = identifier) ;) }) while (parenthesized_expression "(local_1178 != (int *)0x0)" ( (binary_expression "local_1178 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (do_statement "do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);" do (compound_statement "{\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      }" { (expression_statement "local_1178 = (int *)0x0;" (assignment_expression "local_1178 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar27 = *local_1150;" (assignment_expression "uVar27 = *local_1150" identifier = (pointer_expression "*local_1150" * identifier)) ;) (expression_statement "uVar28 = local_1150[1];" (assignment_expression "uVar28 = local_1150[1]" identifier = (subscript_expression "local_1150[1]" identifier [ number_literal ])) ;) (expression_statement "iVar9 = *param_2;" (assignment_expression "iVar9 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }" if (parenthesized_expression "(*param_2 == 0)" ( (binary_expression "*param_2 == 0" (pointer_expression "*param_2" * identifier) == number_literal) )) (compound_statement "{\n          iVar9 = piVar5[2];\n        }" { (expression_statement "iVar9 = piVar5[2];" (assignment_expression "iVar9 = piVar5[2]" identifier = (subscript_expression "piVar5[2]" identifier [ number_literal ])) ;) })) (if_statement "if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }" if (parenthesized_expression "((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0))" ( (binary_expression "(iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)" (parenthesized_expression "(iVar9 == 0x13)" ( (binary_expression "iVar9 == 0x13" identifier == number_literal) )) && (parenthesized_expression "(local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)" ( (comma_expression "local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0" (assignment_expression "local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01')" identifier = (cast_expression "(int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01')" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01')" identifier (argument_list "(piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01')" ( (binary_expression "piVar5[6] * 9 + 1" (binary_expression "piVar5[6] * 9" (subscript_expression "piVar5[6]" identifier [ number_literal ]) * number_literal) + number_literal) , (binary_expression "(8U < (uint)piVar5[8]) + '\x01'" (parenthesized_expression "(8U < (uint)piVar5[8])" ( (binary_expression "8U < (uint)piVar5[8]" number_literal < (cast_expression "(uint)piVar5[8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar5[8]" identifier [ number_literal ]))) )) + (char_literal "'\x01'" ' escape_sequence ')) ))))) , (comma_expression "piVar24 = piVar5, local_1178 == (int *)0x0" (assignment_expression "piVar24 = piVar5" identifier = identifier) , (binary_expression "local_1178 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)))) ))) )) (compound_statement "{\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }" { (labeled_statement "LAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);" statement_identifier : (expression_statement "ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);" (call_expression "ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6)" identifier (argument_list "(param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6)" ( identifier , (string_literal ""coders/psd.c"" " string_content ") , (string_literal ""AcquireCompactPixels"" " string_content ") , number_literal , number_literal , (string_literal ""MemoryAllocationFailed"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , (binary_expression "piVar24 + 0xc6" identifier + number_literal) ))) ;)) (expression_statement "local_1178 = (int *)0x0;" (assignment_expression "local_1178 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_0029dc36;" goto statement_identifier ;) })) (expression_statement "uVar26 = uVar27 + 2;" (assignment_expression "uVar26 = uVar27 + 2" identifier = (binary_expression "uVar27 + 2" identifier + number_literal)) ;) (expression_statement "iVar10 = uVar28 + (0xfffffffd < uVar27);" (assignment_expression "iVar10 = uVar28 + (0xfffffffd < uVar27)" identifier = (binary_expression "uVar28 + (0xfffffffd < uVar27)" identifier + (parenthesized_expression "(0xfffffffd < uVar27)" ( (binary_expression "0xfffffffd < uVar27" number_literal < identifier) )))) ;) (if_statement "if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }" if (parenthesized_expression "((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0))" ( (binary_expression "(*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)" (parenthesized_expression "(*piVar5 == 2)" ( (binary_expression "*piVar5 == 2" (pointer_expression "*piVar5" * identifier) == number_literal) )) && (parenthesized_expression "(iVar11 = IsImageGray(piVar5), iVar11 == 0)" ( (comma_expression "iVar11 = IsImageGray(piVar5), iVar11 == 0" (assignment_expression "iVar11 = IsImageGray(piVar5)" identifier = (call_expression "IsImageGray(piVar5)" identifier (argument_list "(piVar5)" ( identifier )))) , (binary_expression "iVar11 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }" { (expression_statement "iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5)" identifier = (call_expression "FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5)" identifier (argument_list "(piVar5,0x12,local_1178,0,0,1,iVar9,param_5)" ( identifier , number_literal , identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,uVar26,iVar10,0);" (call_expression "SeekBlob(param_1,uVar26,iVar10,0)" identifier (argument_list "(param_1,uVar26,iVar10,0)" ( identifier , identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }" { (expression_statement "iVar12 = WriteBlobLong(param_1,iVar11);" (assignment_expression "iVar12 = WriteBlobLong(param_1,iVar11)" identifier = (call_expression "WriteBlobLong(param_1,iVar11)" identifier (argument_list "(param_1,iVar11)" ( identifier , identifier )))) ;) }) (else_clause "else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }" else (compound_statement "{\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }" { (expression_statement "iVar12 = WriteBlobLongLong(param_1,iVar11,0);" (assignment_expression "iVar12 = WriteBlobLongLong(param_1,iVar11,0)" identifier = (call_expression "WriteBlobLongLong(param_1,iVar11,0)" identifier (argument_list "(param_1,iVar11,0)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "uVar27 = iVar12 + 2;" (assignment_expression "uVar27 = iVar12 + 2" identifier = (binary_expression "iVar12 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "local_115c = uVar27 + uVar26;" (assignment_expression "local_115c = uVar27 + uVar26" identifier = (binary_expression "uVar27 + uVar26" identifier + identifier)) ;) (expression_statement "local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);" (assignment_expression "local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26)" identifier = (binary_expression "((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26)" (binary_expression "((int)uVar27 >> 0x1f) + iVar10" (parenthesized_expression "((int)uVar27 >> 0x1f)" ( (binary_expression "(int)uVar27 >> 0x1f" (cast_expression "(int)uVar27" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar27,uVar26)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar27,uVar26)" identifier (argument_list "(uVar27,uVar26)" ( identifier , identifier )))))) ;) }) (else_clause "else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }" else (compound_statement "{\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }" { (expression_statement "iVar11 = IsImageGray(piVar5);" (assignment_expression "iVar11 = IsImageGray(piVar5)" identifier = (call_expression "IsImageGray(piVar5)" identifier (argument_list "(piVar5)" ( identifier )))) ;) (if_statement "if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }" { (if_statement "if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }" if (parenthesized_expression "(piVar5[1] == 2)" ( (binary_expression "piVar5[1] == 2" (subscript_expression "piVar5[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }" { (expression_statement "uVar16 = SetImageChannelMask(piVar5,0x7ffffef);" (assignment_expression "uVar16 = SetImageChannelMask(piVar5,0x7ffffef)" identifier = (call_expression "SetImageChannelMask(piVar5,0x7ffffef)" identifier (argument_list "(piVar5,0x7ffffef)" ( identifier , number_literal )))) ;) (expression_statement "NegateImage(piVar5,0,param_5);" (call_expression "NegateImage(piVar5,0,param_5)" identifier (argument_list "(piVar5,0,param_5)" ( identifier , number_literal , identifier ))) ;) (expression_statement "SetImageChannelMask(piVar5,uVar16);" (call_expression "SetImageChannelMask(piVar5,uVar16)" identifier (argument_list "(piVar5,uVar16)" ( identifier , identifier ))) ;) })) (expression_statement "iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5)" identifier = (call_expression "FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5)" identifier (argument_list "(piVar5,0x15,local_1178,0,0,1,iVar9,param_5)" ( identifier , number_literal , identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,uVar26,iVar10,0);" (call_expression "SeekBlob(param_1,uVar26,iVar10,0)" identifier (argument_list "(param_1,uVar26,iVar10,0)" ( identifier , identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }" { (expression_statement "iVar11 = WriteBlobLong(param_1,iVar12);" (assignment_expression "iVar11 = WriteBlobLong(param_1,iVar12)" identifier = (call_expression "WriteBlobLong(param_1,iVar12)" identifier (argument_list "(param_1,iVar12)" ( identifier , identifier )))) ;) }) (else_clause "else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }" else (compound_statement "{\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }" { (expression_statement "iVar11 = WriteBlobLongLong(param_1,iVar12,0);" (assignment_expression "iVar11 = WriteBlobLongLong(param_1,iVar12,0)" identifier = (call_expression "WriteBlobLongLong(param_1,iVar12,0)" identifier (argument_list "(param_1,iVar12,0)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "uVar28 = iVar11 + 2;" (assignment_expression "uVar28 = iVar11 + 2" identifier = (binary_expression "iVar11 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "uVar27 = uVar28 + uVar26;" (assignment_expression "uVar27 = uVar28 + uVar26" identifier = (binary_expression "uVar28 + uVar26" identifier + identifier)) ;) (expression_statement "iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);" (assignment_expression "iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26)" identifier = (binary_expression "((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26)" (binary_expression "((int)uVar28 >> 0x1f) + iVar10" (parenthesized_expression "((int)uVar28 >> 0x1f)" ( (binary_expression "(int)uVar28 >> 0x1f" (cast_expression "(int)uVar28" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar28,uVar26)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar28,uVar26)" identifier (argument_list "(uVar28,uVar26)" ( identifier , identifier )))))) ;) (expression_statement "iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5)" identifier = (call_expression "FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5)" identifier (argument_list "(piVar5,0x10,local_1178,0,0,1,iVar9,param_5)" ( identifier , number_literal , identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,uVar27,iVar11,0);" (call_expression "SeekBlob(param_1,uVar27,iVar11,0)" identifier (argument_list "(param_1,uVar27,iVar11,0)" ( identifier , identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }" { (expression_statement "iVar13 = WriteBlobLong(param_1,iVar10);" (assignment_expression "iVar13 = WriteBlobLong(param_1,iVar10)" identifier = (call_expression "WriteBlobLong(param_1,iVar10)" identifier (argument_list "(param_1,iVar10)" ( identifier , identifier )))) ;) }) (else_clause "else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }" else (compound_statement "{\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }" { (expression_statement "iVar13 = WriteBlobLongLong(param_1,iVar10,0);" (assignment_expression "iVar13 = WriteBlobLongLong(param_1,iVar10,0)" identifier = (call_expression "WriteBlobLongLong(param_1,iVar10,0)" identifier (argument_list "(param_1,iVar10,0)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "uVar26 = iVar13 + 2;" (assignment_expression "uVar26 = iVar13 + 2" identifier = (binary_expression "iVar13 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "uVar28 = uVar26 + uVar27;" (assignment_expression "uVar28 = uVar26 + uVar27" identifier = (binary_expression "uVar26 + uVar27" identifier + identifier)) ;) (expression_statement "iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);" (assignment_expression "iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27)" identifier = (binary_expression "((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27)" (binary_expression "((int)uVar26 >> 0x1f) + iVar11" (parenthesized_expression "((int)uVar26 >> 0x1f)" ( (binary_expression "(int)uVar26 >> 0x1f" (cast_expression "(int)uVar26" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar26,uVar27)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar26,uVar27)" identifier (argument_list "(uVar26,uVar27)" ( identifier , identifier )))))) ;) (expression_statement "iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5)" identifier = (call_expression "FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5)" identifier (argument_list "(piVar5,6,local_1178,0,0,1,iVar9,param_5)" ( identifier , number_literal , identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,uVar28,iVar13,0);" (call_expression "SeekBlob(param_1,uVar28,iVar13,0)" identifier (argument_list "(param_1,uVar28,iVar13,0)" ( identifier , identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }" { (expression_statement "iVar17 = WriteBlobLong(param_1,iVar11);" (assignment_expression "iVar17 = WriteBlobLong(param_1,iVar11)" identifier = (call_expression "WriteBlobLong(param_1,iVar11)" identifier (argument_list "(param_1,iVar11)" ( identifier , identifier )))) ;) }) (else_clause "else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }" else (compound_statement "{\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }" { (expression_statement "iVar17 = WriteBlobLongLong(param_1,iVar11,0);" (assignment_expression "iVar17 = WriteBlobLongLong(param_1,iVar11,0)" identifier = (call_expression "WriteBlobLongLong(param_1,iVar11,0)" identifier (argument_list "(param_1,iVar11,0)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "uVar27 = iVar17 + 2;" (assignment_expression "uVar27 = iVar17 + 2" identifier = (binary_expression "iVar17 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "local_115c = uVar27 + uVar28;" (assignment_expression "local_115c = uVar27 + uVar28" identifier = (binary_expression "uVar27 + uVar28" identifier + identifier)) ;) (expression_statement "local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);" (assignment_expression "local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28)" identifier = (binary_expression "((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28)" (binary_expression "((int)uVar27 >> 0x1f) + iVar13" (parenthesized_expression "((int)uVar27 >> 0x1f)" ( (binary_expression "(int)uVar27 >> 0x1f" (cast_expression "(int)uVar27" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar27,uVar28)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar27,uVar28)" identifier (argument_list "(uVar27,uVar28)" ( identifier , identifier )))))) ;) (expression_statement "iVar11 = iVar12 + iVar10 + iVar11;" (assignment_expression "iVar11 = iVar12 + iVar10 + iVar11" identifier = (binary_expression "iVar12 + iVar10 + iVar11" (binary_expression "iVar12 + iVar10" identifier + identifier) + identifier)) ;) (if_statement "if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }" if (parenthesized_expression "(piVar5[1] == 2)" ( (binary_expression "piVar5[1] == 2" (subscript_expression "piVar5[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }" { (expression_statement "iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5)" identifier = (call_expression "FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5)" identifier (argument_list "(piVar5,5,local_1178,0,0,1,iVar9,param_5)" ( identifier , number_literal , identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,local_115c,local_1158,0);" (call_expression "SeekBlob(param_1,local_115c,local_1158,0)" identifier (argument_list "(param_1,local_115c,local_1158,0)" ( identifier , identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }" { (expression_statement "iVar12 = WriteBlobLong(param_1,iVar10);" (assignment_expression "iVar12 = WriteBlobLong(param_1,iVar10)" identifier = (call_expression "WriteBlobLong(param_1,iVar10)" identifier (argument_list "(param_1,iVar10)" ( identifier , identifier )))) ;) }) (else_clause "else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }" else (compound_statement "{\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }" { (expression_statement "iVar12 = WriteBlobLongLong(param_1,iVar10,0);" (assignment_expression "iVar12 = WriteBlobLongLong(param_1,iVar10,0)" identifier = (call_expression "WriteBlobLongLong(param_1,iVar10,0)" identifier (argument_list "(param_1,iVar10,0)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "uVar27 = iVar12 + 2;" (assignment_expression "uVar27 = iVar12 + 2" identifier = (binary_expression "iVar12 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "bVar31 = CARRY4(local_115c,uVar27);" (assignment_expression "bVar31 = CARRY4(local_115c,uVar27)" identifier = (call_expression "CARRY4(local_115c,uVar27)" identifier (argument_list "(local_115c,uVar27)" ( identifier , identifier )))) ;) (expression_statement "local_115c = local_115c + uVar27;" (assignment_expression "local_115c = local_115c + uVar27" identifier = (binary_expression "local_115c + uVar27" identifier + identifier)) ;) (expression_statement "local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;" (assignment_expression "local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31" identifier = (binary_expression "local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31" (binary_expression "local_1158 + ((int)uVar27 >> 0x1f)" identifier + (parenthesized_expression "((int)uVar27 >> 0x1f)" ( (binary_expression "(int)uVar27 >> 0x1f" (cast_expression "(int)uVar27" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (cast_expression "(uint)bVar31" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "iVar11 = iVar11 + iVar10;" (assignment_expression "iVar11 = iVar11 + iVar10" identifier = (binary_expression "iVar11 + iVar10" identifier + identifier)) ;) })) }) (else_clause "else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }" else (compound_statement "{\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }" { (expression_statement "iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5)" identifier = (call_expression "FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5)" identifier (argument_list "(piVar5,0xf,local_1178,0,0,1,iVar9,param_5)" ( identifier , number_literal , identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,uVar26,iVar10,0);" (call_expression "SeekBlob(param_1,uVar26,iVar10,0)" identifier (argument_list "(param_1,uVar26,iVar10,0)" ( identifier , identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }" { (expression_statement "iVar12 = WriteBlobLong(param_1,iVar11);" (assignment_expression "iVar12 = WriteBlobLong(param_1,iVar11)" identifier = (call_expression "WriteBlobLong(param_1,iVar11)" identifier (argument_list "(param_1,iVar11)" ( identifier , identifier )))) ;) }) (else_clause "else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }" else (compound_statement "{\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }" { (expression_statement "iVar12 = WriteBlobLongLong(param_1,iVar11,0);" (assignment_expression "iVar12 = WriteBlobLongLong(param_1,iVar11,0)" identifier = (call_expression "WriteBlobLongLong(param_1,iVar11,0)" identifier (argument_list "(param_1,iVar11,0)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "uVar27 = iVar12 + 2;" (assignment_expression "uVar27 = iVar12 + 2" identifier = (binary_expression "iVar12 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "local_115c = uVar27 + uVar26;" (assignment_expression "local_115c = uVar27 + uVar26" identifier = (binary_expression "uVar27 + uVar26" identifier + identifier)) ;) (expression_statement "local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);" (assignment_expression "local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26)" identifier = (binary_expression "((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26)" (binary_expression "((int)uVar27 >> 0x1f) + iVar10" (parenthesized_expression "((int)uVar27 >> 0x1f)" ( (binary_expression "(int)uVar27 >> 0x1f" (cast_expression "(int)uVar27" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar27,uVar26)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar27,uVar26)" identifier (argument_list "(uVar27,uVar26)" ( identifier , identifier )))))) ;) }))) (if_statement "if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }" if (parenthesized_expression "(piVar5[0xa5] != 0)" ( (binary_expression "piVar5[0xa5] != 0" (subscript_expression "piVar5[0xa5]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }" { (expression_statement "iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5)" identifier = (call_expression "FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5)" identifier (argument_list "(piVar5,1,local_1178,0,0,1,iVar9,param_5)" ( identifier , number_literal , identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,local_115c,local_1158,0);" (call_expression "SeekBlob(param_1,local_115c,local_1158,0)" identifier (argument_list "(param_1,local_115c,local_1158,0)" ( identifier , identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }" { (expression_statement "iVar12 = WriteBlobLong(param_1,iVar10);" (assignment_expression "iVar12 = WriteBlobLong(param_1,iVar10)" identifier = (call_expression "WriteBlobLong(param_1,iVar10)" identifier (argument_list "(param_1,iVar10)" ( identifier , identifier )))) ;) }) (else_clause "else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }" else (compound_statement "{\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }" { (expression_statement "iVar12 = WriteBlobLongLong(param_1,iVar10,0);" (assignment_expression "iVar12 = WriteBlobLongLong(param_1,iVar10,0)" identifier = (call_expression "WriteBlobLongLong(param_1,iVar10,0)" identifier (argument_list "(param_1,iVar10,0)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "uVar27 = iVar12 + 2;" (assignment_expression "uVar27 = iVar12 + 2" identifier = (binary_expression "iVar12 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "bVar31 = CARRY4(local_115c,uVar27);" (assignment_expression "bVar31 = CARRY4(local_115c,uVar27)" identifier = (call_expression "CARRY4(local_115c,uVar27)" identifier (argument_list "(local_115c,uVar27)" ( identifier , identifier )))) ;) (expression_statement "local_115c = local_115c + uVar27;" (assignment_expression "local_115c = local_115c + uVar27" identifier = (binary_expression "local_115c + uVar27" identifier + identifier)) ;) (expression_statement "local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;" (assignment_expression "local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31" identifier = (binary_expression "local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31" (binary_expression "local_1158 + ((int)uVar27 >> 0x1f)" identifier + (parenthesized_expression "((int)uVar27 >> 0x1f)" ( (binary_expression "(int)uVar27 >> 0x1f" (cast_expression "(int)uVar27" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (cast_expression "(uint)bVar31" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "iVar11 = iVar11 + iVar10;" (assignment_expression "iVar11 = iVar11 + iVar10" identifier = (binary_expression "iVar11 + iVar10" identifier + identifier)) ;) })) }))) (expression_statement "local_1178 = (int *)RelinquishMagickMemory(local_1178);" (assignment_expression "local_1178 = (int *)RelinquishMagickMemory(local_1178)" identifier = (cast_expression "(int *)RelinquishMagickMemory(local_1178)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "RelinquishMagickMemory(local_1178)" identifier (argument_list "(local_1178)" ( identifier ))))) ;) (if_statement "if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }" if (parenthesized_expression "(piVar5[1] == 2)" ( (binary_expression "piVar5[1] == 2" (subscript_expression "piVar5[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }" { (expression_statement "uVar16 = SetImageChannelMask(piVar5,0x7ffffef);" (assignment_expression "uVar16 = SetImageChannelMask(piVar5,0x7ffffef)" identifier = (call_expression "SetImageChannelMask(piVar5,0x7ffffef)" identifier (argument_list "(piVar5,0x7ffffef)" ( identifier , number_literal )))) ;) (expression_statement "NegateImage(piVar5,0,param_5);" (call_expression "NegateImage(piVar5,0,param_5)" identifier (argument_list "(piVar5,0,param_5)" ( identifier , number_literal , identifier ))) ;) (expression_statement "SetImageChannelMask(piVar5,uVar16);" (call_expression "SetImageChannelMask(piVar5,uVar16)" identifier (argument_list "(piVar5,uVar16)" ( identifier , identifier ))) ;) })) (expression_statement "iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");" (assignment_expression "iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask")" identifier = (call_expression "GetImageArtifact(piVar5,"psd:opacity-mask")" identifier (argument_list "(piVar5,"psd:opacity-mask")" ( identifier , (string_literal ""psd:opacity-mask"" " string_content ") )))) ;) (if_statement "if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }" if (parenthesized_expression "((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0))" ( (binary_expression "(iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)" (parenthesized_expression "(iVar10 != 0)" ( (binary_expression "iVar10 != 0" identifier != number_literal) )) && (parenthesized_expression "(piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)" ( (comma_expression "piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0" (assignment_expression "piVar24 = (int *)GetImageRegistry(1,iVar10,param_5)" identifier = (cast_expression "(int *)GetImageRegistry(1,iVar10,param_5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageRegistry(1,iVar10,param_5)" identifier (argument_list "(1,iVar10,param_5)" ( number_literal , identifier , identifier ))))) , (binary_expression "piVar24 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }" { (if_statement "if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;" if (parenthesized_expression "((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0))" ( (binary_expression "(iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)" (parenthesized_expression "(iVar9 == 0x13)" ( (binary_expression "iVar9 == 0x13" identifier == number_literal) )) && (parenthesized_expression "(local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)" ( (comma_expression "local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0" (assignment_expression "local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01')" identifier = (cast_expression "(int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01')" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01')" identifier (argument_list "(piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01')" ( (binary_expression "piVar24[6] * 9 + 1" (binary_expression "piVar24[6] * 9" (subscript_expression "piVar24[6]" identifier [ number_literal ]) * number_literal) + number_literal) , (binary_expression "(8U < (uint)piVar24[8]) + '\x01'" (parenthesized_expression "(8U < (uint)piVar24[8])" ( (binary_expression "8U < (uint)piVar24[8]" number_literal < (cast_expression "(uint)piVar24[8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar24[8]" identifier [ number_literal ]))) )) + (char_literal "'\x01'" ' escape_sequence ')) ))))) , (binary_expression "local_1178 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_0029dbfc;" goto statement_identifier ;)) (expression_statement "iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5)" identifier = (call_expression "FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5)" identifier (argument_list "(piVar24,0x15,local_1178,0,0,1,iVar9,param_5)" ( identifier , number_literal , identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,local_115c,local_1158,0);" (call_expression "SeekBlob(param_1,local_115c,local_1158,0)" identifier (argument_list "(param_1,local_115c,local_1158,0)" ( identifier , identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n            WriteBlobLong(param_1,iVar9);\n          }" { (expression_statement "WriteBlobLong(param_1,iVar9);" (call_expression "WriteBlobLong(param_1,iVar9)" identifier (argument_list "(param_1,iVar9)" ( identifier , identifier ))) ;) }) (else_clause "else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }" else (compound_statement "{\n            WriteBlobLongLong(param_1,iVar9,0);\n          }" { (expression_statement "WriteBlobLongLong(param_1,iVar9,0);" (call_expression "WriteBlobLongLong(param_1,iVar9,0)" identifier (argument_list "(param_1,iVar9,0)" ( identifier , identifier , number_literal ))) ;) }))) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar11 = iVar11 + iVar9;" (assignment_expression "iVar11 = iVar11 + iVar9" identifier = (binary_expression "iVar11 + iVar9" identifier + identifier)) ;) (expression_statement "RelinquishMagickMemory(local_1178);" (call_expression "RelinquishMagickMemory(local_1178)" identifier (argument_list "(local_1178)" ( identifier ))) ;) })) (if_statement "if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }" { (expression_statement "local_1178 = (int *)0x0;" (assignment_expression "local_1178 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_0029dc36;" goto statement_identifier ;) })) (expression_statement "local_1130 = local_1130 + iVar11;" (assignment_expression "local_1130 = local_1130 + iVar11" identifier = (binary_expression "local_1130 + iVar11" identifier + identifier)) ;) (expression_statement "piVar5 = (int *)GetNextImageInList(piVar5);" (assignment_expression "piVar5 = (int *)GetNextImageInList(piVar5)" identifier = (cast_expression "(int *)GetNextImageInList(piVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageInList(piVar5)" identifier (argument_list "(piVar5)" ( identifier ))))) ;) (expression_statement "local_1150 = local_1150 + 2;" (assignment_expression "local_1150 = local_1150 + 2" identifier = (binary_expression "local_1150 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "local_1178 = (int *)0x1;" (assignment_expression "local_1178 = (int *)0x1" identifier = (cast_expression "(int *)0x1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }" statement_identifier : (if_statement "if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }" if (parenthesized_expression "(param_4 != (uint *)0x0)" ( (binary_expression "param_4 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_4 = local_1130;\n    }" { (expression_statement "*param_4 = local_1130;" (assignment_expression "*param_4 = local_1130" (pointer_expression "*param_4" * identifier) = identifier) ;) }))) (expression_statement "uVar27 = local_1130 + 1;" (assignment_expression "uVar27 = local_1130 + 1" identifier = (binary_expression "local_1130 + 1" identifier + number_literal)) ;) (if_statement "if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }" if (parenthesized_expression "(local_1130 >> 1 == local_1130 + 1 >> 1)" ( (binary_expression "local_1130 >> 1 == local_1130 + 1 >> 1" (binary_expression "local_1130 >> 1" identifier >> number_literal) == (binary_expression "local_1130 + 1 >> 1" (binary_expression "local_1130 + 1" identifier + number_literal) >> number_literal)) )) (compound_statement "{\n      uVar27 = local_1130;\n    }" { (expression_statement "uVar27 = local_1130;" (assignment_expression "uVar27 = local_1130" identifier = identifier) ;) })) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,uVar33,0);" (call_expression "SeekBlob(param_1,uVar33,0)" identifier (argument_list "(param_1,uVar33,0)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      WriteBlobLong(param_1,uVar27);\n    }" { (expression_statement "WriteBlobLong(param_1,uVar27);" (call_expression "WriteBlobLong(param_1,uVar27)" identifier (argument_list "(param_1,uVar27)" ( identifier , identifier ))) ;) }) (else_clause "else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }" else (compound_statement "{\n      WriteBlobLongLong(param_1,uVar27,0);\n    }" { (expression_statement "WriteBlobLongLong(param_1,uVar27,0);" (call_expression "WriteBlobLongLong(param_1,uVar27,0)" identifier (argument_list "(param_1,uVar27,0)" ( identifier , identifier , number_literal ))) ;) }))) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "RelinquishMagickMemory(puVar6);" (call_expression "RelinquishMagickMemory(puVar6)" identifier (argument_list "(puVar6)" ( identifier ))) ;) (for_statement "for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }" for ( ; (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar4 = (int *)GetNextImageInList(piVar4)" identifier = (cast_expression "(int *)GetNextImageInList(piVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageInList(piVar4)" identifier (argument_list "(piVar4)" ( identifier ))))) ) (compound_statement "{\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }" { (while_statement "while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }" while (parenthesized_expression "(iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0)" ( (comma_expression "iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0" (assignment_expression "iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask")" identifier = (call_expression "GetImageArtifact(piVar4,"psd:opacity-mask")" identifier (argument_list "(piVar4,"psd:opacity-mask")" ( identifier , (string_literal ""psd:opacity-mask"" " string_content ") )))) , (binary_expression "iVar9 != 0" identifier != number_literal)) )) (compound_statement "{\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }" { (expression_statement "DeleteImageRegistry(iVar9);" (call_expression "DeleteImageRegistry(iVar9)" identifier (argument_list "(iVar9)" ( identifier ))) ;) (expression_statement "piVar4 = (int *)GetNextImageInList(piVar4);" (assignment_expression "piVar4 = (int *)GetNextImageInList(piVar4)" identifier = (cast_expression "(int *)GetNextImageInList(piVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageInList(piVar4)" identifier (argument_list "(piVar4)" ( identifier ))))) ;) (if_statement "if (piVar4 == (int *)0x0) goto LAB_0029dd18;" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0029dd18;" goto statement_identifier ;)) })) })) }))) (labeled_statement "LAB_0029dd18:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002decd0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002decd0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_002decd0();\n  }" { comment (expression_statement "FUN_002decd0();" (call_expression "FUN_002decd0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return local_1178;" 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\nMagickBooleanType __regparm3\nWritePSDLayersInternal\n          (Image *image,ImageInfo *image_info,PSDInfo *psd_info,size_t *layers_size,\n          ExceptionInfo *exception)\n\n{\n  ssize_t *psVar1;\n  int iVar2;\n  _Image *p_Var3;\n  double dVar4;\n  uchar value;\n  short sVar5;\n  Image *pIVar6;\n  Image *pIVar7;\n  uint *memory;\n  char *pcVar8;\n  size_t sVar9;\n  ssize_t sVar10;\n  ssize_t sVar11;\n  ssize_t sVar12;\n  ssize_t sVar13;\n  MagickBooleanType MVar14;\n  ssize_t sVar15;\n  long lVar16;\n  CacheType CVar17;\n  int iVar18;\n  StringInfo *pSVar19;\n  uchar *puVar20;\n  StringInfo *string_info;\n  ssize_t sVar21;\n  ssize_t sVar22;\n  ssize_t sVar23;\n  ssize_t sVar24;\n  size_t value_00;\n  Image *next_image;\n  size_t sVar25;\n  CompressionType compression;\n  ChannelType CVar26;\n  int iVar27;\n  short sVar28;\n  uint uVar29;\n  uint uVar30;\n  size_t sVar31;\n  undefined4 *puVar32;\n  uint uVar33;\n  int iVar34;\n  int iVar35;\n  char (*pacVar36) [5];\n  int in_GS_OFFSET;\n  bool bVar37;\n  byte bVar38;\n  MagickOffsetType offset;\n  MagickOffsetType MVar39;\n  MagickSizeType MVar40;\n  Image *local_1178;\n  Image *local_1174;\n  int local_116c;\n  undefined4 uStack_1168;\n  size_t local_115c;\n  int local_1158;\n  uint *local_1150;\n  uint local_1130;\n  MagickOffsetType size_offset;\n  byte local_1103;\n  double local_10f4;\n  Image *local_10ec;\n  undefined4 local_10e8;\n  ExceptionInfo *local_10e4;\n  undefined4 local_10e0;\n  char allowed [36] [5];\n  char key [5];\n  char layer_name [4096];\n  \n  bVar38 = 0;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  pIVar6 = GetNextImageInList(image);\n  if (pIVar6 == (Image *)0x0) {\n    pIVar6 = image;\n  }\n  offset = TellBlob(image);\n  if (psd_info->version == 1) {\n    WriteBlobLong(image,0);\n  }\n  else {\n    WriteBlobLongLong(image,0);\n  }\n  sVar31 = 0;\n  for (pIVar7 = pIVar6; pIVar7 != (Image *)0x0; pIVar7 = GetNextImageInList(pIVar7)) {\n    sVar31 = sVar31 + 1;\n  }\n  sVar25 = sVar31;\n  if (image->alpha_trait != UndefinedPixelTrait) {\n    sVar25 = -sVar31;\n  }\n  local_1130 = WriteBlobShort(image,(ushort)sVar25);\n  memory = (uint *)AcquireQuantumMemory(sVar31,8);\n  if (memory == (uint *)0x0) {\n    ThrowMagickException\n              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,\n               "MemoryAllocationFailed","`%s\'",0x6e,image->filename);\n    p_Var3 = (_Image *)image_info->adjoin;\n    pIVar6 = image;\n    while (pIVar7 = image, p_Var3 != (_Image *)0x0) {\n      p_Var3 = pIVar7->previous;\n      image = p_Var3;\n      pIVar6 = pIVar7;\n    }\n    CloseBlob(pIVar6);\n    local_1178 = (Image *)0x0;\n  }\n  else {\n    if (pIVar6 != (Image *)0x0) {\n      iVar27 = 0;\n      local_1178 = pIVar6;\n      do {\n        pcVar8 = GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = (Image *)0x0;\n        }\n        else {\n          local_1174 = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception);\n          sVar9 = strlen(pcVar8);\n          local_1103 = -(sVar9 == 9);\n        }\n        sVar10 = WriteBlobSignedLong(image,(local_1178->page).y);\n        sVar11 = WriteBlobSignedLong(image,(local_1178->page).x);\n        sVar12 = WriteBlobSignedLong(image,local_1178->rows + (local_1178->page).y);\n        sVar13 = WriteBlobSignedLong(image,local_1178->columns + (local_1178->page).x);\n        if ((local_1178->storage_class == PseudoClass) ||\n           (MVar14 = IsImageGray(local_1178), MVar14 != MagickFalse)) {\n          sVar5 = 2;\n          local_115c = 1;\n          sVar28 = 1;\n        }\n        else {\n          sVar5 = (local_1178->colorspace == CMYKColorspace) + 4;\n          local_115c = (local_1178->colorspace == CMYKColorspace) + 3;\n          sVar28 = (local_1178->colorspace == CMYKColorspace) + 3;\n        }\n        if (local_1178->alpha_trait == UndefinedPixelTrait) {\n          sVar5 = sVar28;\n        }\n        sVar15 = WriteBlobShort(image,(sVar5 + 1) - (ushort)(local_1174 == (Image *)0x0));\n        iVar27 = iVar27 + 1;\n        local_116c = sVar15 + local_1130 + sVar10 + sVar11 + sVar12 + sVar13;\n        MVar39 = TellBlob(image);\n        memory[iVar27 * 2 + -2] = (uint)MVar39;\n        memory[iVar27 * 2 + -1] = (uint)((ulonglong)MVar39 >> 0x20);\n        iVar35 = 0;\n        do {\n          while (sVar10 = WriteBlobShort(image,(ushort)iVar35), psd_info->version != 1) {\n            iVar35 = iVar35 + 1;\n            sVar11 = WriteBlobLongLong(image,0);\n            local_116c = local_116c + sVar10 + sVar11;\n            if (iVar35 == local_115c) {\n              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar35 = iVar35 + 1;\n          sVar11 = WriteBlobLong(image,0);\n          local_116c = local_116c + sVar10 + sVar11;\n        } while (local_115c != iVar35);\n        if (local_1178->alpha_trait != UndefinedPixelTrait) {\nLAB_0029cb4b:\n          sVar10 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\nLAB_0029ca7f:\n        if (local_1174 != (Image *)0x0) {\n          sVar10 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\n        pcVar8 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar8 = "MIB8";\n        }\n        sVar10 = WriteBlobString(image,pcVar8);\n        switch(local_1178->compose) {\n        case ColorBurnCompositeOp:\n          pcVar8 = "idiv";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar8 = "div ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar8 = "colr";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar8 = "dark";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar8 = "diff";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar8 = "diss";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar8 = "smud";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar8 = "hLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar8 = "hMix";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar8 = "hue ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar8 = "lite";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar8 = "lbrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar8 = "lddg";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar8 = "lLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar8 = "lum ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar8 = "mul ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar8 = "over";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar8 = "pLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar8 = "sat ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar8 = "scrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar8 = "sLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar8 = "vLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLv";\n          }\n        }\n        sVar11 = WriteBlobString(image,pcVar8);\n        iVar35 = local_116c + sVar10 + sVar11;\n        pcVar8 = GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          sVar10 = WriteBlobByte(image,0xff);\n          iVar35 = iVar35 + sVar10;\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          dVar4 = (double)lVar16;\n          value = '\0';\n          if (0.0 < dVar4) {\n            value = 0xff;\n            if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          sVar10 = WriteBlobByte(image,value);\n          iVar35 = iVar35 + sVar10;\n          if (local_1178->debug != MagickFalse) {\n            uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);\n            LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);\n          }\n          if ((float)lVar16 != DAT_002df8a8) {\n            if (local_1178->alpha_trait != BlendPixelTrait) {\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }\n            CVar17 = GetImagePixelCacheType(local_1178);\n            if (((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }\n            else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = exception;\n            local_10ec = local_1178;\n            local_10f4 = dVar4;\n            GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);\n          }\n        }\n        sVar10 = WriteBlobByte(image,'\0');\n        sVar11 = WriteBlobByte(image,(local_1178->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar12 = WriteBlobByte(image,'\0');\n        iVar35 = sVar12 + iVar35 + sVar10 + sVar11;\n        puVar32 = &DAT_0034d420;\n        pacVar36 = allowed;\n        for (iVar18 = 0x2d; iVar18 != 0; iVar18 = iVar18 + -1) {\n          *(undefined4 *)*pacVar36 = *puVar32;\n          puVar32 = puVar32 + (uint)bVar38 * -2 + 1;\n          pacVar36 = (char (*) [5])((int)pacVar36 + (uint)bVar38 * -8 + 4);\n        }\n        pSVar19 = GetImageProfile(local_1178,"psd:additional-info");\n        if (pSVar19 == (StringInfo *)0x0) {\nLAB_0029ddc4:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar8 = GetImageOption(image_info,"psd:additional-info");\n          iVar18 = LocaleCompare(pcVar8,"all");\n          string_info = pSVar19;\n          if (iVar18 != 0) {\n            iVar18 = LocaleCompare(pcVar8,"selective");\n            if (iVar18 == 0) {\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar8 = GetImageProperty(local_1178,"label",exception);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = layer_name;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",SUB84((double)iVar27,0),\n                             (int)((ulonglong)(double)iVar27 >> 0x20));\n        }\n        sVar9 = strlen(pcVar8);\n        uVar33 = sVar9 + 1;\n        if ((uVar33 & 3) != 0) {\n          uVar33 = (uVar33 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar31 = GetStringInfoLength(string_info);\n          uVar33 = uVar33 + sVar31;\n        }\n        if (local_1174 == (Image *)0x0) {\n          sVar10 = WriteBlobLong(image,uVar33 + 8);\n          sVar11 = WriteBlobLong(image,0);\n          iVar35 = sVar10 + sVar11 + iVar35;\n        }\n        else {\n          sVar10 = WriteBlobLong(image,uVar33 + 0x1c);\n          if ((local_1174->compose != NoCompositeOp) &&\n             (local_1178->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_1174->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_1174->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar11 = WriteBlobLong(image,0x14);\n          sVar12 = WriteBlobSignedLong(image,(local_1174->page).y);\n          sVar13 = WriteBlobSignedLong(image,(local_1174->page).x);\n          sVar15 = WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows);\n          sVar21 = WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns);\n          sVar22 = WriteBlobByte(image,local_1103);\n          sVar23 = WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02');\n          sVar24 = WriteBlobMSBShort(image,0);\n          iVar35 = iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +\n                   sVar24;\n        }\n        sVar10 = WriteBlobLong(image,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            sVar12 = WriteBlobByte(image,'\0');\n            iVar18 = 3;\n          }\n          else {\n            sVar12 = WriteBlobByte(image,(uchar)sVar9);\n            sVar11 = WriteBlob(image,sVar9,pcVar8);\n            sVar12 = sVar12 + sVar11;\n            uVar33 = sVar9 + 1 & 3;\n            if (uVar33 == 0) goto LAB_0029d1b9;\n            iVar18 = 4 - uVar33;\n          }\n          iVar34 = 0;\n          do {\n            iVar34 = iVar34 + 1;\n            sVar11 = WriteBlobByte(image,'\0');\n            sVar12 = sVar12 + sVar11;\n          } while (iVar34 != iVar18);\n        }\n        else {\n          sVar12 = WriteBlobByte(image,0xff);\n          sVar11 = WriteBlob(image,0xff,pcVar8);\n          sVar12 = sVar12 + sVar11;\n        }\nLAB_0029d1b9:\n        local_1130 = sVar12 + sVar10 + iVar35;\n        if (string_info != (StringInfo *)0x0) {\n          puVar20 = GetStringInfoDatum(string_info);\n          sVar31 = GetStringInfoLength(string_info);\n          sVar10 = WriteBlob(image,sVar31,puVar20);\n          local_1130 = local_1130 + sVar10;\n        }\n        local_1178 = GetNextImageInList(local_1178);\n        pIVar7 = pIVar6;\n        local_1150 = memory;\n      } while (local_1178 != (Image *)0x0);\n      do {\n        local_1178 = (Image *)0x0;\n        uVar33 = *local_1150;\n        uVar30 = local_1150[1];\n        compression = image_info->compression;\n        if (image_info->compression == UndefinedCompression) {\n          compression = pIVar7->compression;\n        }\n        if ((compression == RLECompression) &&\n           (local_1178 = (Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1),\n           next_image = pIVar7, local_1178 == (Image *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,\n                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename);\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar29 = uVar33 + 2;\n        iVar27 = uVar30 + (0xfffffffd < uVar33);\n        if ((pIVar7->storage_class == PseudoClass) &&\n           (MVar14 = IsImageGray(pIVar7), MVar14 == MagickFalse)) {\n          sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178\n                                   ,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n          if (psd_info->version == 1) {\n            sVar10 = WriteBlobLong(image,sVar31);\n          }\n          else {\n            sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n          }\n          uVar33 = sVar10 + 2;\n          SeekBlob(image,MVar39,0);\n          local_115c = uVar33 + uVar29;\n          local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n        }\n        else {\n          MVar14 = IsImageGray(pIVar7);\n          if (MVar14 == MagickFalse) {\n            if (pIVar7->colorspace == CMYKColorspace) {\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar30 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar33 = uVar30 + uVar29;\n            iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);\n            value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar33),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,value_00);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }\n            uVar29 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar30 = uVar29 + uVar33;\n            iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar30),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar30;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);\n            sVar31 = sVar25 + value_00 + sVar31;\n            if (pIVar7->colorspace == CMYKColorspace) {\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }\n          }\n          else {\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar29;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n          }\n          if (pIVar7->alpha_trait != UndefinedPixelTrait) {\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            bVar37 = CARRY4(local_115c,uVar33);\n            local_115c = local_115c + uVar33;\n            local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n            sVar31 = sVar31 + sVar25;\n          }\n        }\n        local_1178 = (Image *)RelinquishMagickMemory(local_1178);\n        if (pIVar7->colorspace == CMYKColorspace) {\n          CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n          NegateImage(pIVar7,MagickFalse,exception);\n          SetImageChannelMask(pIVar7,CVar26);\n        }\n        pcVar8 = GetImageArtifact(pIVar7,"psd:opacity-mask");\n        if ((pcVar8 != (char *)0x0) &&\n           (next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception),\n           next_image != (Image *)0x0)) {\n          if ((compression == RLECompression) &&\n             (local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0)) goto LAB_0029dbfc;\n          sVar25 = WritePSDChannel(psd_info,image_info,image,next_image,RedQuantum,\n                                   (uchar *)local_1178,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n          if (psd_info->version == 1) {\n            WriteBlobLong(image,sVar25);\n          }\n          else {\n            WriteBlobLongLong(image,(ulonglong)sVar25);\n          }\n          SeekBlob(image,MVar39,0);\n          sVar31 = sVar31 + sVar25;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (sVar31 == 0) {\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + sVar31;\n        pIVar7 = GetNextImageInList(pIVar7);\n        local_1150 = local_1150 + 2;\n      } while (pIVar7 != (Image *)0x0);\n    }\n    local_1178 = (Image *)0x1;\nLAB_0029dc36:\n    if (layers_size != (size_t *)0x0) {\n      *layers_size = local_1130;\n    }\n    uVar33 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar33 = local_1130;\n    }\n    MVar39 = TellBlob(image);\n    SeekBlob(image,offset,0);\n    if (psd_info->version == 1) {\n      WriteBlobLong(image,uVar33);\n    }\n    else {\n      WriteBlobLongLong(image,(ulonglong)uVar33);\n    }\n    SeekBlob(image,MVar39,0);\n    RelinquishMagickMemory(memory);\n    for (; pIVar6 != (Image *)0x0; pIVar6 = GetNextImageInList(pIVar6)) {\n      while (pcVar8 = GetImageArtifact(pIVar6,"psd:opacity-mask"), pcVar8 != (char *)0x0) {\n        DeleteImageRegistry(pcVar8);\n        pIVar6 = GetNextImageInList(pIVar6);\n        if (pIVar6 == (Image *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }\nLAB_0029dd18:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return (MagickBooleanType)local_1178;\n}\n\n" comment comment comment comment comment comment comment (function_definition "MagickBooleanType __regparm3\nWritePSDLayersInternal\n          (Image *image,ImageInfo *image_info,PSDInfo *psd_info,size_t *layers_size,\n          ExceptionInfo *exception)\n\n{\n  ssize_t *psVar1;\n  int iVar2;\n  _Image *p_Var3;\n  double dVar4;\n  uchar value;\n  short sVar5;\n  Image *pIVar6;\n  Image *pIVar7;\n  uint *memory;\n  char *pcVar8;\n  size_t sVar9;\n  ssize_t sVar10;\n  ssize_t sVar11;\n  ssize_t sVar12;\n  ssize_t sVar13;\n  MagickBooleanType MVar14;\n  ssize_t sVar15;\n  long lVar16;\n  CacheType CVar17;\n  int iVar18;\n  StringInfo *pSVar19;\n  uchar *puVar20;\n  StringInfo *string_info;\n  ssize_t sVar21;\n  ssize_t sVar22;\n  ssize_t sVar23;\n  ssize_t sVar24;\n  size_t value_00;\n  Image *next_image;\n  size_t sVar25;\n  CompressionType compression;\n  ChannelType CVar26;\n  int iVar27;\n  short sVar28;\n  uint uVar29;\n  uint uVar30;\n  size_t sVar31;\n  undefined4 *puVar32;\n  uint uVar33;\n  int iVar34;\n  int iVar35;\n  char (*pacVar36) [5];\n  int in_GS_OFFSET;\n  bool bVar37;\n  byte bVar38;\n  MagickOffsetType offset;\n  MagickOffsetType MVar39;\n  MagickSizeType MVar40;\n  Image *local_1178;\n  Image *local_1174;\n  int local_116c;\n  undefined4 uStack_1168;\n  size_t local_115c;\n  int local_1158;\n  uint *local_1150;\n  uint local_1130;\n  MagickOffsetType size_offset;\n  byte local_1103;\n  double local_10f4;\n  Image *local_10ec;\n  undefined4 local_10e8;\n  ExceptionInfo *local_10e4;\n  undefined4 local_10e0;\n  char allowed [36] [5];\n  char key [5];\n  char layer_name [4096];\n  \n  bVar38 = 0;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  pIVar6 = GetNextImageInList(image);\n  if (pIVar6 == (Image *)0x0) {\n    pIVar6 = image;\n  }\n  offset = TellBlob(image);\n  if (psd_info->version == 1) {\n    WriteBlobLong(image,0);\n  }\n  else {\n    WriteBlobLongLong(image,0);\n  }\n  sVar31 = 0;\n  for (pIVar7 = pIVar6; pIVar7 != (Image *)0x0; pIVar7 = GetNextImageInList(pIVar7)) {\n    sVar31 = sVar31 + 1;\n  }\n  sVar25 = sVar31;\n  if (image->alpha_trait != UndefinedPixelTrait) {\n    sVar25 = -sVar31;\n  }\n  local_1130 = WriteBlobShort(image,(ushort)sVar25);\n  memory = (uint *)AcquireQuantumMemory(sVar31,8);\n  if (memory == (uint *)0x0) {\n    ThrowMagickException\n              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,\n               "MemoryAllocationFailed","`%s\'",0x6e,image->filename);\n    p_Var3 = (_Image *)image_info->adjoin;\n    pIVar6 = image;\n    while (pIVar7 = image, p_Var3 != (_Image *)0x0) {\n      p_Var3 = pIVar7->previous;\n      image = p_Var3;\n      pIVar6 = pIVar7;\n    }\n    CloseBlob(pIVar6);\n    local_1178 = (Image *)0x0;\n  }\n  else {\n    if (pIVar6 != (Image *)0x0) {\n      iVar27 = 0;\n      local_1178 = pIVar6;\n      do {\n        pcVar8 = GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = (Image *)0x0;\n        }\n        else {\n          local_1174 = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception);\n          sVar9 = strlen(pcVar8);\n          local_1103 = -(sVar9 == 9);\n        }\n        sVar10 = WriteBlobSignedLong(image,(local_1178->page).y);\n        sVar11 = WriteBlobSignedLong(image,(local_1178->page).x);\n        sVar12 = WriteBlobSignedLong(image,local_1178->rows + (local_1178->page).y);\n        sVar13 = WriteBlobSignedLong(image,local_1178->columns + (local_1178->page).x);\n        if ((local_1178->storage_class == PseudoClass) ||\n           (MVar14 = IsImageGray(local_1178), MVar14 != MagickFalse)) {\n          sVar5 = 2;\n          local_115c = 1;\n          sVar28 = 1;\n        }\n        else {\n          sVar5 = (local_1178->colorspace == CMYKColorspace) + 4;\n          local_115c = (local_1178->colorspace == CMYKColorspace) + 3;\n          sVar28 = (local_1178->colorspace == CMYKColorspace) + 3;\n        }\n        if (local_1178->alpha_trait == UndefinedPixelTrait) {\n          sVar5 = sVar28;\n        }\n        sVar15 = WriteBlobShort(image,(sVar5 + 1) - (ushort)(local_1174 == (Image *)0x0));\n        iVar27 = iVar27 + 1;\n        local_116c = sVar15 + local_1130 + sVar10 + sVar11 + sVar12 + sVar13;\n        MVar39 = TellBlob(image);\n        memory[iVar27 * 2 + -2] = (uint)MVar39;\n        memory[iVar27 * 2 + -1] = (uint)((ulonglong)MVar39 >> 0x20);\n        iVar35 = 0;\n        do {\n          while (sVar10 = WriteBlobShort(image,(ushort)iVar35), psd_info->version != 1) {\n            iVar35 = iVar35 + 1;\n            sVar11 = WriteBlobLongLong(image,0);\n            local_116c = local_116c + sVar10 + sVar11;\n            if (iVar35 == local_115c) {\n              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar35 = iVar35 + 1;\n          sVar11 = WriteBlobLong(image,0);\n          local_116c = local_116c + sVar10 + sVar11;\n        } while (local_115c != iVar35);\n        if (local_1178->alpha_trait != UndefinedPixelTrait) {\nLAB_0029cb4b:\n          sVar10 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\nLAB_0029ca7f:\n        if (local_1174 != (Image *)0x0) {\n          sVar10 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\n        pcVar8 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar8 = "MIB8";\n        }\n        sVar10 = WriteBlobString(image,pcVar8);\n        switch(local_1178->compose) {\n        case ColorBurnCompositeOp:\n          pcVar8 = "idiv";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar8 = "div ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar8 = "colr";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar8 = "dark";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar8 = "diff";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar8 = "diss";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar8 = "smud";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar8 = "hLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar8 = "hMix";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar8 = "hue ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar8 = "lite";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar8 = "lbrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar8 = "lddg";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar8 = "lLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar8 = "lum ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar8 = "mul ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar8 = "over";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar8 = "pLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar8 = "sat ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar8 = "scrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar8 = "sLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar8 = "vLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLv";\n          }\n        }\n        sVar11 = WriteBlobString(image,pcVar8);\n        iVar35 = local_116c + sVar10 + sVar11;\n        pcVar8 = GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          sVar10 = WriteBlobByte(image,0xff);\n          iVar35 = iVar35 + sVar10;\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          dVar4 = (double)lVar16;\n          value = '\0';\n          if (0.0 < dVar4) {\n            value = 0xff;\n            if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          sVar10 = WriteBlobByte(image,value);\n          iVar35 = iVar35 + sVar10;\n          if (local_1178->debug != MagickFalse) {\n            uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);\n            LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);\n          }\n          if ((float)lVar16 != DAT_002df8a8) {\n            if (local_1178->alpha_trait != BlendPixelTrait) {\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }\n            CVar17 = GetImagePixelCacheType(local_1178);\n            if (((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }\n            else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = exception;\n            local_10ec = local_1178;\n            local_10f4 = dVar4;\n            GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);\n          }\n        }\n        sVar10 = WriteBlobByte(image,'\0');\n        sVar11 = WriteBlobByte(image,(local_1178->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar12 = WriteBlobByte(image,'\0');\n        iVar35 = sVar12 + iVar35 + sVar10 + sVar11;\n        puVar32 = &DAT_0034d420;\n        pacVar36 = allowed;\n        for (iVar18 = 0x2d; iVar18 != 0; iVar18 = iVar18 + -1) {\n          *(undefined4 *)*pacVar36 = *puVar32;\n          puVar32 = puVar32 + (uint)bVar38 * -2 + 1;\n          pacVar36 = (char (*) [5])((int)pacVar36 + (uint)bVar38 * -8 + 4);\n        }\n        pSVar19 = GetImageProfile(local_1178,"psd:additional-info");\n        if (pSVar19 == (StringInfo *)0x0) {\nLAB_0029ddc4:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar8 = GetImageOption(image_info,"psd:additional-info");\n          iVar18 = LocaleCompare(pcVar8,"all");\n          string_info = pSVar19;\n          if (iVar18 != 0) {\n            iVar18 = LocaleCompare(pcVar8,"selective");\n            if (iVar18 == 0) {\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar8 = GetImageProperty(local_1178,"label",exception);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = layer_name;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",SUB84((double)iVar27,0),\n                             (int)((ulonglong)(double)iVar27 >> 0x20));\n        }\n        sVar9 = strlen(pcVar8);\n        uVar33 = sVar9 + 1;\n        if ((uVar33 & 3) != 0) {\n          uVar33 = (uVar33 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar31 = GetStringInfoLength(string_info);\n          uVar33 = uVar33 + sVar31;\n        }\n        if (local_1174 == (Image *)0x0) {\n          sVar10 = WriteBlobLong(image,uVar33 + 8);\n          sVar11 = WriteBlobLong(image,0);\n          iVar35 = sVar10 + sVar11 + iVar35;\n        }\n        else {\n          sVar10 = WriteBlobLong(image,uVar33 + 0x1c);\n          if ((local_1174->compose != NoCompositeOp) &&\n             (local_1178->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_1174->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_1174->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar11 = WriteBlobLong(image,0x14);\n          sVar12 = WriteBlobSignedLong(image,(local_1174->page).y);\n          sVar13 = WriteBlobSignedLong(image,(local_1174->page).x);\n          sVar15 = WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows);\n          sVar21 = WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns);\n          sVar22 = WriteBlobByte(image,local_1103);\n          sVar23 = WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02');\n          sVar24 = WriteBlobMSBShort(image,0);\n          iVar35 = iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +\n                   sVar24;\n        }\n        sVar10 = WriteBlobLong(image,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            sVar12 = WriteBlobByte(image,'\0');\n            iVar18 = 3;\n          }\n          else {\n            sVar12 = WriteBlobByte(image,(uchar)sVar9);\n            sVar11 = WriteBlob(image,sVar9,pcVar8);\n            sVar12 = sVar12 + sVar11;\n            uVar33 = sVar9 + 1 & 3;\n            if (uVar33 == 0) goto LAB_0029d1b9;\n            iVar18 = 4 - uVar33;\n          }\n          iVar34 = 0;\n          do {\n            iVar34 = iVar34 + 1;\n            sVar11 = WriteBlobByte(image,'\0');\n            sVar12 = sVar12 + sVar11;\n          } while (iVar34 != iVar18);\n        }\n        else {\n          sVar12 = WriteBlobByte(image,0xff);\n          sVar11 = WriteBlob(image,0xff,pcVar8);\n          sVar12 = sVar12 + sVar11;\n        }\nLAB_0029d1b9:\n        local_1130 = sVar12 + sVar10 + iVar35;\n        if (string_info != (StringInfo *)0x0) {\n          puVar20 = GetStringInfoDatum(string_info);\n          sVar31 = GetStringInfoLength(string_info);\n          sVar10 = WriteBlob(image,sVar31,puVar20);\n          local_1130 = local_1130 + sVar10;\n        }\n        local_1178 = GetNextImageInList(local_1178);\n        pIVar7 = pIVar6;\n        local_1150 = memory;\n      } while (local_1178 != (Image *)0x0);\n      do {\n        local_1178 = (Image *)0x0;\n        uVar33 = *local_1150;\n        uVar30 = local_1150[1];\n        compression = image_info->compression;\n        if (image_info->compression == UndefinedCompression) {\n          compression = pIVar7->compression;\n        }\n        if ((compression == RLECompression) &&\n           (local_1178 = (Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1),\n           next_image = pIVar7, local_1178 == (Image *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,\n                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename);\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar29 = uVar33 + 2;\n        iVar27 = uVar30 + (0xfffffffd < uVar33);\n        if ((pIVar7->storage_class == PseudoClass) &&\n           (MVar14 = IsImageGray(pIVar7), MVar14 == MagickFalse)) {\n          sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178\n                                   ,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n          if (psd_info->version == 1) {\n            sVar10 = WriteBlobLong(image,sVar31);\n          }\n          else {\n            sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n          }\n          uVar33 = sVar10 + 2;\n          SeekBlob(image,MVar39,0);\n          local_115c = uVar33 + uVar29;\n          local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n        }\n        else {\n          MVar14 = IsImageGray(pIVar7);\n          if (MVar14 == MagickFalse) {\n            if (pIVar7->colorspace == CMYKColorspace) {\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar30 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar33 = uVar30 + uVar29;\n            iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);\n            value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar33),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,value_00);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }\n            uVar29 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar30 = uVar29 + uVar33;\n            iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar30),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar30;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);\n            sVar31 = sVar25 + value_00 + sVar31;\n            if (pIVar7->colorspace == CMYKColorspace) {\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }\n          }\n          else {\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar29;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n          }\n          if (pIVar7->alpha_trait != UndefinedPixelTrait) {\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            bVar37 = CARRY4(local_115c,uVar33);\n            local_115c = local_115c + uVar33;\n            local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n            sVar31 = sVar31 + sVar25;\n          }\n        }\n        local_1178 = (Image *)RelinquishMagickMemory(local_1178);\n        if (pIVar7->colorspace == CMYKColorspace) {\n          CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n          NegateImage(pIVar7,MagickFalse,exception);\n          SetImageChannelMask(pIVar7,CVar26);\n        }\n        pcVar8 = GetImageArtifact(pIVar7,"psd:opacity-mask");\n        if ((pcVar8 != (char *)0x0) &&\n           (next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception),\n           next_image != (Image *)0x0)) {\n          if ((compression == RLECompression) &&\n             (local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0)) goto LAB_0029dbfc;\n          sVar25 = WritePSDChannel(psd_info,image_info,image,next_image,RedQuantum,\n                                   (uchar *)local_1178,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n          if (psd_info->version == 1) {\n            WriteBlobLong(image,sVar25);\n          }\n          else {\n            WriteBlobLongLong(image,(ulonglong)sVar25);\n          }\n          SeekBlob(image,MVar39,0);\n          sVar31 = sVar31 + sVar25;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (sVar31 == 0) {\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + sVar31;\n        pIVar7 = GetNextImageInList(pIVar7);\n        local_1150 = local_1150 + 2;\n      } while (pIVar7 != (Image *)0x0);\n    }\n    local_1178 = (Image *)0x1;\nLAB_0029dc36:\n    if (layers_size != (size_t *)0x0) {\n      *layers_size = local_1130;\n    }\n    uVar33 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar33 = local_1130;\n    }\n    MVar39 = TellBlob(image);\n    SeekBlob(image,offset,0);\n    if (psd_info->version == 1) {\n      WriteBlobLong(image,uVar33);\n    }\n    else {\n      WriteBlobLongLong(image,(ulonglong)uVar33);\n    }\n    SeekBlob(image,MVar39,0);\n    RelinquishMagickMemory(memory);\n    for (; pIVar6 != (Image *)0x0; pIVar6 = GetNextImageInList(pIVar6)) {\n      while (pcVar8 = GetImageArtifact(pIVar6,"psd:opacity-mask"), pcVar8 != (char *)0x0) {\n        DeleteImageRegistry(pcVar8);\n        pIVar6 = GetNextImageInList(pIVar6);\n        if (pIVar6 == (Image *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }\nLAB_0029dd18:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return (MagickBooleanType)local_1178;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "WritePSDLayersInternal\n          (Image *image,ImageInfo *image_info,PSDInfo *psd_info,size_t *layers_size,\n          ExceptionInfo *exception)" identifier (parameter_list "(Image *image,ImageInfo *image_info,PSDInfo *psd_info,size_t *layers_size,\n          ExceptionInfo *exception)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) , (parameter_declaration "ImageInfo *image_info" type_identifier (pointer_declarator "*image_info" * identifier)) , (parameter_declaration "PSDInfo *psd_info" type_identifier (pointer_declarator "*psd_info" * identifier)) , (parameter_declaration "size_t *layers_size" primitive_type (pointer_declarator "*layers_size" * identifier)) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) ))) (compound_statement "{\n  ssize_t *psVar1;\n  int iVar2;\n  _Image *p_Var3;\n  double dVar4;\n  uchar value;\n  short sVar5;\n  Image *pIVar6;\n  Image *pIVar7;\n  uint *memory;\n  char *pcVar8;\n  size_t sVar9;\n  ssize_t sVar10;\n  ssize_t sVar11;\n  ssize_t sVar12;\n  ssize_t sVar13;\n  MagickBooleanType MVar14;\n  ssize_t sVar15;\n  long lVar16;\n  CacheType CVar17;\n  int iVar18;\n  StringInfo *pSVar19;\n  uchar *puVar20;\n  StringInfo *string_info;\n  ssize_t sVar21;\n  ssize_t sVar22;\n  ssize_t sVar23;\n  ssize_t sVar24;\n  size_t value_00;\n  Image *next_image;\n  size_t sVar25;\n  CompressionType compression;\n  ChannelType CVar26;\n  int iVar27;\n  short sVar28;\n  uint uVar29;\n  uint uVar30;\n  size_t sVar31;\n  undefined4 *puVar32;\n  uint uVar33;\n  int iVar34;\n  int iVar35;\n  char (*pacVar36) [5];\n  int in_GS_OFFSET;\n  bool bVar37;\n  byte bVar38;\n  MagickOffsetType offset;\n  MagickOffsetType MVar39;\n  MagickSizeType MVar40;\n  Image *local_1178;\n  Image *local_1174;\n  int local_116c;\n  undefined4 uStack_1168;\n  size_t local_115c;\n  int local_1158;\n  uint *local_1150;\n  uint local_1130;\n  MagickOffsetType size_offset;\n  byte local_1103;\n  double local_10f4;\n  Image *local_10ec;\n  undefined4 local_10e8;\n  ExceptionInfo *local_10e4;\n  undefined4 local_10e0;\n  char allowed [36] [5];\n  char key [5];\n  char layer_name [4096];\n  \n  bVar38 = 0;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  pIVar6 = GetNextImageInList(image);\n  if (pIVar6 == (Image *)0x0) {\n    pIVar6 = image;\n  }\n  offset = TellBlob(image);\n  if (psd_info->version == 1) {\n    WriteBlobLong(image,0);\n  }\n  else {\n    WriteBlobLongLong(image,0);\n  }\n  sVar31 = 0;\n  for (pIVar7 = pIVar6; pIVar7 != (Image *)0x0; pIVar7 = GetNextImageInList(pIVar7)) {\n    sVar31 = sVar31 + 1;\n  }\n  sVar25 = sVar31;\n  if (image->alpha_trait != UndefinedPixelTrait) {\n    sVar25 = -sVar31;\n  }\n  local_1130 = WriteBlobShort(image,(ushort)sVar25);\n  memory = (uint *)AcquireQuantumMemory(sVar31,8);\n  if (memory == (uint *)0x0) {\n    ThrowMagickException\n              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,\n               "MemoryAllocationFailed","`%s\'",0x6e,image->filename);\n    p_Var3 = (_Image *)image_info->adjoin;\n    pIVar6 = image;\n    while (pIVar7 = image, p_Var3 != (_Image *)0x0) {\n      p_Var3 = pIVar7->previous;\n      image = p_Var3;\n      pIVar6 = pIVar7;\n    }\n    CloseBlob(pIVar6);\n    local_1178 = (Image *)0x0;\n  }\n  else {\n    if (pIVar6 != (Image *)0x0) {\n      iVar27 = 0;\n      local_1178 = pIVar6;\n      do {\n        pcVar8 = GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = (Image *)0x0;\n        }\n        else {\n          local_1174 = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception);\n          sVar9 = strlen(pcVar8);\n          local_1103 = -(sVar9 == 9);\n        }\n        sVar10 = WriteBlobSignedLong(image,(local_1178->page).y);\n        sVar11 = WriteBlobSignedLong(image,(local_1178->page).x);\n        sVar12 = WriteBlobSignedLong(image,local_1178->rows + (local_1178->page).y);\n        sVar13 = WriteBlobSignedLong(image,local_1178->columns + (local_1178->page).x);\n        if ((local_1178->storage_class == PseudoClass) ||\n           (MVar14 = IsImageGray(local_1178), MVar14 != MagickFalse)) {\n          sVar5 = 2;\n          local_115c = 1;\n          sVar28 = 1;\n        }\n        else {\n          sVar5 = (local_1178->colorspace == CMYKColorspace) + 4;\n          local_115c = (local_1178->colorspace == CMYKColorspace) + 3;\n          sVar28 = (local_1178->colorspace == CMYKColorspace) + 3;\n        }\n        if (local_1178->alpha_trait == UndefinedPixelTrait) {\n          sVar5 = sVar28;\n        }\n        sVar15 = WriteBlobShort(image,(sVar5 + 1) - (ushort)(local_1174 == (Image *)0x0));\n        iVar27 = iVar27 + 1;\n        local_116c = sVar15 + local_1130 + sVar10 + sVar11 + sVar12 + sVar13;\n        MVar39 = TellBlob(image);\n        memory[iVar27 * 2 + -2] = (uint)MVar39;\n        memory[iVar27 * 2 + -1] = (uint)((ulonglong)MVar39 >> 0x20);\n        iVar35 = 0;\n        do {\n          while (sVar10 = WriteBlobShort(image,(ushort)iVar35), psd_info->version != 1) {\n            iVar35 = iVar35 + 1;\n            sVar11 = WriteBlobLongLong(image,0);\n            local_116c = local_116c + sVar10 + sVar11;\n            if (iVar35 == local_115c) {\n              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar35 = iVar35 + 1;\n          sVar11 = WriteBlobLong(image,0);\n          local_116c = local_116c + sVar10 + sVar11;\n        } while (local_115c != iVar35);\n        if (local_1178->alpha_trait != UndefinedPixelTrait) {\nLAB_0029cb4b:\n          sVar10 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\nLAB_0029ca7f:\n        if (local_1174 != (Image *)0x0) {\n          sVar10 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\n        pcVar8 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar8 = "MIB8";\n        }\n        sVar10 = WriteBlobString(image,pcVar8);\n        switch(local_1178->compose) {\n        case ColorBurnCompositeOp:\n          pcVar8 = "idiv";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar8 = "div ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar8 = "colr";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar8 = "dark";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar8 = "diff";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar8 = "diss";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar8 = "smud";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar8 = "hLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar8 = "hMix";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar8 = "hue ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar8 = "lite";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar8 = "lbrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar8 = "lddg";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar8 = "lLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar8 = "lum ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar8 = "mul ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar8 = "over";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar8 = "pLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar8 = "sat ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar8 = "scrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar8 = "sLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar8 = "vLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLv";\n          }\n        }\n        sVar11 = WriteBlobString(image,pcVar8);\n        iVar35 = local_116c + sVar10 + sVar11;\n        pcVar8 = GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          sVar10 = WriteBlobByte(image,0xff);\n          iVar35 = iVar35 + sVar10;\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          dVar4 = (double)lVar16;\n          value = '\0';\n          if (0.0 < dVar4) {\n            value = 0xff;\n            if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          sVar10 = WriteBlobByte(image,value);\n          iVar35 = iVar35 + sVar10;\n          if (local_1178->debug != MagickFalse) {\n            uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);\n            LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);\n          }\n          if ((float)lVar16 != DAT_002df8a8) {\n            if (local_1178->alpha_trait != BlendPixelTrait) {\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }\n            CVar17 = GetImagePixelCacheType(local_1178);\n            if (((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }\n            else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = exception;\n            local_10ec = local_1178;\n            local_10f4 = dVar4;\n            GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);\n          }\n        }\n        sVar10 = WriteBlobByte(image,'\0');\n        sVar11 = WriteBlobByte(image,(local_1178->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar12 = WriteBlobByte(image,'\0');\n        iVar35 = sVar12 + iVar35 + sVar10 + sVar11;\n        puVar32 = &DAT_0034d420;\n        pacVar36 = allowed;\n        for (iVar18 = 0x2d; iVar18 != 0; iVar18 = iVar18 + -1) {\n          *(undefined4 *)*pacVar36 = *puVar32;\n          puVar32 = puVar32 + (uint)bVar38 * -2 + 1;\n          pacVar36 = (char (*) [5])((int)pacVar36 + (uint)bVar38 * -8 + 4);\n        }\n        pSVar19 = GetImageProfile(local_1178,"psd:additional-info");\n        if (pSVar19 == (StringInfo *)0x0) {\nLAB_0029ddc4:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar8 = GetImageOption(image_info,"psd:additional-info");\n          iVar18 = LocaleCompare(pcVar8,"all");\n          string_info = pSVar19;\n          if (iVar18 != 0) {\n            iVar18 = LocaleCompare(pcVar8,"selective");\n            if (iVar18 == 0) {\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar8 = GetImageProperty(local_1178,"label",exception);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = layer_name;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",SUB84((double)iVar27,0),\n                             (int)((ulonglong)(double)iVar27 >> 0x20));\n        }\n        sVar9 = strlen(pcVar8);\n        uVar33 = sVar9 + 1;\n        if ((uVar33 & 3) != 0) {\n          uVar33 = (uVar33 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar31 = GetStringInfoLength(string_info);\n          uVar33 = uVar33 + sVar31;\n        }\n        if (local_1174 == (Image *)0x0) {\n          sVar10 = WriteBlobLong(image,uVar33 + 8);\n          sVar11 = WriteBlobLong(image,0);\n          iVar35 = sVar10 + sVar11 + iVar35;\n        }\n        else {\n          sVar10 = WriteBlobLong(image,uVar33 + 0x1c);\n          if ((local_1174->compose != NoCompositeOp) &&\n             (local_1178->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_1174->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_1174->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar11 = WriteBlobLong(image,0x14);\n          sVar12 = WriteBlobSignedLong(image,(local_1174->page).y);\n          sVar13 = WriteBlobSignedLong(image,(local_1174->page).x);\n          sVar15 = WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows);\n          sVar21 = WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns);\n          sVar22 = WriteBlobByte(image,local_1103);\n          sVar23 = WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02');\n          sVar24 = WriteBlobMSBShort(image,0);\n          iVar35 = iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +\n                   sVar24;\n        }\n        sVar10 = WriteBlobLong(image,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            sVar12 = WriteBlobByte(image,'\0');\n            iVar18 = 3;\n          }\n          else {\n            sVar12 = WriteBlobByte(image,(uchar)sVar9);\n            sVar11 = WriteBlob(image,sVar9,pcVar8);\n            sVar12 = sVar12 + sVar11;\n            uVar33 = sVar9 + 1 & 3;\n            if (uVar33 == 0) goto LAB_0029d1b9;\n            iVar18 = 4 - uVar33;\n          }\n          iVar34 = 0;\n          do {\n            iVar34 = iVar34 + 1;\n            sVar11 = WriteBlobByte(image,'\0');\n            sVar12 = sVar12 + sVar11;\n          } while (iVar34 != iVar18);\n        }\n        else {\n          sVar12 = WriteBlobByte(image,0xff);\n          sVar11 = WriteBlob(image,0xff,pcVar8);\n          sVar12 = sVar12 + sVar11;\n        }\nLAB_0029d1b9:\n        local_1130 = sVar12 + sVar10 + iVar35;\n        if (string_info != (StringInfo *)0x0) {\n          puVar20 = GetStringInfoDatum(string_info);\n          sVar31 = GetStringInfoLength(string_info);\n          sVar10 = WriteBlob(image,sVar31,puVar20);\n          local_1130 = local_1130 + sVar10;\n        }\n        local_1178 = GetNextImageInList(local_1178);\n        pIVar7 = pIVar6;\n        local_1150 = memory;\n      } while (local_1178 != (Image *)0x0);\n      do {\n        local_1178 = (Image *)0x0;\n        uVar33 = *local_1150;\n        uVar30 = local_1150[1];\n        compression = image_info->compression;\n        if (image_info->compression == UndefinedCompression) {\n          compression = pIVar7->compression;\n        }\n        if ((compression == RLECompression) &&\n           (local_1178 = (Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1),\n           next_image = pIVar7, local_1178 == (Image *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,\n                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename);\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar29 = uVar33 + 2;\n        iVar27 = uVar30 + (0xfffffffd < uVar33);\n        if ((pIVar7->storage_class == PseudoClass) &&\n           (MVar14 = IsImageGray(pIVar7), MVar14 == MagickFalse)) {\n          sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178\n                                   ,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n          if (psd_info->version == 1) {\n            sVar10 = WriteBlobLong(image,sVar31);\n          }\n          else {\n            sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n          }\n          uVar33 = sVar10 + 2;\n          SeekBlob(image,MVar39,0);\n          local_115c = uVar33 + uVar29;\n          local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n        }\n        else {\n          MVar14 = IsImageGray(pIVar7);\n          if (MVar14 == MagickFalse) {\n            if (pIVar7->colorspace == CMYKColorspace) {\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar30 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar33 = uVar30 + uVar29;\n            iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);\n            value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar33),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,value_00);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }\n            uVar29 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar30 = uVar29 + uVar33;\n            iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar30),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar30;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);\n            sVar31 = sVar25 + value_00 + sVar31;\n            if (pIVar7->colorspace == CMYKColorspace) {\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }\n          }\n          else {\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar29;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n          }\n          if (pIVar7->alpha_trait != UndefinedPixelTrait) {\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            bVar37 = CARRY4(local_115c,uVar33);\n            local_115c = local_115c + uVar33;\n            local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n            sVar31 = sVar31 + sVar25;\n          }\n        }\n        local_1178 = (Image *)RelinquishMagickMemory(local_1178);\n        if (pIVar7->colorspace == CMYKColorspace) {\n          CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n          NegateImage(pIVar7,MagickFalse,exception);\n          SetImageChannelMask(pIVar7,CVar26);\n        }\n        pcVar8 = GetImageArtifact(pIVar7,"psd:opacity-mask");\n        if ((pcVar8 != (char *)0x0) &&\n           (next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception),\n           next_image != (Image *)0x0)) {\n          if ((compression == RLECompression) &&\n             (local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0)) goto LAB_0029dbfc;\n          sVar25 = WritePSDChannel(psd_info,image_info,image,next_image,RedQuantum,\n                                   (uchar *)local_1178,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n          if (psd_info->version == 1) {\n            WriteBlobLong(image,sVar25);\n          }\n          else {\n            WriteBlobLongLong(image,(ulonglong)sVar25);\n          }\n          SeekBlob(image,MVar39,0);\n          sVar31 = sVar31 + sVar25;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (sVar31 == 0) {\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + sVar31;\n        pIVar7 = GetNextImageInList(pIVar7);\n        local_1150 = local_1150 + 2;\n      } while (pIVar7 != (Image *)0x0);\n    }\n    local_1178 = (Image *)0x1;\nLAB_0029dc36:\n    if (layers_size != (size_t *)0x0) {\n      *layers_size = local_1130;\n    }\n    uVar33 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar33 = local_1130;\n    }\n    MVar39 = TellBlob(image);\n    SeekBlob(image,offset,0);\n    if (psd_info->version == 1) {\n      WriteBlobLong(image,uVar33);\n    }\n    else {\n      WriteBlobLongLong(image,(ulonglong)uVar33);\n    }\n    SeekBlob(image,MVar39,0);\n    RelinquishMagickMemory(memory);\n    for (; pIVar6 != (Image *)0x0; pIVar6 = GetNextImageInList(pIVar6)) {\n      while (pcVar8 = GetImageArtifact(pIVar6,"psd:opacity-mask"), pcVar8 != (char *)0x0) {\n        DeleteImageRegistry(pcVar8);\n        pIVar6 = GetNextImageInList(pIVar6);\n        if (pIVar6 == (Image *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }\nLAB_0029dd18:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return (MagickBooleanType)local_1178;\n}" { (declaration "ssize_t *psVar1;" primitive_type (pointer_declarator "*psVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "_Image *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "double dVar4;" primitive_type identifier ;) (declaration "uchar value;" type_identifier identifier ;) (declaration "short sVar5;" (sized_type_specifier "short" short) identifier ;) (declaration "Image *pIVar6;" type_identifier (pointer_declarator "*pIVar6" * identifier) ;) (declaration "Image *pIVar7;" type_identifier (pointer_declarator "*pIVar7" * identifier) ;) (declaration "uint *memory;" type_identifier (pointer_declarator "*memory" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "size_t sVar9;" primitive_type identifier ;) (declaration "ssize_t sVar10;" primitive_type identifier ;) (declaration "ssize_t sVar11;" primitive_type identifier ;) (declaration "ssize_t sVar12;" primitive_type identifier ;) (declaration "ssize_t sVar13;" primitive_type identifier ;) (declaration "MagickBooleanType MVar14;" type_identifier identifier ;) (declaration "ssize_t sVar15;" primitive_type identifier ;) (declaration "long lVar16;" (sized_type_specifier "long" long) identifier ;) (declaration "CacheType CVar17;" type_identifier identifier ;) (declaration "int iVar18;" primitive_type identifier ;) (declaration "StringInfo *pSVar19;" type_identifier (pointer_declarator "*pSVar19" * identifier) ;) (declaration "uchar *puVar20;" type_identifier (pointer_declarator "*puVar20" * identifier) ;) (declaration "StringInfo *string_info;" type_identifier (pointer_declarator "*string_info" * identifier) ;) (declaration "ssize_t sVar21;" primitive_type identifier ;) (declaration "ssize_t sVar22;" primitive_type identifier ;) (declaration "ssize_t sVar23;" primitive_type identifier ;) (declaration "ssize_t sVar24;" primitive_type identifier ;) (declaration "size_t value_00;" primitive_type identifier ;) (declaration "Image *next_image;" type_identifier (pointer_declarator "*next_image" * identifier) ;) (declaration "size_t sVar25;" primitive_type identifier ;) (declaration "CompressionType compression;" type_identifier identifier ;) (declaration "ChannelType CVar26;" type_identifier identifier ;) (declaration "int iVar27;" primitive_type identifier ;) (declaration "short sVar28;" (sized_type_specifier "short" short) identifier ;) (declaration "uint uVar29;" type_identifier identifier ;) (declaration "uint uVar30;" type_identifier identifier ;) (declaration "size_t sVar31;" primitive_type identifier ;) (declaration "undefined4 *puVar32;" type_identifier (pointer_declarator "*puVar32" * identifier) ;) (declaration "uint uVar33;" type_identifier identifier ;) (declaration "int iVar34;" primitive_type identifier ;) (declaration "int iVar35;" primitive_type identifier ;) (declaration "char (*pacVar36) [5];" primitive_type (array_declarator "(*pacVar36) [5]" (parenthesized_declarator "(*pacVar36)" ( (pointer_declarator "*pacVar36" * identifier) )) [ number_literal ]) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar37;" primitive_type identifier ;) (declaration "byte bVar38;" type_identifier identifier ;) (declaration "MagickOffsetType offset;" type_identifier identifier ;) (declaration "MagickOffsetType MVar39;" type_identifier identifier ;) (declaration "MagickSizeType MVar40;" type_identifier identifier ;) (declaration "Image *local_1178;" type_identifier (pointer_declarator "*local_1178" * identifier) ;) (declaration "Image *local_1174;" type_identifier (pointer_declarator "*local_1174" * identifier) ;) (declaration "int local_116c;" primitive_type identifier ;) (declaration "undefined4 uStack_1168;" type_identifier identifier ;) (declaration "size_t local_115c;" primitive_type identifier ;) (declaration "int local_1158;" primitive_type identifier ;) (declaration "uint *local_1150;" type_identifier (pointer_declarator "*local_1150" * identifier) ;) (declaration "uint local_1130;" type_identifier identifier ;) (declaration "MagickOffsetType size_offset;" type_identifier identifier ;) (declaration "byte local_1103;" type_identifier identifier ;) (declaration "double local_10f4;" primitive_type identifier ;) (declaration "Image *local_10ec;" type_identifier (pointer_declarator "*local_10ec" * identifier) ;) (declaration "undefined4 local_10e8;" type_identifier identifier ;) (declaration "ExceptionInfo *local_10e4;" type_identifier (pointer_declarator "*local_10e4" * identifier) ;) (declaration "undefined4 local_10e0;" type_identifier identifier ;) (declaration "char allowed [36] [5];" primitive_type (array_declarator "allowed [36] [5]" (array_declarator "allowed [36]" identifier [ number_literal ]) [ number_literal ]) ;) (declaration "char key [5];" primitive_type (array_declarator "key [5]" identifier [ number_literal ]) ;) (declaration "char layer_name [4096];" primitive_type (array_declarator "layer_name [4096]" identifier [ number_literal ]) ;) (expression_statement "bVar38 = 0;" (assignment_expression "bVar38 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pIVar6 = GetNextImageInList(image);" (assignment_expression "pIVar6 = GetNextImageInList(image)" identifier = (call_expression "GetNextImageInList(image)" identifier (argument_list "(image)" ( identifier )))) ;) (if_statement "if (pIVar6 == (Image *)0x0) {\n    pIVar6 = image;\n  }" if (parenthesized_expression "(pIVar6 == (Image *)0x0)" ( (binary_expression "pIVar6 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pIVar6 = image;\n  }" { (expression_statement "pIVar6 = image;" (assignment_expression "pIVar6 = image" identifier = identifier) ;) })) (expression_statement "offset = TellBlob(image);" (assignment_expression "offset = TellBlob(image)" identifier = (call_expression "TellBlob(image)" identifier (argument_list "(image)" ( identifier )))) ;) (if_statement "if (psd_info->version == 1) {\n    WriteBlobLong(image,0);\n  }\n  else {\n    WriteBlobLongLong(image,0);\n  }" if (parenthesized_expression "(psd_info->version == 1)" ( (binary_expression "psd_info->version == 1" (field_expression "psd_info->version" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    WriteBlobLong(image,0);\n  }" { (expression_statement "WriteBlobLong(image,0);" (call_expression "WriteBlobLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n    WriteBlobLongLong(image,0);\n  }" else (compound_statement "{\n    WriteBlobLongLong(image,0);\n  }" { (expression_statement "WriteBlobLongLong(image,0);" (call_expression "WriteBlobLongLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal ))) ;) }))) (expression_statement "sVar31 = 0;" (assignment_expression "sVar31 = 0" identifier = number_literal) ;) (for_statement "for (pIVar7 = pIVar6; pIVar7 != (Image *)0x0; pIVar7 = GetNextImageInList(pIVar7)) {\n    sVar31 = sVar31 + 1;\n  }" for ( (assignment_expression "pIVar7 = pIVar6" identifier = identifier) ; (binary_expression "pIVar7 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "pIVar7 = GetNextImageInList(pIVar7)" identifier = (call_expression "GetNextImageInList(pIVar7)" identifier (argument_list "(pIVar7)" ( identifier )))) ) (compound_statement "{\n    sVar31 = sVar31 + 1;\n  }" { (expression_statement "sVar31 = sVar31 + 1;" (assignment_expression "sVar31 = sVar31 + 1" identifier = (binary_expression "sVar31 + 1" identifier + number_literal)) ;) })) (expression_statement "sVar25 = sVar31;" (assignment_expression "sVar25 = sVar31" identifier = identifier) ;) (if_statement "if (image->alpha_trait != UndefinedPixelTrait) {\n    sVar25 = -sVar31;\n  }" if (parenthesized_expression "(image->alpha_trait != UndefinedPixelTrait)" ( (binary_expression "image->alpha_trait != UndefinedPixelTrait" (field_expression "image->alpha_trait" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    sVar25 = -sVar31;\n  }" { (expression_statement "sVar25 = -sVar31;" (assignment_expression "sVar25 = -sVar31" identifier = (unary_expression "-sVar31" - identifier)) ;) })) (expression_statement "local_1130 = WriteBlobShort(image,(ushort)sVar25);" (assignment_expression "local_1130 = WriteBlobShort(image,(ushort)sVar25)" identifier = (call_expression "WriteBlobShort(image,(ushort)sVar25)" identifier (argument_list "(image,(ushort)sVar25)" ( identifier , (cast_expression "(ushort)sVar25" ( (type_descriptor "ushort" type_identifier) ) identifier) )))) ;) (expression_statement "memory = (uint *)AcquireQuantumMemory(sVar31,8);" (assignment_expression "memory = (uint *)AcquireQuantumMemory(sVar31,8)" identifier = (cast_expression "(uint *)AcquireQuantumMemory(sVar31,8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory(sVar31,8)" identifier (argument_list "(sVar31,8)" ( identifier , number_literal ))))) ;) (if_statement "if (memory == (uint *)0x0) {\n    ThrowMagickException\n              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,\n               "MemoryAllocationFailed","`%s\'",0x6e,image->filename);\n    p_Var3 = (_Image *)image_info->adjoin;\n    pIVar6 = image;\n    while (pIVar7 = image, p_Var3 != (_Image *)0x0) {\n      p_Var3 = pIVar7->previous;\n      image = p_Var3;\n      pIVar6 = pIVar7;\n    }\n    CloseBlob(pIVar6);\n    local_1178 = (Image *)0x0;\n  }\n  else {\n    if (pIVar6 != (Image *)0x0) {\n      iVar27 = 0;\n      local_1178 = pIVar6;\n      do {\n        pcVar8 = GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = (Image *)0x0;\n        }\n        else {\n          local_1174 = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception);\n          sVar9 = strlen(pcVar8);\n          local_1103 = -(sVar9 == 9);\n        }\n        sVar10 = WriteBlobSignedLong(image,(local_1178->page).y);\n        sVar11 = WriteBlobSignedLong(image,(local_1178->page).x);\n        sVar12 = WriteBlobSignedLong(image,local_1178->rows + (local_1178->page).y);\n        sVar13 = WriteBlobSignedLong(image,local_1178->columns + (local_1178->page).x);\n        if ((local_1178->storage_class == PseudoClass) ||\n           (MVar14 = IsImageGray(local_1178), MVar14 != MagickFalse)) {\n          sVar5 = 2;\n          local_115c = 1;\n          sVar28 = 1;\n        }\n        else {\n          sVar5 = (local_1178->colorspace == CMYKColorspace) + 4;\n          local_115c = (local_1178->colorspace == CMYKColorspace) + 3;\n          sVar28 = (local_1178->colorspace == CMYKColorspace) + 3;\n        }\n        if (local_1178->alpha_trait == UndefinedPixelTrait) {\n          sVar5 = sVar28;\n        }\n        sVar15 = WriteBlobShort(image,(sVar5 + 1) - (ushort)(local_1174 == (Image *)0x0));\n        iVar27 = iVar27 + 1;\n        local_116c = sVar15 + local_1130 + sVar10 + sVar11 + sVar12 + sVar13;\n        MVar39 = TellBlob(image);\n        memory[iVar27 * 2 + -2] = (uint)MVar39;\n        memory[iVar27 * 2 + -1] = (uint)((ulonglong)MVar39 >> 0x20);\n        iVar35 = 0;\n        do {\n          while (sVar10 = WriteBlobShort(image,(ushort)iVar35), psd_info->version != 1) {\n            iVar35 = iVar35 + 1;\n            sVar11 = WriteBlobLongLong(image,0);\n            local_116c = local_116c + sVar10 + sVar11;\n            if (iVar35 == local_115c) {\n              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar35 = iVar35 + 1;\n          sVar11 = WriteBlobLong(image,0);\n          local_116c = local_116c + sVar10 + sVar11;\n        } while (local_115c != iVar35);\n        if (local_1178->alpha_trait != UndefinedPixelTrait) {\nLAB_0029cb4b:\n          sVar10 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\nLAB_0029ca7f:\n        if (local_1174 != (Image *)0x0) {\n          sVar10 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\n        pcVar8 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar8 = "MIB8";\n        }\n        sVar10 = WriteBlobString(image,pcVar8);\n        switch(local_1178->compose) {\n        case ColorBurnCompositeOp:\n          pcVar8 = "idiv";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar8 = "div ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar8 = "colr";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar8 = "dark";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar8 = "diff";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar8 = "diss";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar8 = "smud";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar8 = "hLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar8 = "hMix";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar8 = "hue ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar8 = "lite";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar8 = "lbrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar8 = "lddg";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar8 = "lLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar8 = "lum ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar8 = "mul ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar8 = "over";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar8 = "pLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar8 = "sat ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar8 = "scrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar8 = "sLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar8 = "vLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLv";\n          }\n        }\n        sVar11 = WriteBlobString(image,pcVar8);\n        iVar35 = local_116c + sVar10 + sVar11;\n        pcVar8 = GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          sVar10 = WriteBlobByte(image,0xff);\n          iVar35 = iVar35 + sVar10;\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          dVar4 = (double)lVar16;\n          value = '\0';\n          if (0.0 < dVar4) {\n            value = 0xff;\n            if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          sVar10 = WriteBlobByte(image,value);\n          iVar35 = iVar35 + sVar10;\n          if (local_1178->debug != MagickFalse) {\n            uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);\n            LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);\n          }\n          if ((float)lVar16 != DAT_002df8a8) {\n            if (local_1178->alpha_trait != BlendPixelTrait) {\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }\n            CVar17 = GetImagePixelCacheType(local_1178);\n            if (((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }\n            else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = exception;\n            local_10ec = local_1178;\n            local_10f4 = dVar4;\n            GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);\n          }\n        }\n        sVar10 = WriteBlobByte(image,'\0');\n        sVar11 = WriteBlobByte(image,(local_1178->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar12 = WriteBlobByte(image,'\0');\n        iVar35 = sVar12 + iVar35 + sVar10 + sVar11;\n        puVar32 = &DAT_0034d420;\n        pacVar36 = allowed;\n        for (iVar18 = 0x2d; iVar18 != 0; iVar18 = iVar18 + -1) {\n          *(undefined4 *)*pacVar36 = *puVar32;\n          puVar32 = puVar32 + (uint)bVar38 * -2 + 1;\n          pacVar36 = (char (*) [5])((int)pacVar36 + (uint)bVar38 * -8 + 4);\n        }\n        pSVar19 = GetImageProfile(local_1178,"psd:additional-info");\n        if (pSVar19 == (StringInfo *)0x0) {\nLAB_0029ddc4:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar8 = GetImageOption(image_info,"psd:additional-info");\n          iVar18 = LocaleCompare(pcVar8,"all");\n          string_info = pSVar19;\n          if (iVar18 != 0) {\n            iVar18 = LocaleCompare(pcVar8,"selective");\n            if (iVar18 == 0) {\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar8 = GetImageProperty(local_1178,"label",exception);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = layer_name;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",SUB84((double)iVar27,0),\n                             (int)((ulonglong)(double)iVar27 >> 0x20));\n        }\n        sVar9 = strlen(pcVar8);\n        uVar33 = sVar9 + 1;\n        if ((uVar33 & 3) != 0) {\n          uVar33 = (uVar33 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar31 = GetStringInfoLength(string_info);\n          uVar33 = uVar33 + sVar31;\n        }\n        if (local_1174 == (Image *)0x0) {\n          sVar10 = WriteBlobLong(image,uVar33 + 8);\n          sVar11 = WriteBlobLong(image,0);\n          iVar35 = sVar10 + sVar11 + iVar35;\n        }\n        else {\n          sVar10 = WriteBlobLong(image,uVar33 + 0x1c);\n          if ((local_1174->compose != NoCompositeOp) &&\n             (local_1178->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_1174->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_1174->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar11 = WriteBlobLong(image,0x14);\n          sVar12 = WriteBlobSignedLong(image,(local_1174->page).y);\n          sVar13 = WriteBlobSignedLong(image,(local_1174->page).x);\n          sVar15 = WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows);\n          sVar21 = WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns);\n          sVar22 = WriteBlobByte(image,local_1103);\n          sVar23 = WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02');\n          sVar24 = WriteBlobMSBShort(image,0);\n          iVar35 = iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +\n                   sVar24;\n        }\n        sVar10 = WriteBlobLong(image,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            sVar12 = WriteBlobByte(image,'\0');\n            iVar18 = 3;\n          }\n          else {\n            sVar12 = WriteBlobByte(image,(uchar)sVar9);\n            sVar11 = WriteBlob(image,sVar9,pcVar8);\n            sVar12 = sVar12 + sVar11;\n            uVar33 = sVar9 + 1 & 3;\n            if (uVar33 == 0) goto LAB_0029d1b9;\n            iVar18 = 4 - uVar33;\n          }\n          iVar34 = 0;\n          do {\n            iVar34 = iVar34 + 1;\n            sVar11 = WriteBlobByte(image,'\0');\n            sVar12 = sVar12 + sVar11;\n          } while (iVar34 != iVar18);\n        }\n        else {\n          sVar12 = WriteBlobByte(image,0xff);\n          sVar11 = WriteBlob(image,0xff,pcVar8);\n          sVar12 = sVar12 + sVar11;\n        }\nLAB_0029d1b9:\n        local_1130 = sVar12 + sVar10 + iVar35;\n        if (string_info != (StringInfo *)0x0) {\n          puVar20 = GetStringInfoDatum(string_info);\n          sVar31 = GetStringInfoLength(string_info);\n          sVar10 = WriteBlob(image,sVar31,puVar20);\n          local_1130 = local_1130 + sVar10;\n        }\n        local_1178 = GetNextImageInList(local_1178);\n        pIVar7 = pIVar6;\n        local_1150 = memory;\n      } while (local_1178 != (Image *)0x0);\n      do {\n        local_1178 = (Image *)0x0;\n        uVar33 = *local_1150;\n        uVar30 = local_1150[1];\n        compression = image_info->compression;\n        if (image_info->compression == UndefinedCompression) {\n          compression = pIVar7->compression;\n        }\n        if ((compression == RLECompression) &&\n           (local_1178 = (Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1),\n           next_image = pIVar7, local_1178 == (Image *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,\n                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename);\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar29 = uVar33 + 2;\n        iVar27 = uVar30 + (0xfffffffd < uVar33);\n        if ((pIVar7->storage_class == PseudoClass) &&\n           (MVar14 = IsImageGray(pIVar7), MVar14 == MagickFalse)) {\n          sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178\n                                   ,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n          if (psd_info->version == 1) {\n            sVar10 = WriteBlobLong(image,sVar31);\n          }\n          else {\n            sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n          }\n          uVar33 = sVar10 + 2;\n          SeekBlob(image,MVar39,0);\n          local_115c = uVar33 + uVar29;\n          local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n        }\n        else {\n          MVar14 = IsImageGray(pIVar7);\n          if (MVar14 == MagickFalse) {\n            if (pIVar7->colorspace == CMYKColorspace) {\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar30 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar33 = uVar30 + uVar29;\n            iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);\n            value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar33),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,value_00);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }\n            uVar29 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar30 = uVar29 + uVar33;\n            iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar30),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar30;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);\n            sVar31 = sVar25 + value_00 + sVar31;\n            if (pIVar7->colorspace == CMYKColorspace) {\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }\n          }\n          else {\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar29;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n          }\n          if (pIVar7->alpha_trait != UndefinedPixelTrait) {\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            bVar37 = CARRY4(local_115c,uVar33);\n            local_115c = local_115c + uVar33;\n            local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n            sVar31 = sVar31 + sVar25;\n          }\n        }\n        local_1178 = (Image *)RelinquishMagickMemory(local_1178);\n        if (pIVar7->colorspace == CMYKColorspace) {\n          CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n          NegateImage(pIVar7,MagickFalse,exception);\n          SetImageChannelMask(pIVar7,CVar26);\n        }\n        pcVar8 = GetImageArtifact(pIVar7,"psd:opacity-mask");\n        if ((pcVar8 != (char *)0x0) &&\n           (next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception),\n           next_image != (Image *)0x0)) {\n          if ((compression == RLECompression) &&\n             (local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0)) goto LAB_0029dbfc;\n          sVar25 = WritePSDChannel(psd_info,image_info,image,next_image,RedQuantum,\n                                   (uchar *)local_1178,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n          if (psd_info->version == 1) {\n            WriteBlobLong(image,sVar25);\n          }\n          else {\n            WriteBlobLongLong(image,(ulonglong)sVar25);\n          }\n          SeekBlob(image,MVar39,0);\n          sVar31 = sVar31 + sVar25;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (sVar31 == 0) {\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + sVar31;\n        pIVar7 = GetNextImageInList(pIVar7);\n        local_1150 = local_1150 + 2;\n      } while (pIVar7 != (Image *)0x0);\n    }\n    local_1178 = (Image *)0x1;\nLAB_0029dc36:\n    if (layers_size != (size_t *)0x0) {\n      *layers_size = local_1130;\n    }\n    uVar33 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar33 = local_1130;\n    }\n    MVar39 = TellBlob(image);\n    SeekBlob(image,offset,0);\n    if (psd_info->version == 1) {\n      WriteBlobLong(image,uVar33);\n    }\n    else {\n      WriteBlobLongLong(image,(ulonglong)uVar33);\n    }\n    SeekBlob(image,MVar39,0);\n    RelinquishMagickMemory(memory);\n    for (; pIVar6 != (Image *)0x0; pIVar6 = GetNextImageInList(pIVar6)) {\n      while (pcVar8 = GetImageArtifact(pIVar6,"psd:opacity-mask"), pcVar8 != (char *)0x0) {\n        DeleteImageRegistry(pcVar8);\n        pIVar6 = GetNextImageInList(pIVar6);\n        if (pIVar6 == (Image *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }" if (parenthesized_expression "(memory == (uint *)0x0)" ( (binary_expression "memory == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ThrowMagickException\n              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,\n               "MemoryAllocationFailed","`%s\'",0x6e,image->filename);\n    p_Var3 = (_Image *)image_info->adjoin;\n    pIVar6 = image;\n    while (pIVar7 = image, p_Var3 != (_Image *)0x0) {\n      p_Var3 = pIVar7->previous;\n      image = p_Var3;\n      pIVar6 = pIVar7;\n    }\n    CloseBlob(pIVar6);\n    local_1178 = (Image *)0x0;\n  }" { (expression_statement "ThrowMagickException\n              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,\n               "MemoryAllocationFailed","`%s\'",0x6e,image->filename);" (call_expression "ThrowMagickException\n              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,\n               "MemoryAllocationFailed","`%s\'",0x6e,image->filename)" identifier (argument_list "(exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,\n               "MemoryAllocationFailed","`%s\'",0x6e,image->filename)" ( identifier , (string_literal ""coders/psd.c"" " string_content ") , (string_literal ""WritePSDLayersInternal"" " string_content ") , number_literal , identifier , (string_literal ""MemoryAllocationFailed"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , number_literal , (field_expression "image->filename" identifier -> field_identifier) ))) ;) (expression_statement "p_Var3 = (_Image *)image_info->adjoin;" (assignment_expression "p_Var3 = (_Image *)image_info->adjoin" identifier = (cast_expression "(_Image *)image_info->adjoin" ( (type_descriptor "_Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "image_info->adjoin" identifier -> field_identifier))) ;) (expression_statement "pIVar6 = image;" (assignment_expression "pIVar6 = image" identifier = identifier) ;) (while_statement "while (pIVar7 = image, p_Var3 != (_Image *)0x0) {\n      p_Var3 = pIVar7->previous;\n      image = p_Var3;\n      pIVar6 = pIVar7;\n    }" while (parenthesized_expression "(pIVar7 = image, p_Var3 != (_Image *)0x0)" ( (comma_expression "pIVar7 = image, p_Var3 != (_Image *)0x0" (assignment_expression "pIVar7 = image" identifier = identifier) , (binary_expression "p_Var3 != (_Image *)0x0" identifier != (cast_expression "(_Image *)0x0" ( (type_descriptor "_Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      p_Var3 = pIVar7->previous;\n      image = p_Var3;\n      pIVar6 = pIVar7;\n    }" { (expression_statement "p_Var3 = pIVar7->previous;" (assignment_expression "p_Var3 = pIVar7->previous" identifier = (field_expression "pIVar7->previous" identifier -> field_identifier)) ;) (expression_statement "image = p_Var3;" (assignment_expression "image = p_Var3" identifier = identifier) ;) (expression_statement "pIVar6 = pIVar7;" (assignment_expression "pIVar6 = pIVar7" identifier = identifier) ;) })) (expression_statement "CloseBlob(pIVar6);" (call_expression "CloseBlob(pIVar6)" identifier (argument_list "(pIVar6)" ( identifier ))) ;) (expression_statement "local_1178 = (Image *)0x0;" (assignment_expression "local_1178 = (Image *)0x0" identifier = (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    if (pIVar6 != (Image *)0x0) {\n      iVar27 = 0;\n      local_1178 = pIVar6;\n      do {\n        pcVar8 = GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = (Image *)0x0;\n        }\n        else {\n          local_1174 = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception);\n          sVar9 = strlen(pcVar8);\n          local_1103 = -(sVar9 == 9);\n        }\n        sVar10 = WriteBlobSignedLong(image,(local_1178->page).y);\n        sVar11 = WriteBlobSignedLong(image,(local_1178->page).x);\n        sVar12 = WriteBlobSignedLong(image,local_1178->rows + (local_1178->page).y);\n        sVar13 = WriteBlobSignedLong(image,local_1178->columns + (local_1178->page).x);\n        if ((local_1178->storage_class == PseudoClass) ||\n           (MVar14 = IsImageGray(local_1178), MVar14 != MagickFalse)) {\n          sVar5 = 2;\n          local_115c = 1;\n          sVar28 = 1;\n        }\n        else {\n          sVar5 = (local_1178->colorspace == CMYKColorspace) + 4;\n          local_115c = (local_1178->colorspace == CMYKColorspace) + 3;\n          sVar28 = (local_1178->colorspace == CMYKColorspace) + 3;\n        }\n        if (local_1178->alpha_trait == UndefinedPixelTrait) {\n          sVar5 = sVar28;\n        }\n        sVar15 = WriteBlobShort(image,(sVar5 + 1) - (ushort)(local_1174 == (Image *)0x0));\n        iVar27 = iVar27 + 1;\n        local_116c = sVar15 + local_1130 + sVar10 + sVar11 + sVar12 + sVar13;\n        MVar39 = TellBlob(image);\n        memory[iVar27 * 2 + -2] = (uint)MVar39;\n        memory[iVar27 * 2 + -1] = (uint)((ulonglong)MVar39 >> 0x20);\n        iVar35 = 0;\n        do {\n          while (sVar10 = WriteBlobShort(image,(ushort)iVar35), psd_info->version != 1) {\n            iVar35 = iVar35 + 1;\n            sVar11 = WriteBlobLongLong(image,0);\n            local_116c = local_116c + sVar10 + sVar11;\n            if (iVar35 == local_115c) {\n              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar35 = iVar35 + 1;\n          sVar11 = WriteBlobLong(image,0);\n          local_116c = local_116c + sVar10 + sVar11;\n        } while (local_115c != iVar35);\n        if (local_1178->alpha_trait != UndefinedPixelTrait) {\nLAB_0029cb4b:\n          sVar10 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\nLAB_0029ca7f:\n        if (local_1174 != (Image *)0x0) {\n          sVar10 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\n        pcVar8 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar8 = "MIB8";\n        }\n        sVar10 = WriteBlobString(image,pcVar8);\n        switch(local_1178->compose) {\n        case ColorBurnCompositeOp:\n          pcVar8 = "idiv";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar8 = "div ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar8 = "colr";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar8 = "dark";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar8 = "diff";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar8 = "diss";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar8 = "smud";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar8 = "hLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar8 = "hMix";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar8 = "hue ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar8 = "lite";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar8 = "lbrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar8 = "lddg";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar8 = "lLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar8 = "lum ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar8 = "mul ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar8 = "over";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar8 = "pLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar8 = "sat ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar8 = "scrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar8 = "sLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar8 = "vLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLv";\n          }\n        }\n        sVar11 = WriteBlobString(image,pcVar8);\n        iVar35 = local_116c + sVar10 + sVar11;\n        pcVar8 = GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          sVar10 = WriteBlobByte(image,0xff);\n          iVar35 = iVar35 + sVar10;\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          dVar4 = (double)lVar16;\n          value = '\0';\n          if (0.0 < dVar4) {\n            value = 0xff;\n            if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          sVar10 = WriteBlobByte(image,value);\n          iVar35 = iVar35 + sVar10;\n          if (local_1178->debug != MagickFalse) {\n            uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);\n            LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);\n          }\n          if ((float)lVar16 != DAT_002df8a8) {\n            if (local_1178->alpha_trait != BlendPixelTrait) {\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }\n            CVar17 = GetImagePixelCacheType(local_1178);\n            if (((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }\n            else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = exception;\n            local_10ec = local_1178;\n            local_10f4 = dVar4;\n            GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);\n          }\n        }\n        sVar10 = WriteBlobByte(image,'\0');\n        sVar11 = WriteBlobByte(image,(local_1178->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar12 = WriteBlobByte(image,'\0');\n        iVar35 = sVar12 + iVar35 + sVar10 + sVar11;\n        puVar32 = &DAT_0034d420;\n        pacVar36 = allowed;\n        for (iVar18 = 0x2d; iVar18 != 0; iVar18 = iVar18 + -1) {\n          *(undefined4 *)*pacVar36 = *puVar32;\n          puVar32 = puVar32 + (uint)bVar38 * -2 + 1;\n          pacVar36 = (char (*) [5])((int)pacVar36 + (uint)bVar38 * -8 + 4);\n        }\n        pSVar19 = GetImageProfile(local_1178,"psd:additional-info");\n        if (pSVar19 == (StringInfo *)0x0) {\nLAB_0029ddc4:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar8 = GetImageOption(image_info,"psd:additional-info");\n          iVar18 = LocaleCompare(pcVar8,"all");\n          string_info = pSVar19;\n          if (iVar18 != 0) {\n            iVar18 = LocaleCompare(pcVar8,"selective");\n            if (iVar18 == 0) {\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar8 = GetImageProperty(local_1178,"label",exception);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = layer_name;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",SUB84((double)iVar27,0),\n                             (int)((ulonglong)(double)iVar27 >> 0x20));\n        }\n        sVar9 = strlen(pcVar8);\n        uVar33 = sVar9 + 1;\n        if ((uVar33 & 3) != 0) {\n          uVar33 = (uVar33 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar31 = GetStringInfoLength(string_info);\n          uVar33 = uVar33 + sVar31;\n        }\n        if (local_1174 == (Image *)0x0) {\n          sVar10 = WriteBlobLong(image,uVar33 + 8);\n          sVar11 = WriteBlobLong(image,0);\n          iVar35 = sVar10 + sVar11 + iVar35;\n        }\n        else {\n          sVar10 = WriteBlobLong(image,uVar33 + 0x1c);\n          if ((local_1174->compose != NoCompositeOp) &&\n             (local_1178->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_1174->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_1174->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar11 = WriteBlobLong(image,0x14);\n          sVar12 = WriteBlobSignedLong(image,(local_1174->page).y);\n          sVar13 = WriteBlobSignedLong(image,(local_1174->page).x);\n          sVar15 = WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows);\n          sVar21 = WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns);\n          sVar22 = WriteBlobByte(image,local_1103);\n          sVar23 = WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02');\n          sVar24 = WriteBlobMSBShort(image,0);\n          iVar35 = iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +\n                   sVar24;\n        }\n        sVar10 = WriteBlobLong(image,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            sVar12 = WriteBlobByte(image,'\0');\n            iVar18 = 3;\n          }\n          else {\n            sVar12 = WriteBlobByte(image,(uchar)sVar9);\n            sVar11 = WriteBlob(image,sVar9,pcVar8);\n            sVar12 = sVar12 + sVar11;\n            uVar33 = sVar9 + 1 & 3;\n            if (uVar33 == 0) goto LAB_0029d1b9;\n            iVar18 = 4 - uVar33;\n          }\n          iVar34 = 0;\n          do {\n            iVar34 = iVar34 + 1;\n            sVar11 = WriteBlobByte(image,'\0');\n            sVar12 = sVar12 + sVar11;\n          } while (iVar34 != iVar18);\n        }\n        else {\n          sVar12 = WriteBlobByte(image,0xff);\n          sVar11 = WriteBlob(image,0xff,pcVar8);\n          sVar12 = sVar12 + sVar11;\n        }\nLAB_0029d1b9:\n        local_1130 = sVar12 + sVar10 + iVar35;\n        if (string_info != (StringInfo *)0x0) {\n          puVar20 = GetStringInfoDatum(string_info);\n          sVar31 = GetStringInfoLength(string_info);\n          sVar10 = WriteBlob(image,sVar31,puVar20);\n          local_1130 = local_1130 + sVar10;\n        }\n        local_1178 = GetNextImageInList(local_1178);\n        pIVar7 = pIVar6;\n        local_1150 = memory;\n      } while (local_1178 != (Image *)0x0);\n      do {\n        local_1178 = (Image *)0x0;\n        uVar33 = *local_1150;\n        uVar30 = local_1150[1];\n        compression = image_info->compression;\n        if (image_info->compression == UndefinedCompression) {\n          compression = pIVar7->compression;\n        }\n        if ((compression == RLECompression) &&\n           (local_1178 = (Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1),\n           next_image = pIVar7, local_1178 == (Image *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,\n                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename);\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar29 = uVar33 + 2;\n        iVar27 = uVar30 + (0xfffffffd < uVar33);\n        if ((pIVar7->storage_class == PseudoClass) &&\n           (MVar14 = IsImageGray(pIVar7), MVar14 == MagickFalse)) {\n          sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178\n                                   ,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n          if (psd_info->version == 1) {\n            sVar10 = WriteBlobLong(image,sVar31);\n          }\n          else {\n            sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n          }\n          uVar33 = sVar10 + 2;\n          SeekBlob(image,MVar39,0);\n          local_115c = uVar33 + uVar29;\n          local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n        }\n        else {\n          MVar14 = IsImageGray(pIVar7);\n          if (MVar14 == MagickFalse) {\n            if (pIVar7->colorspace == CMYKColorspace) {\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar30 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar33 = uVar30 + uVar29;\n            iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);\n            value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar33),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,value_00);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }\n            uVar29 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar30 = uVar29 + uVar33;\n            iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar30),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar30;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);\n            sVar31 = sVar25 + value_00 + sVar31;\n            if (pIVar7->colorspace == CMYKColorspace) {\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }\n          }\n          else {\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar29;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n          }\n          if (pIVar7->alpha_trait != UndefinedPixelTrait) {\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            bVar37 = CARRY4(local_115c,uVar33);\n            local_115c = local_115c + uVar33;\n            local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n            sVar31 = sVar31 + sVar25;\n          }\n        }\n        local_1178 = (Image *)RelinquishMagickMemory(local_1178);\n        if (pIVar7->colorspace == CMYKColorspace) {\n          CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n          NegateImage(pIVar7,MagickFalse,exception);\n          SetImageChannelMask(pIVar7,CVar26);\n        }\n        pcVar8 = GetImageArtifact(pIVar7,"psd:opacity-mask");\n        if ((pcVar8 != (char *)0x0) &&\n           (next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception),\n           next_image != (Image *)0x0)) {\n          if ((compression == RLECompression) &&\n             (local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0)) goto LAB_0029dbfc;\n          sVar25 = WritePSDChannel(psd_info,image_info,image,next_image,RedQuantum,\n                                   (uchar *)local_1178,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n          if (psd_info->version == 1) {\n            WriteBlobLong(image,sVar25);\n          }\n          else {\n            WriteBlobLongLong(image,(ulonglong)sVar25);\n          }\n          SeekBlob(image,MVar39,0);\n          sVar31 = sVar31 + sVar25;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (sVar31 == 0) {\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + sVar31;\n        pIVar7 = GetNextImageInList(pIVar7);\n        local_1150 = local_1150 + 2;\n      } while (pIVar7 != (Image *)0x0);\n    }\n    local_1178 = (Image *)0x1;\nLAB_0029dc36:\n    if (layers_size != (size_t *)0x0) {\n      *layers_size = local_1130;\n    }\n    uVar33 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar33 = local_1130;\n    }\n    MVar39 = TellBlob(image);\n    SeekBlob(image,offset,0);\n    if (psd_info->version == 1) {\n      WriteBlobLong(image,uVar33);\n    }\n    else {\n      WriteBlobLongLong(image,(ulonglong)uVar33);\n    }\n    SeekBlob(image,MVar39,0);\n    RelinquishMagickMemory(memory);\n    for (; pIVar6 != (Image *)0x0; pIVar6 = GetNextImageInList(pIVar6)) {\n      while (pcVar8 = GetImageArtifact(pIVar6,"psd:opacity-mask"), pcVar8 != (char *)0x0) {\n        DeleteImageRegistry(pcVar8);\n        pIVar6 = GetNextImageInList(pIVar6);\n        if (pIVar6 == (Image *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }" else (compound_statement "{\n    if (pIVar6 != (Image *)0x0) {\n      iVar27 = 0;\n      local_1178 = pIVar6;\n      do {\n        pcVar8 = GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = (Image *)0x0;\n        }\n        else {\n          local_1174 = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception);\n          sVar9 = strlen(pcVar8);\n          local_1103 = -(sVar9 == 9);\n        }\n        sVar10 = WriteBlobSignedLong(image,(local_1178->page).y);\n        sVar11 = WriteBlobSignedLong(image,(local_1178->page).x);\n        sVar12 = WriteBlobSignedLong(image,local_1178->rows + (local_1178->page).y);\n        sVar13 = WriteBlobSignedLong(image,local_1178->columns + (local_1178->page).x);\n        if ((local_1178->storage_class == PseudoClass) ||\n           (MVar14 = IsImageGray(local_1178), MVar14 != MagickFalse)) {\n          sVar5 = 2;\n          local_115c = 1;\n          sVar28 = 1;\n        }\n        else {\n          sVar5 = (local_1178->colorspace == CMYKColorspace) + 4;\n          local_115c = (local_1178->colorspace == CMYKColorspace) + 3;\n          sVar28 = (local_1178->colorspace == CMYKColorspace) + 3;\n        }\n        if (local_1178->alpha_trait == UndefinedPixelTrait) {\n          sVar5 = sVar28;\n        }\n        sVar15 = WriteBlobShort(image,(sVar5 + 1) - (ushort)(local_1174 == (Image *)0x0));\n        iVar27 = iVar27 + 1;\n        local_116c = sVar15 + local_1130 + sVar10 + sVar11 + sVar12 + sVar13;\n        MVar39 = TellBlob(image);\n        memory[iVar27 * 2 + -2] = (uint)MVar39;\n        memory[iVar27 * 2 + -1] = (uint)((ulonglong)MVar39 >> 0x20);\n        iVar35 = 0;\n        do {\n          while (sVar10 = WriteBlobShort(image,(ushort)iVar35), psd_info->version != 1) {\n            iVar35 = iVar35 + 1;\n            sVar11 = WriteBlobLongLong(image,0);\n            local_116c = local_116c + sVar10 + sVar11;\n            if (iVar35 == local_115c) {\n              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar35 = iVar35 + 1;\n          sVar11 = WriteBlobLong(image,0);\n          local_116c = local_116c + sVar10 + sVar11;\n        } while (local_115c != iVar35);\n        if (local_1178->alpha_trait != UndefinedPixelTrait) {\nLAB_0029cb4b:\n          sVar10 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\nLAB_0029ca7f:\n        if (local_1174 != (Image *)0x0) {\n          sVar10 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\n        pcVar8 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar8 = "MIB8";\n        }\n        sVar10 = WriteBlobString(image,pcVar8);\n        switch(local_1178->compose) {\n        case ColorBurnCompositeOp:\n          pcVar8 = "idiv";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar8 = "div ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar8 = "colr";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar8 = "dark";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar8 = "diff";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar8 = "diss";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar8 = "smud";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar8 = "hLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar8 = "hMix";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar8 = "hue ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar8 = "lite";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar8 = "lbrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar8 = "lddg";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar8 = "lLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar8 = "lum ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar8 = "mul ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar8 = "over";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar8 = "pLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar8 = "sat ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar8 = "scrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar8 = "sLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar8 = "vLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLv";\n          }\n        }\n        sVar11 = WriteBlobString(image,pcVar8);\n        iVar35 = local_116c + sVar10 + sVar11;\n        pcVar8 = GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          sVar10 = WriteBlobByte(image,0xff);\n          iVar35 = iVar35 + sVar10;\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          dVar4 = (double)lVar16;\n          value = '\0';\n          if (0.0 < dVar4) {\n            value = 0xff;\n            if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          sVar10 = WriteBlobByte(image,value);\n          iVar35 = iVar35 + sVar10;\n          if (local_1178->debug != MagickFalse) {\n            uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);\n            LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);\n          }\n          if ((float)lVar16 != DAT_002df8a8) {\n            if (local_1178->alpha_trait != BlendPixelTrait) {\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }\n            CVar17 = GetImagePixelCacheType(local_1178);\n            if (((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }\n            else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = exception;\n            local_10ec = local_1178;\n            local_10f4 = dVar4;\n            GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);\n          }\n        }\n        sVar10 = WriteBlobByte(image,'\0');\n        sVar11 = WriteBlobByte(image,(local_1178->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar12 = WriteBlobByte(image,'\0');\n        iVar35 = sVar12 + iVar35 + sVar10 + sVar11;\n        puVar32 = &DAT_0034d420;\n        pacVar36 = allowed;\n        for (iVar18 = 0x2d; iVar18 != 0; iVar18 = iVar18 + -1) {\n          *(undefined4 *)*pacVar36 = *puVar32;\n          puVar32 = puVar32 + (uint)bVar38 * -2 + 1;\n          pacVar36 = (char (*) [5])((int)pacVar36 + (uint)bVar38 * -8 + 4);\n        }\n        pSVar19 = GetImageProfile(local_1178,"psd:additional-info");\n        if (pSVar19 == (StringInfo *)0x0) {\nLAB_0029ddc4:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar8 = GetImageOption(image_info,"psd:additional-info");\n          iVar18 = LocaleCompare(pcVar8,"all");\n          string_info = pSVar19;\n          if (iVar18 != 0) {\n            iVar18 = LocaleCompare(pcVar8,"selective");\n            if (iVar18 == 0) {\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar8 = GetImageProperty(local_1178,"label",exception);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = layer_name;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",SUB84((double)iVar27,0),\n                             (int)((ulonglong)(double)iVar27 >> 0x20));\n        }\n        sVar9 = strlen(pcVar8);\n        uVar33 = sVar9 + 1;\n        if ((uVar33 & 3) != 0) {\n          uVar33 = (uVar33 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar31 = GetStringInfoLength(string_info);\n          uVar33 = uVar33 + sVar31;\n        }\n        if (local_1174 == (Image *)0x0) {\n          sVar10 = WriteBlobLong(image,uVar33 + 8);\n          sVar11 = WriteBlobLong(image,0);\n          iVar35 = sVar10 + sVar11 + iVar35;\n        }\n        else {\n          sVar10 = WriteBlobLong(image,uVar33 + 0x1c);\n          if ((local_1174->compose != NoCompositeOp) &&\n             (local_1178->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_1174->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_1174->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar11 = WriteBlobLong(image,0x14);\n          sVar12 = WriteBlobSignedLong(image,(local_1174->page).y);\n          sVar13 = WriteBlobSignedLong(image,(local_1174->page).x);\n          sVar15 = WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows);\n          sVar21 = WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns);\n          sVar22 = WriteBlobByte(image,local_1103);\n          sVar23 = WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02');\n          sVar24 = WriteBlobMSBShort(image,0);\n          iVar35 = iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +\n                   sVar24;\n        }\n        sVar10 = WriteBlobLong(image,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            sVar12 = WriteBlobByte(image,'\0');\n            iVar18 = 3;\n          }\n          else {\n            sVar12 = WriteBlobByte(image,(uchar)sVar9);\n            sVar11 = WriteBlob(image,sVar9,pcVar8);\n            sVar12 = sVar12 + sVar11;\n            uVar33 = sVar9 + 1 & 3;\n            if (uVar33 == 0) goto LAB_0029d1b9;\n            iVar18 = 4 - uVar33;\n          }\n          iVar34 = 0;\n          do {\n            iVar34 = iVar34 + 1;\n            sVar11 = WriteBlobByte(image,'\0');\n            sVar12 = sVar12 + sVar11;\n          } while (iVar34 != iVar18);\n        }\n        else {\n          sVar12 = WriteBlobByte(image,0xff);\n          sVar11 = WriteBlob(image,0xff,pcVar8);\n          sVar12 = sVar12 + sVar11;\n        }\nLAB_0029d1b9:\n        local_1130 = sVar12 + sVar10 + iVar35;\n        if (string_info != (StringInfo *)0x0) {\n          puVar20 = GetStringInfoDatum(string_info);\n          sVar31 = GetStringInfoLength(string_info);\n          sVar10 = WriteBlob(image,sVar31,puVar20);\n          local_1130 = local_1130 + sVar10;\n        }\n        local_1178 = GetNextImageInList(local_1178);\n        pIVar7 = pIVar6;\n        local_1150 = memory;\n      } while (local_1178 != (Image *)0x0);\n      do {\n        local_1178 = (Image *)0x0;\n        uVar33 = *local_1150;\n        uVar30 = local_1150[1];\n        compression = image_info->compression;\n        if (image_info->compression == UndefinedCompression) {\n          compression = pIVar7->compression;\n        }\n        if ((compression == RLECompression) &&\n           (local_1178 = (Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1),\n           next_image = pIVar7, local_1178 == (Image *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,\n                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename);\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar29 = uVar33 + 2;\n        iVar27 = uVar30 + (0xfffffffd < uVar33);\n        if ((pIVar7->storage_class == PseudoClass) &&\n           (MVar14 = IsImageGray(pIVar7), MVar14 == MagickFalse)) {\n          sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178\n                                   ,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n          if (psd_info->version == 1) {\n            sVar10 = WriteBlobLong(image,sVar31);\n          }\n          else {\n            sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n          }\n          uVar33 = sVar10 + 2;\n          SeekBlob(image,MVar39,0);\n          local_115c = uVar33 + uVar29;\n          local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n        }\n        else {\n          MVar14 = IsImageGray(pIVar7);\n          if (MVar14 == MagickFalse) {\n            if (pIVar7->colorspace == CMYKColorspace) {\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar30 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar33 = uVar30 + uVar29;\n            iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);\n            value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar33),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,value_00);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }\n            uVar29 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar30 = uVar29 + uVar33;\n            iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar30),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar30;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);\n            sVar31 = sVar25 + value_00 + sVar31;\n            if (pIVar7->colorspace == CMYKColorspace) {\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }\n          }\n          else {\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar29;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n          }\n          if (pIVar7->alpha_trait != UndefinedPixelTrait) {\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            bVar37 = CARRY4(local_115c,uVar33);\n            local_115c = local_115c + uVar33;\n            local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n            sVar31 = sVar31 + sVar25;\n          }\n        }\n        local_1178 = (Image *)RelinquishMagickMemory(local_1178);\n        if (pIVar7->colorspace == CMYKColorspace) {\n          CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n          NegateImage(pIVar7,MagickFalse,exception);\n          SetImageChannelMask(pIVar7,CVar26);\n        }\n        pcVar8 = GetImageArtifact(pIVar7,"psd:opacity-mask");\n        if ((pcVar8 != (char *)0x0) &&\n           (next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception),\n           next_image != (Image *)0x0)) {\n          if ((compression == RLECompression) &&\n             (local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0)) goto LAB_0029dbfc;\n          sVar25 = WritePSDChannel(psd_info,image_info,image,next_image,RedQuantum,\n                                   (uchar *)local_1178,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n          if (psd_info->version == 1) {\n            WriteBlobLong(image,sVar25);\n          }\n          else {\n            WriteBlobLongLong(image,(ulonglong)sVar25);\n          }\n          SeekBlob(image,MVar39,0);\n          sVar31 = sVar31 + sVar25;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (sVar31 == 0) {\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + sVar31;\n        pIVar7 = GetNextImageInList(pIVar7);\n        local_1150 = local_1150 + 2;\n      } while (pIVar7 != (Image *)0x0);\n    }\n    local_1178 = (Image *)0x1;\nLAB_0029dc36:\n    if (layers_size != (size_t *)0x0) {\n      *layers_size = local_1130;\n    }\n    uVar33 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar33 = local_1130;\n    }\n    MVar39 = TellBlob(image);\n    SeekBlob(image,offset,0);\n    if (psd_info->version == 1) {\n      WriteBlobLong(image,uVar33);\n    }\n    else {\n      WriteBlobLongLong(image,(ulonglong)uVar33);\n    }\n    SeekBlob(image,MVar39,0);\n    RelinquishMagickMemory(memory);\n    for (; pIVar6 != (Image *)0x0; pIVar6 = GetNextImageInList(pIVar6)) {\n      while (pcVar8 = GetImageArtifact(pIVar6,"psd:opacity-mask"), pcVar8 != (char *)0x0) {\n        DeleteImageRegistry(pcVar8);\n        pIVar6 = GetNextImageInList(pIVar6);\n        if (pIVar6 == (Image *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }" { (if_statement "if (pIVar6 != (Image *)0x0) {\n      iVar27 = 0;\n      local_1178 = pIVar6;\n      do {\n        pcVar8 = GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = (Image *)0x0;\n        }\n        else {\n          local_1174 = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception);\n          sVar9 = strlen(pcVar8);\n          local_1103 = -(sVar9 == 9);\n        }\n        sVar10 = WriteBlobSignedLong(image,(local_1178->page).y);\n        sVar11 = WriteBlobSignedLong(image,(local_1178->page).x);\n        sVar12 = WriteBlobSignedLong(image,local_1178->rows + (local_1178->page).y);\n        sVar13 = WriteBlobSignedLong(image,local_1178->columns + (local_1178->page).x);\n        if ((local_1178->storage_class == PseudoClass) ||\n           (MVar14 = IsImageGray(local_1178), MVar14 != MagickFalse)) {\n          sVar5 = 2;\n          local_115c = 1;\n          sVar28 = 1;\n        }\n        else {\n          sVar5 = (local_1178->colorspace == CMYKColorspace) + 4;\n          local_115c = (local_1178->colorspace == CMYKColorspace) + 3;\n          sVar28 = (local_1178->colorspace == CMYKColorspace) + 3;\n        }\n        if (local_1178->alpha_trait == UndefinedPixelTrait) {\n          sVar5 = sVar28;\n        }\n        sVar15 = WriteBlobShort(image,(sVar5 + 1) - (ushort)(local_1174 == (Image *)0x0));\n        iVar27 = iVar27 + 1;\n        local_116c = sVar15 + local_1130 + sVar10 + sVar11 + sVar12 + sVar13;\n        MVar39 = TellBlob(image);\n        memory[iVar27 * 2 + -2] = (uint)MVar39;\n        memory[iVar27 * 2 + -1] = (uint)((ulonglong)MVar39 >> 0x20);\n        iVar35 = 0;\n        do {\n          while (sVar10 = WriteBlobShort(image,(ushort)iVar35), psd_info->version != 1) {\n            iVar35 = iVar35 + 1;\n            sVar11 = WriteBlobLongLong(image,0);\n            local_116c = local_116c + sVar10 + sVar11;\n            if (iVar35 == local_115c) {\n              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar35 = iVar35 + 1;\n          sVar11 = WriteBlobLong(image,0);\n          local_116c = local_116c + sVar10 + sVar11;\n        } while (local_115c != iVar35);\n        if (local_1178->alpha_trait != UndefinedPixelTrait) {\nLAB_0029cb4b:\n          sVar10 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\nLAB_0029ca7f:\n        if (local_1174 != (Image *)0x0) {\n          sVar10 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\n        pcVar8 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar8 = "MIB8";\n        }\n        sVar10 = WriteBlobString(image,pcVar8);\n        switch(local_1178->compose) {\n        case ColorBurnCompositeOp:\n          pcVar8 = "idiv";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar8 = "div ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar8 = "colr";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar8 = "dark";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar8 = "diff";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar8 = "diss";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar8 = "smud";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar8 = "hLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar8 = "hMix";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar8 = "hue ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar8 = "lite";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar8 = "lbrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar8 = "lddg";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar8 = "lLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar8 = "lum ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar8 = "mul ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar8 = "over";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar8 = "pLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar8 = "sat ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar8 = "scrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar8 = "sLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar8 = "vLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLv";\n          }\n        }\n        sVar11 = WriteBlobString(image,pcVar8);\n        iVar35 = local_116c + sVar10 + sVar11;\n        pcVar8 = GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          sVar10 = WriteBlobByte(image,0xff);\n          iVar35 = iVar35 + sVar10;\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          dVar4 = (double)lVar16;\n          value = '\0';\n          if (0.0 < dVar4) {\n            value = 0xff;\n            if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          sVar10 = WriteBlobByte(image,value);\n          iVar35 = iVar35 + sVar10;\n          if (local_1178->debug != MagickFalse) {\n            uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);\n            LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);\n          }\n          if ((float)lVar16 != DAT_002df8a8) {\n            if (local_1178->alpha_trait != BlendPixelTrait) {\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }\n            CVar17 = GetImagePixelCacheType(local_1178);\n            if (((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }\n            else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = exception;\n            local_10ec = local_1178;\n            local_10f4 = dVar4;\n            GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);\n          }\n        }\n        sVar10 = WriteBlobByte(image,'\0');\n        sVar11 = WriteBlobByte(image,(local_1178->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar12 = WriteBlobByte(image,'\0');\n        iVar35 = sVar12 + iVar35 + sVar10 + sVar11;\n        puVar32 = &DAT_0034d420;\n        pacVar36 = allowed;\n        for (iVar18 = 0x2d; iVar18 != 0; iVar18 = iVar18 + -1) {\n          *(undefined4 *)*pacVar36 = *puVar32;\n          puVar32 = puVar32 + (uint)bVar38 * -2 + 1;\n          pacVar36 = (char (*) [5])((int)pacVar36 + (uint)bVar38 * -8 + 4);\n        }\n        pSVar19 = GetImageProfile(local_1178,"psd:additional-info");\n        if (pSVar19 == (StringInfo *)0x0) {\nLAB_0029ddc4:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar8 = GetImageOption(image_info,"psd:additional-info");\n          iVar18 = LocaleCompare(pcVar8,"all");\n          string_info = pSVar19;\n          if (iVar18 != 0) {\n            iVar18 = LocaleCompare(pcVar8,"selective");\n            if (iVar18 == 0) {\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar8 = GetImageProperty(local_1178,"label",exception);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = layer_name;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",SUB84((double)iVar27,0),\n                             (int)((ulonglong)(double)iVar27 >> 0x20));\n        }\n        sVar9 = strlen(pcVar8);\n        uVar33 = sVar9 + 1;\n        if ((uVar33 & 3) != 0) {\n          uVar33 = (uVar33 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar31 = GetStringInfoLength(string_info);\n          uVar33 = uVar33 + sVar31;\n        }\n        if (local_1174 == (Image *)0x0) {\n          sVar10 = WriteBlobLong(image,uVar33 + 8);\n          sVar11 = WriteBlobLong(image,0);\n          iVar35 = sVar10 + sVar11 + iVar35;\n        }\n        else {\n          sVar10 = WriteBlobLong(image,uVar33 + 0x1c);\n          if ((local_1174->compose != NoCompositeOp) &&\n             (local_1178->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_1174->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_1174->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar11 = WriteBlobLong(image,0x14);\n          sVar12 = WriteBlobSignedLong(image,(local_1174->page).y);\n          sVar13 = WriteBlobSignedLong(image,(local_1174->page).x);\n          sVar15 = WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows);\n          sVar21 = WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns);\n          sVar22 = WriteBlobByte(image,local_1103);\n          sVar23 = WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02');\n          sVar24 = WriteBlobMSBShort(image,0);\n          iVar35 = iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +\n                   sVar24;\n        }\n        sVar10 = WriteBlobLong(image,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            sVar12 = WriteBlobByte(image,'\0');\n            iVar18 = 3;\n          }\n          else {\n            sVar12 = WriteBlobByte(image,(uchar)sVar9);\n            sVar11 = WriteBlob(image,sVar9,pcVar8);\n            sVar12 = sVar12 + sVar11;\n            uVar33 = sVar9 + 1 & 3;\n            if (uVar33 == 0) goto LAB_0029d1b9;\n            iVar18 = 4 - uVar33;\n          }\n          iVar34 = 0;\n          do {\n            iVar34 = iVar34 + 1;\n            sVar11 = WriteBlobByte(image,'\0');\n            sVar12 = sVar12 + sVar11;\n          } while (iVar34 != iVar18);\n        }\n        else {\n          sVar12 = WriteBlobByte(image,0xff);\n          sVar11 = WriteBlob(image,0xff,pcVar8);\n          sVar12 = sVar12 + sVar11;\n        }\nLAB_0029d1b9:\n        local_1130 = sVar12 + sVar10 + iVar35;\n        if (string_info != (StringInfo *)0x0) {\n          puVar20 = GetStringInfoDatum(string_info);\n          sVar31 = GetStringInfoLength(string_info);\n          sVar10 = WriteBlob(image,sVar31,puVar20);\n          local_1130 = local_1130 + sVar10;\n        }\n        local_1178 = GetNextImageInList(local_1178);\n        pIVar7 = pIVar6;\n        local_1150 = memory;\n      } while (local_1178 != (Image *)0x0);\n      do {\n        local_1178 = (Image *)0x0;\n        uVar33 = *local_1150;\n        uVar30 = local_1150[1];\n        compression = image_info->compression;\n        if (image_info->compression == UndefinedCompression) {\n          compression = pIVar7->compression;\n        }\n        if ((compression == RLECompression) &&\n           (local_1178 = (Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1),\n           next_image = pIVar7, local_1178 == (Image *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,\n                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename);\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar29 = uVar33 + 2;\n        iVar27 = uVar30 + (0xfffffffd < uVar33);\n        if ((pIVar7->storage_class == PseudoClass) &&\n           (MVar14 = IsImageGray(pIVar7), MVar14 == MagickFalse)) {\n          sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178\n                                   ,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n          if (psd_info->version == 1) {\n            sVar10 = WriteBlobLong(image,sVar31);\n          }\n          else {\n            sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n          }\n          uVar33 = sVar10 + 2;\n          SeekBlob(image,MVar39,0);\n          local_115c = uVar33 + uVar29;\n          local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n        }\n        else {\n          MVar14 = IsImageGray(pIVar7);\n          if (MVar14 == MagickFalse) {\n            if (pIVar7->colorspace == CMYKColorspace) {\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar30 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar33 = uVar30 + uVar29;\n            iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);\n            value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar33),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,value_00);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }\n            uVar29 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar30 = uVar29 + uVar33;\n            iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar30),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar30;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);\n            sVar31 = sVar25 + value_00 + sVar31;\n            if (pIVar7->colorspace == CMYKColorspace) {\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }\n          }\n          else {\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar29;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n          }\n          if (pIVar7->alpha_trait != UndefinedPixelTrait) {\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            bVar37 = CARRY4(local_115c,uVar33);\n            local_115c = local_115c + uVar33;\n            local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n            sVar31 = sVar31 + sVar25;\n          }\n        }\n        local_1178 = (Image *)RelinquishMagickMemory(local_1178);\n        if (pIVar7->colorspace == CMYKColorspace) {\n          CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n          NegateImage(pIVar7,MagickFalse,exception);\n          SetImageChannelMask(pIVar7,CVar26);\n        }\n        pcVar8 = GetImageArtifact(pIVar7,"psd:opacity-mask");\n        if ((pcVar8 != (char *)0x0) &&\n           (next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception),\n           next_image != (Image *)0x0)) {\n          if ((compression == RLECompression) &&\n             (local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0)) goto LAB_0029dbfc;\n          sVar25 = WritePSDChannel(psd_info,image_info,image,next_image,RedQuantum,\n                                   (uchar *)local_1178,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n          if (psd_info->version == 1) {\n            WriteBlobLong(image,sVar25);\n          }\n          else {\n            WriteBlobLongLong(image,(ulonglong)sVar25);\n          }\n          SeekBlob(image,MVar39,0);\n          sVar31 = sVar31 + sVar25;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (sVar31 == 0) {\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + sVar31;\n        pIVar7 = GetNextImageInList(pIVar7);\n        local_1150 = local_1150 + 2;\n      } while (pIVar7 != (Image *)0x0);\n    }" if (parenthesized_expression "(pIVar6 != (Image *)0x0)" ( (binary_expression "pIVar6 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar27 = 0;\n      local_1178 = pIVar6;\n      do {\n        pcVar8 = GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = (Image *)0x0;\n        }\n        else {\n          local_1174 = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception);\n          sVar9 = strlen(pcVar8);\n          local_1103 = -(sVar9 == 9);\n        }\n        sVar10 = WriteBlobSignedLong(image,(local_1178->page).y);\n        sVar11 = WriteBlobSignedLong(image,(local_1178->page).x);\n        sVar12 = WriteBlobSignedLong(image,local_1178->rows + (local_1178->page).y);\n        sVar13 = WriteBlobSignedLong(image,local_1178->columns + (local_1178->page).x);\n        if ((local_1178->storage_class == PseudoClass) ||\n           (MVar14 = IsImageGray(local_1178), MVar14 != MagickFalse)) {\n          sVar5 = 2;\n          local_115c = 1;\n          sVar28 = 1;\n        }\n        else {\n          sVar5 = (local_1178->colorspace == CMYKColorspace) + 4;\n          local_115c = (local_1178->colorspace == CMYKColorspace) + 3;\n          sVar28 = (local_1178->colorspace == CMYKColorspace) + 3;\n        }\n        if (local_1178->alpha_trait == UndefinedPixelTrait) {\n          sVar5 = sVar28;\n        }\n        sVar15 = WriteBlobShort(image,(sVar5 + 1) - (ushort)(local_1174 == (Image *)0x0));\n        iVar27 = iVar27 + 1;\n        local_116c = sVar15 + local_1130 + sVar10 + sVar11 + sVar12 + sVar13;\n        MVar39 = TellBlob(image);\n        memory[iVar27 * 2 + -2] = (uint)MVar39;\n        memory[iVar27 * 2 + -1] = (uint)((ulonglong)MVar39 >> 0x20);\n        iVar35 = 0;\n        do {\n          while (sVar10 = WriteBlobShort(image,(ushort)iVar35), psd_info->version != 1) {\n            iVar35 = iVar35 + 1;\n            sVar11 = WriteBlobLongLong(image,0);\n            local_116c = local_116c + sVar10 + sVar11;\n            if (iVar35 == local_115c) {\n              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar35 = iVar35 + 1;\n          sVar11 = WriteBlobLong(image,0);\n          local_116c = local_116c + sVar10 + sVar11;\n        } while (local_115c != iVar35);\n        if (local_1178->alpha_trait != UndefinedPixelTrait) {\nLAB_0029cb4b:\n          sVar10 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\nLAB_0029ca7f:\n        if (local_1174 != (Image *)0x0) {\n          sVar10 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\n        pcVar8 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar8 = "MIB8";\n        }\n        sVar10 = WriteBlobString(image,pcVar8);\n        switch(local_1178->compose) {\n        case ColorBurnCompositeOp:\n          pcVar8 = "idiv";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar8 = "div ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar8 = "colr";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar8 = "dark";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar8 = "diff";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar8 = "diss";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar8 = "smud";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar8 = "hLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar8 = "hMix";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar8 = "hue ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar8 = "lite";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar8 = "lbrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar8 = "lddg";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar8 = "lLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar8 = "lum ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar8 = "mul ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar8 = "over";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar8 = "pLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar8 = "sat ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar8 = "scrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar8 = "sLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar8 = "vLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLv";\n          }\n        }\n        sVar11 = WriteBlobString(image,pcVar8);\n        iVar35 = local_116c + sVar10 + sVar11;\n        pcVar8 = GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          sVar10 = WriteBlobByte(image,0xff);\n          iVar35 = iVar35 + sVar10;\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          dVar4 = (double)lVar16;\n          value = '\0';\n          if (0.0 < dVar4) {\n            value = 0xff;\n            if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          sVar10 = WriteBlobByte(image,value);\n          iVar35 = iVar35 + sVar10;\n          if (local_1178->debug != MagickFalse) {\n            uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);\n            LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);\n          }\n          if ((float)lVar16 != DAT_002df8a8) {\n            if (local_1178->alpha_trait != BlendPixelTrait) {\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }\n            CVar17 = GetImagePixelCacheType(local_1178);\n            if (((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }\n            else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = exception;\n            local_10ec = local_1178;\n            local_10f4 = dVar4;\n            GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);\n          }\n        }\n        sVar10 = WriteBlobByte(image,'\0');\n        sVar11 = WriteBlobByte(image,(local_1178->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar12 = WriteBlobByte(image,'\0');\n        iVar35 = sVar12 + iVar35 + sVar10 + sVar11;\n        puVar32 = &DAT_0034d420;\n        pacVar36 = allowed;\n        for (iVar18 = 0x2d; iVar18 != 0; iVar18 = iVar18 + -1) {\n          *(undefined4 *)*pacVar36 = *puVar32;\n          puVar32 = puVar32 + (uint)bVar38 * -2 + 1;\n          pacVar36 = (char (*) [5])((int)pacVar36 + (uint)bVar38 * -8 + 4);\n        }\n        pSVar19 = GetImageProfile(local_1178,"psd:additional-info");\n        if (pSVar19 == (StringInfo *)0x0) {\nLAB_0029ddc4:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar8 = GetImageOption(image_info,"psd:additional-info");\n          iVar18 = LocaleCompare(pcVar8,"all");\n          string_info = pSVar19;\n          if (iVar18 != 0) {\n            iVar18 = LocaleCompare(pcVar8,"selective");\n            if (iVar18 == 0) {\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar8 = GetImageProperty(local_1178,"label",exception);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = layer_name;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",SUB84((double)iVar27,0),\n                             (int)((ulonglong)(double)iVar27 >> 0x20));\n        }\n        sVar9 = strlen(pcVar8);\n        uVar33 = sVar9 + 1;\n        if ((uVar33 & 3) != 0) {\n          uVar33 = (uVar33 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar31 = GetStringInfoLength(string_info);\n          uVar33 = uVar33 + sVar31;\n        }\n        if (local_1174 == (Image *)0x0) {\n          sVar10 = WriteBlobLong(image,uVar33 + 8);\n          sVar11 = WriteBlobLong(image,0);\n          iVar35 = sVar10 + sVar11 + iVar35;\n        }\n        else {\n          sVar10 = WriteBlobLong(image,uVar33 + 0x1c);\n          if ((local_1174->compose != NoCompositeOp) &&\n             (local_1178->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_1174->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_1174->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar11 = WriteBlobLong(image,0x14);\n          sVar12 = WriteBlobSignedLong(image,(local_1174->page).y);\n          sVar13 = WriteBlobSignedLong(image,(local_1174->page).x);\n          sVar15 = WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows);\n          sVar21 = WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns);\n          sVar22 = WriteBlobByte(image,local_1103);\n          sVar23 = WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02');\n          sVar24 = WriteBlobMSBShort(image,0);\n          iVar35 = iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +\n                   sVar24;\n        }\n        sVar10 = WriteBlobLong(image,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            sVar12 = WriteBlobByte(image,'\0');\n            iVar18 = 3;\n          }\n          else {\n            sVar12 = WriteBlobByte(image,(uchar)sVar9);\n            sVar11 = WriteBlob(image,sVar9,pcVar8);\n            sVar12 = sVar12 + sVar11;\n            uVar33 = sVar9 + 1 & 3;\n            if (uVar33 == 0) goto LAB_0029d1b9;\n            iVar18 = 4 - uVar33;\n          }\n          iVar34 = 0;\n          do {\n            iVar34 = iVar34 + 1;\n            sVar11 = WriteBlobByte(image,'\0');\n            sVar12 = sVar12 + sVar11;\n          } while (iVar34 != iVar18);\n        }\n        else {\n          sVar12 = WriteBlobByte(image,0xff);\n          sVar11 = WriteBlob(image,0xff,pcVar8);\n          sVar12 = sVar12 + sVar11;\n        }\nLAB_0029d1b9:\n        local_1130 = sVar12 + sVar10 + iVar35;\n        if (string_info != (StringInfo *)0x0) {\n          puVar20 = GetStringInfoDatum(string_info);\n          sVar31 = GetStringInfoLength(string_info);\n          sVar10 = WriteBlob(image,sVar31,puVar20);\n          local_1130 = local_1130 + sVar10;\n        }\n        local_1178 = GetNextImageInList(local_1178);\n        pIVar7 = pIVar6;\n        local_1150 = memory;\n      } while (local_1178 != (Image *)0x0);\n      do {\n        local_1178 = (Image *)0x0;\n        uVar33 = *local_1150;\n        uVar30 = local_1150[1];\n        compression = image_info->compression;\n        if (image_info->compression == UndefinedCompression) {\n          compression = pIVar7->compression;\n        }\n        if ((compression == RLECompression) &&\n           (local_1178 = (Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1),\n           next_image = pIVar7, local_1178 == (Image *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,\n                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename);\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar29 = uVar33 + 2;\n        iVar27 = uVar30 + (0xfffffffd < uVar33);\n        if ((pIVar7->storage_class == PseudoClass) &&\n           (MVar14 = IsImageGray(pIVar7), MVar14 == MagickFalse)) {\n          sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178\n                                   ,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n          if (psd_info->version == 1) {\n            sVar10 = WriteBlobLong(image,sVar31);\n          }\n          else {\n            sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n          }\n          uVar33 = sVar10 + 2;\n          SeekBlob(image,MVar39,0);\n          local_115c = uVar33 + uVar29;\n          local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n        }\n        else {\n          MVar14 = IsImageGray(pIVar7);\n          if (MVar14 == MagickFalse) {\n            if (pIVar7->colorspace == CMYKColorspace) {\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar30 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar33 = uVar30 + uVar29;\n            iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);\n            value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar33),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,value_00);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }\n            uVar29 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar30 = uVar29 + uVar33;\n            iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar30),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar30;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);\n            sVar31 = sVar25 + value_00 + sVar31;\n            if (pIVar7->colorspace == CMYKColorspace) {\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }\n          }\n          else {\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar29;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n          }\n          if (pIVar7->alpha_trait != UndefinedPixelTrait) {\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            bVar37 = CARRY4(local_115c,uVar33);\n            local_115c = local_115c + uVar33;\n            local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n            sVar31 = sVar31 + sVar25;\n          }\n        }\n        local_1178 = (Image *)RelinquishMagickMemory(local_1178);\n        if (pIVar7->colorspace == CMYKColorspace) {\n          CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n          NegateImage(pIVar7,MagickFalse,exception);\n          SetImageChannelMask(pIVar7,CVar26);\n        }\n        pcVar8 = GetImageArtifact(pIVar7,"psd:opacity-mask");\n        if ((pcVar8 != (char *)0x0) &&\n           (next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception),\n           next_image != (Image *)0x0)) {\n          if ((compression == RLECompression) &&\n             (local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0)) goto LAB_0029dbfc;\n          sVar25 = WritePSDChannel(psd_info,image_info,image,next_image,RedQuantum,\n                                   (uchar *)local_1178,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n          if (psd_info->version == 1) {\n            WriteBlobLong(image,sVar25);\n          }\n          else {\n            WriteBlobLongLong(image,(ulonglong)sVar25);\n          }\n          SeekBlob(image,MVar39,0);\n          sVar31 = sVar31 + sVar25;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (sVar31 == 0) {\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + sVar31;\n        pIVar7 = GetNextImageInList(pIVar7);\n        local_1150 = local_1150 + 2;\n      } while (pIVar7 != (Image *)0x0);\n    }" { (expression_statement "iVar27 = 0;" (assignment_expression "iVar27 = 0" identifier = number_literal) ;) (expression_statement "local_1178 = pIVar6;" (assignment_expression "local_1178 = pIVar6" identifier = identifier) ;) (do_statement "do {\n        pcVar8 = GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = (Image *)0x0;\n        }\n        else {\n          local_1174 = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception);\n          sVar9 = strlen(pcVar8);\n          local_1103 = -(sVar9 == 9);\n        }\n        sVar10 = WriteBlobSignedLong(image,(local_1178->page).y);\n        sVar11 = WriteBlobSignedLong(image,(local_1178->page).x);\n        sVar12 = WriteBlobSignedLong(image,local_1178->rows + (local_1178->page).y);\n        sVar13 = WriteBlobSignedLong(image,local_1178->columns + (local_1178->page).x);\n        if ((local_1178->storage_class == PseudoClass) ||\n           (MVar14 = IsImageGray(local_1178), MVar14 != MagickFalse)) {\n          sVar5 = 2;\n          local_115c = 1;\n          sVar28 = 1;\n        }\n        else {\n          sVar5 = (local_1178->colorspace == CMYKColorspace) + 4;\n          local_115c = (local_1178->colorspace == CMYKColorspace) + 3;\n          sVar28 = (local_1178->colorspace == CMYKColorspace) + 3;\n        }\n        if (local_1178->alpha_trait == UndefinedPixelTrait) {\n          sVar5 = sVar28;\n        }\n        sVar15 = WriteBlobShort(image,(sVar5 + 1) - (ushort)(local_1174 == (Image *)0x0));\n        iVar27 = iVar27 + 1;\n        local_116c = sVar15 + local_1130 + sVar10 + sVar11 + sVar12 + sVar13;\n        MVar39 = TellBlob(image);\n        memory[iVar27 * 2 + -2] = (uint)MVar39;\n        memory[iVar27 * 2 + -1] = (uint)((ulonglong)MVar39 >> 0x20);\n        iVar35 = 0;\n        do {\n          while (sVar10 = WriteBlobShort(image,(ushort)iVar35), psd_info->version != 1) {\n            iVar35 = iVar35 + 1;\n            sVar11 = WriteBlobLongLong(image,0);\n            local_116c = local_116c + sVar10 + sVar11;\n            if (iVar35 == local_115c) {\n              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar35 = iVar35 + 1;\n          sVar11 = WriteBlobLong(image,0);\n          local_116c = local_116c + sVar10 + sVar11;\n        } while (local_115c != iVar35);\n        if (local_1178->alpha_trait != UndefinedPixelTrait) {\nLAB_0029cb4b:\n          sVar10 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\nLAB_0029ca7f:\n        if (local_1174 != (Image *)0x0) {\n          sVar10 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\n        pcVar8 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar8 = "MIB8";\n        }\n        sVar10 = WriteBlobString(image,pcVar8);\n        switch(local_1178->compose) {\n        case ColorBurnCompositeOp:\n          pcVar8 = "idiv";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar8 = "div ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar8 = "colr";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar8 = "dark";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar8 = "diff";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar8 = "diss";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar8 = "smud";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar8 = "hLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar8 = "hMix";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar8 = "hue ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar8 = "lite";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar8 = "lbrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar8 = "lddg";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar8 = "lLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar8 = "lum ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar8 = "mul ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar8 = "over";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar8 = "pLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar8 = "sat ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar8 = "scrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar8 = "sLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar8 = "vLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLv";\n          }\n        }\n        sVar11 = WriteBlobString(image,pcVar8);\n        iVar35 = local_116c + sVar10 + sVar11;\n        pcVar8 = GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          sVar10 = WriteBlobByte(image,0xff);\n          iVar35 = iVar35 + sVar10;\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          dVar4 = (double)lVar16;\n          value = '\0';\n          if (0.0 < dVar4) {\n            value = 0xff;\n            if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          sVar10 = WriteBlobByte(image,value);\n          iVar35 = iVar35 + sVar10;\n          if (local_1178->debug != MagickFalse) {\n            uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);\n            LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);\n          }\n          if ((float)lVar16 != DAT_002df8a8) {\n            if (local_1178->alpha_trait != BlendPixelTrait) {\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }\n            CVar17 = GetImagePixelCacheType(local_1178);\n            if (((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }\n            else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = exception;\n            local_10ec = local_1178;\n            local_10f4 = dVar4;\n            GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);\n          }\n        }\n        sVar10 = WriteBlobByte(image,'\0');\n        sVar11 = WriteBlobByte(image,(local_1178->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar12 = WriteBlobByte(image,'\0');\n        iVar35 = sVar12 + iVar35 + sVar10 + sVar11;\n        puVar32 = &DAT_0034d420;\n        pacVar36 = allowed;\n        for (iVar18 = 0x2d; iVar18 != 0; iVar18 = iVar18 + -1) {\n          *(undefined4 *)*pacVar36 = *puVar32;\n          puVar32 = puVar32 + (uint)bVar38 * -2 + 1;\n          pacVar36 = (char (*) [5])((int)pacVar36 + (uint)bVar38 * -8 + 4);\n        }\n        pSVar19 = GetImageProfile(local_1178,"psd:additional-info");\n        if (pSVar19 == (StringInfo *)0x0) {\nLAB_0029ddc4:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar8 = GetImageOption(image_info,"psd:additional-info");\n          iVar18 = LocaleCompare(pcVar8,"all");\n          string_info = pSVar19;\n          if (iVar18 != 0) {\n            iVar18 = LocaleCompare(pcVar8,"selective");\n            if (iVar18 == 0) {\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar8 = GetImageProperty(local_1178,"label",exception);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = layer_name;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",SUB84((double)iVar27,0),\n                             (int)((ulonglong)(double)iVar27 >> 0x20));\n        }\n        sVar9 = strlen(pcVar8);\n        uVar33 = sVar9 + 1;\n        if ((uVar33 & 3) != 0) {\n          uVar33 = (uVar33 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar31 = GetStringInfoLength(string_info);\n          uVar33 = uVar33 + sVar31;\n        }\n        if (local_1174 == (Image *)0x0) {\n          sVar10 = WriteBlobLong(image,uVar33 + 8);\n          sVar11 = WriteBlobLong(image,0);\n          iVar35 = sVar10 + sVar11 + iVar35;\n        }\n        else {\n          sVar10 = WriteBlobLong(image,uVar33 + 0x1c);\n          if ((local_1174->compose != NoCompositeOp) &&\n             (local_1178->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_1174->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_1174->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar11 = WriteBlobLong(image,0x14);\n          sVar12 = WriteBlobSignedLong(image,(local_1174->page).y);\n          sVar13 = WriteBlobSignedLong(image,(local_1174->page).x);\n          sVar15 = WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows);\n          sVar21 = WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns);\n          sVar22 = WriteBlobByte(image,local_1103);\n          sVar23 = WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02');\n          sVar24 = WriteBlobMSBShort(image,0);\n          iVar35 = iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +\n                   sVar24;\n        }\n        sVar10 = WriteBlobLong(image,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            sVar12 = WriteBlobByte(image,'\0');\n            iVar18 = 3;\n          }\n          else {\n            sVar12 = WriteBlobByte(image,(uchar)sVar9);\n            sVar11 = WriteBlob(image,sVar9,pcVar8);\n            sVar12 = sVar12 + sVar11;\n            uVar33 = sVar9 + 1 & 3;\n            if (uVar33 == 0) goto LAB_0029d1b9;\n            iVar18 = 4 - uVar33;\n          }\n          iVar34 = 0;\n          do {\n            iVar34 = iVar34 + 1;\n            sVar11 = WriteBlobByte(image,'\0');\n            sVar12 = sVar12 + sVar11;\n          } while (iVar34 != iVar18);\n        }\n        else {\n          sVar12 = WriteBlobByte(image,0xff);\n          sVar11 = WriteBlob(image,0xff,pcVar8);\n          sVar12 = sVar12 + sVar11;\n        }\nLAB_0029d1b9:\n        local_1130 = sVar12 + sVar10 + iVar35;\n        if (string_info != (StringInfo *)0x0) {\n          puVar20 = GetStringInfoDatum(string_info);\n          sVar31 = GetStringInfoLength(string_info);\n          sVar10 = WriteBlob(image,sVar31,puVar20);\n          local_1130 = local_1130 + sVar10;\n        }\n        local_1178 = GetNextImageInList(local_1178);\n        pIVar7 = pIVar6;\n        local_1150 = memory;\n      } while (local_1178 != (Image *)0x0);" do (compound_statement "{\n        pcVar8 = GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = (Image *)0x0;\n        }\n        else {\n          local_1174 = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception);\n          sVar9 = strlen(pcVar8);\n          local_1103 = -(sVar9 == 9);\n        }\n        sVar10 = WriteBlobSignedLong(image,(local_1178->page).y);\n        sVar11 = WriteBlobSignedLong(image,(local_1178->page).x);\n        sVar12 = WriteBlobSignedLong(image,local_1178->rows + (local_1178->page).y);\n        sVar13 = WriteBlobSignedLong(image,local_1178->columns + (local_1178->page).x);\n        if ((local_1178->storage_class == PseudoClass) ||\n           (MVar14 = IsImageGray(local_1178), MVar14 != MagickFalse)) {\n          sVar5 = 2;\n          local_115c = 1;\n          sVar28 = 1;\n        }\n        else {\n          sVar5 = (local_1178->colorspace == CMYKColorspace) + 4;\n          local_115c = (local_1178->colorspace == CMYKColorspace) + 3;\n          sVar28 = (local_1178->colorspace == CMYKColorspace) + 3;\n        }\n        if (local_1178->alpha_trait == UndefinedPixelTrait) {\n          sVar5 = sVar28;\n        }\n        sVar15 = WriteBlobShort(image,(sVar5 + 1) - (ushort)(local_1174 == (Image *)0x0));\n        iVar27 = iVar27 + 1;\n        local_116c = sVar15 + local_1130 + sVar10 + sVar11 + sVar12 + sVar13;\n        MVar39 = TellBlob(image);\n        memory[iVar27 * 2 + -2] = (uint)MVar39;\n        memory[iVar27 * 2 + -1] = (uint)((ulonglong)MVar39 >> 0x20);\n        iVar35 = 0;\n        do {\n          while (sVar10 = WriteBlobShort(image,(ushort)iVar35), psd_info->version != 1) {\n            iVar35 = iVar35 + 1;\n            sVar11 = WriteBlobLongLong(image,0);\n            local_116c = local_116c + sVar10 + sVar11;\n            if (iVar35 == local_115c) {\n              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar35 = iVar35 + 1;\n          sVar11 = WriteBlobLong(image,0);\n          local_116c = local_116c + sVar10 + sVar11;\n        } while (local_115c != iVar35);\n        if (local_1178->alpha_trait != UndefinedPixelTrait) {\nLAB_0029cb4b:\n          sVar10 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\nLAB_0029ca7f:\n        if (local_1174 != (Image *)0x0) {\n          sVar10 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }\n        pcVar8 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar8 = "MIB8";\n        }\n        sVar10 = WriteBlobString(image,pcVar8);\n        switch(local_1178->compose) {\n        case ColorBurnCompositeOp:\n          pcVar8 = "idiv";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar8 = "div ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar8 = "colr";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar8 = "dark";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar8 = "diff";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar8 = "diss";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar8 = "smud";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar8 = "hLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar8 = "hMix";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar8 = "hue ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar8 = "lite";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar8 = "lbrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar8 = "lddg";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar8 = "lLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar8 = "lum ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar8 = "mul ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar8 = "over";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar8 = "pLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar8 = "sat ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar8 = "scrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar8 = "sLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar8 = "vLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLv";\n          }\n        }\n        sVar11 = WriteBlobString(image,pcVar8);\n        iVar35 = local_116c + sVar10 + sVar11;\n        pcVar8 = GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          sVar10 = WriteBlobByte(image,0xff);\n          iVar35 = iVar35 + sVar10;\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          dVar4 = (double)lVar16;\n          value = '\0';\n          if (0.0 < dVar4) {\n            value = 0xff;\n            if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          sVar10 = WriteBlobByte(image,value);\n          iVar35 = iVar35 + sVar10;\n          if (local_1178->debug != MagickFalse) {\n            uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);\n            LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);\n          }\n          if ((float)lVar16 != DAT_002df8a8) {\n            if (local_1178->alpha_trait != BlendPixelTrait) {\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }\n            CVar17 = GetImagePixelCacheType(local_1178);\n            if (((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }\n            else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = exception;\n            local_10ec = local_1178;\n            local_10f4 = dVar4;\n            GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);\n          }\n        }\n        sVar10 = WriteBlobByte(image,'\0');\n        sVar11 = WriteBlobByte(image,(local_1178->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar12 = WriteBlobByte(image,'\0');\n        iVar35 = sVar12 + iVar35 + sVar10 + sVar11;\n        puVar32 = &DAT_0034d420;\n        pacVar36 = allowed;\n        for (iVar18 = 0x2d; iVar18 != 0; iVar18 = iVar18 + -1) {\n          *(undefined4 *)*pacVar36 = *puVar32;\n          puVar32 = puVar32 + (uint)bVar38 * -2 + 1;\n          pacVar36 = (char (*) [5])((int)pacVar36 + (uint)bVar38 * -8 + 4);\n        }\n        pSVar19 = GetImageProfile(local_1178,"psd:additional-info");\n        if (pSVar19 == (StringInfo *)0x0) {\nLAB_0029ddc4:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar8 = GetImageOption(image_info,"psd:additional-info");\n          iVar18 = LocaleCompare(pcVar8,"all");\n          string_info = pSVar19;\n          if (iVar18 != 0) {\n            iVar18 = LocaleCompare(pcVar8,"selective");\n            if (iVar18 == 0) {\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar8 = GetImageProperty(local_1178,"label",exception);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = layer_name;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",SUB84((double)iVar27,0),\n                             (int)((ulonglong)(double)iVar27 >> 0x20));\n        }\n        sVar9 = strlen(pcVar8);\n        uVar33 = sVar9 + 1;\n        if ((uVar33 & 3) != 0) {\n          uVar33 = (uVar33 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar31 = GetStringInfoLength(string_info);\n          uVar33 = uVar33 + sVar31;\n        }\n        if (local_1174 == (Image *)0x0) {\n          sVar10 = WriteBlobLong(image,uVar33 + 8);\n          sVar11 = WriteBlobLong(image,0);\n          iVar35 = sVar10 + sVar11 + iVar35;\n        }\n        else {\n          sVar10 = WriteBlobLong(image,uVar33 + 0x1c);\n          if ((local_1174->compose != NoCompositeOp) &&\n             (local_1178->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_1174->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_1174->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar11 = WriteBlobLong(image,0x14);\n          sVar12 = WriteBlobSignedLong(image,(local_1174->page).y);\n          sVar13 = WriteBlobSignedLong(image,(local_1174->page).x);\n          sVar15 = WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows);\n          sVar21 = WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns);\n          sVar22 = WriteBlobByte(image,local_1103);\n          sVar23 = WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02');\n          sVar24 = WriteBlobMSBShort(image,0);\n          iVar35 = iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +\n                   sVar24;\n        }\n        sVar10 = WriteBlobLong(image,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            sVar12 = WriteBlobByte(image,'\0');\n            iVar18 = 3;\n          }\n          else {\n            sVar12 = WriteBlobByte(image,(uchar)sVar9);\n            sVar11 = WriteBlob(image,sVar9,pcVar8);\n            sVar12 = sVar12 + sVar11;\n            uVar33 = sVar9 + 1 & 3;\n            if (uVar33 == 0) goto LAB_0029d1b9;\n            iVar18 = 4 - uVar33;\n          }\n          iVar34 = 0;\n          do {\n            iVar34 = iVar34 + 1;\n            sVar11 = WriteBlobByte(image,'\0');\n            sVar12 = sVar12 + sVar11;\n          } while (iVar34 != iVar18);\n        }\n        else {\n          sVar12 = WriteBlobByte(image,0xff);\n          sVar11 = WriteBlob(image,0xff,pcVar8);\n          sVar12 = sVar12 + sVar11;\n        }\nLAB_0029d1b9:\n        local_1130 = sVar12 + sVar10 + iVar35;\n        if (string_info != (StringInfo *)0x0) {\n          puVar20 = GetStringInfoDatum(string_info);\n          sVar31 = GetStringInfoLength(string_info);\n          sVar10 = WriteBlob(image,sVar31,puVar20);\n          local_1130 = local_1130 + sVar10;\n        }\n        local_1178 = GetNextImageInList(local_1178);\n        pIVar7 = pIVar6;\n        local_1150 = memory;\n      }" { (expression_statement "pcVar8 = GetImageArtifact(local_1178,"psd:opacity-mask");" (assignment_expression "pcVar8 = GetImageArtifact(local_1178,"psd:opacity-mask")" identifier = (call_expression "GetImageArtifact(local_1178,"psd:opacity-mask")" identifier (argument_list "(local_1178,"psd:opacity-mask")" ( identifier , (string_literal ""psd:opacity-mask"" " string_content ") )))) ;) (if_statement "if (pcVar8 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = (Image *)0x0;\n        }\n        else {\n          local_1174 = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception);\n          sVar9 = strlen(pcVar8);\n          local_1103 = -(sVar9 == 9);\n        }" if (parenthesized_expression "(pcVar8 == (char *)0x0)" ( (binary_expression "pcVar8 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          local_1103 = 0;\n          local_1174 = (Image *)0x0;\n        }" { (expression_statement "local_1103 = 0;" (assignment_expression "local_1103 = 0" identifier = number_literal) ;) (expression_statement "local_1174 = (Image *)0x0;" (assignment_expression "local_1174 = (Image *)0x0" identifier = (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n          local_1174 = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception);\n          sVar9 = strlen(pcVar8);\n          local_1103 = -(sVar9 == 9);\n        }" else (compound_statement "{\n          local_1174 = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception);\n          sVar9 = strlen(pcVar8);\n          local_1103 = -(sVar9 == 9);\n        }" { (expression_statement "local_1174 = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception);" (assignment_expression "local_1174 = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception)" identifier = (cast_expression "(Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageRegistry(ImageRegistryType,pcVar8,exception)" identifier (argument_list "(ImageRegistryType,pcVar8,exception)" ( identifier , identifier , identifier ))))) ;) (expression_statement "sVar9 = strlen(pcVar8);" (assignment_expression "sVar9 = strlen(pcVar8)" identifier = (call_expression "strlen(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier )))) ;) (expression_statement "local_1103 = -(sVar9 == 9);" (assignment_expression "local_1103 = -(sVar9 == 9)" identifier = (unary_expression "-(sVar9 == 9)" - (parenthesized_expression "(sVar9 == 9)" ( (binary_expression "sVar9 == 9" identifier == number_literal) )))) ;) }))) (expression_statement "sVar10 = WriteBlobSignedLong(image,(local_1178->page).y);" (assignment_expression "sVar10 = WriteBlobSignedLong(image,(local_1178->page).y)" identifier = (call_expression "WriteBlobSignedLong(image,(local_1178->page).y)" identifier (argument_list "(image,(local_1178->page).y)" ( identifier , (field_expression "(local_1178->page).y" (parenthesized_expression "(local_1178->page)" ( (field_expression "local_1178->page" identifier -> field_identifier) )) . field_identifier) )))) ;) (expression_statement "sVar11 = WriteBlobSignedLong(image,(local_1178->page).x);" (assignment_expression "sVar11 = WriteBlobSignedLong(image,(local_1178->page).x)" identifier = (call_expression "WriteBlobSignedLong(image,(local_1178->page).x)" identifier (argument_list "(image,(local_1178->page).x)" ( identifier , (field_expression "(local_1178->page).x" (parenthesized_expression "(local_1178->page)" ( (field_expression "local_1178->page" identifier -> field_identifier) )) . field_identifier) )))) ;) (expression_statement "sVar12 = WriteBlobSignedLong(image,local_1178->rows + (local_1178->page).y);" (assignment_expression "sVar12 = WriteBlobSignedLong(image,local_1178->rows + (local_1178->page).y)" identifier = (call_expression "WriteBlobSignedLong(image,local_1178->rows + (local_1178->page).y)" identifier (argument_list "(image,local_1178->rows + (local_1178->page).y)" ( identifier , (binary_expression "local_1178->rows + (local_1178->page).y" (field_expression "local_1178->rows" identifier -> field_identifier) + (field_expression "(local_1178->page).y" (parenthesized_expression "(local_1178->page)" ( (field_expression "local_1178->page" identifier -> field_identifier) )) . field_identifier)) )))) ;) (expression_statement "sVar13 = WriteBlobSignedLong(image,local_1178->columns + (local_1178->page).x);" (assignment_expression "sVar13 = WriteBlobSignedLong(image,local_1178->columns + (local_1178->page).x)" identifier = (call_expression "WriteBlobSignedLong(image,local_1178->columns + (local_1178->page).x)" identifier (argument_list "(image,local_1178->columns + (local_1178->page).x)" ( identifier , (binary_expression "local_1178->columns + (local_1178->page).x" (field_expression "local_1178->columns" identifier -> field_identifier) + (field_expression "(local_1178->page).x" (parenthesized_expression "(local_1178->page)" ( (field_expression "local_1178->page" identifier -> field_identifier) )) . field_identifier)) )))) ;) (if_statement "if ((local_1178->storage_class == PseudoClass) ||\n           (MVar14 = IsImageGray(local_1178), MVar14 != MagickFalse)) {\n          sVar5 = 2;\n          local_115c = 1;\n          sVar28 = 1;\n        }\n        else {\n          sVar5 = (local_1178->colorspace == CMYKColorspace) + 4;\n          local_115c = (local_1178->colorspace == CMYKColorspace) + 3;\n          sVar28 = (local_1178->colorspace == CMYKColorspace) + 3;\n        }" if (parenthesized_expression "((local_1178->storage_class == PseudoClass) ||\n           (MVar14 = IsImageGray(local_1178), MVar14 != MagickFalse))" ( (binary_expression "(local_1178->storage_class == PseudoClass) ||\n           (MVar14 = IsImageGray(local_1178), MVar14 != MagickFalse)" (parenthesized_expression "(local_1178->storage_class == PseudoClass)" ( (binary_expression "local_1178->storage_class == PseudoClass" (field_expression "local_1178->storage_class" identifier -> field_identifier) == identifier) )) || (parenthesized_expression "(MVar14 = IsImageGray(local_1178), MVar14 != MagickFalse)" ( (comma_expression "MVar14 = IsImageGray(local_1178), MVar14 != MagickFalse" (assignment_expression "MVar14 = IsImageGray(local_1178)" identifier = (call_expression "IsImageGray(local_1178)" identifier (argument_list "(local_1178)" ( identifier )))) , (binary_expression "MVar14 != MagickFalse" identifier != identifier)) ))) )) (compound_statement "{\n          sVar5 = 2;\n          local_115c = 1;\n          sVar28 = 1;\n        }" { (expression_statement "sVar5 = 2;" (assignment_expression "sVar5 = 2" identifier = number_literal) ;) (expression_statement "local_115c = 1;" (assignment_expression "local_115c = 1" identifier = number_literal) ;) (expression_statement "sVar28 = 1;" (assignment_expression "sVar28 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          sVar5 = (local_1178->colorspace == CMYKColorspace) + 4;\n          local_115c = (local_1178->colorspace == CMYKColorspace) + 3;\n          sVar28 = (local_1178->colorspace == CMYKColorspace) + 3;\n        }" else (compound_statement "{\n          sVar5 = (local_1178->colorspace == CMYKColorspace) + 4;\n          local_115c = (local_1178->colorspace == CMYKColorspace) + 3;\n          sVar28 = (local_1178->colorspace == CMYKColorspace) + 3;\n        }" { (expression_statement "sVar5 = (local_1178->colorspace == CMYKColorspace) + 4;" (assignment_expression "sVar5 = (local_1178->colorspace == CMYKColorspace) + 4" identifier = (binary_expression "(local_1178->colorspace == CMYKColorspace) + 4" (parenthesized_expression "(local_1178->colorspace == CMYKColorspace)" ( (binary_expression "local_1178->colorspace == CMYKColorspace" (field_expression "local_1178->colorspace" identifier -> field_identifier) == identifier) )) + number_literal)) ;) (expression_statement "local_115c = (local_1178->colorspace == CMYKColorspace) + 3;" (assignment_expression "local_115c = (local_1178->colorspace == CMYKColorspace) + 3" identifier = (binary_expression "(local_1178->colorspace == CMYKColorspace) + 3" (parenthesized_expression "(local_1178->colorspace == CMYKColorspace)" ( (binary_expression "local_1178->colorspace == CMYKColorspace" (field_expression "local_1178->colorspace" identifier -> field_identifier) == identifier) )) + number_literal)) ;) (expression_statement "sVar28 = (local_1178->colorspace == CMYKColorspace) + 3;" (assignment_expression "sVar28 = (local_1178->colorspace == CMYKColorspace) + 3" identifier = (binary_expression "(local_1178->colorspace == CMYKColorspace) + 3" (parenthesized_expression "(local_1178->colorspace == CMYKColorspace)" ( (binary_expression "local_1178->colorspace == CMYKColorspace" (field_expression "local_1178->colorspace" identifier -> field_identifier) == identifier) )) + number_literal)) ;) }))) (if_statement "if (local_1178->alpha_trait == UndefinedPixelTrait) {\n          sVar5 = sVar28;\n        }" if (parenthesized_expression "(local_1178->alpha_trait == UndefinedPixelTrait)" ( (binary_expression "local_1178->alpha_trait == UndefinedPixelTrait" (field_expression "local_1178->alpha_trait" identifier -> field_identifier) == identifier) )) (compound_statement "{\n          sVar5 = sVar28;\n        }" { (expression_statement "sVar5 = sVar28;" (assignment_expression "sVar5 = sVar28" identifier = identifier) ;) })) (expression_statement "sVar15 = WriteBlobShort(image,(sVar5 + 1) - (ushort)(local_1174 == (Image *)0x0));" (assignment_expression "sVar15 = WriteBlobShort(image,(sVar5 + 1) - (ushort)(local_1174 == (Image *)0x0))" identifier = (call_expression "WriteBlobShort(image,(sVar5 + 1) - (ushort)(local_1174 == (Image *)0x0))" identifier (argument_list "(image,(sVar5 + 1) - (ushort)(local_1174 == (Image *)0x0))" ( identifier , (binary_expression "(sVar5 + 1) - (ushort)(local_1174 == (Image *)0x0)" (parenthesized_expression "(sVar5 + 1)" ( (binary_expression "sVar5 + 1" identifier + number_literal) )) - (call_expression "(ushort)(local_1174 == (Image *)0x0)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(local_1174 == (Image *)0x0)" ( (binary_expression "local_1174 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )))) )))) ;) (expression_statement "iVar27 = iVar27 + 1;" (assignment_expression "iVar27 = iVar27 + 1" identifier = (binary_expression "iVar27 + 1" identifier + number_literal)) ;) (expression_statement "local_116c = sVar15 + local_1130 + sVar10 + sVar11 + sVar12 + sVar13;" (assignment_expression "local_116c = sVar15 + local_1130 + sVar10 + sVar11 + sVar12 + sVar13" identifier = (binary_expression "sVar15 + local_1130 + sVar10 + sVar11 + sVar12 + sVar13" (binary_expression "sVar15 + local_1130 + sVar10 + sVar11 + sVar12" (binary_expression "sVar15 + local_1130 + sVar10 + sVar11" (binary_expression "sVar15 + local_1130 + sVar10" (binary_expression "sVar15 + local_1130" identifier + identifier) + identifier) + identifier) + identifier) + identifier)) ;) (expression_statement "MVar39 = TellBlob(image);" (assignment_expression "MVar39 = TellBlob(image)" identifier = (call_expression "TellBlob(image)" identifier (argument_list "(image)" ( identifier )))) ;) (expression_statement "memory[iVar27 * 2 + -2] = (uint)MVar39;" (assignment_expression "memory[iVar27 * 2 + -2] = (uint)MVar39" (subscript_expression "memory[iVar27 * 2 + -2]" identifier [ (binary_expression "iVar27 * 2 + -2" (binary_expression "iVar27 * 2" identifier * number_literal) + number_literal) ]) = (cast_expression "(uint)MVar39" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "memory[iVar27 * 2 + -1] = (uint)((ulonglong)MVar39 >> 0x20);" (assignment_expression "memory[iVar27 * 2 + -1] = (uint)((ulonglong)MVar39 >> 0x20)" (subscript_expression "memory[iVar27 * 2 + -1]" identifier [ (binary_expression "iVar27 * 2 + -1" (binary_expression "iVar27 * 2" identifier * number_literal) + number_literal) ]) = (call_expression "(uint)((ulonglong)MVar39 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)MVar39 >> 0x20)" ( (binary_expression "(ulonglong)MVar39 >> 0x20" (cast_expression "(ulonglong)MVar39" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar35 = 0;" (assignment_expression "iVar35 = 0" identifier = number_literal) ;) (do_statement "do {\n          while (sVar10 = WriteBlobShort(image,(ushort)iVar35), psd_info->version != 1) {\n            iVar35 = iVar35 + 1;\n            sVar11 = WriteBlobLongLong(image,0);\n            local_116c = local_116c + sVar10 + sVar11;\n            if (iVar35 == local_115c) {\n              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar35 = iVar35 + 1;\n          sVar11 = WriteBlobLong(image,0);\n          local_116c = local_116c + sVar10 + sVar11;\n        } while (local_115c != iVar35);" do (compound_statement "{\n          while (sVar10 = WriteBlobShort(image,(ushort)iVar35), psd_info->version != 1) {\n            iVar35 = iVar35 + 1;\n            sVar11 = WriteBlobLongLong(image,0);\n            local_116c = local_116c + sVar10 + sVar11;\n            if (iVar35 == local_115c) {\n              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar35 = iVar35 + 1;\n          sVar11 = WriteBlobLong(image,0);\n          local_116c = local_116c + sVar10 + sVar11;\n        }" { (while_statement "while (sVar10 = WriteBlobShort(image,(ushort)iVar35), psd_info->version != 1) {\n            iVar35 = iVar35 + 1;\n            sVar11 = WriteBlobLongLong(image,0);\n            local_116c = local_116c + sVar10 + sVar11;\n            if (iVar35 == local_115c) {\n              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }" while (parenthesized_expression "(sVar10 = WriteBlobShort(image,(ushort)iVar35), psd_info->version != 1)" ( (comma_expression "sVar10 = WriteBlobShort(image,(ushort)iVar35), psd_info->version != 1" (assignment_expression "sVar10 = WriteBlobShort(image,(ushort)iVar35)" identifier = (call_expression "WriteBlobShort(image,(ushort)iVar35)" identifier (argument_list "(image,(ushort)iVar35)" ( identifier , (cast_expression "(ushort)iVar35" ( (type_descriptor "ushort" type_identifier) ) identifier) )))) , (binary_expression "psd_info->version != 1" (field_expression "psd_info->version" identifier -> field_identifier) != number_literal)) )) (compound_statement "{\n            iVar35 = iVar35 + 1;\n            sVar11 = WriteBlobLongLong(image,0);\n            local_116c = local_116c + sVar10 + sVar11;\n            if (iVar35 == local_115c) {\n              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }" { (expression_statement "iVar35 = iVar35 + 1;" (assignment_expression "iVar35 = iVar35 + 1" identifier = (binary_expression "iVar35 + 1" identifier + number_literal)) ;) (expression_statement "sVar11 = WriteBlobLongLong(image,0);" (assignment_expression "sVar11 = WriteBlobLongLong(image,0)" identifier = (call_expression "WriteBlobLongLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) (expression_statement "local_116c = local_116c + sVar10 + sVar11;" (assignment_expression "local_116c = local_116c + sVar10 + sVar11" identifier = (binary_expression "local_116c + sVar10 + sVar11" (binary_expression "local_116c + sVar10" identifier + identifier) + identifier)) ;) (if_statement "if (iVar35 == local_115c) {\n              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }" if (parenthesized_expression "(iVar35 == local_115c)" ( (binary_expression "iVar35 == local_115c" identifier == identifier) )) (compound_statement "{\n              if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }" { (if_statement "if (local_1178->alpha_trait == UndefinedPixelTrait) goto LAB_0029ca7f;" if (parenthesized_expression "(local_1178->alpha_trait == UndefinedPixelTrait)" ( (binary_expression "local_1178->alpha_trait == UndefinedPixelTrait" (field_expression "local_1178->alpha_trait" identifier -> field_identifier) == identifier) )) (goto_statement "goto LAB_0029ca7f;" goto statement_identifier ;)) (goto_statement "goto LAB_0029cb4b;" goto statement_identifier ;) })) })) (expression_statement "iVar35 = iVar35 + 1;" (assignment_expression "iVar35 = iVar35 + 1" identifier = (binary_expression "iVar35 + 1" identifier + number_literal)) ;) (expression_statement "sVar11 = WriteBlobLong(image,0);" (assignment_expression "sVar11 = WriteBlobLong(image,0)" identifier = (call_expression "WriteBlobLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) (expression_statement "local_116c = local_116c + sVar10 + sVar11;" (assignment_expression "local_116c = local_116c + sVar10 + sVar11" identifier = (binary_expression "local_116c + sVar10 + sVar11" (binary_expression "local_116c + sVar10" identifier + identifier) + identifier)) ;) }) while (parenthesized_expression "(local_115c != iVar35)" ( (binary_expression "local_115c != iVar35" identifier != identifier) )) ;) (if_statement "if (local_1178->alpha_trait != UndefinedPixelTrait) {\nLAB_0029cb4b:\n          sVar10 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }" if (parenthesized_expression "(local_1178->alpha_trait != UndefinedPixelTrait)" ( (binary_expression "local_1178->alpha_trait != UndefinedPixelTrait" (field_expression "local_1178->alpha_trait" identifier -> field_identifier) != identifier) )) (compound_statement "{\nLAB_0029cb4b:\n          sVar10 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }" { (labeled_statement "LAB_0029cb4b:\n          sVar10 = WriteBlobShort(image,0xffff);" statement_identifier : (expression_statement "sVar10 = WriteBlobShort(image,0xffff);" (assignment_expression "sVar10 = WriteBlobShort(image,0xffff)" identifier = (call_expression "WriteBlobShort(image,0xffff)" identifier (argument_list "(image,0xffff)" ( identifier , number_literal )))) ;)) (if_statement "if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }" if (parenthesized_expression "(psd_info->version == 1)" ( (binary_expression "psd_info->version == 1" (field_expression "psd_info->version" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n            iVar35 = WriteBlobLong(image,0);\n          }" { (expression_statement "iVar35 = WriteBlobLong(image,0);" (assignment_expression "iVar35 = WriteBlobLong(image,0)" identifier = (call_expression "WriteBlobLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }" else (compound_statement "{\n            iVar35 = WriteBlobLongLong(image,0);\n          }" { (expression_statement "iVar35 = WriteBlobLongLong(image,0);" (assignment_expression "iVar35 = WriteBlobLongLong(image,0)" identifier = (call_expression "WriteBlobLongLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) }))) (expression_statement "local_116c = iVar35 + local_116c + sVar10;" (assignment_expression "local_116c = iVar35 + local_116c + sVar10" identifier = (binary_expression "iVar35 + local_116c + sVar10" (binary_expression "iVar35 + local_116c" identifier + identifier) + identifier)) ;) })) (labeled_statement "LAB_0029ca7f:\n        if (local_1174 != (Image *)0x0) {\n          sVar10 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }" statement_identifier : (if_statement "if (local_1174 != (Image *)0x0) {\n          sVar10 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }" if (parenthesized_expression "(local_1174 != (Image *)0x0)" ( (binary_expression "local_1174 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          sVar10 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }\n          local_116c = iVar35 + local_116c + sVar10;\n        }" { (expression_statement "sVar10 = WriteBlobShort(image,0xfffe);" (assignment_expression "sVar10 = WriteBlobShort(image,0xfffe)" identifier = (call_expression "WriteBlobShort(image,0xfffe)" identifier (argument_list "(image,0xfffe)" ( identifier , number_literal )))) ;) (if_statement "if (psd_info->version == 1) {\n            iVar35 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }" if (parenthesized_expression "(psd_info->version == 1)" ( (binary_expression "psd_info->version == 1" (field_expression "psd_info->version" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n            iVar35 = WriteBlobLong(image,0);\n          }" { (expression_statement "iVar35 = WriteBlobLong(image,0);" (assignment_expression "iVar35 = WriteBlobLong(image,0)" identifier = (call_expression "WriteBlobLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n            iVar35 = WriteBlobLongLong(image,0);\n          }" else (compound_statement "{\n            iVar35 = WriteBlobLongLong(image,0);\n          }" { (expression_statement "iVar35 = WriteBlobLongLong(image,0);" (assignment_expression "iVar35 = WriteBlobLongLong(image,0)" identifier = (call_expression "WriteBlobLongLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) }))) (expression_statement "local_116c = iVar35 + local_116c + sVar10;" (assignment_expression "local_116c = iVar35 + local_116c + sVar10" identifier = (binary_expression "iVar35 + local_116c + sVar10" (binary_expression "iVar35 + local_116c" identifier + identifier) + identifier)) ;) }))) (expression_statement "pcVar8 = "8BIM";" (assignment_expression "pcVar8 = "8BIM"" identifier = (string_literal ""8BIM"" " string_content ")) ;) (if_statement "if (image->endian == LSBEndian) {\n          pcVar8 = "MIB8";\n        }" if (parenthesized_expression "(image->endian == LSBEndian)" ( (binary_expression "image->endian == LSBEndian" (field_expression "image->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n          pcVar8 = "MIB8";\n        }" { (expression_statement "pcVar8 = "MIB8";" (assignment_expression "pcVar8 = "MIB8"" identifier = (string_literal ""MIB8"" " string_content ")) ;) })) (expression_statement "sVar10 = WriteBlobString(image,pcVar8);" (assignment_expression "sVar10 = WriteBlobString(image,pcVar8)" identifier = (call_expression "WriteBlobString(image,pcVar8)" identifier (argument_list "(image,pcVar8)" ( identifier , identifier )))) ;) (switch_statement "switch(local_1178->compose) {\n        case ColorBurnCompositeOp:\n          pcVar8 = "idiv";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar8 = "div ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar8 = "colr";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar8 = "dark";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar8 = "diff";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar8 = "diss";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar8 = "smud";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar8 = "hLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar8 = "hMix";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar8 = "hue ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar8 = "lite";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar8 = "lbrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar8 = "lddg";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar8 = "lLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar8 = "lum ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar8 = "mul ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar8 = "over";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar8 = "pLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar8 = "sat ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar8 = "scrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar8 = "sLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar8 = "vLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLv";\n          }\n        }" switch (parenthesized_expression "(local_1178->compose)" ( (field_expression "local_1178->compose" identifier -> field_identifier) )) (compound_statement "{\n        case ColorBurnCompositeOp:\n          pcVar8 = "idiv";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar8 = "div ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar8 = "colr";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar8 = "dark";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar8 = "diff";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar8 = "diss";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar8 = "smud";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar8 = "hLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar8 = "hMix";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar8 = "hue ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar8 = "lite";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar8 = "lbrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar8 = "lddg";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar8 = "lLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar8 = "lum ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar8 = "mul ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar8 = "over";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar8 = "pLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar8 = "sat ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar8 = "scrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar8 = "sLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar8 = "vLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLv";\n          }\n        }" { (case_statement "case ColorBurnCompositeOp:\n          pcVar8 = "idiv";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "vidi";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "idiv";" (assignment_expression "pcVar8 = "idiv"" identifier = (string_literal ""idiv"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "vidi";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "vidi";\n          }" { (expression_statement "pcVar8 = "vidi";" (assignment_expression "pcVar8 = "vidi"" identifier = (string_literal ""vidi"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case ColorDodgeCompositeOp:\n          pcVar8 = "div ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " vid";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "div ";" (assignment_expression "pcVar8 = "div "" identifier = (string_literal ""div "" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = " vid";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = " vid";\n          }" { (expression_statement "pcVar8 = " vid";" (assignment_expression "pcVar8 = " vid"" identifier = (string_literal "" vid"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case ColorizeCompositeOp:\n          pcVar8 = "colr";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "rloc";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "colr";" (assignment_expression "pcVar8 = "colr"" identifier = (string_literal ""colr"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "rloc";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "rloc";\n          }" { (expression_statement "pcVar8 = "rloc";" (assignment_expression "pcVar8 = "rloc"" identifier = (string_literal ""rloc"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "default:\n          pcVar8 = "norm";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "mron";\n          }\n          break;" default : (expression_statement "pcVar8 = "norm";" (assignment_expression "pcVar8 = "norm"" identifier = (string_literal ""norm"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "mron";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "mron";\n          }" { (expression_statement "pcVar8 = "mron";" (assignment_expression "pcVar8 = "mron"" identifier = (string_literal ""mron"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case DarkenCompositeOp:\n          pcVar8 = "dark";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "krad";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "dark";" (assignment_expression "pcVar8 = "dark"" identifier = (string_literal ""dark"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "krad";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "krad";\n          }" { (expression_statement "pcVar8 = "krad";" (assignment_expression "pcVar8 = "krad"" identifier = (string_literal ""krad"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case DifferenceCompositeOp:\n          pcVar8 = "diff";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ffid";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "diff";" (assignment_expression "pcVar8 = "diff"" identifier = (string_literal ""diff"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ffid";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "ffid";\n          }" { (expression_statement "pcVar8 = "ffid";" (assignment_expression "pcVar8 = "ffid"" identifier = (string_literal ""ffid"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case DissolveCompositeOp:\n          pcVar8 = "diss";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ssid";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "diss";" (assignment_expression "pcVar8 = "diss"" identifier = (string_literal ""diss"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "ssid";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "ssid";\n          }" { (expression_statement "pcVar8 = "ssid";" (assignment_expression "pcVar8 = "ssid"" identifier = (string_literal ""ssid"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case ExclusionCompositeOp:\n          pcVar8 = "smud";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "dums";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "smud";" (assignment_expression "pcVar8 = "smud"" identifier = (string_literal ""smud"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "dums";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "dums";\n          }" { (expression_statement "pcVar8 = "dums";" (assignment_expression "pcVar8 = "dums"" identifier = (string_literal ""dums"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case HardLightCompositeOp:\n          pcVar8 = "hLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLh";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "hLit";" (assignment_expression "pcVar8 = "hLit"" identifier = (string_literal ""hLit"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLh";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "tiLh";\n          }" { (expression_statement "pcVar8 = "tiLh";" (assignment_expression "pcVar8 = "tiLh"" identifier = (string_literal ""tiLh"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case HardMixCompositeOp:\n          pcVar8 = "hMix";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "xiMh";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "hMix";" (assignment_expression "pcVar8 = "hMix"" identifier = (string_literal ""hMix"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "xiMh";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "xiMh";\n          }" { (expression_statement "pcVar8 = "xiMh";" (assignment_expression "pcVar8 = "xiMh"" identifier = (string_literal ""xiMh"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case HueCompositeOp:\n          pcVar8 = "hue ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " euh";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "hue ";" (assignment_expression "pcVar8 = "hue "" identifier = (string_literal ""hue "" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = " euh";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = " euh";\n          }" { (expression_statement "pcVar8 = " euh";" (assignment_expression "pcVar8 = " euh"" identifier = (string_literal "" euh"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case LightenCompositeOp:\n          pcVar8 = "lite";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "etil";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "lite";" (assignment_expression "pcVar8 = "lite"" identifier = (string_literal ""lite"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "etil";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "etil";\n          }" { (expression_statement "pcVar8 = "etil";" (assignment_expression "pcVar8 = "etil"" identifier = (string_literal ""etil"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case LinearBurnCompositeOp:\n          pcVar8 = "lbrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrbl";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "lbrn";" (assignment_expression "pcVar8 = "lbrn"" identifier = (string_literal ""lbrn"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrbl";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "nrbl";\n          }" { (expression_statement "pcVar8 = "nrbl";" (assignment_expression "pcVar8 = "nrbl"" identifier = (string_literal ""nrbl"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case LinearDodgeCompositeOp:\n          pcVar8 = "lddg";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "gddl";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "lddg";" (assignment_expression "pcVar8 = "lddg"" identifier = (string_literal ""lddg"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "gddl";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "gddl";\n          }" { (expression_statement "pcVar8 = "gddl";" (assignment_expression "pcVar8 = "gddl"" identifier = (string_literal ""gddl"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case LinearLightCompositeOp:\n          pcVar8 = "lLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLl";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "lLit";" (assignment_expression "pcVar8 = "lLit"" identifier = (string_literal ""lLit"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLl";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "tiLl";\n          }" { (expression_statement "pcVar8 = "tiLl";" (assignment_expression "pcVar8 = "tiLl"" identifier = (string_literal ""tiLl"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case LuminizeCompositeOp:\n          pcVar8 = "lum ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " mul";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "lum ";" (assignment_expression "pcVar8 = "lum "" identifier = (string_literal ""lum "" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = " mul";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = " mul";\n          }" { (expression_statement "pcVar8 = " mul";" (assignment_expression "pcVar8 = " mul"" identifier = (string_literal "" mul"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case MultiplyCompositeOp:\n          pcVar8 = "mul ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " lum";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "mul ";" (assignment_expression "pcVar8 = "mul "" identifier = (string_literal ""mul "" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = " lum";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = " lum";\n          }" { (expression_statement "pcVar8 = " lum";" (assignment_expression "pcVar8 = " lum"" identifier = (string_literal "" lum"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case OverlayCompositeOp:\n          pcVar8 = "over";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "revo";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "over";" (assignment_expression "pcVar8 = "over"" identifier = (string_literal ""over"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "revo";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "revo";\n          }" { (expression_statement "pcVar8 = "revo";" (assignment_expression "pcVar8 = "revo"" identifier = (string_literal ""revo"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case PinLightCompositeOp:\n          pcVar8 = "pLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLp";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "pLit";" (assignment_expression "pcVar8 = "pLit"" identifier = (string_literal ""pLit"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLp";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "tiLp";\n          }" { (expression_statement "pcVar8 = "tiLp";" (assignment_expression "pcVar8 = "tiLp"" identifier = (string_literal ""tiLp"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case SaturateCompositeOp:\n          pcVar8 = "sat ";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = " tas";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "sat ";" (assignment_expression "pcVar8 = "sat "" identifier = (string_literal ""sat "" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = " tas";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = " tas";\n          }" { (expression_statement "pcVar8 = " tas";" (assignment_expression "pcVar8 = " tas"" identifier = (string_literal "" tas"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case ScreenCompositeOp:\n          pcVar8 = "scrn";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrcs";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "scrn";" (assignment_expression "pcVar8 = "scrn"" identifier = (string_literal ""scrn"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "nrcs";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "nrcs";\n          }" { (expression_statement "pcVar8 = "nrcs";" (assignment_expression "pcVar8 = "nrcs"" identifier = (string_literal ""nrcs"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case SoftLightCompositeOp:\n          pcVar8 = "sLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLs";\n          }\n          break;" case identifier : (expression_statement "pcVar8 = "sLit";" (assignment_expression "pcVar8 = "sLit"" identifier = (string_literal ""sLit"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLs";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "tiLs";\n          }" { (expression_statement "pcVar8 = "tiLs";" (assignment_expression "pcVar8 = "tiLs"" identifier = (string_literal ""tiLs"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case VividLightCompositeOp:\n          pcVar8 = "vLit";\n          if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLv";\n          }" case identifier : (expression_statement "pcVar8 = "vLit";" (assignment_expression "pcVar8 = "vLit"" identifier = (string_literal ""vLit"" " string_content ")) ;) (if_statement "if (local_1178->endian == LSBEndian) {\n            pcVar8 = "tiLv";\n          }" if (parenthesized_expression "(local_1178->endian == LSBEndian)" ( (binary_expression "local_1178->endian == LSBEndian" (field_expression "local_1178->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar8 = "tiLv";\n          }" { (expression_statement "pcVar8 = "tiLv";" (assignment_expression "pcVar8 = "tiLv"" identifier = (string_literal ""tiLv"" " string_content ")) ;) }))) })) (expression_statement "sVar11 = WriteBlobString(image,pcVar8);" (assignment_expression "sVar11 = WriteBlobString(image,pcVar8)" identifier = (call_expression "WriteBlobString(image,pcVar8)" identifier (argument_list "(image,pcVar8)" ( identifier , identifier )))) ;) (expression_statement "iVar35 = local_116c + sVar10 + sVar11;" (assignment_expression "iVar35 = local_116c + sVar10 + sVar11" identifier = (binary_expression "local_116c + sVar10 + sVar11" (binary_expression "local_116c + sVar10" identifier + identifier) + identifier)) ;) (expression_statement "pcVar8 = GetImageArtifact(local_1178,"psd:layer.opacity");" (assignment_expression "pcVar8 = GetImageArtifact(local_1178,"psd:layer.opacity")" identifier = (call_expression "GetImageArtifact(local_1178,"psd:layer.opacity")" identifier (argument_list "(local_1178,"psd:layer.opacity")" ( identifier , (string_literal ""psd:layer.opacity"" " string_content ") )))) ;) (if_statement "if (pcVar8 == (char *)0x0) {\n          sVar10 = WriteBlobByte(image,0xff);\n          iVar35 = iVar35 + sVar10;\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          dVar4 = (double)lVar16;\n          value = '\0';\n          if (0.0 < dVar4) {\n            value = 0xff;\n            if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          sVar10 = WriteBlobByte(image,value);\n          iVar35 = iVar35 + sVar10;\n          if (local_1178->debug != MagickFalse) {\n            uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);\n            LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);\n          }\n          if ((float)lVar16 != DAT_002df8a8) {\n            if (local_1178->alpha_trait != BlendPixelTrait) {\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }\n            CVar17 = GetImagePixelCacheType(local_1178);\n            if (((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }\n            else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = exception;\n            local_10ec = local_1178;\n            local_10f4 = dVar4;\n            GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);\n          }\n        }" if (parenthesized_expression "(pcVar8 == (char *)0x0)" ( (binary_expression "pcVar8 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          sVar10 = WriteBlobByte(image,0xff);\n          iVar35 = iVar35 + sVar10;\n        }" { (expression_statement "sVar10 = WriteBlobByte(image,0xff);" (assignment_expression "sVar10 = WriteBlobByte(image,0xff)" identifier = (call_expression "WriteBlobByte(image,0xff)" identifier (argument_list "(image,0xff)" ( identifier , number_literal )))) ;) (expression_statement "iVar35 = iVar35 + sVar10;" (assignment_expression "iVar35 = iVar35 + sVar10" identifier = (binary_expression "iVar35 + sVar10" identifier + identifier)) ;) }) (else_clause "else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          dVar4 = (double)lVar16;\n          value = '\0';\n          if (0.0 < dVar4) {\n            value = 0xff;\n            if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          sVar10 = WriteBlobByte(image,value);\n          iVar35 = iVar35 + sVar10;\n          if (local_1178->debug != MagickFalse) {\n            uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);\n            LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);\n          }\n          if ((float)lVar16 != DAT_002df8a8) {\n            if (local_1178->alpha_trait != BlendPixelTrait) {\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }\n            CVar17 = GetImagePixelCacheType(local_1178);\n            if (((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }\n            else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = exception;\n            local_10ec = local_1178;\n            local_10f4 = dVar4;\n            GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);\n          }\n        }" else (compound_statement "{\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          dVar4 = (double)lVar16;\n          value = '\0';\n          if (0.0 < dVar4) {\n            value = 0xff;\n            if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          sVar10 = WriteBlobByte(image,value);\n          iVar35 = iVar35 + sVar10;\n          if (local_1178->debug != MagickFalse) {\n            uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);\n            LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);\n          }\n          if ((float)lVar16 != DAT_002df8a8) {\n            if (local_1178->alpha_trait != BlendPixelTrait) {\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }\n            CVar17 = GetImagePixelCacheType(local_1178);\n            if (((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }\n            else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = exception;\n            local_10ec = local_1178;\n            local_10f4 = dVar4;\n            GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);\n          }\n        }" { (expression_statement "lVar16 = strtol(pcVar8,(char **)0x0,10);" (assignment_expression "lVar16 = strtol(pcVar8,(char **)0x0,10)" identifier = (call_expression "strtol(pcVar8,(char **)0x0,10)" identifier (argument_list "(pcVar8,(char **)0x0,10)" ( identifier , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , number_literal )))) ;) (expression_statement "dVar4 = (double)lVar16;" (assignment_expression "dVar4 = (double)lVar16" identifier = (cast_expression "(double)lVar16" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "value = '\0';" (assignment_expression "value = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (0.0 < dVar4) {\n            value = 0xff;\n            if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }" if (parenthesized_expression "(0.0 < dVar4)" ( (binary_expression "0.0 < dVar4" number_literal < identifier) )) (compound_statement "{\n            value = 0xff;\n            if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }" { (expression_statement "value = 0xff;" (assignment_expression "value = 0xff" identifier = number_literal) ;) (if_statement "if (dVar4 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }" if (parenthesized_expression "(dVar4 / (double)DAT_002e814c < (double)DAT_002e8150)" ( (binary_expression "dVar4 / (double)DAT_002e814c < (double)DAT_002e8150" (binary_expression "dVar4 / (double)DAT_002e814c" identifier / (cast_expression "(double)DAT_002e814c" ( (type_descriptor "double" primitive_type) ) identifier)) < (cast_expression "(double)DAT_002e8150" ( (type_descriptor "double" primitive_type) ) identifier)) )) (compound_statement "{\n              value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }" { (expression_statement "value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8);" (assignment_expression "value = (uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8)" identifier = (cast_expression "(uchar)(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8)" ( (type_descriptor "uchar" type_identifier) ) (cast_expression "(short)ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (call_expression "ROUND(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8)" identifier (argument_list "(dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8)" ( (binary_expression "dVar4 / (double)DAT_002e814c + (double)DAT_002df2b8" (binary_expression "dVar4 / (double)DAT_002e814c" identifier / (cast_expression "(double)DAT_002e814c" ( (type_descriptor "double" primitive_type) ) identifier)) + (cast_expression "(double)DAT_002df2b8" ( (type_descriptor "double" primitive_type) ) identifier)) )))))) ;) })) })) (expression_statement "sVar10 = WriteBlobByte(image,value);" (assignment_expression "sVar10 = WriteBlobByte(image,value)" identifier = (call_expression "WriteBlobByte(image,value)" identifier (argument_list "(image,value)" ( identifier , identifier )))) ;) (expression_statement "iVar35 = iVar35 + sVar10;" (assignment_expression "iVar35 = iVar35 + sVar10" identifier = (binary_expression "iVar35 + sVar10" identifier + identifier)) ;) (if_statement "if (local_1178->debug != MagickFalse) {\n            uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);\n            LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);\n          }" if (parenthesized_expression "(local_1178->debug != MagickFalse)" ( (binary_expression "local_1178->debug != MagickFalse" (field_expression "local_1178->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n            uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);\n            LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);\n          }" { (expression_statement "uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20);" (assignment_expression "uStack_1168 = (undefined4)((ulonglong)dVar4 >> 0x20)" identifier = (call_expression "(undefined4)((ulonglong)dVar4 >> 0x20)" (parenthesized_expression "(undefined4)" ( identifier )) (argument_list "((ulonglong)dVar4 >> 0x20)" ( (binary_expression "(ulonglong)dVar4 >> 0x20" (cast_expression "(ulonglong)dVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168);" (call_expression "LogMagickEvent(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168)" identifier (argument_list "(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",SUB81(dVar4,0),uStack_1168)" ( identifier , (string_literal ""coders/psd.c"" " string_content ") , (string_literal ""ApplyPSDLayerOpacity"" " string_content ") , number_literal , (string_literal ""  applying layer opacity %.20g"" " string_content ") , (call_expression "SUB81(dVar4,0)" identifier (argument_list "(dVar4,0)" ( identifier , number_literal ))) , identifier ))) ;) })) (if_statement "if ((float)lVar16 != DAT_002df8a8) {\n            if (local_1178->alpha_trait != BlendPixelTrait) {\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }\n            CVar17 = GetImagePixelCacheType(local_1178);\n            if (((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }\n            else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = exception;\n            local_10ec = local_1178;\n            local_10f4 = dVar4;\n            GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);\n          }" if (parenthesized_expression "((float)lVar16 != DAT_002df8a8)" ( (binary_expression "(float)lVar16 != DAT_002df8a8" (cast_expression "(float)lVar16" ( (type_descriptor "float" primitive_type) ) identifier) != identifier) )) (compound_statement "{\n            if (local_1178->alpha_trait != BlendPixelTrait) {\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }\n            CVar17 = GetImagePixelCacheType(local_1178);\n            if (((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }\n            else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = exception;\n            local_10ec = local_1178;\n            local_10f4 = dVar4;\n            GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);\n          }" { (if_statement "if (local_1178->alpha_trait != BlendPixelTrait) {\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }" if (parenthesized_expression "(local_1178->alpha_trait != BlendPixelTrait)" ( (binary_expression "local_1178->alpha_trait != BlendPixelTrait" (field_expression "local_1178->alpha_trait" identifier -> field_identifier) != identifier) )) (compound_statement "{\n              SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);\n            }" { (expression_statement "SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception);" (call_expression "SetImageAlphaChannel(local_1178,OpaqueAlphaChannel,exception)" identifier (argument_list "(local_1178,OpaqueAlphaChannel,exception)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "CVar17 = GetImagePixelCacheType(local_1178);" (assignment_expression "CVar17 = GetImagePixelCacheType(local_1178)" identifier = (call_expression "GetImagePixelCacheType(local_1178)" identifier (argument_list "(local_1178)" ( identifier )))) ;) (if_statement "if (((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))) {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }\n            else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }" if (parenthesized_expression "(((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache))))" ( (binary_expression "((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)) &&\n               ((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))" (parenthesized_expression "((CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache))" ( (binary_expression "(CVar17 == MemoryCache) ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)" (parenthesized_expression "(CVar17 == MemoryCache)" ( (binary_expression "CVar17 == MemoryCache" identifier == identifier) )) || (parenthesized_expression "(CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)" ( (comma_expression "CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache" (assignment_expression "CVar17 = GetImagePixelCacheType(local_1178)" identifier = (call_expression "GetImagePixelCacheType(local_1178)" identifier (argument_list "(local_1178)" ( identifier )))) , (binary_expression "CVar17 == MapCache" identifier == identifier)) ))) )) && (parenthesized_expression "((CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)))" ( (parenthesized_expression "(CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache))" ( (comma_expression "CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)" (assignment_expression "CVar17 = GetImagePixelCacheType(local_1178)" identifier = (call_expression "GetImagePixelCacheType(local_1178)" identifier (argument_list "(local_1178)" ( identifier )))) , (binary_expression "CVar17 == MemoryCache ||\n                (CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)" (binary_expression "CVar17 == MemoryCache" identifier == identifier) || (parenthesized_expression "(CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache)" ( (comma_expression "CVar17 = GetImagePixelCacheType(local_1178), CVar17 == MapCache" (assignment_expression "CVar17 = GetImagePixelCacheType(local_1178)" identifier = (call_expression "GetImagePixelCacheType(local_1178)" identifier (argument_list "(local_1178)" ( identifier )))) , (binary_expression "CVar17 == MapCache" identifier == identifier)) )))) )) ))) )) (compound_statement "{\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              sVar31 = local_1178->rows;\n              sVar25 = sVar31 + 0x3f;\n              if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }\n              bVar37 = 0x7f < (int)sVar31;\n              if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }\n              if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }\n            }" { (expression_statement "MVar40 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar40 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "sVar31 = local_1178->rows;" (assignment_expression "sVar31 = local_1178->rows" identifier = (field_expression "local_1178->rows" identifier -> field_identifier)) ;) (expression_statement "sVar25 = sVar31 + 0x3f;" (assignment_expression "sVar25 = sVar31 + 0x3f" identifier = (binary_expression "sVar31 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < (int)sVar31) {\n                sVar25 = sVar31;\n              }" if (parenthesized_expression "(-1 < (int)sVar31)" ( (binary_expression "-1 < (int)sVar31" number_literal < (cast_expression "(int)sVar31" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n                sVar25 = sVar31;\n              }" { (expression_statement "sVar25 = sVar31;" (assignment_expression "sVar25 = sVar31" identifier = identifier) ;) })) (expression_statement "bVar37 = 0x7f < (int)sVar31;" (assignment_expression "bVar37 = 0x7f < (int)sVar31" identifier = (binary_expression "0x7f < (int)sVar31" number_literal < (cast_expression "(int)sVar31" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((int)MVar40 < (int)sVar25 >> 6) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }" if (parenthesized_expression "((int)MVar40 < (int)sVar25 >> 6)" ( (binary_expression "(int)MVar40 < (int)sVar25 >> 6" (cast_expression "(int)MVar40" ( (type_descriptor "int" primitive_type) ) identifier) < (binary_expression "(int)sVar25 >> 6" (cast_expression "(int)sVar25" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) )) (compound_statement "{\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                bVar37 = 1 < (int)MVar40;\n              }" { (expression_statement "MVar40 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar40 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "bVar37 = 1 < (int)MVar40;" (assignment_expression "bVar37 = 1 < (int)MVar40" identifier = (binary_expression "1 < (int)MVar40" number_literal < (cast_expression "(int)MVar40" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (if_statement "if (bVar37) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar18 = 1;\n              }" if (parenthesized_expression "(bVar37)" ( identifier )) (compound_statement "{\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                sVar31 = local_1178->rows;\n                sVar25 = sVar31 + 0x3f;\n                if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }\n                iVar18 = (int)sVar25 >> 6;\n                if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }\n              }" { (expression_statement "MVar40 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar40 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "sVar31 = local_1178->rows;" (assignment_expression "sVar31 = local_1178->rows" identifier = (field_expression "local_1178->rows" identifier -> field_identifier)) ;) (expression_statement "sVar25 = sVar31 + 0x3f;" (assignment_expression "sVar25 = sVar31 + 0x3f" identifier = (binary_expression "sVar31 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < (int)sVar31) {\n                  sVar25 = sVar31;\n                }" if (parenthesized_expression "(-1 < (int)sVar31)" ( (binary_expression "-1 < (int)sVar31" number_literal < (cast_expression "(int)sVar31" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n                  sVar25 = sVar31;\n                }" { (expression_statement "sVar25 = sVar31;" (assignment_expression "sVar25 = sVar31" identifier = identifier) ;) })) (expression_statement "iVar18 = (int)sVar25 >> 6;" (assignment_expression "iVar18 = (int)sVar25 >> 6" identifier = (binary_expression "(int)sVar25 >> 6" (cast_expression "(int)sVar25" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if ((int)MVar40 < iVar18) {\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }" if (parenthesized_expression "((int)MVar40 < iVar18)" ( (binary_expression "(int)MVar40 < iVar18" (cast_expression "(int)MVar40" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (compound_statement "{\n                  MVar40 = GetMagickResourceLimit(ThreadResource);\n                  iVar18 = (int)MVar40;\n                }" { (expression_statement "MVar40 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar40 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "iVar18 = (int)MVar40;" (assignment_expression "iVar18 = (int)MVar40" identifier = (cast_expression "(int)MVar40" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) }) (else_clause "else {\nLAB_0029d989:\n                iVar18 = 1;\n              }" else (compound_statement "{\nLAB_0029d989:\n                iVar18 = 1;\n              }" { (labeled_statement "LAB_0029d989:\n                iVar18 = 1;" statement_identifier : (expression_statement "iVar18 = 1;" (assignment_expression "iVar18 = 1" identifier = number_literal) ;)) }))) }) (else_clause "else {\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }" else (compound_statement "{\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }\n              MVar40 = GetMagickResourceLimit(ThreadResource);\n              if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }\n            }" { (expression_statement "MVar40 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar40 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (if_statement "if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }" if (parenthesized_expression "(((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2))" ( (binary_expression "((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)" (parenthesized_expression "((int)(MVar40 >> 0x20) == 0)" ( (binary_expression "(int)(MVar40 >> 0x20) == 0" (cast_expression "(int)(MVar40 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(MVar40 >> 0x20)" ( (binary_expression "MVar40 >> 0x20" identifier >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)MVar40 < 2)" ( (binary_expression "(uint)MVar40 < 2" (cast_expression "(uint)MVar40" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;\n              }" { (expression_statement "MVar40 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar40 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (if_statement "if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) goto LAB_0029d989;" if (parenthesized_expression "(((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2))" ( (binary_expression "((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)" (parenthesized_expression "((int)(MVar40 >> 0x20) == 0)" ( (binary_expression "(int)(MVar40 >> 0x20) == 0" (cast_expression "(int)(MVar40 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(MVar40 >> 0x20)" ( (binary_expression "MVar40 >> 0x20" identifier >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)MVar40 < 2)" ( (binary_expression "(uint)MVar40 < 2" (cast_expression "(uint)MVar40" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_0029d989;" goto statement_identifier ;)) })) (expression_statement "MVar40 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar40 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (if_statement "if (((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)) {\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }\n              else {\n                iVar18 = 2;\n              }" if (parenthesized_expression "(((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2))" ( (binary_expression "((int)(MVar40 >> 0x20) == 0) && ((uint)MVar40 < 2)" (parenthesized_expression "((int)(MVar40 >> 0x20) == 0)" ( (binary_expression "(int)(MVar40 >> 0x20) == 0" (cast_expression "(int)(MVar40 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(MVar40 >> 0x20)" ( (binary_expression "MVar40 >> 0x20" identifier >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)MVar40 < 2)" ( (binary_expression "(uint)MVar40 < 2" (cast_expression "(uint)MVar40" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n                MVar40 = GetMagickResourceLimit(ThreadResource);\n                iVar18 = (int)MVar40;\n              }" { (expression_statement "MVar40 = GetMagickResourceLimit(ThreadResource);" (assignment_expression "MVar40 = GetMagickResourceLimit(ThreadResource)" identifier = (call_expression "GetMagickResourceLimit(ThreadResource)" identifier (argument_list "(ThreadResource)" ( identifier )))) ;) (expression_statement "iVar18 = (int)MVar40;" (assignment_expression "iVar18 = (int)MVar40" identifier = (cast_expression "(int)MVar40" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n                iVar18 = 2;\n              }" else (compound_statement "{\n                iVar18 = 2;\n              }" { (expression_statement "iVar18 = 2;" (assignment_expression "iVar18 = 2" identifier = number_literal) ;) }))) }))) (expression_statement "local_10e8 = 1;" (assignment_expression "local_10e8 = 1" identifier = number_literal) ;) (expression_statement "local_10e0 = 1;" (assignment_expression "local_10e0 = 1" identifier = number_literal) ;) (expression_statement "local_10e4 = exception;" (assignment_expression "local_10e4 = exception" identifier = identifier) ;) (expression_statement "local_10ec = local_1178;" (assignment_expression "local_10ec = local_1178" identifier = identifier) ;) (expression_statement "local_10f4 = dVar4;" (assignment_expression "local_10f4 = dVar4" identifier = identifier) ;) (expression_statement "GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0);" (call_expression "GOMP_parallel(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0)" identifier (argument_list "(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,iVar18,0)" ( identifier , (cast_expression "(char)&local_10f4" ( (type_descriptor "char" primitive_type) ) (pointer_expression "&local_10f4" & identifier)) , identifier , number_literal ))) ;) })) }))) (expression_statement "sVar10 = WriteBlobByte(image,'\0');" (assignment_expression "sVar10 = WriteBlobByte(image,'\0')" identifier = (call_expression "WriteBlobByte(image,'\0')" identifier (argument_list "(image,'\0')" ( identifier , (char_literal "'\0'" ' escape_sequence ') )))) ;) (expression_statement "sVar11 = WriteBlobByte(image,(local_1178->compose == NoCompositeOp) * '\x03' + '\x01');" (assignment_expression "sVar11 = WriteBlobByte(image,(local_1178->compose == NoCompositeOp) * '\x03' + '\x01')" identifier = (call_expression "WriteBlobByte(image,(local_1178->compose == NoCompositeOp) * '\x03' + '\x01')" identifier (argument_list "(image,(local_1178->compose == NoCompositeOp) * '\x03' + '\x01')" ( identifier , (binary_expression "(local_1178->compose == NoCompositeOp) * '\x03' + '\x01'" (binary_expression "(local_1178->compose == NoCompositeOp) * '\x03'" (parenthesized_expression "(local_1178->compose == NoCompositeOp)" ( (binary_expression "local_1178->compose == NoCompositeOp" (field_expression "local_1178->compose" identifier -> field_identifier) == identifier) )) * (char_literal "'\x03'" ' escape_sequence ')) + (char_literal "'\x01'" ' escape_sequence ')) )))) ;) (expression_statement "sVar12 = WriteBlobByte(image,'\0');" (assignment_expression "sVar12 = WriteBlobByte(image,'\0')" identifier = (call_expression "WriteBlobByte(image,'\0')" identifier (argument_list "(image,'\0')" ( identifier , (char_literal "'\0'" ' escape_sequence ') )))) ;) (expression_statement "iVar35 = sVar12 + iVar35 + sVar10 + sVar11;" (assignment_expression "iVar35 = sVar12 + iVar35 + sVar10 + sVar11" identifier = (binary_expression "sVar12 + iVar35 + sVar10 + sVar11" (binary_expression "sVar12 + iVar35 + sVar10" (binary_expression "sVar12 + iVar35" identifier + identifier) + identifier) + identifier)) ;) (expression_statement "puVar32 = &DAT_0034d420;" (assignment_expression "puVar32 = &DAT_0034d420" identifier = (pointer_expression "&DAT_0034d420" & identifier)) ;) (expression_statement "pacVar36 = allowed;" (assignment_expression "pacVar36 = allowed" identifier = identifier) ;) (for_statement "for (iVar18 = 0x2d; iVar18 != 0; iVar18 = iVar18 + -1) {\n          *(undefined4 *)*pacVar36 = *puVar32;\n          puVar32 = puVar32 + (uint)bVar38 * -2 + 1;\n          pacVar36 = (char (*) [5])((int)pacVar36 + (uint)bVar38 * -8 + 4);\n        }" for ( (assignment_expression "iVar18 = 0x2d" identifier = number_literal) ; (binary_expression "iVar18 != 0" identifier != number_literal) ; (assignment_expression "iVar18 = iVar18 + -1" identifier = (binary_expression "iVar18 + -1" identifier + number_literal)) ) (compound_statement "{\n          *(undefined4 *)*pacVar36 = *puVar32;\n          puVar32 = puVar32 + (uint)bVar38 * -2 + 1;\n          pacVar36 = (char (*) [5])((int)pacVar36 + (uint)bVar38 * -8 + 4);\n        }" { (expression_statement "*(undefined4 *)*pacVar36 = *puVar32;" (assignment_expression "*(undefined4 *)*pacVar36 = *puVar32" (pointer_expression "*(undefined4 *)*pacVar36" * (cast_expression "(undefined4 *)*pacVar36" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pacVar36" * identifier))) = (pointer_expression "*puVar32" * identifier)) ;) (expression_statement "puVar32 = puVar32 + (uint)bVar38 * -2 + 1;" (assignment_expression "puVar32 = puVar32 + (uint)bVar38 * -2 + 1" identifier = (binary_expression "puVar32 + (uint)bVar38 * -2 + 1" (binary_expression "puVar32 + (uint)bVar38 * -2" identifier + (binary_expression "(uint)bVar38 * -2" (cast_expression "(uint)bVar38" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pacVar36 = (char (*) [5])((int)pacVar36 + (uint)bVar38 * -8 + 4);" (assignment_expression "pacVar36 = (char (*) [5])((int)pacVar36 + (uint)bVar38 * -8 + 4)" identifier = (cast_expression "(char (*) [5])((int)pacVar36 + (uint)bVar38 * -8 + 4)" ( (type_descriptor "char (*) [5]" primitive_type (abstract_array_declarator "(*) [5]" (abstract_parenthesized_declarator "(*)" ( (abstract_pointer_declarator "*" *) )) [ number_literal ])) ) (parenthesized_expression "((int)pacVar36 + (uint)bVar38 * -8 + 4)" ( (binary_expression "(int)pacVar36 + (uint)bVar38 * -8 + 4" (binary_expression "(int)pacVar36 + (uint)bVar38 * -8" (cast_expression "(int)pacVar36" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar38 * -8" (cast_expression "(uint)bVar38" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "pSVar19 = GetImageProfile(local_1178,"psd:additional-info");" (assignment_expression "pSVar19 = GetImageProfile(local_1178,"psd:additional-info")" identifier = (call_expression "GetImageProfile(local_1178,"psd:additional-info")" identifier (argument_list "(local_1178,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (if_statement "if (pSVar19 == (StringInfo *)0x0) {\nLAB_0029ddc4:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar8 = GetImageOption(image_info,"psd:additional-info");\n          iVar18 = LocaleCompare(pcVar8,"all");\n          string_info = pSVar19;\n          if (iVar18 != 0) {\n            iVar18 = LocaleCompare(pcVar8,"selective");\n            if (iVar18 == 0) {\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }\n          }\n        }" if (parenthesized_expression "(pSVar19 == (StringInfo *)0x0)" ( (binary_expression "pSVar19 == (StringInfo *)0x0" identifier == (cast_expression "(StringInfo *)0x0" ( (type_descriptor "StringInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0029ddc4:\n          string_info = (StringInfo *)0x0;\n        }" { (labeled_statement "LAB_0029ddc4:\n          string_info = (StringInfo *)0x0;" statement_identifier : (expression_statement "string_info = (StringInfo *)0x0;" (assignment_expression "string_info = (StringInfo *)0x0" identifier = (cast_expression "(StringInfo *)0x0" ( (type_descriptor "StringInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) }) (else_clause "else {\n          pcVar8 = GetImageOption(image_info,"psd:additional-info");\n          iVar18 = LocaleCompare(pcVar8,"all");\n          string_info = pSVar19;\n          if (iVar18 != 0) {\n            iVar18 = LocaleCompare(pcVar8,"selective");\n            if (iVar18 == 0) {\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }\n          }\n        }" else (compound_statement "{\n          pcVar8 = GetImageOption(image_info,"psd:additional-info");\n          iVar18 = LocaleCompare(pcVar8,"all");\n          string_info = pSVar19;\n          if (iVar18 != 0) {\n            iVar18 = LocaleCompare(pcVar8,"selective");\n            if (iVar18 == 0) {\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }\n          }\n        }" { (expression_statement "pcVar8 = GetImageOption(image_info,"psd:additional-info");" (assignment_expression "pcVar8 = GetImageOption(image_info,"psd:additional-info")" identifier = (call_expression "GetImageOption(image_info,"psd:additional-info")" identifier (argument_list "(image_info,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (expression_statement "iVar18 = LocaleCompare(pcVar8,"all");" (assignment_expression "iVar18 = LocaleCompare(pcVar8,"all")" identifier = (call_expression "LocaleCompare(pcVar8,"all")" identifier (argument_list "(pcVar8,"all")" ( identifier , (string_literal ""all"" " string_content ") )))) ;) (expression_statement "string_info = pSVar19;" (assignment_expression "string_info = pSVar19" identifier = identifier) ;) (if_statement "if (iVar18 != 0) {\n            iVar18 = LocaleCompare(pcVar8,"selective");\n            if (iVar18 == 0) {\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }\n          }" if (parenthesized_expression "(iVar18 != 0)" ( (binary_expression "iVar18 != 0" identifier != number_literal) )) (compound_statement "{\n            iVar18 = LocaleCompare(pcVar8,"selective");\n            if (iVar18 == 0) {\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }\n          }" { (expression_statement "iVar18 = LocaleCompare(pcVar8,"selective");" (assignment_expression "iVar18 = LocaleCompare(pcVar8,"selective")" identifier = (call_expression "LocaleCompare(pcVar8,"selective")" identifier (argument_list "(pcVar8,"selective")" ( identifier , (string_literal ""selective"" " string_content ") )))) ;) (if_statement "if (iVar18 == 0) {\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }" if (parenthesized_expression "(iVar18 == 0)" ( (binary_expression "iVar18 == 0" identifier == number_literal) )) (compound_statement "{\n              sVar31 = GetStringInfoLength(pSVar19);\n              puVar20 = GetStringInfoDatum(pSVar19);\n              if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }" { (expression_statement "sVar31 = GetStringInfoLength(pSVar19);" (assignment_expression "sVar31 = GetStringInfoLength(pSVar19)" identifier = (call_expression "GetStringInfoLength(pSVar19)" identifier (argument_list "(pSVar19)" ( identifier )))) ;) (expression_statement "puVar20 = GetStringInfoDatum(pSVar19);" (assignment_expression "puVar20 = GetStringInfoDatum(pSVar19)" identifier = (call_expression "GetStringInfoDatum(pSVar19)" identifier (argument_list "(pSVar19)" ( identifier )))) ;) (if_statement "if (sVar31 < 0xc) {\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }" if (parenthesized_expression "(sVar31 < 0xc)" ( (binary_expression "sVar31 < 0xc" identifier < number_literal) )) (compound_statement "{\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n              }" { (expression_statement "string_info = RemoveImageProfile(local_1178,"psd:additional-info");" (assignment_expression "string_info = RemoveImageProfile(local_1178,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(local_1178,"psd:additional-info")" identifier (argument_list "(local_1178,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) }) (else_clause "else {\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }" else (compound_statement "{\n                local_115c = 0;\n                do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);\n                string_info = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }\n              }" { (expression_statement "local_115c = 0;" (assignment_expression "local_115c = 0" identifier = number_literal) ;) (do_statement "do {\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                } while (0xb < sVar31);" do (compound_statement "{\n                  key[0] = puVar20[4];\n                  uVar30 = sVar31 - 0xc;\n                  key[4] = '\0';\n                  uVar33 = *(uint *)(puVar20 + 8);\n                  key[1] = puVar20[5];\n                  uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;\n                  key[2] = puVar20[6];\n                  key[3] = puVar20[7];\n                  pacVar36 = allowed;\n                  if (uVar30 < uVar33) goto LAB_0029ddc4;\n                  do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);\n                  sVar31 = uVar30 - uVar33;\n                  if (sVar31 == 0) break;\n                  memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);\nLAB_0029cee4:\n                }" { (expression_statement "key[0] = puVar20[4];" (assignment_expression "key[0] = puVar20[4]" (subscript_expression "key[0]" identifier [ number_literal ]) = (subscript_expression "puVar20[4]" identifier [ number_literal ])) ;) (expression_statement "uVar30 = sVar31 - 0xc;" (assignment_expression "uVar30 = sVar31 - 0xc" identifier = (binary_expression "sVar31 - 0xc" identifier - number_literal)) ;) (expression_statement "key[4] = '\0';" (assignment_expression "key[4] = '\0'" (subscript_expression "key[4]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "uVar33 = *(uint *)(puVar20 + 8);" (assignment_expression "uVar33 = *(uint *)(puVar20 + 8)" identifier = (pointer_expression "*(uint *)(puVar20 + 8)" * (cast_expression "(uint *)(puVar20 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar20 + 8)" ( (binary_expression "puVar20 + 8" identifier + number_literal) ))))) ;) (expression_statement "key[1] = puVar20[5];" (assignment_expression "key[1] = puVar20[5]" (subscript_expression "key[1]" identifier [ number_literal ]) = (subscript_expression "puVar20[5]" identifier [ number_literal ])) ;) (expression_statement "uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18;" (assignment_expression "uVar33 = uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18" identifier = (binary_expression "uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8 |\n                           uVar33 << 0x18" (binary_expression "uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8 | (uVar33 & 0xff00) << 8" (binary_expression "uVar33 >> 0x18 | (uVar33 & 0xff0000) >> 8" (binary_expression "uVar33 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar33 & 0xff0000) >> 8" (parenthesized_expression "(uVar33 & 0xff0000)" ( (binary_expression "uVar33 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar33 & 0xff00) << 8" (parenthesized_expression "(uVar33 & 0xff00)" ( (binary_expression "uVar33 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar33 << 0x18" identifier << number_literal))) ;) (expression_statement "key[2] = puVar20[6];" (assignment_expression "key[2] = puVar20[6]" (subscript_expression "key[2]" identifier [ number_literal ]) = (subscript_expression "puVar20[6]" identifier [ number_literal ])) ;) (expression_statement "key[3] = puVar20[7];" (assignment_expression "key[3] = puVar20[7]" (subscript_expression "key[3]" identifier [ number_literal ]) = (subscript_expression "puVar20[7]" identifier [ number_literal ])) ;) (expression_statement "pacVar36 = allowed;" (assignment_expression "pacVar36 = allowed" identifier = identifier) ;) (if_statement "if (uVar30 < uVar33) goto LAB_0029ddc4;" if (parenthesized_expression "(uVar30 < uVar33)" ( (binary_expression "uVar30 < uVar33" identifier < identifier) )) (goto_statement "goto LAB_0029ddc4;" goto statement_identifier ;)) (do_statement "do {\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  } while (&key != pacVar36);" do (compound_statement "{\n                    iVar18 = LocaleNCompare(key,*pacVar36,5);\n                    if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }\n                    pacVar36 = pacVar36 + 1;\n                  }" { (expression_statement "iVar18 = LocaleNCompare(key,*pacVar36,5);" (assignment_expression "iVar18 = LocaleNCompare(key,*pacVar36,5)" identifier = (call_expression "LocaleNCompare(key,*pacVar36,5)" identifier (argument_list "(key,*pacVar36,5)" ( identifier , (pointer_expression "*pacVar36" * identifier) , number_literal )))) ;) (if_statement "if (iVar18 == 0) {\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }" if (parenthesized_expression "(iVar18 == 0)" ( (binary_expression "iVar18 == 0" identifier == number_literal) )) (compound_statement "{\n                      sVar31 = uVar30 - uVar33;\n                      local_115c = local_115c + 0xc + uVar33;\n                      puVar20 = puVar20 + uVar33 + 0xc;\n                      goto LAB_0029cee4;\n                    }" { (expression_statement "sVar31 = uVar30 - uVar33;" (assignment_expression "sVar31 = uVar30 - uVar33" identifier = (binary_expression "uVar30 - uVar33" identifier - identifier)) ;) (expression_statement "local_115c = local_115c + 0xc + uVar33;" (assignment_expression "local_115c = local_115c + 0xc + uVar33" identifier = (binary_expression "local_115c + 0xc + uVar33" (binary_expression "local_115c + 0xc" identifier + number_literal) + identifier)) ;) (expression_statement "puVar20 = puVar20 + uVar33 + 0xc;" (assignment_expression "puVar20 = puVar20 + uVar33 + 0xc" identifier = (binary_expression "puVar20 + uVar33 + 0xc" (binary_expression "puVar20 + uVar33" identifier + identifier) + number_literal)) ;) (goto_statement "goto LAB_0029cee4;" goto statement_identifier ;) })) (expression_statement "pacVar36 = pacVar36 + 1;" (assignment_expression "pacVar36 = pacVar36 + 1" identifier = (binary_expression "pacVar36 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(&key != pacVar36)" ( (binary_expression "&key != pacVar36" (pointer_expression "&key" & identifier) != identifier) )) ;) (expression_statement "sVar31 = uVar30 - uVar33;" (assignment_expression "sVar31 = uVar30 - uVar33" identifier = (binary_expression "uVar30 - uVar33" identifier - identifier)) ;) (if_statement "if (sVar31 == 0) break;" if (parenthesized_expression "(sVar31 == 0)" ( (binary_expression "sVar31 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31);" (call_expression "memmove(puVar20,puVar20 + uVar33 + 0xc,sVar31)" identifier (argument_list "(puVar20,puVar20 + uVar33 + 0xc,sVar31)" ( identifier , (binary_expression "puVar20 + uVar33 + 0xc" (binary_expression "puVar20 + uVar33" identifier + identifier) + number_literal) , identifier ))) ;) (labeled_statement "LAB_0029cee4:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(0xb < sVar31)" ( (binary_expression "0xb < sVar31" number_literal < identifier) )) ;) (expression_statement "string_info = RemoveImageProfile(local_1178,"psd:additional-info");" (assignment_expression "string_info = RemoveImageProfile(local_1178,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(local_1178,"psd:additional-info")" identifier (argument_list "(local_1178,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (if_statement "if (local_115c != 0) {\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }" if (parenthesized_expression "(local_115c != 0)" ( (binary_expression "local_115c != 0" identifier != number_literal) )) (compound_statement "{\n                  SetStringInfoLength(string_info,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);\n                  goto LAB_0029cfc8;\n                }" { (expression_statement "SetStringInfoLength(string_info,local_115c);" (call_expression "SetStringInfoLength(string_info,local_115c)" identifier (argument_list "(string_info,local_115c)" ( identifier , identifier ))) ;) (expression_statement "SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception);" (call_expression "SetImageProfile(local_1178,"psd:additional-info",pSVar19,exception)" identifier (argument_list "(local_1178,"psd:additional-info",pSVar19,exception)" ( identifier , (string_literal ""psd:additional-info"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto LAB_0029cfc8;" goto statement_identifier ;) })) }))) (expression_statement "string_info = DestroyStringInfo(string_info);" (assignment_expression "string_info = DestroyStringInfo(string_info)" identifier = (call_expression "DestroyStringInfo(string_info)" identifier (argument_list "(string_info)" ( identifier )))) ;) }) (else_clause "else {\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }" else (compound_statement "{\n              pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar19);\n            }" { (expression_statement "pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info");" (assignment_expression "pSVar19 = RemoveImageProfile(local_1178,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(local_1178,"psd:additional-info")" identifier (argument_list "(local_1178,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (expression_statement "string_info = DestroyStringInfo(pSVar19);" (assignment_expression "string_info = DestroyStringInfo(pSVar19)" identifier = (call_expression "DestroyStringInfo(pSVar19)" identifier (argument_list "(pSVar19)" ( identifier )))) ;) }))) })) }))) (labeled_statement "LAB_0029cfc8:\n        pcVar8 = GetImageProperty(local_1178,"label",exception);" statement_identifier : (expression_statement "pcVar8 = GetImageProperty(local_1178,"label",exception);" (assignment_expression "pcVar8 = GetImageProperty(local_1178,"label",exception)" identifier = (call_expression "GetImageProperty(local_1178,"label",exception)" identifier (argument_list "(local_1178,"label",exception)" ( identifier , (string_literal ""label"" " string_content ") , identifier )))) ;)) (if_statement "if (pcVar8 == (char *)0x0) {\n          pcVar8 = layer_name;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",SUB84((double)iVar27,0),\n                             (int)((ulonglong)(double)iVar27 >> 0x20));\n        }" if (parenthesized_expression "(pcVar8 == (char *)0x0)" ( (binary_expression "pcVar8 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar8 = layer_name;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",SUB84((double)iVar27,0),\n                             (int)((ulonglong)(double)iVar27 >> 0x20));\n        }" { (expression_statement "pcVar8 = layer_name;" (assignment_expression "pcVar8 = layer_name" identifier = identifier) ;) (expression_statement "FormatLocaleString(pcVar8,0x1000,"L%.20g",SUB84((double)iVar27,0),\n                             (int)((ulonglong)(double)iVar27 >> 0x20));" (call_expression "FormatLocaleString(pcVar8,0x1000,"L%.20g",SUB84((double)iVar27,0),\n                             (int)((ulonglong)(double)iVar27 >> 0x20))" identifier (argument_list "(pcVar8,0x1000,"L%.20g",SUB84((double)iVar27,0),\n                             (int)((ulonglong)(double)iVar27 >> 0x20))" ( identifier , number_literal , (string_literal ""L%.20g"" " string_content ") , (call_expression "SUB84((double)iVar27,0)" identifier (argument_list "((double)iVar27,0)" ( (cast_expression "(double)iVar27" ( (type_descriptor "double" primitive_type) ) identifier) , number_literal ))) , (cast_expression "(int)((ulonglong)(double)iVar27 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)(double)iVar27 >> 0x20)" ( (binary_expression "(ulonglong)(double)iVar27 >> 0x20" (cast_expression "(ulonglong)(double)iVar27" ( (type_descriptor "ulonglong" type_identifier) ) (cast_expression "(double)iVar27" ( (type_descriptor "double" primitive_type) ) identifier)) >> number_literal) ))) ))) ;) })) (expression_statement "sVar9 = strlen(pcVar8);" (assignment_expression "sVar9 = strlen(pcVar8)" identifier = (call_expression "strlen(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier )))) ;) (expression_statement "uVar33 = sVar9 + 1;" (assignment_expression "uVar33 = sVar9 + 1" identifier = (binary_expression "sVar9 + 1" identifier + number_literal)) ;) (if_statement "if ((uVar33 & 3) != 0) {\n          uVar33 = (uVar33 & 0xfffffffc) + 4;\n        }" if (parenthesized_expression "((uVar33 & 3) != 0)" ( (binary_expression "(uVar33 & 3) != 0" (parenthesized_expression "(uVar33 & 3)" ( (binary_expression "uVar33 & 3" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          uVar33 = (uVar33 & 0xfffffffc) + 4;\n        }" { (expression_statement "uVar33 = (uVar33 & 0xfffffffc) + 4;" (assignment_expression "uVar33 = (uVar33 & 0xfffffffc) + 4" identifier = (binary_expression "(uVar33 & 0xfffffffc) + 4" (parenthesized_expression "(uVar33 & 0xfffffffc)" ( (binary_expression "uVar33 & 0xfffffffc" identifier & number_literal) )) + number_literal)) ;) })) (if_statement "if (string_info != (StringInfo *)0x0) {\n          sVar31 = GetStringInfoLength(string_info);\n          uVar33 = uVar33 + sVar31;\n        }" if (parenthesized_expression "(string_info != (StringInfo *)0x0)" ( (binary_expression "string_info != (StringInfo *)0x0" identifier != (cast_expression "(StringInfo *)0x0" ( (type_descriptor "StringInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          sVar31 = GetStringInfoLength(string_info);\n          uVar33 = uVar33 + sVar31;\n        }" { (expression_statement "sVar31 = GetStringInfoLength(string_info);" (assignment_expression "sVar31 = GetStringInfoLength(string_info)" identifier = (call_expression "GetStringInfoLength(string_info)" identifier (argument_list "(string_info)" ( identifier )))) ;) (expression_statement "uVar33 = uVar33 + sVar31;" (assignment_expression "uVar33 = uVar33 + sVar31" identifier = (binary_expression "uVar33 + sVar31" identifier + identifier)) ;) })) (if_statement "if (local_1174 == (Image *)0x0) {\n          sVar10 = WriteBlobLong(image,uVar33 + 8);\n          sVar11 = WriteBlobLong(image,0);\n          iVar35 = sVar10 + sVar11 + iVar35;\n        }\n        else {\n          sVar10 = WriteBlobLong(image,uVar33 + 0x1c);\n          if ((local_1174->compose != NoCompositeOp) &&\n             (local_1178->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_1174->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_1174->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar11 = WriteBlobLong(image,0x14);\n          sVar12 = WriteBlobSignedLong(image,(local_1174->page).y);\n          sVar13 = WriteBlobSignedLong(image,(local_1174->page).x);\n          sVar15 = WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows);\n          sVar21 = WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns);\n          sVar22 = WriteBlobByte(image,local_1103);\n          sVar23 = WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02');\n          sVar24 = WriteBlobMSBShort(image,0);\n          iVar35 = iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +\n                   sVar24;\n        }" if (parenthesized_expression "(local_1174 == (Image *)0x0)" ( (binary_expression "local_1174 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          sVar10 = WriteBlobLong(image,uVar33 + 8);\n          sVar11 = WriteBlobLong(image,0);\n          iVar35 = sVar10 + sVar11 + iVar35;\n        }" { (expression_statement "sVar10 = WriteBlobLong(image,uVar33 + 8);" (assignment_expression "sVar10 = WriteBlobLong(image,uVar33 + 8)" identifier = (call_expression "WriteBlobLong(image,uVar33 + 8)" identifier (argument_list "(image,uVar33 + 8)" ( identifier , (binary_expression "uVar33 + 8" identifier + number_literal) )))) ;) (expression_statement "sVar11 = WriteBlobLong(image,0);" (assignment_expression "sVar11 = WriteBlobLong(image,0)" identifier = (call_expression "WriteBlobLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar35 = sVar10 + sVar11 + iVar35;" (assignment_expression "iVar35 = sVar10 + sVar11 + iVar35" identifier = (binary_expression "sVar10 + sVar11 + iVar35" (binary_expression "sVar10 + sVar11" identifier + identifier) + identifier)) ;) }) (else_clause "else {\n          sVar10 = WriteBlobLong(image,uVar33 + 0x1c);\n          if ((local_1174->compose != NoCompositeOp) &&\n             (local_1178->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_1174->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_1174->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar11 = WriteBlobLong(image,0x14);\n          sVar12 = WriteBlobSignedLong(image,(local_1174->page).y);\n          sVar13 = WriteBlobSignedLong(image,(local_1174->page).x);\n          sVar15 = WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows);\n          sVar21 = WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns);\n          sVar22 = WriteBlobByte(image,local_1103);\n          sVar23 = WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02');\n          sVar24 = WriteBlobMSBShort(image,0);\n          iVar35 = iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +\n                   sVar24;\n        }" else (compound_statement "{\n          sVar10 = WriteBlobLong(image,uVar33 + 0x1c);\n          if ((local_1174->compose != NoCompositeOp) &&\n             (local_1178->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_1174->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_1174->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar11 = WriteBlobLong(image,0x14);\n          sVar12 = WriteBlobSignedLong(image,(local_1174->page).y);\n          sVar13 = WriteBlobSignedLong(image,(local_1174->page).x);\n          sVar15 = WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows);\n          sVar21 = WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns);\n          sVar22 = WriteBlobByte(image,local_1103);\n          sVar23 = WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02');\n          sVar24 = WriteBlobMSBShort(image,0);\n          iVar35 = iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +\n                   sVar24;\n        }" { (expression_statement "sVar10 = WriteBlobLong(image,uVar33 + 0x1c);" (assignment_expression "sVar10 = WriteBlobLong(image,uVar33 + 0x1c)" identifier = (call_expression "WriteBlobLong(image,uVar33 + 0x1c)" identifier (argument_list "(image,uVar33 + 0x1c)" ( identifier , (binary_expression "uVar33 + 0x1c" identifier + number_literal) )))) ;) (if_statement "if ((local_1174->compose != NoCompositeOp) &&\n             (local_1178->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception);\n          }" if (parenthesized_expression "((local_1174->compose != NoCompositeOp) &&\n             (local_1178->alpha_trait != UndefinedPixelTrait))" ( (binary_expression "(local_1174->compose != NoCompositeOp) &&\n             (local_1178->alpha_trait != UndefinedPixelTrait)" (parenthesized_expression "(local_1174->compose != NoCompositeOp)" ( (binary_expression "local_1174->compose != NoCompositeOp" (field_expression "local_1174->compose" identifier -> field_identifier) != identifier) )) && (parenthesized_expression "(local_1178->alpha_trait != UndefinedPixelTrait)" ( (binary_expression "local_1178->alpha_trait != UndefinedPixelTrait" (field_expression "local_1178->alpha_trait" identifier -> field_identifier) != identifier) ))) )) (compound_statement "{\n            ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception);\n          }" { (expression_statement "ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception);" (call_expression "ApplyPSDOpacityMask(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception)" identifier (argument_list "(local_1178,local_1174,(double)((float)local_1103 * DAT_002e814c),\n                                MagickTrue,exception)" ( identifier , identifier , (cast_expression "(double)((float)local_1103 * DAT_002e814c)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)local_1103 * DAT_002e814c)" ( (binary_expression "(float)local_1103 * DAT_002e814c" (cast_expression "(float)local_1103" ( (type_descriptor "float" primitive_type) ) identifier) * identifier) ))) , identifier , identifier ))) ;) })) (expression_statement "psVar1 = &(local_1174->page).y;" (assignment_expression "psVar1 = &(local_1174->page).y" identifier = (pointer_expression "&(local_1174->page).y" & (field_expression "(local_1174->page).y" (parenthesized_expression "(local_1174->page)" ( (field_expression "local_1174->page" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "*psVar1 = *psVar1 + (image->page).y;" (assignment_expression "*psVar1 = *psVar1 + (image->page).y" (pointer_expression "*psVar1" * identifier) = (binary_expression "*psVar1 + (image->page).y" (pointer_expression "*psVar1" * identifier) + (field_expression "(image->page).y" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "psVar1 = &(local_1174->page).x;" (assignment_expression "psVar1 = &(local_1174->page).x" identifier = (pointer_expression "&(local_1174->page).x" & (field_expression "(local_1174->page).x" (parenthesized_expression "(local_1174->page)" ( (field_expression "local_1174->page" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "*psVar1 = *psVar1 + (image->page).x;" (assignment_expression "*psVar1 = *psVar1 + (image->page).x" (pointer_expression "*psVar1" * identifier) = (binary_expression "*psVar1 + (image->page).x" (pointer_expression "*psVar1" * identifier) + (field_expression "(image->page).x" (parenthesized_expression "(image->page)" ( (field_expression "image->page" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "sVar11 = WriteBlobLong(image,0x14);" (assignment_expression "sVar11 = WriteBlobLong(image,0x14)" identifier = (call_expression "WriteBlobLong(image,0x14)" identifier (argument_list "(image,0x14)" ( identifier , number_literal )))) ;) (expression_statement "sVar12 = WriteBlobSignedLong(image,(local_1174->page).y);" (assignment_expression "sVar12 = WriteBlobSignedLong(image,(local_1174->page).y)" identifier = (call_expression "WriteBlobSignedLong(image,(local_1174->page).y)" identifier (argument_list "(image,(local_1174->page).y)" ( identifier , (field_expression "(local_1174->page).y" (parenthesized_expression "(local_1174->page)" ( (field_expression "local_1174->page" identifier -> field_identifier) )) . field_identifier) )))) ;) (expression_statement "sVar13 = WriteBlobSignedLong(image,(local_1174->page).x);" (assignment_expression "sVar13 = WriteBlobSignedLong(image,(local_1174->page).x)" identifier = (call_expression "WriteBlobSignedLong(image,(local_1174->page).x)" identifier (argument_list "(image,(local_1174->page).x)" ( identifier , (field_expression "(local_1174->page).x" (parenthesized_expression "(local_1174->page)" ( (field_expression "local_1174->page" identifier -> field_identifier) )) . field_identifier) )))) ;) (expression_statement "sVar15 = WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows);" (assignment_expression "sVar15 = WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows)" identifier = (call_expression "WriteBlobSignedLong(image,(local_1174->page).y + local_1174->rows)" identifier (argument_list "(image,(local_1174->page).y + local_1174->rows)" ( identifier , (binary_expression "(local_1174->page).y + local_1174->rows" (field_expression "(local_1174->page).y" (parenthesized_expression "(local_1174->page)" ( (field_expression "local_1174->page" identifier -> field_identifier) )) . field_identifier) + (field_expression "local_1174->rows" identifier -> field_identifier)) )))) ;) (expression_statement "sVar21 = WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns);" (assignment_expression "sVar21 = WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns)" identifier = (call_expression "WriteBlobSignedLong(image,(local_1174->page).x + local_1174->columns)" identifier (argument_list "(image,(local_1174->page).x + local_1174->columns)" ( identifier , (binary_expression "(local_1174->page).x + local_1174->columns" (field_expression "(local_1174->page).x" (parenthesized_expression "(local_1174->page)" ( (field_expression "local_1174->page" identifier -> field_identifier) )) . field_identifier) + (field_expression "local_1174->columns" identifier -> field_identifier)) )))) ;) (expression_statement "sVar22 = WriteBlobByte(image,local_1103);" (assignment_expression "sVar22 = WriteBlobByte(image,local_1103)" identifier = (call_expression "WriteBlobByte(image,local_1103)" identifier (argument_list "(image,local_1103)" ( identifier , identifier )))) ;) (expression_statement "sVar23 = WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02');" (assignment_expression "sVar23 = WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02')" identifier = (call_expression "WriteBlobByte(image,(local_1174->compose == NoCompositeOp) * '\x02')" identifier (argument_list "(image,(local_1174->compose == NoCompositeOp) * '\x02')" ( identifier , (binary_expression "(local_1174->compose == NoCompositeOp) * '\x02'" (parenthesized_expression "(local_1174->compose == NoCompositeOp)" ( (binary_expression "local_1174->compose == NoCompositeOp" (field_expression "local_1174->compose" identifier -> field_identifier) == identifier) )) * (char_literal "'\x02'" ' escape_sequence ')) )))) ;) (expression_statement "sVar24 = WriteBlobMSBShort(image,0);" (assignment_expression "sVar24 = WriteBlobMSBShort(image,0)" identifier = (call_expression "WriteBlobMSBShort(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar35 = iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +\n                   sVar24;" (assignment_expression "iVar35 = iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +\n                   sVar24" identifier = (binary_expression "iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23 +\n                   sVar24" (binary_expression "iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22 + sVar23" (binary_expression "iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21 + sVar22" (binary_expression "iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15 + sVar21" (binary_expression "iVar35 + sVar10 + sVar11 + sVar12 + sVar13 + sVar15" (binary_expression "iVar35 + sVar10 + sVar11 + sVar12 + sVar13" (binary_expression "iVar35 + sVar10 + sVar11 + sVar12" (binary_expression "iVar35 + sVar10 + sVar11" (binary_expression "iVar35 + sVar10" identifier + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier)) ;) }))) (expression_statement "sVar10 = WriteBlobLong(image,0);" (assignment_expression "sVar10 = WriteBlobLong(image,0)" identifier = (call_expression "WriteBlobLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) (expression_statement "sVar9 = strlen(pcVar8);" (assignment_expression "sVar9 = strlen(pcVar8)" identifier = (call_expression "strlen(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier )))) ;) (if_statement "if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            sVar12 = WriteBlobByte(image,'\0');\n            iVar18 = 3;\n          }\n          else {\n            sVar12 = WriteBlobByte(image,(uchar)sVar9);\n            sVar11 = WriteBlob(image,sVar9,pcVar8);\n            sVar12 = sVar12 + sVar11;\n            uVar33 = sVar9 + 1 & 3;\n            if (uVar33 == 0) goto LAB_0029d1b9;\n            iVar18 = 4 - uVar33;\n          }\n          iVar34 = 0;\n          do {\n            iVar34 = iVar34 + 1;\n            sVar11 = WriteBlobByte(image,'\0');\n            sVar12 = sVar12 + sVar11;\n          } while (iVar34 != iVar18);\n        }\n        else {\n          sVar12 = WriteBlobByte(image,0xff);\n          sVar11 = WriteBlob(image,0xff,pcVar8);\n          sVar12 = sVar12 + sVar11;\n        }" if (parenthesized_expression "(sVar9 < 0x100)" ( (binary_expression "sVar9 < 0x100" identifier < number_literal) )) (compound_statement "{\n          if (sVar9 == 0) {\n            sVar12 = WriteBlobByte(image,'\0');\n            iVar18 = 3;\n          }\n          else {\n            sVar12 = WriteBlobByte(image,(uchar)sVar9);\n            sVar11 = WriteBlob(image,sVar9,pcVar8);\n            sVar12 = sVar12 + sVar11;\n            uVar33 = sVar9 + 1 & 3;\n            if (uVar33 == 0) goto LAB_0029d1b9;\n            iVar18 = 4 - uVar33;\n          }\n          iVar34 = 0;\n          do {\n            iVar34 = iVar34 + 1;\n            sVar11 = WriteBlobByte(image,'\0');\n            sVar12 = sVar12 + sVar11;\n          } while (iVar34 != iVar18);\n        }" { (if_statement "if (sVar9 == 0) {\n            sVar12 = WriteBlobByte(image,'\0');\n            iVar18 = 3;\n          }\n          else {\n            sVar12 = WriteBlobByte(image,(uchar)sVar9);\n            sVar11 = WriteBlob(image,sVar9,pcVar8);\n            sVar12 = sVar12 + sVar11;\n            uVar33 = sVar9 + 1 & 3;\n            if (uVar33 == 0) goto LAB_0029d1b9;\n            iVar18 = 4 - uVar33;\n          }" if (parenthesized_expression "(sVar9 == 0)" ( (binary_expression "sVar9 == 0" identifier == number_literal) )) (compound_statement "{\n            sVar12 = WriteBlobByte(image,'\0');\n            iVar18 = 3;\n          }" { (expression_statement "sVar12 = WriteBlobByte(image,'\0');" (assignment_expression "sVar12 = WriteBlobByte(image,'\0')" identifier = (call_expression "WriteBlobByte(image,'\0')" identifier (argument_list "(image,'\0')" ( identifier , (char_literal "'\0'" ' escape_sequence ') )))) ;) (expression_statement "iVar18 = 3;" (assignment_expression "iVar18 = 3" identifier = number_literal) ;) }) (else_clause "else {\n            sVar12 = WriteBlobByte(image,(uchar)sVar9);\n            sVar11 = WriteBlob(image,sVar9,pcVar8);\n            sVar12 = sVar12 + sVar11;\n            uVar33 = sVar9 + 1 & 3;\n            if (uVar33 == 0) goto LAB_0029d1b9;\n            iVar18 = 4 - uVar33;\n          }" else (compound_statement "{\n            sVar12 = WriteBlobByte(image,(uchar)sVar9);\n            sVar11 = WriteBlob(image,sVar9,pcVar8);\n            sVar12 = sVar12 + sVar11;\n            uVar33 = sVar9 + 1 & 3;\n            if (uVar33 == 0) goto LAB_0029d1b9;\n            iVar18 = 4 - uVar33;\n          }" { (expression_statement "sVar12 = WriteBlobByte(image,(uchar)sVar9);" (assignment_expression "sVar12 = WriteBlobByte(image,(uchar)sVar9)" identifier = (call_expression "WriteBlobByte(image,(uchar)sVar9)" identifier (argument_list "(image,(uchar)sVar9)" ( identifier , (cast_expression "(uchar)sVar9" ( (type_descriptor "uchar" type_identifier) ) identifier) )))) ;) (expression_statement "sVar11 = WriteBlob(image,sVar9,pcVar8);" (assignment_expression "sVar11 = WriteBlob(image,sVar9,pcVar8)" identifier = (call_expression "WriteBlob(image,sVar9,pcVar8)" identifier (argument_list "(image,sVar9,pcVar8)" ( identifier , identifier , identifier )))) ;) (expression_statement "sVar12 = sVar12 + sVar11;" (assignment_expression "sVar12 = sVar12 + sVar11" identifier = (binary_expression "sVar12 + sVar11" identifier + identifier)) ;) (expression_statement "uVar33 = sVar9 + 1 & 3;" (assignment_expression "uVar33 = sVar9 + 1 & 3" identifier = (binary_expression "sVar9 + 1 & 3" (binary_expression "sVar9 + 1" identifier + number_literal) & number_literal)) ;) (if_statement "if (uVar33 == 0) goto LAB_0029d1b9;" if (parenthesized_expression "(uVar33 == 0)" ( (binary_expression "uVar33 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0029d1b9;" goto statement_identifier ;)) (expression_statement "iVar18 = 4 - uVar33;" (assignment_expression "iVar18 = 4 - uVar33" identifier = (binary_expression "4 - uVar33" number_literal - identifier)) ;) }))) (expression_statement "iVar34 = 0;" (assignment_expression "iVar34 = 0" identifier = number_literal) ;) (do_statement "do {\n            iVar34 = iVar34 + 1;\n            sVar11 = WriteBlobByte(image,'\0');\n            sVar12 = sVar12 + sVar11;\n          } while (iVar34 != iVar18);" do (compound_statement "{\n            iVar34 = iVar34 + 1;\n            sVar11 = WriteBlobByte(image,'\0');\n            sVar12 = sVar12 + sVar11;\n          }" { (expression_statement "iVar34 = iVar34 + 1;" (assignment_expression "iVar34 = iVar34 + 1" identifier = (binary_expression "iVar34 + 1" identifier + number_literal)) ;) (expression_statement "sVar11 = WriteBlobByte(image,'\0');" (assignment_expression "sVar11 = WriteBlobByte(image,'\0')" identifier = (call_expression "WriteBlobByte(image,'\0')" identifier (argument_list "(image,'\0')" ( identifier , (char_literal "'\0'" ' escape_sequence ') )))) ;) (expression_statement "sVar12 = sVar12 + sVar11;" (assignment_expression "sVar12 = sVar12 + sVar11" identifier = (binary_expression "sVar12 + sVar11" identifier + identifier)) ;) }) while (parenthesized_expression "(iVar34 != iVar18)" ( (binary_expression "iVar34 != iVar18" identifier != identifier) )) ;) }) (else_clause "else {\n          sVar12 = WriteBlobByte(image,0xff);\n          sVar11 = WriteBlob(image,0xff,pcVar8);\n          sVar12 = sVar12 + sVar11;\n        }" else (compound_statement "{\n          sVar12 = WriteBlobByte(image,0xff);\n          sVar11 = WriteBlob(image,0xff,pcVar8);\n          sVar12 = sVar12 + sVar11;\n        }" { (expression_statement "sVar12 = WriteBlobByte(image,0xff);" (assignment_expression "sVar12 = WriteBlobByte(image,0xff)" identifier = (call_expression "WriteBlobByte(image,0xff)" identifier (argument_list "(image,0xff)" ( identifier , number_literal )))) ;) (expression_statement "sVar11 = WriteBlob(image,0xff,pcVar8);" (assignment_expression "sVar11 = WriteBlob(image,0xff,pcVar8)" identifier = (call_expression "WriteBlob(image,0xff,pcVar8)" identifier (argument_list "(image,0xff,pcVar8)" ( identifier , number_literal , identifier )))) ;) (expression_statement "sVar12 = sVar12 + sVar11;" (assignment_expression "sVar12 = sVar12 + sVar11" identifier = (binary_expression "sVar12 + sVar11" identifier + identifier)) ;) }))) (labeled_statement "LAB_0029d1b9:\n        local_1130 = sVar12 + sVar10 + iVar35;" statement_identifier : (expression_statement "local_1130 = sVar12 + sVar10 + iVar35;" (assignment_expression "local_1130 = sVar12 + sVar10 + iVar35" identifier = (binary_expression "sVar12 + sVar10 + iVar35" (binary_expression "sVar12 + sVar10" identifier + identifier) + identifier)) ;)) (if_statement "if (string_info != (StringInfo *)0x0) {\n          puVar20 = GetStringInfoDatum(string_info);\n          sVar31 = GetStringInfoLength(string_info);\n          sVar10 = WriteBlob(image,sVar31,puVar20);\n          local_1130 = local_1130 + sVar10;\n        }" if (parenthesized_expression "(string_info != (StringInfo *)0x0)" ( (binary_expression "string_info != (StringInfo *)0x0" identifier != (cast_expression "(StringInfo *)0x0" ( (type_descriptor "StringInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          puVar20 = GetStringInfoDatum(string_info);\n          sVar31 = GetStringInfoLength(string_info);\n          sVar10 = WriteBlob(image,sVar31,puVar20);\n          local_1130 = local_1130 + sVar10;\n        }" { (expression_statement "puVar20 = GetStringInfoDatum(string_info);" (assignment_expression "puVar20 = GetStringInfoDatum(string_info)" identifier = (call_expression "GetStringInfoDatum(string_info)" identifier (argument_list "(string_info)" ( identifier )))) ;) (expression_statement "sVar31 = GetStringInfoLength(string_info);" (assignment_expression "sVar31 = GetStringInfoLength(string_info)" identifier = (call_expression "GetStringInfoLength(string_info)" identifier (argument_list "(string_info)" ( identifier )))) ;) (expression_statement "sVar10 = WriteBlob(image,sVar31,puVar20);" (assignment_expression "sVar10 = WriteBlob(image,sVar31,puVar20)" identifier = (call_expression "WriteBlob(image,sVar31,puVar20)" identifier (argument_list "(image,sVar31,puVar20)" ( identifier , identifier , identifier )))) ;) (expression_statement "local_1130 = local_1130 + sVar10;" (assignment_expression "local_1130 = local_1130 + sVar10" identifier = (binary_expression "local_1130 + sVar10" identifier + identifier)) ;) })) (expression_statement "local_1178 = GetNextImageInList(local_1178);" (assignment_expression "local_1178 = GetNextImageInList(local_1178)" identifier = (call_expression "GetNextImageInList(local_1178)" identifier (argument_list "(local_1178)" ( identifier )))) ;) (expression_statement "pIVar7 = pIVar6;" (assignment_expression "pIVar7 = pIVar6" identifier = identifier) ;) (expression_statement "local_1150 = memory;" (assignment_expression "local_1150 = memory" identifier = identifier) ;) }) while (parenthesized_expression "(local_1178 != (Image *)0x0)" ( (binary_expression "local_1178 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (do_statement "do {\n        local_1178 = (Image *)0x0;\n        uVar33 = *local_1150;\n        uVar30 = local_1150[1];\n        compression = image_info->compression;\n        if (image_info->compression == UndefinedCompression) {\n          compression = pIVar7->compression;\n        }\n        if ((compression == RLECompression) &&\n           (local_1178 = (Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1),\n           next_image = pIVar7, local_1178 == (Image *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,\n                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename);\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar29 = uVar33 + 2;\n        iVar27 = uVar30 + (0xfffffffd < uVar33);\n        if ((pIVar7->storage_class == PseudoClass) &&\n           (MVar14 = IsImageGray(pIVar7), MVar14 == MagickFalse)) {\n          sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178\n                                   ,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n          if (psd_info->version == 1) {\n            sVar10 = WriteBlobLong(image,sVar31);\n          }\n          else {\n            sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n          }\n          uVar33 = sVar10 + 2;\n          SeekBlob(image,MVar39,0);\n          local_115c = uVar33 + uVar29;\n          local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n        }\n        else {\n          MVar14 = IsImageGray(pIVar7);\n          if (MVar14 == MagickFalse) {\n            if (pIVar7->colorspace == CMYKColorspace) {\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar30 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar33 = uVar30 + uVar29;\n            iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);\n            value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar33),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,value_00);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }\n            uVar29 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar30 = uVar29 + uVar33;\n            iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar30),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar30;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);\n            sVar31 = sVar25 + value_00 + sVar31;\n            if (pIVar7->colorspace == CMYKColorspace) {\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }\n          }\n          else {\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar29;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n          }\n          if (pIVar7->alpha_trait != UndefinedPixelTrait) {\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            bVar37 = CARRY4(local_115c,uVar33);\n            local_115c = local_115c + uVar33;\n            local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n            sVar31 = sVar31 + sVar25;\n          }\n        }\n        local_1178 = (Image *)RelinquishMagickMemory(local_1178);\n        if (pIVar7->colorspace == CMYKColorspace) {\n          CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n          NegateImage(pIVar7,MagickFalse,exception);\n          SetImageChannelMask(pIVar7,CVar26);\n        }\n        pcVar8 = GetImageArtifact(pIVar7,"psd:opacity-mask");\n        if ((pcVar8 != (char *)0x0) &&\n           (next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception),\n           next_image != (Image *)0x0)) {\n          if ((compression == RLECompression) &&\n             (local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0)) goto LAB_0029dbfc;\n          sVar25 = WritePSDChannel(psd_info,image_info,image,next_image,RedQuantum,\n                                   (uchar *)local_1178,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n          if (psd_info->version == 1) {\n            WriteBlobLong(image,sVar25);\n          }\n          else {\n            WriteBlobLongLong(image,(ulonglong)sVar25);\n          }\n          SeekBlob(image,MVar39,0);\n          sVar31 = sVar31 + sVar25;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (sVar31 == 0) {\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + sVar31;\n        pIVar7 = GetNextImageInList(pIVar7);\n        local_1150 = local_1150 + 2;\n      } while (pIVar7 != (Image *)0x0);" do (compound_statement "{\n        local_1178 = (Image *)0x0;\n        uVar33 = *local_1150;\n        uVar30 = local_1150[1];\n        compression = image_info->compression;\n        if (image_info->compression == UndefinedCompression) {\n          compression = pIVar7->compression;\n        }\n        if ((compression == RLECompression) &&\n           (local_1178 = (Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1),\n           next_image = pIVar7, local_1178 == (Image *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,\n                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename);\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar29 = uVar33 + 2;\n        iVar27 = uVar30 + (0xfffffffd < uVar33);\n        if ((pIVar7->storage_class == PseudoClass) &&\n           (MVar14 = IsImageGray(pIVar7), MVar14 == MagickFalse)) {\n          sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178\n                                   ,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n          if (psd_info->version == 1) {\n            sVar10 = WriteBlobLong(image,sVar31);\n          }\n          else {\n            sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n          }\n          uVar33 = sVar10 + 2;\n          SeekBlob(image,MVar39,0);\n          local_115c = uVar33 + uVar29;\n          local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n        }\n        else {\n          MVar14 = IsImageGray(pIVar7);\n          if (MVar14 == MagickFalse) {\n            if (pIVar7->colorspace == CMYKColorspace) {\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar30 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar33 = uVar30 + uVar29;\n            iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);\n            value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar33),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,value_00);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }\n            uVar29 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar30 = uVar29 + uVar33;\n            iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar30),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar30;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);\n            sVar31 = sVar25 + value_00 + sVar31;\n            if (pIVar7->colorspace == CMYKColorspace) {\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }\n          }\n          else {\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar29;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n          }\n          if (pIVar7->alpha_trait != UndefinedPixelTrait) {\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            bVar37 = CARRY4(local_115c,uVar33);\n            local_115c = local_115c + uVar33;\n            local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n            sVar31 = sVar31 + sVar25;\n          }\n        }\n        local_1178 = (Image *)RelinquishMagickMemory(local_1178);\n        if (pIVar7->colorspace == CMYKColorspace) {\n          CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n          NegateImage(pIVar7,MagickFalse,exception);\n          SetImageChannelMask(pIVar7,CVar26);\n        }\n        pcVar8 = GetImageArtifact(pIVar7,"psd:opacity-mask");\n        if ((pcVar8 != (char *)0x0) &&\n           (next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception),\n           next_image != (Image *)0x0)) {\n          if ((compression == RLECompression) &&\n             (local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0)) goto LAB_0029dbfc;\n          sVar25 = WritePSDChannel(psd_info,image_info,image,next_image,RedQuantum,\n                                   (uchar *)local_1178,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n          if (psd_info->version == 1) {\n            WriteBlobLong(image,sVar25);\n          }\n          else {\n            WriteBlobLongLong(image,(ulonglong)sVar25);\n          }\n          SeekBlob(image,MVar39,0);\n          sVar31 = sVar31 + sVar25;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (sVar31 == 0) {\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + sVar31;\n        pIVar7 = GetNextImageInList(pIVar7);\n        local_1150 = local_1150 + 2;\n      }" { (expression_statement "local_1178 = (Image *)0x0;" (assignment_expression "local_1178 = (Image *)0x0" identifier = (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar33 = *local_1150;" (assignment_expression "uVar33 = *local_1150" identifier = (pointer_expression "*local_1150" * identifier)) ;) (expression_statement "uVar30 = local_1150[1];" (assignment_expression "uVar30 = local_1150[1]" identifier = (subscript_expression "local_1150[1]" identifier [ number_literal ])) ;) (expression_statement "compression = image_info->compression;" (assignment_expression "compression = image_info->compression" identifier = (field_expression "image_info->compression" identifier -> field_identifier)) ;) (if_statement "if (image_info->compression == UndefinedCompression) {\n          compression = pIVar7->compression;\n        }" if (parenthesized_expression "(image_info->compression == UndefinedCompression)" ( (binary_expression "image_info->compression == UndefinedCompression" (field_expression "image_info->compression" identifier -> field_identifier) == identifier) )) (compound_statement "{\n          compression = pIVar7->compression;\n        }" { (expression_statement "compression = pIVar7->compression;" (assignment_expression "compression = pIVar7->compression" identifier = (field_expression "pIVar7->compression" identifier -> field_identifier)) ;) })) (if_statement "if ((compression == RLECompression) &&\n           (local_1178 = (Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1),\n           next_image = pIVar7, local_1178 == (Image *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,\n                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename);\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }" if (parenthesized_expression "((compression == RLECompression) &&\n           (local_1178 = (Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1),\n           next_image = pIVar7, local_1178 == (Image *)0x0))" ( (binary_expression "(compression == RLECompression) &&\n           (local_1178 = (Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1),\n           next_image = pIVar7, local_1178 == (Image *)0x0)" (parenthesized_expression "(compression == RLECompression)" ( (binary_expression "compression == RLECompression" identifier == identifier) )) && (parenthesized_expression "(local_1178 = (Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1),\n           next_image = pIVar7, local_1178 == (Image *)0x0)" ( (comma_expression "local_1178 = (Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1),\n           next_image = pIVar7, local_1178 == (Image *)0x0" (assignment_expression "local_1178 = (Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1)" identifier = (cast_expression "(Image *)AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory\n                                            (pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1)" identifier (argument_list "(pIVar7->columns * 9 + 1,(8 < pIVar7->depth) + 1)" ( (binary_expression "pIVar7->columns * 9 + 1" (binary_expression "pIVar7->columns * 9" (field_expression "pIVar7->columns" identifier -> field_identifier) * number_literal) + number_literal) , (binary_expression "(8 < pIVar7->depth) + 1" (parenthesized_expression "(8 < pIVar7->depth)" ( (binary_expression "8 < pIVar7->depth" number_literal < (field_expression "pIVar7->depth" identifier -> field_identifier)) )) + number_literal) ))))) , (comma_expression "next_image = pIVar7, local_1178 == (Image *)0x0" (assignment_expression "next_image = pIVar7" identifier = identifier) , (binary_expression "local_1178 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)))) ))) )) (compound_statement "{\nLAB_0029dbfc:\n          ThrowMagickException\n                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,\n                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename);\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }" { (labeled_statement "LAB_0029dbfc:\n          ThrowMagickException\n                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,\n                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename);" statement_identifier : (expression_statement "ThrowMagickException\n                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,\n                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename);" (call_expression "ThrowMagickException\n                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,\n                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename)" identifier (argument_list "(exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,\n                     "MemoryAllocationFailed","`%s\'",0x6e,next_image->filename)" ( identifier , (string_literal ""coders/psd.c"" " string_content ") , (string_literal ""AcquireCompactPixels"" " string_content ") , number_literal , identifier , (string_literal ""MemoryAllocationFailed"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , number_literal , (field_expression "next_image->filename" identifier -> field_identifier) ))) ;)) (expression_statement "local_1178 = (Image *)0x0;" (assignment_expression "local_1178 = (Image *)0x0" identifier = (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_0029dc36;" goto statement_identifier ;) })) (expression_statement "uVar29 = uVar33 + 2;" (assignment_expression "uVar29 = uVar33 + 2" identifier = (binary_expression "uVar33 + 2" identifier + number_literal)) ;) (expression_statement "iVar27 = uVar30 + (0xfffffffd < uVar33);" (assignment_expression "iVar27 = uVar30 + (0xfffffffd < uVar33)" identifier = (binary_expression "uVar30 + (0xfffffffd < uVar33)" identifier + (parenthesized_expression "(0xfffffffd < uVar33)" ( (binary_expression "0xfffffffd < uVar33" number_literal < identifier) )))) ;) (if_statement "if ((pIVar7->storage_class == PseudoClass) &&\n           (MVar14 = IsImageGray(pIVar7), MVar14 == MagickFalse)) {\n          sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178\n                                   ,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n          if (psd_info->version == 1) {\n            sVar10 = WriteBlobLong(image,sVar31);\n          }\n          else {\n            sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n          }\n          uVar33 = sVar10 + 2;\n          SeekBlob(image,MVar39,0);\n          local_115c = uVar33 + uVar29;\n          local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n        }\n        else {\n          MVar14 = IsImageGray(pIVar7);\n          if (MVar14 == MagickFalse) {\n            if (pIVar7->colorspace == CMYKColorspace) {\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar30 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar33 = uVar30 + uVar29;\n            iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);\n            value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar33),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,value_00);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }\n            uVar29 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar30 = uVar29 + uVar33;\n            iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar30),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar30;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);\n            sVar31 = sVar25 + value_00 + sVar31;\n            if (pIVar7->colorspace == CMYKColorspace) {\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }\n          }\n          else {\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar29;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n          }\n          if (pIVar7->alpha_trait != UndefinedPixelTrait) {\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            bVar37 = CARRY4(local_115c,uVar33);\n            local_115c = local_115c + uVar33;\n            local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n            sVar31 = sVar31 + sVar25;\n          }\n        }" if (parenthesized_expression "((pIVar7->storage_class == PseudoClass) &&\n           (MVar14 = IsImageGray(pIVar7), MVar14 == MagickFalse))" ( (binary_expression "(pIVar7->storage_class == PseudoClass) &&\n           (MVar14 = IsImageGray(pIVar7), MVar14 == MagickFalse)" (parenthesized_expression "(pIVar7->storage_class == PseudoClass)" ( (binary_expression "pIVar7->storage_class == PseudoClass" (field_expression "pIVar7->storage_class" identifier -> field_identifier) == identifier) )) && (parenthesized_expression "(MVar14 = IsImageGray(pIVar7), MVar14 == MagickFalse)" ( (comma_expression "MVar14 = IsImageGray(pIVar7), MVar14 == MagickFalse" (assignment_expression "MVar14 = IsImageGray(pIVar7)" identifier = (call_expression "IsImageGray(pIVar7)" identifier (argument_list "(pIVar7)" ( identifier )))) , (binary_expression "MVar14 == MagickFalse" identifier == identifier)) ))) )) (compound_statement "{\n          sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178\n                                   ,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n          if (psd_info->version == 1) {\n            sVar10 = WriteBlobLong(image,sVar31);\n          }\n          else {\n            sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n          }\n          uVar33 = sVar10 + 2;\n          SeekBlob(image,MVar39,0);\n          local_115c = uVar33 + uVar29;\n          local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n        }" { (expression_statement "sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178\n                                   ,0,MagickTrue,compression,exception);" (assignment_expression "sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178\n                                   ,0,MagickTrue,compression,exception)" identifier = (call_expression "WritePSDChannel(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178\n                                   ,0,MagickTrue,compression,exception)" identifier (argument_list "(psd_info,image_info,image,pIVar7,IndexQuantum,(uchar *)local_1178\n                                   ,0,MagickTrue,compression,exception)" ( identifier , identifier , identifier , identifier , identifier , (cast_expression "(uchar *)local_1178" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "MVar39 = TellBlob(image);" (assignment_expression "MVar39 = TellBlob(image)" identifier = (call_expression "TellBlob(image)" identifier (argument_list "(image)" ( identifier )))) ;) (expression_statement "SeekBlob(image,CONCAT44(iVar27,uVar29),0);" (call_expression "SeekBlob(image,CONCAT44(iVar27,uVar29),0)" identifier (argument_list "(image,CONCAT44(iVar27,uVar29),0)" ( identifier , (call_expression "CONCAT44(iVar27,uVar29)" identifier (argument_list "(iVar27,uVar29)" ( identifier , identifier ))) , number_literal ))) ;) (if_statement "if (psd_info->version == 1) {\n            sVar10 = WriteBlobLong(image,sVar31);\n          }\n          else {\n            sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n          }" if (parenthesized_expression "(psd_info->version == 1)" ( (binary_expression "psd_info->version == 1" (field_expression "psd_info->version" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n            sVar10 = WriteBlobLong(image,sVar31);\n          }" { (expression_statement "sVar10 = WriteBlobLong(image,sVar31);" (assignment_expression "sVar10 = WriteBlobLong(image,sVar31)" identifier = (call_expression "WriteBlobLong(image,sVar31)" identifier (argument_list "(image,sVar31)" ( identifier , identifier )))) ;) }) (else_clause "else {\n            sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n          }" else (compound_statement "{\n            sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n          }" { (expression_statement "sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);" (assignment_expression "sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31)" identifier = (call_expression "WriteBlobLongLong(image,(ulonglong)sVar31)" identifier (argument_list "(image,(ulonglong)sVar31)" ( identifier , (cast_expression "(ulonglong)sVar31" ( (type_descriptor "ulonglong" type_identifier) ) identifier) )))) ;) }))) (expression_statement "uVar33 = sVar10 + 2;" (assignment_expression "uVar33 = sVar10 + 2" identifier = (binary_expression "sVar10 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(image,MVar39,0);" (call_expression "SeekBlob(image,MVar39,0)" identifier (argument_list "(image,MVar39,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "local_115c = uVar33 + uVar29;" (assignment_expression "local_115c = uVar33 + uVar29" identifier = (binary_expression "uVar33 + uVar29" identifier + identifier)) ;) (expression_statement "local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);" (assignment_expression "local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29)" identifier = (binary_expression "((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29)" (binary_expression "((int)uVar33 >> 0x1f) + iVar27" (parenthesized_expression "((int)uVar33 >> 0x1f)" ( (binary_expression "(int)uVar33 >> 0x1f" (cast_expression "(int)uVar33" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar33,uVar29)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar33,uVar29)" identifier (argument_list "(uVar33,uVar29)" ( identifier , identifier )))))) ;) }) (else_clause "else {\n          MVar14 = IsImageGray(pIVar7);\n          if (MVar14 == MagickFalse) {\n            if (pIVar7->colorspace == CMYKColorspace) {\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar30 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar33 = uVar30 + uVar29;\n            iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);\n            value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar33),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,value_00);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }\n            uVar29 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar30 = uVar29 + uVar33;\n            iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar30),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar30;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);\n            sVar31 = sVar25 + value_00 + sVar31;\n            if (pIVar7->colorspace == CMYKColorspace) {\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }\n          }\n          else {\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar29;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n          }\n          if (pIVar7->alpha_trait != UndefinedPixelTrait) {\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            bVar37 = CARRY4(local_115c,uVar33);\n            local_115c = local_115c + uVar33;\n            local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n            sVar31 = sVar31 + sVar25;\n          }\n        }" else (compound_statement "{\n          MVar14 = IsImageGray(pIVar7);\n          if (MVar14 == MagickFalse) {\n            if (pIVar7->colorspace == CMYKColorspace) {\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar30 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar33 = uVar30 + uVar29;\n            iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);\n            value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar33),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,value_00);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }\n            uVar29 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar30 = uVar29 + uVar33;\n            iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar30),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar30;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);\n            sVar31 = sVar25 + value_00 + sVar31;\n            if (pIVar7->colorspace == CMYKColorspace) {\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }\n          }\n          else {\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar29;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n          }\n          if (pIVar7->alpha_trait != UndefinedPixelTrait) {\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            bVar37 = CARRY4(local_115c,uVar33);\n            local_115c = local_115c + uVar33;\n            local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n            sVar31 = sVar31 + sVar25;\n          }\n        }" { (expression_statement "MVar14 = IsImageGray(pIVar7);" (assignment_expression "MVar14 = IsImageGray(pIVar7)" identifier = (call_expression "IsImageGray(pIVar7)" identifier (argument_list "(pIVar7)" ( identifier )))) ;) (if_statement "if (MVar14 == MagickFalse) {\n            if (pIVar7->colorspace == CMYKColorspace) {\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar30 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar33 = uVar30 + uVar29;\n            iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);\n            value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar33),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,value_00);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }\n            uVar29 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar30 = uVar29 + uVar33;\n            iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar30),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar30;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);\n            sVar31 = sVar25 + value_00 + sVar31;\n            if (pIVar7->colorspace == CMYKColorspace) {\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }\n          }\n          else {\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar29;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n          }" if (parenthesized_expression "(MVar14 == MagickFalse)" ( (binary_expression "MVar14 == MagickFalse" identifier == identifier) )) (compound_statement "{\n            if (pIVar7->colorspace == CMYKColorspace) {\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar30 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar33 = uVar30 + uVar29;\n            iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);\n            value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar33),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,value_00);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }\n            uVar29 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            uVar30 = uVar29 + uVar33;\n            iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar30),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar30;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);\n            sVar31 = sVar25 + value_00 + sVar31;\n            if (pIVar7->colorspace == CMYKColorspace) {\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }\n          }" { (if_statement "if (pIVar7->colorspace == CMYKColorspace) {\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }" if (parenthesized_expression "(pIVar7->colorspace == CMYKColorspace)" ( (binary_expression "pIVar7->colorspace == CMYKColorspace" (field_expression "pIVar7->colorspace" identifier -> field_identifier) == identifier) )) (compound_statement "{\n              CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n              NegateImage(pIVar7,MagickFalse,exception);\n              SetImageChannelMask(pIVar7,CVar26);\n            }" { (expression_statement "CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);" (assignment_expression "CVar26 = SetImageChannelMask(pIVar7,0x7ffffef)" identifier = (call_expression "SetImageChannelMask(pIVar7,0x7ffffef)" identifier (argument_list "(pIVar7,0x7ffffef)" ( identifier , number_literal )))) ;) (expression_statement "NegateImage(pIVar7,MagickFalse,exception);" (call_expression "NegateImage(pIVar7,MagickFalse,exception)" identifier (argument_list "(pIVar7,MagickFalse,exception)" ( identifier , identifier , identifier ))) ;) (expression_statement "SetImageChannelMask(pIVar7,CVar26);" (call_expression "SetImageChannelMask(pIVar7,CVar26)" identifier (argument_list "(pIVar7,CVar26)" ( identifier , identifier ))) ;) })) (expression_statement "sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception);" (assignment_expression "sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception)" identifier = (call_expression "WritePSDChannel(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception)" identifier (argument_list "(psd_info,image_info,image,pIVar7,RedQuantum,(uchar *)local_1178\n                                     ,0,MagickTrue,compression,exception)" ( identifier , identifier , identifier , identifier , identifier , (cast_expression "(uchar *)local_1178" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "MVar39 = TellBlob(image);" (assignment_expression "MVar39 = TellBlob(image)" identifier = (call_expression "TellBlob(image)" identifier (argument_list "(image)" ( identifier )))) ;) (expression_statement "SeekBlob(image,CONCAT44(iVar27,uVar29),0);" (call_expression "SeekBlob(image,CONCAT44(iVar27,uVar29),0)" identifier (argument_list "(image,CONCAT44(iVar27,uVar29),0)" ( identifier , (call_expression "CONCAT44(iVar27,uVar29)" identifier (argument_list "(iVar27,uVar29)" ( identifier , identifier ))) , number_literal ))) ;) (if_statement "if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }" if (parenthesized_expression "(psd_info->version == 1)" ( (binary_expression "psd_info->version == 1" (field_expression "psd_info->version" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n              sVar10 = WriteBlobLong(image,sVar25);\n            }" { (expression_statement "sVar10 = WriteBlobLong(image,sVar25);" (assignment_expression "sVar10 = WriteBlobLong(image,sVar25)" identifier = (call_expression "WriteBlobLong(image,sVar25)" identifier (argument_list "(image,sVar25)" ( identifier , identifier )))) ;) }) (else_clause "else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }" else (compound_statement "{\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }" { (expression_statement "sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);" (assignment_expression "sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25)" identifier = (call_expression "WriteBlobLongLong(image,(ulonglong)sVar25)" identifier (argument_list "(image,(ulonglong)sVar25)" ( identifier , (cast_expression "(ulonglong)sVar25" ( (type_descriptor "ulonglong" type_identifier) ) identifier) )))) ;) }))) (expression_statement "uVar30 = sVar10 + 2;" (assignment_expression "uVar30 = sVar10 + 2" identifier = (binary_expression "sVar10 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(image,MVar39,0);" (call_expression "SeekBlob(image,MVar39,0)" identifier (argument_list "(image,MVar39,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "uVar33 = uVar30 + uVar29;" (assignment_expression "uVar33 = uVar30 + uVar29" identifier = (binary_expression "uVar30 + uVar29" identifier + identifier)) ;) (expression_statement "iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29);" (assignment_expression "iVar27 = ((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29)" identifier = (binary_expression "((int)uVar30 >> 0x1f) + iVar27 + (uint)CARRY4(uVar30,uVar29)" (binary_expression "((int)uVar30 >> 0x1f) + iVar27" (parenthesized_expression "((int)uVar30 >> 0x1f)" ( (binary_expression "(int)uVar30 >> 0x1f" (cast_expression "(int)uVar30" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar30,uVar29)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar30,uVar29)" identifier (argument_list "(uVar30,uVar29)" ( identifier , identifier )))))) ;) (expression_statement "value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);" (assignment_expression "value_00 = WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception)" identifier = (call_expression "WritePSDChannel(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception)" identifier (argument_list "(psd_info,image_info,image,pIVar7,GreenQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception)" ( identifier , identifier , identifier , identifier , identifier , (cast_expression "(uchar *)local_1178" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "MVar39 = TellBlob(image);" (assignment_expression "MVar39 = TellBlob(image)" identifier = (call_expression "TellBlob(image)" identifier (argument_list "(image)" ( identifier )))) ;) (expression_statement "SeekBlob(image,CONCAT44(iVar27,uVar33),0);" (call_expression "SeekBlob(image,CONCAT44(iVar27,uVar33),0)" identifier (argument_list "(image,CONCAT44(iVar27,uVar33),0)" ( identifier , (call_expression "CONCAT44(iVar27,uVar33)" identifier (argument_list "(iVar27,uVar33)" ( identifier , identifier ))) , number_literal ))) ;) (if_statement "if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,value_00);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }" if (parenthesized_expression "(psd_info->version == 1)" ( (binary_expression "psd_info->version == 1" (field_expression "psd_info->version" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n              sVar10 = WriteBlobLong(image,value_00);\n            }" { (expression_statement "sVar10 = WriteBlobLong(image,value_00);" (assignment_expression "sVar10 = WriteBlobLong(image,value_00)" identifier = (call_expression "WriteBlobLong(image,value_00)" identifier (argument_list "(image,value_00)" ( identifier , identifier )))) ;) }) (else_clause "else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }" else (compound_statement "{\n              sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);\n            }" { (expression_statement "sVar10 = WriteBlobLongLong(image,(ulonglong)value_00);" (assignment_expression "sVar10 = WriteBlobLongLong(image,(ulonglong)value_00)" identifier = (call_expression "WriteBlobLongLong(image,(ulonglong)value_00)" identifier (argument_list "(image,(ulonglong)value_00)" ( identifier , (cast_expression "(ulonglong)value_00" ( (type_descriptor "ulonglong" type_identifier) ) identifier) )))) ;) }))) (expression_statement "uVar29 = sVar10 + 2;" (assignment_expression "uVar29 = sVar10 + 2" identifier = (binary_expression "sVar10 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(image,MVar39,0);" (call_expression "SeekBlob(image,MVar39,0)" identifier (argument_list "(image,MVar39,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "uVar30 = uVar29 + uVar33;" (assignment_expression "uVar30 = uVar29 + uVar33" identifier = (binary_expression "uVar29 + uVar33" identifier + identifier)) ;) (expression_statement "iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33);" (assignment_expression "iVar27 = ((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33)" identifier = (binary_expression "((int)uVar29 >> 0x1f) + iVar27 + (uint)CARRY4(uVar29,uVar33)" (binary_expression "((int)uVar29 >> 0x1f) + iVar27" (parenthesized_expression "((int)uVar29 >> 0x1f)" ( (binary_expression "(int)uVar29 >> 0x1f" (cast_expression "(int)uVar29" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar29,uVar33)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar29,uVar33)" identifier (argument_list "(uVar29,uVar33)" ( identifier , identifier )))))) ;) (expression_statement "sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);" (assignment_expression "sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception)" identifier = (call_expression "WritePSDChannel(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception)" identifier (argument_list "(psd_info,image_info,image,pIVar7,BlueQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception)" ( identifier , identifier , identifier , identifier , identifier , (cast_expression "(uchar *)local_1178" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "MVar39 = TellBlob(image);" (assignment_expression "MVar39 = TellBlob(image)" identifier = (call_expression "TellBlob(image)" identifier (argument_list "(image)" ( identifier )))) ;) (expression_statement "SeekBlob(image,CONCAT44(iVar27,uVar30),0);" (call_expression "SeekBlob(image,CONCAT44(iVar27,uVar30),0)" identifier (argument_list "(image,CONCAT44(iVar27,uVar30),0)" ( identifier , (call_expression "CONCAT44(iVar27,uVar30)" identifier (argument_list "(iVar27,uVar30)" ( identifier , identifier ))) , number_literal ))) ;) (if_statement "if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }" if (parenthesized_expression "(psd_info->version == 1)" ( (binary_expression "psd_info->version == 1" (field_expression "psd_info->version" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n              sVar10 = WriteBlobLong(image,sVar31);\n            }" { (expression_statement "sVar10 = WriteBlobLong(image,sVar31);" (assignment_expression "sVar10 = WriteBlobLong(image,sVar31)" identifier = (call_expression "WriteBlobLong(image,sVar31)" identifier (argument_list "(image,sVar31)" ( identifier , identifier )))) ;) }) (else_clause "else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }" else (compound_statement "{\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }" { (expression_statement "sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);" (assignment_expression "sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31)" identifier = (call_expression "WriteBlobLongLong(image,(ulonglong)sVar31)" identifier (argument_list "(image,(ulonglong)sVar31)" ( identifier , (cast_expression "(ulonglong)sVar31" ( (type_descriptor "ulonglong" type_identifier) ) identifier) )))) ;) }))) (expression_statement "uVar33 = sVar10 + 2;" (assignment_expression "uVar33 = sVar10 + 2" identifier = (binary_expression "sVar10 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(image,MVar39,0);" (call_expression "SeekBlob(image,MVar39,0)" identifier (argument_list "(image,MVar39,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "local_115c = uVar33 + uVar30;" (assignment_expression "local_115c = uVar33 + uVar30" identifier = (binary_expression "uVar33 + uVar30" identifier + identifier)) ;) (expression_statement "local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30);" (assignment_expression "local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30)" identifier = (binary_expression "((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar30)" (binary_expression "((int)uVar33 >> 0x1f) + iVar27" (parenthesized_expression "((int)uVar33 >> 0x1f)" ( (binary_expression "(int)uVar33 >> 0x1f" (cast_expression "(int)uVar33" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar33,uVar30)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar33,uVar30)" identifier (argument_list "(uVar33,uVar30)" ( identifier , identifier )))))) ;) (expression_statement "sVar31 = sVar25 + value_00 + sVar31;" (assignment_expression "sVar31 = sVar25 + value_00 + sVar31" identifier = (binary_expression "sVar25 + value_00 + sVar31" (binary_expression "sVar25 + value_00" identifier + identifier) + identifier)) ;) (if_statement "if (pIVar7->colorspace == CMYKColorspace) {\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }" if (parenthesized_expression "(pIVar7->colorspace == CMYKColorspace)" ( (binary_expression "pIVar7->colorspace == CMYKColorspace" (field_expression "pIVar7->colorspace" identifier -> field_identifier) == identifier) )) (compound_statement "{\n              sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);\n              MVar39 = TellBlob(image);\n              SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n              if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }\n              uVar33 = sVar10 + 2;\n              SeekBlob(image,MVar39,0);\n              bVar37 = CARRY4(local_115c,uVar33);\n              local_115c = local_115c + uVar33;\n              local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n              sVar31 = sVar31 + sVar25;\n            }" { (expression_statement "sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception);" (assignment_expression "sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception)" identifier = (call_expression "WritePSDChannel(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception)" identifier (argument_list "(psd_info,image_info,image,pIVar7,BlackQuantum,\n                                       (uchar *)local_1178,0,MagickTrue,compression,exception)" ( identifier , identifier , identifier , identifier , identifier , (cast_expression "(uchar *)local_1178" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "MVar39 = TellBlob(image);" (assignment_expression "MVar39 = TellBlob(image)" identifier = (call_expression "TellBlob(image)" identifier (argument_list "(image)" ( identifier )))) ;) (expression_statement "SeekBlob(image,CONCAT44(local_1158,local_115c),0);" (call_expression "SeekBlob(image,CONCAT44(local_1158,local_115c),0)" identifier (argument_list "(image,CONCAT44(local_1158,local_115c),0)" ( identifier , (call_expression "CONCAT44(local_1158,local_115c)" identifier (argument_list "(local_1158,local_115c)" ( identifier , identifier ))) , number_literal ))) ;) (if_statement "if (psd_info->version == 1) {\n                sVar10 = WriteBlobLong(image,sVar25);\n              }\n              else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }" if (parenthesized_expression "(psd_info->version == 1)" ( (binary_expression "psd_info->version == 1" (field_expression "psd_info->version" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n                sVar10 = WriteBlobLong(image,sVar25);\n              }" { (expression_statement "sVar10 = WriteBlobLong(image,sVar25);" (assignment_expression "sVar10 = WriteBlobLong(image,sVar25)" identifier = (call_expression "WriteBlobLong(image,sVar25)" identifier (argument_list "(image,sVar25)" ( identifier , identifier )))) ;) }) (else_clause "else {\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }" else (compound_statement "{\n                sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n              }" { (expression_statement "sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);" (assignment_expression "sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25)" identifier = (call_expression "WriteBlobLongLong(image,(ulonglong)sVar25)" identifier (argument_list "(image,(ulonglong)sVar25)" ( identifier , (cast_expression "(ulonglong)sVar25" ( (type_descriptor "ulonglong" type_identifier) ) identifier) )))) ;) }))) (expression_statement "uVar33 = sVar10 + 2;" (assignment_expression "uVar33 = sVar10 + 2" identifier = (binary_expression "sVar10 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(image,MVar39,0);" (call_expression "SeekBlob(image,MVar39,0)" identifier (argument_list "(image,MVar39,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "bVar37 = CARRY4(local_115c,uVar33);" (assignment_expression "bVar37 = CARRY4(local_115c,uVar33)" identifier = (call_expression "CARRY4(local_115c,uVar33)" identifier (argument_list "(local_115c,uVar33)" ( identifier , identifier )))) ;) (expression_statement "local_115c = local_115c + uVar33;" (assignment_expression "local_115c = local_115c + uVar33" identifier = (binary_expression "local_115c + uVar33" identifier + identifier)) ;) (expression_statement "local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;" (assignment_expression "local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37" identifier = (binary_expression "local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37" (binary_expression "local_1158 + ((int)uVar33 >> 0x1f)" identifier + (parenthesized_expression "((int)uVar33 >> 0x1f)" ( (binary_expression "(int)uVar33 >> 0x1f" (cast_expression "(int)uVar33" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (cast_expression "(uint)bVar37" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "sVar31 = sVar31 + sVar25;" (assignment_expression "sVar31 = sVar31 + sVar25" identifier = (binary_expression "sVar31 + sVar25" identifier + identifier)) ;) })) }) (else_clause "else {\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar29;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n          }" else (compound_statement "{\n            sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(iVar27,uVar29),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            local_115c = uVar33 + uVar29;\n            local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);\n          }" { (expression_statement "sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);" (assignment_expression "sVar31 = WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception)" identifier = (call_expression "WritePSDChannel(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception)" identifier (argument_list "(psd_info,image_info,image,pIVar7,GrayQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception)" ( identifier , identifier , identifier , identifier , identifier , (cast_expression "(uchar *)local_1178" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "MVar39 = TellBlob(image);" (assignment_expression "MVar39 = TellBlob(image)" identifier = (call_expression "TellBlob(image)" identifier (argument_list "(image)" ( identifier )))) ;) (expression_statement "SeekBlob(image,CONCAT44(iVar27,uVar29),0);" (call_expression "SeekBlob(image,CONCAT44(iVar27,uVar29),0)" identifier (argument_list "(image,CONCAT44(iVar27,uVar29),0)" ( identifier , (call_expression "CONCAT44(iVar27,uVar29)" identifier (argument_list "(iVar27,uVar29)" ( identifier , identifier ))) , number_literal ))) ;) (if_statement "if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar31);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }" if (parenthesized_expression "(psd_info->version == 1)" ( (binary_expression "psd_info->version == 1" (field_expression "psd_info->version" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n              sVar10 = WriteBlobLong(image,sVar31);\n            }" { (expression_statement "sVar10 = WriteBlobLong(image,sVar31);" (assignment_expression "sVar10 = WriteBlobLong(image,sVar31)" identifier = (call_expression "WriteBlobLong(image,sVar31)" identifier (argument_list "(image,sVar31)" ( identifier , identifier )))) ;) }) (else_clause "else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }" else (compound_statement "{\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);\n            }" { (expression_statement "sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31);" (assignment_expression "sVar10 = WriteBlobLongLong(image,(ulonglong)sVar31)" identifier = (call_expression "WriteBlobLongLong(image,(ulonglong)sVar31)" identifier (argument_list "(image,(ulonglong)sVar31)" ( identifier , (cast_expression "(ulonglong)sVar31" ( (type_descriptor "ulonglong" type_identifier) ) identifier) )))) ;) }))) (expression_statement "uVar33 = sVar10 + 2;" (assignment_expression "uVar33 = sVar10 + 2" identifier = (binary_expression "sVar10 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(image,MVar39,0);" (call_expression "SeekBlob(image,MVar39,0)" identifier (argument_list "(image,MVar39,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "local_115c = uVar33 + uVar29;" (assignment_expression "local_115c = uVar33 + uVar29" identifier = (binary_expression "uVar33 + uVar29" identifier + identifier)) ;) (expression_statement "local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29);" (assignment_expression "local_1158 = ((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29)" identifier = (binary_expression "((int)uVar33 >> 0x1f) + iVar27 + (uint)CARRY4(uVar33,uVar29)" (binary_expression "((int)uVar33 >> 0x1f) + iVar27" (parenthesized_expression "((int)uVar33 >> 0x1f)" ( (binary_expression "(int)uVar33 >> 0x1f" (cast_expression "(int)uVar33" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar33,uVar29)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar33,uVar29)" identifier (argument_list "(uVar33,uVar29)" ( identifier , identifier )))))) ;) }))) (if_statement "if (pIVar7->alpha_trait != UndefinedPixelTrait) {\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            bVar37 = CARRY4(local_115c,uVar33);\n            local_115c = local_115c + uVar33;\n            local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n            sVar31 = sVar31 + sVar25;\n          }" if (parenthesized_expression "(pIVar7->alpha_trait != UndefinedPixelTrait)" ( (binary_expression "pIVar7->alpha_trait != UndefinedPixelTrait" (field_expression "pIVar7->alpha_trait" identifier -> field_identifier) != identifier) )) (compound_statement "{\n            sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);\n            MVar39 = TellBlob(image);\n            SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n            if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }\n            uVar33 = sVar10 + 2;\n            SeekBlob(image,MVar39,0);\n            bVar37 = CARRY4(local_115c,uVar33);\n            local_115c = local_115c + uVar33;\n            local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;\n            sVar31 = sVar31 + sVar25;\n          }" { (expression_statement "sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception);" (assignment_expression "sVar25 = WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception)" identifier = (call_expression "WritePSDChannel(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception)" identifier (argument_list "(psd_info,image_info,image,pIVar7,AlphaQuantum,\n                                     (uchar *)local_1178,0,MagickTrue,compression,exception)" ( identifier , identifier , identifier , identifier , identifier , (cast_expression "(uchar *)local_1178" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "MVar39 = TellBlob(image);" (assignment_expression "MVar39 = TellBlob(image)" identifier = (call_expression "TellBlob(image)" identifier (argument_list "(image)" ( identifier )))) ;) (expression_statement "SeekBlob(image,CONCAT44(local_1158,local_115c),0);" (call_expression "SeekBlob(image,CONCAT44(local_1158,local_115c),0)" identifier (argument_list "(image,CONCAT44(local_1158,local_115c),0)" ( identifier , (call_expression "CONCAT44(local_1158,local_115c)" identifier (argument_list "(local_1158,local_115c)" ( identifier , identifier ))) , number_literal ))) ;) (if_statement "if (psd_info->version == 1) {\n              sVar10 = WriteBlobLong(image,sVar25);\n            }\n            else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }" if (parenthesized_expression "(psd_info->version == 1)" ( (binary_expression "psd_info->version == 1" (field_expression "psd_info->version" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n              sVar10 = WriteBlobLong(image,sVar25);\n            }" { (expression_statement "sVar10 = WriteBlobLong(image,sVar25);" (assignment_expression "sVar10 = WriteBlobLong(image,sVar25)" identifier = (call_expression "WriteBlobLong(image,sVar25)" identifier (argument_list "(image,sVar25)" ( identifier , identifier )))) ;) }) (else_clause "else {\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }" else (compound_statement "{\n              sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);\n            }" { (expression_statement "sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25);" (assignment_expression "sVar10 = WriteBlobLongLong(image,(ulonglong)sVar25)" identifier = (call_expression "WriteBlobLongLong(image,(ulonglong)sVar25)" identifier (argument_list "(image,(ulonglong)sVar25)" ( identifier , (cast_expression "(ulonglong)sVar25" ( (type_descriptor "ulonglong" type_identifier) ) identifier) )))) ;) }))) (expression_statement "uVar33 = sVar10 + 2;" (assignment_expression "uVar33 = sVar10 + 2" identifier = (binary_expression "sVar10 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(image,MVar39,0);" (call_expression "SeekBlob(image,MVar39,0)" identifier (argument_list "(image,MVar39,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "bVar37 = CARRY4(local_115c,uVar33);" (assignment_expression "bVar37 = CARRY4(local_115c,uVar33)" identifier = (call_expression "CARRY4(local_115c,uVar33)" identifier (argument_list "(local_115c,uVar33)" ( identifier , identifier )))) ;) (expression_statement "local_115c = local_115c + uVar33;" (assignment_expression "local_115c = local_115c + uVar33" identifier = (binary_expression "local_115c + uVar33" identifier + identifier)) ;) (expression_statement "local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37;" (assignment_expression "local_1158 = local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37" identifier = (binary_expression "local_1158 + ((int)uVar33 >> 0x1f) + (uint)bVar37" (binary_expression "local_1158 + ((int)uVar33 >> 0x1f)" identifier + (parenthesized_expression "((int)uVar33 >> 0x1f)" ( (binary_expression "(int)uVar33 >> 0x1f" (cast_expression "(int)uVar33" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (cast_expression "(uint)bVar37" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "sVar31 = sVar31 + sVar25;" (assignment_expression "sVar31 = sVar31 + sVar25" identifier = (binary_expression "sVar31 + sVar25" identifier + identifier)) ;) })) }))) (expression_statement "local_1178 = (Image *)RelinquishMagickMemory(local_1178);" (assignment_expression "local_1178 = (Image *)RelinquishMagickMemory(local_1178)" identifier = (cast_expression "(Image *)RelinquishMagickMemory(local_1178)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "RelinquishMagickMemory(local_1178)" identifier (argument_list "(local_1178)" ( identifier ))))) ;) (if_statement "if (pIVar7->colorspace == CMYKColorspace) {\n          CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n          NegateImage(pIVar7,MagickFalse,exception);\n          SetImageChannelMask(pIVar7,CVar26);\n        }" if (parenthesized_expression "(pIVar7->colorspace == CMYKColorspace)" ( (binary_expression "pIVar7->colorspace == CMYKColorspace" (field_expression "pIVar7->colorspace" identifier -> field_identifier) == identifier) )) (compound_statement "{\n          CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);\n          NegateImage(pIVar7,MagickFalse,exception);\n          SetImageChannelMask(pIVar7,CVar26);\n        }" { (expression_statement "CVar26 = SetImageChannelMask(pIVar7,0x7ffffef);" (assignment_expression "CVar26 = SetImageChannelMask(pIVar7,0x7ffffef)" identifier = (call_expression "SetImageChannelMask(pIVar7,0x7ffffef)" identifier (argument_list "(pIVar7,0x7ffffef)" ( identifier , number_literal )))) ;) (expression_statement "NegateImage(pIVar7,MagickFalse,exception);" (call_expression "NegateImage(pIVar7,MagickFalse,exception)" identifier (argument_list "(pIVar7,MagickFalse,exception)" ( identifier , identifier , identifier ))) ;) (expression_statement "SetImageChannelMask(pIVar7,CVar26);" (call_expression "SetImageChannelMask(pIVar7,CVar26)" identifier (argument_list "(pIVar7,CVar26)" ( identifier , identifier ))) ;) })) (expression_statement "pcVar8 = GetImageArtifact(pIVar7,"psd:opacity-mask");" (assignment_expression "pcVar8 = GetImageArtifact(pIVar7,"psd:opacity-mask")" identifier = (call_expression "GetImageArtifact(pIVar7,"psd:opacity-mask")" identifier (argument_list "(pIVar7,"psd:opacity-mask")" ( identifier , (string_literal ""psd:opacity-mask"" " string_content ") )))) ;) (if_statement "if ((pcVar8 != (char *)0x0) &&\n           (next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception),\n           next_image != (Image *)0x0)) {\n          if ((compression == RLECompression) &&\n             (local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0)) goto LAB_0029dbfc;\n          sVar25 = WritePSDChannel(psd_info,image_info,image,next_image,RedQuantum,\n                                   (uchar *)local_1178,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n          if (psd_info->version == 1) {\n            WriteBlobLong(image,sVar25);\n          }\n          else {\n            WriteBlobLongLong(image,(ulonglong)sVar25);\n          }\n          SeekBlob(image,MVar39,0);\n          sVar31 = sVar31 + sVar25;\n          RelinquishMagickMemory(local_1178);\n        }" if (parenthesized_expression "((pcVar8 != (char *)0x0) &&\n           (next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception),\n           next_image != (Image *)0x0))" ( (binary_expression "(pcVar8 != (char *)0x0) &&\n           (next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception),\n           next_image != (Image *)0x0)" (parenthesized_expression "(pcVar8 != (char *)0x0)" ( (binary_expression "pcVar8 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception),\n           next_image != (Image *)0x0)" ( (comma_expression "next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception),\n           next_image != (Image *)0x0" (assignment_expression "next_image = (Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception)" identifier = (cast_expression "(Image *)GetImageRegistry(ImageRegistryType,pcVar8,exception)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageRegistry(ImageRegistryType,pcVar8,exception)" identifier (argument_list "(ImageRegistryType,pcVar8,exception)" ( identifier , identifier , identifier ))))) , (binary_expression "next_image != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          if ((compression == RLECompression) &&\n             (local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0)) goto LAB_0029dbfc;\n          sVar25 = WritePSDChannel(psd_info,image_info,image,next_image,RedQuantum,\n                                   (uchar *)local_1178,0,MagickTrue,compression,exception);\n          MVar39 = TellBlob(image);\n          SeekBlob(image,CONCAT44(local_1158,local_115c),0);\n          if (psd_info->version == 1) {\n            WriteBlobLong(image,sVar25);\n          }\n          else {\n            WriteBlobLongLong(image,(ulonglong)sVar25);\n          }\n          SeekBlob(image,MVar39,0);\n          sVar31 = sVar31 + sVar25;\n          RelinquishMagickMemory(local_1178);\n        }" { (if_statement "if ((compression == RLECompression) &&\n             (local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0)) goto LAB_0029dbfc;" if (parenthesized_expression "((compression == RLECompression) &&\n             (local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0))" ( (binary_expression "(compression == RLECompression) &&\n             (local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0)" (parenthesized_expression "(compression == RLECompression)" ( (binary_expression "compression == RLECompression" identifier == identifier) )) && (parenthesized_expression "(local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0)" ( (comma_expression "local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1),\n             local_1178 == (Image *)0x0" (assignment_expression "local_1178 = (Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1)" identifier = (cast_expression "(Image *)AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory\n                                              (next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1)" identifier (argument_list "(next_image->columns * 9 + 1,\n                                               (8 < next_image->depth) + 1)" ( (binary_expression "next_image->columns * 9 + 1" (binary_expression "next_image->columns * 9" (field_expression "next_image->columns" identifier -> field_identifier) * number_literal) + number_literal) , (binary_expression "(8 < next_image->depth) + 1" (parenthesized_expression "(8 < next_image->depth)" ( (binary_expression "8 < next_image->depth" number_literal < (field_expression "next_image->depth" identifier -> field_identifier)) )) + number_literal) ))))) , (binary_expression "local_1178 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_0029dbfc;" goto statement_identifier ;)) (expression_statement "sVar25 = WritePSDChannel(psd_info,image_info,image,next_image,RedQuantum,\n                                   (uchar *)local_1178,0,MagickTrue,compression,exception);" (assignment_expression "sVar25 = WritePSDChannel(psd_info,image_info,image,next_image,RedQuantum,\n                                   (uchar *)local_1178,0,MagickTrue,compression,exception)" identifier = (call_expression "WritePSDChannel(psd_info,image_info,image,next_image,RedQuantum,\n                                   (uchar *)local_1178,0,MagickTrue,compression,exception)" identifier (argument_list "(psd_info,image_info,image,next_image,RedQuantum,\n                                   (uchar *)local_1178,0,MagickTrue,compression,exception)" ( identifier , identifier , identifier , identifier , identifier , (cast_expression "(uchar *)local_1178" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "MVar39 = TellBlob(image);" (assignment_expression "MVar39 = TellBlob(image)" identifier = (call_expression "TellBlob(image)" identifier (argument_list "(image)" ( identifier )))) ;) (expression_statement "SeekBlob(image,CONCAT44(local_1158,local_115c),0);" (call_expression "SeekBlob(image,CONCAT44(local_1158,local_115c),0)" identifier (argument_list "(image,CONCAT44(local_1158,local_115c),0)" ( identifier , (call_expression "CONCAT44(local_1158,local_115c)" identifier (argument_list "(local_1158,local_115c)" ( identifier , identifier ))) , number_literal ))) ;) (if_statement "if (psd_info->version == 1) {\n            WriteBlobLong(image,sVar25);\n          }\n          else {\n            WriteBlobLongLong(image,(ulonglong)sVar25);\n          }" if (parenthesized_expression "(psd_info->version == 1)" ( (binary_expression "psd_info->version == 1" (field_expression "psd_info->version" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n            WriteBlobLong(image,sVar25);\n          }" { (expression_statement "WriteBlobLong(image,sVar25);" (call_expression "WriteBlobLong(image,sVar25)" identifier (argument_list "(image,sVar25)" ( identifier , identifier ))) ;) }) (else_clause "else {\n            WriteBlobLongLong(image,(ulonglong)sVar25);\n          }" else (compound_statement "{\n            WriteBlobLongLong(image,(ulonglong)sVar25);\n          }" { (expression_statement "WriteBlobLongLong(image,(ulonglong)sVar25);" (call_expression "WriteBlobLongLong(image,(ulonglong)sVar25)" identifier (argument_list "(image,(ulonglong)sVar25)" ( identifier , (cast_expression "(ulonglong)sVar25" ( (type_descriptor "ulonglong" type_identifier) ) identifier) ))) ;) }))) (expression_statement "SeekBlob(image,MVar39,0);" (call_expression "SeekBlob(image,MVar39,0)" identifier (argument_list "(image,MVar39,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "sVar31 = sVar31 + sVar25;" (assignment_expression "sVar31 = sVar31 + sVar25" identifier = (binary_expression "sVar31 + sVar25" identifier + identifier)) ;) (expression_statement "RelinquishMagickMemory(local_1178);" (call_expression "RelinquishMagickMemory(local_1178)" identifier (argument_list "(local_1178)" ( identifier ))) ;) })) (if_statement "if (sVar31 == 0) {\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }" if (parenthesized_expression "(sVar31 == 0)" ( (binary_expression "sVar31 == 0" identifier == number_literal) )) (compound_statement "{\n          local_1178 = (Image *)0x0;\n          goto LAB_0029dc36;\n        }" { (expression_statement "local_1178 = (Image *)0x0;" (assignment_expression "local_1178 = (Image *)0x0" identifier = (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_0029dc36;" goto statement_identifier ;) })) (expression_statement "local_1130 = local_1130 + sVar31;" (assignment_expression "local_1130 = local_1130 + sVar31" identifier = (binary_expression "local_1130 + sVar31" identifier + identifier)) ;) (expression_statement "pIVar7 = GetNextImageInList(pIVar7);" (assignment_expression "pIVar7 = GetNextImageInList(pIVar7)" identifier = (call_expression "GetNextImageInList(pIVar7)" identifier (argument_list "(pIVar7)" ( identifier )))) ;) (expression_statement "local_1150 = local_1150 + 2;" (assignment_expression "local_1150 = local_1150 + 2" identifier = (binary_expression "local_1150 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(pIVar7 != (Image *)0x0)" ( (binary_expression "pIVar7 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "local_1178 = (Image *)0x1;" (assignment_expression "local_1178 = (Image *)0x1" identifier = (cast_expression "(Image *)0x1" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_0029dc36:\n    if (layers_size != (size_t *)0x0) {\n      *layers_size = local_1130;\n    }" statement_identifier : (if_statement "if (layers_size != (size_t *)0x0) {\n      *layers_size = local_1130;\n    }" if (parenthesized_expression "(layers_size != (size_t *)0x0)" ( (binary_expression "layers_size != (size_t *)0x0" identifier != (cast_expression "(size_t *)0x0" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *layers_size = local_1130;\n    }" { (expression_statement "*layers_size = local_1130;" (assignment_expression "*layers_size = local_1130" (pointer_expression "*layers_size" * identifier) = identifier) ;) }))) (expression_statement "uVar33 = local_1130 + 1;" (assignment_expression "uVar33 = local_1130 + 1" identifier = (binary_expression "local_1130 + 1" identifier + number_literal)) ;) (if_statement "if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar33 = local_1130;\n    }" if (parenthesized_expression "(local_1130 >> 1 == local_1130 + 1 >> 1)" ( (binary_expression "local_1130 >> 1 == local_1130 + 1 >> 1" (binary_expression "local_1130 >> 1" identifier >> number_literal) == (binary_expression "local_1130 + 1 >> 1" (binary_expression "local_1130 + 1" identifier + number_literal) >> number_literal)) )) (compound_statement "{\n      uVar33 = local_1130;\n    }" { (expression_statement "uVar33 = local_1130;" (assignment_expression "uVar33 = local_1130" identifier = identifier) ;) })) (expression_statement "MVar39 = TellBlob(image);" (assignment_expression "MVar39 = TellBlob(image)" identifier = (call_expression "TellBlob(image)" identifier (argument_list "(image)" ( identifier )))) ;) (expression_statement "SeekBlob(image,offset,0);" (call_expression "SeekBlob(image,offset,0)" identifier (argument_list "(image,offset,0)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (psd_info->version == 1) {\n      WriteBlobLong(image,uVar33);\n    }\n    else {\n      WriteBlobLongLong(image,(ulonglong)uVar33);\n    }" if (parenthesized_expression "(psd_info->version == 1)" ( (binary_expression "psd_info->version == 1" (field_expression "psd_info->version" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      WriteBlobLong(image,uVar33);\n    }" { (expression_statement "WriteBlobLong(image,uVar33);" (call_expression "WriteBlobLong(image,uVar33)" identifier (argument_list "(image,uVar33)" ( identifier , identifier ))) ;) }) (else_clause "else {\n      WriteBlobLongLong(image,(ulonglong)uVar33);\n    }" else (compound_statement "{\n      WriteBlobLongLong(image,(ulonglong)uVar33);\n    }" { (expression_statement "WriteBlobLongLong(image,(ulonglong)uVar33);" (call_expression "WriteBlobLongLong(image,(ulonglong)uVar33)" identifier (argument_list "(image,(ulonglong)uVar33)" ( identifier , (cast_expression "(ulonglong)uVar33" ( (type_descriptor "ulonglong" type_identifier) ) identifier) ))) ;) }))) (expression_statement "SeekBlob(image,MVar39,0);" (call_expression "SeekBlob(image,MVar39,0)" identifier (argument_list "(image,MVar39,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "RelinquishMagickMemory(memory);" (call_expression "RelinquishMagickMemory(memory)" identifier (argument_list "(memory)" ( identifier ))) ;) (for_statement "for (; pIVar6 != (Image *)0x0; pIVar6 = GetNextImageInList(pIVar6)) {\n      while (pcVar8 = GetImageArtifact(pIVar6,"psd:opacity-mask"), pcVar8 != (char *)0x0) {\n        DeleteImageRegistry(pcVar8);\n        pIVar6 = GetNextImageInList(pIVar6);\n        if (pIVar6 == (Image *)0x0) goto LAB_0029dd18;\n      }\n    }" for ( ; (binary_expression "pIVar6 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "pIVar6 = GetNextImageInList(pIVar6)" identifier = (call_expression "GetNextImageInList(pIVar6)" identifier (argument_list "(pIVar6)" ( identifier )))) ) (compound_statement "{\n      while (pcVar8 = GetImageArtifact(pIVar6,"psd:opacity-mask"), pcVar8 != (char *)0x0) {\n        DeleteImageRegistry(pcVar8);\n        pIVar6 = GetNextImageInList(pIVar6);\n        if (pIVar6 == (Image *)0x0) goto LAB_0029dd18;\n      }\n    }" { (while_statement "while (pcVar8 = GetImageArtifact(pIVar6,"psd:opacity-mask"), pcVar8 != (char *)0x0) {\n        DeleteImageRegistry(pcVar8);\n        pIVar6 = GetNextImageInList(pIVar6);\n        if (pIVar6 == (Image *)0x0) goto LAB_0029dd18;\n      }" while (parenthesized_expression "(pcVar8 = GetImageArtifact(pIVar6,"psd:opacity-mask"), pcVar8 != (char *)0x0)" ( (comma_expression "pcVar8 = GetImageArtifact(pIVar6,"psd:opacity-mask"), pcVar8 != (char *)0x0" (assignment_expression "pcVar8 = GetImageArtifact(pIVar6,"psd:opacity-mask")" identifier = (call_expression "GetImageArtifact(pIVar6,"psd:opacity-mask")" identifier (argument_list "(pIVar6,"psd:opacity-mask")" ( identifier , (string_literal ""psd:opacity-mask"" " string_content ") )))) , (binary_expression "pcVar8 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n        DeleteImageRegistry(pcVar8);\n        pIVar6 = GetNextImageInList(pIVar6);\n        if (pIVar6 == (Image *)0x0) goto LAB_0029dd18;\n      }" { (expression_statement "DeleteImageRegistry(pcVar8);" (call_expression "DeleteImageRegistry(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier ))) ;) (expression_statement "pIVar6 = GetNextImageInList(pIVar6);" (assignment_expression "pIVar6 = GetNextImageInList(pIVar6)" identifier = (call_expression "GetNextImageInList(pIVar6)" identifier (argument_list "(pIVar6)" ( identifier )))) ;) (if_statement "if (pIVar6 == (Image *)0x0) goto LAB_0029dd18;" if (parenthesized_expression "(pIVar6 == (Image *)0x0)" ( (binary_expression "pIVar6 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0029dd18;" goto statement_identifier ;)) })) })) }))) (labeled_statement "LAB_0029dd18:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return (MagickBooleanType)local_1178;" return (cast_expression "(MagickBooleanType)local_1178" ( (type_descriptor "MagickBooleanType" type_identifier) ) identifier) ;) })))
(translation_unit "undefined4 __regparm3\nFUN_0029c7a0(int *param_1,int *param_2,int param_3,uint *param_4,undefined4 param_5)\n\n{\n  double dVar1;\n  undefined1 uVar2;\n  short sVar3;\n  int *piVar4;\n  int *piVar5;\n  uint *puVar6;\n  char *pcVar7;\n  size_t sVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  undefined1 *puVar14;\n  long lVar15;\n  undefined4 uVar16;\n  void *__dest;\n  int iVar17;\n  int iVar18;\n  int iVar19;\n  int iVar20;\n  int iVar21;\n  int iVar22;\n  undefined4 uVar23;\n  int *piVar24;\n  short sVar25;\n  uint uVar26;\n  uint uVar27;\n  uint uVar28;\n  undefined4 *puVar29;\n  undefined4 *puVar30;\n  int in_GS_OFFSET;\n  bool bVar31;\n  byte bVar32;\n  undefined8 uVar33;\n  undefined8 uVar34;\n  int *local_1178;\n  int local_1174;\n  int local_116c;\n  uint local_115c;\n  int local_1158;\n  uint *local_1150;\n  int local_114c;\n  uint local_1130;\n  byte local_1103;\n  double local_10f4;\n  int *local_10ec;\n  undefined4 local_10e8;\n  undefined4 local_10e4;\n  undefined4 local_10e0;\n  undefined4 local_10d9 [45];\n  undefined1 local_1025;\n  undefined1 local_1024;\n  undefined1 local_1023;\n  undefined1 local_1022;\n  undefined1 local_1021;\n  char local_1020 [4096];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar32 = 0;\n  uStack_14 = 0x29c7ad;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar4 = (int *)GetNextImageInList(param_1);\n  if (piVar4 == (int *)0x0) {\n    piVar4 = param_1;\n  }\n  uVar33 = TellBlob(param_1);\n  if (*(short *)(param_3 + 0x1e) == 1) {\n    WriteBlobLong(param_1,0);\n  }\n  else {\n    WriteBlobLongLong(param_1,0,0);\n  }\n  uVar27 = 0;\n  for (piVar5 = piVar4; piVar5 != (int *)0x0; piVar5 = (int *)GetNextImageInList(piVar5)) {\n    uVar27 = uVar27 + 1;\n  }\n  uVar28 = uVar27;\n  if (param_1[0xa5] != 0) {\n    uVar28 = -uVar27;\n  }\n  local_1130 = WriteBlobShort(param_1,uVar28 & 0xffff);\n  puVar6 = (uint *)AcquireQuantumMemory(uVar27,8);\n  if (puVar6 == (uint *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = (int *)param_2[3];\n    piVar5 = param_1;\n    while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }\n    CloseBlob(piVar5);\n    local_1178 = (int *)0x0;\n  }\n  else {\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }\nLAB_0029dd18:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_002decd0();\n  }\n  return local_1178;\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_0029c7a0(int *param_1,int *param_2,int param_3,uint *param_4,undefined4 param_5)\n\n{\n  double dVar1;\n  undefined1 uVar2;\n  short sVar3;\n  int *piVar4;\n  int *piVar5;\n  uint *puVar6;\n  char *pcVar7;\n  size_t sVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  undefined1 *puVar14;\n  long lVar15;\n  undefined4 uVar16;\n  void *__dest;\n  int iVar17;\n  int iVar18;\n  int iVar19;\n  int iVar20;\n  int iVar21;\n  int iVar22;\n  undefined4 uVar23;\n  int *piVar24;\n  short sVar25;\n  uint uVar26;\n  uint uVar27;\n  uint uVar28;\n  undefined4 *puVar29;\n  undefined4 *puVar30;\n  int in_GS_OFFSET;\n  bool bVar31;\n  byte bVar32;\n  undefined8 uVar33;\n  undefined8 uVar34;\n  int *local_1178;\n  int local_1174;\n  int local_116c;\n  uint local_115c;\n  int local_1158;\n  uint *local_1150;\n  int local_114c;\n  uint local_1130;\n  byte local_1103;\n  double local_10f4;\n  int *local_10ec;\n  undefined4 local_10e8;\n  undefined4 local_10e4;\n  undefined4 local_10e0;\n  undefined4 local_10d9 [45];\n  undefined1 local_1025;\n  undefined1 local_1024;\n  undefined1 local_1023;\n  undefined1 local_1022;\n  undefined1 local_1021;\n  char local_1020 [4096];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar32 = 0;\n  uStack_14 = 0x29c7ad;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar4 = (int *)GetNextImageInList(param_1);\n  if (piVar4 == (int *)0x0) {\n    piVar4 = param_1;\n  }\n  uVar33 = TellBlob(param_1);\n  if (*(short *)(param_3 + 0x1e) == 1) {\n    WriteBlobLong(param_1,0);\n  }\n  else {\n    WriteBlobLongLong(param_1,0,0);\n  }\n  uVar27 = 0;\n  for (piVar5 = piVar4; piVar5 != (int *)0x0; piVar5 = (int *)GetNextImageInList(piVar5)) {\n    uVar27 = uVar27 + 1;\n  }\n  uVar28 = uVar27;\n  if (param_1[0xa5] != 0) {\n    uVar28 = -uVar27;\n  }\n  local_1130 = WriteBlobShort(param_1,uVar28 & 0xffff);\n  puVar6 = (uint *)AcquireQuantumMemory(uVar27,8);\n  if (puVar6 == (uint *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = (int *)param_2[3];\n    piVar5 = param_1;\n    while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }\n    CloseBlob(piVar5);\n    local_1178 = (int *)0x0;\n  }\n  else {\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }\nLAB_0029dd18:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_002decd0();\n  }\n  return local_1178;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0029c7a0(int *param_1,int *param_2,int param_3,uint *param_4,undefined4 param_5)" identifier (parameter_list "(int *param_1,int *param_2,int param_3,uint *param_4,undefined4 param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  double dVar1;\n  undefined1 uVar2;\n  short sVar3;\n  int *piVar4;\n  int *piVar5;\n  uint *puVar6;\n  char *pcVar7;\n  size_t sVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  undefined1 *puVar14;\n  long lVar15;\n  undefined4 uVar16;\n  void *__dest;\n  int iVar17;\n  int iVar18;\n  int iVar19;\n  int iVar20;\n  int iVar21;\n  int iVar22;\n  undefined4 uVar23;\n  int *piVar24;\n  short sVar25;\n  uint uVar26;\n  uint uVar27;\n  uint uVar28;\n  undefined4 *puVar29;\n  undefined4 *puVar30;\n  int in_GS_OFFSET;\n  bool bVar31;\n  byte bVar32;\n  undefined8 uVar33;\n  undefined8 uVar34;\n  int *local_1178;\n  int local_1174;\n  int local_116c;\n  uint local_115c;\n  int local_1158;\n  uint *local_1150;\n  int local_114c;\n  uint local_1130;\n  byte local_1103;\n  double local_10f4;\n  int *local_10ec;\n  undefined4 local_10e8;\n  undefined4 local_10e4;\n  undefined4 local_10e0;\n  undefined4 local_10d9 [45];\n  undefined1 local_1025;\n  undefined1 local_1024;\n  undefined1 local_1023;\n  undefined1 local_1022;\n  undefined1 local_1021;\n  char local_1020 [4096];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar32 = 0;\n  uStack_14 = 0x29c7ad;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar4 = (int *)GetNextImageInList(param_1);\n  if (piVar4 == (int *)0x0) {\n    piVar4 = param_1;\n  }\n  uVar33 = TellBlob(param_1);\n  if (*(short *)(param_3 + 0x1e) == 1) {\n    WriteBlobLong(param_1,0);\n  }\n  else {\n    WriteBlobLongLong(param_1,0,0);\n  }\n  uVar27 = 0;\n  for (piVar5 = piVar4; piVar5 != (int *)0x0; piVar5 = (int *)GetNextImageInList(piVar5)) {\n    uVar27 = uVar27 + 1;\n  }\n  uVar28 = uVar27;\n  if (param_1[0xa5] != 0) {\n    uVar28 = -uVar27;\n  }\n  local_1130 = WriteBlobShort(param_1,uVar28 & 0xffff);\n  puVar6 = (uint *)AcquireQuantumMemory(uVar27,8);\n  if (puVar6 == (uint *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = (int *)param_2[3];\n    piVar5 = param_1;\n    while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }\n    CloseBlob(piVar5);\n    local_1178 = (int *)0x0;\n  }\n  else {\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }\nLAB_0029dd18:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_002decd0();\n  }\n  return local_1178;\n}" { (declaration "double dVar1;" primitive_type identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "short sVar3;" (sized_type_specifier "short" short) identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "undefined1 *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "long lVar15;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 uVar16;" type_identifier identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "int iVar18;" primitive_type identifier ;) (declaration "int iVar19;" primitive_type identifier ;) (declaration "int iVar20;" primitive_type identifier ;) (declaration "int iVar21;" primitive_type identifier ;) (declaration "int iVar22;" primitive_type identifier ;) (declaration "undefined4 uVar23;" type_identifier identifier ;) (declaration "int *piVar24;" primitive_type (pointer_declarator "*piVar24" * identifier) ;) (declaration "short sVar25;" (sized_type_specifier "short" short) identifier ;) (declaration "uint uVar26;" type_identifier identifier ;) (declaration "uint uVar27;" type_identifier identifier ;) (declaration "uint uVar28;" type_identifier identifier ;) (declaration "undefined4 *puVar29;" type_identifier (pointer_declarator "*puVar29" * identifier) ;) (declaration "undefined4 *puVar30;" type_identifier (pointer_declarator "*puVar30" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar31;" primitive_type identifier ;) (declaration "byte bVar32;" type_identifier identifier ;) (declaration "undefined8 uVar33;" type_identifier identifier ;) (declaration "undefined8 uVar34;" type_identifier identifier ;) (declaration "int *local_1178;" primitive_type (pointer_declarator "*local_1178" * identifier) ;) (declaration "int local_1174;" primitive_type identifier ;) (declaration "int local_116c;" primitive_type identifier ;) (declaration "uint local_115c;" type_identifier identifier ;) (declaration "int local_1158;" primitive_type identifier ;) (declaration "uint *local_1150;" type_identifier (pointer_declarator "*local_1150" * identifier) ;) (declaration "int local_114c;" primitive_type identifier ;) (declaration "uint local_1130;" type_identifier identifier ;) (declaration "byte local_1103;" type_identifier identifier ;) (declaration "double local_10f4;" primitive_type identifier ;) (declaration "int *local_10ec;" primitive_type (pointer_declarator "*local_10ec" * identifier) ;) (declaration "undefined4 local_10e8;" type_identifier identifier ;) (declaration "undefined4 local_10e4;" type_identifier identifier ;) (declaration "undefined4 local_10e0;" type_identifier identifier ;) (declaration "undefined4 local_10d9 [45];" type_identifier (array_declarator "local_10d9 [45]" identifier [ number_literal ]) ;) (declaration "undefined1 local_1025;" type_identifier identifier ;) (declaration "undefined1 local_1024;" type_identifier identifier ;) (declaration "undefined1 local_1023;" type_identifier identifier ;) (declaration "undefined1 local_1022;" type_identifier identifier ;) (declaration "undefined1 local_1021;" type_identifier identifier ;) (declaration "char local_1020 [4096];" primitive_type (array_declarator "local_1020 [4096]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar32 = 0;" (assignment_expression "bVar32 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x29c7ad;" (assignment_expression "uStack_14 = 0x29c7ad" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = (int *)GetNextImageInList(param_1);" (assignment_expression "piVar4 = (int *)GetNextImageInList(param_1)" identifier = (cast_expression "(int *)GetNextImageInList(param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageInList(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if (piVar4 == (int *)0x0) {\n    piVar4 = param_1;\n  }" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar4 = param_1;\n  }" { (expression_statement "piVar4 = param_1;" (assignment_expression "piVar4 = param_1" identifier = identifier) ;) })) (expression_statement "uVar33 = TellBlob(param_1);" (assignment_expression "uVar33 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n    WriteBlobLong(param_1,0);\n  }\n  else {\n    WriteBlobLongLong(param_1,0,0);\n  }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    WriteBlobLong(param_1,0);\n  }" { (expression_statement "WriteBlobLong(param_1,0);" (call_expression "WriteBlobLong(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n    WriteBlobLongLong(param_1,0,0);\n  }" else (compound_statement "{\n    WriteBlobLongLong(param_1,0,0);\n  }" { (expression_statement "WriteBlobLongLong(param_1,0,0);" (call_expression "WriteBlobLongLong(param_1,0,0)" identifier (argument_list "(param_1,0,0)" ( identifier , number_literal , number_literal ))) ;) }))) (expression_statement "uVar27 = 0;" (assignment_expression "uVar27 = 0" identifier = number_literal) ;) (for_statement "for (piVar5 = piVar4; piVar5 != (int *)0x0; piVar5 = (int *)GetNextImageInList(piVar5)) {\n    uVar27 = uVar27 + 1;\n  }" for ( (assignment_expression "piVar5 = piVar4" identifier = identifier) ; (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar5 = (int *)GetNextImageInList(piVar5)" identifier = (cast_expression "(int *)GetNextImageInList(piVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageInList(piVar5)" identifier (argument_list "(piVar5)" ( identifier ))))) ) (compound_statement "{\n    uVar27 = uVar27 + 1;\n  }" { (expression_statement "uVar27 = uVar27 + 1;" (assignment_expression "uVar27 = uVar27 + 1" identifier = (binary_expression "uVar27 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar28 = uVar27;" (assignment_expression "uVar28 = uVar27" identifier = identifier) ;) (if_statement "if (param_1[0xa5] != 0) {\n    uVar28 = -uVar27;\n  }" if (parenthesized_expression "(param_1[0xa5] != 0)" ( (binary_expression "param_1[0xa5] != 0" (subscript_expression "param_1[0xa5]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    uVar28 = -uVar27;\n  }" { (expression_statement "uVar28 = -uVar27;" (assignment_expression "uVar28 = -uVar27" identifier = (unary_expression "-uVar27" - identifier)) ;) })) (expression_statement "local_1130 = WriteBlobShort(param_1,uVar28 & 0xffff);" (assignment_expression "local_1130 = WriteBlobShort(param_1,uVar28 & 0xffff)" identifier = (call_expression "WriteBlobShort(param_1,uVar28 & 0xffff)" identifier (argument_list "(param_1,uVar28 & 0xffff)" ( identifier , (binary_expression "uVar28 & 0xffff" identifier & number_literal) )))) ;) (expression_statement "puVar6 = (uint *)AcquireQuantumMemory(uVar27,8);" (assignment_expression "puVar6 = (uint *)AcquireQuantumMemory(uVar27,8)" identifier = (cast_expression "(uint *)AcquireQuantumMemory(uVar27,8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory(uVar27,8)" identifier (argument_list "(uVar27,8)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar6 == (uint *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = (int *)param_2[3];\n    piVar5 = param_1;\n    while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }\n    CloseBlob(piVar5);\n    local_1178 = (int *)0x0;\n  }\n  else {\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }" if (parenthesized_expression "(puVar6 == (uint *)0x0)" ( (binary_expression "puVar6 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = (int *)param_2[3];\n    piVar5 = param_1;\n    while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }\n    CloseBlob(piVar5);\n    local_1178 = (int *)0x0;\n  }" { (expression_statement "ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);" (call_expression "ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6)" identifier (argument_list "(param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6)" ( identifier , (string_literal ""coders/psd.c"" " string_content ") , (string_literal ""WritePSDLayersInternal"" " string_content ") , number_literal , number_literal , (string_literal ""MemoryAllocationFailed"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , (binary_expression "param_1 + 0xc6" identifier + number_literal) ))) ;) (expression_statement "piVar4 = (int *)param_2[3];" (assignment_expression "piVar4 = (int *)param_2[3]" identifier = (cast_expression "(int *)param_2[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[3]" identifier [ number_literal ]))) ;) (expression_statement "piVar5 = param_1;" (assignment_expression "piVar5 = param_1" identifier = identifier) ;) (while_statement "while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }" while (parenthesized_expression "(piVar24 = param_1, piVar4 != (int *)0x0)" ( (comma_expression "piVar24 = param_1, piVar4 != (int *)0x0" (assignment_expression "piVar24 = param_1" identifier = identifier) , (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }" { (expression_statement "piVar4 = (int *)piVar24[0xccf];" (assignment_expression "piVar4 = (int *)piVar24[0xccf]" identifier = (cast_expression "(int *)piVar24[0xccf]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar24[0xccf]" identifier [ number_literal ]))) ;) (expression_statement "param_1 = piVar4;" (assignment_expression "param_1 = piVar4" identifier = identifier) ;) (expression_statement "piVar5 = piVar24;" (assignment_expression "piVar5 = piVar24" identifier = identifier) ;) })) (expression_statement "CloseBlob(piVar5);" (call_expression "CloseBlob(piVar5)" identifier (argument_list "(piVar5)" ( identifier ))) ;) (expression_statement "local_1178 = (int *)0x0;" (assignment_expression "local_1178 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }" else (compound_statement "{\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }" { (if_statement "if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }" if (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }" { (expression_statement "local_114c = 0;" (assignment_expression "local_114c = 0" identifier = number_literal) ;) (expression_statement "local_1178 = piVar4;" (assignment_expression "local_1178 = piVar4" identifier = identifier) ;) (do_statement "do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);" do (compound_statement "{\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      }" { (expression_statement "pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");" (assignment_expression "pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask")" identifier = (cast_expression "(char *)GetImageArtifact(local_1178,"psd:opacity-mask")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageArtifact(local_1178,"psd:opacity-mask")" identifier (argument_list "(local_1178,"psd:opacity-mask")" ( identifier , (string_literal ""psd:opacity-mask"" " string_content ") ))))) ;) (if_statement "if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }" if (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          local_1103 = 0;\n          local_1174 = 0;\n        }" { (expression_statement "local_1103 = 0;" (assignment_expression "local_1103 = 0" identifier = number_literal) ;) (expression_statement "local_1174 = 0;" (assignment_expression "local_1174 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }" else (compound_statement "{\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }" { (expression_statement "local_1174 = GetImageRegistry(1,pcVar7,param_5);" (assignment_expression "local_1174 = GetImageRegistry(1,pcVar7,param_5)" identifier = (call_expression "GetImageRegistry(1,pcVar7,param_5)" identifier (argument_list "(1,pcVar7,param_5)" ( number_literal , identifier , identifier )))) ;) (expression_statement "sVar8 = strlen(pcVar7);" (assignment_expression "sVar8 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "local_1103 = -(sVar8 == 9);" (assignment_expression "local_1103 = -(sVar8 == 9)" identifier = (unary_expression "-(sVar8 == 9)" - (parenthesized_expression "(sVar8 == 9)" ( (binary_expression "sVar8 == 9" identifier == number_literal) )))) ;) }))) (expression_statement "iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);" (assignment_expression "iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83])" identifier = (call_expression "WriteBlobSignedLong(param_1,local_1178[0x83])" identifier (argument_list "(param_1,local_1178[0x83])" ( identifier , (subscript_expression "local_1178[0x83]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);" (assignment_expression "iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82])" identifier = (call_expression "WriteBlobSignedLong(param_1,local_1178[0x82])" identifier (argument_list "(param_1,local_1178[0x82])" ( identifier , (subscript_expression "local_1178[0x82]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);" (assignment_expression "iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83])" identifier = (call_expression "WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83])" identifier (argument_list "(param_1,local_1178[7] + local_1178[0x83])" ( identifier , (binary_expression "local_1178[7] + local_1178[0x83]" (subscript_expression "local_1178[7]" identifier [ number_literal ]) + (subscript_expression "local_1178[0x83]" identifier [ number_literal ])) )))) ;) (expression_statement "iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);" (assignment_expression "iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82])" identifier = (call_expression "WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82])" identifier (argument_list "(param_1,local_1178[6] + local_1178[0x82])" ( identifier , (binary_expression "local_1178[6] + local_1178[0x82]" (subscript_expression "local_1178[6]" identifier [ number_literal ]) + (subscript_expression "local_1178[0x82]" identifier [ number_literal ])) )))) ;) (if_statement "if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }" if (parenthesized_expression "((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0))" ( (binary_expression "(*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)" (parenthesized_expression "(*local_1178 == 2)" ( (binary_expression "*local_1178 == 2" (pointer_expression "*local_1178" * identifier) == number_literal) )) || (parenthesized_expression "(iVar13 = IsImageGray(local_1178), iVar13 != 0)" ( (comma_expression "iVar13 = IsImageGray(local_1178), iVar13 != 0" (assignment_expression "iVar13 = IsImageGray(local_1178)" identifier = (call_expression "IsImageGray(local_1178)" identifier (argument_list "(local_1178)" ( identifier )))) , (binary_expression "iVar13 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }" { (expression_statement "sVar3 = 2;" (assignment_expression "sVar3 = 2" identifier = number_literal) ;) (expression_statement "local_115c = 1;" (assignment_expression "local_115c = 1" identifier = number_literal) ;) (expression_statement "sVar25 = 1;" (assignment_expression "sVar25 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }" else (compound_statement "{\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }" { (expression_statement "sVar3 = (local_1178[1] == 2) + 4;" (assignment_expression "sVar3 = (local_1178[1] == 2) + 4" identifier = (binary_expression "(local_1178[1] == 2) + 4" (parenthesized_expression "(local_1178[1] == 2)" ( (binary_expression "local_1178[1] == 2" (subscript_expression "local_1178[1]" identifier [ number_literal ]) == number_literal) )) + number_literal)) ;) (expression_statement "local_115c = (local_1178[1] == 2) + 3;" (assignment_expression "local_115c = (local_1178[1] == 2) + 3" identifier = (binary_expression "(local_1178[1] == 2) + 3" (parenthesized_expression "(local_1178[1] == 2)" ( (binary_expression "local_1178[1] == 2" (subscript_expression "local_1178[1]" identifier [ number_literal ]) == number_literal) )) + number_literal)) ;) (expression_statement "sVar25 = (local_1178[1] == 2) + 3;" (assignment_expression "sVar25 = (local_1178[1] == 2) + 3" identifier = (binary_expression "(local_1178[1] == 2) + 3" (parenthesized_expression "(local_1178[1] == 2)" ( (binary_expression "local_1178[1] == 2" (subscript_expression "local_1178[1]" identifier [ number_literal ]) == number_literal) )) + number_literal)) ;) }))) (if_statement "if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }" if (parenthesized_expression "(local_1178[0xa5] == 0)" ( (binary_expression "local_1178[0xa5] == 0" (subscript_expression "local_1178[0xa5]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          sVar3 = sVar25;\n        }" { (expression_statement "sVar3 = sVar25;" (assignment_expression "sVar3 = sVar25" identifier = identifier) ;) })) (expression_statement "local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));" (assignment_expression "local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0))" identifier = (call_expression "WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0))" identifier (argument_list "(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0))" ( identifier , (binary_expression "(sVar3 + 1) - (ushort)(local_1174 == 0)" (parenthesized_expression "(sVar3 + 1)" ( (binary_expression "sVar3 + 1" identifier + number_literal) )) - (call_expression "(ushort)(local_1174 == 0)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(local_1174 == 0)" ( (binary_expression "local_1174 == 0" identifier == number_literal) )))) )))) ;) (expression_statement "local_114c = local_114c + 1;" (assignment_expression "local_114c = local_114c + 1" identifier = (binary_expression "local_114c + 1" identifier + number_literal)) ;) (expression_statement "local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;" (assignment_expression "local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12" identifier = (binary_expression "local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12" (binary_expression "local_116c + local_1130 + iVar9 + iVar10 + iVar11" (binary_expression "local_116c + local_1130 + iVar9 + iVar10" (binary_expression "local_116c + local_1130 + iVar9" (binary_expression "local_116c + local_1130" identifier + identifier) + identifier) + identifier) + identifier) + identifier)) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar6[local_114c * 2 + -2] = (uint)uVar34;" (assignment_expression "puVar6[local_114c * 2 + -2] = (uint)uVar34" (subscript_expression "puVar6[local_114c * 2 + -2]" identifier [ (binary_expression "local_114c * 2 + -2" (binary_expression "local_114c * 2" identifier * number_literal) + number_literal) ]) = (cast_expression "(uint)uVar34" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);" (assignment_expression "puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20)" (subscript_expression "puVar6[local_114c * 2 + -1]" identifier [ (binary_expression "local_114c * 2 + -1" (binary_expression "local_114c * 2" identifier * number_literal) + number_literal) ]) = (call_expression "(uint)((ulonglong)uVar34 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar34 >> 0x20)" ( (binary_expression "(ulonglong)uVar34 >> 0x20" (cast_expression "(ulonglong)uVar34" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);" do (compound_statement "{\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        }" { (while_statement "while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }" while (parenthesized_expression "(iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1)" ( (comma_expression "iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1" (assignment_expression "iVar10 = WriteBlobShort(param_1,iVar9)" identifier = (call_expression "WriteBlobShort(param_1,iVar9)" identifier (argument_list "(param_1,iVar9)" ( identifier , identifier )))) , (binary_expression "*(short *)(param_3 + 0x1e) != 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) != number_literal)) )) (compound_statement "{\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }" { (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "iVar11 = WriteBlobLongLong(param_1,0,0);" (assignment_expression "iVar11 = WriteBlobLongLong(param_1,0,0)" identifier = (call_expression "WriteBlobLongLong(param_1,0,0)" identifier (argument_list "(param_1,0,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "local_116c = local_116c + iVar10 + iVar11;" (assignment_expression "local_116c = local_116c + iVar10 + iVar11" identifier = (binary_expression "local_116c + iVar10 + iVar11" (binary_expression "local_116c + iVar10" identifier + identifier) + identifier)) ;) (if_statement "if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }" if (parenthesized_expression "(iVar9 == local_115c)" ( (binary_expression "iVar9 == local_115c" identifier == identifier) )) (compound_statement "{\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }" { (if_statement "if (local_1178[0xa5] == 0) goto LAB_0029ca7f;" if (parenthesized_expression "(local_1178[0xa5] == 0)" ( (binary_expression "local_1178[0xa5] == 0" (subscript_expression "local_1178[0xa5]" identifier [ number_literal ]) == number_literal) )) (goto_statement "goto LAB_0029ca7f;" goto statement_identifier ;)) (goto_statement "goto LAB_0029cb4b;" goto statement_identifier ;) })) })) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "iVar11 = WriteBlobLong(param_1,0);" (assignment_expression "iVar11 = WriteBlobLong(param_1,0)" identifier = (call_expression "WriteBlobLong(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "local_116c = local_116c + iVar10 + iVar11;" (assignment_expression "local_116c = local_116c + iVar10 + iVar11" identifier = (binary_expression "local_116c + iVar10 + iVar11" (binary_expression "local_116c + iVar10" identifier + identifier) + identifier)) ;) }) while (parenthesized_expression "(local_115c != iVar9)" ( (binary_expression "local_115c != iVar9" identifier != identifier) )) ;) (if_statement "if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }" if (parenthesized_expression "(local_1178[0xa5] != 0)" ( (binary_expression "local_1178[0xa5] != 0" (subscript_expression "local_1178[0xa5]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }" { (labeled_statement "LAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);" statement_identifier : (expression_statement "iVar9 = WriteBlobShort(param_1,0xffff);" (assignment_expression "iVar9 = WriteBlobShort(param_1,0xffff)" identifier = (call_expression "WriteBlobShort(param_1,0xffff)" identifier (argument_list "(param_1,0xffff)" ( identifier , number_literal )))) ;)) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n            iVar10 = WriteBlobLong(param_1,0);\n          }" { (expression_statement "iVar10 = WriteBlobLong(param_1,0);" (assignment_expression "iVar10 = WriteBlobLong(param_1,0)" identifier = (call_expression "WriteBlobLong(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" else (compound_statement "{\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" { (expression_statement "iVar10 = WriteBlobLongLong(param_1,0,0);" (assignment_expression "iVar10 = WriteBlobLongLong(param_1,0,0)" identifier = (call_expression "WriteBlobLongLong(param_1,0,0)" identifier (argument_list "(param_1,0,0)" ( identifier , number_literal , number_literal )))) ;) }))) (expression_statement "local_116c = iVar10 + local_116c + iVar9;" (assignment_expression "local_116c = iVar10 + local_116c + iVar9" identifier = (binary_expression "iVar10 + local_116c + iVar9" (binary_expression "iVar10 + local_116c" identifier + identifier) + identifier)) ;) })) (labeled_statement "LAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }" statement_identifier : (if_statement "if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }" if (parenthesized_expression "(local_1174 != 0)" ( (binary_expression "local_1174 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }" { (expression_statement "iVar9 = WriteBlobShort(param_1,0xfffe);" (assignment_expression "iVar9 = WriteBlobShort(param_1,0xfffe)" identifier = (call_expression "WriteBlobShort(param_1,0xfffe)" identifier (argument_list "(param_1,0xfffe)" ( identifier , number_literal )))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n            iVar10 = WriteBlobLong(param_1,0);\n          }" { (expression_statement "iVar10 = WriteBlobLong(param_1,0);" (assignment_expression "iVar10 = WriteBlobLong(param_1,0)" identifier = (call_expression "WriteBlobLong(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" else (compound_statement "{\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" { (expression_statement "iVar10 = WriteBlobLongLong(param_1,0,0);" (assignment_expression "iVar10 = WriteBlobLongLong(param_1,0,0)" identifier = (call_expression "WriteBlobLongLong(param_1,0,0)" identifier (argument_list "(param_1,0,0)" ( identifier , number_literal , number_literal )))) ;) }))) (expression_statement "local_116c = iVar10 + local_116c + iVar9;" (assignment_expression "local_116c = iVar10 + local_116c + iVar9" identifier = (binary_expression "iVar10 + local_116c + iVar9" (binary_expression "iVar10 + local_116c" identifier + identifier) + identifier)) ;) }))) (expression_statement "puVar14 = &DAT_002e24fa;" (assignment_expression "puVar14 = &DAT_002e24fa" identifier = (pointer_expression "&DAT_002e24fa" & identifier)) ;) (if_statement "if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }" if (parenthesized_expression "(param_1[0x8d] == 1)" ( (binary_expression "param_1[0x8d] == 1" (subscript_expression "param_1[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          puVar14 = &DAT_0034cdc9;\n        }" { (expression_statement "puVar14 = &DAT_0034cdc9;" (assignment_expression "puVar14 = &DAT_0034cdc9" identifier = (pointer_expression "&DAT_0034cdc9" & identifier)) ;) })) (expression_statement "iVar9 = WriteBlobString(param_1,puVar14);" (assignment_expression "iVar9 = WriteBlobString(param_1,puVar14)" identifier = (call_expression "WriteBlobString(param_1,puVar14)" identifier (argument_list "(param_1,puVar14)" ( identifier , identifier )))) ;) (switch_statement "switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }" switch (parenthesized_expression "(local_1178[0x8f])" ( (subscript_expression "local_1178[0x8f]" identifier [ number_literal ]) )) (compound_statement "{\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }" { (case_statement "case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "idiv";" (assignment_expression "pcVar7 = "idiv"" identifier = (string_literal ""idiv"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "vidi";\n          }" { (expression_statement "pcVar7 = "vidi";" (assignment_expression "pcVar7 = "vidi"" identifier = (string_literal ""vidi"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "div ";" (assignment_expression "pcVar7 = "div "" identifier = (string_literal ""div "" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = " vid";\n          }" { (expression_statement "pcVar7 = " vid";" (assignment_expression "pcVar7 = " vid"" identifier = (string_literal "" vid"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "colr";" (assignment_expression "pcVar7 = "colr"" identifier = (string_literal ""colr"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "rloc";\n          }" { (expression_statement "pcVar7 = "rloc";" (assignment_expression "pcVar7 = "rloc"" identifier = (string_literal ""rloc"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;" default : (expression_statement "pcVar7 = "norm";" (assignment_expression "pcVar7 = "norm"" identifier = (string_literal ""norm"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "mron";\n          }" { (expression_statement "pcVar7 = "mron";" (assignment_expression "pcVar7 = "mron"" identifier = (string_literal ""mron"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "dark";" (assignment_expression "pcVar7 = "dark"" identifier = (string_literal ""dark"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "krad";\n          }" { (expression_statement "pcVar7 = "krad";" (assignment_expression "pcVar7 = "krad"" identifier = (string_literal ""krad"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "diff";" (assignment_expression "pcVar7 = "diff"" identifier = (string_literal ""diff"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "ffid";\n          }" { (expression_statement "pcVar7 = "ffid";" (assignment_expression "pcVar7 = "ffid"" identifier = (string_literal ""ffid"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "diss";" (assignment_expression "pcVar7 = "diss"" identifier = (string_literal ""diss"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "ssid";\n          }" { (expression_statement "pcVar7 = "ssid";" (assignment_expression "pcVar7 = "ssid"" identifier = (string_literal ""ssid"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "smud";" (assignment_expression "pcVar7 = "smud"" identifier = (string_literal ""smud"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "dums";\n          }" { (expression_statement "pcVar7 = "dums";" (assignment_expression "pcVar7 = "dums"" identifier = (string_literal ""dums"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "hLit";" (assignment_expression "pcVar7 = "hLit"" identifier = (string_literal ""hLit"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "tiLh";\n          }" { (expression_statement "pcVar7 = "tiLh";" (assignment_expression "pcVar7 = "tiLh"" identifier = (string_literal ""tiLh"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "hMix";" (assignment_expression "pcVar7 = "hMix"" identifier = (string_literal ""hMix"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "xiMh";\n          }" { (expression_statement "pcVar7 = "xiMh";" (assignment_expression "pcVar7 = "xiMh"" identifier = (string_literal ""xiMh"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "hue ";" (assignment_expression "pcVar7 = "hue "" identifier = (string_literal ""hue "" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = " euh";\n          }" { (expression_statement "pcVar7 = " euh";" (assignment_expression "pcVar7 = " euh"" identifier = (string_literal "" euh"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "lite";" (assignment_expression "pcVar7 = "lite"" identifier = (string_literal ""lite"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "etil";\n          }" { (expression_statement "pcVar7 = "etil";" (assignment_expression "pcVar7 = "etil"" identifier = (string_literal ""etil"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "lbrn";" (assignment_expression "pcVar7 = "lbrn"" identifier = (string_literal ""lbrn"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "nrbl";\n          }" { (expression_statement "pcVar7 = "nrbl";" (assignment_expression "pcVar7 = "nrbl"" identifier = (string_literal ""nrbl"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "lddg";" (assignment_expression "pcVar7 = "lddg"" identifier = (string_literal ""lddg"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "gddl";\n          }" { (expression_statement "pcVar7 = "gddl";" (assignment_expression "pcVar7 = "gddl"" identifier = (string_literal ""gddl"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "lLit";" (assignment_expression "pcVar7 = "lLit"" identifier = (string_literal ""lLit"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "tiLl";\n          }" { (expression_statement "pcVar7 = "tiLl";" (assignment_expression "pcVar7 = "tiLl"" identifier = (string_literal ""tiLl"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "lum ";" (assignment_expression "pcVar7 = "lum "" identifier = (string_literal ""lum "" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = " mul";\n          }" { (expression_statement "pcVar7 = " mul";" (assignment_expression "pcVar7 = " mul"" identifier = (string_literal "" mul"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "mul ";" (assignment_expression "pcVar7 = "mul "" identifier = (string_literal ""mul "" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = " lum";\n          }" { (expression_statement "pcVar7 = " lum";" (assignment_expression "pcVar7 = " lum"" identifier = (string_literal "" lum"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "over";" (assignment_expression "pcVar7 = "over"" identifier = (string_literal ""over"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "revo";\n          }" { (expression_statement "pcVar7 = "revo";" (assignment_expression "pcVar7 = "revo"" identifier = (string_literal ""revo"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "pLit";" (assignment_expression "pcVar7 = "pLit"" identifier = (string_literal ""pLit"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "tiLp";\n          }" { (expression_statement "pcVar7 = "tiLp";" (assignment_expression "pcVar7 = "tiLp"" identifier = (string_literal ""tiLp"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "sat ";" (assignment_expression "pcVar7 = "sat "" identifier = (string_literal ""sat "" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = " tas";\n          }" { (expression_statement "pcVar7 = " tas";" (assignment_expression "pcVar7 = " tas"" identifier = (string_literal "" tas"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "scrn";" (assignment_expression "pcVar7 = "scrn"" identifier = (string_literal ""scrn"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "nrcs";\n          }" { (expression_statement "pcVar7 = "nrcs";" (assignment_expression "pcVar7 = "nrcs"" identifier = (string_literal ""nrcs"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;" case number_literal : (expression_statement "pcVar7 = "sLit";" (assignment_expression "pcVar7 = "sLit"" identifier = (string_literal ""sLit"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "tiLs";\n          }" { (expression_statement "pcVar7 = "tiLs";" (assignment_expression "pcVar7 = "tiLs"" identifier = (string_literal ""tiLs"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }" case number_literal : (expression_statement "pcVar7 = "vLit";" (assignment_expression "pcVar7 = "vLit"" identifier = (string_literal ""vLit"" " string_content ")) ;) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }" if (parenthesized_expression "(local_1178[0x8d] == 1)" ( (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar7 = "tiLv";\n          }" { (expression_statement "pcVar7 = "tiLv";" (assignment_expression "pcVar7 = "tiLv"" identifier = (string_literal ""tiLv"" " string_content ")) ;) }))) })) (expression_statement "iVar10 = WriteBlobString(param_1,pcVar7);" (assignment_expression "iVar10 = WriteBlobString(param_1,pcVar7)" identifier = (call_expression "WriteBlobString(param_1,pcVar7)" identifier (argument_list "(param_1,pcVar7)" ( identifier , identifier )))) ;) (expression_statement "iVar10 = local_116c + iVar9 + iVar10;" (assignment_expression "iVar10 = local_116c + iVar9 + iVar10" identifier = (binary_expression "local_116c + iVar9 + iVar10" (binary_expression "local_116c + iVar9" identifier + identifier) + identifier)) ;) (expression_statement "pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");" (assignment_expression "pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity")" identifier = (cast_expression "(char *)GetImageArtifact(local_1178,"psd:layer.opacity")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageArtifact(local_1178,"psd:layer.opacity")" identifier (argument_list "(local_1178,"psd:layer.opacity")" ( identifier , (string_literal ""psd:layer.opacity"" " string_content ") ))))) ;) (if_statement "if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }" if (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }" { (expression_statement "iVar9 = WriteBlobByte(param_1,0xff);" (assignment_expression "iVar9 = WriteBlobByte(param_1,0xff)" identifier = (call_expression "WriteBlobByte(param_1,0xff)" identifier (argument_list "(param_1,0xff)" ( identifier , number_literal )))) ;) (expression_statement "iVar10 = iVar10 + iVar9;" (assignment_expression "iVar10 = iVar10 + iVar9" identifier = (binary_expression "iVar10 + iVar9" identifier + identifier)) ;) }) (else_clause "else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }" else (compound_statement "{\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }" { (expression_statement "lVar15 = strtol(pcVar7,(char **)0x0,10);" (assignment_expression "lVar15 = strtol(pcVar7,(char **)0x0,10)" identifier = (call_expression "strtol(pcVar7,(char **)0x0,10)" identifier (argument_list "(pcVar7,(char **)0x0,10)" ( identifier , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , number_literal )))) ;) (expression_statement "dVar1 = (double)lVar15;" (assignment_expression "dVar1 = (double)lVar15" identifier = (cast_expression "(double)lVar15" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }" if (parenthesized_expression "(0.0 < dVar1)" ( (binary_expression "0.0 < dVar1" number_literal < identifier) )) (compound_statement "{\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }" { (expression_statement "uVar2 = 0xff;" (assignment_expression "uVar2 = 0xff" identifier = number_literal) ;) (if_statement "if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }" if (parenthesized_expression "(dVar1 / (double)DAT_002e814c < (double)DAT_002e8150)" ( (binary_expression "dVar1 / (double)DAT_002e814c < (double)DAT_002e8150" (binary_expression "dVar1 / (double)DAT_002e814c" identifier / (cast_expression "(double)DAT_002e814c" ( (type_descriptor "double" primitive_type) ) identifier)) < (cast_expression "(double)DAT_002e8150" ( (type_descriptor "double" primitive_type) ) identifier)) )) (compound_statement "{\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }" { (expression_statement "uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);" (assignment_expression "uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8)" identifier = (cast_expression "(undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8)" ( (type_descriptor "undefined1" type_identifier) ) (cast_expression "(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (call_expression "ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8)" identifier (argument_list "(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8)" ( (binary_expression "dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8" (binary_expression "dVar1 / (double)DAT_002e814c" identifier / (cast_expression "(double)DAT_002e814c" ( (type_descriptor "double" primitive_type) ) identifier)) + (cast_expression "(double)DAT_002df2b8" ( (type_descriptor "double" primitive_type) ) identifier)) )))))) ;) })) })) (expression_statement "iVar9 = WriteBlobByte(param_1,uVar2);" (assignment_expression "iVar9 = WriteBlobByte(param_1,uVar2)" identifier = (call_expression "WriteBlobByte(param_1,uVar2)" identifier (argument_list "(param_1,uVar2)" ( identifier , identifier )))) ;) (expression_statement "iVar10 = iVar10 + iVar9;" (assignment_expression "iVar10 = iVar10 + iVar9" identifier = (binary_expression "iVar10 + iVar9" identifier + identifier)) ;) (if_statement "if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }" if (parenthesized_expression "(local_1178[0xcca] != 0)" ( (binary_expression "local_1178[0xcca] != 0" (subscript_expression "local_1178[0xcca]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }" { (expression_statement "LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);" (call_expression "LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1)" identifier (argument_list "(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1)" ( number_literal , (string_literal ""coders/psd.c"" " string_content ") , (string_literal ""ApplyPSDLayerOpacity"" " string_content ") , number_literal , (string_literal ""  applying layer opacity %.20g"" " string_content ") , identifier ))) ;) })) (if_statement "if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }" if (parenthesized_expression "((float)lVar15 != DAT_002df8a8)" ( (binary_expression "(float)lVar15 != DAT_002df8a8" (cast_expression "(float)lVar15" ( (type_descriptor "float" primitive_type) ) identifier) != identifier) )) (compound_statement "{\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }" { (if_statement "if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }" if (parenthesized_expression "(local_1178[0xa5] != 4)" ( (binary_expression "local_1178[0xa5] != 4" (subscript_expression "local_1178[0xa5]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }" { (expression_statement "SetImageAlphaChannel(local_1178,0xb,param_5);" (call_expression "SetImageAlphaChannel(local_1178,0xb,param_5)" identifier (argument_list "(local_1178,0xb,param_5)" ( identifier , number_literal , identifier ))) ;) })) (expression_statement "iVar9 = GetImagePixelCacheType(local_1178);" (assignment_expression "iVar9 = GetImagePixelCacheType(local_1178)" identifier = (call_expression "GetImagePixelCacheType(local_1178)" identifier (argument_list "(local_1178)" ( identifier )))) ;) (if_statement "if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }" if (parenthesized_expression "(((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3))))" ( (binary_expression "((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))" (parenthesized_expression "((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3))" ( (binary_expression "(iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)" (parenthesized_expression "(iVar9 == 4)" ( (binary_expression "iVar9 == 4" identifier == number_literal) )) || (parenthesized_expression "(iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)" ( (comma_expression "iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3" (assignment_expression "iVar9 = GetImagePixelCacheType(local_1178)" identifier = (call_expression "GetImagePixelCacheType(local_1178)" identifier (argument_list "(local_1178)" ( identifier )))) , (binary_expression "iVar9 == 3" identifier == number_literal)) ))) )) && (parenthesized_expression "((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))" ( (parenthesized_expression "(iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3))" ( (comma_expression "iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)" (assignment_expression "iVar9 = GetImagePixelCacheType(local_1178)" identifier = (call_expression "GetImagePixelCacheType(local_1178)" identifier (argument_list "(local_1178)" ( identifier )))) , (binary_expression "iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)" (binary_expression "iVar9 == 4" identifier == number_literal) || (parenthesized_expression "(iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)" ( (comma_expression "iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3" (assignment_expression "iVar9 = GetImagePixelCacheType(local_1178)" identifier = (call_expression "GetImagePixelCacheType(local_1178)" identifier (argument_list "(local_1178)" ( identifier )))) , (binary_expression "iVar9 == 3" identifier == number_literal)) )))) )) ))) )) (compound_statement "{\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }" { (expression_statement "iVar12 = GetMagickResourceLimit(7);" (assignment_expression "iVar12 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "iVar9 = local_1178[7];" (assignment_expression "iVar9 = local_1178[7]" identifier = (subscript_expression "local_1178[7]" identifier [ number_literal ])) ;) (expression_statement "iVar11 = iVar9 + 0x3f;" (assignment_expression "iVar11 = iVar9 + 0x3f" identifier = (binary_expression "iVar9 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }" if (parenthesized_expression "(-1 < iVar9)" ( (binary_expression "-1 < iVar9" number_literal < identifier) )) (compound_statement "{\n                iVar11 = iVar9;\n              }" { (expression_statement "iVar11 = iVar9;" (assignment_expression "iVar11 = iVar9" identifier = identifier) ;) })) (expression_statement "bVar31 = 0x7f < iVar9;" (assignment_expression "bVar31 = 0x7f < iVar9" identifier = (binary_expression "0x7f < iVar9" number_literal < identifier)) ;) (if_statement "if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }" if (parenthesized_expression "(iVar12 < iVar11 >> 6)" ( (binary_expression "iVar12 < iVar11 >> 6" identifier < (binary_expression "iVar11 >> 6" identifier >> number_literal)) )) (compound_statement "{\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }" { (expression_statement "iVar9 = GetMagickResourceLimit(7);" (assignment_expression "iVar9 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "bVar31 = 1 < iVar9;" (assignment_expression "bVar31 = 1 < iVar9" identifier = (binary_expression "1 < iVar9" number_literal < identifier)) ;) })) (if_statement "if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }" if (parenthesized_expression "(bVar31)" ( identifier )) (compound_statement "{\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }" { (expression_statement "iVar12 = GetMagickResourceLimit(7);" (assignment_expression "iVar12 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (expression_statement "iVar11 = local_1178[7];" (assignment_expression "iVar11 = local_1178[7]" identifier = (subscript_expression "local_1178[7]" identifier [ number_literal ])) ;) (expression_statement "iVar9 = iVar11 + 0x3f;" (assignment_expression "iVar9 = iVar11 + 0x3f" identifier = (binary_expression "iVar11 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }" if (parenthesized_expression "(-1 < iVar11)" ( (binary_expression "-1 < iVar11" number_literal < identifier) )) (compound_statement "{\n                  iVar9 = iVar11;\n                }" { (expression_statement "iVar9 = iVar11;" (assignment_expression "iVar9 = iVar11" identifier = identifier) ;) })) (expression_statement "iVar9 = iVar9 >> 6;" (assignment_expression "iVar9 = iVar9 >> 6" identifier = (binary_expression "iVar9 >> 6" identifier >> number_literal)) ;) (if_statement "if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }" if (parenthesized_expression "(iVar12 < iVar9)" ( (binary_expression "iVar12 < iVar9" identifier < identifier) )) (compound_statement "{\n                  iVar9 = GetMagickResourceLimit(7);\n                }" { (expression_statement "iVar9 = GetMagickResourceLimit(7);" (assignment_expression "iVar9 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) })) }) (else_clause "else {\nLAB_0029d989:\n                iVar9 = 1;\n              }" else (compound_statement "{\nLAB_0029d989:\n                iVar9 = 1;\n              }" { (labeled_statement "LAB_0029d989:\n                iVar9 = 1;" statement_identifier : (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;)) }))) }) (else_clause "else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }" else (compound_statement "{\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }" { (expression_statement "uVar34 = GetMagickResourceLimit(7);" (assignment_expression "uVar34 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }" if (parenthesized_expression "(((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))" ( (binary_expression "((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)" (parenthesized_expression "((int)((ulonglong)uVar34 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar34 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar34 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar34 >> 0x20)" ( (binary_expression "(ulonglong)uVar34 >> 0x20" (cast_expression "(ulonglong)uVar34" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar34 < 2)" ( (binary_expression "(uint)uVar34 < 2" (cast_expression "(uint)uVar34" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }" { (expression_statement "uVar34 = GetMagickResourceLimit(7);" (assignment_expression "uVar34 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;" if (parenthesized_expression "(((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))" ( (binary_expression "((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)" (parenthesized_expression "((int)((ulonglong)uVar34 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar34 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar34 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar34 >> 0x20)" ( (binary_expression "(ulonglong)uVar34 >> 0x20" (cast_expression "(ulonglong)uVar34" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar34 < 2)" ( (binary_expression "(uint)uVar34 < 2" (cast_expression "(uint)uVar34" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_0029d989;" goto statement_identifier ;)) })) (expression_statement "uVar34 = GetMagickResourceLimit(7);" (assignment_expression "uVar34 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) (if_statement "if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }" if (parenthesized_expression "(((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))" ( (binary_expression "((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)" (parenthesized_expression "((int)((ulonglong)uVar34 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar34 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar34 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar34 >> 0x20)" ( (binary_expression "(ulonglong)uVar34 >> 0x20" (cast_expression "(ulonglong)uVar34" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) && (parenthesized_expression "((uint)uVar34 < 2)" ( (binary_expression "(uint)uVar34 < 2" (cast_expression "(uint)uVar34" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) ))) )) (compound_statement "{\n                iVar9 = GetMagickResourceLimit(7);\n              }" { (expression_statement "iVar9 = GetMagickResourceLimit(7);" (assignment_expression "iVar9 = GetMagickResourceLimit(7)" identifier = (call_expression "GetMagickResourceLimit(7)" identifier (argument_list "(7)" ( number_literal )))) ;) }) (else_clause "else {\n                iVar9 = 2;\n              }" else (compound_statement "{\n                iVar9 = 2;\n              }" { (expression_statement "iVar9 = 2;" (assignment_expression "iVar9 = 2" identifier = number_literal) ;) }))) }))) (expression_statement "local_10e8 = 1;" (assignment_expression "local_10e8 = 1" identifier = number_literal) ;) (expression_statement "local_10e0 = 1;" (assignment_expression "local_10e0 = 1" identifier = number_literal) ;) (expression_statement "local_10e4 = param_5;" (assignment_expression "local_10e4 = param_5" identifier = identifier) ;) (expression_statement "local_10ec = local_1178;" (assignment_expression "local_10ec = local_1178" identifier = identifier) ;) (expression_statement "local_10f4 = dVar1;" (assignment_expression "local_10f4 = dVar1" identifier = identifier) ;) (expression_statement "GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);" (call_expression "GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0)" identifier (argument_list "(FUN_00299110,&local_10f4,iVar9,0)" ( identifier , (pointer_expression "&local_10f4" & identifier) , identifier , number_literal ))) ;) })) }))) (expression_statement "iVar11 = WriteBlobByte(param_1,0);" (assignment_expression "iVar11 = WriteBlobByte(param_1,0)" identifier = (call_expression "WriteBlobByte(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');" (assignment_expression "iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01')" identifier = (call_expression "WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01')" identifier (argument_list "(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01')" ( identifier , (binary_expression "(local_1178[0x8f] == 0x34) * '\x03' + '\x01'" (binary_expression "(local_1178[0x8f] == 0x34) * '\x03'" (parenthesized_expression "(local_1178[0x8f] == 0x34)" ( (binary_expression "local_1178[0x8f] == 0x34" (subscript_expression "local_1178[0x8f]" identifier [ number_literal ]) == number_literal) )) * (char_literal "'\x03'" ' escape_sequence ')) + (char_literal "'\x01'" ' escape_sequence ')) )))) ;) (expression_statement "iVar9 = WriteBlobByte(param_1,0);" (assignment_expression "iVar9 = WriteBlobByte(param_1,0)" identifier = (call_expression "WriteBlobByte(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar9 = iVar9 + iVar10 + iVar11 + iVar12;" (assignment_expression "iVar9 = iVar9 + iVar10 + iVar11 + iVar12" identifier = (binary_expression "iVar9 + iVar10 + iVar11 + iVar12" (binary_expression "iVar9 + iVar10 + iVar11" (binary_expression "iVar9 + iVar10" identifier + identifier) + identifier) + identifier)) ;) (expression_statement "puVar30 = &DAT_0034d420;" (assignment_expression "puVar30 = &DAT_0034d420" identifier = (pointer_expression "&DAT_0034d420" & identifier)) ;) (expression_statement "puVar29 = local_10d9;" (assignment_expression "puVar29 = local_10d9" identifier = identifier) ;) (for_statement "for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }" for ( (assignment_expression "iVar10 = 0x2d" identifier = number_literal) ; (binary_expression "iVar10 != 0" identifier != number_literal) ; (assignment_expression "iVar10 = iVar10 + -1" identifier = (binary_expression "iVar10 + -1" identifier + number_literal)) ) (compound_statement "{\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }" { (expression_statement "*puVar29 = *puVar30;" (assignment_expression "*puVar29 = *puVar30" (pointer_expression "*puVar29" * identifier) = (pointer_expression "*puVar30" * identifier)) ;) (expression_statement "puVar30 = puVar30 + (uint)bVar32 * -2 + 1;" (assignment_expression "puVar30 = puVar30 + (uint)bVar32 * -2 + 1" identifier = (binary_expression "puVar30 + (uint)bVar32 * -2 + 1" (binary_expression "puVar30 + (uint)bVar32 * -2" identifier + (binary_expression "(uint)bVar32 * -2" (cast_expression "(uint)bVar32" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar29 = puVar29 + (uint)bVar32 * -2 + 1;" (assignment_expression "puVar29 = puVar29 + (uint)bVar32 * -2 + 1" identifier = (binary_expression "puVar29 + (uint)bVar32 * -2 + 1" (binary_expression "puVar29 + (uint)bVar32 * -2" identifier + (binary_expression "(uint)bVar32 * -2" (cast_expression "(uint)bVar32" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "iVar10 = GetImageProfile(local_1178,"psd:additional-info");" (assignment_expression "iVar10 = GetImageProfile(local_1178,"psd:additional-info")" identifier = (call_expression "GetImageProfile(local_1178,"psd:additional-info")" identifier (argument_list "(local_1178,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (if_statement "if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0029ddc4:\n          iVar11 = 0;\n        }" { (labeled_statement "LAB_0029ddc4:\n          iVar11 = 0;" statement_identifier : (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }" else (compound_statement "{\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }" { (expression_statement "uVar16 = GetImageOption(param_2,"psd:additional-info");" (assignment_expression "uVar16 = GetImageOption(param_2,"psd:additional-info")" identifier = (call_expression "GetImageOption(param_2,"psd:additional-info")" identifier (argument_list "(param_2,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (expression_statement "iVar12 = LocaleCompare(uVar16,"all");" (assignment_expression "iVar12 = LocaleCompare(uVar16,"all")" identifier = (call_expression "LocaleCompare(uVar16,"all")" identifier (argument_list "(uVar16,"all")" ( identifier , (string_literal ""all"" " string_content ") )))) ;) (expression_statement "iVar11 = iVar10;" (assignment_expression "iVar11 = iVar10" identifier = identifier) ;) (if_statement "if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }" if (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) (compound_statement "{\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }" { (expression_statement "iVar11 = LocaleCompare(uVar16,"selective");" (assignment_expression "iVar11 = LocaleCompare(uVar16,"selective")" identifier = (call_expression "LocaleCompare(uVar16,"selective")" identifier (argument_list "(uVar16,"selective")" ( identifier , (string_literal ""selective"" " string_content ") )))) ;) (if_statement "if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }" { (expression_statement "uVar27 = GetStringInfoLength(iVar10);" (assignment_expression "uVar27 = GetStringInfoLength(iVar10)" identifier = (call_expression "GetStringInfoLength(iVar10)" identifier (argument_list "(iVar10)" ( identifier )))) ;) (expression_statement "__dest = (void *)GetStringInfoDatum(iVar10);" (assignment_expression "__dest = (void *)GetStringInfoDatum(iVar10)" identifier = (cast_expression "(void *)GetStringInfoDatum(iVar10)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetStringInfoDatum(iVar10)" identifier (argument_list "(iVar10)" ( identifier ))))) ;) (if_statement "if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }" if (parenthesized_expression "(uVar27 < 0xc)" ( (binary_expression "uVar27 < 0xc" identifier < number_literal) )) (compound_statement "{\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }" { (expression_statement "iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");" (assignment_expression "iVar11 = RemoveImageProfile(local_1178,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(local_1178,"psd:additional-info")" identifier (argument_list "(local_1178,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) }) (else_clause "else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }" else (compound_statement "{\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }" { (expression_statement "local_115c = 0;" (assignment_expression "local_115c = 0" identifier = number_literal) ;) (do_statement "do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);" do (compound_statement "{\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                }" { (expression_statement "local_1025 = *(undefined1 *)((int)__dest + 4);" (assignment_expression "local_1025 = *(undefined1 *)((int)__dest + 4)" identifier = (pointer_expression "*(undefined1 *)((int)__dest + 4)" * (cast_expression "(undefined1 *)((int)__dest + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + 4)" ( (binary_expression "(int)__dest + 4" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar27 = uVar27 - 0xc;" (assignment_expression "uVar27 = uVar27 - 0xc" identifier = (binary_expression "uVar27 - 0xc" identifier - number_literal)) ;) (expression_statement "local_1021 = 0;" (assignment_expression "local_1021 = 0" identifier = number_literal) ;) (expression_statement "uVar28 = *(uint *)((int)__dest + 8);" (assignment_expression "uVar28 = *(uint *)((int)__dest + 8)" identifier = (pointer_expression "*(uint *)((int)__dest + 8)" * (cast_expression "(uint *)((int)__dest + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + 8)" ( (binary_expression "(int)__dest + 8" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "local_1024 = *(undefined1 *)((int)__dest + 5);" (assignment_expression "local_1024 = *(undefined1 *)((int)__dest + 5)" identifier = (pointer_expression "*(undefined1 *)((int)__dest + 5)" * (cast_expression "(undefined1 *)((int)__dest + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + 5)" ( (binary_expression "(int)__dest + 5" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;" (assignment_expression "uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18" identifier = (binary_expression "uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18" (binary_expression "uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8" (binary_expression "uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8" (binary_expression "uVar28 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar28 & 0xff0000) >> 8" (parenthesized_expression "(uVar28 & 0xff0000)" ( (binary_expression "uVar28 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar28 & 0xff00) << 8" (parenthesized_expression "(uVar28 & 0xff00)" ( (binary_expression "uVar28 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar28 << 0x18" identifier << number_literal))) ;) (expression_statement "local_1023 = *(undefined1 *)((int)__dest + 6);" (assignment_expression "local_1023 = *(undefined1 *)((int)__dest + 6)" identifier = (pointer_expression "*(undefined1 *)((int)__dest + 6)" * (cast_expression "(undefined1 *)((int)__dest + 6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + 6)" ( (binary_expression "(int)__dest + 6" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "local_1022 = *(undefined1 *)((int)__dest + 7);" (assignment_expression "local_1022 = *(undefined1 *)((int)__dest + 7)" identifier = (pointer_expression "*(undefined1 *)((int)__dest + 7)" * (cast_expression "(undefined1 *)((int)__dest + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + 7)" ( (binary_expression "(int)__dest + 7" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "puVar30 = local_10d9;" (assignment_expression "puVar30 = local_10d9" identifier = identifier) ;) (if_statement "if (uVar27 < uVar28) goto LAB_0029ddc4;" if (parenthesized_expression "(uVar27 < uVar28)" ( (binary_expression "uVar27 < uVar28" identifier < identifier) )) (goto_statement "goto LAB_0029ddc4;" goto statement_identifier ;)) (do_statement "do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);" do (compound_statement "{\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  }" { (expression_statement "iVar11 = LocaleNCompare(&local_1025,puVar30,5);" (assignment_expression "iVar11 = LocaleNCompare(&local_1025,puVar30,5)" identifier = (call_expression "LocaleNCompare(&local_1025,puVar30,5)" identifier (argument_list "(&local_1025,puVar30,5)" ( (pointer_expression "&local_1025" & identifier) , identifier , number_literal )))) ;) (if_statement "if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }" { (expression_statement "uVar27 = uVar27 - uVar28;" (assignment_expression "uVar27 = uVar27 - uVar28" identifier = (binary_expression "uVar27 - uVar28" identifier - identifier)) ;) (expression_statement "local_115c = local_115c + 0xc + uVar28;" (assignment_expression "local_115c = local_115c + 0xc + uVar28" identifier = (binary_expression "local_115c + 0xc + uVar28" (binary_expression "local_115c + 0xc" identifier + number_literal) + identifier)) ;) (expression_statement "__dest = (void *)((int)__dest + uVar28 + 0xc);" (assignment_expression "__dest = (void *)((int)__dest + uVar28 + 0xc)" identifier = (cast_expression "(void *)((int)__dest + uVar28 + 0xc)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + uVar28 + 0xc)" ( (binary_expression "(int)__dest + uVar28 + 0xc" (binary_expression "(int)__dest + uVar28" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (goto_statement "goto LAB_0029cee4;" goto statement_identifier ;) })) (expression_statement "puVar30 = (undefined4 *)((int)puVar30 + 5);" (assignment_expression "puVar30 = (undefined4 *)((int)puVar30 + 5)" identifier = (cast_expression "(undefined4 *)((int)puVar30 + 5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar30 + 5)" ( (binary_expression "(int)puVar30 + 5" (cast_expression "(int)puVar30" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "((undefined4 *)&local_1025 != puVar30)" ( (binary_expression "(undefined4 *)&local_1025 != puVar30" (cast_expression "(undefined4 *)&local_1025" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_1025" & identifier)) != identifier) )) ;) (expression_statement "uVar27 = uVar27 - uVar28;" (assignment_expression "uVar27 = uVar27 - uVar28" identifier = (binary_expression "uVar27 - uVar28" identifier - identifier)) ;) (if_statement "if (uVar27 == 0) break;" if (parenthesized_expression "(uVar27 == 0)" ( (binary_expression "uVar27 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);" (call_expression "memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27)" identifier (argument_list "(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27)" ( identifier , (cast_expression "(void *)((int)__dest + uVar28 + 0xc)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + uVar28 + 0xc)" ( (binary_expression "(int)__dest + uVar28 + 0xc" (binary_expression "(int)__dest + uVar28" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) ))) , identifier ))) ;) (labeled_statement "LAB_0029cee4:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(0xb < uVar27)" ( (binary_expression "0xb < uVar27" number_literal < identifier) )) ;) (expression_statement "iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");" (assignment_expression "iVar11 = RemoveImageProfile(local_1178,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(local_1178,"psd:additional-info")" identifier (argument_list "(local_1178,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (if_statement "if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }" if (parenthesized_expression "(local_115c != 0)" ( (binary_expression "local_115c != 0" identifier != number_literal) )) (compound_statement "{\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }" { (expression_statement "SetStringInfoLength(iVar11,local_115c);" (call_expression "SetStringInfoLength(iVar11,local_115c)" identifier (argument_list "(iVar11,local_115c)" ( identifier , identifier ))) ;) (expression_statement "SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);" (call_expression "SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5)" identifier (argument_list "(local_1178,"psd:additional-info",iVar10,param_5)" ( identifier , (string_literal ""psd:additional-info"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto LAB_0029cfc8;" goto statement_identifier ;) })) }))) (expression_statement "iVar11 = DestroyStringInfo(iVar11);" (assignment_expression "iVar11 = DestroyStringInfo(iVar11)" identifier = (call_expression "DestroyStringInfo(iVar11)" identifier (argument_list "(iVar11)" ( identifier )))) ;) }) (else_clause "else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }" else (compound_statement "{\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }" { (expression_statement "uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");" (assignment_expression "uVar16 = RemoveImageProfile(local_1178,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(local_1178,"psd:additional-info")" identifier (argument_list "(local_1178,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (expression_statement "iVar11 = DestroyStringInfo(uVar16);" (assignment_expression "iVar11 = DestroyStringInfo(uVar16)" identifier = (call_expression "DestroyStringInfo(uVar16)" identifier (argument_list "(uVar16)" ( identifier )))) ;) }))) })) }))) (labeled_statement "LAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);" statement_identifier : (expression_statement "pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);" (assignment_expression "pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5)" identifier = (cast_expression "(char *)GetImageProperty(local_1178,"label",param_5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageProperty(local_1178,"label",param_5)" identifier (argument_list "(local_1178,"label",param_5)" ( identifier , (string_literal ""label"" " string_content ") , identifier ))))) ;)) (if_statement "if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }" if (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }" { (expression_statement "pcVar7 = local_1020;" (assignment_expression "pcVar7 = local_1020" identifier = identifier) ;) (expression_statement "FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);" (call_expression "FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c)" identifier (argument_list "(pcVar7,0x1000,"L%.20g",(double)local_114c)" ( identifier , number_literal , (string_literal ""L%.20g"" " string_content ") , (cast_expression "(double)local_114c" ( (type_descriptor "double" primitive_type) ) identifier) ))) ;) })) (expression_statement "sVar8 = strlen(pcVar7);" (assignment_expression "sVar8 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "uVar27 = sVar8 + 1;" (assignment_expression "uVar27 = sVar8 + 1" identifier = (binary_expression "sVar8 + 1" identifier + number_literal)) ;) (if_statement "if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }" if (parenthesized_expression "((uVar27 & 3) != 0)" ( (binary_expression "(uVar27 & 3) != 0" (parenthesized_expression "(uVar27 & 3)" ( (binary_expression "uVar27 & 3" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }" { (expression_statement "uVar27 = (uVar27 & 0xfffffffc) + 4;" (assignment_expression "uVar27 = (uVar27 & 0xfffffffc) + 4" identifier = (binary_expression "(uVar27 & 0xfffffffc) + 4" (parenthesized_expression "(uVar27 & 0xfffffffc)" ( (binary_expression "uVar27 & 0xfffffffc" identifier & number_literal) )) + number_literal)) ;) })) (if_statement "if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }" if (parenthesized_expression "(iVar11 != 0)" ( (binary_expression "iVar11 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }" { (expression_statement "iVar10 = GetStringInfoLength(iVar11);" (assignment_expression "iVar10 = GetStringInfoLength(iVar11)" identifier = (call_expression "GetStringInfoLength(iVar11)" identifier (argument_list "(iVar11)" ( identifier )))) ;) (expression_statement "uVar27 = uVar27 + iVar10;" (assignment_expression "uVar27 = uVar27 + iVar10" identifier = (binary_expression "uVar27 + iVar10" identifier + identifier)) ;) })) (if_statement "if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }" if (parenthesized_expression "(local_1174 == 0)" ( (binary_expression "local_1174 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }" { (expression_statement "iVar10 = WriteBlobLong(param_1,uVar27 + 8);" (assignment_expression "iVar10 = WriteBlobLong(param_1,uVar27 + 8)" identifier = (call_expression "WriteBlobLong(param_1,uVar27 + 8)" identifier (argument_list "(param_1,uVar27 + 8)" ( identifier , (binary_expression "uVar27 + 8" identifier + number_literal) )))) ;) (expression_statement "iVar12 = WriteBlobLong(param_1,0);" (assignment_expression "iVar12 = WriteBlobLong(param_1,0)" identifier = (call_expression "WriteBlobLong(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar10 = iVar10 + iVar12 + iVar9;" (assignment_expression "iVar10 = iVar10 + iVar12 + iVar9" identifier = (binary_expression "iVar10 + iVar12 + iVar9" (binary_expression "iVar10 + iVar12" identifier + identifier) + identifier)) ;) }) (else_clause "else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }" else (compound_statement "{\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }" { (expression_statement "iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);" (assignment_expression "iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c)" identifier = (call_expression "WriteBlobLong(param_1,uVar27 + 0x1c)" identifier (argument_list "(param_1,uVar27 + 0x1c)" ( identifier , (binary_expression "uVar27 + 0x1c" identifier + number_literal) )))) ;) (if_statement "if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }" if (parenthesized_expression "((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0))" ( (binary_expression "(*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)" (parenthesized_expression "(*(int *)(local_1174 + 0x23c) != 0x34)" ( (binary_expression "*(int *)(local_1174 + 0x23c) != 0x34" (pointer_expression "*(int *)(local_1174 + 0x23c)" * (cast_expression "(int *)(local_1174 + 0x23c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x23c)" ( (binary_expression "local_1174 + 0x23c" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(local_1178[0xa5] != 0)" ( (binary_expression "local_1178[0xa5] != 0" (subscript_expression "local_1178[0xa5]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }" { (expression_statement "FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);" (call_expression "FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5)" identifier (argument_list "((double)((float)local_1103 * DAT_002e814c),param_5)" ( (cast_expression "(double)((float)local_1103 * DAT_002e814c)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)local_1103 * DAT_002e814c)" ( (binary_expression "(float)local_1103 * DAT_002e814c" (cast_expression "(float)local_1103" ( (type_descriptor "float" primitive_type) ) identifier) * identifier) ))) , identifier ))) ;) })) (expression_statement "*(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];" (assignment_expression "*(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83]" (pointer_expression "*(int *)(local_1174 + 0x20c)" * (cast_expression "(int *)(local_1174 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x20c)" ( (binary_expression "local_1174 + 0x20c" identifier + number_literal) )))) = (binary_expression "*(int *)(local_1174 + 0x20c) + param_1[0x83]" (pointer_expression "*(int *)(local_1174 + 0x20c)" * (cast_expression "(int *)(local_1174 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x20c)" ( (binary_expression "local_1174 + 0x20c" identifier + number_literal) )))) + (subscript_expression "param_1[0x83]" identifier [ number_literal ]))) ;) (expression_statement "*(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];" (assignment_expression "*(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82]" (pointer_expression "*(int *)(local_1174 + 0x208)" * (cast_expression "(int *)(local_1174 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x208)" ( (binary_expression "local_1174 + 0x208" identifier + number_literal) )))) = (binary_expression "*(int *)(local_1174 + 0x208) + param_1[0x82]" (pointer_expression "*(int *)(local_1174 + 0x208)" * (cast_expression "(int *)(local_1174 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x208)" ( (binary_expression "local_1174 + 0x208" identifier + number_literal) )))) + (subscript_expression "param_1[0x82]" identifier [ number_literal ]))) ;) (expression_statement "iVar13 = WriteBlobLong(param_1,0x14);" (assignment_expression "iVar13 = WriteBlobLong(param_1,0x14)" identifier = (call_expression "WriteBlobLong(param_1,0x14)" identifier (argument_list "(param_1,0x14)" ( identifier , number_literal )))) ;) (expression_statement "iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));" (assignment_expression "iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c))" identifier = (call_expression "WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c))" identifier (argument_list "(param_1,*(undefined4 *)(local_1174 + 0x20c))" ( identifier , (pointer_expression "*(undefined4 *)(local_1174 + 0x20c)" * (cast_expression "(undefined4 *)(local_1174 + 0x20c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x20c)" ( (binary_expression "local_1174 + 0x20c" identifier + number_literal) )))) )))) ;) (expression_statement "iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));" (assignment_expression "iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208))" identifier = (call_expression "WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208))" identifier (argument_list "(param_1,*(undefined4 *)(local_1174 + 0x208))" ( identifier , (pointer_expression "*(undefined4 *)(local_1174 + 0x208)" * (cast_expression "(undefined4 *)(local_1174 + 0x208)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x208)" ( (binary_expression "local_1174 + 0x208" identifier + number_literal) )))) )))) ;) (expression_statement "iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));" (assignment_expression "iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c))" identifier = (call_expression "WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c))" identifier (argument_list "(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c))" ( identifier , (binary_expression "*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c)" (pointer_expression "*(int *)(local_1174 + 0x20c)" * (cast_expression "(int *)(local_1174 + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x20c)" ( (binary_expression "local_1174 + 0x20c" identifier + number_literal) )))) + (pointer_expression "*(int *)(local_1174 + 0x1c)" * (cast_expression "(int *)(local_1174 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x1c)" ( (binary_expression "local_1174 + 0x1c" identifier + number_literal) ))))) )))) ;) (expression_statement "iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));" (assignment_expression "iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18))" identifier = (call_expression "WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18))" identifier (argument_list "(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18))" ( identifier , (binary_expression "*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18)" (pointer_expression "*(int *)(local_1174 + 0x208)" * (cast_expression "(int *)(local_1174 + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x208)" ( (binary_expression "local_1174 + 0x208" identifier + number_literal) )))) + (pointer_expression "*(int *)(local_1174 + 0x18)" * (cast_expression "(int *)(local_1174 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x18)" ( (binary_expression "local_1174 + 0x18" identifier + number_literal) ))))) )))) ;) (expression_statement "iVar21 = WriteBlobByte(param_1,local_1103);" (assignment_expression "iVar21 = WriteBlobByte(param_1,local_1103)" identifier = (call_expression "WriteBlobByte(param_1,local_1103)" identifier (argument_list "(param_1,local_1103)" ( identifier , identifier )))) ;) (expression_statement "iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');" (assignment_expression "iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02')" identifier = (call_expression "WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02')" identifier (argument_list "(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02')" ( identifier , (binary_expression "(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02'" (parenthesized_expression "(*(int *)(local_1174 + 0x23c) == 0x34)" ( (binary_expression "*(int *)(local_1174 + 0x23c) == 0x34" (pointer_expression "*(int *)(local_1174 + 0x23c)" * (cast_expression "(int *)(local_1174 + 0x23c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1174 + 0x23c)" ( (binary_expression "local_1174 + 0x23c" identifier + number_literal) )))) == number_literal) )) * (char_literal "'\x02'" ' escape_sequence ')) )))) ;) (expression_statement "iVar10 = WriteBlobMSBShort(param_1,0);" (assignment_expression "iVar10 = WriteBlobMSBShort(param_1,0)" identifier = (call_expression "WriteBlobMSBShort(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;" (assignment_expression "iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10" identifier = (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17" (binary_expression "iVar9 + iVar12 + iVar13" (binary_expression "iVar9 + iVar12" identifier + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier)) ;) }))) (expression_statement "iVar9 = WriteBlobLong(param_1,0);" (assignment_expression "iVar9 = WriteBlobLong(param_1,0)" identifier = (call_expression "WriteBlobLong(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "sVar8 = strlen(pcVar7);" (assignment_expression "sVar8 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (if_statement "if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }" if (parenthesized_expression "(sVar8 < 0x100)" ( (binary_expression "sVar8 < 0x100" identifier < number_literal) )) (compound_statement "{\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }" { (if_statement "if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }" if (parenthesized_expression "(sVar8 == 0)" ( (binary_expression "sVar8 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }" { (expression_statement "iVar13 = WriteBlobByte(param_1,0);" (assignment_expression "iVar13 = WriteBlobByte(param_1,0)" identifier = (call_expression "WriteBlobByte(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "local_1174 = 3;" (assignment_expression "local_1174 = 3" identifier = number_literal) ;) }) (else_clause "else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }" else (compound_statement "{\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }" { (expression_statement "iVar13 = WriteBlobByte(param_1,sVar8);" (assignment_expression "iVar13 = WriteBlobByte(param_1,sVar8)" identifier = (call_expression "WriteBlobByte(param_1,sVar8)" identifier (argument_list "(param_1,sVar8)" ( identifier , identifier )))) ;) (expression_statement "iVar12 = WriteBlob(param_1,sVar8,pcVar7);" (assignment_expression "iVar12 = WriteBlob(param_1,sVar8,pcVar7)" identifier = (call_expression "WriteBlob(param_1,sVar8,pcVar7)" identifier (argument_list "(param_1,sVar8,pcVar7)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar13 = iVar13 + iVar12;" (assignment_expression "iVar13 = iVar13 + iVar12" identifier = (binary_expression "iVar13 + iVar12" identifier + identifier)) ;) (expression_statement "uVar27 = sVar8 + 1 & 3;" (assignment_expression "uVar27 = sVar8 + 1 & 3" identifier = (binary_expression "sVar8 + 1 & 3" (binary_expression "sVar8 + 1" identifier + number_literal) & number_literal)) ;) (if_statement "if (uVar27 == 0) goto LAB_0029d1b9;" if (parenthesized_expression "(uVar27 == 0)" ( (binary_expression "uVar27 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0029d1b9;" goto statement_identifier ;)) (expression_statement "local_1174 = 4 - uVar27;" (assignment_expression "local_1174 = 4 - uVar27" identifier = (binary_expression "4 - uVar27" number_literal - identifier)) ;) }))) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (do_statement "do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);" do (compound_statement "{\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          }" { (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "iVar17 = WriteBlobByte(param_1,0);" (assignment_expression "iVar17 = WriteBlobByte(param_1,0)" identifier = (call_expression "WriteBlobByte(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar13 = iVar13 + iVar17;" (assignment_expression "iVar13 = iVar13 + iVar17" identifier = (binary_expression "iVar13 + iVar17" identifier + identifier)) ;) }) while (parenthesized_expression "(iVar12 != local_1174)" ( (binary_expression "iVar12 != local_1174" identifier != identifier) )) ;) }) (else_clause "else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }" else (compound_statement "{\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }" { (expression_statement "iVar13 = WriteBlobByte(param_1,0xff);" (assignment_expression "iVar13 = WriteBlobByte(param_1,0xff)" identifier = (call_expression "WriteBlobByte(param_1,0xff)" identifier (argument_list "(param_1,0xff)" ( identifier , number_literal )))) ;) (expression_statement "iVar12 = WriteBlob(param_1,0xff,pcVar7);" (assignment_expression "iVar12 = WriteBlob(param_1,0xff,pcVar7)" identifier = (call_expression "WriteBlob(param_1,0xff,pcVar7)" identifier (argument_list "(param_1,0xff,pcVar7)" ( identifier , number_literal , identifier )))) ;) (expression_statement "iVar13 = iVar13 + iVar12;" (assignment_expression "iVar13 = iVar13 + iVar12" identifier = (binary_expression "iVar13 + iVar12" identifier + identifier)) ;) }))) (labeled_statement "LAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;" statement_identifier : (expression_statement "local_1130 = iVar13 + iVar9 + iVar10;" (assignment_expression "local_1130 = iVar13 + iVar9 + iVar10" identifier = (binary_expression "iVar13 + iVar9 + iVar10" (binary_expression "iVar13 + iVar9" identifier + identifier) + identifier)) ;)) (if_statement "if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }" if (parenthesized_expression "(iVar11 != 0)" ( (binary_expression "iVar11 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }" { (expression_statement "uVar16 = GetStringInfoDatum(iVar11);" (assignment_expression "uVar16 = GetStringInfoDatum(iVar11)" identifier = (call_expression "GetStringInfoDatum(iVar11)" identifier (argument_list "(iVar11)" ( identifier )))) ;) (expression_statement "uVar23 = GetStringInfoLength(iVar11);" (assignment_expression "uVar23 = GetStringInfoLength(iVar11)" identifier = (call_expression "GetStringInfoLength(iVar11)" identifier (argument_list "(iVar11)" ( identifier )))) ;) (expression_statement "iVar9 = WriteBlob(param_1,uVar23,uVar16);" (assignment_expression "iVar9 = WriteBlob(param_1,uVar23,uVar16)" identifier = (call_expression "WriteBlob(param_1,uVar23,uVar16)" identifier (argument_list "(param_1,uVar23,uVar16)" ( identifier , identifier , identifier )))) ;) (expression_statement "local_1130 = local_1130 + iVar9;" (assignment_expression "local_1130 = local_1130 + iVar9" identifier = (binary_expression "local_1130 + iVar9" identifier + identifier)) ;) })) (expression_statement "local_1178 = (int *)GetNextImageInList(local_1178);" (assignment_expression "local_1178 = (int *)GetNextImageInList(local_1178)" identifier = (cast_expression "(int *)GetNextImageInList(local_1178)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageInList(local_1178)" identifier (argument_list "(local_1178)" ( identifier ))))) ;) (expression_statement "piVar5 = piVar4;" (assignment_expression "piVar5 = piVar4" identifier = identifier) ;) (expression_statement "local_1150 = puVar6;" (assignment_expression "local_1150 = puVar6" identifier = identifier) ;) }) while (parenthesized_expression "(local_1178 != (int *)0x0)" ( (binary_expression "local_1178 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (do_statement "do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);" do (compound_statement "{\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      }" { (expression_statement "local_1178 = (int *)0x0;" (assignment_expression "local_1178 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar27 = *local_1150;" (assignment_expression "uVar27 = *local_1150" identifier = (pointer_expression "*local_1150" * identifier)) ;) (expression_statement "uVar28 = local_1150[1];" (assignment_expression "uVar28 = local_1150[1]" identifier = (subscript_expression "local_1150[1]" identifier [ number_literal ])) ;) (expression_statement "iVar9 = *param_2;" (assignment_expression "iVar9 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }" if (parenthesized_expression "(*param_2 == 0)" ( (binary_expression "*param_2 == 0" (pointer_expression "*param_2" * identifier) == number_literal) )) (compound_statement "{\n          iVar9 = piVar5[2];\n        }" { (expression_statement "iVar9 = piVar5[2];" (assignment_expression "iVar9 = piVar5[2]" identifier = (subscript_expression "piVar5[2]" identifier [ number_literal ])) ;) })) (if_statement "if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }" if (parenthesized_expression "((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0))" ( (binary_expression "(iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)" (parenthesized_expression "(iVar9 == 0x13)" ( (binary_expression "iVar9 == 0x13" identifier == number_literal) )) && (parenthesized_expression "(local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)" ( (comma_expression "local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0" (assignment_expression "local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01')" identifier = (cast_expression "(int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01')" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01')" identifier (argument_list "(piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01')" ( (binary_expression "piVar5[6] * 9 + 1" (binary_expression "piVar5[6] * 9" (subscript_expression "piVar5[6]" identifier [ number_literal ]) * number_literal) + number_literal) , (binary_expression "(8U < (uint)piVar5[8]) + '\x01'" (parenthesized_expression "(8U < (uint)piVar5[8])" ( (binary_expression "8U < (uint)piVar5[8]" number_literal < (cast_expression "(uint)piVar5[8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar5[8]" identifier [ number_literal ]))) )) + (char_literal "'\x01'" ' escape_sequence ')) ))))) , (comma_expression "piVar24 = piVar5, local_1178 == (int *)0x0" (assignment_expression "piVar24 = piVar5" identifier = identifier) , (binary_expression "local_1178 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)))) ))) )) (compound_statement "{\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }" { (labeled_statement "LAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);" statement_identifier : (expression_statement "ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);" (call_expression "ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6)" identifier (argument_list "(param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6)" ( identifier , (string_literal ""coders/psd.c"" " string_content ") , (string_literal ""AcquireCompactPixels"" " string_content ") , number_literal , number_literal , (string_literal ""MemoryAllocationFailed"" " string_content ") , (string_literal ""`%s\'"" " string_content escape_sequence ") , (binary_expression "piVar24 + 0xc6" identifier + number_literal) ))) ;)) (expression_statement "local_1178 = (int *)0x0;" (assignment_expression "local_1178 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_0029dc36;" goto statement_identifier ;) })) (expression_statement "uVar26 = uVar27 + 2;" (assignment_expression "uVar26 = uVar27 + 2" identifier = (binary_expression "uVar27 + 2" identifier + number_literal)) ;) (expression_statement "iVar10 = uVar28 + (0xfffffffd < uVar27);" (assignment_expression "iVar10 = uVar28 + (0xfffffffd < uVar27)" identifier = (binary_expression "uVar28 + (0xfffffffd < uVar27)" identifier + (parenthesized_expression "(0xfffffffd < uVar27)" ( (binary_expression "0xfffffffd < uVar27" number_literal < identifier) )))) ;) (if_statement "if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }" if (parenthesized_expression "((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0))" ( (binary_expression "(*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)" (parenthesized_expression "(*piVar5 == 2)" ( (binary_expression "*piVar5 == 2" (pointer_expression "*piVar5" * identifier) == number_literal) )) && (parenthesized_expression "(iVar11 = IsImageGray(piVar5), iVar11 == 0)" ( (comma_expression "iVar11 = IsImageGray(piVar5), iVar11 == 0" (assignment_expression "iVar11 = IsImageGray(piVar5)" identifier = (call_expression "IsImageGray(piVar5)" identifier (argument_list "(piVar5)" ( identifier )))) , (binary_expression "iVar11 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }" { (expression_statement "iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5)" identifier = (call_expression "FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5)" identifier (argument_list "(piVar5,0x12,local_1178,0,0,1,iVar9,param_5)" ( identifier , number_literal , identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,uVar26,iVar10,0);" (call_expression "SeekBlob(param_1,uVar26,iVar10,0)" identifier (argument_list "(param_1,uVar26,iVar10,0)" ( identifier , identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }" { (expression_statement "iVar12 = WriteBlobLong(param_1,iVar11);" (assignment_expression "iVar12 = WriteBlobLong(param_1,iVar11)" identifier = (call_expression "WriteBlobLong(param_1,iVar11)" identifier (argument_list "(param_1,iVar11)" ( identifier , identifier )))) ;) }) (else_clause "else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }" else (compound_statement "{\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }" { (expression_statement "iVar12 = WriteBlobLongLong(param_1,iVar11,0);" (assignment_expression "iVar12 = WriteBlobLongLong(param_1,iVar11,0)" identifier = (call_expression "WriteBlobLongLong(param_1,iVar11,0)" identifier (argument_list "(param_1,iVar11,0)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "uVar27 = iVar12 + 2;" (assignment_expression "uVar27 = iVar12 + 2" identifier = (binary_expression "iVar12 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "local_115c = uVar27 + uVar26;" (assignment_expression "local_115c = uVar27 + uVar26" identifier = (binary_expression "uVar27 + uVar26" identifier + identifier)) ;) (expression_statement "local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);" (assignment_expression "local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26)" identifier = (binary_expression "((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26)" (binary_expression "((int)uVar27 >> 0x1f) + iVar10" (parenthesized_expression "((int)uVar27 >> 0x1f)" ( (binary_expression "(int)uVar27 >> 0x1f" (cast_expression "(int)uVar27" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar27,uVar26)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar27,uVar26)" identifier (argument_list "(uVar27,uVar26)" ( identifier , identifier )))))) ;) }) (else_clause "else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }" else (compound_statement "{\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }" { (expression_statement "iVar11 = IsImageGray(piVar5);" (assignment_expression "iVar11 = IsImageGray(piVar5)" identifier = (call_expression "IsImageGray(piVar5)" identifier (argument_list "(piVar5)" ( identifier )))) ;) (if_statement "if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }" { (if_statement "if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }" if (parenthesized_expression "(piVar5[1] == 2)" ( (binary_expression "piVar5[1] == 2" (subscript_expression "piVar5[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }" { (expression_statement "uVar16 = SetImageChannelMask(piVar5,0x7ffffef);" (assignment_expression "uVar16 = SetImageChannelMask(piVar5,0x7ffffef)" identifier = (call_expression "SetImageChannelMask(piVar5,0x7ffffef)" identifier (argument_list "(piVar5,0x7ffffef)" ( identifier , number_literal )))) ;) (expression_statement "NegateImage(piVar5,0,param_5);" (call_expression "NegateImage(piVar5,0,param_5)" identifier (argument_list "(piVar5,0,param_5)" ( identifier , number_literal , identifier ))) ;) (expression_statement "SetImageChannelMask(piVar5,uVar16);" (call_expression "SetImageChannelMask(piVar5,uVar16)" identifier (argument_list "(piVar5,uVar16)" ( identifier , identifier ))) ;) })) (expression_statement "iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5)" identifier = (call_expression "FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5)" identifier (argument_list "(piVar5,0x15,local_1178,0,0,1,iVar9,param_5)" ( identifier , number_literal , identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,uVar26,iVar10,0);" (call_expression "SeekBlob(param_1,uVar26,iVar10,0)" identifier (argument_list "(param_1,uVar26,iVar10,0)" ( identifier , identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }" { (expression_statement "iVar11 = WriteBlobLong(param_1,iVar12);" (assignment_expression "iVar11 = WriteBlobLong(param_1,iVar12)" identifier = (call_expression "WriteBlobLong(param_1,iVar12)" identifier (argument_list "(param_1,iVar12)" ( identifier , identifier )))) ;) }) (else_clause "else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }" else (compound_statement "{\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }" { (expression_statement "iVar11 = WriteBlobLongLong(param_1,iVar12,0);" (assignment_expression "iVar11 = WriteBlobLongLong(param_1,iVar12,0)" identifier = (call_expression "WriteBlobLongLong(param_1,iVar12,0)" identifier (argument_list "(param_1,iVar12,0)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "uVar28 = iVar11 + 2;" (assignment_expression "uVar28 = iVar11 + 2" identifier = (binary_expression "iVar11 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "uVar27 = uVar28 + uVar26;" (assignment_expression "uVar27 = uVar28 + uVar26" identifier = (binary_expression "uVar28 + uVar26" identifier + identifier)) ;) (expression_statement "iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);" (assignment_expression "iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26)" identifier = (binary_expression "((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26)" (binary_expression "((int)uVar28 >> 0x1f) + iVar10" (parenthesized_expression "((int)uVar28 >> 0x1f)" ( (binary_expression "(int)uVar28 >> 0x1f" (cast_expression "(int)uVar28" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar28,uVar26)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar28,uVar26)" identifier (argument_list "(uVar28,uVar26)" ( identifier , identifier )))))) ;) (expression_statement "iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5)" identifier = (call_expression "FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5)" identifier (argument_list "(piVar5,0x10,local_1178,0,0,1,iVar9,param_5)" ( identifier , number_literal , identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,uVar27,iVar11,0);" (call_expression "SeekBlob(param_1,uVar27,iVar11,0)" identifier (argument_list "(param_1,uVar27,iVar11,0)" ( identifier , identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }" { (expression_statement "iVar13 = WriteBlobLong(param_1,iVar10);" (assignment_expression "iVar13 = WriteBlobLong(param_1,iVar10)" identifier = (call_expression "WriteBlobLong(param_1,iVar10)" identifier (argument_list "(param_1,iVar10)" ( identifier , identifier )))) ;) }) (else_clause "else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }" else (compound_statement "{\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }" { (expression_statement "iVar13 = WriteBlobLongLong(param_1,iVar10,0);" (assignment_expression "iVar13 = WriteBlobLongLong(param_1,iVar10,0)" identifier = (call_expression "WriteBlobLongLong(param_1,iVar10,0)" identifier (argument_list "(param_1,iVar10,0)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "uVar26 = iVar13 + 2;" (assignment_expression "uVar26 = iVar13 + 2" identifier = (binary_expression "iVar13 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "uVar28 = uVar26 + uVar27;" (assignment_expression "uVar28 = uVar26 + uVar27" identifier = (binary_expression "uVar26 + uVar27" identifier + identifier)) ;) (expression_statement "iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);" (assignment_expression "iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27)" identifier = (binary_expression "((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27)" (binary_expression "((int)uVar26 >> 0x1f) + iVar11" (parenthesized_expression "((int)uVar26 >> 0x1f)" ( (binary_expression "(int)uVar26 >> 0x1f" (cast_expression "(int)uVar26" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar26,uVar27)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar26,uVar27)" identifier (argument_list "(uVar26,uVar27)" ( identifier , identifier )))))) ;) (expression_statement "iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5)" identifier = (call_expression "FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5)" identifier (argument_list "(piVar5,6,local_1178,0,0,1,iVar9,param_5)" ( identifier , number_literal , identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,uVar28,iVar13,0);" (call_expression "SeekBlob(param_1,uVar28,iVar13,0)" identifier (argument_list "(param_1,uVar28,iVar13,0)" ( identifier , identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }" { (expression_statement "iVar17 = WriteBlobLong(param_1,iVar11);" (assignment_expression "iVar17 = WriteBlobLong(param_1,iVar11)" identifier = (call_expression "WriteBlobLong(param_1,iVar11)" identifier (argument_list "(param_1,iVar11)" ( identifier , identifier )))) ;) }) (else_clause "else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }" else (compound_statement "{\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }" { (expression_statement "iVar17 = WriteBlobLongLong(param_1,iVar11,0);" (assignment_expression "iVar17 = WriteBlobLongLong(param_1,iVar11,0)" identifier = (call_expression "WriteBlobLongLong(param_1,iVar11,0)" identifier (argument_list "(param_1,iVar11,0)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "uVar27 = iVar17 + 2;" (assignment_expression "uVar27 = iVar17 + 2" identifier = (binary_expression "iVar17 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "local_115c = uVar27 + uVar28;" (assignment_expression "local_115c = uVar27 + uVar28" identifier = (binary_expression "uVar27 + uVar28" identifier + identifier)) ;) (expression_statement "local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);" (assignment_expression "local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28)" identifier = (binary_expression "((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28)" (binary_expression "((int)uVar27 >> 0x1f) + iVar13" (parenthesized_expression "((int)uVar27 >> 0x1f)" ( (binary_expression "(int)uVar27 >> 0x1f" (cast_expression "(int)uVar27" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar27,uVar28)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar27,uVar28)" identifier (argument_list "(uVar27,uVar28)" ( identifier , identifier )))))) ;) (expression_statement "iVar11 = iVar12 + iVar10 + iVar11;" (assignment_expression "iVar11 = iVar12 + iVar10 + iVar11" identifier = (binary_expression "iVar12 + iVar10 + iVar11" (binary_expression "iVar12 + iVar10" identifier + identifier) + identifier)) ;) (if_statement "if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }" if (parenthesized_expression "(piVar5[1] == 2)" ( (binary_expression "piVar5[1] == 2" (subscript_expression "piVar5[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }" { (expression_statement "iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5)" identifier = (call_expression "FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5)" identifier (argument_list "(piVar5,5,local_1178,0,0,1,iVar9,param_5)" ( identifier , number_literal , identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,local_115c,local_1158,0);" (call_expression "SeekBlob(param_1,local_115c,local_1158,0)" identifier (argument_list "(param_1,local_115c,local_1158,0)" ( identifier , identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }" { (expression_statement "iVar12 = WriteBlobLong(param_1,iVar10);" (assignment_expression "iVar12 = WriteBlobLong(param_1,iVar10)" identifier = (call_expression "WriteBlobLong(param_1,iVar10)" identifier (argument_list "(param_1,iVar10)" ( identifier , identifier )))) ;) }) (else_clause "else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }" else (compound_statement "{\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }" { (expression_statement "iVar12 = WriteBlobLongLong(param_1,iVar10,0);" (assignment_expression "iVar12 = WriteBlobLongLong(param_1,iVar10,0)" identifier = (call_expression "WriteBlobLongLong(param_1,iVar10,0)" identifier (argument_list "(param_1,iVar10,0)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "uVar27 = iVar12 + 2;" (assignment_expression "uVar27 = iVar12 + 2" identifier = (binary_expression "iVar12 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "bVar31 = CARRY4(local_115c,uVar27);" (assignment_expression "bVar31 = CARRY4(local_115c,uVar27)" identifier = (call_expression "CARRY4(local_115c,uVar27)" identifier (argument_list "(local_115c,uVar27)" ( identifier , identifier )))) ;) (expression_statement "local_115c = local_115c + uVar27;" (assignment_expression "local_115c = local_115c + uVar27" identifier = (binary_expression "local_115c + uVar27" identifier + identifier)) ;) (expression_statement "local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;" (assignment_expression "local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31" identifier = (binary_expression "local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31" (binary_expression "local_1158 + ((int)uVar27 >> 0x1f)" identifier + (parenthesized_expression "((int)uVar27 >> 0x1f)" ( (binary_expression "(int)uVar27 >> 0x1f" (cast_expression "(int)uVar27" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (cast_expression "(uint)bVar31" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "iVar11 = iVar11 + iVar10;" (assignment_expression "iVar11 = iVar11 + iVar10" identifier = (binary_expression "iVar11 + iVar10" identifier + identifier)) ;) })) }) (else_clause "else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }" else (compound_statement "{\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }" { (expression_statement "iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5)" identifier = (call_expression "FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5)" identifier (argument_list "(piVar5,0xf,local_1178,0,0,1,iVar9,param_5)" ( identifier , number_literal , identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,uVar26,iVar10,0);" (call_expression "SeekBlob(param_1,uVar26,iVar10,0)" identifier (argument_list "(param_1,uVar26,iVar10,0)" ( identifier , identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }" { (expression_statement "iVar12 = WriteBlobLong(param_1,iVar11);" (assignment_expression "iVar12 = WriteBlobLong(param_1,iVar11)" identifier = (call_expression "WriteBlobLong(param_1,iVar11)" identifier (argument_list "(param_1,iVar11)" ( identifier , identifier )))) ;) }) (else_clause "else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }" else (compound_statement "{\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }" { (expression_statement "iVar12 = WriteBlobLongLong(param_1,iVar11,0);" (assignment_expression "iVar12 = WriteBlobLongLong(param_1,iVar11,0)" identifier = (call_expression "WriteBlobLongLong(param_1,iVar11,0)" identifier (argument_list "(param_1,iVar11,0)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "uVar27 = iVar12 + 2;" (assignment_expression "uVar27 = iVar12 + 2" identifier = (binary_expression "iVar12 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "local_115c = uVar27 + uVar26;" (assignment_expression "local_115c = uVar27 + uVar26" identifier = (binary_expression "uVar27 + uVar26" identifier + identifier)) ;) (expression_statement "local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);" (assignment_expression "local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26)" identifier = (binary_expression "((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26)" (binary_expression "((int)uVar27 >> 0x1f) + iVar10" (parenthesized_expression "((int)uVar27 >> 0x1f)" ( (binary_expression "(int)uVar27 >> 0x1f" (cast_expression "(int)uVar27" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar27,uVar26)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar27,uVar26)" identifier (argument_list "(uVar27,uVar26)" ( identifier , identifier )))))) ;) }))) (if_statement "if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }" if (parenthesized_expression "(piVar5[0xa5] != 0)" ( (binary_expression "piVar5[0xa5] != 0" (subscript_expression "piVar5[0xa5]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }" { (expression_statement "iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5)" identifier = (call_expression "FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5)" identifier (argument_list "(piVar5,1,local_1178,0,0,1,iVar9,param_5)" ( identifier , number_literal , identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,local_115c,local_1158,0);" (call_expression "SeekBlob(param_1,local_115c,local_1158,0)" identifier (argument_list "(param_1,local_115c,local_1158,0)" ( identifier , identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }" { (expression_statement "iVar12 = WriteBlobLong(param_1,iVar10);" (assignment_expression "iVar12 = WriteBlobLong(param_1,iVar10)" identifier = (call_expression "WriteBlobLong(param_1,iVar10)" identifier (argument_list "(param_1,iVar10)" ( identifier , identifier )))) ;) }) (else_clause "else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }" else (compound_statement "{\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }" { (expression_statement "iVar12 = WriteBlobLongLong(param_1,iVar10,0);" (assignment_expression "iVar12 = WriteBlobLongLong(param_1,iVar10,0)" identifier = (call_expression "WriteBlobLongLong(param_1,iVar10,0)" identifier (argument_list "(param_1,iVar10,0)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "uVar27 = iVar12 + 2;" (assignment_expression "uVar27 = iVar12 + 2" identifier = (binary_expression "iVar12 + 2" identifier + number_literal)) ;) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "bVar31 = CARRY4(local_115c,uVar27);" (assignment_expression "bVar31 = CARRY4(local_115c,uVar27)" identifier = (call_expression "CARRY4(local_115c,uVar27)" identifier (argument_list "(local_115c,uVar27)" ( identifier , identifier )))) ;) (expression_statement "local_115c = local_115c + uVar27;" (assignment_expression "local_115c = local_115c + uVar27" identifier = (binary_expression "local_115c + uVar27" identifier + identifier)) ;) (expression_statement "local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;" (assignment_expression "local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31" identifier = (binary_expression "local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31" (binary_expression "local_1158 + ((int)uVar27 >> 0x1f)" identifier + (parenthesized_expression "((int)uVar27 >> 0x1f)" ( (binary_expression "(int)uVar27 >> 0x1f" (cast_expression "(int)uVar27" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (cast_expression "(uint)bVar31" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "iVar11 = iVar11 + iVar10;" (assignment_expression "iVar11 = iVar11 + iVar10" identifier = (binary_expression "iVar11 + iVar10" identifier + identifier)) ;) })) }))) (expression_statement "local_1178 = (int *)RelinquishMagickMemory(local_1178);" (assignment_expression "local_1178 = (int *)RelinquishMagickMemory(local_1178)" identifier = (cast_expression "(int *)RelinquishMagickMemory(local_1178)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "RelinquishMagickMemory(local_1178)" identifier (argument_list "(local_1178)" ( identifier ))))) ;) (if_statement "if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }" if (parenthesized_expression "(piVar5[1] == 2)" ( (binary_expression "piVar5[1] == 2" (subscript_expression "piVar5[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }" { (expression_statement "uVar16 = SetImageChannelMask(piVar5,0x7ffffef);" (assignment_expression "uVar16 = SetImageChannelMask(piVar5,0x7ffffef)" identifier = (call_expression "SetImageChannelMask(piVar5,0x7ffffef)" identifier (argument_list "(piVar5,0x7ffffef)" ( identifier , number_literal )))) ;) (expression_statement "NegateImage(piVar5,0,param_5);" (call_expression "NegateImage(piVar5,0,param_5)" identifier (argument_list "(piVar5,0,param_5)" ( identifier , number_literal , identifier ))) ;) (expression_statement "SetImageChannelMask(piVar5,uVar16);" (call_expression "SetImageChannelMask(piVar5,uVar16)" identifier (argument_list "(piVar5,uVar16)" ( identifier , identifier ))) ;) })) (expression_statement "iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");" (assignment_expression "iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask")" identifier = (call_expression "GetImageArtifact(piVar5,"psd:opacity-mask")" identifier (argument_list "(piVar5,"psd:opacity-mask")" ( identifier , (string_literal ""psd:opacity-mask"" " string_content ") )))) ;) (if_statement "if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }" if (parenthesized_expression "((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0))" ( (binary_expression "(iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)" (parenthesized_expression "(iVar10 != 0)" ( (binary_expression "iVar10 != 0" identifier != number_literal) )) && (parenthesized_expression "(piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)" ( (comma_expression "piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0" (assignment_expression "piVar24 = (int *)GetImageRegistry(1,iVar10,param_5)" identifier = (cast_expression "(int *)GetImageRegistry(1,iVar10,param_5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageRegistry(1,iVar10,param_5)" identifier (argument_list "(1,iVar10,param_5)" ( number_literal , identifier , identifier ))))) , (binary_expression "piVar24 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }" { (if_statement "if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;" if (parenthesized_expression "((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0))" ( (binary_expression "(iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)" (parenthesized_expression "(iVar9 == 0x13)" ( (binary_expression "iVar9 == 0x13" identifier == number_literal) )) && (parenthesized_expression "(local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)" ( (comma_expression "local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0" (assignment_expression "local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01')" identifier = (cast_expression "(int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01')" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01')" identifier (argument_list "(piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01')" ( (binary_expression "piVar24[6] * 9 + 1" (binary_expression "piVar24[6] * 9" (subscript_expression "piVar24[6]" identifier [ number_literal ]) * number_literal) + number_literal) , (binary_expression "(8U < (uint)piVar24[8]) + '\x01'" (parenthesized_expression "(8U < (uint)piVar24[8])" ( (binary_expression "8U < (uint)piVar24[8]" number_literal < (cast_expression "(uint)piVar24[8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar24[8]" identifier [ number_literal ]))) )) + (char_literal "'\x01'" ' escape_sequence ')) ))))) , (binary_expression "local_1178 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_0029dbfc;" goto statement_identifier ;)) (expression_statement "iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5)" identifier = (call_expression "FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5)" identifier (argument_list "(piVar24,0x15,local_1178,0,0,1,iVar9,param_5)" ( identifier , number_literal , identifier , number_literal , number_literal , number_literal , identifier , identifier )))) ;) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,local_115c,local_1158,0);" (call_expression "SeekBlob(param_1,local_115c,local_1158,0)" identifier (argument_list "(param_1,local_115c,local_1158,0)" ( identifier , identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n            WriteBlobLong(param_1,iVar9);\n          }" { (expression_statement "WriteBlobLong(param_1,iVar9);" (call_expression "WriteBlobLong(param_1,iVar9)" identifier (argument_list "(param_1,iVar9)" ( identifier , identifier ))) ;) }) (else_clause "else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }" else (compound_statement "{\n            WriteBlobLongLong(param_1,iVar9,0);\n          }" { (expression_statement "WriteBlobLongLong(param_1,iVar9,0);" (call_expression "WriteBlobLongLong(param_1,iVar9,0)" identifier (argument_list "(param_1,iVar9,0)" ( identifier , identifier , number_literal ))) ;) }))) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar11 = iVar11 + iVar9;" (assignment_expression "iVar11 = iVar11 + iVar9" identifier = (binary_expression "iVar11 + iVar9" identifier + identifier)) ;) (expression_statement "RelinquishMagickMemory(local_1178);" (call_expression "RelinquishMagickMemory(local_1178)" identifier (argument_list "(local_1178)" ( identifier ))) ;) })) (if_statement "if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }" { (expression_statement "local_1178 = (int *)0x0;" (assignment_expression "local_1178 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_0029dc36;" goto statement_identifier ;) })) (expression_statement "local_1130 = local_1130 + iVar11;" (assignment_expression "local_1130 = local_1130 + iVar11" identifier = (binary_expression "local_1130 + iVar11" identifier + identifier)) ;) (expression_statement "piVar5 = (int *)GetNextImageInList(piVar5);" (assignment_expression "piVar5 = (int *)GetNextImageInList(piVar5)" identifier = (cast_expression "(int *)GetNextImageInList(piVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageInList(piVar5)" identifier (argument_list "(piVar5)" ( identifier ))))) ;) (expression_statement "local_1150 = local_1150 + 2;" (assignment_expression "local_1150 = local_1150 + 2" identifier = (binary_expression "local_1150 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "local_1178 = (int *)0x1;" (assignment_expression "local_1178 = (int *)0x1" identifier = (cast_expression "(int *)0x1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }" statement_identifier : (if_statement "if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }" if (parenthesized_expression "(param_4 != (uint *)0x0)" ( (binary_expression "param_4 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_4 = local_1130;\n    }" { (expression_statement "*param_4 = local_1130;" (assignment_expression "*param_4 = local_1130" (pointer_expression "*param_4" * identifier) = identifier) ;) }))) (expression_statement "uVar27 = local_1130 + 1;" (assignment_expression "uVar27 = local_1130 + 1" identifier = (binary_expression "local_1130 + 1" identifier + number_literal)) ;) (if_statement "if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }" if (parenthesized_expression "(local_1130 >> 1 == local_1130 + 1 >> 1)" ( (binary_expression "local_1130 >> 1 == local_1130 + 1 >> 1" (binary_expression "local_1130 >> 1" identifier >> number_literal) == (binary_expression "local_1130 + 1 >> 1" (binary_expression "local_1130 + 1" identifier + number_literal) >> number_literal)) )) (compound_statement "{\n      uVar27 = local_1130;\n    }" { (expression_statement "uVar27 = local_1130;" (assignment_expression "uVar27 = local_1130" identifier = identifier) ;) })) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,uVar33,0);" (call_expression "SeekBlob(param_1,uVar33,0)" identifier (argument_list "(param_1,uVar33,0)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }" if (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" ( (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" * (cast_expression "(short *)(param_3 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1e)" ( (binary_expression "param_3 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      WriteBlobLong(param_1,uVar27);\n    }" { (expression_statement "WriteBlobLong(param_1,uVar27);" (call_expression "WriteBlobLong(param_1,uVar27)" identifier (argument_list "(param_1,uVar27)" ( identifier , identifier ))) ;) }) (else_clause "else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }" else (compound_statement "{\n      WriteBlobLongLong(param_1,uVar27,0);\n    }" { (expression_statement "WriteBlobLongLong(param_1,uVar27,0);" (call_expression "WriteBlobLongLong(param_1,uVar27,0)" identifier (argument_list "(param_1,uVar27,0)" ( identifier , identifier , number_literal ))) ;) }))) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" identifier (argument_list "(param_1,uVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "RelinquishMagickMemory(puVar6);" (call_expression "RelinquishMagickMemory(puVar6)" identifier (argument_list "(puVar6)" ( identifier ))) ;) (for_statement "for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }" for ( ; (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar4 = (int *)GetNextImageInList(piVar4)" identifier = (cast_expression "(int *)GetNextImageInList(piVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageInList(piVar4)" identifier (argument_list "(piVar4)" ( identifier ))))) ) (compound_statement "{\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }" { (while_statement "while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }" while (parenthesized_expression "(iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0)" ( (comma_expression "iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0" (assignment_expression "iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask")" identifier = (call_expression "GetImageArtifact(piVar4,"psd:opacity-mask")" identifier (argument_list "(piVar4,"psd:opacity-mask")" ( identifier , (string_literal ""psd:opacity-mask"" " string_content ") )))) , (binary_expression "iVar9 != 0" identifier != number_literal)) )) (compound_statement "{\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }" { (expression_statement "DeleteImageRegistry(iVar9);" (call_expression "DeleteImageRegistry(iVar9)" identifier (argument_list "(iVar9)" ( identifier ))) ;) (expression_statement "piVar4 = (int *)GetNextImageInList(piVar4);" (assignment_expression "piVar4 = (int *)GetNextImageInList(piVar4)" identifier = (cast_expression "(int *)GetNextImageInList(piVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageInList(piVar4)" identifier (argument_list "(piVar4)" ( identifier ))))) ;) (if_statement "if (piVar4 == (int *)0x0) goto LAB_0029dd18;" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0029dd18;" goto statement_identifier ;)) })) })) }))) (labeled_statement "LAB_0029dd18:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_002decd0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_002decd0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_002decd0();\n  }" { (expression_statement "FUN_002decd0();" (call_expression "FUN_002decd0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return local_1178;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier short) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier short) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (for_statement for ( (assignment_expression IDENT = IDENT) ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , LIT , (string_literal " string_content ") , (string_literal " string_content escape_sequence ") , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression IDENT == LIT) )))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (subscript_expression IDENT [ LIT ]) + (subscript_expression IDENT [ LIT ])) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (subscript_expression IDENT [ LIT ]) + (subscript_expression IDENT [ LIT ])) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) + LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression IDENT + IDENT) + IDENT) + IDENT) + IDENT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT )))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + IDENT)) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT )))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (switch_statement switch (parenthesized_expression ( (subscript_expression IDENT [ LIT ]) )) (compound_statement { (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement default : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT / (cast_expression ( (type_descriptor TYPE) ) IDENT)) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT / (cast_expression ( (type_descriptor TYPE) ) IDENT)) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))))) ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (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)) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression (binary_expression IDENT == LIT) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) )))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression LIT < IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT >> LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT < IDENT)) ;) })) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) })) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) == LIT) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) == LIT) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) ))) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) == LIT) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) }) (else_clause else (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 = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT , LIT ))) ;) })) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) * (char_literal ' escape_sequence ')) + (char_literal ' escape_sequence ')) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression IDENT + IDENT) + IDENT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (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 , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (goto_statement goto statement_identifier ;)) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) ))) , IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement ;)) }) while (parenthesized_expression ( (binary_expression LIT < IDENT) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }))) })) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (string_literal " string_content ") , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_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 , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * IDENT) ))) , IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) * (char_literal ' escape_sequence ')) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression IDENT + IDENT) + IDENT) + IDENT) + IDENT) + IDENT) + IDENT) + IDENT) + IDENT) + IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + IDENT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) * LIT) + LIT) , (binary_expression (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) + (char_literal ' escape_sequence ')) ))))) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)))) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , LIT , (string_literal " string_content ") , (string_literal " string_content escape_sequence ") , (binary_expression IDENT + LIT) ))) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT < IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , LIT , LIT , LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )) + IDENT) + (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT )))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , LIT , LIT , LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )) + IDENT) + (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT )))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , LIT , LIT , LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )) + IDENT) + (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT )))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , LIT , LIT , LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )) + IDENT) + (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , LIT , LIT , LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , LIT , LIT , LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )) + IDENT) + (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT )))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , LIT , LIT , LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , IDENT , IDENT ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) * LIT) + LIT) , (binary_expression (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) + (char_literal ' escape_sequence ')) ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , LIT , LIT , LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) == (binary_expression (binary_expression IDENT + LIT) >> LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (for_statement for ( ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ) (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) })) })) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3\nFUN_0029c7a0(int *param_1,int *param_2,int param_3,uint *param_4,undefined4 param_5)\n\n{\n  double dVar1;\n  undefined1 uVar2;\n  short sVar3;\n  int *piVar4;\n  int *piVar5;\n  uint *puVar6;\n  char *pcVar7;\n  size_t sVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  undefined1 *puVar14;\n  long lVar15;\n  undefined4 uVar16;\n  void *__dest;\n  int iVar17;\n  int iVar18;\n  int iVar19;\n  int iVar20;\n  int iVar21;\n  int iVar22;\n  undefined4 uVar23;\n  int *piVar24;\n  short sVar25;\n  uint uVar26;\n  uint uVar27;\n  uint uVar28;\n  undefined4 *puVar29;\n  undefined4 *puVar30;\n  int in_GS_OFFSET;\n  bool bVar31;\n  byte bVar32;\n  undefined8 uVar33;\n  undefined8 uVar34;\n  int *local_1178;\n  int local_1174;\n  int local_116c;\n  uint local_115c;\n  int local_1158;\n  uint *local_1150;\n  int local_114c;\n  uint local_1130;\n  byte local_1103;\n  double local_10f4;\n  int *local_10ec;\n  undefined4 local_10e8;\n  undefined4 local_10e4;\n  undefined4 local_10e0;\n  undefined4 local_10d9 [45];\n  undefined1 local_1025;\n  undefined1 local_1024;\n  undefined1 local_1023;\n  undefined1 local_1022;\n  undefined1 local_1021;\n  char local_1020 [4096];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar32 = 0;\n  uStack_14 = 0x29c7ad;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar4 = (int *)GetNextImageInList(param_1);\n  if (piVar4 == (int *)0x0) {\n    piVar4 = param_1;\n  }\n  uVar33 = TellBlob(param_1);\n  if (*(short *)(param_3 + 0x1e) == 1) {\n    WriteBlobLong(param_1,0);\n  }\n  else {\n    WriteBlobLongLong(param_1,0,0);\n  }\n  uVar27 = 0;\n  for (piVar5 = piVar4; piVar5 != (int *)0x0; piVar5 = (int *)GetNextImageInList(piVar5)) {\n    uVar27 = uVar27 + 1;\n  }\n  uVar28 = uVar27;\n  if (param_1[0xa5] != 0) {\n    uVar28 = -uVar27;\n  }\n  local_1130 = WriteBlobShort(param_1,uVar28 & 0xffff);\n  puVar6 = (uint *)AcquireQuantumMemory(uVar27,8);\n  if (puVar6 == (uint *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = (int *)param_2[3];\n    piVar5 = param_1;\n    while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }\n    CloseBlob(piVar5);\n    local_1178 = (int *)0x0;\n  }\n  else {\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }\nLAB_0029dd18:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_002decd0();\n  }\n  return local_1178;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0029c7a0(int *param_1,int *param_2,int param_3,uint *param_4,undefined4 param_5)" (identifier "FUN_0029c7a0") (parameter_list "(int *param_1,int *param_2,int param_3,uint *param_4,undefined4 param_5)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "uint *param_4" (type_identifier "uint") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  double dVar1;\n  undefined1 uVar2;\n  short sVar3;\n  int *piVar4;\n  int *piVar5;\n  uint *puVar6;\n  char *pcVar7;\n  size_t sVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  undefined1 *puVar14;\n  long lVar15;\n  undefined4 uVar16;\n  void *__dest;\n  int iVar17;\n  int iVar18;\n  int iVar19;\n  int iVar20;\n  int iVar21;\n  int iVar22;\n  undefined4 uVar23;\n  int *piVar24;\n  short sVar25;\n  uint uVar26;\n  uint uVar27;\n  uint uVar28;\n  undefined4 *puVar29;\n  undefined4 *puVar30;\n  int in_GS_OFFSET;\n  bool bVar31;\n  byte bVar32;\n  undefined8 uVar33;\n  undefined8 uVar34;\n  int *local_1178;\n  int local_1174;\n  int local_116c;\n  uint local_115c;\n  int local_1158;\n  uint *local_1150;\n  int local_114c;\n  uint local_1130;\n  byte local_1103;\n  double local_10f4;\n  int *local_10ec;\n  undefined4 local_10e8;\n  undefined4 local_10e4;\n  undefined4 local_10e0;\n  undefined4 local_10d9 [45];\n  undefined1 local_1025;\n  undefined1 local_1024;\n  undefined1 local_1023;\n  undefined1 local_1022;\n  undefined1 local_1021;\n  char local_1020 [4096];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar32 = 0;\n  uStack_14 = 0x29c7ad;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar4 = (int *)GetNextImageInList(param_1);\n  if (piVar4 == (int *)0x0) {\n    piVar4 = param_1;\n  }\n  uVar33 = TellBlob(param_1);\n  if (*(short *)(param_3 + 0x1e) == 1) {\n    WriteBlobLong(param_1,0);\n  }\n  else {\n    WriteBlobLongLong(param_1,0,0);\n  }\n  uVar27 = 0;\n  for (piVar5 = piVar4; piVar5 != (int *)0x0; piVar5 = (int *)GetNextImageInList(piVar5)) {\n    uVar27 = uVar27 + 1;\n  }\n  uVar28 = uVar27;\n  if (param_1[0xa5] != 0) {\n    uVar28 = -uVar27;\n  }\n  local_1130 = WriteBlobShort(param_1,uVar28 & 0xffff);\n  puVar6 = (uint *)AcquireQuantumMemory(uVar27,8);\n  if (puVar6 == (uint *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = (int *)param_2[3];\n    piVar5 = param_1;\n    while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }\n    CloseBlob(piVar5);\n    local_1178 = (int *)0x0;\n  }\n  else {\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }\nLAB_0029dd18:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_002decd0();\n  }\n  return local_1178;\n}" ({ "{") (declaration "double dVar1;" (primitive_type "double") (identifier "dVar1") (; ";")) (declaration "undefined1 uVar2;" (type_identifier "undefined1") (identifier "uVar2") (; ";")) (declaration "short sVar3;" (sized_type_specifier "short" (short "short")) (identifier "sVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "uint *puVar6;" (type_identifier "uint") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "size_t sVar8;" (primitive_type "size_t") (identifier "sVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "undefined1 *puVar14;" (type_identifier "undefined1") (pointer_declarator "*puVar14" (* "*") (identifier "puVar14")) (; ";")) (declaration "long lVar15;" (sized_type_specifier "long" (long "long")) (identifier "lVar15") (; ";")) (declaration "undefined4 uVar16;" (type_identifier "undefined4") (identifier "uVar16") (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "int iVar17;" (primitive_type "int") (identifier "iVar17") (; ";")) (declaration "int iVar18;" (primitive_type "int") (identifier "iVar18") (; ";")) (declaration "int iVar19;" (primitive_type "int") (identifier "iVar19") (; ";")) (declaration "int iVar20;" (primitive_type "int") (identifier "iVar20") (; ";")) (declaration "int iVar21;" (primitive_type "int") (identifier "iVar21") (; ";")) (declaration "int iVar22;" (primitive_type "int") (identifier "iVar22") (; ";")) (declaration "undefined4 uVar23;" (type_identifier "undefined4") (identifier "uVar23") (; ";")) (declaration "int *piVar24;" (primitive_type "int") (pointer_declarator "*piVar24" (* "*") (identifier "piVar24")) (; ";")) (declaration "short sVar25;" (sized_type_specifier "short" (short "short")) (identifier "sVar25") (; ";")) (declaration "uint uVar26;" (type_identifier "uint") (identifier "uVar26") (; ";")) (declaration "uint uVar27;" (type_identifier "uint") (identifier "uVar27") (; ";")) (declaration "uint uVar28;" (type_identifier "uint") (identifier "uVar28") (; ";")) (declaration "undefined4 *puVar29;" (type_identifier "undefined4") (pointer_declarator "*puVar29" (* "*") (identifier "puVar29")) (; ";")) (declaration "undefined4 *puVar30;" (type_identifier "undefined4") (pointer_declarator "*puVar30" (* "*") (identifier "puVar30")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar31;" (primitive_type "bool") (identifier "bVar31") (; ";")) (declaration "byte bVar32;" (type_identifier "byte") (identifier "bVar32") (; ";")) (declaration "undefined8 uVar33;" (type_identifier "undefined8") (identifier "uVar33") (; ";")) (declaration "undefined8 uVar34;" (type_identifier "undefined8") (identifier "uVar34") (; ";")) (declaration "int *local_1178;" (primitive_type "int") (pointer_declarator "*local_1178" (* "*") (identifier "local_1178")) (; ";")) (declaration "int local_1174;" (primitive_type "int") (identifier "local_1174") (; ";")) (declaration "int local_116c;" (primitive_type "int") (identifier "local_116c") (; ";")) (declaration "uint local_115c;" (type_identifier "uint") (identifier "local_115c") (; ";")) (declaration "int local_1158;" (primitive_type "int") (identifier "local_1158") (; ";")) (declaration "uint *local_1150;" (type_identifier "uint") (pointer_declarator "*local_1150" (* "*") (identifier "local_1150")) (; ";")) (declaration "int local_114c;" (primitive_type "int") (identifier "local_114c") (; ";")) (declaration "uint local_1130;" (type_identifier "uint") (identifier "local_1130") (; ";")) (declaration "byte local_1103;" (type_identifier "byte") (identifier "local_1103") (; ";")) (declaration "double local_10f4;" (primitive_type "double") (identifier "local_10f4") (; ";")) (declaration "int *local_10ec;" (primitive_type "int") (pointer_declarator "*local_10ec" (* "*") (identifier "local_10ec")) (; ";")) (declaration "undefined4 local_10e8;" (type_identifier "undefined4") (identifier "local_10e8") (; ";")) (declaration "undefined4 local_10e4;" (type_identifier "undefined4") (identifier "local_10e4") (; ";")) (declaration "undefined4 local_10e0;" (type_identifier "undefined4") (identifier "local_10e0") (; ";")) (declaration "undefined4 local_10d9 [45];" (type_identifier "undefined4") (array_declarator "local_10d9 [45]" (identifier "local_10d9") ([ "[") (number_literal "45") (] "]")) (; ";")) (declaration "undefined1 local_1025;" (type_identifier "undefined1") (identifier "local_1025") (; ";")) (declaration "undefined1 local_1024;" (type_identifier "undefined1") (identifier "local_1024") (; ";")) (declaration "undefined1 local_1023;" (type_identifier "undefined1") (identifier "local_1023") (; ";")) (declaration "undefined1 local_1022;" (type_identifier "undefined1") (identifier "local_1022") (; ";")) (declaration "undefined1 local_1021;" (type_identifier "undefined1") (identifier "local_1021") (; ";")) (declaration "char local_1020 [4096];" (primitive_type "char") (array_declarator "local_1020 [4096]" (identifier "local_1020") ([ "[") (number_literal "4096") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "bVar32 = 0;" (assignment_expression "bVar32 = 0" (identifier "bVar32") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0x29c7ad;" (assignment_expression "uStack_14 = 0x29c7ad" (identifier "uStack_14") (= "=") (number_literal "0x29c7ad")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "piVar4 = (int *)GetNextImageInList(param_1);" (assignment_expression "piVar4 = (int *)GetNextImageInList(param_1)" (identifier "piVar4") (= "=") (cast_expression "(int *)GetNextImageInList(param_1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetNextImageInList(param_1)" (identifier "GetNextImageInList") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (; ";")) (if_statement "if (piVar4 == (int *)0x0) {\n    piVar4 = param_1;\n  }" (if "if") (parenthesized_expression "(piVar4 == (int *)0x0)" (( "(") (binary_expression "piVar4 == (int *)0x0" (identifier "piVar4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar4 = param_1;\n  }" ({ "{") (expression_statement "piVar4 = param_1;" (assignment_expression "piVar4 = param_1" (identifier "piVar4") (= "=") (identifier "param_1")) (; ";")) (} "}"))) (expression_statement "uVar33 = TellBlob(param_1);" (assignment_expression "uVar33 = TellBlob(param_1)" (identifier "uVar33") (= "=") (call_expression "TellBlob(param_1)" (identifier "TellBlob") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n    WriteBlobLong(param_1,0);\n  }\n  else {\n    WriteBlobLongLong(param_1,0,0);\n  }" (if "if") (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" (( "(") (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" (* "*") (cast_expression "(short *)(param_3 + 0x1e)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1e)" (( "(") (binary_expression "param_3 + 0x1e" (identifier "param_3") (+ "+") (number_literal "0x1e")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    WriteBlobLong(param_1,0);\n  }" ({ "{") (expression_statement "WriteBlobLong(param_1,0);" (call_expression "WriteBlobLong(param_1,0)" (identifier "WriteBlobLong") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    WriteBlobLongLong(param_1,0,0);\n  }" (else "else") (compound_statement "{\n    WriteBlobLongLong(param_1,0,0);\n  }" ({ "{") (expression_statement "WriteBlobLongLong(param_1,0,0);" (call_expression "WriteBlobLongLong(param_1,0,0)" (identifier "WriteBlobLongLong") (argument_list "(param_1,0,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")))) (expression_statement "uVar27 = 0;" (assignment_expression "uVar27 = 0" (identifier "uVar27") (= "=") (number_literal "0")) (; ";")) (for_statement "for (piVar5 = piVar4; piVar5 != (int *)0x0; piVar5 = (int *)GetNextImageInList(piVar5)) {\n    uVar27 = uVar27 + 1;\n  }" (for "for") (( "(") (assignment_expression "piVar5 = piVar4" (identifier "piVar5") (= "=") (identifier "piVar4")) (; ";") (binary_expression "piVar5 != (int *)0x0" (identifier "piVar5") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "piVar5 = (int *)GetNextImageInList(piVar5)" (identifier "piVar5") (= "=") (cast_expression "(int *)GetNextImageInList(piVar5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetNextImageInList(piVar5)" (identifier "GetNextImageInList") (argument_list "(piVar5)" (( "(") (identifier "piVar5") () ")"))))) () ")") (compound_statement "{\n    uVar27 = uVar27 + 1;\n  }" ({ "{") (expression_statement "uVar27 = uVar27 + 1;" (assignment_expression "uVar27 = uVar27 + 1" (identifier "uVar27") (= "=") (binary_expression "uVar27 + 1" (identifier "uVar27") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "uVar28 = uVar27;" (assignment_expression "uVar28 = uVar27" (identifier "uVar28") (= "=") (identifier "uVar27")) (; ";")) (if_statement "if (param_1[0xa5] != 0) {\n    uVar28 = -uVar27;\n  }" (if "if") (parenthesized_expression "(param_1[0xa5] != 0)" (( "(") (binary_expression "param_1[0xa5] != 0" (subscript_expression "param_1[0xa5]" (identifier "param_1") ([ "[") (number_literal "0xa5") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar28 = -uVar27;\n  }" ({ "{") (expression_statement "uVar28 = -uVar27;" (assignment_expression "uVar28 = -uVar27" (identifier "uVar28") (= "=") (unary_expression "-uVar27" (- "-") (identifier "uVar27"))) (; ";")) (} "}"))) (expression_statement "local_1130 = WriteBlobShort(param_1,uVar28 & 0xffff);" (assignment_expression "local_1130 = WriteBlobShort(param_1,uVar28 & 0xffff)" (identifier "local_1130") (= "=") (call_expression "WriteBlobShort(param_1,uVar28 & 0xffff)" (identifier "WriteBlobShort") (argument_list "(param_1,uVar28 & 0xffff)" (( "(") (identifier "param_1") (, ",") (binary_expression "uVar28 & 0xffff" (identifier "uVar28") (& "&") (number_literal "0xffff")) () ")")))) (; ";")) (expression_statement "puVar6 = (uint *)AcquireQuantumMemory(uVar27,8);" (assignment_expression "puVar6 = (uint *)AcquireQuantumMemory(uVar27,8)" (identifier "puVar6") (= "=") (cast_expression "(uint *)AcquireQuantumMemory(uVar27,8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "AcquireQuantumMemory(uVar27,8)" (identifier "AcquireQuantumMemory") (argument_list "(uVar27,8)" (( "(") (identifier "uVar27") (, ",") (number_literal "8") () ")"))))) (; ";")) (if_statement "if (puVar6 == (uint *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = (int *)param_2[3];\n    piVar5 = param_1;\n    while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }\n    CloseBlob(piVar5);\n    local_1178 = (int *)0x0;\n  }\n  else {\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(puVar6 == (uint *)0x0)" (( "(") (binary_expression "puVar6 == (uint *)0x0" (identifier "puVar6") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = (int *)param_2[3];\n    piVar5 = param_1;\n    while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }\n    CloseBlob(piVar5);\n    local_1178 = (int *)0x0;\n  }" ({ "{") (expression_statement "ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);" (call_expression "ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6)" (identifier "ThrowMagickException") (argument_list "(param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6)" (( "(") (identifier "param_5") (, ",") (string_literal ""coders/psd.c"" (" """) (string_content "coders/psd.c") (" """)) (, ",") (string_literal ""WritePSDLayersInternal"" (" """) (string_content "WritePSDLayersInternal") (" """)) (, ",") (number_literal "0xdf3") (, ",") (number_literal "400") (, ",") (string_literal ""MemoryAllocationFailed"" (" """) (string_content "MemoryAllocationFailed") (" """)) (, ",") (string_literal ""`%s\'"" (" """) (string_content "`%s") (escape_sequence "\'") (" """)) (, ",") (binary_expression "param_1 + 0xc6" (identifier "param_1") (+ "+") (number_literal "0xc6")) () ")"))) (; ";")) (expression_statement "piVar4 = (int *)param_2[3];" (assignment_expression "piVar4 = (int *)param_2[3]" (identifier "piVar4") (= "=") (cast_expression "(int *)param_2[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "piVar5 = param_1;" (assignment_expression "piVar5 = param_1" (identifier "piVar5") (= "=") (identifier "param_1")) (; ";")) (while_statement "while (piVar24 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }" (while "while") (parenthesized_expression "(piVar24 = param_1, piVar4 != (int *)0x0)" (( "(") (comma_expression "piVar24 = param_1, piVar4 != (int *)0x0" (assignment_expression "piVar24 = param_1" (identifier "piVar24") (= "=") (identifier "param_1")) (, ",") (binary_expression "piVar4 != (int *)0x0" (identifier "piVar4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")")) (compound_statement "{\n      piVar4 = (int *)piVar24[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar24;\n    }" ({ "{") (expression_statement "piVar4 = (int *)piVar24[0xccf];" (assignment_expression "piVar4 = (int *)piVar24[0xccf]" (identifier "piVar4") (= "=") (cast_expression "(int *)piVar24[0xccf]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar24[0xccf]" (identifier "piVar24") ([ "[") (number_literal "0xccf") (] "]")))) (; ";")) (expression_statement "param_1 = piVar4;" (assignment_expression "param_1 = piVar4" (identifier "param_1") (= "=") (identifier "piVar4")) (; ";")) (expression_statement "piVar5 = piVar24;" (assignment_expression "piVar5 = piVar24" (identifier "piVar5") (= "=") (identifier "piVar24")) (; ";")) (} "}"))) (expression_statement "CloseBlob(piVar5);" (call_expression "CloseBlob(piVar5)" (identifier "CloseBlob") (argument_list "(piVar5)" (( "(") (identifier "piVar5") () ")"))) (; ";")) (expression_statement "local_1178 = (int *)0x0;" (assignment_expression "local_1178 = (int *)0x0" (identifier "local_1178") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }\n    local_1178 = (int *)0x1;\nLAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }\n    uVar27 = local_1130 + 1;\n    if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }\n    uVar34 = TellBlob(param_1);\n    SeekBlob(param_1,uVar33,0);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }\n    SeekBlob(param_1,uVar34,0);\n    RelinquishMagickMemory(puVar6);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }\n  }" ({ "{") (if_statement "if (piVar4 != (int *)0x0) {\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }" (if "if") (parenthesized_expression "(piVar4 != (int *)0x0)" (( "(") (binary_expression "piVar4 != (int *)0x0" (identifier "piVar4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      local_114c = 0;\n      local_1178 = piVar4;\n      do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);\n      do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);\n    }" ({ "{") (expression_statement "local_114c = 0;" (assignment_expression "local_114c = 0" (identifier "local_114c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_1178 = piVar4;" (assignment_expression "local_1178 = piVar4" (identifier "local_1178") (= "=") (identifier "piVar4")) (; ";")) (do_statement "do {\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      } while (local_1178 != (int *)0x0);" (do "do") (compound_statement "{\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");\n        if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }\n        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);\n        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);\n        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);\n        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);\n        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }\n        if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }\n        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));\n        local_114c = local_114c + 1;\n        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;\n        uVar34 = TellBlob(param_1);\n        puVar6[local_114c * 2 + -2] = (uint)uVar34;\n        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);\n        iVar9 = 0;\n        do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);\n        if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\nLAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }\n        puVar14 = &DAT_002e24fa;\n        if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }\n        iVar9 = WriteBlobString(param_1,puVar14);\n        switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }\n        iVar10 = WriteBlobString(param_1,pcVar7);\n        iVar10 = local_116c + iVar9 + iVar10;\n        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");\n        if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }\n        iVar11 = WriteBlobByte(param_1,0);\n        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar9 = WriteBlobByte(param_1,0);\n        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;\n        puVar30 = &DAT_0034d420;\n        puVar29 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(local_1178,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }\nLAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);\n        if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }\n        sVar8 = strlen(pcVar7);\n        uVar27 = sVar8 + 1;\n        if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }\n        if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }\n        iVar9 = WriteBlobLong(param_1,0);\n        sVar8 = strlen(pcVar7);\n        if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }\nLAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;\n        if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }\n        local_1178 = (int *)GetNextImageInList(local_1178);\n        piVar5 = piVar4;\n        local_1150 = puVar6;\n      }" ({ "{") (expression_statement "pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");" (assignment_expression "pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask")" (identifier "pcVar7") (= "=") (cast_expression "(char *)GetImageArtifact(local_1178,"psd:opacity-mask")" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetImageArtifact(local_1178,"psd:opacity-mask")" (identifier "GetImageArtifact") (argument_list "(local_1178,"psd:opacity-mask")" (( "(") (identifier "local_1178") (, ",") (string_literal ""psd:opacity-mask"" (" """) (string_content "psd:opacity-mask") (" """)) () ")"))))) (; ";")) (if_statement "if (pcVar7 == (char *)0x0) {\n          local_1103 = 0;\n          local_1174 = 0;\n        }\n        else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }" (if "if") (parenthesized_expression "(pcVar7 == (char *)0x0)" (( "(") (binary_expression "pcVar7 == (char *)0x0" (identifier "pcVar7") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          local_1103 = 0;\n          local_1174 = 0;\n        }" ({ "{") (expression_statement "local_1103 = 0;" (assignment_expression "local_1103 = 0" (identifier "local_1103") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_1174 = 0;" (assignment_expression "local_1174 = 0" (identifier "local_1174") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }" (else "else") (compound_statement "{\n          local_1174 = GetImageRegistry(1,pcVar7,param_5);\n          sVar8 = strlen(pcVar7);\n          local_1103 = -(sVar8 == 9);\n        }" ({ "{") (expression_statement "local_1174 = GetImageRegistry(1,pcVar7,param_5);" (assignment_expression "local_1174 = GetImageRegistry(1,pcVar7,param_5)" (identifier "local_1174") (= "=") (call_expression "GetImageRegistry(1,pcVar7,param_5)" (identifier "GetImageRegistry") (argument_list "(1,pcVar7,param_5)" (( "(") (number_literal "1") (, ",") (identifier "pcVar7") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "sVar8 = strlen(pcVar7);" (assignment_expression "sVar8 = strlen(pcVar7)" (identifier "sVar8") (= "=") (call_expression "strlen(pcVar7)" (identifier "strlen") (argument_list "(pcVar7)" (( "(") (identifier "pcVar7") () ")")))) (; ";")) (expression_statement "local_1103 = -(sVar8 == 9);" (assignment_expression "local_1103 = -(sVar8 == 9)" (identifier "local_1103") (= "=") (unary_expression "-(sVar8 == 9)" (- "-") (parenthesized_expression "(sVar8 == 9)" (( "(") (binary_expression "sVar8 == 9" (identifier "sVar8") (== "==") (number_literal "9")) () ")")))) (; ";")) (} "}")))) (expression_statement "iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);" (assignment_expression "iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83])" (identifier "iVar9") (= "=") (call_expression "WriteBlobSignedLong(param_1,local_1178[0x83])" (identifier "WriteBlobSignedLong") (argument_list "(param_1,local_1178[0x83])" (( "(") (identifier "param_1") (, ",") (subscript_expression "local_1178[0x83]" (identifier "local_1178") ([ "[") (number_literal "0x83") (] "]")) () ")")))) (; ";")) (expression_statement "iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);" (assignment_expression "iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82])" (identifier "iVar10") (= "=") (call_expression "WriteBlobSignedLong(param_1,local_1178[0x82])" (identifier "WriteBlobSignedLong") (argument_list "(param_1,local_1178[0x82])" (( "(") (identifier "param_1") (, ",") (subscript_expression "local_1178[0x82]" (identifier "local_1178") ([ "[") (number_literal "0x82") (] "]")) () ")")))) (; ";")) (expression_statement "iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);" (assignment_expression "iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83])" (identifier "iVar11") (= "=") (call_expression "WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83])" (identifier "WriteBlobSignedLong") (argument_list "(param_1,local_1178[7] + local_1178[0x83])" (( "(") (identifier "param_1") (, ",") (binary_expression "local_1178[7] + local_1178[0x83]" (subscript_expression "local_1178[7]" (identifier "local_1178") ([ "[") (number_literal "7") (] "]")) (+ "+") (subscript_expression "local_1178[0x83]" (identifier "local_1178") ([ "[") (number_literal "0x83") (] "]"))) () ")")))) (; ";")) (expression_statement "iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);" (assignment_expression "iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82])" (identifier "iVar12") (= "=") (call_expression "WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82])" (identifier "WriteBlobSignedLong") (argument_list "(param_1,local_1178[6] + local_1178[0x82])" (( "(") (identifier "param_1") (, ",") (binary_expression "local_1178[6] + local_1178[0x82]" (subscript_expression "local_1178[6]" (identifier "local_1178") ([ "[") (number_literal "6") (] "]")) (+ "+") (subscript_expression "local_1178[0x82]" (identifier "local_1178") ([ "[") (number_literal "0x82") (] "]"))) () ")")))) (; ";")) (if_statement "if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }\n        else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }" (if "if") (parenthesized_expression "((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0))" (( "(") (binary_expression "(*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)" (parenthesized_expression "(*local_1178 == 2)" (( "(") (binary_expression "*local_1178 == 2" (pointer_expression "*local_1178" (* "*") (identifier "local_1178")) (== "==") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "(iVar13 = IsImageGray(local_1178), iVar13 != 0)" (( "(") (comma_expression "iVar13 = IsImageGray(local_1178), iVar13 != 0" (assignment_expression "iVar13 = IsImageGray(local_1178)" (identifier "iVar13") (= "=") (call_expression "IsImageGray(local_1178)" (identifier "IsImageGray") (argument_list "(local_1178)" (( "(") (identifier "local_1178") () ")")))) (, ",") (binary_expression "iVar13 != 0" (identifier "iVar13") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          sVar3 = 2;\n          local_115c = 1;\n          sVar25 = 1;\n        }" ({ "{") (expression_statement "sVar3 = 2;" (assignment_expression "sVar3 = 2" (identifier "sVar3") (= "=") (number_literal "2")) (; ";")) (expression_statement "local_115c = 1;" (assignment_expression "local_115c = 1" (identifier "local_115c") (= "=") (number_literal "1")) (; ";")) (expression_statement "sVar25 = 1;" (assignment_expression "sVar25 = 1" (identifier "sVar25") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }" (else "else") (compound_statement "{\n          sVar3 = (local_1178[1] == 2) + 4;\n          local_115c = (local_1178[1] == 2) + 3;\n          sVar25 = (local_1178[1] == 2) + 3;\n        }" ({ "{") (expression_statement "sVar3 = (local_1178[1] == 2) + 4;" (assignment_expression "sVar3 = (local_1178[1] == 2) + 4" (identifier "sVar3") (= "=") (binary_expression "(local_1178[1] == 2) + 4" (parenthesized_expression "(local_1178[1] == 2)" (( "(") (binary_expression "local_1178[1] == 2" (subscript_expression "local_1178[1]" (identifier "local_1178") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "2")) () ")")) (+ "+") (number_literal "4"))) (; ";")) (expression_statement "local_115c = (local_1178[1] == 2) + 3;" (assignment_expression "local_115c = (local_1178[1] == 2) + 3" (identifier "local_115c") (= "=") (binary_expression "(local_1178[1] == 2) + 3" (parenthesized_expression "(local_1178[1] == 2)" (( "(") (binary_expression "local_1178[1] == 2" (subscript_expression "local_1178[1]" (identifier "local_1178") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "2")) () ")")) (+ "+") (number_literal "3"))) (; ";")) (expression_statement "sVar25 = (local_1178[1] == 2) + 3;" (assignment_expression "sVar25 = (local_1178[1] == 2) + 3" (identifier "sVar25") (= "=") (binary_expression "(local_1178[1] == 2) + 3" (parenthesized_expression "(local_1178[1] == 2)" (( "(") (binary_expression "local_1178[1] == 2" (subscript_expression "local_1178[1]" (identifier "local_1178") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "2")) () ")")) (+ "+") (number_literal "3"))) (; ";")) (} "}")))) (if_statement "if (local_1178[0xa5] == 0) {\n          sVar3 = sVar25;\n        }" (if "if") (parenthesized_expression "(local_1178[0xa5] == 0)" (( "(") (binary_expression "local_1178[0xa5] == 0" (subscript_expression "local_1178[0xa5]" (identifier "local_1178") ([ "[") (number_literal "0xa5") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          sVar3 = sVar25;\n        }" ({ "{") (expression_statement "sVar3 = sVar25;" (assignment_expression "sVar3 = sVar25" (identifier "sVar3") (= "=") (identifier "sVar25")) (; ";")) (} "}"))) (expression_statement "local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));" (assignment_expression "local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0))" (identifier "local_116c") (= "=") (call_expression "WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0))" (identifier "WriteBlobShort") (argument_list "(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0))" (( "(") (identifier "param_1") (, ",") (binary_expression "(sVar3 + 1) - (ushort)(local_1174 == 0)" (parenthesized_expression "(sVar3 + 1)" (( "(") (binary_expression "sVar3 + 1" (identifier "sVar3") (+ "+") (number_literal "1")) () ")")) (- "-") (call_expression "(ushort)(local_1174 == 0)" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "(local_1174 == 0)" (( "(") (binary_expression "local_1174 == 0" (identifier "local_1174") (== "==") (number_literal "0")) () ")")))) () ")")))) (; ";")) (expression_statement "local_114c = local_114c + 1;" (assignment_expression "local_114c = local_114c + 1" (identifier "local_114c") (= "=") (binary_expression "local_114c + 1" (identifier "local_114c") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;" (assignment_expression "local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12" (identifier "local_116c") (= "=") (binary_expression "local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12" (binary_expression "local_116c + local_1130 + iVar9 + iVar10 + iVar11" (binary_expression "local_116c + local_1130 + iVar9 + iVar10" (binary_expression "local_116c + local_1130 + iVar9" (binary_expression "local_116c + local_1130" (identifier "local_116c") (+ "+") (identifier "local_1130")) (+ "+") (identifier "iVar9")) (+ "+") (identifier "iVar10")) (+ "+") (identifier "iVar11")) (+ "+") (identifier "iVar12"))) (; ";")) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" (identifier "uVar34") (= "=") (call_expression "TellBlob(param_1)" (identifier "TellBlob") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "puVar6[local_114c * 2 + -2] = (uint)uVar34;" (assignment_expression "puVar6[local_114c * 2 + -2] = (uint)uVar34" (subscript_expression "puVar6[local_114c * 2 + -2]" (identifier "puVar6") ([ "[") (binary_expression "local_114c * 2 + -2" (binary_expression "local_114c * 2" (identifier "local_114c") (* "*") (number_literal "2")) (+ "+") (number_literal "-2")) (] "]")) (= "=") (cast_expression "(uint)uVar34" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar34"))) (; ";")) (expression_statement "puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);" (assignment_expression "puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20)" (subscript_expression "puVar6[local_114c * 2 + -1]" (identifier "puVar6") ([ "[") (binary_expression "local_114c * 2 + -1" (binary_expression "local_114c * 2" (identifier "local_114c") (* "*") (number_literal "2")) (+ "+") (number_literal "-1")) (] "]")) (= "=") (call_expression "(uint)((ulonglong)uVar34 >> 0x20)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((ulonglong)uVar34 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar34 >> 0x20" (cast_expression "(ulonglong)uVar34" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar34")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        } while (local_115c != iVar9);" (do "do") (compound_statement "{\n          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }\n          iVar9 = iVar9 + 1;\n          iVar11 = WriteBlobLong(param_1,0);\n          local_116c = local_116c + iVar10 + iVar11;\n        }" ({ "{") (while_statement "while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }" (while "while") (parenthesized_expression "(iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1)" (( "(") (comma_expression "iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1" (assignment_expression "iVar10 = WriteBlobShort(param_1,iVar9)" (identifier "iVar10") (= "=") (call_expression "WriteBlobShort(param_1,iVar9)" (identifier "WriteBlobShort") (argument_list "(param_1,iVar9)" (( "(") (identifier "param_1") (, ",") (identifier "iVar9") () ")")))) (, ",") (binary_expression "*(short *)(param_3 + 0x1e) != 1" (pointer_expression "*(short *)(param_3 + 0x1e)" (* "*") (cast_expression "(short *)(param_3 + 0x1e)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1e)" (( "(") (binary_expression "param_3 + 0x1e" (identifier "param_3") (+ "+") (number_literal "0x1e")) () ")")))) (!= "!=") (number_literal "1"))) () ")")) (compound_statement "{\n            iVar9 = iVar9 + 1;\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n            local_116c = local_116c + iVar10 + iVar11;\n            if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }\n          }" ({ "{") (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar11 = WriteBlobLongLong(param_1,0,0);" (assignment_expression "iVar11 = WriteBlobLongLong(param_1,0,0)" (identifier "iVar11") (= "=") (call_expression "WriteBlobLongLong(param_1,0,0)" (identifier "WriteBlobLongLong") (argument_list "(param_1,0,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "local_116c = local_116c + iVar10 + iVar11;" (assignment_expression "local_116c = local_116c + iVar10 + iVar11" (identifier "local_116c") (= "=") (binary_expression "local_116c + iVar10 + iVar11" (binary_expression "local_116c + iVar10" (identifier "local_116c") (+ "+") (identifier "iVar10")) (+ "+") (identifier "iVar11"))) (; ";")) (if_statement "if (iVar9 == local_115c) {\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }" (if "if") (parenthesized_expression "(iVar9 == local_115c)" (( "(") (binary_expression "iVar9 == local_115c" (identifier "iVar9") (== "==") (identifier "local_115c")) () ")")) (compound_statement "{\n              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;\n              goto LAB_0029cb4b;\n            }" ({ "{") (if_statement "if (local_1178[0xa5] == 0) goto LAB_0029ca7f;" (if "if") (parenthesized_expression "(local_1178[0xa5] == 0)" (( "(") (binary_expression "local_1178[0xa5] == 0" (subscript_expression "local_1178[0xa5]" (identifier "local_1178") ([ "[") (number_literal "0xa5") (] "]")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0029ca7f;" (goto "goto") (statement_identifier "LAB_0029ca7f") (; ";"))) (goto_statement "goto LAB_0029cb4b;" (goto "goto") (statement_identifier "LAB_0029cb4b") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar11 = WriteBlobLong(param_1,0);" (assignment_expression "iVar11 = WriteBlobLong(param_1,0)" (identifier "iVar11") (= "=") (call_expression "WriteBlobLong(param_1,0)" (identifier "WriteBlobLong") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "local_116c = local_116c + iVar10 + iVar11;" (assignment_expression "local_116c = local_116c + iVar10 + iVar11" (identifier "local_116c") (= "=") (binary_expression "local_116c + iVar10 + iVar11" (binary_expression "local_116c + iVar10" (identifier "local_116c") (+ "+") (identifier "iVar10")) (+ "+") (identifier "iVar11"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_115c != iVar9)" (( "(") (binary_expression "local_115c != iVar9" (identifier "local_115c") (!= "!=") (identifier "iVar9")) () ")")) (; ";")) (if_statement "if (local_1178[0xa5] != 0) {\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }" (if "if") (parenthesized_expression "(local_1178[0xa5] != 0)" (( "(") (binary_expression "local_1178[0xa5] != 0" (subscript_expression "local_1178[0xa5]" (identifier "local_1178") ([ "[") (number_literal "0xa5") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }" ({ "{") (labeled_statement "LAB_0029cb4b:\n          iVar9 = WriteBlobShort(param_1,0xffff);" (statement_identifier "LAB_0029cb4b") (: ":") (expression_statement "iVar9 = WriteBlobShort(param_1,0xffff);" (assignment_expression "iVar9 = WriteBlobShort(param_1,0xffff)" (identifier "iVar9") (= "=") (call_expression "WriteBlobShort(param_1,0xffff)" (identifier "WriteBlobShort") (argument_list "(param_1,0xffff)" (( "(") (identifier "param_1") (, ",") (number_literal "0xffff") () ")")))) (; ";"))) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" (if "if") (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" (( "(") (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" (* "*") (cast_expression "(short *)(param_3 + 0x1e)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1e)" (( "(") (binary_expression "param_3 + 0x1e" (identifier "param_3") (+ "+") (number_literal "0x1e")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            iVar10 = WriteBlobLong(param_1,0);\n          }" ({ "{") (expression_statement "iVar10 = WriteBlobLong(param_1,0);" (assignment_expression "iVar10 = WriteBlobLong(param_1,0)" (identifier "iVar10") (= "=") (call_expression "WriteBlobLong(param_1,0)" (identifier "WriteBlobLong") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")) (else_clause "else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" (else "else") (compound_statement "{\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" ({ "{") (expression_statement "iVar10 = WriteBlobLongLong(param_1,0,0);" (assignment_expression "iVar10 = WriteBlobLongLong(param_1,0,0)" (identifier "iVar10") (= "=") (call_expression "WriteBlobLongLong(param_1,0,0)" (identifier "WriteBlobLongLong") (argument_list "(param_1,0,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")))) (expression_statement "local_116c = iVar10 + local_116c + iVar9;" (assignment_expression "local_116c = iVar10 + local_116c + iVar9" (identifier "local_116c") (= "=") (binary_expression "iVar10 + local_116c + iVar9" (binary_expression "iVar10 + local_116c" (identifier "iVar10") (+ "+") (identifier "local_116c")) (+ "+") (identifier "iVar9"))) (; ";")) (} "}"))) (labeled_statement "LAB_0029ca7f:\n        if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }" (statement_identifier "LAB_0029ca7f") (: ":") (if_statement "if (local_1174 != 0) {\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }" (if "if") (parenthesized_expression "(local_1174 != 0)" (( "(") (binary_expression "local_1174 != 0" (identifier "local_1174") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar9 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_116c = iVar10 + local_116c + iVar9;\n        }" ({ "{") (expression_statement "iVar9 = WriteBlobShort(param_1,0xfffe);" (assignment_expression "iVar9 = WriteBlobShort(param_1,0xfffe)" (identifier "iVar9") (= "=") (call_expression "WriteBlobShort(param_1,0xfffe)" (identifier "WriteBlobShort") (argument_list "(param_1,0xfffe)" (( "(") (identifier "param_1") (, ",") (number_literal "0xfffe") () ")")))) (; ";")) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" (if "if") (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" (( "(") (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" (* "*") (cast_expression "(short *)(param_3 + 0x1e)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1e)" (( "(") (binary_expression "param_3 + 0x1e" (identifier "param_3") (+ "+") (number_literal "0x1e")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            iVar10 = WriteBlobLong(param_1,0);\n          }" ({ "{") (expression_statement "iVar10 = WriteBlobLong(param_1,0);" (assignment_expression "iVar10 = WriteBlobLong(param_1,0)" (identifier "iVar10") (= "=") (call_expression "WriteBlobLong(param_1,0)" (identifier "WriteBlobLong") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")) (else_clause "else {\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" (else "else") (compound_statement "{\n            iVar10 = WriteBlobLongLong(param_1,0,0);\n          }" ({ "{") (expression_statement "iVar10 = WriteBlobLongLong(param_1,0,0);" (assignment_expression "iVar10 = WriteBlobLongLong(param_1,0,0)" (identifier "iVar10") (= "=") (call_expression "WriteBlobLongLong(param_1,0,0)" (identifier "WriteBlobLongLong") (argument_list "(param_1,0,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")))) (expression_statement "local_116c = iVar10 + local_116c + iVar9;" (assignment_expression "local_116c = iVar10 + local_116c + iVar9" (identifier "local_116c") (= "=") (binary_expression "iVar10 + local_116c + iVar9" (binary_expression "iVar10 + local_116c" (identifier "iVar10") (+ "+") (identifier "local_116c")) (+ "+") (identifier "iVar9"))) (; ";")) (} "}")))) (expression_statement "puVar14 = &DAT_002e24fa;" (assignment_expression "puVar14 = &DAT_002e24fa" (identifier "puVar14") (= "=") (pointer_expression "&DAT_002e24fa" (& "&") (identifier "DAT_002e24fa"))) (; ";")) (if_statement "if (param_1[0x8d] == 1) {\n          puVar14 = &DAT_0034cdc9;\n        }" (if "if") (parenthesized_expression "(param_1[0x8d] == 1)" (( "(") (binary_expression "param_1[0x8d] == 1" (subscript_expression "param_1[0x8d]" (identifier "param_1") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n          puVar14 = &DAT_0034cdc9;\n        }" ({ "{") (expression_statement "puVar14 = &DAT_0034cdc9;" (assignment_expression "puVar14 = &DAT_0034cdc9" (identifier "puVar14") (= "=") (pointer_expression "&DAT_0034cdc9" (& "&") (identifier "DAT_0034cdc9"))) (; ";")) (} "}"))) (expression_statement "iVar9 = WriteBlobString(param_1,puVar14);" (assignment_expression "iVar9 = WriteBlobString(param_1,puVar14)" (identifier "iVar9") (= "=") (call_expression "WriteBlobString(param_1,puVar14)" (identifier "WriteBlobString") (argument_list "(param_1,puVar14)" (( "(") (identifier "param_1") (, ",") (identifier "puVar14") () ")")))) (; ";")) (switch_statement "switch(local_1178[0x8f]) {\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }" (switch "switch") (parenthesized_expression "(local_1178[0x8f])" (( "(") (subscript_expression "local_1178[0x8f]" (identifier "local_1178") ([ "[") (number_literal "0x8f") (] "]")) () ")")) (compound_statement "{\n        case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;\n        case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;\n        default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }\n        }" ({ "{") (case_statement "case 8:\n          pcVar7 = "idiv";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }\n          break;" (case "case") (number_literal "8") (: ":") (expression_statement "pcVar7 = "idiv";" (assignment_expression "pcVar7 = "idiv"" (identifier "pcVar7") (= "=") (string_literal ""idiv"" (" """) (string_content "idiv") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "vidi";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "vidi";\n          }" ({ "{") (expression_statement "pcVar7 = "vidi";" (assignment_expression "pcVar7 = "vidi"" (identifier "pcVar7") (= "=") (string_literal ""vidi"" (" """) (string_content "vidi") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 9:\n          pcVar7 = "div ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }\n          break;" (case "case") (number_literal "9") (: ":") (expression_statement "pcVar7 = "div ";" (assignment_expression "pcVar7 = "div "" (identifier "pcVar7") (= "=") (string_literal ""div "" (" """) (string_content "div ") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = " vid";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = " vid";\n          }" ({ "{") (expression_statement "pcVar7 = " vid";" (assignment_expression "pcVar7 = " vid"" (identifier "pcVar7") (= "=") (string_literal "" vid"" (" """) (string_content " vid") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 10:\n          pcVar7 = "colr";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }\n          break;" (case "case") (number_literal "10") (: ":") (expression_statement "pcVar7 = "colr";" (assignment_expression "pcVar7 = "colr"" (identifier "pcVar7") (= "=") (string_literal ""colr"" (" """) (string_content "colr") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "rloc";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "rloc";\n          }" ({ "{") (expression_statement "pcVar7 = "rloc";" (assignment_expression "pcVar7 = "rloc"" (identifier "pcVar7") (= "=") (string_literal ""rloc"" (" """) (string_content "rloc") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "default:\n          pcVar7 = "norm";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }\n          break;" (default "default") (: ":") (expression_statement "pcVar7 = "norm";" (assignment_expression "pcVar7 = "norm"" (identifier "pcVar7") (= "=") (string_literal ""norm"" (" """) (string_content "norm") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "mron";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "mron";\n          }" ({ "{") (expression_statement "pcVar7 = "mron";" (assignment_expression "pcVar7 = "mron"" (identifier "pcVar7") (= "=") (string_literal ""mron"" (" """) (string_content "mron") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x14:\n          pcVar7 = "dark";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }\n          break;" (case "case") (number_literal "0x14") (: ":") (expression_statement "pcVar7 = "dark";" (assignment_expression "pcVar7 = "dark"" (identifier "pcVar7") (= "=") (string_literal ""dark"" (" """) (string_content "dark") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "krad";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "krad";\n          }" ({ "{") (expression_statement "pcVar7 = "krad";" (assignment_expression "pcVar7 = "krad"" (identifier "pcVar7") (= "=") (string_literal ""krad"" (" """) (string_content "krad") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x16:\n          pcVar7 = "diff";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }\n          break;" (case "case") (number_literal "0x16") (: ":") (expression_statement "pcVar7 = "diff";" (assignment_expression "pcVar7 = "diff"" (identifier "pcVar7") (= "=") (string_literal ""diff"" (" """) (string_content "diff") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "ffid";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "ffid";\n          }" ({ "{") (expression_statement "pcVar7 = "ffid";" (assignment_expression "pcVar7 = "ffid"" (identifier "pcVar7") (= "=") (string_literal ""ffid"" (" """) (string_content "ffid") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x18:\n          pcVar7 = "diss";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }\n          break;" (case "case") (number_literal "0x18") (: ":") (expression_statement "pcVar7 = "diss";" (assignment_expression "pcVar7 = "diss"" (identifier "pcVar7") (= "=") (string_literal ""diss"" (" """) (string_content "diss") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "ssid";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "ssid";\n          }" ({ "{") (expression_statement "pcVar7 = "ssid";" (assignment_expression "pcVar7 = "ssid"" (identifier "pcVar7") (= "=") (string_literal ""ssid"" (" """) (string_content "ssid") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x21:\n          pcVar7 = "smud";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }\n          break;" (case "case") (number_literal "0x21") (: ":") (expression_statement "pcVar7 = "smud";" (assignment_expression "pcVar7 = "smud"" (identifier "pcVar7") (= "=") (string_literal ""smud"" (" """) (string_content "smud") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "dums";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "dums";\n          }" ({ "{") (expression_statement "pcVar7 = "dums";" (assignment_expression "pcVar7 = "dums"" (identifier "pcVar7") (= "=") (string_literal ""dums"" (" """) (string_content "dums") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x22:\n          pcVar7 = "hLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }\n          break;" (case "case") (number_literal "0x22") (: ":") (expression_statement "pcVar7 = "hLit";" (assignment_expression "pcVar7 = "hLit"" (identifier "pcVar7") (= "=") (string_literal ""hLit"" (" """) (string_content "hLit") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLh";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "tiLh";\n          }" ({ "{") (expression_statement "pcVar7 = "tiLh";" (assignment_expression "pcVar7 = "tiLh"" (identifier "pcVar7") (= "=") (string_literal ""tiLh"" (" """) (string_content "tiLh") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x23:\n          pcVar7 = "hMix";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }\n          break;" (case "case") (number_literal "0x23") (: ":") (expression_statement "pcVar7 = "hMix";" (assignment_expression "pcVar7 = "hMix"" (identifier "pcVar7") (= "=") (string_literal ""hMix"" (" """) (string_content "hMix") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "xiMh";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "xiMh";\n          }" ({ "{") (expression_statement "pcVar7 = "xiMh";" (assignment_expression "pcVar7 = "xiMh"" (identifier "pcVar7") (= "=") (string_literal ""xiMh"" (" """) (string_content "xiMh") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x24:\n          pcVar7 = "hue ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }\n          break;" (case "case") (number_literal "0x24") (: ":") (expression_statement "pcVar7 = "hue ";" (assignment_expression "pcVar7 = "hue "" (identifier "pcVar7") (= "=") (string_literal ""hue "" (" """) (string_content "hue ") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = " euh";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = " euh";\n          }" ({ "{") (expression_statement "pcVar7 = " euh";" (assignment_expression "pcVar7 = " euh"" (identifier "pcVar7") (= "=") (string_literal "" euh"" (" """) (string_content " euh") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x27:\n          pcVar7 = "lite";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }\n          break;" (case "case") (number_literal "0x27") (: ":") (expression_statement "pcVar7 = "lite";" (assignment_expression "pcVar7 = "lite"" (identifier "pcVar7") (= "=") (string_literal ""lite"" (" """) (string_content "lite") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "etil";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "etil";\n          }" ({ "{") (expression_statement "pcVar7 = "etil";" (assignment_expression "pcVar7 = "etil"" (identifier "pcVar7") (= "=") (string_literal ""etil"" (" """) (string_content "etil") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x29:\n          pcVar7 = "lbrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }\n          break;" (case "case") (number_literal "0x29") (: ":") (expression_statement "pcVar7 = "lbrn";" (assignment_expression "pcVar7 = "lbrn"" (identifier "pcVar7") (= "=") (string_literal ""lbrn"" (" """) (string_content "lbrn") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrbl";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "nrbl";\n          }" ({ "{") (expression_statement "pcVar7 = "nrbl";" (assignment_expression "pcVar7 = "nrbl"" (identifier "pcVar7") (= "=") (string_literal ""nrbl"" (" """) (string_content "nrbl") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x2a:\n          pcVar7 = "lddg";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }\n          break;" (case "case") (number_literal "0x2a") (: ":") (expression_statement "pcVar7 = "lddg";" (assignment_expression "pcVar7 = "lddg"" (identifier "pcVar7") (= "=") (string_literal ""lddg"" (" """) (string_content "lddg") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "gddl";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "gddl";\n          }" ({ "{") (expression_statement "pcVar7 = "gddl";" (assignment_expression "pcVar7 = "gddl"" (identifier "pcVar7") (= "=") (string_literal ""gddl"" (" """) (string_content "gddl") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x2b:\n          pcVar7 = "lLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }\n          break;" (case "case") (number_literal "0x2b") (: ":") (expression_statement "pcVar7 = "lLit";" (assignment_expression "pcVar7 = "lLit"" (identifier "pcVar7") (= "=") (string_literal ""lLit"" (" """) (string_content "lLit") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLl";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "tiLl";\n          }" ({ "{") (expression_statement "pcVar7 = "tiLl";" (assignment_expression "pcVar7 = "tiLl"" (identifier "pcVar7") (= "=") (string_literal ""tiLl"" (" """) (string_content "tiLl") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x2c:\n          pcVar7 = "lum ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }\n          break;" (case "case") (number_literal "0x2c") (: ":") (expression_statement "pcVar7 = "lum ";" (assignment_expression "pcVar7 = "lum "" (identifier "pcVar7") (= "=") (string_literal ""lum "" (" """) (string_content "lum ") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = " mul";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = " mul";\n          }" ({ "{") (expression_statement "pcVar7 = " mul";" (assignment_expression "pcVar7 = " mul"" (identifier "pcVar7") (= "=") (string_literal "" mul"" (" """) (string_content " mul") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x33:\n          pcVar7 = "mul ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }\n          break;" (case "case") (number_literal "0x33") (: ":") (expression_statement "pcVar7 = "mul ";" (assignment_expression "pcVar7 = "mul "" (identifier "pcVar7") (= "=") (string_literal ""mul "" (" """) (string_content "mul ") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = " lum";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = " lum";\n          }" ({ "{") (expression_statement "pcVar7 = " lum";" (assignment_expression "pcVar7 = " lum"" (identifier "pcVar7") (= "=") (string_literal "" lum"" (" """) (string_content " lum") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x37:\n          pcVar7 = "over";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }\n          break;" (case "case") (number_literal "0x37") (: ":") (expression_statement "pcVar7 = "over";" (assignment_expression "pcVar7 = "over"" (identifier "pcVar7") (= "=") (string_literal ""over"" (" """) (string_content "over") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "revo";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "revo";\n          }" ({ "{") (expression_statement "pcVar7 = "revo";" (assignment_expression "pcVar7 = "revo"" (identifier "pcVar7") (= "=") (string_literal ""revo"" (" """) (string_content "revo") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x39:\n          pcVar7 = "pLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }\n          break;" (case "case") (number_literal "0x39") (: ":") (expression_statement "pcVar7 = "pLit";" (assignment_expression "pcVar7 = "pLit"" (identifier "pcVar7") (= "=") (string_literal ""pLit"" (" """) (string_content "pLit") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLp";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "tiLp";\n          }" ({ "{") (expression_statement "pcVar7 = "tiLp";" (assignment_expression "pcVar7 = "tiLp"" (identifier "pcVar7") (= "=") (string_literal ""tiLp"" (" """) (string_content "tiLp") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x3c:\n          pcVar7 = "sat ";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }\n          break;" (case "case") (number_literal "0x3c") (: ":") (expression_statement "pcVar7 = "sat ";" (assignment_expression "pcVar7 = "sat "" (identifier "pcVar7") (= "=") (string_literal ""sat "" (" """) (string_content "sat ") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = " tas";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = " tas";\n          }" ({ "{") (expression_statement "pcVar7 = " tas";" (assignment_expression "pcVar7 = " tas"" (identifier "pcVar7") (= "=") (string_literal "" tas"" (" """) (string_content " tas") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x3d:\n          pcVar7 = "scrn";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }\n          break;" (case "case") (number_literal "0x3d") (: ":") (expression_statement "pcVar7 = "scrn";" (assignment_expression "pcVar7 = "scrn"" (identifier "pcVar7") (= "=") (string_literal ""scrn"" (" """) (string_content "scrn") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "nrcs";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "nrcs";\n          }" ({ "{") (expression_statement "pcVar7 = "nrcs";" (assignment_expression "pcVar7 = "nrcs"" (identifier "pcVar7") (= "=") (string_literal ""nrcs"" (" """) (string_content "nrcs") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x3e:\n          pcVar7 = "sLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }\n          break;" (case "case") (number_literal "0x3e") (: ":") (expression_statement "pcVar7 = "sLit";" (assignment_expression "pcVar7 = "sLit"" (identifier "pcVar7") (= "=") (string_literal ""sLit"" (" """) (string_content "sLit") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLs";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "tiLs";\n          }" ({ "{") (expression_statement "pcVar7 = "tiLs";" (assignment_expression "pcVar7 = "tiLs"" (identifier "pcVar7") (= "=") (string_literal ""tiLs"" (" """) (string_content "tiLs") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x45:\n          pcVar7 = "vLit";\n          if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }" (case "case") (number_literal "0x45") (: ":") (expression_statement "pcVar7 = "vLit";" (assignment_expression "pcVar7 = "vLit"" (identifier "pcVar7") (= "=") (string_literal ""vLit"" (" """) (string_content "vLit") (" """))) (; ";")) (if_statement "if (local_1178[0x8d] == 1) {\n            pcVar7 = "tiLv";\n          }" (if "if") (parenthesized_expression "(local_1178[0x8d] == 1)" (( "(") (binary_expression "local_1178[0x8d] == 1" (subscript_expression "local_1178[0x8d]" (identifier "local_1178") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar7 = "tiLv";\n          }" ({ "{") (expression_statement "pcVar7 = "tiLv";" (assignment_expression "pcVar7 = "tiLv"" (identifier "pcVar7") (= "=") (string_literal ""tiLv"" (" """) (string_content "tiLv") (" """))) (; ";")) (} "}")))) (} "}"))) (expression_statement "iVar10 = WriteBlobString(param_1,pcVar7);" (assignment_expression "iVar10 = WriteBlobString(param_1,pcVar7)" (identifier "iVar10") (= "=") (call_expression "WriteBlobString(param_1,pcVar7)" (identifier "WriteBlobString") (argument_list "(param_1,pcVar7)" (( "(") (identifier "param_1") (, ",") (identifier "pcVar7") () ")")))) (; ";")) (expression_statement "iVar10 = local_116c + iVar9 + iVar10;" (assignment_expression "iVar10 = local_116c + iVar9 + iVar10" (identifier "iVar10") (= "=") (binary_expression "local_116c + iVar9 + iVar10" (binary_expression "local_116c + iVar9" (identifier "local_116c") (+ "+") (identifier "iVar9")) (+ "+") (identifier "iVar10"))) (; ";")) (expression_statement "pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");" (assignment_expression "pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity")" (identifier "pcVar7") (= "=") (cast_expression "(char *)GetImageArtifact(local_1178,"psd:layer.opacity")" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetImageArtifact(local_1178,"psd:layer.opacity")" (identifier "GetImageArtifact") (argument_list "(local_1178,"psd:layer.opacity")" (( "(") (identifier "local_1178") (, ",") (string_literal ""psd:layer.opacity"" (" """) (string_content "psd:layer.opacity") (" """)) () ")"))))) (; ";")) (if_statement "if (pcVar7 == (char *)0x0) {\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }\n        else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }" (if "if") (parenthesized_expression "(pcVar7 == (char *)0x0)" (( "(") (binary_expression "pcVar7 == (char *)0x0" (identifier "pcVar7") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          iVar9 = WriteBlobByte(param_1,0xff);\n          iVar10 = iVar10 + iVar9;\n        }" ({ "{") (expression_statement "iVar9 = WriteBlobByte(param_1,0xff);" (assignment_expression "iVar9 = WriteBlobByte(param_1,0xff)" (identifier "iVar9") (= "=") (call_expression "WriteBlobByte(param_1,0xff)" (identifier "WriteBlobByte") (argument_list "(param_1,0xff)" (( "(") (identifier "param_1") (, ",") (number_literal "0xff") () ")")))) (; ";")) (expression_statement "iVar10 = iVar10 + iVar9;" (assignment_expression "iVar10 = iVar10 + iVar9" (identifier "iVar10") (= "=") (binary_expression "iVar10 + iVar9" (identifier "iVar10") (+ "+") (identifier "iVar9"))) (; ";")) (} "}")) (else_clause "else {\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }" (else "else") (compound_statement "{\n          lVar15 = strtol(pcVar7,(char **)0x0,10);\n          dVar1 = (double)lVar15;\n          uVar2 = 0;\n          if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }\n          iVar9 = WriteBlobByte(param_1,uVar2);\n          iVar10 = iVar10 + iVar9;\n          if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }\n          if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }\n        }" ({ "{") (expression_statement "lVar15 = strtol(pcVar7,(char **)0x0,10);" (assignment_expression "lVar15 = strtol(pcVar7,(char **)0x0,10)" (identifier "lVar15") (= "=") (call_expression "strtol(pcVar7,(char **)0x0,10)" (identifier "strtol") (argument_list "(pcVar7,(char **)0x0,10)" (( "(") (identifier "pcVar7") (, ",") (cast_expression "(char **)0x0" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x0")) (, ",") (number_literal "10") () ")")))) (; ";")) (expression_statement "dVar1 = (double)lVar15;" (assignment_expression "dVar1 = (double)lVar15" (identifier "dVar1") (= "=") (cast_expression "(double)lVar15" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "lVar15"))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0.0 < dVar1) {\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }" (if "if") (parenthesized_expression "(0.0 < dVar1)" (( "(") (binary_expression "0.0 < dVar1" (number_literal "0.0") (< "<") (identifier "dVar1")) () ")")) (compound_statement "{\n            uVar2 = 0xff;\n            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }\n          }" ({ "{") (expression_statement "uVar2 = 0xff;" (assignment_expression "uVar2 = 0xff" (identifier "uVar2") (= "=") (number_literal "0xff")) (; ";")) (if_statement "if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }" (if "if") (parenthesized_expression "(dVar1 / (double)DAT_002e814c < (double)DAT_002e8150)" (( "(") (binary_expression "dVar1 / (double)DAT_002e814c < (double)DAT_002e8150" (binary_expression "dVar1 / (double)DAT_002e814c" (identifier "dVar1") (/ "/") (cast_expression "(double)DAT_002e814c" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "DAT_002e814c"))) (< "<") (cast_expression "(double)DAT_002e8150" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "DAT_002e8150"))) () ")")) (compound_statement "{\n              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);\n            }" ({ "{") (expression_statement "uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);" (assignment_expression "uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8)" (identifier "uVar2") (= "=") (cast_expression "(undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8)" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (cast_expression "(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8)" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (call_expression "ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8)" (identifier "ROUND") (argument_list "(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8)" (( "(") (binary_expression "dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8" (binary_expression "dVar1 / (double)DAT_002e814c" (identifier "dVar1") (/ "/") (cast_expression "(double)DAT_002e814c" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "DAT_002e814c"))) (+ "+") (cast_expression "(double)DAT_002df2b8" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "DAT_002df2b8"))) () ")")))))) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar9 = WriteBlobByte(param_1,uVar2);" (assignment_expression "iVar9 = WriteBlobByte(param_1,uVar2)" (identifier "iVar9") (= "=") (call_expression "WriteBlobByte(param_1,uVar2)" (identifier "WriteBlobByte") (argument_list "(param_1,uVar2)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "iVar10 = iVar10 + iVar9;" (assignment_expression "iVar10 = iVar10 + iVar9" (identifier "iVar10") (= "=") (binary_expression "iVar10 + iVar9" (identifier "iVar10") (+ "+") (identifier "iVar9"))) (; ";")) (if_statement "if (local_1178[0xcca] != 0) {\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }" (if "if") (parenthesized_expression "(local_1178[0xcca] != 0)" (( "(") (binary_expression "local_1178[0xcca] != 0" (subscript_expression "local_1178[0xcca]" (identifier "local_1178") ([ "[") (number_literal "0xcca") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);\n          }" ({ "{") (expression_statement "LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1);" (call_expression "LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1)" (identifier "LogMagickEvent") (argument_list "(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,\n                           "  applying layer opacity %.20g",dVar1)" (( "(") (number_literal "0x10") (, ",") (string_literal ""coders/psd.c"" (" """) (string_content "coders/psd.c") (" """)) (, ",") (string_literal ""ApplyPSDLayerOpacity"" (" """) (string_content "ApplyPSDLayerOpacity") (" """)) (, ",") (number_literal "0x18a") (, ",") (string_literal ""  applying layer opacity %.20g"" (" """) (string_content "  applying layer opacity %.20g") (" """)) (, ",") (identifier "dVar1") () ")"))) (; ";")) (} "}"))) (if_statement "if ((float)lVar15 != DAT_002df8a8) {\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }" (if "if") (parenthesized_expression "((float)lVar15 != DAT_002df8a8)" (( "(") (binary_expression "(float)lVar15 != DAT_002df8a8" (cast_expression "(float)lVar15" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (identifier "lVar15")) (!= "!=") (identifier "DAT_002df8a8")) () ")")) (compound_statement "{\n            if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }\n            iVar9 = GetImagePixelCacheType(local_1178);\n            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }\n            local_10e8 = 1;\n            local_10e0 = 1;\n            local_10e4 = param_5;\n            local_10ec = local_1178;\n            local_10f4 = dVar1;\n            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);\n          }" ({ "{") (if_statement "if (local_1178[0xa5] != 4) {\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }" (if "if") (parenthesized_expression "(local_1178[0xa5] != 4)" (( "(") (binary_expression "local_1178[0xa5] != 4" (subscript_expression "local_1178[0xa5]" (identifier "local_1178") ([ "[") (number_literal "0xa5") (] "]")) (!= "!=") (number_literal "4")) () ")")) (compound_statement "{\n              SetImageAlphaChannel(local_1178,0xb,param_5);\n            }" ({ "{") (expression_statement "SetImageAlphaChannel(local_1178,0xb,param_5);" (call_expression "SetImageAlphaChannel(local_1178,0xb,param_5)" (identifier "SetImageAlphaChannel") (argument_list "(local_1178,0xb,param_5)" (( "(") (identifier "local_1178") (, ",") (number_literal "0xb") (, ",") (identifier "param_5") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar9 = GetImagePixelCacheType(local_1178);" (assignment_expression "iVar9 = GetImagePixelCacheType(local_1178)" (identifier "iVar9") (= "=") (call_expression "GetImagePixelCacheType(local_1178)" (identifier "GetImagePixelCacheType") (argument_list "(local_1178)" (( "(") (identifier "local_1178") () ")")))) (; ";")) (if_statement "if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }\n            else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }" (if "if") (parenthesized_expression "(((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3))))" (( "(") (binary_expression "((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&\n               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))" (parenthesized_expression "((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3))" (( "(") (binary_expression "(iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)" (parenthesized_expression "(iVar9 == 4)" (( "(") (binary_expression "iVar9 == 4" (identifier "iVar9") (== "==") (number_literal "4")) () ")")) (|| "||") (parenthesized_expression "(iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)" (( "(") (comma_expression "iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3" (assignment_expression "iVar9 = GetImagePixelCacheType(local_1178)" (identifier "iVar9") (= "=") (call_expression "GetImagePixelCacheType(local_1178)" (identifier "GetImagePixelCacheType") (argument_list "(local_1178)" (( "(") (identifier "local_1178") () ")")))) (, ",") (binary_expression "iVar9 == 3" (identifier "iVar9") (== "==") (number_literal "3"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))" (( "(") (parenthesized_expression "(iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3))" (( "(") (comma_expression "iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)" (assignment_expression "iVar9 = GetImagePixelCacheType(local_1178)" (identifier "iVar9") (= "=") (call_expression "GetImagePixelCacheType(local_1178)" (identifier "GetImagePixelCacheType") (argument_list "(local_1178)" (( "(") (identifier "local_1178") () ")")))) (, ",") (binary_expression "iVar9 == 4 ||\n                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)" (binary_expression "iVar9 == 4" (identifier "iVar9") (== "==") (number_literal "4")) (|| "||") (parenthesized_expression "(iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)" (( "(") (comma_expression "iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3" (assignment_expression "iVar9 = GetImagePixelCacheType(local_1178)" (identifier "iVar9") (= "=") (call_expression "GetImagePixelCacheType(local_1178)" (identifier "GetImagePixelCacheType") (argument_list "(local_1178)" (( "(") (identifier "local_1178") () ")")))) (, ",") (binary_expression "iVar9 == 3" (identifier "iVar9") (== "==") (number_literal "3"))) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n              iVar12 = GetMagickResourceLimit(7);\n              iVar9 = local_1178[7];\n              iVar11 = iVar9 + 0x3f;\n              if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }\n              bVar31 = 0x7f < iVar9;\n              if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }\n              if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }\n            }" ({ "{") (expression_statement "iVar12 = GetMagickResourceLimit(7);" (assignment_expression "iVar12 = GetMagickResourceLimit(7)" (identifier "iVar12") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (expression_statement "iVar9 = local_1178[7];" (assignment_expression "iVar9 = local_1178[7]" (identifier "iVar9") (= "=") (subscript_expression "local_1178[7]" (identifier "local_1178") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "iVar11 = iVar9 + 0x3f;" (assignment_expression "iVar11 = iVar9 + 0x3f" (identifier "iVar11") (= "=") (binary_expression "iVar9 + 0x3f" (identifier "iVar9") (+ "+") (number_literal "0x3f"))) (; ";")) (if_statement "if (-1 < iVar9) {\n                iVar11 = iVar9;\n              }" (if "if") (parenthesized_expression "(-1 < iVar9)" (( "(") (binary_expression "-1 < iVar9" (number_literal "-1") (< "<") (identifier "iVar9")) () ")")) (compound_statement "{\n                iVar11 = iVar9;\n              }" ({ "{") (expression_statement "iVar11 = iVar9;" (assignment_expression "iVar11 = iVar9" (identifier "iVar11") (= "=") (identifier "iVar9")) (; ";")) (} "}"))) (expression_statement "bVar31 = 0x7f < iVar9;" (assignment_expression "bVar31 = 0x7f < iVar9" (identifier "bVar31") (= "=") (binary_expression "0x7f < iVar9" (number_literal "0x7f") (< "<") (identifier "iVar9"))) (; ";")) (if_statement "if (iVar12 < iVar11 >> 6) {\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }" (if "if") (parenthesized_expression "(iVar12 < iVar11 >> 6)" (( "(") (binary_expression "iVar12 < iVar11 >> 6" (identifier "iVar12") (< "<") (binary_expression "iVar11 >> 6" (identifier "iVar11") (>> ">>") (number_literal "6"))) () ")")) (compound_statement "{\n                iVar9 = GetMagickResourceLimit(7);\n                bVar31 = 1 < iVar9;\n              }" ({ "{") (expression_statement "iVar9 = GetMagickResourceLimit(7);" (assignment_expression "iVar9 = GetMagickResourceLimit(7)" (identifier "iVar9") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (expression_statement "bVar31 = 1 < iVar9;" (assignment_expression "bVar31 = 1 < iVar9" (identifier "bVar31") (= "=") (binary_expression "1 < iVar9" (number_literal "1") (< "<") (identifier "iVar9"))) (; ";")) (} "}"))) (if_statement "if (bVar31) {\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }\n              else {\nLAB_0029d989:\n                iVar9 = 1;\n              }" (if "if") (parenthesized_expression "(bVar31)" (( "(") (identifier "bVar31") () ")")) (compound_statement "{\n                iVar12 = GetMagickResourceLimit(7);\n                iVar11 = local_1178[7];\n                iVar9 = iVar11 + 0x3f;\n                if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }\n                iVar9 = iVar9 >> 6;\n                if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }\n              }" ({ "{") (expression_statement "iVar12 = GetMagickResourceLimit(7);" (assignment_expression "iVar12 = GetMagickResourceLimit(7)" (identifier "iVar12") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (expression_statement "iVar11 = local_1178[7];" (assignment_expression "iVar11 = local_1178[7]" (identifier "iVar11") (= "=") (subscript_expression "local_1178[7]" (identifier "local_1178") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "iVar9 = iVar11 + 0x3f;" (assignment_expression "iVar9 = iVar11 + 0x3f" (identifier "iVar9") (= "=") (binary_expression "iVar11 + 0x3f" (identifier "iVar11") (+ "+") (number_literal "0x3f"))) (; ";")) (if_statement "if (-1 < iVar11) {\n                  iVar9 = iVar11;\n                }" (if "if") (parenthesized_expression "(-1 < iVar11)" (( "(") (binary_expression "-1 < iVar11" (number_literal "-1") (< "<") (identifier "iVar11")) () ")")) (compound_statement "{\n                  iVar9 = iVar11;\n                }" ({ "{") (expression_statement "iVar9 = iVar11;" (assignment_expression "iVar9 = iVar11" (identifier "iVar9") (= "=") (identifier "iVar11")) (; ";")) (} "}"))) (expression_statement "iVar9 = iVar9 >> 6;" (assignment_expression "iVar9 = iVar9 >> 6" (identifier "iVar9") (= "=") (binary_expression "iVar9 >> 6" (identifier "iVar9") (>> ">>") (number_literal "6"))) (; ";")) (if_statement "if (iVar12 < iVar9) {\n                  iVar9 = GetMagickResourceLimit(7);\n                }" (if "if") (parenthesized_expression "(iVar12 < iVar9)" (( "(") (binary_expression "iVar12 < iVar9" (identifier "iVar12") (< "<") (identifier "iVar9")) () ")")) (compound_statement "{\n                  iVar9 = GetMagickResourceLimit(7);\n                }" ({ "{") (expression_statement "iVar9 = GetMagickResourceLimit(7);" (assignment_expression "iVar9 = GetMagickResourceLimit(7)" (identifier "iVar9") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\nLAB_0029d989:\n                iVar9 = 1;\n              }" (else "else") (compound_statement "{\nLAB_0029d989:\n                iVar9 = 1;\n              }" ({ "{") (labeled_statement "LAB_0029d989:\n                iVar9 = 1;" (statement_identifier "LAB_0029d989") (: ":") (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" (identifier "iVar9") (= "=") (number_literal "1")) (; ";"))) (} "}")))) (} "}")) (else_clause "else {\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }" (else "else") (compound_statement "{\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }\n              uVar34 = GetMagickResourceLimit(7);\n              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }\n            }" ({ "{") (expression_statement "uVar34 = GetMagickResourceLimit(7);" (assignment_expression "uVar34 = GetMagickResourceLimit(7)" (identifier "uVar34") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (if_statement "if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }" (if "if") (parenthesized_expression "(((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))" (( "(") (binary_expression "((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)" (parenthesized_expression "((int)((ulonglong)uVar34 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)uVar34 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar34 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar34 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar34 >> 0x20" (cast_expression "(ulonglong)uVar34" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar34")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uint)uVar34 < 2)" (( "(") (binary_expression "(uint)uVar34 < 2" (cast_expression "(uint)uVar34" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar34")) (< "<") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n                uVar34 = GetMagickResourceLimit(7);\n                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;\n              }" ({ "{") (expression_statement "uVar34 = GetMagickResourceLimit(7);" (assignment_expression "uVar34 = GetMagickResourceLimit(7)" (identifier "uVar34") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (if_statement "if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))\n                goto LAB_0029d989;" (if "if") (parenthesized_expression "(((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))" (( "(") (binary_expression "((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)" (parenthesized_expression "((int)((ulonglong)uVar34 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)uVar34 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar34 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar34 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar34 >> 0x20" (cast_expression "(ulonglong)uVar34" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar34")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uint)uVar34 < 2)" (( "(") (binary_expression "(uint)uVar34 < 2" (cast_expression "(uint)uVar34" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar34")) (< "<") (number_literal "2")) () ")"))) () ")")) (goto_statement "goto LAB_0029d989;" (goto "goto") (statement_identifier "LAB_0029d989") (; ";"))) (} "}"))) (expression_statement "uVar34 = GetMagickResourceLimit(7);" (assignment_expression "uVar34 = GetMagickResourceLimit(7)" (identifier "uVar34") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (if_statement "if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {\n                iVar9 = GetMagickResourceLimit(7);\n              }\n              else {\n                iVar9 = 2;\n              }" (if "if") (parenthesized_expression "(((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))" (( "(") (binary_expression "((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)" (parenthesized_expression "((int)((ulonglong)uVar34 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)uVar34 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar34 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar34 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar34 >> 0x20" (cast_expression "(ulonglong)uVar34" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar34")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uint)uVar34 < 2)" (( "(") (binary_expression "(uint)uVar34 < 2" (cast_expression "(uint)uVar34" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar34")) (< "<") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n                iVar9 = GetMagickResourceLimit(7);\n              }" ({ "{") (expression_statement "iVar9 = GetMagickResourceLimit(7);" (assignment_expression "iVar9 = GetMagickResourceLimit(7)" (identifier "iVar9") (= "=") (call_expression "GetMagickResourceLimit(7)" (identifier "GetMagickResourceLimit") (argument_list "(7)" (( "(") (number_literal "7") () ")")))) (; ";")) (} "}")) (else_clause "else {\n                iVar9 = 2;\n              }" (else "else") (compound_statement "{\n                iVar9 = 2;\n              }" ({ "{") (expression_statement "iVar9 = 2;" (assignment_expression "iVar9 = 2" (identifier "iVar9") (= "=") (number_literal "2")) (; ";")) (} "}")))) (} "}")))) (expression_statement "local_10e8 = 1;" (assignment_expression "local_10e8 = 1" (identifier "local_10e8") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_10e0 = 1;" (assignment_expression "local_10e0 = 1" (identifier "local_10e0") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_10e4 = param_5;" (assignment_expression "local_10e4 = param_5" (identifier "local_10e4") (= "=") (identifier "param_5")) (; ";")) (expression_statement "local_10ec = local_1178;" (assignment_expression "local_10ec = local_1178" (identifier "local_10ec") (= "=") (identifier "local_1178")) (; ";")) (expression_statement "local_10f4 = dVar1;" (assignment_expression "local_10f4 = dVar1" (identifier "local_10f4") (= "=") (identifier "dVar1")) (; ";")) (expression_statement "GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);" (call_expression "GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0)" (identifier "GOMP_parallel") (argument_list "(FUN_00299110,&local_10f4,iVar9,0)" (( "(") (identifier "FUN_00299110") (, ",") (pointer_expression "&local_10f4" (& "&") (identifier "local_10f4")) (, ",") (identifier "iVar9") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar11 = WriteBlobByte(param_1,0);" (assignment_expression "iVar11 = WriteBlobByte(param_1,0)" (identifier "iVar11") (= "=") (call_expression "WriteBlobByte(param_1,0)" (identifier "WriteBlobByte") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');" (assignment_expression "iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01')" (identifier "iVar12") (= "=") (call_expression "WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01')" (identifier "WriteBlobByte") (argument_list "(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01')" (( "(") (identifier "param_1") (, ",") (binary_expression "(local_1178[0x8f] == 0x34) * '\x03' + '\x01'" (binary_expression "(local_1178[0x8f] == 0x34) * '\x03'" (parenthesized_expression "(local_1178[0x8f] == 0x34)" (( "(") (binary_expression "local_1178[0x8f] == 0x34" (subscript_expression "local_1178[0x8f]" (identifier "local_1178") ([ "[") (number_literal "0x8f") (] "]")) (== "==") (number_literal "0x34")) () ")")) (* "*") (char_literal "'\x03'" (' "'") (escape_sequence "\x03") (' "'"))) (+ "+") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")))) (; ";")) (expression_statement "iVar9 = WriteBlobByte(param_1,0);" (assignment_expression "iVar9 = WriteBlobByte(param_1,0)" (identifier "iVar9") (= "=") (call_expression "WriteBlobByte(param_1,0)" (identifier "WriteBlobByte") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar9 = iVar9 + iVar10 + iVar11 + iVar12;" (assignment_expression "iVar9 = iVar9 + iVar10 + iVar11 + iVar12" (identifier "iVar9") (= "=") (binary_expression "iVar9 + iVar10 + iVar11 + iVar12" (binary_expression "iVar9 + iVar10 + iVar11" (binary_expression "iVar9 + iVar10" (identifier "iVar9") (+ "+") (identifier "iVar10")) (+ "+") (identifier "iVar11")) (+ "+") (identifier "iVar12"))) (; ";")) (expression_statement "puVar30 = &DAT_0034d420;" (assignment_expression "puVar30 = &DAT_0034d420" (identifier "puVar30") (= "=") (pointer_expression "&DAT_0034d420" (& "&") (identifier "DAT_0034d420"))) (; ";")) (expression_statement "puVar29 = local_10d9;" (assignment_expression "puVar29 = local_10d9" (identifier "puVar29") (= "=") (identifier "local_10d9")) (; ";")) (for_statement "for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }" (for "for") (( "(") (assignment_expression "iVar10 = 0x2d" (identifier "iVar10") (= "=") (number_literal "0x2d")) (; ";") (binary_expression "iVar10 != 0" (identifier "iVar10") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar10 = iVar10 + -1" (identifier "iVar10") (= "=") (binary_expression "iVar10 + -1" (identifier "iVar10") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n          *puVar29 = *puVar30;\n          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;\n          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;\n        }" ({ "{") (expression_statement "*puVar29 = *puVar30;" (assignment_expression "*puVar29 = *puVar30" (pointer_expression "*puVar29" (* "*") (identifier "puVar29")) (= "=") (pointer_expression "*puVar30" (* "*") (identifier "puVar30"))) (; ";")) (expression_statement "puVar30 = puVar30 + (uint)bVar32 * -2 + 1;" (assignment_expression "puVar30 = puVar30 + (uint)bVar32 * -2 + 1" (identifier "puVar30") (= "=") (binary_expression "puVar30 + (uint)bVar32 * -2 + 1" (binary_expression "puVar30 + (uint)bVar32 * -2" (identifier "puVar30") (+ "+") (binary_expression "(uint)bVar32 * -2" (cast_expression "(uint)bVar32" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar32")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar29 = puVar29 + (uint)bVar32 * -2 + 1;" (assignment_expression "puVar29 = puVar29 + (uint)bVar32 * -2 + 1" (identifier "puVar29") (= "=") (binary_expression "puVar29 + (uint)bVar32 * -2 + 1" (binary_expression "puVar29 + (uint)bVar32 * -2" (identifier "puVar29") (+ "+") (binary_expression "(uint)bVar32 * -2" (cast_expression "(uint)bVar32" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar32")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "iVar10 = GetImageProfile(local_1178,"psd:additional-info");" (assignment_expression "iVar10 = GetImageProfile(local_1178,"psd:additional-info")" (identifier "iVar10") (= "=") (call_expression "GetImageProfile(local_1178,"psd:additional-info")" (identifier "GetImageProfile") (argument_list "(local_1178,"psd:additional-info")" (( "(") (identifier "local_1178") (, ",") (string_literal ""psd:additional-info"" (" """) (string_content "psd:additional-info") (" """)) () ")")))) (; ";")) (if_statement "if (iVar10 == 0) {\nLAB_0029ddc4:\n          iVar11 = 0;\n        }\n        else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }" (if "if") (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0029ddc4:\n          iVar11 = 0;\n        }" ({ "{") (labeled_statement "LAB_0029ddc4:\n          iVar11 = 0;" (statement_identifier "LAB_0029ddc4") (: ":") (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" (identifier "iVar11") (= "=") (number_literal "0")) (; ";"))) (} "}")) (else_clause "else {\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }" (else "else") (compound_statement "{\n          uVar16 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar16,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }\n        }" ({ "{") (expression_statement "uVar16 = GetImageOption(param_2,"psd:additional-info");" (assignment_expression "uVar16 = GetImageOption(param_2,"psd:additional-info")" (identifier "uVar16") (= "=") (call_expression "GetImageOption(param_2,"psd:additional-info")" (identifier "GetImageOption") (argument_list "(param_2,"psd:additional-info")" (( "(") (identifier "param_2") (, ",") (string_literal ""psd:additional-info"" (" """) (string_content "psd:additional-info") (" """)) () ")")))) (; ";")) (expression_statement "iVar12 = LocaleCompare(uVar16,"all");" (assignment_expression "iVar12 = LocaleCompare(uVar16,"all")" (identifier "iVar12") (= "=") (call_expression "LocaleCompare(uVar16,"all")" (identifier "LocaleCompare") (argument_list "(uVar16,"all")" (( "(") (identifier "uVar16") (, ",") (string_literal ""all"" (" """) (string_content "all") (" """)) () ")")))) (; ";")) (expression_statement "iVar11 = iVar10;" (assignment_expression "iVar11 = iVar10" (identifier "iVar11") (= "=") (identifier "iVar10")) (; ";")) (if_statement "if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }" (if "if") (parenthesized_expression "(iVar12 != 0)" (( "(") (binary_expression "iVar12 != 0" (identifier "iVar12") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            iVar11 = LocaleCompare(uVar16,"selective");\n            if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }\n          }" ({ "{") (expression_statement "iVar11 = LocaleCompare(uVar16,"selective");" (assignment_expression "iVar11 = LocaleCompare(uVar16,"selective")" (identifier "iVar11") (= "=") (call_expression "LocaleCompare(uVar16,"selective")" (identifier "LocaleCompare") (argument_list "(uVar16,"selective")" (( "(") (identifier "uVar16") (, ",") (string_literal ""selective"" (" """) (string_content "selective") (" """)) () ")")))) (; ";")) (if_statement "if (iVar11 == 0) {\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }" (if "if") (parenthesized_expression "(iVar11 == 0)" (( "(") (binary_expression "iVar11 == 0" (identifier "iVar11") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              uVar27 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }" ({ "{") (expression_statement "uVar27 = GetStringInfoLength(iVar10);" (assignment_expression "uVar27 = GetStringInfoLength(iVar10)" (identifier "uVar27") (= "=") (call_expression "GetStringInfoLength(iVar10)" (identifier "GetStringInfoLength") (argument_list "(iVar10)" (( "(") (identifier "iVar10") () ")")))) (; ";")) (expression_statement "__dest = (void *)GetStringInfoDatum(iVar10);" (assignment_expression "__dest = (void *)GetStringInfoDatum(iVar10)" (identifier "__dest") (= "=") (cast_expression "(void *)GetStringInfoDatum(iVar10)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetStringInfoDatum(iVar10)" (identifier "GetStringInfoDatum") (argument_list "(iVar10)" (( "(") (identifier "iVar10") () ")"))))) (; ";")) (if_statement "if (uVar27 < 0xc) {\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }\n              else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }" (if "if") (parenthesized_expression "(uVar27 < 0xc)" (( "(") (binary_expression "uVar27 < 0xc" (identifier "uVar27") (< "<") (number_literal "0xc")) () ")")) (compound_statement "{\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n              }" ({ "{") (expression_statement "iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");" (assignment_expression "iVar11 = RemoveImageProfile(local_1178,"psd:additional-info")" (identifier "iVar11") (= "=") (call_expression "RemoveImageProfile(local_1178,"psd:additional-info")" (identifier "RemoveImageProfile") (argument_list "(local_1178,"psd:additional-info")" (( "(") (identifier "local_1178") (, ",") (string_literal ""psd:additional-info"" (" """) (string_content "psd:additional-info") (" """)) () ")")))) (; ";")) (} "}")) (else_clause "else {\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }" (else "else") (compound_statement "{\n                local_115c = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);\n                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");\n                if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }\n              }" ({ "{") (expression_statement "local_115c = 0;" (assignment_expression "local_115c = 0" (identifier "local_115c") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                } while (0xb < uVar27);" (do "do") (compound_statement "{\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar27 = uVar27 - 0xc;\n                  local_1021 = 0;\n                  uVar28 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar30 = local_10d9;\n                  if (uVar27 < uVar28) goto LAB_0029ddc4;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);\n                  uVar27 = uVar27 - uVar28;\n                  if (uVar27 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);\nLAB_0029cee4:\n                }" ({ "{") (expression_statement "local_1025 = *(undefined1 *)((int)__dest + 4);" (assignment_expression "local_1025 = *(undefined1 *)((int)__dest + 4)" (identifier "local_1025") (= "=") (pointer_expression "*(undefined1 *)((int)__dest + 4)" (* "*") (cast_expression "(undefined1 *)((int)__dest + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + 4)" (( "(") (binary_expression "(int)__dest + 4" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar27 = uVar27 - 0xc;" (assignment_expression "uVar27 = uVar27 - 0xc" (identifier "uVar27") (= "=") (binary_expression "uVar27 - 0xc" (identifier "uVar27") (- "-") (number_literal "0xc"))) (; ";")) (expression_statement "local_1021 = 0;" (assignment_expression "local_1021 = 0" (identifier "local_1021") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar28 = *(uint *)((int)__dest + 8);" (assignment_expression "uVar28 = *(uint *)((int)__dest + 8)" (identifier "uVar28") (= "=") (pointer_expression "*(uint *)((int)__dest + 8)" (* "*") (cast_expression "(uint *)((int)__dest + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + 8)" (( "(") (binary_expression "(int)__dest + 8" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "local_1024 = *(undefined1 *)((int)__dest + 5);" (assignment_expression "local_1024 = *(undefined1 *)((int)__dest + 5)" (identifier "local_1024") (= "=") (pointer_expression "*(undefined1 *)((int)__dest + 5)" (* "*") (cast_expression "(undefined1 *)((int)__dest + 5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + 5)" (( "(") (binary_expression "(int)__dest + 5" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (number_literal "5")) () ")"))))) (; ";")) (expression_statement "uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18;" (assignment_expression "uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18" (identifier "uVar28") (= "=") (binary_expression "uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |\n                           uVar28 << 0x18" (binary_expression "uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8" (binary_expression "uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8" (binary_expression "uVar28 >> 0x18" (identifier "uVar28") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar28 & 0xff0000) >> 8" (parenthesized_expression "(uVar28 & 0xff0000)" (( "(") (binary_expression "uVar28 & 0xff0000" (identifier "uVar28") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar28 & 0xff00) << 8" (parenthesized_expression "(uVar28 & 0xff00)" (( "(") (binary_expression "uVar28 & 0xff00" (identifier "uVar28") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar28 << 0x18" (identifier "uVar28") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "local_1023 = *(undefined1 *)((int)__dest + 6);" (assignment_expression "local_1023 = *(undefined1 *)((int)__dest + 6)" (identifier "local_1023") (= "=") (pointer_expression "*(undefined1 *)((int)__dest + 6)" (* "*") (cast_expression "(undefined1 *)((int)__dest + 6)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + 6)" (( "(") (binary_expression "(int)__dest + 6" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (number_literal "6")) () ")"))))) (; ";")) (expression_statement "local_1022 = *(undefined1 *)((int)__dest + 7);" (assignment_expression "local_1022 = *(undefined1 *)((int)__dest + 7)" (identifier "local_1022") (= "=") (pointer_expression "*(undefined1 *)((int)__dest + 7)" (* "*") (cast_expression "(undefined1 *)((int)__dest + 7)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + 7)" (( "(") (binary_expression "(int)__dest + 7" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (number_literal "7")) () ")"))))) (; ";")) (expression_statement "puVar30 = local_10d9;" (assignment_expression "puVar30 = local_10d9" (identifier "puVar30") (= "=") (identifier "local_10d9")) (; ";")) (if_statement "if (uVar27 < uVar28) goto LAB_0029ddc4;" (if "if") (parenthesized_expression "(uVar27 < uVar28)" (( "(") (binary_expression "uVar27 < uVar28" (identifier "uVar27") (< "<") (identifier "uVar28")) () ")")) (goto_statement "goto LAB_0029ddc4;" (goto "goto") (statement_identifier "LAB_0029ddc4") (; ";"))) (do_statement "do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  } while ((undefined4 *)&local_1025 != puVar30);" (do "do") (compound_statement "{\n                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);\n                    if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }\n                    puVar30 = (undefined4 *)((int)puVar30 + 5);\n                  }" ({ "{") (expression_statement "iVar11 = LocaleNCompare(&local_1025,puVar30,5);" (assignment_expression "iVar11 = LocaleNCompare(&local_1025,puVar30,5)" (identifier "iVar11") (= "=") (call_expression "LocaleNCompare(&local_1025,puVar30,5)" (identifier "LocaleNCompare") (argument_list "(&local_1025,puVar30,5)" (( "(") (pointer_expression "&local_1025" (& "&") (identifier "local_1025")) (, ",") (identifier "puVar30") (, ",") (number_literal "5") () ")")))) (; ";")) (if_statement "if (iVar11 == 0) {\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }" (if "if") (parenthesized_expression "(iVar11 == 0)" (( "(") (binary_expression "iVar11 == 0" (identifier "iVar11") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                      uVar27 = uVar27 - uVar28;\n                      local_115c = local_115c + 0xc + uVar28;\n                      __dest = (void *)((int)__dest + uVar28 + 0xc);\n                      goto LAB_0029cee4;\n                    }" ({ "{") (expression_statement "uVar27 = uVar27 - uVar28;" (assignment_expression "uVar27 = uVar27 - uVar28" (identifier "uVar27") (= "=") (binary_expression "uVar27 - uVar28" (identifier "uVar27") (- "-") (identifier "uVar28"))) (; ";")) (expression_statement "local_115c = local_115c + 0xc + uVar28;" (assignment_expression "local_115c = local_115c + 0xc + uVar28" (identifier "local_115c") (= "=") (binary_expression "local_115c + 0xc + uVar28" (binary_expression "local_115c + 0xc" (identifier "local_115c") (+ "+") (number_literal "0xc")) (+ "+") (identifier "uVar28"))) (; ";")) (expression_statement "__dest = (void *)((int)__dest + uVar28 + 0xc);" (assignment_expression "__dest = (void *)((int)__dest + uVar28 + 0xc)" (identifier "__dest") (= "=") (cast_expression "(void *)((int)__dest + uVar28 + 0xc)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + uVar28 + 0xc)" (( "(") (binary_expression "(int)__dest + uVar28 + 0xc" (binary_expression "(int)__dest + uVar28" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "uVar28")) (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (goto_statement "goto LAB_0029cee4;" (goto "goto") (statement_identifier "LAB_0029cee4") (; ";")) (} "}"))) (expression_statement "puVar30 = (undefined4 *)((int)puVar30 + 5);" (assignment_expression "puVar30 = (undefined4 *)((int)puVar30 + 5)" (identifier "puVar30") (= "=") (cast_expression "(undefined4 *)((int)puVar30 + 5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar30 + 5)" (( "(") (binary_expression "(int)puVar30 + 5" (cast_expression "(int)puVar30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar30")) (+ "+") (number_literal "5")) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((undefined4 *)&local_1025 != puVar30)" (( "(") (binary_expression "(undefined4 *)&local_1025 != puVar30" (cast_expression "(undefined4 *)&local_1025" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_1025" (& "&") (identifier "local_1025"))) (!= "!=") (identifier "puVar30")) () ")")) (; ";")) (expression_statement "uVar27 = uVar27 - uVar28;" (assignment_expression "uVar27 = uVar27 - uVar28" (identifier "uVar27") (= "=") (binary_expression "uVar27 - uVar28" (identifier "uVar27") (- "-") (identifier "uVar28"))) (; ";")) (if_statement "if (uVar27 == 0) break;" (if "if") (parenthesized_expression "(uVar27 == 0)" (( "(") (binary_expression "uVar27 == 0" (identifier "uVar27") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);" (call_expression "memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27)" (identifier "memmove") (argument_list "(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27)" (( "(") (identifier "__dest") (, ",") (cast_expression "(void *)((int)__dest + uVar28 + 0xc)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + uVar28 + 0xc)" (( "(") (binary_expression "(int)__dest + uVar28 + 0xc" (binary_expression "(int)__dest + uVar28" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "uVar28")) (+ "+") (number_literal "0xc")) () ")"))) (, ",") (identifier "uVar27") () ")"))) (; ";")) (labeled_statement "LAB_0029cee4:" (statement_identifier "LAB_0029cee4") (: ":") (expression_statement "" (; ""))) (} "}")) (while "while") (parenthesized_expression "(0xb < uVar27)" (( "(") (binary_expression "0xb < uVar27" (number_literal "0xb") (< "<") (identifier "uVar27")) () ")")) (; ";")) (expression_statement "iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");" (assignment_expression "iVar11 = RemoveImageProfile(local_1178,"psd:additional-info")" (identifier "iVar11") (= "=") (call_expression "RemoveImageProfile(local_1178,"psd:additional-info")" (identifier "RemoveImageProfile") (argument_list "(local_1178,"psd:additional-info")" (( "(") (identifier "local_1178") (, ",") (string_literal ""psd:additional-info"" (" """) (string_content "psd:additional-info") (" """)) () ")")))) (; ";")) (if_statement "if (local_115c != 0) {\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }" (if "if") (parenthesized_expression "(local_115c != 0)" (( "(") (binary_expression "local_115c != 0" (identifier "local_115c") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                  SetStringInfoLength(iVar11,local_115c);\n                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);\n                  goto LAB_0029cfc8;\n                }" ({ "{") (expression_statement "SetStringInfoLength(iVar11,local_115c);" (call_expression "SetStringInfoLength(iVar11,local_115c)" (identifier "SetStringInfoLength") (argument_list "(iVar11,local_115c)" (( "(") (identifier "iVar11") (, ",") (identifier "local_115c") () ")"))) (; ";")) (expression_statement "SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);" (call_expression "SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5)" (identifier "SetImageProfile") (argument_list "(local_1178,"psd:additional-info",iVar10,param_5)" (( "(") (identifier "local_1178") (, ",") (string_literal ""psd:additional-info"" (" """) (string_content "psd:additional-info") (" """)) (, ",") (identifier "iVar10") (, ",") (identifier "param_5") () ")"))) (; ";")) (goto_statement "goto LAB_0029cfc8;" (goto "goto") (statement_identifier "LAB_0029cfc8") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar11 = DestroyStringInfo(iVar11);" (assignment_expression "iVar11 = DestroyStringInfo(iVar11)" (identifier "iVar11") (= "=") (call_expression "DestroyStringInfo(iVar11)" (identifier "DestroyStringInfo") (argument_list "(iVar11)" (( "(") (identifier "iVar11") () ")")))) (; ";")) (} "}")) (else_clause "else {\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }" (else "else") (compound_statement "{\n              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar16);\n            }" ({ "{") (expression_statement "uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");" (assignment_expression "uVar16 = RemoveImageProfile(local_1178,"psd:additional-info")" (identifier "uVar16") (= "=") (call_expression "RemoveImageProfile(local_1178,"psd:additional-info")" (identifier "RemoveImageProfile") (argument_list "(local_1178,"psd:additional-info")" (( "(") (identifier "local_1178") (, ",") (string_literal ""psd:additional-info"" (" """) (string_content "psd:additional-info") (" """)) () ")")))) (; ";")) (expression_statement "iVar11 = DestroyStringInfo(uVar16);" (assignment_expression "iVar11 = DestroyStringInfo(uVar16)" (identifier "iVar11") (= "=") (call_expression "DestroyStringInfo(uVar16)" (identifier "DestroyStringInfo") (argument_list "(uVar16)" (( "(") (identifier "uVar16") () ")")))) (; ";")) (} "}")))) (} "}"))) (} "}")))) (labeled_statement "LAB_0029cfc8:\n        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);" (statement_identifier "LAB_0029cfc8") (: ":") (expression_statement "pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);" (assignment_expression "pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5)" (identifier "pcVar7") (= "=") (cast_expression "(char *)GetImageProperty(local_1178,"label",param_5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetImageProperty(local_1178,"label",param_5)" (identifier "GetImageProperty") (argument_list "(local_1178,"label",param_5)" (( "(") (identifier "local_1178") (, ",") (string_literal ""label"" (" """) (string_content "label") (" """)) (, ",") (identifier "param_5") () ")"))))) (; ";"))) (if_statement "if (pcVar7 == (char *)0x0) {\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }" (if "if") (parenthesized_expression "(pcVar7 == (char *)0x0)" (( "(") (binary_expression "pcVar7 == (char *)0x0" (identifier "pcVar7") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          pcVar7 = local_1020;\n          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);\n        }" ({ "{") (expression_statement "pcVar7 = local_1020;" (assignment_expression "pcVar7 = local_1020" (identifier "pcVar7") (= "=") (identifier "local_1020")) (; ";")) (expression_statement "FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);" (call_expression "FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c)" (identifier "FormatLocaleString") (argument_list "(pcVar7,0x1000,"L%.20g",(double)local_114c)" (( "(") (identifier "pcVar7") (, ",") (number_literal "0x1000") (, ",") (string_literal ""L%.20g"" (" """) (string_content "L%.20g") (" """)) (, ",") (cast_expression "(double)local_114c" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "local_114c")) () ")"))) (; ";")) (} "}"))) (expression_statement "sVar8 = strlen(pcVar7);" (assignment_expression "sVar8 = strlen(pcVar7)" (identifier "sVar8") (= "=") (call_expression "strlen(pcVar7)" (identifier "strlen") (argument_list "(pcVar7)" (( "(") (identifier "pcVar7") () ")")))) (; ";")) (expression_statement "uVar27 = sVar8 + 1;" (assignment_expression "uVar27 = sVar8 + 1" (identifier "uVar27") (= "=") (binary_expression "sVar8 + 1" (identifier "sVar8") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((uVar27 & 3) != 0) {\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }" (if "if") (parenthesized_expression "((uVar27 & 3) != 0)" (( "(") (binary_expression "(uVar27 & 3) != 0" (parenthesized_expression "(uVar27 & 3)" (( "(") (binary_expression "uVar27 & 3" (identifier "uVar27") (& "&") (number_literal "3")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar27 = (uVar27 & 0xfffffffc) + 4;\n        }" ({ "{") (expression_statement "uVar27 = (uVar27 & 0xfffffffc) + 4;" (assignment_expression "uVar27 = (uVar27 & 0xfffffffc) + 4" (identifier "uVar27") (= "=") (binary_expression "(uVar27 & 0xfffffffc) + 4" (parenthesized_expression "(uVar27 & 0xfffffffc)" (( "(") (binary_expression "uVar27 & 0xfffffffc" (identifier "uVar27") (& "&") (number_literal "0xfffffffc")) () ")")) (+ "+") (number_literal "4"))) (; ";")) (} "}"))) (if_statement "if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }" (if "if") (parenthesized_expression "(iVar11 != 0)" (( "(") (binary_expression "iVar11 != 0" (identifier "iVar11") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar27 = uVar27 + iVar10;\n        }" ({ "{") (expression_statement "iVar10 = GetStringInfoLength(iVar11);" (assignment_expression "iVar10 = GetStringInfoLength(iVar11)" (identifier "iVar10") (= "=") (call_expression "GetStringInfoLength(iVar11)" (identifier "GetStringInfoLength") (argument_list "(iVar11)" (( "(") (identifier "iVar11") () ")")))) (; ";")) (expression_statement "uVar27 = uVar27 + iVar10;" (assignment_expression "uVar27 = uVar27 + iVar10" (identifier "uVar27") (= "=") (binary_expression "uVar27 + iVar10" (identifier "uVar27") (+ "+") (identifier "iVar10"))) (; ";")) (} "}"))) (if_statement "if (local_1174 == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }" (if "if") (parenthesized_expression "(local_1174 == 0)" (( "(") (binary_expression "local_1174 == 0" (identifier "local_1174") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar10 = WriteBlobLong(param_1,uVar27 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar9;\n        }" ({ "{") (expression_statement "iVar10 = WriteBlobLong(param_1,uVar27 + 8);" (assignment_expression "iVar10 = WriteBlobLong(param_1,uVar27 + 8)" (identifier "iVar10") (= "=") (call_expression "WriteBlobLong(param_1,uVar27 + 8)" (identifier "WriteBlobLong") (argument_list "(param_1,uVar27 + 8)" (( "(") (identifier "param_1") (, ",") (binary_expression "uVar27 + 8" (identifier "uVar27") (+ "+") (number_literal "8")) () ")")))) (; ";")) (expression_statement "iVar12 = WriteBlobLong(param_1,0);" (assignment_expression "iVar12 = WriteBlobLong(param_1,0)" (identifier "iVar12") (= "=") (call_expression "WriteBlobLong(param_1,0)" (identifier "WriteBlobLong") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar10 = iVar10 + iVar12 + iVar9;" (assignment_expression "iVar10 = iVar10 + iVar12 + iVar9" (identifier "iVar10") (= "=") (binary_expression "iVar10 + iVar12 + iVar9" (binary_expression "iVar10 + iVar12" (identifier "iVar10") (+ "+") (identifier "iVar12")) (+ "+") (identifier "iVar9"))) (; ";")) (} "}")) (else_clause "else {\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }" (else "else") (compound_statement "{\n          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);\n          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }\n          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];\n          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];\n          iVar13 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));\n          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));\n          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));\n          iVar21 = WriteBlobByte(param_1,local_1103);\n          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;\n        }" ({ "{") (expression_statement "iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);" (assignment_expression "iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c)" (identifier "iVar12") (= "=") (call_expression "WriteBlobLong(param_1,uVar27 + 0x1c)" (identifier "WriteBlobLong") (argument_list "(param_1,uVar27 + 0x1c)" (( "(") (identifier "param_1") (, ",") (binary_expression "uVar27 + 0x1c" (identifier "uVar27") (+ "+") (number_literal "0x1c")) () ")")))) (; ";")) (if_statement "if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }" (if "if") (parenthesized_expression "((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0))" (( "(") (binary_expression "(*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)" (parenthesized_expression "(*(int *)(local_1174 + 0x23c) != 0x34)" (( "(") (binary_expression "*(int *)(local_1174 + 0x23c) != 0x34" (pointer_expression "*(int *)(local_1174 + 0x23c)" (* "*") (cast_expression "(int *)(local_1174 + 0x23c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_1174 + 0x23c)" (( "(") (binary_expression "local_1174 + 0x23c" (identifier "local_1174") (+ "+") (number_literal "0x23c")) () ")")))) (!= "!=") (number_literal "0x34")) () ")")) (&& "&&") (parenthesized_expression "(local_1178[0xa5] != 0)" (( "(") (binary_expression "local_1178[0xa5] != 0" (subscript_expression "local_1178[0xa5]" (identifier "local_1178") ([ "[") (number_literal "0xa5") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);\n          }" ({ "{") (expression_statement "FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);" (call_expression "FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5)" (identifier "FUN_00299700") (argument_list "((double)((float)local_1103 * DAT_002e814c),param_5)" (( "(") (cast_expression "(double)((float)local_1103 * DAT_002e814c)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (parenthesized_expression "((float)local_1103 * DAT_002e814c)" (( "(") (binary_expression "(float)local_1103 * DAT_002e814c" (cast_expression "(float)local_1103" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (identifier "local_1103")) (* "*") (identifier "DAT_002e814c")) () ")"))) (, ",") (identifier "param_5") () ")"))) (; ";")) (} "}"))) (expression_statement "*(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];" (assignment_expression "*(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83]" (pointer_expression "*(int *)(local_1174 + 0x20c)" (* "*") (cast_expression "(int *)(local_1174 + 0x20c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_1174 + 0x20c)" (( "(") (binary_expression "local_1174 + 0x20c" (identifier "local_1174") (+ "+") (number_literal "0x20c")) () ")")))) (= "=") (binary_expression "*(int *)(local_1174 + 0x20c) + param_1[0x83]" (pointer_expression "*(int *)(local_1174 + 0x20c)" (* "*") (cast_expression "(int *)(local_1174 + 0x20c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_1174 + 0x20c)" (( "(") (binary_expression "local_1174 + 0x20c" (identifier "local_1174") (+ "+") (number_literal "0x20c")) () ")")))) (+ "+") (subscript_expression "param_1[0x83]" (identifier "param_1") ([ "[") (number_literal "0x83") (] "]")))) (; ";")) (expression_statement "*(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];" (assignment_expression "*(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82]" (pointer_expression "*(int *)(local_1174 + 0x208)" (* "*") (cast_expression "(int *)(local_1174 + 0x208)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_1174 + 0x208)" (( "(") (binary_expression "local_1174 + 0x208" (identifier "local_1174") (+ "+") (number_literal "0x208")) () ")")))) (= "=") (binary_expression "*(int *)(local_1174 + 0x208) + param_1[0x82]" (pointer_expression "*(int *)(local_1174 + 0x208)" (* "*") (cast_expression "(int *)(local_1174 + 0x208)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_1174 + 0x208)" (( "(") (binary_expression "local_1174 + 0x208" (identifier "local_1174") (+ "+") (number_literal "0x208")) () ")")))) (+ "+") (subscript_expression "param_1[0x82]" (identifier "param_1") ([ "[") (number_literal "0x82") (] "]")))) (; ";")) (expression_statement "iVar13 = WriteBlobLong(param_1,0x14);" (assignment_expression "iVar13 = WriteBlobLong(param_1,0x14)" (identifier "iVar13") (= "=") (call_expression "WriteBlobLong(param_1,0x14)" (identifier "WriteBlobLong") (argument_list "(param_1,0x14)" (( "(") (identifier "param_1") (, ",") (number_literal "0x14") () ")")))) (; ";")) (expression_statement "iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));" (assignment_expression "iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c))" (identifier "iVar17") (= "=") (call_expression "WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c))" (identifier "WriteBlobSignedLong") (argument_list "(param_1,*(undefined4 *)(local_1174 + 0x20c))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(local_1174 + 0x20c)" (* "*") (cast_expression "(undefined4 *)(local_1174 + 0x20c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_1174 + 0x20c)" (( "(") (binary_expression "local_1174 + 0x20c" (identifier "local_1174") (+ "+") (number_literal "0x20c")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));" (assignment_expression "iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208))" (identifier "iVar18") (= "=") (call_expression "WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208))" (identifier "WriteBlobSignedLong") (argument_list "(param_1,*(undefined4 *)(local_1174 + 0x208))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(local_1174 + 0x208)" (* "*") (cast_expression "(undefined4 *)(local_1174 + 0x208)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_1174 + 0x208)" (( "(") (binary_expression "local_1174 + 0x208" (identifier "local_1174") (+ "+") (number_literal "0x208")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c));" (assignment_expression "iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c))" (identifier "iVar19") (= "=") (call_expression "WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c))" (identifier "WriteBlobSignedLong") (argument_list "(param_1,*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c))" (( "(") (identifier "param_1") (, ",") (binary_expression "*(int *)(local_1174 + 0x20c) +\n                                               *(int *)(local_1174 + 0x1c)" (pointer_expression "*(int *)(local_1174 + 0x20c)" (* "*") (cast_expression "(int *)(local_1174 + 0x20c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_1174 + 0x20c)" (( "(") (binary_expression "local_1174 + 0x20c" (identifier "local_1174") (+ "+") (number_literal "0x20c")) () ")")))) (+ "+") (pointer_expression "*(int *)(local_1174 + 0x1c)" (* "*") (cast_expression "(int *)(local_1174 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_1174 + 0x1c)" (( "(") (binary_expression "local_1174 + 0x1c" (identifier "local_1174") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")))) (; ";")) (expression_statement "iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18));" (assignment_expression "iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18))" (identifier "iVar20") (= "=") (call_expression "WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18))" (identifier "WriteBlobSignedLong") (argument_list "(param_1,*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18))" (( "(") (identifier "param_1") (, ",") (binary_expression "*(int *)(local_1174 + 0x208) +\n                                               *(int *)(local_1174 + 0x18)" (pointer_expression "*(int *)(local_1174 + 0x208)" (* "*") (cast_expression "(int *)(local_1174 + 0x208)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_1174 + 0x208)" (( "(") (binary_expression "local_1174 + 0x208" (identifier "local_1174") (+ "+") (number_literal "0x208")) () ")")))) (+ "+") (pointer_expression "*(int *)(local_1174 + 0x18)" (* "*") (cast_expression "(int *)(local_1174 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_1174 + 0x18)" (( "(") (binary_expression "local_1174 + 0x18" (identifier "local_1174") (+ "+") (number_literal "0x18")) () ")"))))) () ")")))) (; ";")) (expression_statement "iVar21 = WriteBlobByte(param_1,local_1103);" (assignment_expression "iVar21 = WriteBlobByte(param_1,local_1103)" (identifier "iVar21") (= "=") (call_expression "WriteBlobByte(param_1,local_1103)" (identifier "WriteBlobByte") (argument_list "(param_1,local_1103)" (( "(") (identifier "param_1") (, ",") (identifier "local_1103") () ")")))) (; ";")) (expression_statement "iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');" (assignment_expression "iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02')" (identifier "iVar22") (= "=") (call_expression "WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02')" (identifier "WriteBlobByte") (argument_list "(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02')" (( "(") (identifier "param_1") (, ",") (binary_expression "(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02'" (parenthesized_expression "(*(int *)(local_1174 + 0x23c) == 0x34)" (( "(") (binary_expression "*(int *)(local_1174 + 0x23c) == 0x34" (pointer_expression "*(int *)(local_1174 + 0x23c)" (* "*") (cast_expression "(int *)(local_1174 + 0x23c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_1174 + 0x23c)" (( "(") (binary_expression "local_1174 + 0x23c" (identifier "local_1174") (+ "+") (number_literal "0x23c")) () ")")))) (== "==") (number_literal "0x34")) () ")")) (* "*") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")))) (; ";")) (expression_statement "iVar10 = WriteBlobMSBShort(param_1,0);" (assignment_expression "iVar10 = WriteBlobMSBShort(param_1,0)" (identifier "iVar10") (= "=") (call_expression "WriteBlobMSBShort(param_1,0)" (identifier "WriteBlobMSBShort") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10;" (assignment_expression "iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10" (identifier "iVar10") (= "=") (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +\n                   iVar10" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17 + iVar18" (binary_expression "iVar9 + iVar12 + iVar13 + iVar17" (binary_expression "iVar9 + iVar12 + iVar13" (binary_expression "iVar9 + iVar12" (identifier "iVar9") (+ "+") (identifier "iVar12")) (+ "+") (identifier "iVar13")) (+ "+") (identifier "iVar17")) (+ "+") (identifier "iVar18")) (+ "+") (identifier "iVar19")) (+ "+") (identifier "iVar20")) (+ "+") (identifier "iVar21")) (+ "+") (identifier "iVar22")) (+ "+") (identifier "iVar10"))) (; ";")) (} "}")))) (expression_statement "iVar9 = WriteBlobLong(param_1,0);" (assignment_expression "iVar9 = WriteBlobLong(param_1,0)" (identifier "iVar9") (= "=") (call_expression "WriteBlobLong(param_1,0)" (identifier "WriteBlobLong") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "sVar8 = strlen(pcVar7);" (assignment_expression "sVar8 = strlen(pcVar7)" (identifier "sVar8") (= "=") (call_expression "strlen(pcVar7)" (identifier "strlen") (argument_list "(pcVar7)" (( "(") (identifier "pcVar7") () ")")))) (; ";")) (if_statement "if (sVar8 < 0x100) {\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }\n        else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }" (if "if") (parenthesized_expression "(sVar8 < 0x100)" (( "(") (binary_expression "sVar8 < 0x100" (identifier "sVar8") (< "<") (number_literal "0x100")) () ")")) (compound_statement "{\n          if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }\n          iVar12 = 0;\n          do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);\n        }" ({ "{") (if_statement "if (sVar8 == 0) {\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }\n          else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }" (if "if") (parenthesized_expression "(sVar8 == 0)" (( "(") (binary_expression "sVar8 == 0" (identifier "sVar8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            iVar13 = WriteBlobByte(param_1,0);\n            local_1174 = 3;\n          }" ({ "{") (expression_statement "iVar13 = WriteBlobByte(param_1,0);" (assignment_expression "iVar13 = WriteBlobByte(param_1,0)" (identifier "iVar13") (= "=") (call_expression "WriteBlobByte(param_1,0)" (identifier "WriteBlobByte") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "local_1174 = 3;" (assignment_expression "local_1174 = 3" (identifier "local_1174") (= "=") (number_literal "3")) (; ";")) (} "}")) (else_clause "else {\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }" (else "else") (compound_statement "{\n            iVar13 = WriteBlobByte(param_1,sVar8);\n            iVar12 = WriteBlob(param_1,sVar8,pcVar7);\n            iVar13 = iVar13 + iVar12;\n            uVar27 = sVar8 + 1 & 3;\n            if (uVar27 == 0) goto LAB_0029d1b9;\n            local_1174 = 4 - uVar27;\n          }" ({ "{") (expression_statement "iVar13 = WriteBlobByte(param_1,sVar8);" (assignment_expression "iVar13 = WriteBlobByte(param_1,sVar8)" (identifier "iVar13") (= "=") (call_expression "WriteBlobByte(param_1,sVar8)" (identifier "WriteBlobByte") (argument_list "(param_1,sVar8)" (( "(") (identifier "param_1") (, ",") (identifier "sVar8") () ")")))) (; ";")) (expression_statement "iVar12 = WriteBlob(param_1,sVar8,pcVar7);" (assignment_expression "iVar12 = WriteBlob(param_1,sVar8,pcVar7)" (identifier "iVar12") (= "=") (call_expression "WriteBlob(param_1,sVar8,pcVar7)" (identifier "WriteBlob") (argument_list "(param_1,sVar8,pcVar7)" (( "(") (identifier "param_1") (, ",") (identifier "sVar8") (, ",") (identifier "pcVar7") () ")")))) (; ";")) (expression_statement "iVar13 = iVar13 + iVar12;" (assignment_expression "iVar13 = iVar13 + iVar12" (identifier "iVar13") (= "=") (binary_expression "iVar13 + iVar12" (identifier "iVar13") (+ "+") (identifier "iVar12"))) (; ";")) (expression_statement "uVar27 = sVar8 + 1 & 3;" (assignment_expression "uVar27 = sVar8 + 1 & 3" (identifier "uVar27") (= "=") (binary_expression "sVar8 + 1 & 3" (binary_expression "sVar8 + 1" (identifier "sVar8") (+ "+") (number_literal "1")) (& "&") (number_literal "3"))) (; ";")) (if_statement "if (uVar27 == 0) goto LAB_0029d1b9;" (if "if") (parenthesized_expression "(uVar27 == 0)" (( "(") (binary_expression "uVar27 == 0" (identifier "uVar27") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0029d1b9;" (goto "goto") (statement_identifier "LAB_0029d1b9") (; ";"))) (expression_statement "local_1174 = 4 - uVar27;" (assignment_expression "local_1174 = 4 - uVar27" (identifier "local_1174") (= "=") (binary_expression "4 - uVar27" (number_literal "4") (- "-") (identifier "uVar27"))) (; ";")) (} "}")))) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          } while (iVar12 != local_1174);" (do "do") (compound_statement "{\n            iVar12 = iVar12 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar13 = iVar13 + iVar17;\n          }" ({ "{") (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" (identifier "iVar12") (= "=") (binary_expression "iVar12 + 1" (identifier "iVar12") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar17 = WriteBlobByte(param_1,0);" (assignment_expression "iVar17 = WriteBlobByte(param_1,0)" (identifier "iVar17") (= "=") (call_expression "WriteBlobByte(param_1,0)" (identifier "WriteBlobByte") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar13 = iVar13 + iVar17;" (assignment_expression "iVar13 = iVar13 + iVar17" (identifier "iVar13") (= "=") (binary_expression "iVar13 + iVar17" (identifier "iVar13") (+ "+") (identifier "iVar17"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar12 != local_1174)" (( "(") (binary_expression "iVar12 != local_1174" (identifier "iVar12") (!= "!=") (identifier "local_1174")) () ")")) (; ";")) (} "}")) (else_clause "else {\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }" (else "else") (compound_statement "{\n          iVar13 = WriteBlobByte(param_1,0xff);\n          iVar12 = WriteBlob(param_1,0xff,pcVar7);\n          iVar13 = iVar13 + iVar12;\n        }" ({ "{") (expression_statement "iVar13 = WriteBlobByte(param_1,0xff);" (assignment_expression "iVar13 = WriteBlobByte(param_1,0xff)" (identifier "iVar13") (= "=") (call_expression "WriteBlobByte(param_1,0xff)" (identifier "WriteBlobByte") (argument_list "(param_1,0xff)" (( "(") (identifier "param_1") (, ",") (number_literal "0xff") () ")")))) (; ";")) (expression_statement "iVar12 = WriteBlob(param_1,0xff,pcVar7);" (assignment_expression "iVar12 = WriteBlob(param_1,0xff,pcVar7)" (identifier "iVar12") (= "=") (call_expression "WriteBlob(param_1,0xff,pcVar7)" (identifier "WriteBlob") (argument_list "(param_1,0xff,pcVar7)" (( "(") (identifier "param_1") (, ",") (number_literal "0xff") (, ",") (identifier "pcVar7") () ")")))) (; ";")) (expression_statement "iVar13 = iVar13 + iVar12;" (assignment_expression "iVar13 = iVar13 + iVar12" (identifier "iVar13") (= "=") (binary_expression "iVar13 + iVar12" (identifier "iVar13") (+ "+") (identifier "iVar12"))) (; ";")) (} "}")))) (labeled_statement "LAB_0029d1b9:\n        local_1130 = iVar13 + iVar9 + iVar10;" (statement_identifier "LAB_0029d1b9") (: ":") (expression_statement "local_1130 = iVar13 + iVar9 + iVar10;" (assignment_expression "local_1130 = iVar13 + iVar9 + iVar10" (identifier "local_1130") (= "=") (binary_expression "iVar13 + iVar9 + iVar10" (binary_expression "iVar13 + iVar9" (identifier "iVar13") (+ "+") (identifier "iVar9")) (+ "+") (identifier "iVar10"))) (; ";"))) (if_statement "if (iVar11 != 0) {\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }" (if "if") (parenthesized_expression "(iVar11 != 0)" (( "(") (binary_expression "iVar11 != 0" (identifier "iVar11") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar16 = GetStringInfoDatum(iVar11);\n          uVar23 = GetStringInfoLength(iVar11);\n          iVar9 = WriteBlob(param_1,uVar23,uVar16);\n          local_1130 = local_1130 + iVar9;\n        }" ({ "{") (expression_statement "uVar16 = GetStringInfoDatum(iVar11);" (assignment_expression "uVar16 = GetStringInfoDatum(iVar11)" (identifier "uVar16") (= "=") (call_expression "GetStringInfoDatum(iVar11)" (identifier "GetStringInfoDatum") (argument_list "(iVar11)" (( "(") (identifier "iVar11") () ")")))) (; ";")) (expression_statement "uVar23 = GetStringInfoLength(iVar11);" (assignment_expression "uVar23 = GetStringInfoLength(iVar11)" (identifier "uVar23") (= "=") (call_expression "GetStringInfoLength(iVar11)" (identifier "GetStringInfoLength") (argument_list "(iVar11)" (( "(") (identifier "iVar11") () ")")))) (; ";")) (expression_statement "iVar9 = WriteBlob(param_1,uVar23,uVar16);" (assignment_expression "iVar9 = WriteBlob(param_1,uVar23,uVar16)" (identifier "iVar9") (= "=") (call_expression "WriteBlob(param_1,uVar23,uVar16)" (identifier "WriteBlob") (argument_list "(param_1,uVar23,uVar16)" (( "(") (identifier "param_1") (, ",") (identifier "uVar23") (, ",") (identifier "uVar16") () ")")))) (; ";")) (expression_statement "local_1130 = local_1130 + iVar9;" (assignment_expression "local_1130 = local_1130 + iVar9" (identifier "local_1130") (= "=") (binary_expression "local_1130 + iVar9" (identifier "local_1130") (+ "+") (identifier "iVar9"))) (; ";")) (} "}"))) (expression_statement "local_1178 = (int *)GetNextImageInList(local_1178);" (assignment_expression "local_1178 = (int *)GetNextImageInList(local_1178)" (identifier "local_1178") (= "=") (cast_expression "(int *)GetNextImageInList(local_1178)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetNextImageInList(local_1178)" (identifier "GetNextImageInList") (argument_list "(local_1178)" (( "(") (identifier "local_1178") () ")"))))) (; ";")) (expression_statement "piVar5 = piVar4;" (assignment_expression "piVar5 = piVar4" (identifier "piVar5") (= "=") (identifier "piVar4")) (; ";")) (expression_statement "local_1150 = puVar6;" (assignment_expression "local_1150 = puVar6" (identifier "local_1150") (= "=") (identifier "puVar6")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_1178 != (int *)0x0)" (( "(") (binary_expression "local_1178 != (int *)0x0" (identifier "local_1178") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (do_statement "do {\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      } while (piVar5 != (int *)0x0);" (do "do") (compound_statement "{\n        local_1178 = (int *)0x0;\n        uVar27 = *local_1150;\n        uVar28 = local_1150[1];\n        iVar9 = *param_2;\n        if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }\n        if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        uVar26 = uVar27 + 2;\n        iVar10 = uVar28 + (0xfffffffd < uVar27);\n        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }\n        local_1178 = (int *)RelinquishMagickMemory(local_1178);\n        if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }\n        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");\n        if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }\n        if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }\n        local_1130 = local_1130 + iVar11;\n        piVar5 = (int *)GetNextImageInList(piVar5);\n        local_1150 = local_1150 + 2;\n      }" ({ "{") (expression_statement "local_1178 = (int *)0x0;" (assignment_expression "local_1178 = (int *)0x0" (identifier "local_1178") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "uVar27 = *local_1150;" (assignment_expression "uVar27 = *local_1150" (identifier "uVar27") (= "=") (pointer_expression "*local_1150" (* "*") (identifier "local_1150"))) (; ";")) (expression_statement "uVar28 = local_1150[1];" (assignment_expression "uVar28 = local_1150[1]" (identifier "uVar28") (= "=") (subscript_expression "local_1150[1]" (identifier "local_1150") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar9 = *param_2;" (assignment_expression "iVar9 = *param_2" (identifier "iVar9") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (*param_2 == 0) {\n          iVar9 = piVar5[2];\n        }" (if "if") (parenthesized_expression "(*param_2 == 0)" (( "(") (binary_expression "*param_2 == 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar9 = piVar5[2];\n        }" ({ "{") (expression_statement "iVar9 = piVar5[2];" (assignment_expression "iVar9 = piVar5[2]" (identifier "iVar9") (= "=") (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}"))) (if_statement "if ((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)) {\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }" (if "if") (parenthesized_expression "((iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0))" (( "(") (binary_expression "(iVar9 == 0x13) &&\n           (local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)" (parenthesized_expression "(iVar9 == 0x13)" (( "(") (binary_expression "iVar9 == 0x13" (identifier "iVar9") (== "==") (number_literal "0x13")) () ")")) (&& "&&") (parenthesized_expression "(local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0)" (( "(") (comma_expression "local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),\n           piVar24 = piVar5, local_1178 == (int *)0x0" (assignment_expression "local_1178 = (int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01')" (identifier "local_1178") (= "=") (cast_expression "(int *)AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01')" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "AcquireQuantumMemory\n                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01')" (identifier "AcquireQuantumMemory") (argument_list "(piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01')" (( "(") (binary_expression "piVar5[6] * 9 + 1" (binary_expression "piVar5[6] * 9" (subscript_expression "piVar5[6]" (identifier "piVar5") ([ "[") (number_literal "6") (] "]")) (* "*") (number_literal "9")) (+ "+") (number_literal "1")) (, ",") (binary_expression "(8U < (uint)piVar5[8]) + '\x01'" (parenthesized_expression "(8U < (uint)piVar5[8])" (( "(") (binary_expression "8U < (uint)piVar5[8]" (number_literal "8U") (< "<") (cast_expression "(uint)piVar5[8]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar5[8]" (identifier "piVar5") ([ "[") (number_literal "8") (] "]")))) () ")")) (+ "+") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")"))))) (, ",") (comma_expression "piVar24 = piVar5, local_1178 == (int *)0x0" (assignment_expression "piVar24 = piVar5" (identifier "piVar24") (= "=") (identifier "piVar5")) (, ",") (binary_expression "local_1178 == (int *)0x0" (identifier "local_1178") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))))) () ")"))) () ")")) (compound_statement "{\nLAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }" ({ "{") (labeled_statement "LAB_0029dbfc:\n          ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);" (statement_identifier "LAB_0029dbfc") (: ":") (expression_statement "ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);" (call_expression "ThrowMagickException\n                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6)" (identifier "ThrowMagickException") (argument_list "(param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,\n                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6)" (( "(") (identifier "param_5") (, ",") (string_literal ""coders/psd.c"" (" """) (string_content "coders/psd.c") (" """)) (, ",") (string_literal ""AcquireCompactPixels"" (" """) (string_content "AcquireCompactPixels") (" """)) (, ",") (number_literal "0xbf3") (, ",") (number_literal "400") (, ",") (string_literal ""MemoryAllocationFailed"" (" """) (string_content "MemoryAllocationFailed") (" """)) (, ",") (string_literal ""`%s\'"" (" """) (string_content "`%s") (escape_sequence "\'") (" """)) (, ",") (binary_expression "piVar24 + 0xc6" (identifier "piVar24") (+ "+") (number_literal "0xc6")) () ")"))) (; ";"))) (expression_statement "local_1178 = (int *)0x0;" (assignment_expression "local_1178 = (int *)0x0" (identifier "local_1178") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (goto_statement "goto LAB_0029dc36;" (goto "goto") (statement_identifier "LAB_0029dc36") (; ";")) (} "}"))) (expression_statement "uVar26 = uVar27 + 2;" (assignment_expression "uVar26 = uVar27 + 2" (identifier "uVar26") (= "=") (binary_expression "uVar27 + 2" (identifier "uVar27") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "iVar10 = uVar28 + (0xfffffffd < uVar27);" (assignment_expression "iVar10 = uVar28 + (0xfffffffd < uVar27)" (identifier "iVar10") (= "=") (binary_expression "uVar28 + (0xfffffffd < uVar27)" (identifier "uVar28") (+ "+") (parenthesized_expression "(0xfffffffd < uVar27)" (( "(") (binary_expression "0xfffffffd < uVar27" (number_literal "0xfffffffd") (< "<") (identifier "uVar27")) () ")")))) (; ";")) (if_statement "if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }\n        else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }" (if "if") (parenthesized_expression "((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0))" (( "(") (binary_expression "(*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)" (parenthesized_expression "(*piVar5 == 2)" (( "(") (binary_expression "*piVar5 == 2" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (== "==") (number_literal "2")) () ")")) (&& "&&") (parenthesized_expression "(iVar11 = IsImageGray(piVar5), iVar11 == 0)" (( "(") (comma_expression "iVar11 = IsImageGray(piVar5), iVar11 == 0" (assignment_expression "iVar11 = IsImageGray(piVar5)" (identifier "iVar11") (= "=") (call_expression "IsImageGray(piVar5)" (identifier "IsImageGray") (argument_list "(piVar5)" (( "(") (identifier "piVar5") () ")")))) (, ",") (binary_expression "iVar11 == 0" (identifier "iVar11") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,uVar26,iVar10,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }\n          uVar27 = iVar12 + 2;\n          SeekBlob(param_1,uVar34,0);\n          local_115c = uVar27 + uVar26;\n          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n        }" ({ "{") (expression_statement "iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5)" (identifier "iVar11") (= "=") (call_expression "FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5)" (identifier "FUN_002999f0") (argument_list "(piVar5,0x12,local_1178,0,0,1,iVar9,param_5)" (( "(") (identifier "piVar5") (, ",") (number_literal "0x12") (, ",") (identifier "local_1178") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (identifier "iVar9") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" (identifier "uVar34") (= "=") (call_expression "TellBlob(param_1)" (identifier "TellBlob") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "SeekBlob(param_1,uVar26,iVar10,0);" (call_expression "SeekBlob(param_1,uVar26,iVar10,0)" (identifier "SeekBlob") (argument_list "(param_1,uVar26,iVar10,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar26") (, ",") (identifier "iVar10") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }\n          else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }" (if "if") (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" (( "(") (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" (* "*") (cast_expression "(short *)(param_3 + 0x1e)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1e)" (( "(") (binary_expression "param_3 + 0x1e" (identifier "param_3") (+ "+") (number_literal "0x1e")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            iVar12 = WriteBlobLong(param_1,iVar11);\n          }" ({ "{") (expression_statement "iVar12 = WriteBlobLong(param_1,iVar11);" (assignment_expression "iVar12 = WriteBlobLong(param_1,iVar11)" (identifier "iVar12") (= "=") (call_expression "WriteBlobLong(param_1,iVar11)" (identifier "WriteBlobLong") (argument_list "(param_1,iVar11)" (( "(") (identifier "param_1") (, ",") (identifier "iVar11") () ")")))) (; ";")) (} "}")) (else_clause "else {\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }" (else "else") (compound_statement "{\n            iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n          }" ({ "{") (expression_statement "iVar12 = WriteBlobLongLong(param_1,iVar11,0);" (assignment_expression "iVar12 = WriteBlobLongLong(param_1,iVar11,0)" (identifier "iVar12") (= "=") (call_expression "WriteBlobLongLong(param_1,iVar11,0)" (identifier "WriteBlobLongLong") (argument_list "(param_1,iVar11,0)" (( "(") (identifier "param_1") (, ",") (identifier "iVar11") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")))) (expression_statement "uVar27 = iVar12 + 2;" (assignment_expression "uVar27 = iVar12 + 2" (identifier "uVar27") (= "=") (binary_expression "iVar12 + 2" (identifier "iVar12") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" (identifier "SeekBlob") (argument_list "(param_1,uVar34,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar34") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "local_115c = uVar27 + uVar26;" (assignment_expression "local_115c = uVar27 + uVar26" (identifier "local_115c") (= "=") (binary_expression "uVar27 + uVar26" (identifier "uVar27") (+ "+") (identifier "uVar26"))) (; ";")) (expression_statement "local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);" (assignment_expression "local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26)" (identifier "local_1158") (= "=") (binary_expression "((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26)" (binary_expression "((int)uVar27 >> 0x1f) + iVar10" (parenthesized_expression "((int)uVar27 >> 0x1f)" (( "(") (binary_expression "(int)uVar27 >> 0x1f" (cast_expression "(int)uVar27" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar27")) (>> ">>") (number_literal "0x1f")) () ")")) (+ "+") (identifier "iVar10")) (+ "+") (cast_expression "(uint)CARRY4(uVar27,uVar26)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(uVar27,uVar26)" (identifier "CARRY4") (argument_list "(uVar27,uVar26)" (( "(") (identifier "uVar27") (, ",") (identifier "uVar26") () ")")))))) (; ";")) (} "}")) (else_clause "else {\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }" (else "else") (compound_statement "{\n          iVar11 = IsImageGray(piVar5);\n          if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }\n          if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }\n        }" ({ "{") (expression_statement "iVar11 = IsImageGray(piVar5);" (assignment_expression "iVar11 = IsImageGray(piVar5)" (identifier "iVar11") (= "=") (call_expression "IsImageGray(piVar5)" (identifier "IsImageGray") (argument_list "(piVar5)" (( "(") (identifier "piVar5") () ")")))) (; ";")) (if_statement "if (iVar11 == 0) {\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }\n          else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }" (if "if") (parenthesized_expression "(iVar11 == 0)" (( "(") (binary_expression "iVar11 == 0" (identifier "iVar11") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }\n            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }\n            uVar28 = iVar11 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar27 = uVar28 + uVar26;\n            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);\n            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar27,iVar11,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar26 = iVar13 + 2;\n            SeekBlob(param_1,uVar34,0);\n            uVar28 = uVar26 + uVar27;\n            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);\n            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar28,iVar13,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar17 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar28;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);\n            iVar11 = iVar12 + iVar10 + iVar11;\n            if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }\n          }" ({ "{") (if_statement "if (piVar5[1] == 2) {\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }" (if "if") (parenthesized_expression "(piVar5[1] == 2)" (( "(") (binary_expression "piVar5[1] == 2" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n              NegateImage(piVar5,0,param_5);\n              SetImageChannelMask(piVar5,uVar16);\n            }" ({ "{") (expression_statement "uVar16 = SetImageChannelMask(piVar5,0x7ffffef);" (assignment_expression "uVar16 = SetImageChannelMask(piVar5,0x7ffffef)" (identifier "uVar16") (= "=") (call_expression "SetImageChannelMask(piVar5,0x7ffffef)" (identifier "SetImageChannelMask") (argument_list "(piVar5,0x7ffffef)" (( "(") (identifier "piVar5") (, ",") (number_literal "0x7ffffef") () ")")))) (; ";")) (expression_statement "NegateImage(piVar5,0,param_5);" (call_expression "NegateImage(piVar5,0,param_5)" (identifier "NegateImage") (argument_list "(piVar5,0,param_5)" (( "(") (identifier "piVar5") (, ",") (number_literal "0") (, ",") (identifier "param_5") () ")"))) (; ";")) (expression_statement "SetImageChannelMask(piVar5,uVar16);" (call_expression "SetImageChannelMask(piVar5,uVar16)" (identifier "SetImageChannelMask") (argument_list "(piVar5,uVar16)" (( "(") (identifier "piVar5") (, ",") (identifier "uVar16") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5)" (identifier "iVar12") (= "=") (call_expression "FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5)" (identifier "FUN_002999f0") (argument_list "(piVar5,0x15,local_1178,0,0,1,iVar9,param_5)" (( "(") (identifier "piVar5") (, ",") (number_literal "0x15") (, ",") (identifier "local_1178") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (identifier "iVar9") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" (identifier "uVar34") (= "=") (call_expression "TellBlob(param_1)" (identifier "TellBlob") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "SeekBlob(param_1,uVar26,iVar10,0);" (call_expression "SeekBlob(param_1,uVar26,iVar10,0)" (identifier "SeekBlob") (argument_list "(param_1,uVar26,iVar10,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar26") (, ",") (identifier "iVar10") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }\n            else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }" (if "if") (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" (( "(") (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" (* "*") (cast_expression "(short *)(param_3 + 0x1e)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1e)" (( "(") (binary_expression "param_3 + 0x1e" (identifier "param_3") (+ "+") (number_literal "0x1e")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n              iVar11 = WriteBlobLong(param_1,iVar12);\n            }" ({ "{") (expression_statement "iVar11 = WriteBlobLong(param_1,iVar12);" (assignment_expression "iVar11 = WriteBlobLong(param_1,iVar12)" (identifier "iVar11") (= "=") (call_expression "WriteBlobLong(param_1,iVar12)" (identifier "WriteBlobLong") (argument_list "(param_1,iVar12)" (( "(") (identifier "param_1") (, ",") (identifier "iVar12") () ")")))) (; ";")) (} "}")) (else_clause "else {\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }" (else "else") (compound_statement "{\n              iVar11 = WriteBlobLongLong(param_1,iVar12,0);\n            }" ({ "{") (expression_statement "iVar11 = WriteBlobLongLong(param_1,iVar12,0);" (assignment_expression "iVar11 = WriteBlobLongLong(param_1,iVar12,0)" (identifier "iVar11") (= "=") (call_expression "WriteBlobLongLong(param_1,iVar12,0)" (identifier "WriteBlobLongLong") (argument_list "(param_1,iVar12,0)" (( "(") (identifier "param_1") (, ",") (identifier "iVar12") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")))) (expression_statement "uVar28 = iVar11 + 2;" (assignment_expression "uVar28 = iVar11 + 2" (identifier "uVar28") (= "=") (binary_expression "iVar11 + 2" (identifier "iVar11") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" (identifier "SeekBlob") (argument_list "(param_1,uVar34,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar34") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar27 = uVar28 + uVar26;" (assignment_expression "uVar27 = uVar28 + uVar26" (identifier "uVar27") (= "=") (binary_expression "uVar28 + uVar26" (identifier "uVar28") (+ "+") (identifier "uVar26"))) (; ";")) (expression_statement "iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);" (assignment_expression "iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26)" (identifier "iVar11") (= "=") (binary_expression "((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26)" (binary_expression "((int)uVar28 >> 0x1f) + iVar10" (parenthesized_expression "((int)uVar28 >> 0x1f)" (( "(") (binary_expression "(int)uVar28 >> 0x1f" (cast_expression "(int)uVar28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar28")) (>> ">>") (number_literal "0x1f")) () ")")) (+ "+") (identifier "iVar10")) (+ "+") (cast_expression "(uint)CARRY4(uVar28,uVar26)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(uVar28,uVar26)" (identifier "CARRY4") (argument_list "(uVar28,uVar26)" (( "(") (identifier "uVar28") (, ",") (identifier "uVar26") () ")")))))) (; ";")) (expression_statement "iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5)" (identifier "iVar10") (= "=") (call_expression "FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5)" (identifier "FUN_002999f0") (argument_list "(piVar5,0x10,local_1178,0,0,1,iVar9,param_5)" (( "(") (identifier "piVar5") (, ",") (number_literal "0x10") (, ",") (identifier "local_1178") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (identifier "iVar9") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" (identifier "uVar34") (= "=") (call_expression "TellBlob(param_1)" (identifier "TellBlob") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "SeekBlob(param_1,uVar27,iVar11,0);" (call_expression "SeekBlob(param_1,uVar27,iVar11,0)" (identifier "SeekBlob") (argument_list "(param_1,uVar27,iVar11,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar27") (, ",") (identifier "iVar11") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }" (if "if") (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" (( "(") (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" (* "*") (cast_expression "(short *)(param_3 + 0x1e)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1e)" (( "(") (binary_expression "param_3 + 0x1e" (identifier "param_3") (+ "+") (number_literal "0x1e")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n              iVar13 = WriteBlobLong(param_1,iVar10);\n            }" ({ "{") (expression_statement "iVar13 = WriteBlobLong(param_1,iVar10);" (assignment_expression "iVar13 = WriteBlobLong(param_1,iVar10)" (identifier "iVar13") (= "=") (call_expression "WriteBlobLong(param_1,iVar10)" (identifier "WriteBlobLong") (argument_list "(param_1,iVar10)" (( "(") (identifier "param_1") (, ",") (identifier "iVar10") () ")")))) (; ";")) (} "}")) (else_clause "else {\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }" (else "else") (compound_statement "{\n              iVar13 = WriteBlobLongLong(param_1,iVar10,0);\n            }" ({ "{") (expression_statement "iVar13 = WriteBlobLongLong(param_1,iVar10,0);" (assignment_expression "iVar13 = WriteBlobLongLong(param_1,iVar10,0)" (identifier "iVar13") (= "=") (call_expression "WriteBlobLongLong(param_1,iVar10,0)" (identifier "WriteBlobLongLong") (argument_list "(param_1,iVar10,0)" (( "(") (identifier "param_1") (, ",") (identifier "iVar10") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")))) (expression_statement "uVar26 = iVar13 + 2;" (assignment_expression "uVar26 = iVar13 + 2" (identifier "uVar26") (= "=") (binary_expression "iVar13 + 2" (identifier "iVar13") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" (identifier "SeekBlob") (argument_list "(param_1,uVar34,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar34") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar28 = uVar26 + uVar27;" (assignment_expression "uVar28 = uVar26 + uVar27" (identifier "uVar28") (= "=") (binary_expression "uVar26 + uVar27" (identifier "uVar26") (+ "+") (identifier "uVar27"))) (; ";")) (expression_statement "iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);" (assignment_expression "iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27)" (identifier "iVar13") (= "=") (binary_expression "((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27)" (binary_expression "((int)uVar26 >> 0x1f) + iVar11" (parenthesized_expression "((int)uVar26 >> 0x1f)" (( "(") (binary_expression "(int)uVar26 >> 0x1f" (cast_expression "(int)uVar26" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar26")) (>> ">>") (number_literal "0x1f")) () ")")) (+ "+") (identifier "iVar11")) (+ "+") (cast_expression "(uint)CARRY4(uVar26,uVar27)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(uVar26,uVar27)" (identifier "CARRY4") (argument_list "(uVar26,uVar27)" (( "(") (identifier "uVar26") (, ",") (identifier "uVar27") () ")")))))) (; ";")) (expression_statement "iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5)" (identifier "iVar11") (= "=") (call_expression "FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5)" (identifier "FUN_002999f0") (argument_list "(piVar5,6,local_1178,0,0,1,iVar9,param_5)" (( "(") (identifier "piVar5") (, ",") (number_literal "6") (, ",") (identifier "local_1178") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (identifier "iVar9") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" (identifier "uVar34") (= "=") (call_expression "TellBlob(param_1)" (identifier "TellBlob") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "SeekBlob(param_1,uVar28,iVar13,0);" (call_expression "SeekBlob(param_1,uVar28,iVar13,0)" (identifier "SeekBlob") (argument_list "(param_1,uVar28,iVar13,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar28") (, ",") (identifier "iVar13") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }" (if "if") (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" (( "(") (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" (* "*") (cast_expression "(short *)(param_3 + 0x1e)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1e)" (( "(") (binary_expression "param_3 + 0x1e" (identifier "param_3") (+ "+") (number_literal "0x1e")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n              iVar17 = WriteBlobLong(param_1,iVar11);\n            }" ({ "{") (expression_statement "iVar17 = WriteBlobLong(param_1,iVar11);" (assignment_expression "iVar17 = WriteBlobLong(param_1,iVar11)" (identifier "iVar17") (= "=") (call_expression "WriteBlobLong(param_1,iVar11)" (identifier "WriteBlobLong") (argument_list "(param_1,iVar11)" (( "(") (identifier "param_1") (, ",") (identifier "iVar11") () ")")))) (; ";")) (} "}")) (else_clause "else {\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }" (else "else") (compound_statement "{\n              iVar17 = WriteBlobLongLong(param_1,iVar11,0);\n            }" ({ "{") (expression_statement "iVar17 = WriteBlobLongLong(param_1,iVar11,0);" (assignment_expression "iVar17 = WriteBlobLongLong(param_1,iVar11,0)" (identifier "iVar17") (= "=") (call_expression "WriteBlobLongLong(param_1,iVar11,0)" (identifier "WriteBlobLongLong") (argument_list "(param_1,iVar11,0)" (( "(") (identifier "param_1") (, ",") (identifier "iVar11") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")))) (expression_statement "uVar27 = iVar17 + 2;" (assignment_expression "uVar27 = iVar17 + 2" (identifier "uVar27") (= "=") (binary_expression "iVar17 + 2" (identifier "iVar17") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" (identifier "SeekBlob") (argument_list "(param_1,uVar34,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar34") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "local_115c = uVar27 + uVar28;" (assignment_expression "local_115c = uVar27 + uVar28" (identifier "local_115c") (= "=") (binary_expression "uVar27 + uVar28" (identifier "uVar27") (+ "+") (identifier "uVar28"))) (; ";")) (expression_statement "local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);" (assignment_expression "local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28)" (identifier "local_1158") (= "=") (binary_expression "((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28)" (binary_expression "((int)uVar27 >> 0x1f) + iVar13" (parenthesized_expression "((int)uVar27 >> 0x1f)" (( "(") (binary_expression "(int)uVar27 >> 0x1f" (cast_expression "(int)uVar27" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar27")) (>> ">>") (number_literal "0x1f")) () ")")) (+ "+") (identifier "iVar13")) (+ "+") (cast_expression "(uint)CARRY4(uVar27,uVar28)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(uVar27,uVar28)" (identifier "CARRY4") (argument_list "(uVar27,uVar28)" (( "(") (identifier "uVar27") (, ",") (identifier "uVar28") () ")")))))) (; ";")) (expression_statement "iVar11 = iVar12 + iVar10 + iVar11;" (assignment_expression "iVar11 = iVar12 + iVar10 + iVar11" (identifier "iVar11") (= "=") (binary_expression "iVar12 + iVar10 + iVar11" (binary_expression "iVar12 + iVar10" (identifier "iVar12") (+ "+") (identifier "iVar10")) (+ "+") (identifier "iVar11"))) (; ";")) (if_statement "if (piVar5[1] == 2) {\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }" (if "if") (parenthesized_expression "(piVar5[1] == 2)" (( "(") (binary_expression "piVar5[1] == 2" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);\n              uVar34 = TellBlob(param_1);\n              SeekBlob(param_1,local_115c,local_1158,0);\n              if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }\n              uVar27 = iVar12 + 2;\n              SeekBlob(param_1,uVar34,0);\n              bVar31 = CARRY4(local_115c,uVar27);\n              local_115c = local_115c + uVar27;\n              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n              iVar11 = iVar11 + iVar10;\n            }" ({ "{") (expression_statement "iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5)" (identifier "iVar10") (= "=") (call_expression "FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5)" (identifier "FUN_002999f0") (argument_list "(piVar5,5,local_1178,0,0,1,iVar9,param_5)" (( "(") (identifier "piVar5") (, ",") (number_literal "5") (, ",") (identifier "local_1178") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (identifier "iVar9") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" (identifier "uVar34") (= "=") (call_expression "TellBlob(param_1)" (identifier "TellBlob") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "SeekBlob(param_1,local_115c,local_1158,0);" (call_expression "SeekBlob(param_1,local_115c,local_1158,0)" (identifier "SeekBlob") (argument_list "(param_1,local_115c,local_1158,0)" (( "(") (identifier "param_1") (, ",") (identifier "local_115c") (, ",") (identifier "local_1158") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }\n              else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }" (if "if") (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" (( "(") (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" (* "*") (cast_expression "(short *)(param_3 + 0x1e)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1e)" (( "(") (binary_expression "param_3 + 0x1e" (identifier "param_3") (+ "+") (number_literal "0x1e")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n                iVar12 = WriteBlobLong(param_1,iVar10);\n              }" ({ "{") (expression_statement "iVar12 = WriteBlobLong(param_1,iVar10);" (assignment_expression "iVar12 = WriteBlobLong(param_1,iVar10)" (identifier "iVar12") (= "=") (call_expression "WriteBlobLong(param_1,iVar10)" (identifier "WriteBlobLong") (argument_list "(param_1,iVar10)" (( "(") (identifier "param_1") (, ",") (identifier "iVar10") () ")")))) (; ";")) (} "}")) (else_clause "else {\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }" (else "else") (compound_statement "{\n                iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n              }" ({ "{") (expression_statement "iVar12 = WriteBlobLongLong(param_1,iVar10,0);" (assignment_expression "iVar12 = WriteBlobLongLong(param_1,iVar10,0)" (identifier "iVar12") (= "=") (call_expression "WriteBlobLongLong(param_1,iVar10,0)" (identifier "WriteBlobLongLong") (argument_list "(param_1,iVar10,0)" (( "(") (identifier "param_1") (, ",") (identifier "iVar10") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")))) (expression_statement "uVar27 = iVar12 + 2;" (assignment_expression "uVar27 = iVar12 + 2" (identifier "uVar27") (= "=") (binary_expression "iVar12 + 2" (identifier "iVar12") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" (identifier "SeekBlob") (argument_list "(param_1,uVar34,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar34") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "bVar31 = CARRY4(local_115c,uVar27);" (assignment_expression "bVar31 = CARRY4(local_115c,uVar27)" (identifier "bVar31") (= "=") (call_expression "CARRY4(local_115c,uVar27)" (identifier "CARRY4") (argument_list "(local_115c,uVar27)" (( "(") (identifier "local_115c") (, ",") (identifier "uVar27") () ")")))) (; ";")) (expression_statement "local_115c = local_115c + uVar27;" (assignment_expression "local_115c = local_115c + uVar27" (identifier "local_115c") (= "=") (binary_expression "local_115c + uVar27" (identifier "local_115c") (+ "+") (identifier "uVar27"))) (; ";")) (expression_statement "local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;" (assignment_expression "local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31" (identifier "local_1158") (= "=") (binary_expression "local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31" (binary_expression "local_1158 + ((int)uVar27 >> 0x1f)" (identifier "local_1158") (+ "+") (parenthesized_expression "((int)uVar27 >> 0x1f)" (( "(") (binary_expression "(int)uVar27 >> 0x1f" (cast_expression "(int)uVar27" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar27")) (>> ">>") (number_literal "0x1f")) () ")"))) (+ "+") (cast_expression "(uint)bVar31" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar31")))) (; ";")) (expression_statement "iVar11 = iVar11 + iVar10;" (assignment_expression "iVar11 = iVar11 + iVar10" (identifier "iVar11") (= "=") (binary_expression "iVar11 + iVar10" (identifier "iVar11") (+ "+") (identifier "iVar10"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }" (else "else") (compound_statement "{\n            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,uVar26,iVar10,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            local_115c = uVar27 + uVar26;\n            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);\n          }" ({ "{") (expression_statement "iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5)" (identifier "iVar11") (= "=") (call_expression "FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5)" (identifier "FUN_002999f0") (argument_list "(piVar5,0xf,local_1178,0,0,1,iVar9,param_5)" (( "(") (identifier "piVar5") (, ",") (number_literal "0xf") (, ",") (identifier "local_1178") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (identifier "iVar9") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" (identifier "uVar34") (= "=") (call_expression "TellBlob(param_1)" (identifier "TellBlob") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "SeekBlob(param_1,uVar26,iVar10,0);" (call_expression "SeekBlob(param_1,uVar26,iVar10,0)" (identifier "SeekBlob") (argument_list "(param_1,uVar26,iVar10,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar26") (, ",") (identifier "iVar10") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }" (if "if") (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" (( "(") (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" (* "*") (cast_expression "(short *)(param_3 + 0x1e)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1e)" (( "(") (binary_expression "param_3 + 0x1e" (identifier "param_3") (+ "+") (number_literal "0x1e")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n              iVar12 = WriteBlobLong(param_1,iVar11);\n            }" ({ "{") (expression_statement "iVar12 = WriteBlobLong(param_1,iVar11);" (assignment_expression "iVar12 = WriteBlobLong(param_1,iVar11)" (identifier "iVar12") (= "=") (call_expression "WriteBlobLong(param_1,iVar11)" (identifier "WriteBlobLong") (argument_list "(param_1,iVar11)" (( "(") (identifier "param_1") (, ",") (identifier "iVar11") () ")")))) (; ";")) (} "}")) (else_clause "else {\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }" (else "else") (compound_statement "{\n              iVar12 = WriteBlobLongLong(param_1,iVar11,0);\n            }" ({ "{") (expression_statement "iVar12 = WriteBlobLongLong(param_1,iVar11,0);" (assignment_expression "iVar12 = WriteBlobLongLong(param_1,iVar11,0)" (identifier "iVar12") (= "=") (call_expression "WriteBlobLongLong(param_1,iVar11,0)" (identifier "WriteBlobLongLong") (argument_list "(param_1,iVar11,0)" (( "(") (identifier "param_1") (, ",") (identifier "iVar11") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")))) (expression_statement "uVar27 = iVar12 + 2;" (assignment_expression "uVar27 = iVar12 + 2" (identifier "uVar27") (= "=") (binary_expression "iVar12 + 2" (identifier "iVar12") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" (identifier "SeekBlob") (argument_list "(param_1,uVar34,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar34") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "local_115c = uVar27 + uVar26;" (assignment_expression "local_115c = uVar27 + uVar26" (identifier "local_115c") (= "=") (binary_expression "uVar27 + uVar26" (identifier "uVar27") (+ "+") (identifier "uVar26"))) (; ";")) (expression_statement "local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);" (assignment_expression "local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26)" (identifier "local_1158") (= "=") (binary_expression "((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26)" (binary_expression "((int)uVar27 >> 0x1f) + iVar10" (parenthesized_expression "((int)uVar27 >> 0x1f)" (( "(") (binary_expression "(int)uVar27 >> 0x1f" (cast_expression "(int)uVar27" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar27")) (>> ">>") (number_literal "0x1f")) () ")")) (+ "+") (identifier "iVar10")) (+ "+") (cast_expression "(uint)CARRY4(uVar27,uVar26)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(uVar27,uVar26)" (identifier "CARRY4") (argument_list "(uVar27,uVar26)" (( "(") (identifier "uVar27") (, ",") (identifier "uVar26") () ")")))))) (; ";")) (} "}")))) (if_statement "if (piVar5[0xa5] != 0) {\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }" (if "if") (parenthesized_expression "(piVar5[0xa5] != 0)" (( "(") (binary_expression "piVar5[0xa5] != 0" (subscript_expression "piVar5[0xa5]" (identifier "piVar5") ([ "[") (number_literal "0xa5") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);\n            uVar34 = TellBlob(param_1);\n            SeekBlob(param_1,local_115c,local_1158,0);\n            if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }\n            uVar27 = iVar12 + 2;\n            SeekBlob(param_1,uVar34,0);\n            bVar31 = CARRY4(local_115c,uVar27);\n            local_115c = local_115c + uVar27;\n            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;\n            iVar11 = iVar11 + iVar10;\n          }" ({ "{") (expression_statement "iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5)" (identifier "iVar10") (= "=") (call_expression "FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5)" (identifier "FUN_002999f0") (argument_list "(piVar5,1,local_1178,0,0,1,iVar9,param_5)" (( "(") (identifier "piVar5") (, ",") (number_literal "1") (, ",") (identifier "local_1178") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (identifier "iVar9") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" (identifier "uVar34") (= "=") (call_expression "TellBlob(param_1)" (identifier "TellBlob") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "SeekBlob(param_1,local_115c,local_1158,0);" (call_expression "SeekBlob(param_1,local_115c,local_1158,0)" (identifier "SeekBlob") (argument_list "(param_1,local_115c,local_1158,0)" (( "(") (identifier "param_1") (, ",") (identifier "local_115c") (, ",") (identifier "local_1158") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }\n            else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }" (if "if") (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" (( "(") (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" (* "*") (cast_expression "(short *)(param_3 + 0x1e)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1e)" (( "(") (binary_expression "param_3 + 0x1e" (identifier "param_3") (+ "+") (number_literal "0x1e")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n              iVar12 = WriteBlobLong(param_1,iVar10);\n            }" ({ "{") (expression_statement "iVar12 = WriteBlobLong(param_1,iVar10);" (assignment_expression "iVar12 = WriteBlobLong(param_1,iVar10)" (identifier "iVar12") (= "=") (call_expression "WriteBlobLong(param_1,iVar10)" (identifier "WriteBlobLong") (argument_list "(param_1,iVar10)" (( "(") (identifier "param_1") (, ",") (identifier "iVar10") () ")")))) (; ";")) (} "}")) (else_clause "else {\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }" (else "else") (compound_statement "{\n              iVar12 = WriteBlobLongLong(param_1,iVar10,0);\n            }" ({ "{") (expression_statement "iVar12 = WriteBlobLongLong(param_1,iVar10,0);" (assignment_expression "iVar12 = WriteBlobLongLong(param_1,iVar10,0)" (identifier "iVar12") (= "=") (call_expression "WriteBlobLongLong(param_1,iVar10,0)" (identifier "WriteBlobLongLong") (argument_list "(param_1,iVar10,0)" (( "(") (identifier "param_1") (, ",") (identifier "iVar10") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")))) (expression_statement "uVar27 = iVar12 + 2;" (assignment_expression "uVar27 = iVar12 + 2" (identifier "uVar27") (= "=") (binary_expression "iVar12 + 2" (identifier "iVar12") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" (identifier "SeekBlob") (argument_list "(param_1,uVar34,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar34") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "bVar31 = CARRY4(local_115c,uVar27);" (assignment_expression "bVar31 = CARRY4(local_115c,uVar27)" (identifier "bVar31") (= "=") (call_expression "CARRY4(local_115c,uVar27)" (identifier "CARRY4") (argument_list "(local_115c,uVar27)" (( "(") (identifier "local_115c") (, ",") (identifier "uVar27") () ")")))) (; ";")) (expression_statement "local_115c = local_115c + uVar27;" (assignment_expression "local_115c = local_115c + uVar27" (identifier "local_115c") (= "=") (binary_expression "local_115c + uVar27" (identifier "local_115c") (+ "+") (identifier "uVar27"))) (; ";")) (expression_statement "local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;" (assignment_expression "local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31" (identifier "local_1158") (= "=") (binary_expression "local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31" (binary_expression "local_1158 + ((int)uVar27 >> 0x1f)" (identifier "local_1158") (+ "+") (parenthesized_expression "((int)uVar27 >> 0x1f)" (( "(") (binary_expression "(int)uVar27 >> 0x1f" (cast_expression "(int)uVar27" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar27")) (>> ">>") (number_literal "0x1f")) () ")"))) (+ "+") (cast_expression "(uint)bVar31" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar31")))) (; ";")) (expression_statement "iVar11 = iVar11 + iVar10;" (assignment_expression "iVar11 = iVar11 + iVar10" (identifier "iVar11") (= "=") (binary_expression "iVar11 + iVar10" (identifier "iVar11") (+ "+") (identifier "iVar10"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "local_1178 = (int *)RelinquishMagickMemory(local_1178);" (assignment_expression "local_1178 = (int *)RelinquishMagickMemory(local_1178)" (identifier "local_1178") (= "=") (cast_expression "(int *)RelinquishMagickMemory(local_1178)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "RelinquishMagickMemory(local_1178)" (identifier "RelinquishMagickMemory") (argument_list "(local_1178)" (( "(") (identifier "local_1178") () ")"))))) (; ";")) (if_statement "if (piVar5[1] == 2) {\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }" (if "if") (parenthesized_expression "(piVar5[1] == 2)" (( "(") (binary_expression "piVar5[1] == 2" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);\n          NegateImage(piVar5,0,param_5);\n          SetImageChannelMask(piVar5,uVar16);\n        }" ({ "{") (expression_statement "uVar16 = SetImageChannelMask(piVar5,0x7ffffef);" (assignment_expression "uVar16 = SetImageChannelMask(piVar5,0x7ffffef)" (identifier "uVar16") (= "=") (call_expression "SetImageChannelMask(piVar5,0x7ffffef)" (identifier "SetImageChannelMask") (argument_list "(piVar5,0x7ffffef)" (( "(") (identifier "piVar5") (, ",") (number_literal "0x7ffffef") () ")")))) (; ";")) (expression_statement "NegateImage(piVar5,0,param_5);" (call_expression "NegateImage(piVar5,0,param_5)" (identifier "NegateImage") (argument_list "(piVar5,0,param_5)" (( "(") (identifier "piVar5") (, ",") (number_literal "0") (, ",") (identifier "param_5") () ")"))) (; ";")) (expression_statement "SetImageChannelMask(piVar5,uVar16);" (call_expression "SetImageChannelMask(piVar5,uVar16)" (identifier "SetImageChannelMask") (argument_list "(piVar5,uVar16)" (( "(") (identifier "piVar5") (, ",") (identifier "uVar16") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");" (assignment_expression "iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask")" (identifier "iVar10") (= "=") (call_expression "GetImageArtifact(piVar5,"psd:opacity-mask")" (identifier "GetImageArtifact") (argument_list "(piVar5,"psd:opacity-mask")" (( "(") (identifier "piVar5") (, ",") (string_literal ""psd:opacity-mask"" (" """) (string_content "psd:opacity-mask") (" """)) () ")")))) (; ";")) (if_statement "if ((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }" (if "if") (parenthesized_expression "((iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0))" (( "(") (binary_expression "(iVar10 != 0) &&\n           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)" (parenthesized_expression "(iVar10 != 0)" (( "(") (binary_expression "iVar10 != 0" (identifier "iVar10") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)" (( "(") (comma_expression "piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0" (assignment_expression "piVar24 = (int *)GetImageRegistry(1,iVar10,param_5)" (identifier "piVar24") (= "=") (cast_expression "(int *)GetImageRegistry(1,iVar10,param_5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetImageRegistry(1,iVar10,param_5)" (identifier "GetImageRegistry") (argument_list "(1,iVar10,param_5)" (( "(") (number_literal "1") (, ",") (identifier "iVar10") (, ",") (identifier "param_5") () ")"))))) (, ",") (binary_expression "piVar24 != (int *)0x0" (identifier "piVar24") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n          if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;\n          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);\n          uVar34 = TellBlob(param_1);\n          SeekBlob(param_1,local_115c,local_1158,0);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }\n          SeekBlob(param_1,uVar34,0);\n          iVar11 = iVar11 + iVar9;\n          RelinquishMagickMemory(local_1178);\n        }" ({ "{") (if_statement "if ((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)) goto LAB_0029dbfc;" (if "if") (parenthesized_expression "((iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0))" (( "(") (binary_expression "(iVar9 == 0x13) &&\n             (local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)" (parenthesized_expression "(iVar9 == 0x13)" (( "(") (binary_expression "iVar9 == 0x13" (identifier "iVar9") (== "==") (number_literal "0x13")) () ")")) (&& "&&") (parenthesized_expression "(local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0)" (( "(") (comma_expression "local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),\n             local_1178 == (int *)0x0" (assignment_expression "local_1178 = (int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01')" (identifier "local_1178") (= "=") (cast_expression "(int *)AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01')" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "AcquireQuantumMemory\n                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01')" (identifier "AcquireQuantumMemory") (argument_list "(piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01')" (( "(") (binary_expression "piVar24[6] * 9 + 1" (binary_expression "piVar24[6] * 9" (subscript_expression "piVar24[6]" (identifier "piVar24") ([ "[") (number_literal "6") (] "]")) (* "*") (number_literal "9")) (+ "+") (number_literal "1")) (, ",") (binary_expression "(8U < (uint)piVar24[8]) + '\x01'" (parenthesized_expression "(8U < (uint)piVar24[8])" (( "(") (binary_expression "8U < (uint)piVar24[8]" (number_literal "8U") (< "<") (cast_expression "(uint)piVar24[8]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar24[8]" (identifier "piVar24") ([ "[") (number_literal "8") (] "]")))) () ")")) (+ "+") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")"))))) (, ",") (binary_expression "local_1178 == (int *)0x0" (identifier "local_1178") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (goto_statement "goto LAB_0029dbfc;" (goto "goto") (statement_identifier "LAB_0029dbfc") (; ";"))) (expression_statement "iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);" (assignment_expression "iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5)" (identifier "iVar9") (= "=") (call_expression "FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5)" (identifier "FUN_002999f0") (argument_list "(piVar24,0x15,local_1178,0,0,1,iVar9,param_5)" (( "(") (identifier "piVar24") (, ",") (number_literal "0x15") (, ",") (identifier "local_1178") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (identifier "iVar9") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" (identifier "uVar34") (= "=") (call_expression "TellBlob(param_1)" (identifier "TellBlob") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "SeekBlob(param_1,local_115c,local_1158,0);" (call_expression "SeekBlob(param_1,local_115c,local_1158,0)" (identifier "SeekBlob") (argument_list "(param_1,local_115c,local_1158,0)" (( "(") (identifier "param_1") (, ",") (identifier "local_115c") (, ",") (identifier "local_1158") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n            WriteBlobLong(param_1,iVar9);\n          }\n          else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }" (if "if") (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" (( "(") (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" (* "*") (cast_expression "(short *)(param_3 + 0x1e)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1e)" (( "(") (binary_expression "param_3 + 0x1e" (identifier "param_3") (+ "+") (number_literal "0x1e")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            WriteBlobLong(param_1,iVar9);\n          }" ({ "{") (expression_statement "WriteBlobLong(param_1,iVar9);" (call_expression "WriteBlobLong(param_1,iVar9)" (identifier "WriteBlobLong") (argument_list "(param_1,iVar9)" (( "(") (identifier "param_1") (, ",") (identifier "iVar9") () ")"))) (; ";")) (} "}")) (else_clause "else {\n            WriteBlobLongLong(param_1,iVar9,0);\n          }" (else "else") (compound_statement "{\n            WriteBlobLongLong(param_1,iVar9,0);\n          }" ({ "{") (expression_statement "WriteBlobLongLong(param_1,iVar9,0);" (call_expression "WriteBlobLongLong(param_1,iVar9,0)" (identifier "WriteBlobLongLong") (argument_list "(param_1,iVar9,0)" (( "(") (identifier "param_1") (, ",") (identifier "iVar9") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")))) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" (identifier "SeekBlob") (argument_list "(param_1,uVar34,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar34") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar11 = iVar11 + iVar9;" (assignment_expression "iVar11 = iVar11 + iVar9" (identifier "iVar11") (= "=") (binary_expression "iVar11 + iVar9" (identifier "iVar11") (+ "+") (identifier "iVar9"))) (; ";")) (expression_statement "RelinquishMagickMemory(local_1178);" (call_expression "RelinquishMagickMemory(local_1178)" (identifier "RelinquishMagickMemory") (argument_list "(local_1178)" (( "(") (identifier "local_1178") () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar11 == 0) {\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }" (if "if") (parenthesized_expression "(iVar11 == 0)" (( "(") (binary_expression "iVar11 == 0" (identifier "iVar11") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          local_1178 = (int *)0x0;\n          goto LAB_0029dc36;\n        }" ({ "{") (expression_statement "local_1178 = (int *)0x0;" (assignment_expression "local_1178 = (int *)0x0" (identifier "local_1178") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (goto_statement "goto LAB_0029dc36;" (goto "goto") (statement_identifier "LAB_0029dc36") (; ";")) (} "}"))) (expression_statement "local_1130 = local_1130 + iVar11;" (assignment_expression "local_1130 = local_1130 + iVar11" (identifier "local_1130") (= "=") (binary_expression "local_1130 + iVar11" (identifier "local_1130") (+ "+") (identifier "iVar11"))) (; ";")) (expression_statement "piVar5 = (int *)GetNextImageInList(piVar5);" (assignment_expression "piVar5 = (int *)GetNextImageInList(piVar5)" (identifier "piVar5") (= "=") (cast_expression "(int *)GetNextImageInList(piVar5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetNextImageInList(piVar5)" (identifier "GetNextImageInList") (argument_list "(piVar5)" (( "(") (identifier "piVar5") () ")"))))) (; ";")) (expression_statement "local_1150 = local_1150 + 2;" (assignment_expression "local_1150 = local_1150 + 2" (identifier "local_1150") (= "=") (binary_expression "local_1150 + 2" (identifier "local_1150") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar5 != (int *)0x0)" (( "(") (binary_expression "piVar5 != (int *)0x0" (identifier "piVar5") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (expression_statement "local_1178 = (int *)0x1;" (assignment_expression "local_1178 = (int *)0x1" (identifier "local_1178") (= "=") (cast_expression "(int *)0x1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1"))) (; ";")) (labeled_statement "LAB_0029dc36:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }" (statement_identifier "LAB_0029dc36") (: ":") (if_statement "if (param_4 != (uint *)0x0) {\n      *param_4 = local_1130;\n    }" (if "if") (parenthesized_expression "(param_4 != (uint *)0x0)" (( "(") (binary_expression "param_4 != (uint *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *param_4 = local_1130;\n    }" ({ "{") (expression_statement "*param_4 = local_1130;" (assignment_expression "*param_4 = local_1130" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "local_1130")) (; ";")) (} "}")))) (expression_statement "uVar27 = local_1130 + 1;" (assignment_expression "uVar27 = local_1130 + 1" (identifier "uVar27") (= "=") (binary_expression "local_1130 + 1" (identifier "local_1130") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (local_1130 >> 1 == local_1130 + 1 >> 1) {\n      uVar27 = local_1130;\n    }" (if "if") (parenthesized_expression "(local_1130 >> 1 == local_1130 + 1 >> 1)" (( "(") (binary_expression "local_1130 >> 1 == local_1130 + 1 >> 1" (binary_expression "local_1130 >> 1" (identifier "local_1130") (>> ">>") (number_literal "1")) (== "==") (binary_expression "local_1130 + 1 >> 1" (binary_expression "local_1130 + 1" (identifier "local_1130") (+ "+") (number_literal "1")) (>> ">>") (number_literal "1"))) () ")")) (compound_statement "{\n      uVar27 = local_1130;\n    }" ({ "{") (expression_statement "uVar27 = local_1130;" (assignment_expression "uVar27 = local_1130" (identifier "uVar27") (= "=") (identifier "local_1130")) (; ";")) (} "}"))) (expression_statement "uVar34 = TellBlob(param_1);" (assignment_expression "uVar34 = TellBlob(param_1)" (identifier "uVar34") (= "=") (call_expression "TellBlob(param_1)" (identifier "TellBlob") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "SeekBlob(param_1,uVar33,0);" (call_expression "SeekBlob(param_1,uVar33,0)" (identifier "SeekBlob") (argument_list "(param_1,uVar33,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar33") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar27);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }" (if "if") (parenthesized_expression "(*(short *)(param_3 + 0x1e) == 1)" (( "(") (binary_expression "*(short *)(param_3 + 0x1e) == 1" (pointer_expression "*(short *)(param_3 + 0x1e)" (* "*") (cast_expression "(short *)(param_3 + 0x1e)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1e)" (( "(") (binary_expression "param_3 + 0x1e" (identifier "param_3") (+ "+") (number_literal "0x1e")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      WriteBlobLong(param_1,uVar27);\n    }" ({ "{") (expression_statement "WriteBlobLong(param_1,uVar27);" (call_expression "WriteBlobLong(param_1,uVar27)" (identifier "WriteBlobLong") (argument_list "(param_1,uVar27)" (( "(") (identifier "param_1") (, ",") (identifier "uVar27") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      WriteBlobLongLong(param_1,uVar27,0);\n    }" (else "else") (compound_statement "{\n      WriteBlobLongLong(param_1,uVar27,0);\n    }" ({ "{") (expression_statement "WriteBlobLongLong(param_1,uVar27,0);" (call_expression "WriteBlobLongLong(param_1,uVar27,0)" (identifier "WriteBlobLongLong") (argument_list "(param_1,uVar27,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar27") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")))) (expression_statement "SeekBlob(param_1,uVar34,0);" (call_expression "SeekBlob(param_1,uVar34,0)" (identifier "SeekBlob") (argument_list "(param_1,uVar34,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar34") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "RelinquishMagickMemory(puVar6);" (call_expression "RelinquishMagickMemory(puVar6)" (identifier "RelinquishMagickMemory") (argument_list "(puVar6)" (( "(") (identifier "puVar6") () ")"))) (; ";")) (for_statement "for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }" (for "for") (( "(") (; ";") (binary_expression "piVar4 != (int *)0x0" (identifier "piVar4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "piVar4 = (int *)GetNextImageInList(piVar4)" (identifier "piVar4") (= "=") (cast_expression "(int *)GetNextImageInList(piVar4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetNextImageInList(piVar4)" (identifier "GetNextImageInList") (argument_list "(piVar4)" (( "(") (identifier "piVar4") () ")"))))) () ")") (compound_statement "{\n      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }\n    }" ({ "{") (while_statement "while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }" (while "while") (parenthesized_expression "(iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0)" (( "(") (comma_expression "iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0" (assignment_expression "iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask")" (identifier "iVar9") (= "=") (call_expression "GetImageArtifact(piVar4,"psd:opacity-mask")" (identifier "GetImageArtifact") (argument_list "(piVar4,"psd:opacity-mask")" (( "(") (identifier "piVar4") (, ",") (string_literal ""psd:opacity-mask"" (" """) (string_content "psd:opacity-mask") (" """)) () ")")))) (, ",") (binary_expression "iVar9 != 0" (identifier "iVar9") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n        DeleteImageRegistry(iVar9);\n        piVar4 = (int *)GetNextImageInList(piVar4);\n        if (piVar4 == (int *)0x0) goto LAB_0029dd18;\n      }" ({ "{") (expression_statement "DeleteImageRegistry(iVar9);" (call_expression "DeleteImageRegistry(iVar9)" (identifier "DeleteImageRegistry") (argument_list "(iVar9)" (( "(") (identifier "iVar9") () ")"))) (; ";")) (expression_statement "piVar4 = (int *)GetNextImageInList(piVar4);" (assignment_expression "piVar4 = (int *)GetNextImageInList(piVar4)" (identifier "piVar4") (= "=") (cast_expression "(int *)GetNextImageInList(piVar4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetNextImageInList(piVar4)" (identifier "GetNextImageInList") (argument_list "(piVar4)" (( "(") (identifier "piVar4") () ")"))))) (; ";")) (if_statement "if (piVar4 == (int *)0x0) goto LAB_0029dd18;" (if "if") (parenthesized_expression "(piVar4 == (int *)0x0)" (( "(") (binary_expression "piVar4 == (int *)0x0" (identifier "piVar4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0029dd18;" (goto "goto") (statement_identifier "LAB_0029dd18") (; ";"))) (} "}"))) (} "}"))) (} "}")))) (labeled_statement "LAB_0029dd18:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_002decd0();\n  }" (statement_identifier "LAB_0029dd18") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_002decd0();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_002decd0();\n  }" ({ "{") (expression_statement "FUN_002decd0();" (call_expression "FUN_002decd0()" (identifier "FUN_002decd0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return local_1178;" (return "return") (identifier "local_1178") (; ";")) (} "}")))

/* 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 __regparm3
function_1
          (type_2 *image,type_3 *image_info,type_4 *psd_info,size_t *var_106,
          type_5 *exception)

{
  ssize_t *psVar1;
  int var_108;
  type_6 *var_14;
  double var_43;
  type_7 value;
  short var_27;
  type_2 *var_3;
  type_2 *var_7;
  type_8 *var_12;
  char *var_17;
  size_t var_20;
  ssize_t var_32;
  ssize_t var_33;
  ssize_t var_34;
  ssize_t var_35;
  type_1 var_24;
  ssize_t var_30;
  long lVar16;
  type_9 var_51;
  int var_55;
  type_10 *var_61;
  type_7 *var_67;
  type_10 *var_79;
  ssize_t var_83;
  ssize_t var_84;
  ssize_t var_85;
  ssize_t var_86;
  size_t var_101;
  type_2 *var_104;
  size_t var_100;
  type_11 var_91;
  type_12 CVar26;
  int var_29;
  short sVar28;
  type_8 var_96;
  type_8 var_69;
  size_t var_8;
  type_13 *var_59;
  type_8 var_68;
  int var_88;
  int var_36;
  char (*var_71) [5];
  int var_1;
  bool bVar37;
  type_14 bVar38;
  type_15 offset;
  type_15 MVar39;
  type_16 var_56;
  type_2 *var_89;
  type_2 *var_28;
  int var_37;
  type_13 uStack_1168;
  size_t var_38;
  int var_102;
  type_8 *var_105;
  type_8 var_31;
  type_15 size_offset;
  type_14 local_1103;
  double local_10f4;
  type_2 *local_10ec;
  type_13 local_10e8;
  type_5 *local_10e4;
  type_13 local_10e0;
  char allowed [36] [5];
  char key [5];
  char layer_name [4096];
  
  bVar38 = 0;
  var_108 = *(int *)(var_1 + 0x14);
  var_3 = var_2(image);
  if (var_3 == (type_2 *)0x0) {
    var_3 = image;
  }
  offset = var_4(image);
  if (psd_info->version == 1) {
    var_5(image,0);
  }
  else {
    var_6(image,0);
  }
  var_8 = 0;
  for (var_7 = var_3; var_7 != (type_2 *)0x0; var_7 = var_2(var_7)) {
    var_8 = var_8 + 1;
  }
  var_100 = var_8;
  if (image->alpha_trait != var_9) {
    var_100 = -var_8;
  }
  var_31 = var_10(image,(type_17)var_100);
  var_12 = (type_8 *)var_11(var_8,8);
  if (var_12 == (type_8 *)0x0) {
    var_13
              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,
               "MemoryAllocationFailed","`%s\'",0x6e,image->filename);
    var_14 = (type_6 *)image_info->adjoin;
    var_3 = image;
    while (var_7 = image, var_14 != (type_6 *)0x0) {
      var_14 = var_7->previous;
      image = var_14;
      var_3 = var_7;
    }
    var_15(var_3);
    var_89 = (type_2 *)0x0;
  }
  else {
    if (var_3 != (type_2 *)0x0) {
      var_29 = 0;
      var_89 = var_3;
      do {
        var_17 = var_16(var_89,"psd:opacity-mask");
        if (var_17 == (char *)0x0) {
          local_1103 = 0;
          var_28 = (type_2 *)0x0;
        }
        else {
          var_28 = (type_2 *)var_18(ImageRegistryType,var_17,exception);
          var_20 = var_19(var_17);
          local_1103 = -(var_20 == 9);
        }
        var_32 = var_21(image,(var_89->page).y);
        var_33 = var_21(image,(var_89->page).x);
        var_34 = var_21(image,var_89->rows + (var_89->page).y);
        var_35 = var_21(image,var_89->columns + (var_89->page).x);
        if ((var_89->storage_class == var_22) ||
           (var_24 = var_23(var_89), var_24 != var_25)) {
          var_27 = 2;
          var_38 = 1;
          sVar28 = 1;
        }
        else {
          var_27 = (var_89->colorspace == var_26) + 4;
          var_38 = (var_89->colorspace == var_26) + 3;
          sVar28 = (var_89->colorspace == var_26) + 3;
        }
        if (var_89->alpha_trait == var_9) {
          var_27 = sVar28;
        }
        var_30 = var_10(image,(var_27 + 1) - (type_17)(var_28 == (type_2 *)0x0));
        var_29 = var_29 + 1;
        var_37 = var_30 + var_31 + var_32 + var_33 + var_34 + var_35;
        MVar39 = var_4(image);
        var_12[var_29 * 2 + -2] = (type_8)MVar39;
        var_12[var_29 * 2 + -1] = (type_8)((type_18)MVar39 >> 0x20);
        var_36 = 0;
        do {
          while (var_32 = var_10(image,(type_17)var_36), psd_info->version != 1) {
            var_36 = var_36 + 1;
            var_33 = var_6(image,0);
            var_37 = var_37 + var_32 + var_33;
            if (var_36 == var_38) {
              if (var_89->alpha_trait == var_9) goto LAB_0029ca7f;
              goto LAB_0029cb4b;
            }
          }
          var_36 = var_36 + 1;
          var_33 = var_5(image,0);
          var_37 = var_37 + var_32 + var_33;
        } while (var_38 != var_36);
        if (var_89->alpha_trait != var_9) {
LAB_0029cb4b:
          var_32 = var_10(image,0xffff);
          if (psd_info->version == 1) {
            var_36 = var_5(image,0);
          }
          else {
            var_36 = var_6(image,0);
          }
          var_37 = var_36 + var_37 + var_32;
        }
LAB_0029ca7f:
        if (var_28 != (type_2 *)0x0) {
          var_32 = var_10(image,0xfffe);
          if (psd_info->version == 1) {
            var_36 = var_5(image,0);
          }
          else {
            var_36 = var_6(image,0);
          }
          var_37 = var_36 + var_37 + var_32;
        }
        var_17 = "8BIM";
        if (image->endian == var_39) {
          var_17 = "MIB8";
        }
        var_32 = var_40(image,var_17);
        switch(var_89->compose) {
        case ColorBurnCompositeOp:
          var_17 = "idiv";
          if (var_89->endian == var_39) {
            var_17 = "vidi";
          }
          break;
        case ColorDodgeCompositeOp:
          var_17 = "div ";
          if (var_89->endian == var_39) {
            var_17 = " vid";
          }
          break;
        case ColorizeCompositeOp:
          var_17 = "colr";
          if (var_89->endian == var_39) {
            var_17 = "rloc";
          }
          break;
        default:
          var_17 = "norm";
          if (var_89->endian == var_39) {
            var_17 = "mron";
          }
          break;
        case DarkenCompositeOp:
          var_17 = "dark";
          if (var_89->endian == var_39) {
            var_17 = "krad";
          }
          break;
        case DifferenceCompositeOp:
          var_17 = "diff";
          if (var_89->endian == var_39) {
            var_17 = "ffid";
          }
          break;
        case DissolveCompositeOp:
          var_17 = "diss";
          if (var_89->endian == var_39) {
            var_17 = "ssid";
          }
          break;
        case ExclusionCompositeOp:
          var_17 = "smud";
          if (var_89->endian == var_39) {
            var_17 = "dums";
          }
          break;
        case HardLightCompositeOp:
          var_17 = "hLit";
          if (var_89->endian == var_39) {
            var_17 = "tiLh";
          }
          break;
        case HardMixCompositeOp:
          var_17 = "hMix";
          if (var_89->endian == var_39) {
            var_17 = "xiMh";
          }
          break;
        case HueCompositeOp:
          var_17 = "hue ";
          if (var_89->endian == var_39) {
            var_17 = " euh";
          }
          break;
        case LightenCompositeOp:
          var_17 = "lite";
          if (var_89->endian == var_39) {
            var_17 = "etil";
          }
          break;
        case LinearBurnCompositeOp:
          var_17 = "lbrn";
          if (var_89->endian == var_39) {
            var_17 = "nrbl";
          }
          break;
        case LinearDodgeCompositeOp:
          var_17 = "lddg";
          if (var_89->endian == var_39) {
            var_17 = "gddl";
          }
          break;
        case LinearLightCompositeOp:
          var_17 = "lLit";
          if (var_89->endian == var_39) {
            var_17 = "tiLl";
          }
          break;
        case LuminizeCompositeOp:
          var_17 = "lum ";
          if (var_89->endian == var_39) {
            var_17 = " mul";
          }
          break;
        case MultiplyCompositeOp:
          var_17 = "mul ";
          if (var_89->endian == var_39) {
            var_17 = " lum";
          }
          break;
        case OverlayCompositeOp:
          var_17 = "over";
          if (var_89->endian == var_39) {
            var_17 = "revo";
          }
          break;
        case PinLightCompositeOp:
          var_17 = "pLit";
          if (var_89->endian == var_39) {
            var_17 = "tiLp";
          }
          break;
        case SaturateCompositeOp:
          var_17 = "sat ";
          if (var_89->endian == var_39) {
            var_17 = " tas";
          }
          break;
        case ScreenCompositeOp:
          var_17 = "scrn";
          if (var_89->endian == var_39) {
            var_17 = "nrcs";
          }
          break;
        case SoftLightCompositeOp:
          var_17 = "sLit";
          if (var_89->endian == var_39) {
            var_17 = "tiLs";
          }
          break;
        case VividLightCompositeOp:
          var_17 = "vLit";
          if (var_89->endian == var_39) {
            var_17 = "tiLv";
          }
        }
        var_33 = var_40(image,var_17);
        var_36 = var_37 + var_32 + var_33;
        var_17 = var_16(var_89,"psd:layer.opacity");
        if (var_17 == (char *)0x0) {
          var_32 = var_41(image,0xff);
          var_36 = var_36 + var_32;
        }
        else {
          lVar16 = var_42(var_17,(char **)0x0,10);
          var_43 = (double)lVar16;
          value = '\0';
          if (0.0 < var_43) {
            value = 0xff;
            if (var_43 / (double)var_81 < (double)DAT_002e8150) {
              value = (type_7)(short)var_44(var_43 / (double)var_81 + (double)DAT_002df2b8);
            }
          }
          var_32 = var_41(image,value);
          var_36 = var_36 + var_32;
          if (var_89->debug != var_25) {
            uStack_1168 = (type_13)((type_18)var_43 >> 0x20);
            var_45(CoderEvent,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,
                           "  applying layer opacity %.20g",var_46(var_43,0),uStack_1168);
          }
          if ((float)lVar16 != var_47) {
            if (var_89->alpha_trait != var_48) {
              var_49(var_89,OpaqueAlphaChannel,exception);
            }
            var_51 = var_50(var_89);
            if (((var_51 == var_52) ||
                (var_51 = var_50(var_89), var_51 == var_53)) &&
               ((var_51 = var_50(var_89), var_51 == var_52 ||
                (var_51 = var_50(var_89), var_51 == var_53)))) {
              var_56 = var_54(ThreadResource);
              var_8 = var_89->rows;
              var_100 = var_8 + 0x3f;
              if (-1 < (int)var_8) {
                var_100 = var_8;
              }
              bVar37 = 0x7f < (int)var_8;
              if ((int)var_56 < (int)var_100 >> 6) {
                var_56 = var_54(ThreadResource);
                bVar37 = 1 < (int)var_56;
              }
              if (bVar37) {
                var_56 = var_54(ThreadResource);
                var_8 = var_89->rows;
                var_100 = var_8 + 0x3f;
                if (-1 < (int)var_8) {
                  var_100 = var_8;
                }
                var_55 = (int)var_100 >> 6;
                if ((int)var_56 < var_55) {
                  var_56 = var_54(ThreadResource);
                  var_55 = (int)var_56;
                }
              }
              else {
LAB_0029d989:
                var_55 = 1;
              }
            }
            else {
              var_56 = var_54(ThreadResource);
              if (((int)(var_56 >> 0x20) == 0) && ((type_8)var_56 < 2)) {
                var_56 = var_54(ThreadResource);
                if (((int)(var_56 >> 0x20) == 0) && ((type_8)var_56 < 2)) goto LAB_0029d989;
              }
              var_56 = var_54(ThreadResource);
              if (((int)(var_56 >> 0x20) == 0) && ((type_8)var_56 < 2)) {
                var_56 = var_54(ThreadResource);
                var_55 = (int)var_56;
              }
              else {
                var_55 = 2;
              }
            }
            local_10e8 = 1;
            local_10e0 = 1;
            local_10e4 = exception;
            local_10ec = var_89;
            local_10f4 = var_43;
            var_57(ApplyPSDLayerOpacity__omp_fn_0,(char)&local_10f4,var_55,0);
          }
        }
        var_32 = var_41(image,'\0');
        var_33 = var_41(image,(var_89->compose == var_58) * '\x03' + '\x01');
        var_34 = var_41(image,'\0');
        var_36 = var_34 + var_36 + var_32 + var_33;
        var_59 = &DAT_0034d420;
        var_71 = allowed;
        for (var_55 = 0x2d; var_55 != 0; var_55 = var_55 + -1) {
          *(type_13 *)*var_71 = *var_59;
          var_59 = var_59 + (type_8)bVar38 * -2 + 1;
          var_71 = (char (*) [5])((int)var_71 + (type_8)bVar38 * -8 + 4);
        }
        var_61 = var_60(var_89,"psd:additional-info");
        if (var_61 == (type_10 *)0x0) {
LAB_0029ddc4:
          var_79 = (type_10 *)0x0;
        }
        else {
          var_17 = var_62(image_info,"psd:additional-info");
          var_55 = var_63(var_17,"all");
          var_79 = var_61;
          if (var_55 != 0) {
            var_55 = var_63(var_17,"selective");
            if (var_55 == 0) {
              var_8 = var_64(var_61);
              var_67 = var_65(var_61);
              if (var_8 < 0xc) {
                var_79 = var_66(var_89,"psd:additional-info");
              }
              else {
                var_38 = 0;
                do {
                  key[0] = var_67[4];
                  var_69 = var_8 - 0xc;
                  key[4] = '\0';
                  var_68 = *(type_8 *)(var_67 + 8);
                  key[1] = var_67[5];
                  var_68 = var_68 >> 0x18 | (var_68 & 0xff0000) >> 8 | (var_68 & 0xff00) << 8 |
                           var_68 << 0x18;
                  key[2] = var_67[6];
                  key[3] = var_67[7];
                  var_71 = allowed;
                  if (var_69 < var_68) goto LAB_0029ddc4;
                  do {
                    var_55 = var_70(key,*var_71,5);
                    if (var_55 == 0) {
                      var_8 = var_69 - var_68;
                      var_38 = var_38 + 0xc + var_68;
                      var_67 = var_67 + var_68 + 0xc;
                      goto LAB_0029cee4;
                    }
                    var_71 = var_71 + 1;
                  } while (&key != var_71);
                  var_8 = var_69 - var_68;
                  if (var_8 == 0) break;
                  var_72(var_67,var_67 + var_68 + 0xc,var_8);
LAB_0029cee4:
                } while (0xb < var_8);
                var_79 = var_66(var_89,"psd:additional-info");
                if (var_38 != 0) {
                  var_73(var_79,var_38);
                  var_74(var_89,"psd:additional-info",var_61,exception);
                  goto LAB_0029cfc8;
                }
              }
              var_79 = var_75(var_79);
            }
            else {
              var_61 = var_66(var_89,"psd:additional-info");
              var_79 = var_75(var_61);
            }
          }
        }
LAB_0029cfc8:
        var_17 = var_76(var_89,"label",exception);
        if (var_17 == (char *)0x0) {
          var_17 = layer_name;
          var_77(var_17,0x1000,"L%.20g",var_78((double)var_29,0),
                             (int)((type_18)(double)var_29 >> 0x20));
        }
        var_20 = var_19(var_17);
        var_68 = var_20 + 1;
        if ((var_68 & 3) != 0) {
          var_68 = (var_68 & 0xfffffffc) + 4;
        }
        if (var_79 != (type_10 *)0x0) {
          var_8 = var_64(var_79);
          var_68 = var_68 + var_8;
        }
        if (var_28 == (type_2 *)0x0) {
          var_32 = var_5(image,var_68 + 8);
          var_33 = var_5(image,0);
          var_36 = var_32 + var_33 + var_36;
        }
        else {
          var_32 = var_5(image,var_68 + 0x1c);
          if ((var_28->compose != var_58) &&
             (var_89->alpha_trait != var_9)) {
            var_80(var_89,var_28,(double)((float)local_1103 * var_81),
                                MagickTrue,exception);
          }
          psVar1 = &(var_28->page).y;
          *psVar1 = *psVar1 + (image->page).y;
          psVar1 = &(var_28->page).x;
          *psVar1 = *psVar1 + (image->page).x;
          var_33 = var_5(image,0x14);
          var_34 = var_21(image,(var_28->page).y);
          var_35 = var_21(image,(var_28->page).x);
          var_30 = var_21(image,(var_28->page).y + var_28->rows);
          var_83 = var_21(image,(var_28->page).x + var_28->columns);
          var_84 = var_41(image,local_1103);
          var_85 = var_41(image,(var_28->compose == var_58) * '\x02');
          var_86 = var_82(image,0);
          var_36 = var_36 + var_32 + var_33 + var_34 + var_35 + var_30 + var_83 + var_84 + var_85 +
                   var_86;
        }
        var_32 = var_5(image,0);
        var_20 = var_19(var_17);
        if (var_20 < 0x100) {
          if (var_20 == 0) {
            var_34 = var_41(image,'\0');
            var_55 = 3;
          }
          else {
            var_34 = var_41(image,(type_7)var_20);
            var_33 = var_87(image,var_20,var_17);
            var_34 = var_34 + var_33;
            var_68 = var_20 + 1 & 3;
            if (var_68 == 0) goto LAB_0029d1b9;
            var_55 = 4 - var_68;
          }
          var_88 = 0;
          do {
            var_88 = var_88 + 1;
            var_33 = var_41(image,'\0');
            var_34 = var_34 + var_33;
          } while (var_88 != var_55);
        }
        else {
          var_34 = var_41(image,0xff);
          var_33 = var_87(image,0xff,var_17);
          var_34 = var_34 + var_33;
        }
LAB_0029d1b9:
        var_31 = var_34 + var_32 + var_36;
        if (var_79 != (type_10 *)0x0) {
          var_67 = var_65(var_79);
          var_8 = var_64(var_79);
          var_32 = var_87(image,var_8,var_67);
          var_31 = var_31 + var_32;
        }
        var_89 = var_2(var_89);
        var_7 = var_3;
        var_105 = var_12;
      } while (var_89 != (type_2 *)0x0);
      do {
        var_89 = (type_2 *)0x0;
        var_68 = *var_105;
        var_69 = var_105[1];
        var_91 = image_info->var_91;
        if (image_info->var_91 == var_90) {
          var_91 = var_7->var_91;
        }
        if ((var_91 == var_92) &&
           (var_89 = (type_2 *)var_11
                                            (var_7->columns * 9 + 1,(8 < var_7->depth) + 1),
           var_104 = var_7, var_89 == (type_2 *)0x0)) {
LAB_0029dbfc:
          var_13
                    (exception,"coders/psd.c","AcquireCompactPixels",0xbf3,ErrorException,
                     "MemoryAllocationFailed","`%s\'",0x6e,var_104->filename);
          var_89 = (type_2 *)0x0;
          goto LAB_0029dc36;
        }
        var_96 = var_68 + 2;
        var_29 = var_69 + (0xfffffffd < var_68);
        if ((var_7->storage_class == var_22) &&
           (var_24 = var_23(var_7), var_24 == var_25)) {
          var_8 = var_93(psd_info,image_info,image,var_7,IndexQuantum,(type_7 *)var_89
                                   ,0,MagickTrue,var_91,exception);
          MVar39 = var_4(image);
          var_94(image,var_95(var_29,var_96),0);
          if (psd_info->version == 1) {
            var_32 = var_5(image,var_8);
          }
          else {
            var_32 = var_6(image,(type_18)var_8);
          }
          var_68 = var_32 + 2;
          var_94(image,MVar39,0);
          var_38 = var_68 + var_96;
          var_102 = ((int)var_68 >> 0x1f) + var_29 + (type_8)var_97(var_68,var_96);
        }
        else {
          var_24 = var_23(var_7);
          if (var_24 == var_25) {
            if (var_7->colorspace == var_26) {
              CVar26 = var_98(var_7,0x7ffffef);
              var_99(var_7,var_25,exception);
              var_98(var_7,CVar26);
            }
            var_100 = var_93(psd_info,image_info,image,var_7,RedQuantum,(type_7 *)var_89
                                     ,0,MagickTrue,var_91,exception);
            MVar39 = var_4(image);
            var_94(image,var_95(var_29,var_96),0);
            if (psd_info->version == 1) {
              var_32 = var_5(image,var_100);
            }
            else {
              var_32 = var_6(image,(type_18)var_100);
            }
            var_69 = var_32 + 2;
            var_94(image,MVar39,0);
            var_68 = var_69 + var_96;
            var_29 = ((int)var_69 >> 0x1f) + var_29 + (type_8)var_97(var_69,var_96);
            var_101 = var_93(psd_info,image_info,image,var_7,GreenQuantum,
                                       (type_7 *)var_89,0,MagickTrue,var_91,exception);
            MVar39 = var_4(image);
            var_94(image,var_95(var_29,var_68),0);
            if (psd_info->version == 1) {
              var_32 = var_5(image,var_101);
            }
            else {
              var_32 = var_6(image,(type_18)var_101);
            }
            var_96 = var_32 + 2;
            var_94(image,MVar39,0);
            var_69 = var_96 + var_68;
            var_29 = ((int)var_96 >> 0x1f) + var_29 + (type_8)var_97(var_96,var_68);
            var_8 = var_93(psd_info,image_info,image,var_7,BlueQuantum,
                                     (type_7 *)var_89,0,MagickTrue,var_91,exception);
            MVar39 = var_4(image);
            var_94(image,var_95(var_29,var_69),0);
            if (psd_info->version == 1) {
              var_32 = var_5(image,var_8);
            }
            else {
              var_32 = var_6(image,(type_18)var_8);
            }
            var_68 = var_32 + 2;
            var_94(image,MVar39,0);
            var_38 = var_68 + var_69;
            var_102 = ((int)var_68 >> 0x1f) + var_29 + (type_8)var_97(var_68,var_69);
            var_8 = var_100 + var_101 + var_8;
            if (var_7->colorspace == var_26) {
              var_100 = var_93(psd_info,image_info,image,var_7,BlackQuantum,
                                       (type_7 *)var_89,0,MagickTrue,var_91,exception);
              MVar39 = var_4(image);
              var_94(image,var_95(var_102,var_38),0);
              if (psd_info->version == 1) {
                var_32 = var_5(image,var_100);
              }
              else {
                var_32 = var_6(image,(type_18)var_100);
              }
              var_68 = var_32 + 2;
              var_94(image,MVar39,0);
              bVar37 = var_97(var_38,var_68);
              var_38 = var_38 + var_68;
              var_102 = var_102 + ((int)var_68 >> 0x1f) + (type_8)bVar37;
              var_8 = var_8 + var_100;
            }
          }
          else {
            var_8 = var_93(psd_info,image_info,image,var_7,GrayQuantum,
                                     (type_7 *)var_89,0,MagickTrue,var_91,exception);
            MVar39 = var_4(image);
            var_94(image,var_95(var_29,var_96),0);
            if (psd_info->version == 1) {
              var_32 = var_5(image,var_8);
            }
            else {
              var_32 = var_6(image,(type_18)var_8);
            }
            var_68 = var_32 + 2;
            var_94(image,MVar39,0);
            var_38 = var_68 + var_96;
            var_102 = ((int)var_68 >> 0x1f) + var_29 + (type_8)var_97(var_68,var_96);
          }
          if (var_7->alpha_trait != var_9) {
            var_100 = var_93(psd_info,image_info,image,var_7,AlphaQuantum,
                                     (type_7 *)var_89,0,MagickTrue,var_91,exception);
            MVar39 = var_4(image);
            var_94(image,var_95(var_102,var_38),0);
            if (psd_info->version == 1) {
              var_32 = var_5(image,var_100);
            }
            else {
              var_32 = var_6(image,(type_18)var_100);
            }
            var_68 = var_32 + 2;
            var_94(image,MVar39,0);
            bVar37 = var_97(var_38,var_68);
            var_38 = var_38 + var_68;
            var_102 = var_102 + ((int)var_68 >> 0x1f) + (type_8)bVar37;
            var_8 = var_8 + var_100;
          }
        }
        var_89 = (type_2 *)var_103(var_89);
        if (var_7->colorspace == var_26) {
          CVar26 = var_98(var_7,0x7ffffef);
          var_99(var_7,var_25,exception);
          var_98(var_7,CVar26);
        }
        var_17 = var_16(var_7,"psd:opacity-mask");
        if ((var_17 != (char *)0x0) &&
           (var_104 = (type_2 *)var_18(ImageRegistryType,var_17,exception),
           var_104 != (type_2 *)0x0)) {
          if ((var_91 == var_92) &&
             (var_89 = (type_2 *)var_11
                                              (var_104->columns * 9 + 1,
                                               (8 < var_104->depth) + 1),
             var_89 == (type_2 *)0x0)) goto LAB_0029dbfc;
          var_100 = var_93(psd_info,image_info,image,var_104,RedQuantum,
                                   (type_7 *)var_89,0,MagickTrue,var_91,exception);
          MVar39 = var_4(image);
          var_94(image,var_95(var_102,var_38),0);
          if (psd_info->version == 1) {
            var_5(image,var_100);
          }
          else {
            var_6(image,(type_18)var_100);
          }
          var_94(image,MVar39,0);
          var_8 = var_8 + var_100;
          var_103(var_89);
        }
        if (var_8 == 0) {
          var_89 = (type_2 *)0x0;
          goto LAB_0029dc36;
        }
        var_31 = var_31 + var_8;
        var_7 = var_2(var_7);
        var_105 = var_105 + 2;
      } while (var_7 != (type_2 *)0x0);
    }
    var_89 = (type_2 *)0x1;
LAB_0029dc36:
    if (var_106 != (size_t *)0x0) {
      *var_106 = var_31;
    }
    var_68 = var_31 + 1;
    if (var_31 >> 1 == var_31 + 1 >> 1) {
      var_68 = var_31;
    }
    MVar39 = var_4(image);
    var_94(image,offset,0);
    if (psd_info->version == 1) {
      var_5(image,var_68);
    }
    else {
      var_6(image,(type_18)var_68);
    }
    var_94(image,MVar39,0);
    var_103(var_12);
    for (; var_3 != (type_2 *)0x0; var_3 = var_2(var_3)) {
      while (var_17 = var_16(var_3,"psd:opacity-mask"), var_17 != (char *)0x0) {
        var_107(var_17);
        var_3 = var_2(var_3);
        if (var_3 == (type_2 *)0x0) goto LAB_0029dd18;
      }
    }
  }
LAB_0029dd18:
  if (var_108 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_109();
  }
  return (type_1)var_89;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator 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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) 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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) 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 (identifier) (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (for_statement initializer: (assignment_expression left: (identifier) right: (identifier)) condition: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))) update: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (string_literal (string_content)) (number_literal) (number_literal) (string_literal (string_content)) (string_literal (string_content) (escape_sequence)) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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: (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)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)) right: (identifier)) right: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))))) (labeled_statement label: (statement_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) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (switch_statement condition: (parenthesized_expression (subscript_expression argument: (identifier) index: (number_literal))) body: (compound_statement (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (number_literal)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (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) (string_literal (string_content)) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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)))))) right: (parenthesized_expression (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (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: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (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: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) alternative: (else_clause (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier) (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (char_literal (escape_sequence))) right: (char_literal (escape_sequence))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)))))) (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) (string_literal (string_content)))))) (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))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)) right: (number_literal)))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)) right: (number_literal)))) (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (MISSING ";")))) condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier)))) (goto_statement label: (statement_identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))))))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (string_literal (string_content)) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_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) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (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: (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: (subscript_expression argument: (identifier) index: (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: (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: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (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: (call_expression function: (identifier) arguments: (argument_list (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: (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: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (char_literal (escape_sequence))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)) right: (identifier)) right: (identifier)) right: (identifier)) right: (identifier)) right: (identifier)) right: (identifier)) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (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: (binary_expression left: (number_literal) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (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))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (number_literal)) (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) right: (char_literal (escape_sequence))))))) right: (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (string_literal (string_content)) (number_literal) (number_literal) (string_literal (string_content)) (string_literal (string_content) (escape_sequence)) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (goto_statement label: (statement_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: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (number_literal) (number_literal) (number_literal) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) right: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (number_literal) (number_literal) (number_literal) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) right: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (number_literal) (number_literal) (number_literal) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) right: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (number_literal) (number_literal) (number_literal) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) right: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (number_literal) (number_literal) (number_literal) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (number_literal) (number_literal) (number_literal) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) right: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (number_literal) (number_literal) (number_literal) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)))))) (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier))))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) consequence: (compound_statement (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (number_literal)) (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) right: (char_literal (escape_sequence))))))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (number_literal) (number_literal) (number_literal) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) 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 (identifier) (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) 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 (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) 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 (identifier) (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (for_statement condition: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))) update: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier))))) body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content))))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier)))))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (return_statement (identifier)))))

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

undefined4 __regparm3
MASKED(int *param_1,int *param_2,int param_3,uint *param_4,undefined4 param_5)

{
  double dVar1;
  undefined1 uVar2;
  short sVar3;
  int *piVar4;
  int *piVar5;
  uint *puVar6;
  char *pcVar7;
  size_t sVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  int iVar13;
  undefined1 *puVar14;
  long lVar15;
  undefined4 uVar16;
  void *__dest;
  int iVar17;
  int iVar18;
  int iVar19;
  int iVar20;
  int iVar21;
  int iVar22;
  undefined4 uVar23;
  int *piVar24;
  short sVar25;
  uint uVar26;
  uint uVar27;
  uint uVar28;
  undefined4 *puVar29;
  undefined4 *puVar30;
  int in_GS_OFFSET;
  bool bVar31;
  byte bVar32;
  undefined8 uVar33;
  undefined8 uVar34;
  int *local_1178;
  int local_1174;
  int local_116c;
  uint local_115c;
  int local_1158;
  uint *local_1150;
  int local_114c;
  uint local_1130;
  byte local_1103;
  double local_10f4;
  int *local_10ec;
  undefined4 local_10e8;
  undefined4 local_10e4;
  undefined4 local_10e0;
  undefined4 local_10d9 [45];
  undefined1 local_1025;
  undefined1 local_1024;
  undefined1 local_1023;
  undefined1 local_1022;
  undefined1 local_1021;
  char local_1020 [4096];
  int local_20;
  undefined4 uStack_14;
  
  bVar32 = 0;
  uStack_14 = 0x29c7ad;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  piVar4 = (int *)GetNextImageInList(param_1);
  if (piVar4 == (int *)0x0) {
    piVar4 = param_1;
  }
  uVar33 = TellBlob(param_1);
  if (*(short *)(param_3 + 0x1e) == 1) {
    WriteBlobLong(param_1,0);
  }
  else {
    WriteBlobLongLong(param_1,0,0);
  }
  uVar27 = 0;
  for (piVar5 = piVar4; piVar5 != (int *)0x0; piVar5 = (int *)GetNextImageInList(piVar5)) {
    uVar27 = uVar27 + 1;
  }
  uVar28 = uVar27;
  if (param_1[0xa5] != 0) {
    uVar28 = -uVar27;
  }
  local_1130 = WriteBlobShort(param_1,uVar28 & 0xffff);
  puVar6 = (uint *)AcquireQuantumMemory(uVar27,8);
  if (puVar6 == (uint *)0x0) {
    ThrowMagickException
              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",
               "`%s\'",param_1 + 0xc6);
    piVar4 = (int *)param_2[3];
    piVar5 = param_1;
    while (piVar24 = param_1, piVar4 != (int *)0x0) {
      piVar4 = (int *)piVar24[0xccf];
      param_1 = piVar4;
      piVar5 = piVar24;
    }
    CloseBlob(piVar5);
    local_1178 = (int *)0x0;
  }
  else {
    if (piVar4 != (int *)0x0) {
      local_114c = 0;
      local_1178 = piVar4;
      do {
        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:opacity-mask");
        if (pcVar7 == (char *)0x0) {
          local_1103 = 0;
          local_1174 = 0;
        }
        else {
          local_1174 = GetImageRegistry(1,pcVar7,param_5);
          sVar8 = strlen(pcVar7);
          local_1103 = -(sVar8 == 9);
        }
        iVar9 = WriteBlobSignedLong(param_1,local_1178[0x83]);
        iVar10 = WriteBlobSignedLong(param_1,local_1178[0x82]);
        iVar11 = WriteBlobSignedLong(param_1,local_1178[7] + local_1178[0x83]);
        iVar12 = WriteBlobSignedLong(param_1,local_1178[6] + local_1178[0x82]);
        if ((*local_1178 == 2) || (iVar13 = IsImageGray(local_1178), iVar13 != 0)) {
          sVar3 = 2;
          local_115c = 1;
          sVar25 = 1;
        }
        else {
          sVar3 = (local_1178[1] == 2) + 4;
          local_115c = (local_1178[1] == 2) + 3;
          sVar25 = (local_1178[1] == 2) + 3;
        }
        if (local_1178[0xa5] == 0) {
          sVar3 = sVar25;
        }
        local_116c = WriteBlobShort(param_1,(sVar3 + 1) - (ushort)(local_1174 == 0));
        local_114c = local_114c + 1;
        local_116c = local_116c + local_1130 + iVar9 + iVar10 + iVar11 + iVar12;
        uVar34 = TellBlob(param_1);
        puVar6[local_114c * 2 + -2] = (uint)uVar34;
        puVar6[local_114c * 2 + -1] = (uint)((ulonglong)uVar34 >> 0x20);
        iVar9 = 0;
        do {
          while (iVar10 = WriteBlobShort(param_1,iVar9), *(short *)(param_3 + 0x1e) != 1) {
            iVar9 = iVar9 + 1;
            iVar11 = WriteBlobLongLong(param_1,0,0);
            local_116c = local_116c + iVar10 + iVar11;
            if (iVar9 == local_115c) {
              if (local_1178[0xa5] == 0) goto LAB_0029ca7f;
              goto LAB_0029cb4b;
            }
          }
          iVar9 = iVar9 + 1;
          iVar11 = WriteBlobLong(param_1,0);
          local_116c = local_116c + iVar10 + iVar11;
        } while (local_115c != iVar9);
        if (local_1178[0xa5] != 0) {
LAB_0029cb4b:
          iVar9 = WriteBlobShort(param_1,0xffff);
          if (*(short *)(param_3 + 0x1e) == 1) {
            iVar10 = WriteBlobLong(param_1,0);
          }
          else {
            iVar10 = WriteBlobLongLong(param_1,0,0);
          }
          local_116c = iVar10 + local_116c + iVar9;
        }
LAB_0029ca7f:
        if (local_1174 != 0) {
          iVar9 = WriteBlobShort(param_1,0xfffe);
          if (*(short *)(param_3 + 0x1e) == 1) {
            iVar10 = WriteBlobLong(param_1,0);
          }
          else {
            iVar10 = WriteBlobLongLong(param_1,0,0);
          }
          local_116c = iVar10 + local_116c + iVar9;
        }
        puVar14 = &DAT_002e24fa;
        if (param_1[0x8d] == 1) {
          puVar14 = &DAT_0034cdc9;
        }
        iVar9 = WriteBlobString(param_1,puVar14);
        switch(local_1178[0x8f]) {
        case 8:
          pcVar7 = "idiv";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "vidi";
          }
          break;
        case 9:
          pcVar7 = "div ";
          if (local_1178[0x8d] == 1) {
            pcVar7 = " vid";
          }
          break;
        case 10:
          pcVar7 = "colr";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "rloc";
          }
          break;
        default:
          pcVar7 = "norm";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "mron";
          }
          break;
        case 0x14:
          pcVar7 = "dark";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "krad";
          }
          break;
        case 0x16:
          pcVar7 = "diff";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "ffid";
          }
          break;
        case 0x18:
          pcVar7 = "diss";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "ssid";
          }
          break;
        case 0x21:
          pcVar7 = "smud";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "dums";
          }
          break;
        case 0x22:
          pcVar7 = "hLit";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "tiLh";
          }
          break;
        case 0x23:
          pcVar7 = "hMix";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "xiMh";
          }
          break;
        case 0x24:
          pcVar7 = "hue ";
          if (local_1178[0x8d] == 1) {
            pcVar7 = " euh";
          }
          break;
        case 0x27:
          pcVar7 = "lite";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "etil";
          }
          break;
        case 0x29:
          pcVar7 = "lbrn";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "nrbl";
          }
          break;
        case 0x2a:
          pcVar7 = "lddg";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "gddl";
          }
          break;
        case 0x2b:
          pcVar7 = "lLit";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "tiLl";
          }
          break;
        case 0x2c:
          pcVar7 = "lum ";
          if (local_1178[0x8d] == 1) {
            pcVar7 = " mul";
          }
          break;
        case 0x33:
          pcVar7 = "mul ";
          if (local_1178[0x8d] == 1) {
            pcVar7 = " lum";
          }
          break;
        case 0x37:
          pcVar7 = "over";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "revo";
          }
          break;
        case 0x39:
          pcVar7 = "pLit";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "tiLp";
          }
          break;
        case 0x3c:
          pcVar7 = "sat ";
          if (local_1178[0x8d] == 1) {
            pcVar7 = " tas";
          }
          break;
        case 0x3d:
          pcVar7 = "scrn";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "nrcs";
          }
          break;
        case 0x3e:
          pcVar7 = "sLit";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "tiLs";
          }
          break;
        case 0x45:
          pcVar7 = "vLit";
          if (local_1178[0x8d] == 1) {
            pcVar7 = "tiLv";
          }
        }
        iVar10 = WriteBlobString(param_1,pcVar7);
        iVar10 = local_116c + iVar9 + iVar10;
        pcVar7 = (char *)GetImageArtifact(local_1178,"psd:layer.opacity");
        if (pcVar7 == (char *)0x0) {
          iVar9 = WriteBlobByte(param_1,0xff);
          iVar10 = iVar10 + iVar9;
        }
        else {
          lVar15 = strtol(pcVar7,(char **)0x0,10);
          dVar1 = (double)lVar15;
          uVar2 = 0;
          if (0.0 < dVar1) {
            uVar2 = 0xff;
            if (dVar1 / (double)DAT_002e814c < (double)DAT_002e8150) {
              uVar2 = (undefined1)(short)ROUND(dVar1 / (double)DAT_002e814c + (double)DAT_002df2b8);
            }
          }
          iVar9 = WriteBlobByte(param_1,uVar2);
          iVar10 = iVar10 + iVar9;
          if (local_1178[0xcca] != 0) {
            LogMagickEvent(0x10,"coders/psd.c","ApplyPSDLayerOpacity",0x18a,
                           "  applying layer opacity %.20g",dVar1);
          }
          if ((float)lVar15 != DAT_002df8a8) {
            if (local_1178[0xa5] != 4) {
              SetImageAlphaChannel(local_1178,0xb,param_5);
            }
            iVar9 = GetImagePixelCacheType(local_1178);
            if (((iVar9 == 4) || (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)) &&
               ((iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 4 ||
                (iVar9 = GetImagePixelCacheType(local_1178), iVar9 == 3)))) {
              iVar12 = GetMagickResourceLimit(7);
              iVar9 = local_1178[7];
              iVar11 = iVar9 + 0x3f;
              if (-1 < iVar9) {
                iVar11 = iVar9;
              }
              bVar31 = 0x7f < iVar9;
              if (iVar12 < iVar11 >> 6) {
                iVar9 = GetMagickResourceLimit(7);
                bVar31 = 1 < iVar9;
              }
              if (bVar31) {
                iVar12 = GetMagickResourceLimit(7);
                iVar11 = local_1178[7];
                iVar9 = iVar11 + 0x3f;
                if (-1 < iVar11) {
                  iVar9 = iVar11;
                }
                iVar9 = iVar9 >> 6;
                if (iVar12 < iVar9) {
                  iVar9 = GetMagickResourceLimit(7);
                }
              }
              else {
LAB_0029d989:
                iVar9 = 1;
              }
            }
            else {
              uVar34 = GetMagickResourceLimit(7);
              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {
                uVar34 = GetMagickResourceLimit(7);
                if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2))
                goto LAB_0029d989;
              }
              uVar34 = GetMagickResourceLimit(7);
              if (((int)((ulonglong)uVar34 >> 0x20) == 0) && ((uint)uVar34 < 2)) {
                iVar9 = GetMagickResourceLimit(7);
              }
              else {
                iVar9 = 2;
              }
            }
            local_10e8 = 1;
            local_10e0 = 1;
            local_10e4 = param_5;
            local_10ec = local_1178;
            local_10f4 = dVar1;
            GOMP_parallel(FUN_00299110,&local_10f4,iVar9,0);
          }
        }
        iVar11 = WriteBlobByte(param_1,0);
        iVar12 = WriteBlobByte(param_1,(local_1178[0x8f] == 0x34) * '\x03' + '\x01');
        iVar9 = WriteBlobByte(param_1,0);
        iVar9 = iVar9 + iVar10 + iVar11 + iVar12;
        puVar30 = &DAT_0034d420;
        puVar29 = local_10d9;
        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {
          *puVar29 = *puVar30;
          puVar30 = puVar30 + (uint)bVar32 * -2 + 1;
          puVar29 = puVar29 + (uint)bVar32 * -2 + 1;
        }
        iVar10 = GetImageProfile(local_1178,"psd:additional-info");
        if (iVar10 == 0) {
LAB_0029ddc4:
          iVar11 = 0;
        }
        else {
          uVar16 = GetImageOption(param_2,"psd:additional-info");
          iVar12 = LocaleCompare(uVar16,"all");
          iVar11 = iVar10;
          if (iVar12 != 0) {
            iVar11 = LocaleCompare(uVar16,"selective");
            if (iVar11 == 0) {
              uVar27 = GetStringInfoLength(iVar10);
              __dest = (void *)GetStringInfoDatum(iVar10);
              if (uVar27 < 0xc) {
                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");
              }
              else {
                local_115c = 0;
                do {
                  local_1025 = *(undefined1 *)((int)__dest + 4);
                  uVar27 = uVar27 - 0xc;
                  local_1021 = 0;
                  uVar28 = *(uint *)((int)__dest + 8);
                  local_1024 = *(undefined1 *)((int)__dest + 5);
                  uVar28 = uVar28 >> 0x18 | (uVar28 & 0xff0000) >> 8 | (uVar28 & 0xff00) << 8 |
                           uVar28 << 0x18;
                  local_1023 = *(undefined1 *)((int)__dest + 6);
                  local_1022 = *(undefined1 *)((int)__dest + 7);
                  puVar30 = local_10d9;
                  if (uVar27 < uVar28) goto LAB_0029ddc4;
                  do {
                    iVar11 = LocaleNCompare(&local_1025,puVar30,5);
                    if (iVar11 == 0) {
                      uVar27 = uVar27 - uVar28;
                      local_115c = local_115c + 0xc + uVar28;
                      __dest = (void *)((int)__dest + uVar28 + 0xc);
                      goto LAB_0029cee4;
                    }
                    puVar30 = (undefined4 *)((int)puVar30 + 5);
                  } while ((undefined4 *)&local_1025 != puVar30);
                  uVar27 = uVar27 - uVar28;
                  if (uVar27 == 0) break;
                  memmove(__dest,(void *)((int)__dest + uVar28 + 0xc),uVar27);
LAB_0029cee4:
                } while (0xb < uVar27);
                iVar11 = RemoveImageProfile(local_1178,"psd:additional-info");
                if (local_115c != 0) {
                  SetStringInfoLength(iVar11,local_115c);
                  SetImageProfile(local_1178,"psd:additional-info",iVar10,param_5);
                  goto LAB_0029cfc8;
                }
              }
              iVar11 = DestroyStringInfo(iVar11);
            }
            else {
              uVar16 = RemoveImageProfile(local_1178,"psd:additional-info");
              iVar11 = DestroyStringInfo(uVar16);
            }
          }
        }
LAB_0029cfc8:
        pcVar7 = (char *)GetImageProperty(local_1178,"label",param_5);
        if (pcVar7 == (char *)0x0) {
          pcVar7 = local_1020;
          FormatLocaleString(pcVar7,0x1000,"L%.20g",(double)local_114c);
        }
        sVar8 = strlen(pcVar7);
        uVar27 = sVar8 + 1;
        if ((uVar27 & 3) != 0) {
          uVar27 = (uVar27 & 0xfffffffc) + 4;
        }
        if (iVar11 != 0) {
          iVar10 = GetStringInfoLength(iVar11);
          uVar27 = uVar27 + iVar10;
        }
        if (local_1174 == 0) {
          iVar10 = WriteBlobLong(param_1,uVar27 + 8);
          iVar12 = WriteBlobLong(param_1,0);
          iVar10 = iVar10 + iVar12 + iVar9;
        }
        else {
          iVar12 = WriteBlobLong(param_1,uVar27 + 0x1c);
          if ((*(int *)(local_1174 + 0x23c) != 0x34) && (local_1178[0xa5] != 0)) {
            FUN_00299700((double)((float)local_1103 * DAT_002e814c),param_5);
          }
          *(int *)(local_1174 + 0x20c) = *(int *)(local_1174 + 0x20c) + param_1[0x83];
          *(int *)(local_1174 + 0x208) = *(int *)(local_1174 + 0x208) + param_1[0x82];
          iVar13 = WriteBlobLong(param_1,0x14);
          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x20c));
          iVar18 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_1174 + 0x208));
          iVar19 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x20c) +
                                               *(int *)(local_1174 + 0x1c));
          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_1174 + 0x208) +
                                               *(int *)(local_1174 + 0x18));
          iVar21 = WriteBlobByte(param_1,local_1103);
          iVar22 = WriteBlobByte(param_1,(*(int *)(local_1174 + 0x23c) == 0x34) * '\x02');
          iVar10 = WriteBlobMSBShort(param_1,0);
          iVar10 = iVar9 + iVar12 + iVar13 + iVar17 + iVar18 + iVar19 + iVar20 + iVar21 + iVar22 +
                   iVar10;
        }
        iVar9 = WriteBlobLong(param_1,0);
        sVar8 = strlen(pcVar7);
        if (sVar8 < 0x100) {
          if (sVar8 == 0) {
            iVar13 = WriteBlobByte(param_1,0);
            local_1174 = 3;
          }
          else {
            iVar13 = WriteBlobByte(param_1,sVar8);
            iVar12 = WriteBlob(param_1,sVar8,pcVar7);
            iVar13 = iVar13 + iVar12;
            uVar27 = sVar8 + 1 & 3;
            if (uVar27 == 0) goto LAB_0029d1b9;
            local_1174 = 4 - uVar27;
          }
          iVar12 = 0;
          do {
            iVar12 = iVar12 + 1;
            iVar17 = WriteBlobByte(param_1,0);
            iVar13 = iVar13 + iVar17;
          } while (iVar12 != local_1174);
        }
        else {
          iVar13 = WriteBlobByte(param_1,0xff);
          iVar12 = WriteBlob(param_1,0xff,pcVar7);
          iVar13 = iVar13 + iVar12;
        }
LAB_0029d1b9:
        local_1130 = iVar13 + iVar9 + iVar10;
        if (iVar11 != 0) {
          uVar16 = GetStringInfoDatum(iVar11);
          uVar23 = GetStringInfoLength(iVar11);
          iVar9 = WriteBlob(param_1,uVar23,uVar16);
          local_1130 = local_1130 + iVar9;
        }
        local_1178 = (int *)GetNextImageInList(local_1178);
        piVar5 = piVar4;
        local_1150 = puVar6;
      } while (local_1178 != (int *)0x0);
      do {
        local_1178 = (int *)0x0;
        uVar27 = *local_1150;
        uVar28 = local_1150[1];
        iVar9 = *param_2;
        if (*param_2 == 0) {
          iVar9 = piVar5[2];
        }
        if ((iVar9 == 0x13) &&
           (local_1178 = (int *)AcquireQuantumMemory
                                          (piVar5[6] * 9 + 1,(8U < (uint)piVar5[8]) + '\x01'),
           piVar24 = piVar5, local_1178 == (int *)0x0)) {
LAB_0029dbfc:
          ThrowMagickException
                    (param_5,"coders/psd.c","AcquireCompactPixels",0xbf3,400,
                     "MemoryAllocationFailed","`%s\'",piVar24 + 0xc6);
          local_1178 = (int *)0x0;
          goto LAB_0029dc36;
        }
        uVar26 = uVar27 + 2;
        iVar10 = uVar28 + (0xfffffffd < uVar27);
        if ((*piVar5 == 2) && (iVar11 = IsImageGray(piVar5), iVar11 == 0)) {
          iVar11 = FUN_002999f0(piVar5,0x12,local_1178,0,0,1,iVar9,param_5);
          uVar34 = TellBlob(param_1);
          SeekBlob(param_1,uVar26,iVar10,0);
          if (*(short *)(param_3 + 0x1e) == 1) {
            iVar12 = WriteBlobLong(param_1,iVar11);
          }
          else {
            iVar12 = WriteBlobLongLong(param_1,iVar11,0);
          }
          uVar27 = iVar12 + 2;
          SeekBlob(param_1,uVar34,0);
          local_115c = uVar27 + uVar26;
          local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);
        }
        else {
          iVar11 = IsImageGray(piVar5);
          if (iVar11 == 0) {
            if (piVar5[1] == 2) {
              uVar16 = SetImageChannelMask(piVar5,0x7ffffef);
              NegateImage(piVar5,0,param_5);
              SetImageChannelMask(piVar5,uVar16);
            }
            iVar12 = FUN_002999f0(piVar5,0x15,local_1178,0,0,1,iVar9,param_5);
            uVar34 = TellBlob(param_1);
            SeekBlob(param_1,uVar26,iVar10,0);
            if (*(short *)(param_3 + 0x1e) == 1) {
              iVar11 = WriteBlobLong(param_1,iVar12);
            }
            else {
              iVar11 = WriteBlobLongLong(param_1,iVar12,0);
            }
            uVar28 = iVar11 + 2;
            SeekBlob(param_1,uVar34,0);
            uVar27 = uVar28 + uVar26;
            iVar11 = ((int)uVar28 >> 0x1f) + iVar10 + (uint)CARRY4(uVar28,uVar26);
            iVar10 = FUN_002999f0(piVar5,0x10,local_1178,0,0,1,iVar9,param_5);
            uVar34 = TellBlob(param_1);
            SeekBlob(param_1,uVar27,iVar11,0);
            if (*(short *)(param_3 + 0x1e) == 1) {
              iVar13 = WriteBlobLong(param_1,iVar10);
            }
            else {
              iVar13 = WriteBlobLongLong(param_1,iVar10,0);
            }
            uVar26 = iVar13 + 2;
            SeekBlob(param_1,uVar34,0);
            uVar28 = uVar26 + uVar27;
            iVar13 = ((int)uVar26 >> 0x1f) + iVar11 + (uint)CARRY4(uVar26,uVar27);
            iVar11 = FUN_002999f0(piVar5,6,local_1178,0,0,1,iVar9,param_5);
            uVar34 = TellBlob(param_1);
            SeekBlob(param_1,uVar28,iVar13,0);
            if (*(short *)(param_3 + 0x1e) == 1) {
              iVar17 = WriteBlobLong(param_1,iVar11);
            }
            else {
              iVar17 = WriteBlobLongLong(param_1,iVar11,0);
            }
            uVar27 = iVar17 + 2;
            SeekBlob(param_1,uVar34,0);
            local_115c = uVar27 + uVar28;
            local_1158 = ((int)uVar27 >> 0x1f) + iVar13 + (uint)CARRY4(uVar27,uVar28);
            iVar11 = iVar12 + iVar10 + iVar11;
            if (piVar5[1] == 2) {
              iVar10 = FUN_002999f0(piVar5,5,local_1178,0,0,1,iVar9,param_5);
              uVar34 = TellBlob(param_1);
              SeekBlob(param_1,local_115c,local_1158,0);
              if (*(short *)(param_3 + 0x1e) == 1) {
                iVar12 = WriteBlobLong(param_1,iVar10);
              }
              else {
                iVar12 = WriteBlobLongLong(param_1,iVar10,0);
              }
              uVar27 = iVar12 + 2;
              SeekBlob(param_1,uVar34,0);
              bVar31 = CARRY4(local_115c,uVar27);
              local_115c = local_115c + uVar27;
              local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;
              iVar11 = iVar11 + iVar10;
            }
          }
          else {
            iVar11 = FUN_002999f0(piVar5,0xf,local_1178,0,0,1,iVar9,param_5);
            uVar34 = TellBlob(param_1);
            SeekBlob(param_1,uVar26,iVar10,0);
            if (*(short *)(param_3 + 0x1e) == 1) {
              iVar12 = WriteBlobLong(param_1,iVar11);
            }
            else {
              iVar12 = WriteBlobLongLong(param_1,iVar11,0);
            }
            uVar27 = iVar12 + 2;
            SeekBlob(param_1,uVar34,0);
            local_115c = uVar27 + uVar26;
            local_1158 = ((int)uVar27 >> 0x1f) + iVar10 + (uint)CARRY4(uVar27,uVar26);
          }
          if (piVar5[0xa5] != 0) {
            iVar10 = FUN_002999f0(piVar5,1,local_1178,0,0,1,iVar9,param_5);
            uVar34 = TellBlob(param_1);
            SeekBlob(param_1,local_115c,local_1158,0);
            if (*(short *)(param_3 + 0x1e) == 1) {
              iVar12 = WriteBlobLong(param_1,iVar10);
            }
            else {
              iVar12 = WriteBlobLongLong(param_1,iVar10,0);
            }
            uVar27 = iVar12 + 2;
            SeekBlob(param_1,uVar34,0);
            bVar31 = CARRY4(local_115c,uVar27);
            local_115c = local_115c + uVar27;
            local_1158 = local_1158 + ((int)uVar27 >> 0x1f) + (uint)bVar31;
            iVar11 = iVar11 + iVar10;
          }
        }
        local_1178 = (int *)RelinquishMagickMemory(local_1178);
        if (piVar5[1] == 2) {
          uVar16 = SetImageChannelMask(piVar5,0x7ffffef);
          NegateImage(piVar5,0,param_5);
          SetImageChannelMask(piVar5,uVar16);
        }
        iVar10 = GetImageArtifact(piVar5,"psd:opacity-mask");
        if ((iVar10 != 0) &&
           (piVar24 = (int *)GetImageRegistry(1,iVar10,param_5), piVar24 != (int *)0x0)) {
          if ((iVar9 == 0x13) &&
             (local_1178 = (int *)AcquireQuantumMemory
                                            (piVar24[6] * 9 + 1,(8U < (uint)piVar24[8]) + '\x01'),
             local_1178 == (int *)0x0)) goto LAB_0029dbfc;
          iVar9 = FUN_002999f0(piVar24,0x15,local_1178,0,0,1,iVar9,param_5);
          uVar34 = TellBlob(param_1);
          SeekBlob(param_1,local_115c,local_1158,0);
          if (*(short *)(param_3 + 0x1e) == 1) {
            WriteBlobLong(param_1,iVar9);
          }
          else {
            WriteBlobLongLong(param_1,iVar9,0);
          }
          SeekBlob(param_1,uVar34,0);
          iVar11 = iVar11 + iVar9;
          RelinquishMagickMemory(local_1178);
        }
        if (iVar11 == 0) {
          local_1178 = (int *)0x0;
          goto LAB_0029dc36;
        }
        local_1130 = local_1130 + iVar11;
        piVar5 = (int *)GetNextImageInList(piVar5);
        local_1150 = local_1150 + 2;
      } while (piVar5 != (int *)0x0);
    }
    local_1178 = (int *)0x1;
LAB_0029dc36:
    if (param_4 != (uint *)0x0) {
      *param_4 = local_1130;
    }
    uVar27 = local_1130 + 1;
    if (local_1130 >> 1 == local_1130 + 1 >> 1) {
      uVar27 = local_1130;
    }
    uVar34 = TellBlob(param_1);
    SeekBlob(param_1,uVar33,0);
    if (*(short *)(param_3 + 0x1e) == 1) {
      WriteBlobLong(param_1,uVar27);
    }
    else {
      WriteBlobLongLong(param_1,uVar27,0);
    }
    SeekBlob(param_1,uVar34,0);
    RelinquishMagickMemory(puVar6);
    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {
      while (iVar9 = GetImageArtifact(piVar4,"psd:opacity-mask"), iVar9 != 0) {
        DeleteImageRegistry(iVar9);
        piVar4 = (int *)GetNextImageInList(piVar4);
        if (piVar4 == (int *)0x0) goto LAB_0029dd18;
      }
    }
  }
LAB_0029dd18:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_002decd0();
  }
  return local_1178;
}

