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

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

{
  ssize_t *psVar1;
  int iVar2;
  int iVar3;
  _Image *p_Var4;
  float fVar5;
  size_t sVar6;
  uchar value;
  short sVar7;
  Image *pIVar8;
  Image *pIVar9;
  uint uVar10;
  MagickOffsetType *memory;
  char *pcVar11;
  size_t sVar12;
  ssize_t sVar13;
  ssize_t sVar14;
  ssize_t sVar15;
  ssize_t sVar16;
  MagickBooleanType MVar17;
  ssize_t sVar18;
  long lVar19;
  StringInfo *pSVar20;
  uchar *puVar21;
  StringInfo *string_info;
  ssize_t sVar22;
  ssize_t sVar23;
  ssize_t sVar24;
  ssize_t sVar25;
  int iVar26;
  uint uVar27;
  size_t sVar28;
  undefined4 *puVar29;
  MagickOffsetType *pMVar30;
  int iVar31;
  char (*pacVar32) [5];
  int in_GS_OFFSET;
  byte bVar33;
  MagickOffsetType offset;
  MagickOffsetType MVar34;
  Image *local_114c;
  int local_1144;
  Image *local_113c;
  size_t local_1134;
  int local_1128;
  MagickOffsetType size_offset;
  byte local_10e3;
  char allowed [36] [5];
  char key [5];
  char layer_name [4096];
  
  bVar33 = 0;
  iVar3 = *(int *)(in_GS_OFFSET + 0x14);
  pIVar8 = GetNextImageInList(image);
  if (pIVar8 == (Image *)0x0) {
    pIVar8 = image;
  }
  offset = TellBlob(image);
  if (psd_info->version == 1) {
    WriteBlobLong(image,0);
  }
  else {
    WriteBlobLongLong(image,0);
  }
  sVar28 = 0;
  if (pIVar8 != (Image *)0x0) {
    sVar28 = 0;
    pIVar9 = pIVar8;
    do {
      sVar28 = sVar28 + 1;
      pIVar9 = GetNextImageInList(pIVar9);
    } while (pIVar9 != (Image *)0x0);
  }
  sVar6 = sVar28;
  if (image->alpha_trait != UndefinedPixelTrait) {
    sVar6 = -sVar28;
  }
  uVar10 = WriteBlobShort(image,(ushort)sVar6);
  memory = (MagickOffsetType *)AcquireQuantumMemory(sVar28,8);
  if (memory == (MagickOffsetType *)0x0) {
    ThrowMagickException
              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,
               "MemoryAllocationFailed","`%s\'",0xd6,image->filename);
    p_Var4 = (_Image *)image_info->adjoin;
    pIVar8 = image;
    while (pIVar9 = image, p_Var4 != (_Image *)0x0) {
      p_Var4 = pIVar9->previous;
      image = p_Var4;
      pIVar8 = pIVar9;
    }
    MVar17 = MagickFalse;
    CloseBlob(pIVar8);
  }
  else {
    local_113c = (Image *)uVar10;
    if (pIVar8 != (Image *)0x0) {
      local_1128 = 0;
      local_114c = pIVar8;
      do {
        pcVar11 = GetImageArtifact(local_114c,"psd:opacity-mask");
        if (pcVar11 == (char *)0x0) {
          local_10e3 = 0;
          local_113c = (Image *)0x0;
        }
        else {
          local_113c = (Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception);
          sVar12 = strlen(pcVar11);
          local_10e3 = -(sVar12 == 9);
        }
        sVar13 = WriteBlobSignedLong(image,(local_114c->page).y);
        sVar14 = WriteBlobSignedLong(image,(local_114c->page).x);
        sVar15 = WriteBlobSignedLong(image,local_114c->rows + (local_114c->page).y);
        sVar16 = WriteBlobSignedLong(image,local_114c->columns + (local_114c->page).x);
        if ((local_114c->storage_class == PseudoClass) ||
           (MVar17 = IsImageGray(local_114c), MVar17 != MagickFalse)) {
          local_1134 = 1;
          sVar7 = 1;
        }
        else {
          local_1134 = (local_114c->colorspace == CMYKColorspace) + 3;
          sVar7 = (local_114c->colorspace == CMYKColorspace) + 3;
        }
        sVar18 = WriteBlobShort(image,((sVar7 - (ushort)(local_114c->alpha_trait ==
                                                        UndefinedPixelTrait)) + 2) -
                                      (ushort)(local_113c == (Image *)0x0));
        iVar2 = local_1128 + 1;
        local_1144 = sVar18 + uVar10 + sVar13 + sVar14 + sVar15 + sVar16;
        MVar34 = TellBlob(image);
        *(int *)(memory + local_1128) = (int)MVar34;
        *(int *)((int)memory + iVar2 * 8 + -4) = (int)((ulonglong)MVar34 >> 0x20);
        iVar31 = 0;
        do {
          while (sVar13 = WriteBlobShort(image,(ushort)iVar31), psd_info->version == 1) {
            iVar31 = iVar31 + 1;
            sVar14 = WriteBlobLong(image,0);
            local_1144 = local_1144 + sVar13 + sVar14;
            if (iVar31 == local_1134) goto LAB_0025ff56;
          }
          iVar31 = iVar31 + 1;
          sVar14 = WriteBlobLongLong(image,0);
          local_1144 = local_1144 + sVar13 + sVar14;
        } while (iVar31 != local_1134);
LAB_0025ff56:
        if (local_114c->alpha_trait != UndefinedPixelTrait) {
          sVar13 = WriteBlobShort(image,0xffff);
          if (psd_info->version == 1) {
            iVar31 = WriteBlobLong(image,0);
          }
          else {
            iVar31 = WriteBlobLongLong(image,0);
          }
          local_1144 = iVar31 + local_1144 + sVar13;
        }
        if (local_113c != (Image *)0x0) {
          sVar13 = WriteBlobShort(image,0xfffe);
          if (psd_info->version == 1) {
            iVar31 = WriteBlobLong(image,0);
          }
          else {
            iVar31 = WriteBlobLongLong(image,0);
          }
          local_1144 = iVar31 + local_1144 + sVar13;
        }
        pcVar11 = "8BIM";
        if (image->endian == LSBEndian) {
          pcVar11 = "MIB8";
        }
        sVar13 = WriteBlobString(image,pcVar11);
        switch(local_114c->compose) {
        case ColorBurnCompositeOp:
          pcVar11 = "idiv";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "vidi";
          }
          break;
        case ColorDodgeCompositeOp:
          pcVar11 = "div ";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = " vid";
          }
          break;
        case ColorizeCompositeOp:
          pcVar11 = "colr";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "rloc";
          }
          break;
        default:
          pcVar11 = "norm";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "mron";
          }
          break;
        case DarkenCompositeOp:
          pcVar11 = "dark";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "krad";
          }
          break;
        case DifferenceCompositeOp:
          pcVar11 = "diff";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "ffid";
          }
          break;
        case DissolveCompositeOp:
          pcVar11 = "diss";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "ssid";
          }
          break;
        case ExclusionCompositeOp:
          pcVar11 = "smud";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "dums";
          }
          break;
        case HardLightCompositeOp:
          pcVar11 = "hLit";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "tiLh";
          }
          break;
        case HardMixCompositeOp:
          pcVar11 = "hMix";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "xiMh";
          }
          break;
        case HueCompositeOp:
          pcVar11 = "hue ";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = " euh";
          }
          break;
        case LightenCompositeOp:
          pcVar11 = "lite";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "etil";
          }
          break;
        case LinearBurnCompositeOp:
          pcVar11 = "lbrn";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "nrbl";
          }
          break;
        case LinearDodgeCompositeOp:
          pcVar11 = "lddg";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "gddl";
          }
          break;
        case LinearLightCompositeOp:
          pcVar11 = "lLit";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "tiLl";
          }
          break;
        case LuminizeCompositeOp:
          pcVar11 = "lum ";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = " mul";
          }
          break;
        case MultiplyCompositeOp:
          pcVar11 = "mul ";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = " lum";
          }
          break;
        case OverlayCompositeOp:
          pcVar11 = "over";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "revo";
          }
          break;
        case PinLightCompositeOp:
          pcVar11 = "pLit";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "tiLp";
          }
          break;
        case SaturateCompositeOp:
          pcVar11 = "sat ";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = " tas";
          }
          break;
        case ScreenCompositeOp:
          pcVar11 = "scrn";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "nrcs";
          }
          break;
        case SoftLightCompositeOp:
          pcVar11 = "sLit";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "tiLs";
          }
          break;
        case VividLightCompositeOp:
          pcVar11 = "vLit";
          if (local_114c->endian == LSBEndian) {
            pcVar11 = "tiLv";
          }
        }
        sVar14 = WriteBlobString(image,pcVar11);
        pcVar11 = GetImageArtifact(local_114c,"psd:layer.opacity");
        if (pcVar11 == (char *)0x0) {
          iVar31 = WriteBlobByte(image,0xff);
        }
        else {
          lVar19 = strtol(pcVar11,(char **)0x0,10);
          value = '\0';
          if (0.0 < (float)lVar19) {
            value = 0xff;
            fVar5 = (float)lVar19 / DAT_002a7ff0;
            if (fVar5 < DAT_002a7ff4) {
              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);
            }
          }
          iVar31 = WriteBlobByte(image,value);
          ApplyPSDLayerOpacity(local_114c,(double)lVar19,MagickTrue,exception);
        }
        sVar15 = WriteBlobByte(image,'\0');
        sVar16 = WriteBlobByte(image,(local_114c->compose == NoCompositeOp) * '\x03' + '\x01');
        sVar18 = WriteBlobByte(image,'\0');
        iVar31 = sVar18 + local_1144 + sVar13 + sVar14 + iVar31 + sVar15 + sVar16;
        puVar29 = &DAT_0030c7e0;
        pacVar32 = allowed;
        for (iVar26 = 0x2d; iVar26 != 0; iVar26 = iVar26 + -1) {
          *(undefined4 *)*pacVar32 = *puVar29;
          puVar29 = puVar29 + (uint)bVar33 * -2 + 1;
          pacVar32 = (char (*) [5])((int)pacVar32 + (uint)bVar33 * -8 + 4);
        }
        pSVar20 = GetImageProfile(local_114c,"psd:additional-info");
        if (pSVar20 == (StringInfo *)0x0) {
LAB_00260a9c:
          string_info = (StringInfo *)0x0;
        }
        else {
          pcVar11 = GetImageOption(image_info,"psd:additional-info");
          iVar26 = LocaleCompare(pcVar11,"all");
          string_info = pSVar20;
          if (iVar26 != 0) {
            iVar26 = LocaleCompare(pcVar11,"selective");
            if (iVar26 == 0) {
              sVar28 = GetStringInfoLength(pSVar20);
              puVar21 = GetStringInfoDatum(pSVar20);
              if (sVar28 < 0xc) {
                string_info = RemoveImageProfile(local_114c,"psd:additional-info");
              }
              else {
                local_1134 = 0;
                do {
                  key[0] = puVar21[4];
                  uVar27 = sVar28 - 0xc;
                  key[4] = '\0';
                  uVar10 = *(uint *)(puVar21 + 8);
                  key[1] = puVar21[5];
                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |
                           uVar10 << 0x18;
                  key[2] = puVar21[6];
                  key[3] = puVar21[7];
                  pacVar32 = allowed;
                  if (uVar27 < uVar10) goto LAB_00260a9c;
                  do {
                    iVar26 = LocaleNCompare(key,*pacVar32,5);
                    if (iVar26 == 0) {
                      sVar28 = uVar27 - uVar10;
                      local_1134 = uVar10 + 0xc + local_1134;
                      puVar21 = puVar21 + uVar10 + 0xc;
                      goto LAB_0026028c;
                    }
                    pacVar32 = pacVar32 + 1;
                  } while (pacVar32 != &key);
                  sVar28 = uVar27 - uVar10;
                  if (sVar28 == 0) break;
                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);
LAB_0026028c:
                } while (0xb < sVar28);
                string_info = RemoveImageProfile(local_114c,"psd:additional-info");
                if (local_1134 != 0) {
                  SetStringInfoLength(string_info,local_1134);
                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);
                  goto LAB_00260370;
                }
              }
              string_info = DestroyStringInfo(string_info);
            }
            else {
              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");
              string_info = DestroyStringInfo(pSVar20);
            }
          }
        }
LAB_00260370:
        pcVar11 = GetImageProperty(local_114c,"label",exception);
        if (pcVar11 == (char *)0x0) {
          pcVar11 = layer_name;
          FormatLocaleString(pcVar11,0x1000,"L%.20g",SUB84((double)iVar2,0),
                             (int)((ulonglong)(double)iVar2 >> 0x20));
        }
        sVar12 = strlen(pcVar11);
        uVar10 = sVar12 + 1;
        if ((uVar10 & 3) != 0) {
          uVar10 = (uVar10 & 0xfffffffc) + 4;
        }
        if (string_info != (StringInfo *)0x0) {
          sVar28 = GetStringInfoLength(string_info);
          uVar10 = uVar10 + sVar28;
        }
        if (local_113c == (Image *)0x0) {
          sVar13 = WriteBlobLong(image,uVar10 + 8);
          sVar14 = WriteBlobLong(image,0);
          iVar31 = sVar13 + sVar14 + iVar31;
        }
        else {
          sVar13 = WriteBlobLong(image,uVar10 + 0x1c);
          if ((local_113c->compose != NoCompositeOp) &&
             (local_114c->alpha_trait != UndefinedPixelTrait)) {
            ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),
                                MagickTrue,exception);
          }
          psVar1 = &(local_113c->page).y;
          *psVar1 = *psVar1 + (image->page).y;
          psVar1 = &(local_113c->page).x;
          *psVar1 = *psVar1 + (image->page).x;
          sVar14 = WriteBlobLong(image,0x14);
          sVar15 = WriteBlobSignedLong(image,(local_113c->page).y);
          sVar16 = WriteBlobSignedLong(image,(local_113c->page).x);
          sVar18 = WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows);
          sVar22 = WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns);
          sVar23 = WriteBlobByte(image,local_10e3);
          sVar24 = WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02');
          sVar25 = WriteBlobMSBShort(image,0);
          iVar31 = iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +
                   sVar25;
        }
        sVar13 = WriteBlobLong(image,0);
        sVar12 = strlen(pcVar11);
        if (sVar12 < 0x100) {
          if (sVar12 == 0) {
            sVar15 = WriteBlobByte(image,'\0');
            local_113c = (Image *)0x3;
          }
          else {
            sVar15 = WriteBlobByte(image,(uchar)sVar12);
            sVar14 = WriteBlob(image,sVar12,pcVar11);
            sVar15 = sVar15 + sVar14;
            uVar10 = sVar12 + 1 & 3;
            if (uVar10 == 0) goto LAB_00260559;
            local_113c = (Image *)(4 - uVar10);
          }
          iVar26 = 0;
          do {
            iVar26 = iVar26 + 1;
            sVar14 = WriteBlobByte(image,'\0');
            sVar15 = sVar15 + sVar14;
          } while (local_113c != (Image *)iVar26);
        }
        else {
          sVar15 = WriteBlobByte(image,0xff);
          sVar14 = WriteBlob(image,0xff,pcVar11);
          sVar15 = sVar15 + sVar14;
        }
LAB_00260559:
        uVar10 = sVar15 + sVar13 + iVar31;
        if (string_info != (StringInfo *)0x0) {
          puVar21 = GetStringInfoDatum(string_info);
          sVar28 = GetStringInfoLength(string_info);
          sVar13 = WriteBlob(image,sVar28,puVar21);
          uVar10 = uVar10 + sVar13;
        }
        local_114c = GetNextImageInList(local_114c);
        pMVar30 = memory;
        pIVar9 = pIVar8;
        local_1128 = iVar2;
      } while (local_114c != (Image *)0x0);
      do {
        sVar28 = WritePSDChannels(psd_info,image_info,image,pIVar9,*pMVar30,MagickTrue,exception);
        if (sVar28 == 0) {
          MVar17 = MagickFalse;
          local_113c = (Image *)uVar10;
          goto LAB_0026060b;
        }
        uVar10 = uVar10 + sVar28;
        pIVar9 = GetNextImageInList(pIVar9);
        pMVar30 = pMVar30 + 1;
        local_113c = (Image *)uVar10;
      } while (pIVar9 != (Image *)0x0);
    }
    MVar17 = MagickTrue;
LAB_0026060b:
    if (layers_size != (size_t *)0x0) {
      *layers_size = (size_t)local_113c;
    }
    pIVar9 = (Image *)((int)local_113c + 1U);
    if ((uint)local_113c >> 1 == (int)local_113c + 1U >> 1) {
      pIVar9 = local_113c;
    }
    MVar34 = TellBlob(image);
    SeekBlob(image,offset,0);
    if (psd_info->version == 1) {
      WriteBlobLong(image,(uint)pIVar9);
    }
    else {
      WriteBlobLongLong(image,ZEXT48(pIVar9));
    }
    SeekBlob(image,MVar34,0);
    RelinquishMagickMemory(memory);
    for (; pIVar8 != (Image *)0x0; pIVar8 = GetNextImageInList(pIVar8)) {
      pcVar11 = GetImageArtifact(pIVar8,"psd:opacity-mask");
      if (pcVar11 != (char *)0x0) {
        DeleteImageRegistry(pcVar11);
      }
    }
  }
  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return MVar17;
}



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

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

{
  float fVar1;
  undefined1 uVar2;
  short sVar3;
  int *piVar4;
  int *piVar5;
  uint uVar6;
  undefined4 *puVar7;
  char *pcVar8;
  size_t sVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  int iVar13;
  int iVar14;
  undefined1 *puVar15;
  long lVar16;
  int iVar17;
  undefined4 uVar18;
  void *__dest;
  int iVar19;
  int iVar20;
  int iVar21;
  int iVar22;
  int iVar23;
  undefined4 uVar24;
  int *piVar25;
  uint uVar26;
  undefined4 *puVar27;
  undefined4 *puVar28;
  int in_GS_OFFSET;
  byte bVar29;
  undefined8 uVar30;
  undefined8 uVar31;
  int *piVar32;
  int local_1144;
  uint local_113c;
  int local_1134;
  int local_1128;
  byte local_10e3;
  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;
  
  bVar29 = 0;
  uStack_14 = 0x25fc8d;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  piVar4 = (int *)GetNextImageInList(param_1);
  if (piVar4 == (int *)0x0) {
    piVar4 = param_1;
  }
  uVar30 = TellBlob(param_1);
  if (*(short *)(param_3 + 0x1e) == 1) {
    WriteBlobLong(param_1,0);
  }
  else {
    WriteBlobLongLong(param_1,0,0);
  }
  uVar26 = 0;
  if (piVar4 != (int *)0x0) {
    uVar26 = 0;
    piVar5 = piVar4;
    do {
      uVar26 = uVar26 + 1;
      piVar5 = (int *)GetNextImageInList(piVar5);
    } while (piVar5 != (int *)0x0);
  }
  uVar6 = uVar26;
  if (param_1[0xa5] != 0) {
    uVar6 = -uVar26;
  }
  uVar6 = WriteBlobShort(param_1,uVar6 & 0xffff);
  puVar7 = (undefined4 *)AcquireQuantumMemory(uVar26,8);
  if (puVar7 == (undefined4 *)0x0) {
    ThrowMagickException
              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",
               "`%s\'",param_1 + 0xc6);
    piVar4 = *(int **)(param_2 + 0xc);
    piVar5 = param_1;
    while (piVar25 = param_1, piVar4 != (int *)0x0) {
      piVar4 = (int *)piVar25[0xccf];
      param_1 = piVar4;
      piVar5 = piVar25;
    }
    uVar18 = 0;
    CloseBlob(piVar5);
  }
  else {
    local_113c = uVar6;
    if (piVar4 != (int *)0x0) {
      local_1128 = 0;
      piVar5 = piVar4;
      do {
        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");
        if (pcVar8 == (char *)0x0) {
          local_10e3 = 0;
          local_113c = 0;
        }
        else {
          local_113c = GetImageRegistry(1,pcVar8,param_5);
          sVar9 = strlen(pcVar8);
          local_10e3 = -(sVar9 == 9);
        }
        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);
        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);
        piVar25 = piVar5;
        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);
        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);
        piVar32 = piVar25;
        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {
          local_1134 = 1;
          sVar3 = 1;
        }
        else {
          local_1134 = (piVar25[1] == 2) + 3;
          sVar3 = (piVar25[1] == 2) + 3;
        }
        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -
                                            (ushort)(local_113c == 0));
        local_1128 = local_1128 + 1;
        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;
        uVar31 = TellBlob(param_1);
        puVar7[local_1128 * 2 + -2] = (int)uVar31;
        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);
        iVar10 = 0;
        do {
          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {
            iVar10 = iVar10 + 1;
            iVar12 = WriteBlobLong(param_1,0);
            local_1144 = local_1144 + iVar11 + iVar12;
            if (iVar10 == local_1134) goto LAB_0025ff56;
          }
          iVar10 = iVar10 + 1;
          iVar12 = WriteBlobLongLong(param_1,0,0);
          local_1144 = local_1144 + iVar11 + iVar12;
        } while (iVar10 != local_1134);
LAB_0025ff56:
        if (piVar32[0xa5] != 0) {
          iVar10 = WriteBlobShort(param_1,0xffff);
          if (*(short *)(param_3 + 0x1e) == 1) {
            iVar11 = WriteBlobLong(param_1,0);
          }
          else {
            iVar11 = WriteBlobLongLong(param_1,0,0);
          }
          local_1144 = iVar11 + local_1144 + iVar10;
        }
        if (local_113c != 0) {
          iVar10 = WriteBlobShort(param_1,0xfffe);
          if (*(short *)(param_3 + 0x1e) == 1) {
            iVar11 = WriteBlobLong(param_1,0);
          }
          else {
            iVar11 = WriteBlobLongLong(param_1,0,0);
          }
          local_1144 = iVar11 + local_1144 + iVar10;
        }
        puVar15 = &DAT_002a239a;
        if (param_1[0x8d] == 1) {
          puVar15 = &DAT_0030c1c9;
        }
        iVar10 = WriteBlobString(param_1,puVar15);
        switch(piVar32[0x8f]) {
        case 8:
          pcVar8 = "idiv";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "vidi";
          }
          break;
        case 9:
          pcVar8 = "div ";
          if (piVar32[0x8d] == 1) {
            pcVar8 = " vid";
          }
          break;
        case 10:
          pcVar8 = "colr";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "rloc";
          }
          break;
        default:
          pcVar8 = "norm";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "mron";
          }
          break;
        case 0x14:
          pcVar8 = "dark";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "krad";
          }
          break;
        case 0x16:
          pcVar8 = "diff";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "ffid";
          }
          break;
        case 0x18:
          pcVar8 = "diss";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "ssid";
          }
          break;
        case 0x21:
          pcVar8 = "smud";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "dums";
          }
          break;
        case 0x22:
          pcVar8 = "hLit";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "tiLh";
          }
          break;
        case 0x23:
          pcVar8 = "hMix";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "xiMh";
          }
          break;
        case 0x24:
          pcVar8 = "hue ";
          if (piVar32[0x8d] == 1) {
            pcVar8 = " euh";
          }
          break;
        case 0x27:
          pcVar8 = "lite";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "etil";
          }
          break;
        case 0x29:
          pcVar8 = "lbrn";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "nrbl";
          }
          break;
        case 0x2a:
          pcVar8 = "lddg";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "gddl";
          }
          break;
        case 0x2b:
          pcVar8 = "lLit";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "tiLl";
          }
          break;
        case 0x2c:
          pcVar8 = "lum ";
          if (piVar32[0x8d] == 1) {
            pcVar8 = " mul";
          }
          break;
        case 0x33:
          pcVar8 = "mul ";
          if (piVar32[0x8d] == 1) {
            pcVar8 = " lum";
          }
          break;
        case 0x37:
          pcVar8 = "over";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "revo";
          }
          break;
        case 0x39:
          pcVar8 = "pLit";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "tiLp";
          }
          break;
        case 0x3c:
          pcVar8 = "sat ";
          if (piVar32[0x8d] == 1) {
            pcVar8 = " tas";
          }
          break;
        case 0x3d:
          pcVar8 = "scrn";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "nrcs";
          }
          break;
        case 0x3e:
          pcVar8 = "sLit";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "tiLs";
          }
          break;
        case 0x45:
          pcVar8 = "vLit";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "tiLv";
          }
        }
        iVar11 = WriteBlobString(param_1,pcVar8);
        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");
        if (pcVar8 == (char *)0x0) {
          iVar12 = WriteBlobByte(param_1,0xff);
        }
        else {
          lVar16 = strtol(pcVar8,(char **)0x0,10);
          uVar2 = 0;
          if (0.0 < (float)lVar16) {
            uVar2 = 0xff;
            fVar1 = (float)lVar16 / DAT_002a7ff0;
            if (fVar1 < DAT_002a7ff4) {
              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);
            }
          }
          iVar12 = WriteBlobByte(param_1,uVar2);
          FUN_0025c840((double)lVar16);
        }
        iVar14 = WriteBlobByte(param_1,0);
        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');
        iVar13 = WriteBlobByte(param_1,0);
        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;
        puVar28 = &DAT_0030c7e0;
        puVar27 = local_10d9;
        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {
          *puVar27 = *puVar28;
          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;
          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;
        }
        iVar10 = GetImageProfile(piVar32,"psd:additional-info");
        if (iVar10 == 0) {
LAB_00260a9c:
          iVar11 = 0;
        }
        else {
          uVar18 = GetImageOption(param_2,"psd:additional-info");
          iVar12 = LocaleCompare(uVar18,"all");
          iVar11 = iVar10;
          if (iVar12 != 0) {
            iVar11 = LocaleCompare(uVar18,"selective");
            if (iVar11 == 0) {
              uVar26 = GetStringInfoLength(iVar10);
              __dest = (void *)GetStringInfoDatum(iVar10);
              if (uVar26 < 0xc) {
                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");
              }
              else {
                local_1134 = 0;
                do {
                  local_1025 = *(undefined1 *)((int)__dest + 4);
                  uVar26 = uVar26 - 0xc;
                  local_1021 = 0;
                  uVar6 = *(uint *)((int)__dest + 8);
                  local_1024 = *(undefined1 *)((int)__dest + 5);
                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |
                          uVar6 << 0x18;
                  local_1023 = *(undefined1 *)((int)__dest + 6);
                  local_1022 = *(undefined1 *)((int)__dest + 7);
                  puVar28 = local_10d9;
                  if (uVar26 < uVar6) goto LAB_00260a9c;
                  do {
                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);
                    if (iVar11 == 0) {
                      uVar26 = uVar26 - uVar6;
                      local_1134 = uVar6 + 0xc + local_1134;
                      __dest = (void *)((int)__dest + uVar6 + 0xc);
                      goto LAB_0026028c;
                    }
                    puVar28 = (undefined4 *)((int)puVar28 + 5);
                  } while (puVar28 != (undefined4 *)&local_1025);
                  uVar26 = uVar26 - uVar6;
                  if (uVar26 == 0) break;
                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);
LAB_0026028c:
                } while (0xb < uVar26);
                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");
                if (local_1134 != 0) {
                  SetStringInfoLength(iVar11,local_1134);
                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);
                  goto LAB_00260370;
                }
              }
              iVar11 = DestroyStringInfo(iVar11);
            }
            else {
              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");
              iVar11 = DestroyStringInfo(uVar18);
            }
          }
        }
LAB_00260370:
        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);
        if (pcVar8 == (char *)0x0) {
          pcVar8 = local_1020;
          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);
        }
        sVar9 = strlen(pcVar8);
        uVar26 = sVar9 + 1;
        if ((uVar26 & 3) != 0) {
          uVar26 = (uVar26 & 0xfffffffc) + 4;
        }
        if (iVar11 != 0) {
          iVar10 = GetStringInfoLength(iVar11);
          uVar26 = uVar26 + iVar10;
        }
        if (local_113c == 0) {
          iVar10 = WriteBlobLong(param_1,uVar26 + 8);
          iVar12 = WriteBlobLong(param_1,0);
          iVar10 = iVar10 + iVar12 + iVar13;
        }
        else {
          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);
          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {
            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);
          }
          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];
          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];
          iVar14 = WriteBlobLong(param_1,0x14);
          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));
          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));
          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +
                                               *(int *)(local_113c + 0x1c));
          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +
                                               *(int *)(local_113c + 0x18));
          iVar22 = WriteBlobByte(param_1,local_10e3);
          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');
          iVar10 = WriteBlobMSBShort(param_1,0);
          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +
                   iVar10;
        }
        iVar12 = WriteBlobLong(param_1,0);
        sVar9 = strlen(pcVar8);
        if (sVar9 < 0x100) {
          if (sVar9 == 0) {
            iVar14 = WriteBlobByte(param_1,0);
            local_113c = 3;
          }
          else {
            iVar14 = WriteBlobByte(param_1,sVar9);
            iVar13 = WriteBlob(param_1,sVar9,pcVar8);
            iVar14 = iVar14 + iVar13;
            local_113c = sVar9 + 1 & 3;
            if (local_113c == 0) goto LAB_00260559;
            local_113c = 4 - local_113c;
          }
          iVar13 = 0;
          do {
            iVar13 = iVar13 + 1;
            iVar17 = WriteBlobByte(param_1,0);
            iVar14 = iVar14 + iVar17;
          } while (local_113c != iVar13);
        }
        else {
          iVar14 = WriteBlobByte(param_1,0xff);
          iVar13 = WriteBlob(param_1,0xff,pcVar8);
          iVar14 = iVar14 + iVar13;
        }
LAB_00260559:
        uVar6 = iVar14 + iVar12 + iVar10;
        if (iVar11 != 0) {
          uVar18 = GetStringInfoDatum(iVar11);
          uVar24 = GetStringInfoLength(iVar11);
          iVar10 = WriteBlob(param_1,uVar24,uVar18);
          uVar6 = uVar6 + iVar10;
        }
        piVar5 = (int *)GetNextImageInList(piVar32);
        puVar28 = puVar7;
        piVar25 = piVar4;
      } while (piVar5 != (int *)0x0);
      do {
        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);
        if (iVar10 == 0) {
          uVar18 = 0;
          local_113c = uVar6;
          goto LAB_0026060b;
        }
        uVar6 = uVar6 + iVar10;
        piVar25 = (int *)GetNextImageInList(piVar25);
        puVar28 = puVar28 + 2;
        local_113c = uVar6;
      } while (piVar25 != (int *)0x0);
    }
    uVar18 = 1;
LAB_0026060b:
    if (param_4 != (uint *)0x0) {
      *param_4 = local_113c;
    }
    uVar26 = local_113c + 1;
    if (local_113c >> 1 == local_113c + 1 >> 1) {
      uVar26 = local_113c;
    }
    uVar31 = TellBlob(param_1);
    SeekBlob(param_1,uVar30,0,uVar31);
    if (*(short *)(param_3 + 0x1e) == 1) {
      WriteBlobLong(param_1,uVar26);
    }
    else {
      WriteBlobLongLong(param_1,uVar26,0);
    }
    SeekBlob(param_1,uVar31,0);
    RelinquishMagickMemory(puVar7);
    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {
      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");
      if (iVar10 != 0) {
        DeleteImageRegistry(iVar10);
      }
    }
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0029eab0();
  }
  return uVar18;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
MOV EDI,ECX
PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x179373
SUB ESP,0x1148
MOV EAX,dword ptr [ESP + 0x115c]
MOV dword ptr [ESP + 0x3c],EDX
MOV dword ptr [ESP + 0x20],ECX
MOV dword ptr [ESP + 0x70],EAX
MOV EAX,dword ptr [ESP + 0x1160]
MOV dword ptr [ESP + 0x28],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1138],EAX
XOR EAX,EAX
PUSH EBP
CALL 0x000319e0
MOV dword ptr [ESP],EBP
TEST EAX,EAX
CMOVZ EAX,EBP
MOV dword ptr [ESP + 0x64],EAX
CALL 0x00031f30
MOV dword ptr [ESP + 0x68],EAX
MOV dword ptr [ESP + 0x6c],EDX
ADD ESP,0x10
CMP word ptr [EDI + 0x1e],0x1
JZ 0x00260b60
SUB ESP,0x4
PUSH 0x0
PUSH 0x0
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x54]
XOR ESI,ESI
TEST EAX,EAX
JZ 0x0025fd23
LEA ESI,[ESI]
SUB ESP,0xc
ADD ESI,0x1
PUSH EAX
CALL 0x000319e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0025fd10
MOV EDI,dword ptr [EBP + 0x294]
TEST EDI,EDI
JZ 0x00260090
MOV EAX,ESI
SUB ESP,0x8
NEG EAX
MOVZX EAX,AX
PUSH EAX
PUSH EBP
CALL 0x00031660
MOV dword ptr [ESP + 0x20],EAX
ADD ESP,0x10
SUB ESP,0x8
PUSH 0x8
PUSH ESI
CALL 0x000317b0
MOV dword ptr [ESP + 0x50],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00260bc2
MOV ESI,dword ptr [ESP + 0x54]
TEST ESI,ESI
JZ 0x00260b37
MOV EAX,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0x24],0x0
MOV EDI,dword ptr [ESP + 0x10]
MOV dword ptr [ESP],EAX
LEA EAX,[EBX + 0xfff331b3]
MOV dword ptr [ESP + 0x4c],EAX
LEA EAX,[EBX + 0xfff33129]
MOV dword ptr [ESP + 0x44],EAX
LEA EAX,[ESP + 0x73]
MOV dword ptr [ESP + 0x2c],EAX
LEA EAX,[EBX + 0xfff337e0]
MOV dword ptr [ESP + 0x50],EAX
LEA EAX,[EBX + 0xfff33241]
MOV dword ptr [ESP + 0x34],EAX
LEA EAX,[EBX + 0xffee5461]
MOV dword ptr [ESP + 0x48],EAX
LEA EAX,[ESP + 0x127]
MOV dword ptr [ESP + 0x28],EAX
MOV ESI,ESI
LEA EDI,[EDI]
SUB ESP,0x8
PUSH dword ptr [ESP + 0x54]
PUSH dword ptr [ESP + 0xc]
CALL 0x000318c0
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00260018
SUB ESP,0x4
PUSH dword ptr [ESP + 0x20]
PUSH EAX
PUSH 0x1
CALL 0x00031110
MOV dword ptr [ESP],ESI
MOV dword ptr [ESP + 0x20],EAX
CALL 0x00031eb0
ADD ESP,0x10
CMP EAX,0x9
SETZ AL
NEG EAX
MOV byte ptr [ESP + 0x69],AL
SUB ESP,0x8
MOV ESI,dword ptr [ESP + 0x8]
PUSH dword ptr [ESI + 0x20c]
PUSH EBP
CALL 0x00031ff0
MOV ESI,EAX
POP EAX
POP EDX
MOV EAX,dword ptr [ESP + 0x8]
PUSH dword ptr [EAX + 0x208]
PUSH EBP
CALL 0x00031ff0
POP ECX
ADD ESI,EAX
ADD EDI,ESI
POP ESI
MOV ESI,dword ptr [ESP + 0x8]
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 0x00260000
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0xc]
PUSH ESI
CALL 0x000336f0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00260000
XOR EAX,EAX
CMP dword ptr [ESI + 0x4],0x2
SETZ AL
ADD EAX,0x3
MOV dword ptr [ESP + 0x18],EAX
XOR EAX,EAX
CMP dword ptr [ESI + 0x4],0x2
SETZ AL
ADD EAX,0x3
MOV EDX,dword ptr [ESP]
CMP dword ptr [EDX + 0x294],0x1
SBB AX,-0x1
CMP dword ptr [ESP + 0x10],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 + 0x34],0x1
ADD EAX,EDI
MOV dword ptr [ESP + 0x18],EAX
MOV EDI,dword ptr [ESP + 0x34]
CALL 0x00031f30
MOV ESI,dword ptr [ESP + 0x50]
ADD ESP,0x10
MOV dword ptr [ESI + EDI*0x8 + -0x8],EAX
MOV dword ptr [ESI + EDI*0x8 + -0x4],EDX
XOR EDI,EDI
JMP 0x0025ff1f
SUB ESP,0x4
ADD EDI,0x1
PUSH 0x0
PUSH 0x0
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
ADD ESI,EAX
ADD dword ptr [ESP + 0x8],ESI
CMP EDI,dword ptr [ESP + 0x18]
JZ 0x0025ff56
SUB ESP,0x8
PUSH EDI
PUSH EBP
CALL 0x00031660
ADD ESP,0x10
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x14]
CMP word ptr [EAX + 0x1e],0x1
JNZ 0x0025ff00
SUB ESP,0x8
ADD EDI,0x1
PUSH 0x0
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
ADD ESI,EAX
ADD dword ptr [ESP + 0x8],ESI
CMP EDI,dword ptr [ESP + 0x18]
JNZ 0x0025ff1f
MOV EAX,dword ptr [ESP]
MOV EAX,dword ptr [EAX + 0x294]
TEST EAX,EAX
JNZ 0x00260030
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x0025ffad
SUB ESP,0x8
PUSH 0xfffe
PUSH EBP
CALL 0x00031660
ADD ESP,0x10
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x14]
CMP word ptr [EAX + 0x1e],0x1
JZ 0x00260078
SUB ESP,0x4
PUSH 0x0
PUSH 0x0
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x8]
ADD EDX,ESI
ADD EAX,EDX
MOV dword ptr [ESP + 0x8],EAX
CMP dword ptr [EBP + 0x234],0x1
LEA EAX,[EBX + 0xffec939a]
JNZ 0x0025ffc2
LEA EAX,[EBX + 0xfff331c9]
SUB ESP,0x8
PUSH EAX
PUSH EBP
CALL 0x00031550
MOV ESI,dword ptr [ESP + 0x18]
ADD ESP,0x10
ADD ESI,EAX
MOV EAX,dword ptr [ESP]
MOV EAX,dword ptr [EAX + 0x23c]
LEA EDX,[EAX + -0x8]
MOV dword ptr [ESP + 0x8],EAX
CMP EDX,0x3d
JA 0x002609a5
MOV EAX,dword ptr [EBX + EDX*0x4 + 0xfff33894]
ADD EAX,EBX
JMP EAX
MOV dword ptr [ESP + 0x18],0x1
MOV EAX,0x1
JMP 0x0025feae
MOV byte ptr [ESP + 0x69],0x0
MOV dword ptr [ESP + 0x10],0x0
JMP 0x0025fe17
SUB ESP,0x8
PUSH 0xffff
PUSH EBP
CALL 0x00031660
ADD ESP,0x10
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x14]
CMP word ptr [EAX + 0x1e],0x1
JZ 0x00260b48
SUB ESP,0x4
PUSH 0x0
PUSH 0x0
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x8]
ADD EDX,ESI
ADD EAX,EDX
MOV dword ptr [ESP + 0x8],EAX
JMP 0x0025ff67
SUB ESP,0x8
PUSH 0x0
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
JMP 0x0025ffa1
SUB ESP,0x8
MOVZX EAX,SI
JMP 0x0025fd3b
SUB ESP,0x8
PUSH EAX
PUSH EBP
CALL 0x00031550
POP EDI
ADD ESI,EAX
POP EAX
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [ESP + 0xc]
CALL 0x000318c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00260a00
SUB ESP,0x4
PUSH 0xa
PUSH 0x0
PUSH EAX
CALL 0x000316a0
MOV dword ptr [ESP + 0x18],EAX
FILD dword ptr [ESP + 0x18]
XOR EAX,EAX
ADD ESP,0x10
FUCOMI ST0,ST0
JP 0x00260158
FLDZ
FUCOMIP ST0,ST1
JNC 0x00260158
FLD ST0
MOV EAX,0xff
FDIV dword ptr [EBX + 0xffeceff0]
FLD dword ptr [EBX + 0xffeceff4]
FXCH
FUCOMI ST0,ST1
FSTP ST1
JNC 0x00260150
FNSTCW word ptr [ESP + 0x6e]
FADD dword ptr [EBX + 0xffec6124]
MOVZX EAX,word ptr [ESP + 0x6e]
OR AH,0xc
MOV word ptr [ESP + 0x6c],AX
FLDCW word ptr [ESP + 0x6c]
FISTP word ptr [ESP + 0x6a]
FLDCW word ptr [ESP + 0x6e]
MOVZX EAX,word ptr [ESP + 0x6a]
MOVZX EAX,AL
JMP 0x00260158
FSTP ST0
LEA ESI,[ESI]
FSTP qword ptr [ESP + 0x8]
SUB ESP,0x8
PUSH EAX
PUSH EBP
CALL 0x00032b80
MOV ECX,dword ptr [ESP + 0x2c]
MOV EDX,0x1
ADD ESI,EAX
MOV EAX,dword ptr [ESP + 0x10]
FLD qword ptr [ESP + 0x18]
FSTP qword ptr [ESP]
CALL 0x0025c840
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 + 0x8]
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 + 0x3c]
MOV ECX,0x2d
LEA EDX,[EAX + ESI*0x1]
MOV ESI,dword ptr [ESP + 0x60]
MOVSD.REP ES:EDI,ESI
MOV dword ptr [ESP + 0x48],EDX
POP ECX
POP ESI
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0xc]
CALL 0x00031c60
MOV dword ptr [ESP + 0x18],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00260a9c
SUB ESP,0x8
MOV EDI,dword ptr [ESP + 0x3c]
PUSH EDI
PUSH dword ptr [ESP + 0x3c]
CALL 0x00032590
MOV ESI,EAX
POP EAX
POP EDX
LEA EAX,[EBX + 0xffeddb04]
PUSH EAX
PUSH ESI
CALL 0x000326f0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00260370
LEA EAX,[EBX + 0xfff33255]
SUB ESP,0x8
PUSH EAX
PUSH ESI
CALL 0x000326f0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00260a50
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x14]
PUSH EDI
CALL 0x000335d0
MOV dword ptr [ESP],EDI
MOV dword ptr [ESP + 0x28],EAX
CALL 0x00033130
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x18]
MOV EDI,EAX
CMP EDX,0xb
JBE 0x00260b73
MOV dword ptr [ESP + 0x60],EBP
MOV EBP,EDX
MOV dword ptr [ESP + 0x18],0x0
JMP 0x00260295
MOV EAX,dword ptr [ESP + 0x18]
SUB EBP,ESI
MOV EDI,dword ptr [ESP + 0x20]
LEA EAX,[ESI + EAX*0x1 + 0xc]
MOV dword ptr [ESP + 0x18],EAX
ADD EDI,ESI
CMP EBP,0xb
JBE 0x00260319
MOVZX EAX,byte ptr [EDI + 0x4]
SUB EBP,0xc
MOV byte ptr [ESP + 0x12b],0x0
MOV ESI,dword ptr [EDI + 0x8]
MOV byte ptr [ESP + 0x127],AL
MOVZX EAX,byte ptr [EDI + 0x5]
BSWAP ESI
MOV byte ptr [ESP + 0x128],AL
MOVZX EAX,byte ptr [EDI + 0x6]
MOV byte ptr [ESP + 0x129],AL
MOVZX EAX,byte ptr [EDI + 0x7]
MOV byte ptr [ESP + 0x12a],AL
LEA EAX,[EDI + 0xc]
MOV dword ptr [ESP + 0x20],EAX
CMP ESI,EBP
JA 0x00260a98
MOV EDX,dword ptr [ESP + 0x2c]
MOV dword ptr [ESP + 0x3c],EDI
MOV EDI,EDX
SUB ESP,0x4
PUSH 0x5
PUSH EDI
PUSH dword ptr [ESP + 0x34]
CALL 0x00031370
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00260278
ADD EDI,0x5
CMP EDI,dword ptr [ESP + 0x28]
JNZ 0x002602ea
SUB EBP,ESI
MOV EDI,dword ptr [ESP + 0x3c]
JNZ 0x00260b13
MOV EBP,dword ptr [ESP + 0x60]
SUB ESP,0x8
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0xc]
CALL 0x00032a30
ADD ESP,0x10
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x18]
TEST EAX,EAX
JZ 0x00260b90
SUB ESP,0x8
PUSH dword ptr [ESP + 0x20]
PUSH ESI
CALL 0x00031010
ADD ESP,0x10
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0xc]
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0xc]
CALL 0x00031190
ADD ESP,0x10
MOV dword ptr [ESP + 0x8],ESI
LEA ESI,[ESI]
SUB ESP,0x4
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [ESP + 0x50]
PUSH dword ptr [ESP + 0xc]
CALL 0x00031bb0
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00260ae8
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 + 0x8]
TEST EAX,EAX
JZ 0x002603c7
SUB ESP,0xc
PUSH EAX
CALL 0x000335d0
ADD ESP,0x10
ADD EDI,EAX
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x00260a20
SUB ESP,0x8
ADD EDI,0x1c
PUSH EDI
PUSH EBP
CALL 0x00032b90
MOVZX EDX,byte ptr [ESP + 0x79]
MOV EDI,dword ptr [ESP + 0x48]
MOV dword ptr [ESP + 0x28],EDX
ADD ESP,0x10
ADD EDI,EAX
MOV EAX,dword ptr [ESP + 0x10]
CMP dword ptr [EAX + 0x23c],0x34
JZ 0x00260410
MOV EAX,dword ptr [ESP]
MOV ECX,dword ptr [EAX + 0x294]
TEST ECX,ECX
JNZ 0x00260ab0
MOV ECX,dword ptr [ESP + 0x10]
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 + 0x18]
PUSH dword ptr [ECX + 0x20c]
PUSH EBP
CALL 0x00031ff0
POP ECX
ADD EDI,EAX
POP EAX
MOV ECX,dword ptr [ESP + 0x18]
PUSH dword ptr [ECX + 0x208]
PUSH EBP
CALL 0x00031ff0
ADD EDI,EAX
POP EAX
POP EDX
MOV ECX,dword ptr [ESP + 0x18]
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 + 0x18]
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 + 0x20]
PUSH EBP
CALL 0x00032b80
POP ECX
ADD EDI,EAX
POP EAX
XOR EAX,EAX
MOV ECX,dword ptr [ESP + 0x18]
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 + 0x28],EAX
CALL 0x00031eb0
ADD ESP,0x10
CMP EAX,0xff
JA 0x002609d0
TEST EAX,EAX
JZ 0x00260a78
SUB ESP,0x8
PUSH EAX
MOV dword ptr [ESP + 0x1c],EAX
PUSH EBP
CALL 0x00032b80
ADD ESP,0xc
PUSH ESI
MOV EDX,dword ptr [ESP + 0x18]
MOV EDI,EAX
PUSH EDX
MOV dword ptr [ESP + 0x1c],EDX
PUSH EBP
CALL 0x00030660
MOV EDX,dword ptr [ESP + 0x20]
ADD ESP,0x10
ADD EDI,EAX
ADD EDX,0x1
AND EDX,0x3
JZ 0x00260559
MOV ESI,0x4
SUB ESI,EDX
MOV dword ptr [ESP + 0x10],ESI
XOR ESI,ESI
NOP
LEA ESI,[ESI]
SUB ESP,0x8
ADD ESI,0x1
PUSH 0x0
PUSH EBP
CALL 0x00032b80
ADD ESP,0x10
ADD EDI,EAX
CMP dword ptr [ESP + 0x10],ESI
JNZ 0x00260540
MOV EAX,dword ptr [ESP + 0x8]
ADD EDI,dword ptr [ESP + 0x18]
TEST EAX,EAX
JZ 0x0026058e
SUB ESP,0xc
MOV dword ptr [ESP + 0x14],EAX
PUSH EAX
CALL 0x00033130
MOV ESI,EAX
POP EAX
PUSH dword ptr [ESP + 0x14]
CALL 0x000335d0
ADD ESP,0xc
PUSH ESI
PUSH EAX
PUSH EBP
CALL 0x00030660
ADD ESP,0x10
ADD EDI,EAX
SUB ESP,0xc
PUSH dword ptr [ESP + 0xc]
CALL 0x000319e0
ADD ESP,0x10
MOV dword ptr [ESP],EAX
TEST EAX,EAX
JNZ 0x0025fdd0
MOV EAX,EDI
MOV dword ptr [ESP],EBP
MOV ESI,dword ptr [ESP + 0x40]
MOV EDI,dword ptr [ESP + 0x54]
MOV EBP,EAX
JMP 0x002605db
SUB ESP,0xc
ADD EBP,EAX
ADD ESI,0x8
PUSH EDI
CALL 0x000319e0
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00260b30
SUB ESP,0xc
PUSH dword ptr [ESP + 0x28]
PUSH 0x1
PUSH dword ptr [ESI + 0x4]
PUSH dword ptr [ESI]
PUSH EDI
MOV ECX,dword ptr [ESP + 0x20]
MOV EDX,dword ptr [ESP + 0x50]
MOV EAX,dword ptr [ESP + 0x34]
CALL 0x0025f0f0
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x002605c0
MOV dword ptr [ESP + 0x10],EBP
MOV EBP,dword ptr [ESP]
XOR EDI,EDI
MOV EAX,dword ptr [ESP + 0x64]
TEST EAX,EAX
JZ 0x00260619
MOV ECX,dword ptr [ESP + 0x10]
MOV dword ptr [EAX],ECX
MOV ECX,dword ptr [ESP + 0x10]
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 + 0x10],EAX
MOV dword ptr [ESP + 0x14],EDX
ADD ESP,0x10
PUSH 0x0
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [ESP + 0x60]
PUSH EBP
CALL 0x00031f00
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x14]
CMP word ptr [EAX + 0x1e],0x1
JZ 0x00260ba5
SUB ESP,0x4
XOR EDX,EDX
PUSH EDX
PUSH ESI
PUSH EBP
CALL 0x00031c70
ADD ESP,0x10
PUSH 0x0
PUSH dword ptr [ESP + 0x8]
PUSH dword ptr [ESP + 0x8]
PUSH EBP
CALL 0x00031f00
POP ECX
PUSH dword ptr [ESP + 0x4c]
CALL 0x00033ac8
ADD ESP,0x10
MOV ESI,dword ptr [ESP + 0x54]
TEST ESI,ESI
JZ 0x002606cf
LEA EBP,[EBX + 0xfff331b3]
NOP
SUB ESP,0x8
PUSH EBP
PUSH ESI
CALL 0x000318c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x002606bd
SUB ESP,0xc
PUSH EAX
CALL 0x00033820
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x000319e0
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x002606a0
MOV ECX,dword ptr [ESP + 0x112c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,EDI
JNZ 0x00260c2f
ADD ESP,0x113c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,dword ptr [ESP]
LEA EAX,[EBX + 0xfff331c4]
CMP dword ptr [ECX + 0x234],0x1
JNZ 0x002600b8
LEA EAX,[EBX + 0xfff3323c]
JMP 0x002600b8
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 0x00260559
SUB ESP,0x8
PUSH 0xff
PUSH EBP
CALL 0x00032b80
ADD ESP,0x10
ADD ESI,EAX
JMP 0x00260184
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 + 0x48]
ADD ESP,0x10
JMP 0x002604cb
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [ESP + 0xc]
CALL 0x00032a30
MOV dword ptr [ESP],EAX
CALL 0x000332e0
MOV dword ptr [ESP + 0x18],EAX
ADD ESP,0x10
JMP 0x00260370
SUB ESP,0x8
PUSH 0x0
PUSH EBP
CALL 0x00032b80
ADD ESP,0x10
MOV EDI,EAX
MOV dword ptr [ESP + 0x10],0x3
JMP 0x00260539
MOV EBP,dword ptr [ESP + 0x60]
MOV dword ptr [ESP + 0x8],0x0
JMP 0x00260370
SUB ESP,0x4
MOV ECX,0x1
PUSH dword ptr [ESP + 0x20]
FILD dword ptr [ESP + 0x20]
SUB ESP,0x8
FMUL dword ptr [EBX + 0xffeceff0]
MOV EDX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [ESP + 0x10]
FSTP qword ptr [ESP]
CALL 0x0025cab0
ADD ESP,0x10
JMP 0x00260410
LEA EAX,[EBX + 0xfff3325f]
SUB ESP,0x14
FILD dword ptr [ESP + 0x38]
FSTP qword ptr [ESP]
PUSH EAX
PUSH 0x1000
LEA ESI,[ESP + 0x148]
PUSH ESI
CALL 0x000334e0
ADD ESP,0x20
JMP 0x00260391
SUB ESP,0x4
PUSH EBP
ADD ESI,dword ptr [ESP + 0x28]
PUSH ESI
PUSH EDI
CALL 0x00032dc0
ADD ESP,0x10
JMP 0x0026028c
MOV dword ptr [ESP + 0x10],EBP
MOV EBP,dword ptr [ESP]
MOV EDI,0x1
JMP 0x0026060b
SUB ESP,0x8
PUSH 0x0
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
JMP 0x00260062
SUB ESP,0x8
PUSH 0x0
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
JMP 0x0025fd03
SUB ESP,0x8
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0xc]
CALL 0x00032a30
ADD ESP,0x10
MOV ESI,EAX
NOP
LEA ESI,[ESI]
SUB ESP,0xc
PUSH ESI
CALL 0x000332e0
MOV dword ptr [ESP + 0x18],EAX
ADD ESP,0x10
JMP 0x00260370
SUB ESP,0x8
PUSH ESI
PUSH EBP
CALL 0x00032b90
ADD ESP,0x10
JMP 0x00260673
LEA EAX,[EBP + 0x318]
PUSH EAX
LEA EAX,[EBX + 0xffec8a40]
PUSH EAX
LEA EAX,[EBX + 0xffec63d6]
PUSH EAX
LEA EAX,[EBX + 0xfff33a30]
PUSH 0x190
PUSH 0xdf3
PUSH EAX
LEA EAX,[EBX + 0xfff3305d]
PUSH EAX
PUSH dword ptr [ESP + 0x38]
CALL 0x00032e80
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0x30]
MOV ECX,dword ptr [EAX + 0xc]
TEST ECX,ECX
JNZ 0x00260c12
JMP 0x00260c1c
MOV EBP,EAX
MOV EAX,dword ptr [EBP + 0x333c]
TEST EAX,EAX
JNZ 0x00260c10
SUB ESP,0xc
XOR EDI,EDI
PUSH EBP
CALL 0x000311d0
ADD ESP,0x10
JMP 0x002606cf
CALL 0x0029eab0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3\nFUN_0025fc80(int *param_1,int param_2,int param_3,uint *param_4,undefined4 param_5)\n\n{\n  float fVar1;\n  undefined1 uVar2;\n  short sVar3;\n  int *piVar4;\n  int *piVar5;\n  uint uVar6;\n  undefined4 *puVar7;\n  char *pcVar8;\n  size_t sVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  undefined1 *puVar15;\n  long lVar16;\n  int iVar17;\n  undefined4 uVar18;\n  void *__dest;\n  int iVar19;\n  int iVar20;\n  int iVar21;\n  int iVar22;\n  int iVar23;\n  undefined4 uVar24;\n  int *piVar25;\n  uint uVar26;\n  undefined4 *puVar27;\n  undefined4 *puVar28;\n  int in_GS_OFFSET;\n  byte bVar29;\n  undefined8 uVar30;\n  undefined8 uVar31;\n  int *piVar32;\n  int local_1144;\n  uint local_113c;\n  int local_1134;\n  int local_1128;\n  byte local_10e3;\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  bVar29 = 0;\n  uStack_14 = 0x25fc8d;\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  uVar30 = 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  uVar26 = 0;\n  if (piVar4 != (int *)0x0) {\n    uVar26 = 0;\n    piVar5 = piVar4;\n    do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    } while (piVar5 != (int *)0x0);\n  }\n  uVar6 = uVar26;\n  if (param_1[0xa5] != 0) {\n    uVar6 = -uVar26;\n  }\n  uVar6 = WriteBlobShort(param_1,uVar6 & 0xffff);\n  puVar7 = (undefined4 *)AcquireQuantumMemory(uVar26,8);\n  if (puVar7 == (undefined4 *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = *(int **)(param_2 + 0xc);\n    piVar5 = param_1;\n    while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }\n    uVar18 = 0;\n    CloseBlob(piVar5);\n  }\n  else {\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return uVar18;\n}\n\n" comment (function_definition "undefined4 __regparm3\nFUN_0025fc80(int *param_1,int param_2,int param_3,uint *param_4,undefined4 param_5)\n\n{\n  float fVar1;\n  undefined1 uVar2;\n  short sVar3;\n  int *piVar4;\n  int *piVar5;\n  uint uVar6;\n  undefined4 *puVar7;\n  char *pcVar8;\n  size_t sVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  undefined1 *puVar15;\n  long lVar16;\n  int iVar17;\n  undefined4 uVar18;\n  void *__dest;\n  int iVar19;\n  int iVar20;\n  int iVar21;\n  int iVar22;\n  int iVar23;\n  undefined4 uVar24;\n  int *piVar25;\n  uint uVar26;\n  undefined4 *puVar27;\n  undefined4 *puVar28;\n  int in_GS_OFFSET;\n  byte bVar29;\n  undefined8 uVar30;\n  undefined8 uVar31;\n  int *piVar32;\n  int local_1144;\n  uint local_113c;\n  int local_1134;\n  int local_1128;\n  byte local_10e3;\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  bVar29 = 0;\n  uStack_14 = 0x25fc8d;\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  uVar30 = 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  uVar26 = 0;\n  if (piVar4 != (int *)0x0) {\n    uVar26 = 0;\n    piVar5 = piVar4;\n    do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    } while (piVar5 != (int *)0x0);\n  }\n  uVar6 = uVar26;\n  if (param_1[0xa5] != 0) {\n    uVar6 = -uVar26;\n  }\n  uVar6 = WriteBlobShort(param_1,uVar6 & 0xffff);\n  puVar7 = (undefined4 *)AcquireQuantumMemory(uVar26,8);\n  if (puVar7 == (undefined4 *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = *(int **)(param_2 + 0xc);\n    piVar5 = param_1;\n    while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }\n    uVar18 = 0;\n    CloseBlob(piVar5);\n  }\n  else {\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return uVar18;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0025fc80(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 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  float fVar1;\n  undefined1 uVar2;\n  short sVar3;\n  int *piVar4;\n  int *piVar5;\n  uint uVar6;\n  undefined4 *puVar7;\n  char *pcVar8;\n  size_t sVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  undefined1 *puVar15;\n  long lVar16;\n  int iVar17;\n  undefined4 uVar18;\n  void *__dest;\n  int iVar19;\n  int iVar20;\n  int iVar21;\n  int iVar22;\n  int iVar23;\n  undefined4 uVar24;\n  int *piVar25;\n  uint uVar26;\n  undefined4 *puVar27;\n  undefined4 *puVar28;\n  int in_GS_OFFSET;\n  byte bVar29;\n  undefined8 uVar30;\n  undefined8 uVar31;\n  int *piVar32;\n  int local_1144;\n  uint local_113c;\n  int local_1134;\n  int local_1128;\n  byte local_10e3;\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  bVar29 = 0;\n  uStack_14 = 0x25fc8d;\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  uVar30 = 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  uVar26 = 0;\n  if (piVar4 != (int *)0x0) {\n    uVar26 = 0;\n    piVar5 = piVar4;\n    do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    } while (piVar5 != (int *)0x0);\n  }\n  uVar6 = uVar26;\n  if (param_1[0xa5] != 0) {\n    uVar6 = -uVar26;\n  }\n  uVar6 = WriteBlobShort(param_1,uVar6 & 0xffff);\n  puVar7 = (undefined4 *)AcquireQuantumMemory(uVar26,8);\n  if (puVar7 == (undefined4 *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = *(int **)(param_2 + 0xc);\n    piVar5 = param_1;\n    while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }\n    uVar18 = 0;\n    CloseBlob(piVar5);\n  }\n  else {\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n  return uVar18;\n}" { (declaration "float fVar1;" 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 uVar6;" type_identifier identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "size_t sVar9;" 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 "int iVar14;" primitive_type identifier ;) (declaration "undefined1 *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "long lVar16;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "undefined4 uVar18;" type_identifier identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * 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 "int iVar23;" primitive_type identifier ;) (declaration "undefined4 uVar24;" type_identifier identifier ;) (declaration "int *piVar25;" primitive_type (pointer_declarator "*piVar25" * identifier) ;) (declaration "uint uVar26;" type_identifier identifier ;) (declaration "undefined4 *puVar27;" type_identifier (pointer_declarator "*puVar27" * identifier) ;) (declaration "undefined4 *puVar28;" type_identifier (pointer_declarator "*puVar28" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar29;" type_identifier identifier ;) (declaration "undefined8 uVar30;" type_identifier identifier ;) (declaration "undefined8 uVar31;" type_identifier identifier ;) (declaration "int *piVar32;" primitive_type (pointer_declarator "*piVar32" * identifier) ;) (declaration "int local_1144;" primitive_type identifier ;) (declaration "uint local_113c;" type_identifier identifier ;) (declaration "int local_1134;" primitive_type identifier ;) (declaration "int local_1128;" primitive_type identifier ;) (declaration "byte local_10e3;" 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 "bVar29 = 0;" (assignment_expression "bVar29 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x25fc8d;" (assignment_expression "uStack_14 = 0x25fc8d" 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 "uVar30 = TellBlob(param_1);" (assignment_expression "uVar30 = 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 "uVar26 = 0;" (assignment_expression "uVar26 = 0" identifier = number_literal) ;) (if_statement "if (piVar4 != (int *)0x0) {\n    uVar26 = 0;\n    piVar5 = piVar4;\n    do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\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    uVar26 = 0;\n    piVar5 = piVar4;\n    do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    } while (piVar5 != (int *)0x0);\n  }" { (expression_statement "uVar26 = 0;" (assignment_expression "uVar26 = 0" identifier = number_literal) ;) (expression_statement "piVar5 = piVar4;" (assignment_expression "piVar5 = piVar4" identifier = identifier) ;) (do_statement "do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    } while (piVar5 != (int *)0x0);" do (compound_statement "{\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    }" { (expression_statement "uVar26 = uVar26 + 1;" (assignment_expression "uVar26 = uVar26 + 1" identifier = (binary_expression "uVar26 + 1" identifier + number_literal)) ;) (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 ))))) ;) }) 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 "uVar6 = uVar26;" (assignment_expression "uVar6 = uVar26" identifier = identifier) ;) (if_statement "if (param_1[0xa5] != 0) {\n    uVar6 = -uVar26;\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    uVar6 = -uVar26;\n  }" { (expression_statement "uVar6 = -uVar26;" (assignment_expression "uVar6 = -uVar26" identifier = (unary_expression "-uVar26" - identifier)) ;) })) (expression_statement "uVar6 = WriteBlobShort(param_1,uVar6 & 0xffff);" (assignment_expression "uVar6 = WriteBlobShort(param_1,uVar6 & 0xffff)" identifier = (call_expression "WriteBlobShort(param_1,uVar6 & 0xffff)" identifier (argument_list "(param_1,uVar6 & 0xffff)" ( identifier , (binary_expression "uVar6 & 0xffff" identifier & number_literal) )))) ;) (expression_statement "puVar7 = (undefined4 *)AcquireQuantumMemory(uVar26,8);" (assignment_expression "puVar7 = (undefined4 *)AcquireQuantumMemory(uVar26,8)" identifier = (cast_expression "(undefined4 *)AcquireQuantumMemory(uVar26,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory(uVar26,8)" identifier (argument_list "(uVar26,8)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar7 == (undefined4 *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = *(int **)(param_2 + 0xc);\n    piVar5 = param_1;\n    while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }\n    uVar18 = 0;\n    CloseBlob(piVar5);\n  }\n  else {\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }" if (parenthesized_expression "(puVar7 == (undefined4 *)0x0)" ( (binary_expression "puVar7 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" 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 + 0xc);\n    piVar5 = param_1;\n    while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }\n    uVar18 = 0;\n    CloseBlob(piVar5);\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 + 0xc);" (assignment_expression "piVar4 = *(int **)(param_2 + 0xc)" identifier = (pointer_expression "*(int **)(param_2 + 0xc)" * (cast_expression "(int **)(param_2 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "piVar5 = param_1;" (assignment_expression "piVar5 = param_1" identifier = identifier) ;) (while_statement "while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }" while (parenthesized_expression "(piVar25 = param_1, piVar4 != (int *)0x0)" ( (comma_expression "piVar25 = param_1, piVar4 != (int *)0x0" (assignment_expression "piVar25 = 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 *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }" { (expression_statement "piVar4 = (int *)piVar25[0xccf];" (assignment_expression "piVar4 = (int *)piVar25[0xccf]" identifier = (cast_expression "(int *)piVar25[0xccf]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar25[0xccf]" identifier [ number_literal ]))) ;) (expression_statement "param_1 = piVar4;" (assignment_expression "param_1 = piVar4" identifier = identifier) ;) (expression_statement "piVar5 = piVar25;" (assignment_expression "piVar5 = piVar25" identifier = identifier) ;) })) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "CloseBlob(piVar5);" (call_expression "CloseBlob(piVar5)" identifier (argument_list "(piVar5)" ( identifier ))) ;) }) (else_clause "else {\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }" else (compound_statement "{\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }" { (expression_statement "local_113c = uVar6;" (assignment_expression "local_113c = uVar6" identifier = identifier) ;) (if_statement "if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (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_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }" { (expression_statement "local_1128 = 0;" (assignment_expression "local_1128 = 0" identifier = number_literal) ;) (expression_statement "piVar5 = piVar4;" (assignment_expression "piVar5 = piVar4" identifier = identifier) ;) (do_statement "do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);" do (compound_statement "{\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      }" { (expression_statement "pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");" (assignment_expression "pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask")" identifier = (cast_expression "(char *)GetImageArtifact(piVar5,"psd:opacity-mask")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (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 (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(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_10e3 = 0;\n          local_113c = 0;\n        }" { (expression_statement "local_10e3 = 0;" (assignment_expression "local_10e3 = 0" identifier = number_literal) ;) (expression_statement "local_113c = 0;" (assignment_expression "local_113c = 0" identifier = number_literal) ;) }) (else_clause "else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }" else (compound_statement "{\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }" { (expression_statement "local_113c = GetImageRegistry(1,pcVar8,param_5);" (assignment_expression "local_113c = GetImageRegistry(1,pcVar8,param_5)" identifier = (call_expression "GetImageRegistry(1,pcVar8,param_5)" identifier (argument_list "(1,pcVar8,param_5)" ( number_literal , 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_10e3 = -(sVar9 == 9);" (assignment_expression "local_10e3 = -(sVar9 == 9)" identifier = (unary_expression "-(sVar9 == 9)" - (parenthesized_expression "(sVar9 == 9)" ( (binary_expression "sVar9 == 9" identifier == number_literal) )))) ;) }))) (expression_statement "iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);" (assignment_expression "iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83])" identifier = (call_expression "WriteBlobSignedLong(param_1,piVar5[0x83])" identifier (argument_list "(param_1,piVar5[0x83])" ( identifier , (subscript_expression "piVar5[0x83]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);" (assignment_expression "iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82])" identifier = (call_expression "WriteBlobSignedLong(param_1,piVar5[0x82])" identifier (argument_list "(param_1,piVar5[0x82])" ( identifier , (subscript_expression "piVar5[0x82]" identifier [ number_literal ]) )))) ;) (expression_statement "piVar25 = piVar5;" (assignment_expression "piVar25 = piVar5" identifier = identifier) ;) (expression_statement "iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);" (assignment_expression "iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83])" identifier = (call_expression "WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83])" identifier (argument_list "(param_1,piVar5[7] + piVar5[0x83])" ( identifier , (binary_expression "piVar5[7] + piVar5[0x83]" (subscript_expression "piVar5[7]" identifier [ number_literal ]) + (subscript_expression "piVar5[0x83]" identifier [ number_literal ])) )))) ;) (expression_statement "iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);" (assignment_expression "iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82])" identifier = (call_expression "WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82])" identifier (argument_list "(param_1,piVar5[6] + piVar5[0x82])" ( identifier , (binary_expression "piVar5[6] + piVar5[0x82]" (subscript_expression "piVar5[6]" identifier [ number_literal ]) + (subscript_expression "piVar5[0x82]" identifier [ number_literal ])) )))) ;) (expression_statement "piVar32 = piVar25;" (assignment_expression "piVar32 = piVar25" identifier = identifier) ;) (if_statement "if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }" if (parenthesized_expression "((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0))" ( (binary_expression "(*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)" (parenthesized_expression "(*piVar5 == 2)" ( (binary_expression "*piVar5 == 2" (pointer_expression "*piVar5" * identifier) == number_literal) )) || (parenthesized_expression "(iVar14 = IsImageGray(piVar25), iVar14 != 0)" ( (comma_expression "iVar14 = IsImageGray(piVar25), iVar14 != 0" (assignment_expression "iVar14 = IsImageGray(piVar25)" identifier = (call_expression "IsImageGray(piVar25)" identifier (argument_list "(piVar25)" ( identifier )))) , (binary_expression "iVar14 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          local_1134 = 1;\n          sVar3 = 1;\n        }" { (expression_statement "local_1134 = 1;" (assignment_expression "local_1134 = 1" identifier = number_literal) ;) (expression_statement "sVar3 = 1;" (assignment_expression "sVar3 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }" else (compound_statement "{\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }" { (expression_statement "local_1134 = (piVar25[1] == 2) + 3;" (assignment_expression "local_1134 = (piVar25[1] == 2) + 3" identifier = (binary_expression "(piVar25[1] == 2) + 3" (parenthesized_expression "(piVar25[1] == 2)" ( (binary_expression "piVar25[1] == 2" (subscript_expression "piVar25[1]" identifier [ number_literal ]) == number_literal) )) + number_literal)) ;) (expression_statement "sVar3 = (piVar25[1] == 2) + 3;" (assignment_expression "sVar3 = (piVar25[1] == 2) + 3" identifier = (binary_expression "(piVar25[1] == 2) + 3" (parenthesized_expression "(piVar25[1] == 2)" ( (binary_expression "piVar25[1] == 2" (subscript_expression "piVar25[1]" identifier [ number_literal ]) == number_literal) )) + number_literal)) ;) }))) (expression_statement "local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));" (assignment_expression "local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0))" identifier = (call_expression "WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0))" identifier (argument_list "(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0))" ( identifier , (binary_expression "((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0)" (parenthesized_expression "((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2)" ( (binary_expression "(sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2" (parenthesized_expression "(sVar3 - (ushort)(piVar32[0xa5] == 0))" ( (binary_expression "sVar3 - (ushort)(piVar32[0xa5] == 0)" identifier - (call_expression "(ushort)(piVar32[0xa5] == 0)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(piVar32[0xa5] == 0)" ( (binary_expression "piVar32[0xa5] == 0" (subscript_expression "piVar32[0xa5]" identifier [ number_literal ]) == number_literal) )))) )) + number_literal) )) - (call_expression "(ushort)(local_113c == 0)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(local_113c == 0)" ( (binary_expression "local_113c == 0" identifier == number_literal) )))) )))) ;) (expression_statement "local_1128 = local_1128 + 1;" (assignment_expression "local_1128 = local_1128 + 1" identifier = (binary_expression "local_1128 + 1" identifier + number_literal)) ;) (expression_statement "local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;" (assignment_expression "local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13" identifier = (binary_expression "local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13" (binary_expression "local_1144 + uVar6 + iVar10 + iVar11 + iVar12" (binary_expression "local_1144 + uVar6 + iVar10 + iVar11" (binary_expression "local_1144 + uVar6 + iVar10" (binary_expression "local_1144 + uVar6" identifier + identifier) + identifier) + identifier) + identifier) + identifier)) ;) (expression_statement "uVar31 = TellBlob(param_1);" (assignment_expression "uVar31 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar7[local_1128 * 2 + -2] = (int)uVar31;" (assignment_expression "puVar7[local_1128 * 2 + -2] = (int)uVar31" (subscript_expression "puVar7[local_1128 * 2 + -2]" identifier [ (binary_expression "local_1128 * 2 + -2" (binary_expression "local_1128 * 2" identifier * number_literal) + number_literal) ]) = (cast_expression "(int)uVar31" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);" (assignment_expression "puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20)" (subscript_expression "puVar7[local_1128 * 2 + -1]" identifier [ (binary_expression "local_1128 * 2 + -1" (binary_expression "local_1128 * 2" identifier * number_literal) + number_literal) ]) = (cast_expression "(int)((ulonglong)uVar31 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar31 >> 0x20)" ( (binary_expression "(ulonglong)uVar31 >> 0x20" (cast_expression "(ulonglong)uVar31" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (do_statement "do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);" do (compound_statement "{\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        }" { (while_statement "while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }" while (parenthesized_expression "(iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1)" ( (comma_expression "iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1" (assignment_expression "iVar11 = WriteBlobShort(param_1,iVar10)" identifier = (call_expression "WriteBlobShort(param_1,iVar10)" identifier (argument_list "(param_1,iVar10)" ( 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            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }" { (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" 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 "local_1144 = local_1144 + iVar11 + iVar12;" (assignment_expression "local_1144 = local_1144 + iVar11 + iVar12" identifier = (binary_expression "local_1144 + iVar11 + iVar12" (binary_expression "local_1144 + iVar11" identifier + identifier) + identifier)) ;) (if_statement "if (iVar10 == local_1134) goto LAB_0025ff56;" if (parenthesized_expression "(iVar10 == local_1134)" ( (binary_expression "iVar10 == local_1134" identifier == identifier) )) (goto_statement "goto LAB_0025ff56;" goto statement_identifier ;)) })) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "iVar12 = WriteBlobLongLong(param_1,0,0);" (assignment_expression "iVar12 = 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_1144 = local_1144 + iVar11 + iVar12;" (assignment_expression "local_1144 = local_1144 + iVar11 + iVar12" identifier = (binary_expression "local_1144 + iVar11 + iVar12" (binary_expression "local_1144 + iVar11" identifier + identifier) + identifier)) ;) }) while (parenthesized_expression "(iVar10 != local_1134)" ( (binary_expression "iVar10 != local_1134" identifier != identifier) )) ;) (labeled_statement "LAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }" statement_identifier : (if_statement "if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }" if (parenthesized_expression "(piVar32[0xa5] != 0)" ( (binary_expression "piVar32[0xa5] != 0" (subscript_expression "piVar32[0xa5]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }" { (expression_statement "iVar10 = WriteBlobShort(param_1,0xffff);" (assignment_expression "iVar10 = 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            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = 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            iVar11 = WriteBlobLong(param_1,0);\n          }" { (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 )))) ;) }) (else_clause "else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }" else (compound_statement "{\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }" { (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_1144 = iVar11 + local_1144 + iVar10;" (assignment_expression "local_1144 = iVar11 + local_1144 + iVar10" identifier = (binary_expression "iVar11 + local_1144 + iVar10" (binary_expression "iVar11 + local_1144" identifier + identifier) + identifier)) ;) }))) (if_statement "if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }" if (parenthesized_expression "(local_113c != 0)" ( (binary_expression "local_113c != 0" identifier != number_literal) )) (compound_statement "{\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }" { (expression_statement "iVar10 = WriteBlobShort(param_1,0xfffe);" (assignment_expression "iVar10 = 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            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = 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            iVar11 = WriteBlobLong(param_1,0);\n          }" { (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 )))) ;) }) (else_clause "else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }" else (compound_statement "{\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }" { (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_1144 = iVar11 + local_1144 + iVar10;" (assignment_expression "local_1144 = iVar11 + local_1144 + iVar10" identifier = (binary_expression "iVar11 + local_1144 + iVar10" (binary_expression "iVar11 + local_1144" identifier + identifier) + identifier)) ;) })) (expression_statement "puVar15 = &DAT_002a239a;" (assignment_expression "puVar15 = &DAT_002a239a" identifier = (pointer_expression "&DAT_002a239a" & identifier)) ;) (if_statement "if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\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          puVar15 = &DAT_0030c1c9;\n        }" { (expression_statement "puVar15 = &DAT_0030c1c9;" (assignment_expression "puVar15 = &DAT_0030c1c9" identifier = (pointer_expression "&DAT_0030c1c9" & identifier)) ;) })) (expression_statement "iVar10 = WriteBlobString(param_1,puVar15);" (assignment_expression "iVar10 = WriteBlobString(param_1,puVar15)" identifier = (call_expression "WriteBlobString(param_1,puVar15)" identifier (argument_list "(param_1,puVar15)" ( identifier , identifier )))) ;) (switch_statement "switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }" switch (parenthesized_expression "(piVar32[0x8f])" ( (subscript_expression "piVar32[0x8f]" identifier [ number_literal ]) )) (compound_statement "{\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }" { (case_statement "case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "idiv";" (assignment_expression "pcVar8 = "idiv"" identifier = (string_literal ""idiv"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "div ";" (assignment_expression "pcVar8 = "div "" identifier = (string_literal ""div "" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "colr";" (assignment_expression "pcVar8 = "colr"" identifier = (string_literal ""colr"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;" default : (expression_statement "pcVar8 = "norm";" (assignment_expression "pcVar8 = "norm"" identifier = (string_literal ""norm"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "dark";" (assignment_expression "pcVar8 = "dark"" identifier = (string_literal ""dark"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "diff";" (assignment_expression "pcVar8 = "diff"" identifier = (string_literal ""diff"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "diss";" (assignment_expression "pcVar8 = "diss"" identifier = (string_literal ""diss"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "smud";" (assignment_expression "pcVar8 = "smud"" identifier = (string_literal ""smud"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "hLit";" (assignment_expression "pcVar8 = "hLit"" identifier = (string_literal ""hLit"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "hMix";" (assignment_expression "pcVar8 = "hMix"" identifier = (string_literal ""hMix"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "hue ";" (assignment_expression "pcVar8 = "hue "" identifier = (string_literal ""hue "" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "lite";" (assignment_expression "pcVar8 = "lite"" identifier = (string_literal ""lite"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "lbrn";" (assignment_expression "pcVar8 = "lbrn"" identifier = (string_literal ""lbrn"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "lddg";" (assignment_expression "pcVar8 = "lddg"" identifier = (string_literal ""lddg"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "lLit";" (assignment_expression "pcVar8 = "lLit"" identifier = (string_literal ""lLit"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "lum ";" (assignment_expression "pcVar8 = "lum "" identifier = (string_literal ""lum "" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "mul ";" (assignment_expression "pcVar8 = "mul "" identifier = (string_literal ""mul "" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "over";" (assignment_expression "pcVar8 = "over"" identifier = (string_literal ""over"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "pLit";" (assignment_expression "pcVar8 = "pLit"" identifier = (string_literal ""pLit"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "sat ";" (assignment_expression "pcVar8 = "sat "" identifier = (string_literal ""sat "" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "scrn";" (assignment_expression "pcVar8 = "scrn"" identifier = (string_literal ""scrn"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "sLit";" (assignment_expression "pcVar8 = "sLit"" identifier = (string_literal ""sLit"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }" case number_literal : (expression_statement "pcVar8 = "vLit";" (assignment_expression "pcVar8 = "vLit"" identifier = (string_literal ""vLit"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar8 = "tiLv";\n          }" { (expression_statement "pcVar8 = "tiLv";" (assignment_expression "pcVar8 = "tiLv"" identifier = (string_literal ""tiLv"" " string_content ")) ;) }))) })) (expression_statement "iVar11 = WriteBlobString(param_1,pcVar8);" (assignment_expression "iVar11 = WriteBlobString(param_1,pcVar8)" identifier = (call_expression "WriteBlobString(param_1,pcVar8)" identifier (argument_list "(param_1,pcVar8)" ( identifier , identifier )))) ;) (expression_statement "pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");" (assignment_expression "pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity")" identifier = (cast_expression "(char *)GetImageArtifact(piVar32,"psd:layer.opacity")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageArtifact(piVar32,"psd:layer.opacity")" identifier (argument_list "(piVar32,"psd:layer.opacity")" ( identifier , (string_literal ""psd:layer.opacity"" " string_content ") ))))) ;) (if_statement "if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\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          iVar12 = WriteBlobByte(param_1,0xff);\n        }" { (expression_statement "iVar12 = WriteBlobByte(param_1,0xff);" (assignment_expression "iVar12 = WriteBlobByte(param_1,0xff)" identifier = (call_expression "WriteBlobByte(param_1,0xff)" identifier (argument_list "(param_1,0xff)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }" else (compound_statement "{\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\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 "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }" if (parenthesized_expression "(0.0 < (float)lVar16)" ( (binary_expression "0.0 < (float)lVar16" number_literal < (cast_expression "(float)lVar16" ( (type_descriptor "float" primitive_type) ) identifier)) )) (compound_statement "{\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }" { (expression_statement "uVar2 = 0xff;" (assignment_expression "uVar2 = 0xff" identifier = number_literal) ;) (expression_statement "fVar1 = (float)lVar16 / DAT_002a7ff0;" (assignment_expression "fVar1 = (float)lVar16 / DAT_002a7ff0" identifier = (binary_expression "(float)lVar16 / DAT_002a7ff0" (cast_expression "(float)lVar16" ( (type_descriptor "float" primitive_type) ) identifier) / identifier)) ;) (if_statement "if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }" if (parenthesized_expression "(fVar1 < DAT_002a7ff4)" ( (binary_expression "fVar1 < DAT_002a7ff4" identifier < identifier) )) (compound_statement "{\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }" { (expression_statement "uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);" (assignment_expression "uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124)" identifier = (cast_expression "(undefined1)(short)ROUND(fVar1 + DAT_0029f124)" ( (type_descriptor "undefined1" type_identifier) ) (cast_expression "(short)ROUND(fVar1 + DAT_0029f124)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (call_expression "ROUND(fVar1 + DAT_0029f124)" identifier (argument_list "(fVar1 + DAT_0029f124)" ( (binary_expression "fVar1 + DAT_0029f124" identifier + identifier) )))))) ;) })) })) (expression_statement "iVar12 = WriteBlobByte(param_1,uVar2);" (assignment_expression "iVar12 = WriteBlobByte(param_1,uVar2)" identifier = (call_expression "WriteBlobByte(param_1,uVar2)" identifier (argument_list "(param_1,uVar2)" ( identifier , identifier )))) ;) (expression_statement "FUN_0025c840((double)lVar16);" (call_expression "FUN_0025c840((double)lVar16)" identifier (argument_list "((double)lVar16)" ( (cast_expression "(double)lVar16" ( (type_descriptor "double" primitive_type) ) identifier) ))) ;) }))) (expression_statement "iVar14 = WriteBlobByte(param_1,0);" (assignment_expression "iVar14 = WriteBlobByte(param_1,0)" identifier = (call_expression "WriteBlobByte(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');" (assignment_expression "iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01')" identifier = (call_expression "WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01')" identifier (argument_list "(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01')" ( identifier , (binary_expression "(piVar32[0x8f] == 0x34) * '\x03' + '\x01'" (binary_expression "(piVar32[0x8f] == 0x34) * '\x03'" (parenthesized_expression "(piVar32[0x8f] == 0x34)" ( (binary_expression "piVar32[0x8f] == 0x34" (subscript_expression "piVar32[0x8f]" identifier [ number_literal ]) == number_literal) )) * (char_literal "'\x03'" ' escape_sequence ')) + (char_literal "'\x01'" ' escape_sequence ')) )))) ;) (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 "iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;" (assignment_expression "iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17" identifier = (binary_expression "iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17" (binary_expression "iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14" (binary_expression "iVar13 + local_1144 + iVar10 + iVar11 + iVar12" (binary_expression "iVar13 + local_1144 + iVar10 + iVar11" (binary_expression "iVar13 + local_1144 + iVar10" (binary_expression "iVar13 + local_1144" identifier + identifier) + identifier) + identifier) + identifier) + identifier) + identifier)) ;) (expression_statement "puVar28 = &DAT_0030c7e0;" (assignment_expression "puVar28 = &DAT_0030c7e0" identifier = (pointer_expression "&DAT_0030c7e0" & identifier)) ;) (expression_statement "puVar27 = local_10d9;" (assignment_expression "puVar27 = local_10d9" identifier = identifier) ;) (for_statement "for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -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          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }" { (expression_statement "*puVar27 = *puVar28;" (assignment_expression "*puVar27 = *puVar28" (pointer_expression "*puVar27" * identifier) = (pointer_expression "*puVar28" * identifier)) ;) (expression_statement "puVar28 = puVar28 + (uint)bVar29 * -2 + 1;" (assignment_expression "puVar28 = puVar28 + (uint)bVar29 * -2 + 1" identifier = (binary_expression "puVar28 + (uint)bVar29 * -2 + 1" (binary_expression "puVar28 + (uint)bVar29 * -2" identifier + (binary_expression "(uint)bVar29 * -2" (cast_expression "(uint)bVar29" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar27 = puVar27 + (uint)bVar29 * -2 + 1;" (assignment_expression "puVar27 = puVar27 + (uint)bVar29 * -2 + 1" identifier = (binary_expression "puVar27 + (uint)bVar29 * -2 + 1" (binary_expression "puVar27 + (uint)bVar29 * -2" identifier + (binary_expression "(uint)bVar29 * -2" (cast_expression "(uint)bVar29" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "iVar10 = GetImageProfile(piVar32,"psd:additional-info");" (assignment_expression "iVar10 = GetImageProfile(piVar32,"psd:additional-info")" identifier = (call_expression "GetImageProfile(piVar32,"psd:additional-info")" identifier (argument_list "(piVar32,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (if_statement "if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00260a9c:\n          iVar11 = 0;\n        }" { (labeled_statement "LAB_00260a9c:\n          iVar11 = 0;" statement_identifier : (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }" else (compound_statement "{\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }" { (expression_statement "uVar18 = GetImageOption(param_2,"psd:additional-info");" (assignment_expression "uVar18 = 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(uVar18,"all");" (assignment_expression "iVar12 = LocaleCompare(uVar18,"all")" identifier = (call_expression "LocaleCompare(uVar18,"all")" identifier (argument_list "(uVar18,"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(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }" if (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) (compound_statement "{\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }" { (expression_statement "iVar11 = LocaleCompare(uVar18,"selective");" (assignment_expression "iVar11 = LocaleCompare(uVar18,"selective")" identifier = (call_expression "LocaleCompare(uVar18,"selective")" identifier (argument_list "(uVar18,"selective")" ( identifier , (string_literal ""selective"" " string_content ") )))) ;) (if_statement "if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }" { (expression_statement "uVar26 = GetStringInfoLength(iVar10);" (assignment_expression "uVar26 = 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 (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }" if (parenthesized_expression "(uVar26 < 0xc)" ( (binary_expression "uVar26 < 0xc" identifier < number_literal) )) (compound_statement "{\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }" { (expression_statement "iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");" (assignment_expression "iVar11 = RemoveImageProfile(piVar32,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(piVar32,"psd:additional-info")" identifier (argument_list "(piVar32,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) }) (else_clause "else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }" else (compound_statement "{\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }" { (expression_statement "local_1134 = 0;" (assignment_expression "local_1134 = 0" identifier = number_literal) ;) (do_statement "do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);" do (compound_statement "{\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\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 "uVar26 = uVar26 - 0xc;" (assignment_expression "uVar26 = uVar26 - 0xc" identifier = (binary_expression "uVar26 - 0xc" identifier - number_literal)) ;) (expression_statement "local_1021 = 0;" (assignment_expression "local_1021 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = *(uint *)((int)__dest + 8);" (assignment_expression "uVar6 = *(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 "uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;" (assignment_expression "uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18" identifier = (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" ( (binary_expression "uVar6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" ( (binary_expression "uVar6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar6 << 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 "puVar28 = local_10d9;" (assignment_expression "puVar28 = local_10d9" identifier = identifier) ;) (if_statement "if (uVar26 < uVar6) goto LAB_00260a9c;" if (parenthesized_expression "(uVar26 < uVar6)" ( (binary_expression "uVar26 < uVar6" identifier < identifier) )) (goto_statement "goto LAB_00260a9c;" goto statement_identifier ;)) (do_statement "do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);" do (compound_statement "{\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  }" { (expression_statement "iVar11 = LocaleNCompare(&local_1025,puVar28,5);" (assignment_expression "iVar11 = LocaleNCompare(&local_1025,puVar28,5)" identifier = (call_expression "LocaleNCompare(&local_1025,puVar28,5)" identifier (argument_list "(&local_1025,puVar28,5)" ( (pointer_expression "&local_1025" & identifier) , identifier , number_literal )))) ;) (if_statement "if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }" { (expression_statement "uVar26 = uVar26 - uVar6;" (assignment_expression "uVar26 = uVar26 - uVar6" identifier = (binary_expression "uVar26 - uVar6" identifier - identifier)) ;) (expression_statement "local_1134 = uVar6 + 0xc + local_1134;" (assignment_expression "local_1134 = uVar6 + 0xc + local_1134" identifier = (binary_expression "uVar6 + 0xc + local_1134" (binary_expression "uVar6 + 0xc" identifier + number_literal) + identifier)) ;) (expression_statement "__dest = (void *)((int)__dest + uVar6 + 0xc);" (assignment_expression "__dest = (void *)((int)__dest + uVar6 + 0xc)" identifier = (cast_expression "(void *)((int)__dest + uVar6 + 0xc)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + uVar6 + 0xc)" ( (binary_expression "(int)__dest + uVar6 + 0xc" (binary_expression "(int)__dest + uVar6" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (goto_statement "goto LAB_0026028c;" goto statement_identifier ;) })) (expression_statement "puVar28 = (undefined4 *)((int)puVar28 + 5);" (assignment_expression "puVar28 = (undefined4 *)((int)puVar28 + 5)" identifier = (cast_expression "(undefined4 *)((int)puVar28 + 5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar28 + 5)" ( (binary_expression "(int)puVar28 + 5" (cast_expression "(int)puVar28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "(puVar28 != (undefined4 *)&local_1025)" ( (binary_expression "puVar28 != (undefined4 *)&local_1025" identifier != (cast_expression "(undefined4 *)&local_1025" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_1025" & identifier))) )) ;) (expression_statement "uVar26 = uVar26 - uVar6;" (assignment_expression "uVar26 = uVar26 - uVar6" identifier = (binary_expression "uVar26 - uVar6" identifier - identifier)) ;) (if_statement "if (uVar26 == 0) break;" if (parenthesized_expression "(uVar26 == 0)" ( (binary_expression "uVar26 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);" (call_expression "memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26)" identifier (argument_list "(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26)" ( identifier , (cast_expression "(void *)((int)__dest + uVar6 + 0xc)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + uVar6 + 0xc)" ( (binary_expression "(int)__dest + uVar6 + 0xc" (binary_expression "(int)__dest + uVar6" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) ))) , identifier ))) ;) (labeled_statement "LAB_0026028c:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(0xb < uVar26)" ( (binary_expression "0xb < uVar26" number_literal < identifier) )) ;) (expression_statement "iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");" (assignment_expression "iVar11 = RemoveImageProfile(piVar32,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(piVar32,"psd:additional-info")" identifier (argument_list "(piVar32,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (if_statement "if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }" if (parenthesized_expression "(local_1134 != 0)" ( (binary_expression "local_1134 != 0" identifier != number_literal) )) (compound_statement "{\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }" { (expression_statement "SetStringInfoLength(iVar11,local_1134);" (call_expression "SetStringInfoLength(iVar11,local_1134)" identifier (argument_list "(iVar11,local_1134)" ( identifier , identifier ))) ;) (expression_statement "SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);" (call_expression "SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5)" identifier (argument_list "(piVar32,"psd:additional-info",iVar10,param_5)" ( identifier , (string_literal ""psd:additional-info"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto LAB_00260370;" 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              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }" else (compound_statement "{\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }" { (expression_statement "uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");" (assignment_expression "uVar18 = RemoveImageProfile(piVar32,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(piVar32,"psd:additional-info")" identifier (argument_list "(piVar32,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (expression_statement "iVar11 = DestroyStringInfo(uVar18);" (assignment_expression "iVar11 = DestroyStringInfo(uVar18)" identifier = (call_expression "DestroyStringInfo(uVar18)" identifier (argument_list "(uVar18)" ( identifier )))) ;) }))) })) }))) (labeled_statement "LAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);" statement_identifier : (expression_statement "pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);" (assignment_expression "pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5)" identifier = (cast_expression "(char *)GetImageProperty(piVar32,"label",param_5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageProperty(piVar32,"label",param_5)" identifier (argument_list "(piVar32,"label",param_5)" ( identifier , (string_literal ""label"" " string_content ") , identifier ))))) ;)) (if_statement "if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\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 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }" { (expression_statement "pcVar8 = local_1020;" (assignment_expression "pcVar8 = local_1020" identifier = identifier) ;) (expression_statement "FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);" (call_expression "FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128)" identifier (argument_list "(pcVar8,0x1000,"L%.20g",(double)local_1128)" ( identifier , number_literal , (string_literal ""L%.20g"" " string_content ") , (cast_expression "(double)local_1128" ( (type_descriptor "double" primitive_type) ) identifier) ))) ;) })) (expression_statement "sVar9 = strlen(pcVar8);" (assignment_expression "sVar9 = strlen(pcVar8)" identifier = (call_expression "strlen(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier )))) ;) (expression_statement "uVar26 = sVar9 + 1;" (assignment_expression "uVar26 = sVar9 + 1" identifier = (binary_expression "sVar9 + 1" identifier + number_literal)) ;) (if_statement "if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }" if (parenthesized_expression "((uVar26 & 3) != 0)" ( (binary_expression "(uVar26 & 3) != 0" (parenthesized_expression "(uVar26 & 3)" ( (binary_expression "uVar26 & 3" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }" { (expression_statement "uVar26 = (uVar26 & 0xfffffffc) + 4;" (assignment_expression "uVar26 = (uVar26 & 0xfffffffc) + 4" identifier = (binary_expression "(uVar26 & 0xfffffffc) + 4" (parenthesized_expression "(uVar26 & 0xfffffffc)" ( (binary_expression "uVar26 & 0xfffffffc" identifier & number_literal) )) + number_literal)) ;) })) (if_statement "if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }" if (parenthesized_expression "(iVar11 != 0)" ( (binary_expression "iVar11 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }" { (expression_statement "iVar10 = GetStringInfoLength(iVar11);" (assignment_expression "iVar10 = GetStringInfoLength(iVar11)" identifier = (call_expression "GetStringInfoLength(iVar11)" identifier (argument_list "(iVar11)" ( identifier )))) ;) (expression_statement "uVar26 = uVar26 + iVar10;" (assignment_expression "uVar26 = uVar26 + iVar10" identifier = (binary_expression "uVar26 + iVar10" identifier + identifier)) ;) })) (if_statement "if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }" if (parenthesized_expression "(local_113c == 0)" ( (binary_expression "local_113c == 0" identifier == number_literal) )) (compound_statement "{\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }" { (expression_statement "iVar10 = WriteBlobLong(param_1,uVar26 + 8);" (assignment_expression "iVar10 = WriteBlobLong(param_1,uVar26 + 8)" identifier = (call_expression "WriteBlobLong(param_1,uVar26 + 8)" identifier (argument_list "(param_1,uVar26 + 8)" ( identifier , (binary_expression "uVar26 + 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 + iVar13;" (assignment_expression "iVar10 = iVar10 + iVar12 + iVar13" identifier = (binary_expression "iVar10 + iVar12 + iVar13" (binary_expression "iVar10 + iVar12" identifier + identifier) + identifier)) ;) }) (else_clause "else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }" else (compound_statement "{\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }" { (expression_statement "iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);" (assignment_expression "iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c)" identifier = (call_expression "WriteBlobLong(param_1,uVar26 + 0x1c)" identifier (argument_list "(param_1,uVar26 + 0x1c)" ( identifier , (binary_expression "uVar26 + 0x1c" identifier + number_literal) )))) ;) (if_statement "if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }" if (parenthesized_expression "((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0))" ( (binary_expression "(*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)" (parenthesized_expression "(*(int *)(local_113c + 0x23c) != 0x34)" ( (binary_expression "*(int *)(local_113c + 0x23c) != 0x34" (pointer_expression "*(int *)(local_113c + 0x23c)" * (cast_expression "(int *)(local_113c + 0x23c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x23c)" ( (binary_expression "local_113c + 0x23c" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(piVar32[0xa5] != 0)" ( (binary_expression "piVar32[0xa5] != 0" (subscript_expression "piVar32[0xa5]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }" { (expression_statement "FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);" (call_expression "FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5)" identifier (argument_list "((double)((float)local_10e3 * DAT_002a7ff0),param_5)" ( (cast_expression "(double)((float)local_10e3 * DAT_002a7ff0)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)local_10e3 * DAT_002a7ff0)" ( (binary_expression "(float)local_10e3 * DAT_002a7ff0" (cast_expression "(float)local_10e3" ( (type_descriptor "float" primitive_type) ) identifier) * identifier) ))) , identifier ))) ;) })) (expression_statement "*(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];" (assignment_expression "*(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83]" (pointer_expression "*(int *)(local_113c + 0x20c)" * (cast_expression "(int *)(local_113c + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x20c)" ( (binary_expression "local_113c + 0x20c" identifier + number_literal) )))) = (binary_expression "*(int *)(local_113c + 0x20c) + param_1[0x83]" (pointer_expression "*(int *)(local_113c + 0x20c)" * (cast_expression "(int *)(local_113c + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x20c)" ( (binary_expression "local_113c + 0x20c" identifier + number_literal) )))) + (subscript_expression "param_1[0x83]" identifier [ number_literal ]))) ;) (expression_statement "*(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];" (assignment_expression "*(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82]" (pointer_expression "*(int *)(local_113c + 0x208)" * (cast_expression "(int *)(local_113c + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x208)" ( (binary_expression "local_113c + 0x208" identifier + number_literal) )))) = (binary_expression "*(int *)(local_113c + 0x208) + param_1[0x82]" (pointer_expression "*(int *)(local_113c + 0x208)" * (cast_expression "(int *)(local_113c + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x208)" ( (binary_expression "local_113c + 0x208" identifier + number_literal) )))) + (subscript_expression "param_1[0x82]" identifier [ number_literal ]))) ;) (expression_statement "iVar14 = WriteBlobLong(param_1,0x14);" (assignment_expression "iVar14 = 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_113c + 0x20c));" (assignment_expression "iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c))" identifier = (call_expression "WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c))" identifier (argument_list "(param_1,*(undefined4 *)(local_113c + 0x20c))" ( identifier , (pointer_expression "*(undefined4 *)(local_113c + 0x20c)" * (cast_expression "(undefined4 *)(local_113c + 0x20c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x20c)" ( (binary_expression "local_113c + 0x20c" identifier + number_literal) )))) )))) ;) (expression_statement "iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));" (assignment_expression "iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208))" identifier = (call_expression "WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208))" identifier (argument_list "(param_1,*(undefined4 *)(local_113c + 0x208))" ( identifier , (pointer_expression "*(undefined4 *)(local_113c + 0x208)" * (cast_expression "(undefined4 *)(local_113c + 0x208)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x208)" ( (binary_expression "local_113c + 0x208" identifier + number_literal) )))) )))) ;) (expression_statement "iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));" (assignment_expression "iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c))" identifier = (call_expression "WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c))" identifier (argument_list "(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c))" ( identifier , (binary_expression "*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c)" (pointer_expression "*(int *)(local_113c + 0x20c)" * (cast_expression "(int *)(local_113c + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x20c)" ( (binary_expression "local_113c + 0x20c" identifier + number_literal) )))) + (pointer_expression "*(int *)(local_113c + 0x1c)" * (cast_expression "(int *)(local_113c + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x1c)" ( (binary_expression "local_113c + 0x1c" identifier + number_literal) ))))) )))) ;) (expression_statement "iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));" (assignment_expression "iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18))" identifier = (call_expression "WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18))" identifier (argument_list "(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18))" ( identifier , (binary_expression "*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18)" (pointer_expression "*(int *)(local_113c + 0x208)" * (cast_expression "(int *)(local_113c + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x208)" ( (binary_expression "local_113c + 0x208" identifier + number_literal) )))) + (pointer_expression "*(int *)(local_113c + 0x18)" * (cast_expression "(int *)(local_113c + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x18)" ( (binary_expression "local_113c + 0x18" identifier + number_literal) ))))) )))) ;) (expression_statement "iVar22 = WriteBlobByte(param_1,local_10e3);" (assignment_expression "iVar22 = WriteBlobByte(param_1,local_10e3)" identifier = (call_expression "WriteBlobByte(param_1,local_10e3)" identifier (argument_list "(param_1,local_10e3)" ( identifier , identifier )))) ;) (expression_statement "iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');" (assignment_expression "iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02')" identifier = (call_expression "WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02')" identifier (argument_list "(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02')" ( identifier , (binary_expression "(*(int *)(local_113c + 0x23c) == 0x34) * '\x02'" (parenthesized_expression "(*(int *)(local_113c + 0x23c) == 0x34)" ( (binary_expression "*(int *)(local_113c + 0x23c) == 0x34" (pointer_expression "*(int *)(local_113c + 0x23c)" * (cast_expression "(int *)(local_113c + 0x23c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x23c)" ( (binary_expression "local_113c + 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 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;" (assignment_expression "iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10" identifier = (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17" (binary_expression "iVar13 + iVar12 + iVar14" (binary_expression "iVar13 + iVar12" identifier + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier)) ;) }))) (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 "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            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }" if (parenthesized_expression "(sVar9 < 0x100)" ( (binary_expression "sVar9 < 0x100" identifier < number_literal) )) (compound_statement "{\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }" { (if_statement "if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }" if (parenthesized_expression "(sVar9 == 0)" ( (binary_expression "sVar9 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }" { (expression_statement "iVar14 = WriteBlobByte(param_1,0);" (assignment_expression "iVar14 = WriteBlobByte(param_1,0)" identifier = (call_expression "WriteBlobByte(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "local_113c = 3;" (assignment_expression "local_113c = 3" identifier = number_literal) ;) }) (else_clause "else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }" else (compound_statement "{\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }" { (expression_statement "iVar14 = WriteBlobByte(param_1,sVar9);" (assignment_expression "iVar14 = WriteBlobByte(param_1,sVar9)" identifier = (call_expression "WriteBlobByte(param_1,sVar9)" identifier (argument_list "(param_1,sVar9)" ( identifier , identifier )))) ;) (expression_statement "iVar13 = WriteBlob(param_1,sVar9,pcVar8);" (assignment_expression "iVar13 = WriteBlob(param_1,sVar9,pcVar8)" identifier = (call_expression "WriteBlob(param_1,sVar9,pcVar8)" identifier (argument_list "(param_1,sVar9,pcVar8)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar14 = iVar14 + iVar13;" (assignment_expression "iVar14 = iVar14 + iVar13" identifier = (binary_expression "iVar14 + iVar13" identifier + identifier)) ;) (expression_statement "local_113c = sVar9 + 1 & 3;" (assignment_expression "local_113c = sVar9 + 1 & 3" identifier = (binary_expression "sVar9 + 1 & 3" (binary_expression "sVar9 + 1" identifier + number_literal) & number_literal)) ;) (if_statement "if (local_113c == 0) goto LAB_00260559;" if (parenthesized_expression "(local_113c == 0)" ( (binary_expression "local_113c == 0" identifier == number_literal) )) (goto_statement "goto LAB_00260559;" goto statement_identifier ;)) (expression_statement "local_113c = 4 - local_113c;" (assignment_expression "local_113c = 4 - local_113c" identifier = (binary_expression "4 - local_113c" number_literal - identifier)) ;) }))) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (do_statement "do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);" do (compound_statement "{\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          }" { (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" identifier = (binary_expression "iVar13 + 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 "iVar14 = iVar14 + iVar17;" (assignment_expression "iVar14 = iVar14 + iVar17" identifier = (binary_expression "iVar14 + iVar17" identifier + identifier)) ;) }) while (parenthesized_expression "(local_113c != iVar13)" ( (binary_expression "local_113c != iVar13" identifier != identifier) )) ;) }) (else_clause "else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }" else (compound_statement "{\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }" { (expression_statement "iVar14 = WriteBlobByte(param_1,0xff);" (assignment_expression "iVar14 = WriteBlobByte(param_1,0xff)" identifier = (call_expression "WriteBlobByte(param_1,0xff)" identifier (argument_list "(param_1,0xff)" ( identifier , number_literal )))) ;) (expression_statement "iVar13 = WriteBlob(param_1,0xff,pcVar8);" (assignment_expression "iVar13 = WriteBlob(param_1,0xff,pcVar8)" identifier = (call_expression "WriteBlob(param_1,0xff,pcVar8)" identifier (argument_list "(param_1,0xff,pcVar8)" ( identifier , number_literal , identifier )))) ;) (expression_statement "iVar14 = iVar14 + iVar13;" (assignment_expression "iVar14 = iVar14 + iVar13" identifier = (binary_expression "iVar14 + iVar13" identifier + identifier)) ;) }))) (labeled_statement "LAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;" statement_identifier : (expression_statement "uVar6 = iVar14 + iVar12 + iVar10;" (assignment_expression "uVar6 = iVar14 + iVar12 + iVar10" identifier = (binary_expression "iVar14 + iVar12 + iVar10" (binary_expression "iVar14 + iVar12" identifier + identifier) + identifier)) ;)) (if_statement "if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }" if (parenthesized_expression "(iVar11 != 0)" ( (binary_expression "iVar11 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }" { (expression_statement "uVar18 = GetStringInfoDatum(iVar11);" (assignment_expression "uVar18 = GetStringInfoDatum(iVar11)" identifier = (call_expression "GetStringInfoDatum(iVar11)" identifier (argument_list "(iVar11)" ( identifier )))) ;) (expression_statement "uVar24 = GetStringInfoLength(iVar11);" (assignment_expression "uVar24 = GetStringInfoLength(iVar11)" identifier = (call_expression "GetStringInfoLength(iVar11)" identifier (argument_list "(iVar11)" ( identifier )))) ;) (expression_statement "iVar10 = WriteBlob(param_1,uVar24,uVar18);" (assignment_expression "iVar10 = WriteBlob(param_1,uVar24,uVar18)" identifier = (call_expression "WriteBlob(param_1,uVar24,uVar18)" identifier (argument_list "(param_1,uVar24,uVar18)" ( identifier , identifier , identifier )))) ;) (expression_statement "uVar6 = uVar6 + iVar10;" (assignment_expression "uVar6 = uVar6 + iVar10" identifier = (binary_expression "uVar6 + iVar10" identifier + identifier)) ;) })) (expression_statement "piVar5 = (int *)GetNextImageInList(piVar32);" (assignment_expression "piVar5 = (int *)GetNextImageInList(piVar32)" identifier = (cast_expression "(int *)GetNextImageInList(piVar32)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageInList(piVar32)" identifier (argument_list "(piVar32)" ( identifier ))))) ;) (expression_statement "puVar28 = puVar7;" (assignment_expression "puVar28 = puVar7" identifier = identifier) ;) (expression_statement "piVar25 = piVar4;" (assignment_expression "piVar25 = piVar4" identifier = identifier) ;) }) 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)) )) ;) (do_statement "do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);" do (compound_statement "{\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      }" { (expression_statement "iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);" (assignment_expression "iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5)" identifier = (call_expression "FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5)" identifier (argument_list "(piVar25,*puVar28,puVar28[1],1,param_5)" ( identifier , (pointer_expression "*puVar28" * identifier) , (subscript_expression "puVar28[1]" identifier [ number_literal ]) , number_literal , identifier )))) ;) (if_statement "if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }" { (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "local_113c = uVar6;" (assignment_expression "local_113c = uVar6" identifier = identifier) ;) (goto_statement "goto LAB_0026060b;" goto statement_identifier ;) })) (expression_statement "uVar6 = uVar6 + iVar10;" (assignment_expression "uVar6 = uVar6 + iVar10" identifier = (binary_expression "uVar6 + iVar10" identifier + identifier)) ;) (expression_statement "piVar25 = (int *)GetNextImageInList(piVar25);" (assignment_expression "piVar25 = (int *)GetNextImageInList(piVar25)" identifier = (cast_expression "(int *)GetNextImageInList(piVar25)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageInList(piVar25)" identifier (argument_list "(piVar25)" ( identifier ))))) ;) (expression_statement "puVar28 = puVar28 + 2;" (assignment_expression "puVar28 = puVar28 + 2" identifier = (binary_expression "puVar28 + 2" identifier + number_literal)) ;) (expression_statement "local_113c = uVar6;" (assignment_expression "local_113c = uVar6" identifier = identifier) ;) }) while (parenthesized_expression "(piVar25 != (int *)0x0)" ( (binary_expression "piVar25 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "uVar18 = 1;" (assignment_expression "uVar18 = 1" identifier = number_literal) ;) (labeled_statement "LAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }" statement_identifier : (if_statement "if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\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_113c;\n    }" { (expression_statement "*param_4 = local_113c;" (assignment_expression "*param_4 = local_113c" (pointer_expression "*param_4" * identifier) = identifier) ;) }))) (expression_statement "uVar26 = local_113c + 1;" (assignment_expression "uVar26 = local_113c + 1" identifier = (binary_expression "local_113c + 1" identifier + number_literal)) ;) (if_statement "if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }" if (parenthesized_expression "(local_113c >> 1 == local_113c + 1 >> 1)" ( (binary_expression "local_113c >> 1 == local_113c + 1 >> 1" (binary_expression "local_113c >> 1" identifier >> number_literal) == (binary_expression "local_113c + 1 >> 1" (binary_expression "local_113c + 1" identifier + number_literal) >> number_literal)) )) (compound_statement "{\n      uVar26 = local_113c;\n    }" { (expression_statement "uVar26 = local_113c;" (assignment_expression "uVar26 = local_113c" identifier = identifier) ;) })) (expression_statement "uVar31 = TellBlob(param_1);" (assignment_expression "uVar31 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,uVar30,0,uVar31);" (call_expression "SeekBlob(param_1,uVar30,0,uVar31)" identifier (argument_list "(param_1,uVar30,0,uVar31)" ( identifier , identifier , number_literal , identifier ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,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,uVar26);\n    }" { (expression_statement "WriteBlobLong(param_1,uVar26);" (call_expression "WriteBlobLong(param_1,uVar26)" identifier (argument_list "(param_1,uVar26)" ( identifier , identifier ))) ;) }) (else_clause "else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }" else (compound_statement "{\n      WriteBlobLongLong(param_1,uVar26,0);\n    }" { (expression_statement "WriteBlobLongLong(param_1,uVar26,0);" (call_expression "WriteBlobLongLong(param_1,uVar26,0)" identifier (argument_list "(param_1,uVar26,0)" ( identifier , identifier , number_literal ))) ;) }))) (expression_statement "SeekBlob(param_1,uVar31,0);" (call_expression "SeekBlob(param_1,uVar31,0)" identifier (argument_list "(param_1,uVar31,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "RelinquishMagickMemory(puVar7);" (call_expression "RelinquishMagickMemory(puVar7)" identifier (argument_list "(puVar7)" ( identifier ))) ;) (for_statement "for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\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      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }" { (expression_statement "iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");" (assignment_expression "iVar10 = 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 ") )))) ;) (if_statement "if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }" if (parenthesized_expression "(iVar10 != 0)" ( (binary_expression "iVar10 != 0" identifier != number_literal) )) (compound_statement "{\n        DeleteImageRegistry(iVar10);\n      }" { (expression_statement "DeleteImageRegistry(iVar10);" (call_expression "DeleteImageRegistry(iVar10)" identifier (argument_list "(iVar10)" ( identifier ))) ;) })) })) }))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }" { comment (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar18;" 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\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  int iVar3;\n  _Image *p_Var4;\n  float fVar5;\n  size_t sVar6;\n  uchar value;\n  short sVar7;\n  Image *pIVar8;\n  Image *pIVar9;\n  uint uVar10;\n  MagickOffsetType *memory;\n  char *pcVar11;\n  size_t sVar12;\n  ssize_t sVar13;\n  ssize_t sVar14;\n  ssize_t sVar15;\n  ssize_t sVar16;\n  MagickBooleanType MVar17;\n  ssize_t sVar18;\n  long lVar19;\n  StringInfo *pSVar20;\n  uchar *puVar21;\n  StringInfo *string_info;\n  ssize_t sVar22;\n  ssize_t sVar23;\n  ssize_t sVar24;\n  ssize_t sVar25;\n  int iVar26;\n  uint uVar27;\n  size_t sVar28;\n  undefined4 *puVar29;\n  MagickOffsetType *pMVar30;\n  int iVar31;\n  char (*pacVar32) [5];\n  int in_GS_OFFSET;\n  byte bVar33;\n  MagickOffsetType offset;\n  MagickOffsetType MVar34;\n  Image *local_114c;\n  int local_1144;\n  Image *local_113c;\n  size_t local_1134;\n  int local_1128;\n  MagickOffsetType size_offset;\n  byte local_10e3;\n  char allowed [36] [5];\n  char key [5];\n  char layer_name [4096];\n  \n  bVar33 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  pIVar8 = GetNextImageInList(image);\n  if (pIVar8 == (Image *)0x0) {\n    pIVar8 = 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  sVar28 = 0;\n  if (pIVar8 != (Image *)0x0) {\n    sVar28 = 0;\n    pIVar9 = pIVar8;\n    do {\n      sVar28 = sVar28 + 1;\n      pIVar9 = GetNextImageInList(pIVar9);\n    } while (pIVar9 != (Image *)0x0);\n  }\n  sVar6 = sVar28;\n  if (image->alpha_trait != UndefinedPixelTrait) {\n    sVar6 = -sVar28;\n  }\n  uVar10 = WriteBlobShort(image,(ushort)sVar6);\n  memory = (MagickOffsetType *)AcquireQuantumMemory(sVar28,8);\n  if (memory == (MagickOffsetType *)0x0) {\n    ThrowMagickException\n              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,\n               "MemoryAllocationFailed","`%s\'",0xd6,image->filename);\n    p_Var4 = (_Image *)image_info->adjoin;\n    pIVar8 = image;\n    while (pIVar9 = image, p_Var4 != (_Image *)0x0) {\n      p_Var4 = pIVar9->previous;\n      image = p_Var4;\n      pIVar8 = pIVar9;\n    }\n    MVar17 = MagickFalse;\n    CloseBlob(pIVar8);\n  }\n  else {\n    local_113c = (Image *)uVar10;\n    if (pIVar8 != (Image *)0x0) {\n      local_1128 = 0;\n      local_114c = pIVar8;\n      do {\n        pcVar11 = GetImageArtifact(local_114c,"psd:opacity-mask");\n        if (pcVar11 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = (Image *)0x0;\n        }\n        else {\n          local_113c = (Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception);\n          sVar12 = strlen(pcVar11);\n          local_10e3 = -(sVar12 == 9);\n        }\n        sVar13 = WriteBlobSignedLong(image,(local_114c->page).y);\n        sVar14 = WriteBlobSignedLong(image,(local_114c->page).x);\n        sVar15 = WriteBlobSignedLong(image,local_114c->rows + (local_114c->page).y);\n        sVar16 = WriteBlobSignedLong(image,local_114c->columns + (local_114c->page).x);\n        if ((local_114c->storage_class == PseudoClass) ||\n           (MVar17 = IsImageGray(local_114c), MVar17 != MagickFalse)) {\n          local_1134 = 1;\n          sVar7 = 1;\n        }\n        else {\n          local_1134 = (local_114c->colorspace == CMYKColorspace) + 3;\n          sVar7 = (local_114c->colorspace == CMYKColorspace) + 3;\n        }\n        sVar18 = WriteBlobShort(image,((sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2) -\n                                      (ushort)(local_113c == (Image *)0x0));\n        iVar2 = local_1128 + 1;\n        local_1144 = sVar18 + uVar10 + sVar13 + sVar14 + sVar15 + sVar16;\n        MVar34 = TellBlob(image);\n        *(int *)(memory + local_1128) = (int)MVar34;\n        *(int *)((int)memory + iVar2 * 8 + -4) = (int)((ulonglong)MVar34 >> 0x20);\n        iVar31 = 0;\n        do {\n          while (sVar13 = WriteBlobShort(image,(ushort)iVar31), psd_info->version == 1) {\n            iVar31 = iVar31 + 1;\n            sVar14 = WriteBlobLong(image,0);\n            local_1144 = local_1144 + sVar13 + sVar14;\n            if (iVar31 == local_1134) goto LAB_0025ff56;\n          }\n          iVar31 = iVar31 + 1;\n          sVar14 = WriteBlobLongLong(image,0);\n          local_1144 = local_1144 + sVar13 + sVar14;\n        } while (iVar31 != local_1134);\nLAB_0025ff56:\n        if (local_114c->alpha_trait != UndefinedPixelTrait) {\n          sVar13 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        if (local_113c != (Image *)0x0) {\n          sVar13 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        pcVar11 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar11 = "MIB8";\n        }\n        sVar13 = WriteBlobString(image,pcVar11);\n        switch(local_114c->compose) {\n        case ColorBurnCompositeOp:\n          pcVar11 = "idiv";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar11 = "div ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar11 = "colr";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "rloc";\n          }\n          break;\n        default:\n          pcVar11 = "norm";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar11 = "dark";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar11 = "diff";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar11 = "diss";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar11 = "smud";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar11 = "hLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar11 = "hMix";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar11 = "hue ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar11 = "lite";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar11 = "lbrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar11 = "lddg";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar11 = "lLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar11 = "lum ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar11 = "mul ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar11 = "over";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar11 = "pLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar11 = "sat ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar11 = "scrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar11 = "sLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar11 = "vLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLv";\n          }\n        }\n        sVar14 = WriteBlobString(image,pcVar11);\n        pcVar11 = GetImageArtifact(local_114c,"psd:layer.opacity");\n        if (pcVar11 == (char *)0x0) {\n          iVar31 = WriteBlobByte(image,0xff);\n        }\n        else {\n          lVar19 = strtol(pcVar11,(char **)0x0,10);\n          value = '\0';\n          if (0.0 < (float)lVar19) {\n            value = 0xff;\n            fVar5 = (float)lVar19 / DAT_002a7ff0;\n            if (fVar5 < DAT_002a7ff4) {\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }\n          }\n          iVar31 = WriteBlobByte(image,value);\n          ApplyPSDLayerOpacity(local_114c,(double)lVar19,MagickTrue,exception);\n        }\n        sVar15 = WriteBlobByte(image,'\0');\n        sVar16 = WriteBlobByte(image,(local_114c->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar18 = WriteBlobByte(image,'\0');\n        iVar31 = sVar18 + local_1144 + sVar13 + sVar14 + iVar31 + sVar15 + sVar16;\n        puVar29 = &DAT_0030c7e0;\n        pacVar32 = allowed;\n        for (iVar26 = 0x2d; iVar26 != 0; iVar26 = iVar26 + -1) {\n          *(undefined4 *)*pacVar32 = *puVar29;\n          puVar29 = puVar29 + (uint)bVar33 * -2 + 1;\n          pacVar32 = (char (*) [5])((int)pacVar32 + (uint)bVar33 * -8 + 4);\n        }\n        pSVar20 = GetImageProfile(local_114c,"psd:additional-info");\n        if (pSVar20 == (StringInfo *)0x0) {\nLAB_00260a9c:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar11 = GetImageOption(image_info,"psd:additional-info");\n          iVar26 = LocaleCompare(pcVar11,"all");\n          string_info = pSVar20;\n          if (iVar26 != 0) {\n            iVar26 = LocaleCompare(pcVar11,"selective");\n            if (iVar26 == 0) {\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar11 = GetImageProperty(local_114c,"label",exception);\n        if (pcVar11 == (char *)0x0) {\n          pcVar11 = layer_name;\n          FormatLocaleString(pcVar11,0x1000,"L%.20g",SUB84((double)iVar2,0),\n                             (int)((ulonglong)(double)iVar2 >> 0x20));\n        }\n        sVar12 = strlen(pcVar11);\n        uVar10 = sVar12 + 1;\n        if ((uVar10 & 3) != 0) {\n          uVar10 = (uVar10 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar28 = GetStringInfoLength(string_info);\n          uVar10 = uVar10 + sVar28;\n        }\n        if (local_113c == (Image *)0x0) {\n          sVar13 = WriteBlobLong(image,uVar10 + 8);\n          sVar14 = WriteBlobLong(image,0);\n          iVar31 = sVar13 + sVar14 + iVar31;\n        }\n        else {\n          sVar13 = WriteBlobLong(image,uVar10 + 0x1c);\n          if ((local_113c->compose != NoCompositeOp) &&\n             (local_114c->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_113c->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_113c->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar14 = WriteBlobLong(image,0x14);\n          sVar15 = WriteBlobSignedLong(image,(local_113c->page).y);\n          sVar16 = WriteBlobSignedLong(image,(local_113c->page).x);\n          sVar18 = WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows);\n          sVar22 = WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns);\n          sVar23 = WriteBlobByte(image,local_10e3);\n          sVar24 = WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02');\n          sVar25 = WriteBlobMSBShort(image,0);\n          iVar31 = iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +\n                   sVar25;\n        }\n        sVar13 = WriteBlobLong(image,0);\n        sVar12 = strlen(pcVar11);\n        if (sVar12 < 0x100) {\n          if (sVar12 == 0) {\n            sVar15 = WriteBlobByte(image,'\0');\n            local_113c = (Image *)0x3;\n          }\n          else {\n            sVar15 = WriteBlobByte(image,(uchar)sVar12);\n            sVar14 = WriteBlob(image,sVar12,pcVar11);\n            sVar15 = sVar15 + sVar14;\n            uVar10 = sVar12 + 1 & 3;\n            if (uVar10 == 0) goto LAB_00260559;\n            local_113c = (Image *)(4 - uVar10);\n          }\n          iVar26 = 0;\n          do {\n            iVar26 = iVar26 + 1;\n            sVar14 = WriteBlobByte(image,'\0');\n            sVar15 = sVar15 + sVar14;\n          } while (local_113c != (Image *)iVar26);\n        }\n        else {\n          sVar15 = WriteBlobByte(image,0xff);\n          sVar14 = WriteBlob(image,0xff,pcVar11);\n          sVar15 = sVar15 + sVar14;\n        }\nLAB_00260559:\n        uVar10 = sVar15 + sVar13 + iVar31;\n        if (string_info != (StringInfo *)0x0) {\n          puVar21 = GetStringInfoDatum(string_info);\n          sVar28 = GetStringInfoLength(string_info);\n          sVar13 = WriteBlob(image,sVar28,puVar21);\n          uVar10 = uVar10 + sVar13;\n        }\n        local_114c = GetNextImageInList(local_114c);\n        pMVar30 = memory;\n        pIVar9 = pIVar8;\n        local_1128 = iVar2;\n      } while (local_114c != (Image *)0x0);\n      do {\n        sVar28 = WritePSDChannels(psd_info,image_info,image,pIVar9,*pMVar30,MagickTrue,exception);\n        if (sVar28 == 0) {\n          MVar17 = MagickFalse;\n          local_113c = (Image *)uVar10;\n          goto LAB_0026060b;\n        }\n        uVar10 = uVar10 + sVar28;\n        pIVar9 = GetNextImageInList(pIVar9);\n        pMVar30 = pMVar30 + 1;\n        local_113c = (Image *)uVar10;\n      } while (pIVar9 != (Image *)0x0);\n    }\n    MVar17 = MagickTrue;\nLAB_0026060b:\n    if (layers_size != (size_t *)0x0) {\n      *layers_size = (size_t)local_113c;\n    }\n    pIVar9 = (Image *)((int)local_113c + 1U);\n    if ((uint)local_113c >> 1 == (int)local_113c + 1U >> 1) {\n      pIVar9 = local_113c;\n    }\n    MVar34 = TellBlob(image);\n    SeekBlob(image,offset,0);\n    if (psd_info->version == 1) {\n      WriteBlobLong(image,(uint)pIVar9);\n    }\n    else {\n      WriteBlobLongLong(image,ZEXT48(pIVar9));\n    }\n    SeekBlob(image,MVar34,0);\n    RelinquishMagickMemory(memory);\n    for (; pIVar8 != (Image *)0x0; pIVar8 = GetNextImageInList(pIVar8)) {\n      pcVar11 = GetImageArtifact(pIVar8,"psd:opacity-mask");\n      if (pcVar11 != (char *)0x0) {\n        DeleteImageRegistry(pcVar11);\n      }\n    }\n  }\n  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return MVar17;\n}\n\n" 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  int iVar3;\n  _Image *p_Var4;\n  float fVar5;\n  size_t sVar6;\n  uchar value;\n  short sVar7;\n  Image *pIVar8;\n  Image *pIVar9;\n  uint uVar10;\n  MagickOffsetType *memory;\n  char *pcVar11;\n  size_t sVar12;\n  ssize_t sVar13;\n  ssize_t sVar14;\n  ssize_t sVar15;\n  ssize_t sVar16;\n  MagickBooleanType MVar17;\n  ssize_t sVar18;\n  long lVar19;\n  StringInfo *pSVar20;\n  uchar *puVar21;\n  StringInfo *string_info;\n  ssize_t sVar22;\n  ssize_t sVar23;\n  ssize_t sVar24;\n  ssize_t sVar25;\n  int iVar26;\n  uint uVar27;\n  size_t sVar28;\n  undefined4 *puVar29;\n  MagickOffsetType *pMVar30;\n  int iVar31;\n  char (*pacVar32) [5];\n  int in_GS_OFFSET;\n  byte bVar33;\n  MagickOffsetType offset;\n  MagickOffsetType MVar34;\n  Image *local_114c;\n  int local_1144;\n  Image *local_113c;\n  size_t local_1134;\n  int local_1128;\n  MagickOffsetType size_offset;\n  byte local_10e3;\n  char allowed [36] [5];\n  char key [5];\n  char layer_name [4096];\n  \n  bVar33 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  pIVar8 = GetNextImageInList(image);\n  if (pIVar8 == (Image *)0x0) {\n    pIVar8 = 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  sVar28 = 0;\n  if (pIVar8 != (Image *)0x0) {\n    sVar28 = 0;\n    pIVar9 = pIVar8;\n    do {\n      sVar28 = sVar28 + 1;\n      pIVar9 = GetNextImageInList(pIVar9);\n    } while (pIVar9 != (Image *)0x0);\n  }\n  sVar6 = sVar28;\n  if (image->alpha_trait != UndefinedPixelTrait) {\n    sVar6 = -sVar28;\n  }\n  uVar10 = WriteBlobShort(image,(ushort)sVar6);\n  memory = (MagickOffsetType *)AcquireQuantumMemory(sVar28,8);\n  if (memory == (MagickOffsetType *)0x0) {\n    ThrowMagickException\n              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,\n               "MemoryAllocationFailed","`%s\'",0xd6,image->filename);\n    p_Var4 = (_Image *)image_info->adjoin;\n    pIVar8 = image;\n    while (pIVar9 = image, p_Var4 != (_Image *)0x0) {\n      p_Var4 = pIVar9->previous;\n      image = p_Var4;\n      pIVar8 = pIVar9;\n    }\n    MVar17 = MagickFalse;\n    CloseBlob(pIVar8);\n  }\n  else {\n    local_113c = (Image *)uVar10;\n    if (pIVar8 != (Image *)0x0) {\n      local_1128 = 0;\n      local_114c = pIVar8;\n      do {\n        pcVar11 = GetImageArtifact(local_114c,"psd:opacity-mask");\n        if (pcVar11 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = (Image *)0x0;\n        }\n        else {\n          local_113c = (Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception);\n          sVar12 = strlen(pcVar11);\n          local_10e3 = -(sVar12 == 9);\n        }\n        sVar13 = WriteBlobSignedLong(image,(local_114c->page).y);\n        sVar14 = WriteBlobSignedLong(image,(local_114c->page).x);\n        sVar15 = WriteBlobSignedLong(image,local_114c->rows + (local_114c->page).y);\n        sVar16 = WriteBlobSignedLong(image,local_114c->columns + (local_114c->page).x);\n        if ((local_114c->storage_class == PseudoClass) ||\n           (MVar17 = IsImageGray(local_114c), MVar17 != MagickFalse)) {\n          local_1134 = 1;\n          sVar7 = 1;\n        }\n        else {\n          local_1134 = (local_114c->colorspace == CMYKColorspace) + 3;\n          sVar7 = (local_114c->colorspace == CMYKColorspace) + 3;\n        }\n        sVar18 = WriteBlobShort(image,((sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2) -\n                                      (ushort)(local_113c == (Image *)0x0));\n        iVar2 = local_1128 + 1;\n        local_1144 = sVar18 + uVar10 + sVar13 + sVar14 + sVar15 + sVar16;\n        MVar34 = TellBlob(image);\n        *(int *)(memory + local_1128) = (int)MVar34;\n        *(int *)((int)memory + iVar2 * 8 + -4) = (int)((ulonglong)MVar34 >> 0x20);\n        iVar31 = 0;\n        do {\n          while (sVar13 = WriteBlobShort(image,(ushort)iVar31), psd_info->version == 1) {\n            iVar31 = iVar31 + 1;\n            sVar14 = WriteBlobLong(image,0);\n            local_1144 = local_1144 + sVar13 + sVar14;\n            if (iVar31 == local_1134) goto LAB_0025ff56;\n          }\n          iVar31 = iVar31 + 1;\n          sVar14 = WriteBlobLongLong(image,0);\n          local_1144 = local_1144 + sVar13 + sVar14;\n        } while (iVar31 != local_1134);\nLAB_0025ff56:\n        if (local_114c->alpha_trait != UndefinedPixelTrait) {\n          sVar13 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        if (local_113c != (Image *)0x0) {\n          sVar13 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        pcVar11 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar11 = "MIB8";\n        }\n        sVar13 = WriteBlobString(image,pcVar11);\n        switch(local_114c->compose) {\n        case ColorBurnCompositeOp:\n          pcVar11 = "idiv";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar11 = "div ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar11 = "colr";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "rloc";\n          }\n          break;\n        default:\n          pcVar11 = "norm";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar11 = "dark";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar11 = "diff";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar11 = "diss";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar11 = "smud";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar11 = "hLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar11 = "hMix";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar11 = "hue ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar11 = "lite";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar11 = "lbrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar11 = "lddg";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar11 = "lLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar11 = "lum ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar11 = "mul ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar11 = "over";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar11 = "pLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar11 = "sat ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar11 = "scrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar11 = "sLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar11 = "vLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLv";\n          }\n        }\n        sVar14 = WriteBlobString(image,pcVar11);\n        pcVar11 = GetImageArtifact(local_114c,"psd:layer.opacity");\n        if (pcVar11 == (char *)0x0) {\n          iVar31 = WriteBlobByte(image,0xff);\n        }\n        else {\n          lVar19 = strtol(pcVar11,(char **)0x0,10);\n          value = '\0';\n          if (0.0 < (float)lVar19) {\n            value = 0xff;\n            fVar5 = (float)lVar19 / DAT_002a7ff0;\n            if (fVar5 < DAT_002a7ff4) {\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }\n          }\n          iVar31 = WriteBlobByte(image,value);\n          ApplyPSDLayerOpacity(local_114c,(double)lVar19,MagickTrue,exception);\n        }\n        sVar15 = WriteBlobByte(image,'\0');\n        sVar16 = WriteBlobByte(image,(local_114c->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar18 = WriteBlobByte(image,'\0');\n        iVar31 = sVar18 + local_1144 + sVar13 + sVar14 + iVar31 + sVar15 + sVar16;\n        puVar29 = &DAT_0030c7e0;\n        pacVar32 = allowed;\n        for (iVar26 = 0x2d; iVar26 != 0; iVar26 = iVar26 + -1) {\n          *(undefined4 *)*pacVar32 = *puVar29;\n          puVar29 = puVar29 + (uint)bVar33 * -2 + 1;\n          pacVar32 = (char (*) [5])((int)pacVar32 + (uint)bVar33 * -8 + 4);\n        }\n        pSVar20 = GetImageProfile(local_114c,"psd:additional-info");\n        if (pSVar20 == (StringInfo *)0x0) {\nLAB_00260a9c:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar11 = GetImageOption(image_info,"psd:additional-info");\n          iVar26 = LocaleCompare(pcVar11,"all");\n          string_info = pSVar20;\n          if (iVar26 != 0) {\n            iVar26 = LocaleCompare(pcVar11,"selective");\n            if (iVar26 == 0) {\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar11 = GetImageProperty(local_114c,"label",exception);\n        if (pcVar11 == (char *)0x0) {\n          pcVar11 = layer_name;\n          FormatLocaleString(pcVar11,0x1000,"L%.20g",SUB84((double)iVar2,0),\n                             (int)((ulonglong)(double)iVar2 >> 0x20));\n        }\n        sVar12 = strlen(pcVar11);\n        uVar10 = sVar12 + 1;\n        if ((uVar10 & 3) != 0) {\n          uVar10 = (uVar10 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar28 = GetStringInfoLength(string_info);\n          uVar10 = uVar10 + sVar28;\n        }\n        if (local_113c == (Image *)0x0) {\n          sVar13 = WriteBlobLong(image,uVar10 + 8);\n          sVar14 = WriteBlobLong(image,0);\n          iVar31 = sVar13 + sVar14 + iVar31;\n        }\n        else {\n          sVar13 = WriteBlobLong(image,uVar10 + 0x1c);\n          if ((local_113c->compose != NoCompositeOp) &&\n             (local_114c->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_113c->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_113c->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar14 = WriteBlobLong(image,0x14);\n          sVar15 = WriteBlobSignedLong(image,(local_113c->page).y);\n          sVar16 = WriteBlobSignedLong(image,(local_113c->page).x);\n          sVar18 = WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows);\n          sVar22 = WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns);\n          sVar23 = WriteBlobByte(image,local_10e3);\n          sVar24 = WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02');\n          sVar25 = WriteBlobMSBShort(image,0);\n          iVar31 = iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +\n                   sVar25;\n        }\n        sVar13 = WriteBlobLong(image,0);\n        sVar12 = strlen(pcVar11);\n        if (sVar12 < 0x100) {\n          if (sVar12 == 0) {\n            sVar15 = WriteBlobByte(image,'\0');\n            local_113c = (Image *)0x3;\n          }\n          else {\n            sVar15 = WriteBlobByte(image,(uchar)sVar12);\n            sVar14 = WriteBlob(image,sVar12,pcVar11);\n            sVar15 = sVar15 + sVar14;\n            uVar10 = sVar12 + 1 & 3;\n            if (uVar10 == 0) goto LAB_00260559;\n            local_113c = (Image *)(4 - uVar10);\n          }\n          iVar26 = 0;\n          do {\n            iVar26 = iVar26 + 1;\n            sVar14 = WriteBlobByte(image,'\0');\n            sVar15 = sVar15 + sVar14;\n          } while (local_113c != (Image *)iVar26);\n        }\n        else {\n          sVar15 = WriteBlobByte(image,0xff);\n          sVar14 = WriteBlob(image,0xff,pcVar11);\n          sVar15 = sVar15 + sVar14;\n        }\nLAB_00260559:\n        uVar10 = sVar15 + sVar13 + iVar31;\n        if (string_info != (StringInfo *)0x0) {\n          puVar21 = GetStringInfoDatum(string_info);\n          sVar28 = GetStringInfoLength(string_info);\n          sVar13 = WriteBlob(image,sVar28,puVar21);\n          uVar10 = uVar10 + sVar13;\n        }\n        local_114c = GetNextImageInList(local_114c);\n        pMVar30 = memory;\n        pIVar9 = pIVar8;\n        local_1128 = iVar2;\n      } while (local_114c != (Image *)0x0);\n      do {\n        sVar28 = WritePSDChannels(psd_info,image_info,image,pIVar9,*pMVar30,MagickTrue,exception);\n        if (sVar28 == 0) {\n          MVar17 = MagickFalse;\n          local_113c = (Image *)uVar10;\n          goto LAB_0026060b;\n        }\n        uVar10 = uVar10 + sVar28;\n        pIVar9 = GetNextImageInList(pIVar9);\n        pMVar30 = pMVar30 + 1;\n        local_113c = (Image *)uVar10;\n      } while (pIVar9 != (Image *)0x0);\n    }\n    MVar17 = MagickTrue;\nLAB_0026060b:\n    if (layers_size != (size_t *)0x0) {\n      *layers_size = (size_t)local_113c;\n    }\n    pIVar9 = (Image *)((int)local_113c + 1U);\n    if ((uint)local_113c >> 1 == (int)local_113c + 1U >> 1) {\n      pIVar9 = local_113c;\n    }\n    MVar34 = TellBlob(image);\n    SeekBlob(image,offset,0);\n    if (psd_info->version == 1) {\n      WriteBlobLong(image,(uint)pIVar9);\n    }\n    else {\n      WriteBlobLongLong(image,ZEXT48(pIVar9));\n    }\n    SeekBlob(image,MVar34,0);\n    RelinquishMagickMemory(memory);\n    for (; pIVar8 != (Image *)0x0; pIVar8 = GetNextImageInList(pIVar8)) {\n      pcVar11 = GetImageArtifact(pIVar8,"psd:opacity-mask");\n      if (pcVar11 != (char *)0x0) {\n        DeleteImageRegistry(pcVar11);\n      }\n    }\n  }\n  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return MVar17;\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  int iVar3;\n  _Image *p_Var4;\n  float fVar5;\n  size_t sVar6;\n  uchar value;\n  short sVar7;\n  Image *pIVar8;\n  Image *pIVar9;\n  uint uVar10;\n  MagickOffsetType *memory;\n  char *pcVar11;\n  size_t sVar12;\n  ssize_t sVar13;\n  ssize_t sVar14;\n  ssize_t sVar15;\n  ssize_t sVar16;\n  MagickBooleanType MVar17;\n  ssize_t sVar18;\n  long lVar19;\n  StringInfo *pSVar20;\n  uchar *puVar21;\n  StringInfo *string_info;\n  ssize_t sVar22;\n  ssize_t sVar23;\n  ssize_t sVar24;\n  ssize_t sVar25;\n  int iVar26;\n  uint uVar27;\n  size_t sVar28;\n  undefined4 *puVar29;\n  MagickOffsetType *pMVar30;\n  int iVar31;\n  char (*pacVar32) [5];\n  int in_GS_OFFSET;\n  byte bVar33;\n  MagickOffsetType offset;\n  MagickOffsetType MVar34;\n  Image *local_114c;\n  int local_1144;\n  Image *local_113c;\n  size_t local_1134;\n  int local_1128;\n  MagickOffsetType size_offset;\n  byte local_10e3;\n  char allowed [36] [5];\n  char key [5];\n  char layer_name [4096];\n  \n  bVar33 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  pIVar8 = GetNextImageInList(image);\n  if (pIVar8 == (Image *)0x0) {\n    pIVar8 = 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  sVar28 = 0;\n  if (pIVar8 != (Image *)0x0) {\n    sVar28 = 0;\n    pIVar9 = pIVar8;\n    do {\n      sVar28 = sVar28 + 1;\n      pIVar9 = GetNextImageInList(pIVar9);\n    } while (pIVar9 != (Image *)0x0);\n  }\n  sVar6 = sVar28;\n  if (image->alpha_trait != UndefinedPixelTrait) {\n    sVar6 = -sVar28;\n  }\n  uVar10 = WriteBlobShort(image,(ushort)sVar6);\n  memory = (MagickOffsetType *)AcquireQuantumMemory(sVar28,8);\n  if (memory == (MagickOffsetType *)0x0) {\n    ThrowMagickException\n              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,\n               "MemoryAllocationFailed","`%s\'",0xd6,image->filename);\n    p_Var4 = (_Image *)image_info->adjoin;\n    pIVar8 = image;\n    while (pIVar9 = image, p_Var4 != (_Image *)0x0) {\n      p_Var4 = pIVar9->previous;\n      image = p_Var4;\n      pIVar8 = pIVar9;\n    }\n    MVar17 = MagickFalse;\n    CloseBlob(pIVar8);\n  }\n  else {\n    local_113c = (Image *)uVar10;\n    if (pIVar8 != (Image *)0x0) {\n      local_1128 = 0;\n      local_114c = pIVar8;\n      do {\n        pcVar11 = GetImageArtifact(local_114c,"psd:opacity-mask");\n        if (pcVar11 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = (Image *)0x0;\n        }\n        else {\n          local_113c = (Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception);\n          sVar12 = strlen(pcVar11);\n          local_10e3 = -(sVar12 == 9);\n        }\n        sVar13 = WriteBlobSignedLong(image,(local_114c->page).y);\n        sVar14 = WriteBlobSignedLong(image,(local_114c->page).x);\n        sVar15 = WriteBlobSignedLong(image,local_114c->rows + (local_114c->page).y);\n        sVar16 = WriteBlobSignedLong(image,local_114c->columns + (local_114c->page).x);\n        if ((local_114c->storage_class == PseudoClass) ||\n           (MVar17 = IsImageGray(local_114c), MVar17 != MagickFalse)) {\n          local_1134 = 1;\n          sVar7 = 1;\n        }\n        else {\n          local_1134 = (local_114c->colorspace == CMYKColorspace) + 3;\n          sVar7 = (local_114c->colorspace == CMYKColorspace) + 3;\n        }\n        sVar18 = WriteBlobShort(image,((sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2) -\n                                      (ushort)(local_113c == (Image *)0x0));\n        iVar2 = local_1128 + 1;\n        local_1144 = sVar18 + uVar10 + sVar13 + sVar14 + sVar15 + sVar16;\n        MVar34 = TellBlob(image);\n        *(int *)(memory + local_1128) = (int)MVar34;\n        *(int *)((int)memory + iVar2 * 8 + -4) = (int)((ulonglong)MVar34 >> 0x20);\n        iVar31 = 0;\n        do {\n          while (sVar13 = WriteBlobShort(image,(ushort)iVar31), psd_info->version == 1) {\n            iVar31 = iVar31 + 1;\n            sVar14 = WriteBlobLong(image,0);\n            local_1144 = local_1144 + sVar13 + sVar14;\n            if (iVar31 == local_1134) goto LAB_0025ff56;\n          }\n          iVar31 = iVar31 + 1;\n          sVar14 = WriteBlobLongLong(image,0);\n          local_1144 = local_1144 + sVar13 + sVar14;\n        } while (iVar31 != local_1134);\nLAB_0025ff56:\n        if (local_114c->alpha_trait != UndefinedPixelTrait) {\n          sVar13 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        if (local_113c != (Image *)0x0) {\n          sVar13 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        pcVar11 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar11 = "MIB8";\n        }\n        sVar13 = WriteBlobString(image,pcVar11);\n        switch(local_114c->compose) {\n        case ColorBurnCompositeOp:\n          pcVar11 = "idiv";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar11 = "div ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar11 = "colr";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "rloc";\n          }\n          break;\n        default:\n          pcVar11 = "norm";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar11 = "dark";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar11 = "diff";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar11 = "diss";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar11 = "smud";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar11 = "hLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar11 = "hMix";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar11 = "hue ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar11 = "lite";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar11 = "lbrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar11 = "lddg";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar11 = "lLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar11 = "lum ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar11 = "mul ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar11 = "over";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar11 = "pLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar11 = "sat ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar11 = "scrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar11 = "sLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar11 = "vLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLv";\n          }\n        }\n        sVar14 = WriteBlobString(image,pcVar11);\n        pcVar11 = GetImageArtifact(local_114c,"psd:layer.opacity");\n        if (pcVar11 == (char *)0x0) {\n          iVar31 = WriteBlobByte(image,0xff);\n        }\n        else {\n          lVar19 = strtol(pcVar11,(char **)0x0,10);\n          value = '\0';\n          if (0.0 < (float)lVar19) {\n            value = 0xff;\n            fVar5 = (float)lVar19 / DAT_002a7ff0;\n            if (fVar5 < DAT_002a7ff4) {\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }\n          }\n          iVar31 = WriteBlobByte(image,value);\n          ApplyPSDLayerOpacity(local_114c,(double)lVar19,MagickTrue,exception);\n        }\n        sVar15 = WriteBlobByte(image,'\0');\n        sVar16 = WriteBlobByte(image,(local_114c->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar18 = WriteBlobByte(image,'\0');\n        iVar31 = sVar18 + local_1144 + sVar13 + sVar14 + iVar31 + sVar15 + sVar16;\n        puVar29 = &DAT_0030c7e0;\n        pacVar32 = allowed;\n        for (iVar26 = 0x2d; iVar26 != 0; iVar26 = iVar26 + -1) {\n          *(undefined4 *)*pacVar32 = *puVar29;\n          puVar29 = puVar29 + (uint)bVar33 * -2 + 1;\n          pacVar32 = (char (*) [5])((int)pacVar32 + (uint)bVar33 * -8 + 4);\n        }\n        pSVar20 = GetImageProfile(local_114c,"psd:additional-info");\n        if (pSVar20 == (StringInfo *)0x0) {\nLAB_00260a9c:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar11 = GetImageOption(image_info,"psd:additional-info");\n          iVar26 = LocaleCompare(pcVar11,"all");\n          string_info = pSVar20;\n          if (iVar26 != 0) {\n            iVar26 = LocaleCompare(pcVar11,"selective");\n            if (iVar26 == 0) {\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar11 = GetImageProperty(local_114c,"label",exception);\n        if (pcVar11 == (char *)0x0) {\n          pcVar11 = layer_name;\n          FormatLocaleString(pcVar11,0x1000,"L%.20g",SUB84((double)iVar2,0),\n                             (int)((ulonglong)(double)iVar2 >> 0x20));\n        }\n        sVar12 = strlen(pcVar11);\n        uVar10 = sVar12 + 1;\n        if ((uVar10 & 3) != 0) {\n          uVar10 = (uVar10 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar28 = GetStringInfoLength(string_info);\n          uVar10 = uVar10 + sVar28;\n        }\n        if (local_113c == (Image *)0x0) {\n          sVar13 = WriteBlobLong(image,uVar10 + 8);\n          sVar14 = WriteBlobLong(image,0);\n          iVar31 = sVar13 + sVar14 + iVar31;\n        }\n        else {\n          sVar13 = WriteBlobLong(image,uVar10 + 0x1c);\n          if ((local_113c->compose != NoCompositeOp) &&\n             (local_114c->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_113c->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_113c->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar14 = WriteBlobLong(image,0x14);\n          sVar15 = WriteBlobSignedLong(image,(local_113c->page).y);\n          sVar16 = WriteBlobSignedLong(image,(local_113c->page).x);\n          sVar18 = WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows);\n          sVar22 = WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns);\n          sVar23 = WriteBlobByte(image,local_10e3);\n          sVar24 = WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02');\n          sVar25 = WriteBlobMSBShort(image,0);\n          iVar31 = iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +\n                   sVar25;\n        }\n        sVar13 = WriteBlobLong(image,0);\n        sVar12 = strlen(pcVar11);\n        if (sVar12 < 0x100) {\n          if (sVar12 == 0) {\n            sVar15 = WriteBlobByte(image,'\0');\n            local_113c = (Image *)0x3;\n          }\n          else {\n            sVar15 = WriteBlobByte(image,(uchar)sVar12);\n            sVar14 = WriteBlob(image,sVar12,pcVar11);\n            sVar15 = sVar15 + sVar14;\n            uVar10 = sVar12 + 1 & 3;\n            if (uVar10 == 0) goto LAB_00260559;\n            local_113c = (Image *)(4 - uVar10);\n          }\n          iVar26 = 0;\n          do {\n            iVar26 = iVar26 + 1;\n            sVar14 = WriteBlobByte(image,'\0');\n            sVar15 = sVar15 + sVar14;\n          } while (local_113c != (Image *)iVar26);\n        }\n        else {\n          sVar15 = WriteBlobByte(image,0xff);\n          sVar14 = WriteBlob(image,0xff,pcVar11);\n          sVar15 = sVar15 + sVar14;\n        }\nLAB_00260559:\n        uVar10 = sVar15 + sVar13 + iVar31;\n        if (string_info != (StringInfo *)0x0) {\n          puVar21 = GetStringInfoDatum(string_info);\n          sVar28 = GetStringInfoLength(string_info);\n          sVar13 = WriteBlob(image,sVar28,puVar21);\n          uVar10 = uVar10 + sVar13;\n        }\n        local_114c = GetNextImageInList(local_114c);\n        pMVar30 = memory;\n        pIVar9 = pIVar8;\n        local_1128 = iVar2;\n      } while (local_114c != (Image *)0x0);\n      do {\n        sVar28 = WritePSDChannels(psd_info,image_info,image,pIVar9,*pMVar30,MagickTrue,exception);\n        if (sVar28 == 0) {\n          MVar17 = MagickFalse;\n          local_113c = (Image *)uVar10;\n          goto LAB_0026060b;\n        }\n        uVar10 = uVar10 + sVar28;\n        pIVar9 = GetNextImageInList(pIVar9);\n        pMVar30 = pMVar30 + 1;\n        local_113c = (Image *)uVar10;\n      } while (pIVar9 != (Image *)0x0);\n    }\n    MVar17 = MagickTrue;\nLAB_0026060b:\n    if (layers_size != (size_t *)0x0) {\n      *layers_size = (size_t)local_113c;\n    }\n    pIVar9 = (Image *)((int)local_113c + 1U);\n    if ((uint)local_113c >> 1 == (int)local_113c + 1U >> 1) {\n      pIVar9 = local_113c;\n    }\n    MVar34 = TellBlob(image);\n    SeekBlob(image,offset,0);\n    if (psd_info->version == 1) {\n      WriteBlobLong(image,(uint)pIVar9);\n    }\n    else {\n      WriteBlobLongLong(image,ZEXT48(pIVar9));\n    }\n    SeekBlob(image,MVar34,0);\n    RelinquishMagickMemory(memory);\n    for (; pIVar8 != (Image *)0x0; pIVar8 = GetNextImageInList(pIVar8)) {\n      pcVar11 = GetImageArtifact(pIVar8,"psd:opacity-mask");\n      if (pcVar11 != (char *)0x0) {\n        DeleteImageRegistry(pcVar11);\n      }\n    }\n  }\n  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return MVar17;\n}" { (declaration "ssize_t *psVar1;" primitive_type (pointer_declarator "*psVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "_Image *p_Var4;" type_identifier (pointer_declarator "*p_Var4" * identifier) ;) (declaration "float fVar5;" primitive_type identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "uchar value;" type_identifier identifier ;) (declaration "short sVar7;" (sized_type_specifier "short" short) identifier ;) (declaration "Image *pIVar8;" type_identifier (pointer_declarator "*pIVar8" * identifier) ;) (declaration "Image *pIVar9;" type_identifier (pointer_declarator "*pIVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "MagickOffsetType *memory;" type_identifier (pointer_declarator "*memory" * identifier) ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "size_t sVar12;" primitive_type identifier ;) (declaration "ssize_t sVar13;" primitive_type identifier ;) (declaration "ssize_t sVar14;" primitive_type identifier ;) (declaration "ssize_t sVar15;" primitive_type identifier ;) (declaration "ssize_t sVar16;" primitive_type identifier ;) (declaration "MagickBooleanType MVar17;" type_identifier identifier ;) (declaration "ssize_t sVar18;" primitive_type identifier ;) (declaration "long lVar19;" (sized_type_specifier "long" long) identifier ;) (declaration "StringInfo *pSVar20;" type_identifier (pointer_declarator "*pSVar20" * identifier) ;) (declaration "uchar *puVar21;" type_identifier (pointer_declarator "*puVar21" * identifier) ;) (declaration "StringInfo *string_info;" type_identifier (pointer_declarator "*string_info" * identifier) ;) (declaration "ssize_t sVar22;" primitive_type identifier ;) (declaration "ssize_t sVar23;" primitive_type identifier ;) (declaration "ssize_t sVar24;" primitive_type identifier ;) (declaration "ssize_t sVar25;" primitive_type identifier ;) (declaration "int iVar26;" primitive_type identifier ;) (declaration "uint uVar27;" type_identifier identifier ;) (declaration "size_t sVar28;" primitive_type identifier ;) (declaration "undefined4 *puVar29;" type_identifier (pointer_declarator "*puVar29" * identifier) ;) (declaration "MagickOffsetType *pMVar30;" type_identifier (pointer_declarator "*pMVar30" * identifier) ;) (declaration "int iVar31;" primitive_type identifier ;) (declaration "char (*pacVar32) [5];" primitive_type (array_declarator "(*pacVar32) [5]" (parenthesized_declarator "(*pacVar32)" ( (pointer_declarator "*pacVar32" * identifier) )) [ number_literal ]) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar33;" type_identifier identifier ;) (declaration "MagickOffsetType offset;" type_identifier identifier ;) (declaration "MagickOffsetType MVar34;" type_identifier identifier ;) (declaration "Image *local_114c;" type_identifier (pointer_declarator "*local_114c" * identifier) ;) (declaration "int local_1144;" primitive_type identifier ;) (declaration "Image *local_113c;" type_identifier (pointer_declarator "*local_113c" * identifier) ;) (declaration "size_t local_1134;" primitive_type identifier ;) (declaration "int local_1128;" primitive_type identifier ;) (declaration "MagickOffsetType size_offset;" type_identifier identifier ;) (declaration "byte local_10e3;" 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 "bVar33 = 0;" (assignment_expression "bVar33 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar3 = *(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 "pIVar8 = GetNextImageInList(image);" (assignment_expression "pIVar8 = GetNextImageInList(image)" identifier = (call_expression "GetNextImageInList(image)" identifier (argument_list "(image)" ( identifier )))) ;) (if_statement "if (pIVar8 == (Image *)0x0) {\n    pIVar8 = image;\n  }" if (parenthesized_expression "(pIVar8 == (Image *)0x0)" ( (binary_expression "pIVar8 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pIVar8 = image;\n  }" { (expression_statement "pIVar8 = image;" (assignment_expression "pIVar8 = 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 "sVar28 = 0;" (assignment_expression "sVar28 = 0" identifier = number_literal) ;) (if_statement "if (pIVar8 != (Image *)0x0) {\n    sVar28 = 0;\n    pIVar9 = pIVar8;\n    do {\n      sVar28 = sVar28 + 1;\n      pIVar9 = GetNextImageInList(pIVar9);\n    } while (pIVar9 != (Image *)0x0);\n  }" if (parenthesized_expression "(pIVar8 != (Image *)0x0)" ( (binary_expression "pIVar8 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar28 = 0;\n    pIVar9 = pIVar8;\n    do {\n      sVar28 = sVar28 + 1;\n      pIVar9 = GetNextImageInList(pIVar9);\n    } while (pIVar9 != (Image *)0x0);\n  }" { (expression_statement "sVar28 = 0;" (assignment_expression "sVar28 = 0" identifier = number_literal) ;) (expression_statement "pIVar9 = pIVar8;" (assignment_expression "pIVar9 = pIVar8" identifier = identifier) ;) (do_statement "do {\n      sVar28 = sVar28 + 1;\n      pIVar9 = GetNextImageInList(pIVar9);\n    } while (pIVar9 != (Image *)0x0);" do (compound_statement "{\n      sVar28 = sVar28 + 1;\n      pIVar9 = GetNextImageInList(pIVar9);\n    }" { (expression_statement "sVar28 = sVar28 + 1;" (assignment_expression "sVar28 = sVar28 + 1" identifier = (binary_expression "sVar28 + 1" identifier + number_literal)) ;) (expression_statement "pIVar9 = GetNextImageInList(pIVar9);" (assignment_expression "pIVar9 = GetNextImageInList(pIVar9)" identifier = (call_expression "GetNextImageInList(pIVar9)" identifier (argument_list "(pIVar9)" ( identifier )))) ;) }) while (parenthesized_expression "(pIVar9 != (Image *)0x0)" ( (binary_expression "pIVar9 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "sVar6 = sVar28;" (assignment_expression "sVar6 = sVar28" identifier = identifier) ;) (if_statement "if (image->alpha_trait != UndefinedPixelTrait) {\n    sVar6 = -sVar28;\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    sVar6 = -sVar28;\n  }" { (expression_statement "sVar6 = -sVar28;" (assignment_expression "sVar6 = -sVar28" identifier = (unary_expression "-sVar28" - identifier)) ;) })) (expression_statement "uVar10 = WriteBlobShort(image,(ushort)sVar6);" (assignment_expression "uVar10 = WriteBlobShort(image,(ushort)sVar6)" identifier = (call_expression "WriteBlobShort(image,(ushort)sVar6)" identifier (argument_list "(image,(ushort)sVar6)" ( identifier , (cast_expression "(ushort)sVar6" ( (type_descriptor "ushort" type_identifier) ) identifier) )))) ;) (expression_statement "memory = (MagickOffsetType *)AcquireQuantumMemory(sVar28,8);" (assignment_expression "memory = (MagickOffsetType *)AcquireQuantumMemory(sVar28,8)" identifier = (cast_expression "(MagickOffsetType *)AcquireQuantumMemory(sVar28,8)" ( (type_descriptor "MagickOffsetType *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory(sVar28,8)" identifier (argument_list "(sVar28,8)" ( identifier , number_literal ))))) ;) (if_statement "if (memory == (MagickOffsetType *)0x0) {\n    ThrowMagickException\n              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,\n               "MemoryAllocationFailed","`%s\'",0xd6,image->filename);\n    p_Var4 = (_Image *)image_info->adjoin;\n    pIVar8 = image;\n    while (pIVar9 = image, p_Var4 != (_Image *)0x0) {\n      p_Var4 = pIVar9->previous;\n      image = p_Var4;\n      pIVar8 = pIVar9;\n    }\n    MVar17 = MagickFalse;\n    CloseBlob(pIVar8);\n  }\n  else {\n    local_113c = (Image *)uVar10;\n    if (pIVar8 != (Image *)0x0) {\n      local_1128 = 0;\n      local_114c = pIVar8;\n      do {\n        pcVar11 = GetImageArtifact(local_114c,"psd:opacity-mask");\n        if (pcVar11 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = (Image *)0x0;\n        }\n        else {\n          local_113c = (Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception);\n          sVar12 = strlen(pcVar11);\n          local_10e3 = -(sVar12 == 9);\n        }\n        sVar13 = WriteBlobSignedLong(image,(local_114c->page).y);\n        sVar14 = WriteBlobSignedLong(image,(local_114c->page).x);\n        sVar15 = WriteBlobSignedLong(image,local_114c->rows + (local_114c->page).y);\n        sVar16 = WriteBlobSignedLong(image,local_114c->columns + (local_114c->page).x);\n        if ((local_114c->storage_class == PseudoClass) ||\n           (MVar17 = IsImageGray(local_114c), MVar17 != MagickFalse)) {\n          local_1134 = 1;\n          sVar7 = 1;\n        }\n        else {\n          local_1134 = (local_114c->colorspace == CMYKColorspace) + 3;\n          sVar7 = (local_114c->colorspace == CMYKColorspace) + 3;\n        }\n        sVar18 = WriteBlobShort(image,((sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2) -\n                                      (ushort)(local_113c == (Image *)0x0));\n        iVar2 = local_1128 + 1;\n        local_1144 = sVar18 + uVar10 + sVar13 + sVar14 + sVar15 + sVar16;\n        MVar34 = TellBlob(image);\n        *(int *)(memory + local_1128) = (int)MVar34;\n        *(int *)((int)memory + iVar2 * 8 + -4) = (int)((ulonglong)MVar34 >> 0x20);\n        iVar31 = 0;\n        do {\n          while (sVar13 = WriteBlobShort(image,(ushort)iVar31), psd_info->version == 1) {\n            iVar31 = iVar31 + 1;\n            sVar14 = WriteBlobLong(image,0);\n            local_1144 = local_1144 + sVar13 + sVar14;\n            if (iVar31 == local_1134) goto LAB_0025ff56;\n          }\n          iVar31 = iVar31 + 1;\n          sVar14 = WriteBlobLongLong(image,0);\n          local_1144 = local_1144 + sVar13 + sVar14;\n        } while (iVar31 != local_1134);\nLAB_0025ff56:\n        if (local_114c->alpha_trait != UndefinedPixelTrait) {\n          sVar13 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        if (local_113c != (Image *)0x0) {\n          sVar13 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        pcVar11 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar11 = "MIB8";\n        }\n        sVar13 = WriteBlobString(image,pcVar11);\n        switch(local_114c->compose) {\n        case ColorBurnCompositeOp:\n          pcVar11 = "idiv";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar11 = "div ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar11 = "colr";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "rloc";\n          }\n          break;\n        default:\n          pcVar11 = "norm";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar11 = "dark";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar11 = "diff";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar11 = "diss";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar11 = "smud";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar11 = "hLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar11 = "hMix";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar11 = "hue ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar11 = "lite";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar11 = "lbrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar11 = "lddg";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar11 = "lLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar11 = "lum ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar11 = "mul ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar11 = "over";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar11 = "pLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar11 = "sat ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar11 = "scrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar11 = "sLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar11 = "vLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLv";\n          }\n        }\n        sVar14 = WriteBlobString(image,pcVar11);\n        pcVar11 = GetImageArtifact(local_114c,"psd:layer.opacity");\n        if (pcVar11 == (char *)0x0) {\n          iVar31 = WriteBlobByte(image,0xff);\n        }\n        else {\n          lVar19 = strtol(pcVar11,(char **)0x0,10);\n          value = '\0';\n          if (0.0 < (float)lVar19) {\n            value = 0xff;\n            fVar5 = (float)lVar19 / DAT_002a7ff0;\n            if (fVar5 < DAT_002a7ff4) {\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }\n          }\n          iVar31 = WriteBlobByte(image,value);\n          ApplyPSDLayerOpacity(local_114c,(double)lVar19,MagickTrue,exception);\n        }\n        sVar15 = WriteBlobByte(image,'\0');\n        sVar16 = WriteBlobByte(image,(local_114c->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar18 = WriteBlobByte(image,'\0');\n        iVar31 = sVar18 + local_1144 + sVar13 + sVar14 + iVar31 + sVar15 + sVar16;\n        puVar29 = &DAT_0030c7e0;\n        pacVar32 = allowed;\n        for (iVar26 = 0x2d; iVar26 != 0; iVar26 = iVar26 + -1) {\n          *(undefined4 *)*pacVar32 = *puVar29;\n          puVar29 = puVar29 + (uint)bVar33 * -2 + 1;\n          pacVar32 = (char (*) [5])((int)pacVar32 + (uint)bVar33 * -8 + 4);\n        }\n        pSVar20 = GetImageProfile(local_114c,"psd:additional-info");\n        if (pSVar20 == (StringInfo *)0x0) {\nLAB_00260a9c:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar11 = GetImageOption(image_info,"psd:additional-info");\n          iVar26 = LocaleCompare(pcVar11,"all");\n          string_info = pSVar20;\n          if (iVar26 != 0) {\n            iVar26 = LocaleCompare(pcVar11,"selective");\n            if (iVar26 == 0) {\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar11 = GetImageProperty(local_114c,"label",exception);\n        if (pcVar11 == (char *)0x0) {\n          pcVar11 = layer_name;\n          FormatLocaleString(pcVar11,0x1000,"L%.20g",SUB84((double)iVar2,0),\n                             (int)((ulonglong)(double)iVar2 >> 0x20));\n        }\n        sVar12 = strlen(pcVar11);\n        uVar10 = sVar12 + 1;\n        if ((uVar10 & 3) != 0) {\n          uVar10 = (uVar10 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar28 = GetStringInfoLength(string_info);\n          uVar10 = uVar10 + sVar28;\n        }\n        if (local_113c == (Image *)0x0) {\n          sVar13 = WriteBlobLong(image,uVar10 + 8);\n          sVar14 = WriteBlobLong(image,0);\n          iVar31 = sVar13 + sVar14 + iVar31;\n        }\n        else {\n          sVar13 = WriteBlobLong(image,uVar10 + 0x1c);\n          if ((local_113c->compose != NoCompositeOp) &&\n             (local_114c->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_113c->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_113c->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar14 = WriteBlobLong(image,0x14);\n          sVar15 = WriteBlobSignedLong(image,(local_113c->page).y);\n          sVar16 = WriteBlobSignedLong(image,(local_113c->page).x);\n          sVar18 = WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows);\n          sVar22 = WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns);\n          sVar23 = WriteBlobByte(image,local_10e3);\n          sVar24 = WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02');\n          sVar25 = WriteBlobMSBShort(image,0);\n          iVar31 = iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +\n                   sVar25;\n        }\n        sVar13 = WriteBlobLong(image,0);\n        sVar12 = strlen(pcVar11);\n        if (sVar12 < 0x100) {\n          if (sVar12 == 0) {\n            sVar15 = WriteBlobByte(image,'\0');\n            local_113c = (Image *)0x3;\n          }\n          else {\n            sVar15 = WriteBlobByte(image,(uchar)sVar12);\n            sVar14 = WriteBlob(image,sVar12,pcVar11);\n            sVar15 = sVar15 + sVar14;\n            uVar10 = sVar12 + 1 & 3;\n            if (uVar10 == 0) goto LAB_00260559;\n            local_113c = (Image *)(4 - uVar10);\n          }\n          iVar26 = 0;\n          do {\n            iVar26 = iVar26 + 1;\n            sVar14 = WriteBlobByte(image,'\0');\n            sVar15 = sVar15 + sVar14;\n          } while (local_113c != (Image *)iVar26);\n        }\n        else {\n          sVar15 = WriteBlobByte(image,0xff);\n          sVar14 = WriteBlob(image,0xff,pcVar11);\n          sVar15 = sVar15 + sVar14;\n        }\nLAB_00260559:\n        uVar10 = sVar15 + sVar13 + iVar31;\n        if (string_info != (StringInfo *)0x0) {\n          puVar21 = GetStringInfoDatum(string_info);\n          sVar28 = GetStringInfoLength(string_info);\n          sVar13 = WriteBlob(image,sVar28,puVar21);\n          uVar10 = uVar10 + sVar13;\n        }\n        local_114c = GetNextImageInList(local_114c);\n        pMVar30 = memory;\n        pIVar9 = pIVar8;\n        local_1128 = iVar2;\n      } while (local_114c != (Image *)0x0);\n      do {\n        sVar28 = WritePSDChannels(psd_info,image_info,image,pIVar9,*pMVar30,MagickTrue,exception);\n        if (sVar28 == 0) {\n          MVar17 = MagickFalse;\n          local_113c = (Image *)uVar10;\n          goto LAB_0026060b;\n        }\n        uVar10 = uVar10 + sVar28;\n        pIVar9 = GetNextImageInList(pIVar9);\n        pMVar30 = pMVar30 + 1;\n        local_113c = (Image *)uVar10;\n      } while (pIVar9 != (Image *)0x0);\n    }\n    MVar17 = MagickTrue;\nLAB_0026060b:\n    if (layers_size != (size_t *)0x0) {\n      *layers_size = (size_t)local_113c;\n    }\n    pIVar9 = (Image *)((int)local_113c + 1U);\n    if ((uint)local_113c >> 1 == (int)local_113c + 1U >> 1) {\n      pIVar9 = local_113c;\n    }\n    MVar34 = TellBlob(image);\n    SeekBlob(image,offset,0);\n    if (psd_info->version == 1) {\n      WriteBlobLong(image,(uint)pIVar9);\n    }\n    else {\n      WriteBlobLongLong(image,ZEXT48(pIVar9));\n    }\n    SeekBlob(image,MVar34,0);\n    RelinquishMagickMemory(memory);\n    for (; pIVar8 != (Image *)0x0; pIVar8 = GetNextImageInList(pIVar8)) {\n      pcVar11 = GetImageArtifact(pIVar8,"psd:opacity-mask");\n      if (pcVar11 != (char *)0x0) {\n        DeleteImageRegistry(pcVar11);\n      }\n    }\n  }" if (parenthesized_expression "(memory == (MagickOffsetType *)0x0)" ( (binary_expression "memory == (MagickOffsetType *)0x0" identifier == (cast_expression "(MagickOffsetType *)0x0" ( (type_descriptor "MagickOffsetType *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ThrowMagickException\n              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,\n               "MemoryAllocationFailed","`%s\'",0xd6,image->filename);\n    p_Var4 = (_Image *)image_info->adjoin;\n    pIVar8 = image;\n    while (pIVar9 = image, p_Var4 != (_Image *)0x0) {\n      p_Var4 = pIVar9->previous;\n      image = p_Var4;\n      pIVar8 = pIVar9;\n    }\n    MVar17 = MagickFalse;\n    CloseBlob(pIVar8);\n  }" { (expression_statement "ThrowMagickException\n              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,\n               "MemoryAllocationFailed","`%s\'",0xd6,image->filename);" (call_expression "ThrowMagickException\n              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,\n               "MemoryAllocationFailed","`%s\'",0xd6,image->filename)" identifier (argument_list "(exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,\n               "MemoryAllocationFailed","`%s\'",0xd6,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_Var4 = (_Image *)image_info->adjoin;" (assignment_expression "p_Var4 = (_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 "pIVar8 = image;" (assignment_expression "pIVar8 = image" identifier = identifier) ;) (while_statement "while (pIVar9 = image, p_Var4 != (_Image *)0x0) {\n      p_Var4 = pIVar9->previous;\n      image = p_Var4;\n      pIVar8 = pIVar9;\n    }" while (parenthesized_expression "(pIVar9 = image, p_Var4 != (_Image *)0x0)" ( (comma_expression "pIVar9 = image, p_Var4 != (_Image *)0x0" (assignment_expression "pIVar9 = image" identifier = identifier) , (binary_expression "p_Var4 != (_Image *)0x0" identifier != (cast_expression "(_Image *)0x0" ( (type_descriptor "_Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      p_Var4 = pIVar9->previous;\n      image = p_Var4;\n      pIVar8 = pIVar9;\n    }" { (expression_statement "p_Var4 = pIVar9->previous;" (assignment_expression "p_Var4 = pIVar9->previous" identifier = (field_expression "pIVar9->previous" identifier -> field_identifier)) ;) (expression_statement "image = p_Var4;" (assignment_expression "image = p_Var4" identifier = identifier) ;) (expression_statement "pIVar8 = pIVar9;" (assignment_expression "pIVar8 = pIVar9" identifier = identifier) ;) })) (expression_statement "MVar17 = MagickFalse;" (assignment_expression "MVar17 = MagickFalse" identifier = identifier) ;) (expression_statement "CloseBlob(pIVar8);" (call_expression "CloseBlob(pIVar8)" identifier (argument_list "(pIVar8)" ( identifier ))) ;) }) (else_clause "else {\n    local_113c = (Image *)uVar10;\n    if (pIVar8 != (Image *)0x0) {\n      local_1128 = 0;\n      local_114c = pIVar8;\n      do {\n        pcVar11 = GetImageArtifact(local_114c,"psd:opacity-mask");\n        if (pcVar11 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = (Image *)0x0;\n        }\n        else {\n          local_113c = (Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception);\n          sVar12 = strlen(pcVar11);\n          local_10e3 = -(sVar12 == 9);\n        }\n        sVar13 = WriteBlobSignedLong(image,(local_114c->page).y);\n        sVar14 = WriteBlobSignedLong(image,(local_114c->page).x);\n        sVar15 = WriteBlobSignedLong(image,local_114c->rows + (local_114c->page).y);\n        sVar16 = WriteBlobSignedLong(image,local_114c->columns + (local_114c->page).x);\n        if ((local_114c->storage_class == PseudoClass) ||\n           (MVar17 = IsImageGray(local_114c), MVar17 != MagickFalse)) {\n          local_1134 = 1;\n          sVar7 = 1;\n        }\n        else {\n          local_1134 = (local_114c->colorspace == CMYKColorspace) + 3;\n          sVar7 = (local_114c->colorspace == CMYKColorspace) + 3;\n        }\n        sVar18 = WriteBlobShort(image,((sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2) -\n                                      (ushort)(local_113c == (Image *)0x0));\n        iVar2 = local_1128 + 1;\n        local_1144 = sVar18 + uVar10 + sVar13 + sVar14 + sVar15 + sVar16;\n        MVar34 = TellBlob(image);\n        *(int *)(memory + local_1128) = (int)MVar34;\n        *(int *)((int)memory + iVar2 * 8 + -4) = (int)((ulonglong)MVar34 >> 0x20);\n        iVar31 = 0;\n        do {\n          while (sVar13 = WriteBlobShort(image,(ushort)iVar31), psd_info->version == 1) {\n            iVar31 = iVar31 + 1;\n            sVar14 = WriteBlobLong(image,0);\n            local_1144 = local_1144 + sVar13 + sVar14;\n            if (iVar31 == local_1134) goto LAB_0025ff56;\n          }\n          iVar31 = iVar31 + 1;\n          sVar14 = WriteBlobLongLong(image,0);\n          local_1144 = local_1144 + sVar13 + sVar14;\n        } while (iVar31 != local_1134);\nLAB_0025ff56:\n        if (local_114c->alpha_trait != UndefinedPixelTrait) {\n          sVar13 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        if (local_113c != (Image *)0x0) {\n          sVar13 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        pcVar11 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar11 = "MIB8";\n        }\n        sVar13 = WriteBlobString(image,pcVar11);\n        switch(local_114c->compose) {\n        case ColorBurnCompositeOp:\n          pcVar11 = "idiv";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar11 = "div ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar11 = "colr";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "rloc";\n          }\n          break;\n        default:\n          pcVar11 = "norm";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar11 = "dark";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar11 = "diff";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar11 = "diss";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar11 = "smud";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar11 = "hLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar11 = "hMix";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar11 = "hue ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar11 = "lite";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar11 = "lbrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar11 = "lddg";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar11 = "lLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar11 = "lum ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar11 = "mul ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar11 = "over";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar11 = "pLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar11 = "sat ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar11 = "scrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar11 = "sLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar11 = "vLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLv";\n          }\n        }\n        sVar14 = WriteBlobString(image,pcVar11);\n        pcVar11 = GetImageArtifact(local_114c,"psd:layer.opacity");\n        if (pcVar11 == (char *)0x0) {\n          iVar31 = WriteBlobByte(image,0xff);\n        }\n        else {\n          lVar19 = strtol(pcVar11,(char **)0x0,10);\n          value = '\0';\n          if (0.0 < (float)lVar19) {\n            value = 0xff;\n            fVar5 = (float)lVar19 / DAT_002a7ff0;\n            if (fVar5 < DAT_002a7ff4) {\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }\n          }\n          iVar31 = WriteBlobByte(image,value);\n          ApplyPSDLayerOpacity(local_114c,(double)lVar19,MagickTrue,exception);\n        }\n        sVar15 = WriteBlobByte(image,'\0');\n        sVar16 = WriteBlobByte(image,(local_114c->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar18 = WriteBlobByte(image,'\0');\n        iVar31 = sVar18 + local_1144 + sVar13 + sVar14 + iVar31 + sVar15 + sVar16;\n        puVar29 = &DAT_0030c7e0;\n        pacVar32 = allowed;\n        for (iVar26 = 0x2d; iVar26 != 0; iVar26 = iVar26 + -1) {\n          *(undefined4 *)*pacVar32 = *puVar29;\n          puVar29 = puVar29 + (uint)bVar33 * -2 + 1;\n          pacVar32 = (char (*) [5])((int)pacVar32 + (uint)bVar33 * -8 + 4);\n        }\n        pSVar20 = GetImageProfile(local_114c,"psd:additional-info");\n        if (pSVar20 == (StringInfo *)0x0) {\nLAB_00260a9c:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar11 = GetImageOption(image_info,"psd:additional-info");\n          iVar26 = LocaleCompare(pcVar11,"all");\n          string_info = pSVar20;\n          if (iVar26 != 0) {\n            iVar26 = LocaleCompare(pcVar11,"selective");\n            if (iVar26 == 0) {\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar11 = GetImageProperty(local_114c,"label",exception);\n        if (pcVar11 == (char *)0x0) {\n          pcVar11 = layer_name;\n          FormatLocaleString(pcVar11,0x1000,"L%.20g",SUB84((double)iVar2,0),\n                             (int)((ulonglong)(double)iVar2 >> 0x20));\n        }\n        sVar12 = strlen(pcVar11);\n        uVar10 = sVar12 + 1;\n        if ((uVar10 & 3) != 0) {\n          uVar10 = (uVar10 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar28 = GetStringInfoLength(string_info);\n          uVar10 = uVar10 + sVar28;\n        }\n        if (local_113c == (Image *)0x0) {\n          sVar13 = WriteBlobLong(image,uVar10 + 8);\n          sVar14 = WriteBlobLong(image,0);\n          iVar31 = sVar13 + sVar14 + iVar31;\n        }\n        else {\n          sVar13 = WriteBlobLong(image,uVar10 + 0x1c);\n          if ((local_113c->compose != NoCompositeOp) &&\n             (local_114c->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_113c->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_113c->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar14 = WriteBlobLong(image,0x14);\n          sVar15 = WriteBlobSignedLong(image,(local_113c->page).y);\n          sVar16 = WriteBlobSignedLong(image,(local_113c->page).x);\n          sVar18 = WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows);\n          sVar22 = WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns);\n          sVar23 = WriteBlobByte(image,local_10e3);\n          sVar24 = WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02');\n          sVar25 = WriteBlobMSBShort(image,0);\n          iVar31 = iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +\n                   sVar25;\n        }\n        sVar13 = WriteBlobLong(image,0);\n        sVar12 = strlen(pcVar11);\n        if (sVar12 < 0x100) {\n          if (sVar12 == 0) {\n            sVar15 = WriteBlobByte(image,'\0');\n            local_113c = (Image *)0x3;\n          }\n          else {\n            sVar15 = WriteBlobByte(image,(uchar)sVar12);\n            sVar14 = WriteBlob(image,sVar12,pcVar11);\n            sVar15 = sVar15 + sVar14;\n            uVar10 = sVar12 + 1 & 3;\n            if (uVar10 == 0) goto LAB_00260559;\n            local_113c = (Image *)(4 - uVar10);\n          }\n          iVar26 = 0;\n          do {\n            iVar26 = iVar26 + 1;\n            sVar14 = WriteBlobByte(image,'\0');\n            sVar15 = sVar15 + sVar14;\n          } while (local_113c != (Image *)iVar26);\n        }\n        else {\n          sVar15 = WriteBlobByte(image,0xff);\n          sVar14 = WriteBlob(image,0xff,pcVar11);\n          sVar15 = sVar15 + sVar14;\n        }\nLAB_00260559:\n        uVar10 = sVar15 + sVar13 + iVar31;\n        if (string_info != (StringInfo *)0x0) {\n          puVar21 = GetStringInfoDatum(string_info);\n          sVar28 = GetStringInfoLength(string_info);\n          sVar13 = WriteBlob(image,sVar28,puVar21);\n          uVar10 = uVar10 + sVar13;\n        }\n        local_114c = GetNextImageInList(local_114c);\n        pMVar30 = memory;\n        pIVar9 = pIVar8;\n        local_1128 = iVar2;\n      } while (local_114c != (Image *)0x0);\n      do {\n        sVar28 = WritePSDChannels(psd_info,image_info,image,pIVar9,*pMVar30,MagickTrue,exception);\n        if (sVar28 == 0) {\n          MVar17 = MagickFalse;\n          local_113c = (Image *)uVar10;\n          goto LAB_0026060b;\n        }\n        uVar10 = uVar10 + sVar28;\n        pIVar9 = GetNextImageInList(pIVar9);\n        pMVar30 = pMVar30 + 1;\n        local_113c = (Image *)uVar10;\n      } while (pIVar9 != (Image *)0x0);\n    }\n    MVar17 = MagickTrue;\nLAB_0026060b:\n    if (layers_size != (size_t *)0x0) {\n      *layers_size = (size_t)local_113c;\n    }\n    pIVar9 = (Image *)((int)local_113c + 1U);\n    if ((uint)local_113c >> 1 == (int)local_113c + 1U >> 1) {\n      pIVar9 = local_113c;\n    }\n    MVar34 = TellBlob(image);\n    SeekBlob(image,offset,0);\n    if (psd_info->version == 1) {\n      WriteBlobLong(image,(uint)pIVar9);\n    }\n    else {\n      WriteBlobLongLong(image,ZEXT48(pIVar9));\n    }\n    SeekBlob(image,MVar34,0);\n    RelinquishMagickMemory(memory);\n    for (; pIVar8 != (Image *)0x0; pIVar8 = GetNextImageInList(pIVar8)) {\n      pcVar11 = GetImageArtifact(pIVar8,"psd:opacity-mask");\n      if (pcVar11 != (char *)0x0) {\n        DeleteImageRegistry(pcVar11);\n      }\n    }\n  }" else (compound_statement "{\n    local_113c = (Image *)uVar10;\n    if (pIVar8 != (Image *)0x0) {\n      local_1128 = 0;\n      local_114c = pIVar8;\n      do {\n        pcVar11 = GetImageArtifact(local_114c,"psd:opacity-mask");\n        if (pcVar11 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = (Image *)0x0;\n        }\n        else {\n          local_113c = (Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception);\n          sVar12 = strlen(pcVar11);\n          local_10e3 = -(sVar12 == 9);\n        }\n        sVar13 = WriteBlobSignedLong(image,(local_114c->page).y);\n        sVar14 = WriteBlobSignedLong(image,(local_114c->page).x);\n        sVar15 = WriteBlobSignedLong(image,local_114c->rows + (local_114c->page).y);\n        sVar16 = WriteBlobSignedLong(image,local_114c->columns + (local_114c->page).x);\n        if ((local_114c->storage_class == PseudoClass) ||\n           (MVar17 = IsImageGray(local_114c), MVar17 != MagickFalse)) {\n          local_1134 = 1;\n          sVar7 = 1;\n        }\n        else {\n          local_1134 = (local_114c->colorspace == CMYKColorspace) + 3;\n          sVar7 = (local_114c->colorspace == CMYKColorspace) + 3;\n        }\n        sVar18 = WriteBlobShort(image,((sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2) -\n                                      (ushort)(local_113c == (Image *)0x0));\n        iVar2 = local_1128 + 1;\n        local_1144 = sVar18 + uVar10 + sVar13 + sVar14 + sVar15 + sVar16;\n        MVar34 = TellBlob(image);\n        *(int *)(memory + local_1128) = (int)MVar34;\n        *(int *)((int)memory + iVar2 * 8 + -4) = (int)((ulonglong)MVar34 >> 0x20);\n        iVar31 = 0;\n        do {\n          while (sVar13 = WriteBlobShort(image,(ushort)iVar31), psd_info->version == 1) {\n            iVar31 = iVar31 + 1;\n            sVar14 = WriteBlobLong(image,0);\n            local_1144 = local_1144 + sVar13 + sVar14;\n            if (iVar31 == local_1134) goto LAB_0025ff56;\n          }\n          iVar31 = iVar31 + 1;\n          sVar14 = WriteBlobLongLong(image,0);\n          local_1144 = local_1144 + sVar13 + sVar14;\n        } while (iVar31 != local_1134);\nLAB_0025ff56:\n        if (local_114c->alpha_trait != UndefinedPixelTrait) {\n          sVar13 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        if (local_113c != (Image *)0x0) {\n          sVar13 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        pcVar11 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar11 = "MIB8";\n        }\n        sVar13 = WriteBlobString(image,pcVar11);\n        switch(local_114c->compose) {\n        case ColorBurnCompositeOp:\n          pcVar11 = "idiv";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar11 = "div ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar11 = "colr";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "rloc";\n          }\n          break;\n        default:\n          pcVar11 = "norm";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar11 = "dark";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar11 = "diff";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar11 = "diss";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar11 = "smud";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar11 = "hLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar11 = "hMix";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar11 = "hue ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar11 = "lite";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar11 = "lbrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar11 = "lddg";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar11 = "lLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar11 = "lum ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar11 = "mul ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar11 = "over";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar11 = "pLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar11 = "sat ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar11 = "scrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar11 = "sLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar11 = "vLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLv";\n          }\n        }\n        sVar14 = WriteBlobString(image,pcVar11);\n        pcVar11 = GetImageArtifact(local_114c,"psd:layer.opacity");\n        if (pcVar11 == (char *)0x0) {\n          iVar31 = WriteBlobByte(image,0xff);\n        }\n        else {\n          lVar19 = strtol(pcVar11,(char **)0x0,10);\n          value = '\0';\n          if (0.0 < (float)lVar19) {\n            value = 0xff;\n            fVar5 = (float)lVar19 / DAT_002a7ff0;\n            if (fVar5 < DAT_002a7ff4) {\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }\n          }\n          iVar31 = WriteBlobByte(image,value);\n          ApplyPSDLayerOpacity(local_114c,(double)lVar19,MagickTrue,exception);\n        }\n        sVar15 = WriteBlobByte(image,'\0');\n        sVar16 = WriteBlobByte(image,(local_114c->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar18 = WriteBlobByte(image,'\0');\n        iVar31 = sVar18 + local_1144 + sVar13 + sVar14 + iVar31 + sVar15 + sVar16;\n        puVar29 = &DAT_0030c7e0;\n        pacVar32 = allowed;\n        for (iVar26 = 0x2d; iVar26 != 0; iVar26 = iVar26 + -1) {\n          *(undefined4 *)*pacVar32 = *puVar29;\n          puVar29 = puVar29 + (uint)bVar33 * -2 + 1;\n          pacVar32 = (char (*) [5])((int)pacVar32 + (uint)bVar33 * -8 + 4);\n        }\n        pSVar20 = GetImageProfile(local_114c,"psd:additional-info");\n        if (pSVar20 == (StringInfo *)0x0) {\nLAB_00260a9c:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar11 = GetImageOption(image_info,"psd:additional-info");\n          iVar26 = LocaleCompare(pcVar11,"all");\n          string_info = pSVar20;\n          if (iVar26 != 0) {\n            iVar26 = LocaleCompare(pcVar11,"selective");\n            if (iVar26 == 0) {\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar11 = GetImageProperty(local_114c,"label",exception);\n        if (pcVar11 == (char *)0x0) {\n          pcVar11 = layer_name;\n          FormatLocaleString(pcVar11,0x1000,"L%.20g",SUB84((double)iVar2,0),\n                             (int)((ulonglong)(double)iVar2 >> 0x20));\n        }\n        sVar12 = strlen(pcVar11);\n        uVar10 = sVar12 + 1;\n        if ((uVar10 & 3) != 0) {\n          uVar10 = (uVar10 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar28 = GetStringInfoLength(string_info);\n          uVar10 = uVar10 + sVar28;\n        }\n        if (local_113c == (Image *)0x0) {\n          sVar13 = WriteBlobLong(image,uVar10 + 8);\n          sVar14 = WriteBlobLong(image,0);\n          iVar31 = sVar13 + sVar14 + iVar31;\n        }\n        else {\n          sVar13 = WriteBlobLong(image,uVar10 + 0x1c);\n          if ((local_113c->compose != NoCompositeOp) &&\n             (local_114c->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_113c->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_113c->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar14 = WriteBlobLong(image,0x14);\n          sVar15 = WriteBlobSignedLong(image,(local_113c->page).y);\n          sVar16 = WriteBlobSignedLong(image,(local_113c->page).x);\n          sVar18 = WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows);\n          sVar22 = WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns);\n          sVar23 = WriteBlobByte(image,local_10e3);\n          sVar24 = WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02');\n          sVar25 = WriteBlobMSBShort(image,0);\n          iVar31 = iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +\n                   sVar25;\n        }\n        sVar13 = WriteBlobLong(image,0);\n        sVar12 = strlen(pcVar11);\n        if (sVar12 < 0x100) {\n          if (sVar12 == 0) {\n            sVar15 = WriteBlobByte(image,'\0');\n            local_113c = (Image *)0x3;\n          }\n          else {\n            sVar15 = WriteBlobByte(image,(uchar)sVar12);\n            sVar14 = WriteBlob(image,sVar12,pcVar11);\n            sVar15 = sVar15 + sVar14;\n            uVar10 = sVar12 + 1 & 3;\n            if (uVar10 == 0) goto LAB_00260559;\n            local_113c = (Image *)(4 - uVar10);\n          }\n          iVar26 = 0;\n          do {\n            iVar26 = iVar26 + 1;\n            sVar14 = WriteBlobByte(image,'\0');\n            sVar15 = sVar15 + sVar14;\n          } while (local_113c != (Image *)iVar26);\n        }\n        else {\n          sVar15 = WriteBlobByte(image,0xff);\n          sVar14 = WriteBlob(image,0xff,pcVar11);\n          sVar15 = sVar15 + sVar14;\n        }\nLAB_00260559:\n        uVar10 = sVar15 + sVar13 + iVar31;\n        if (string_info != (StringInfo *)0x0) {\n          puVar21 = GetStringInfoDatum(string_info);\n          sVar28 = GetStringInfoLength(string_info);\n          sVar13 = WriteBlob(image,sVar28,puVar21);\n          uVar10 = uVar10 + sVar13;\n        }\n        local_114c = GetNextImageInList(local_114c);\n        pMVar30 = memory;\n        pIVar9 = pIVar8;\n        local_1128 = iVar2;\n      } while (local_114c != (Image *)0x0);\n      do {\n        sVar28 = WritePSDChannels(psd_info,image_info,image,pIVar9,*pMVar30,MagickTrue,exception);\n        if (sVar28 == 0) {\n          MVar17 = MagickFalse;\n          local_113c = (Image *)uVar10;\n          goto LAB_0026060b;\n        }\n        uVar10 = uVar10 + sVar28;\n        pIVar9 = GetNextImageInList(pIVar9);\n        pMVar30 = pMVar30 + 1;\n        local_113c = (Image *)uVar10;\n      } while (pIVar9 != (Image *)0x0);\n    }\n    MVar17 = MagickTrue;\nLAB_0026060b:\n    if (layers_size != (size_t *)0x0) {\n      *layers_size = (size_t)local_113c;\n    }\n    pIVar9 = (Image *)((int)local_113c + 1U);\n    if ((uint)local_113c >> 1 == (int)local_113c + 1U >> 1) {\n      pIVar9 = local_113c;\n    }\n    MVar34 = TellBlob(image);\n    SeekBlob(image,offset,0);\n    if (psd_info->version == 1) {\n      WriteBlobLong(image,(uint)pIVar9);\n    }\n    else {\n      WriteBlobLongLong(image,ZEXT48(pIVar9));\n    }\n    SeekBlob(image,MVar34,0);\n    RelinquishMagickMemory(memory);\n    for (; pIVar8 != (Image *)0x0; pIVar8 = GetNextImageInList(pIVar8)) {\n      pcVar11 = GetImageArtifact(pIVar8,"psd:opacity-mask");\n      if (pcVar11 != (char *)0x0) {\n        DeleteImageRegistry(pcVar11);\n      }\n    }\n  }" { (expression_statement "local_113c = (Image *)uVar10;" (assignment_expression "local_113c = (Image *)uVar10" identifier = (cast_expression "(Image *)uVar10" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (pIVar8 != (Image *)0x0) {\n      local_1128 = 0;\n      local_114c = pIVar8;\n      do {\n        pcVar11 = GetImageArtifact(local_114c,"psd:opacity-mask");\n        if (pcVar11 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = (Image *)0x0;\n        }\n        else {\n          local_113c = (Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception);\n          sVar12 = strlen(pcVar11);\n          local_10e3 = -(sVar12 == 9);\n        }\n        sVar13 = WriteBlobSignedLong(image,(local_114c->page).y);\n        sVar14 = WriteBlobSignedLong(image,(local_114c->page).x);\n        sVar15 = WriteBlobSignedLong(image,local_114c->rows + (local_114c->page).y);\n        sVar16 = WriteBlobSignedLong(image,local_114c->columns + (local_114c->page).x);\n        if ((local_114c->storage_class == PseudoClass) ||\n           (MVar17 = IsImageGray(local_114c), MVar17 != MagickFalse)) {\n          local_1134 = 1;\n          sVar7 = 1;\n        }\n        else {\n          local_1134 = (local_114c->colorspace == CMYKColorspace) + 3;\n          sVar7 = (local_114c->colorspace == CMYKColorspace) + 3;\n        }\n        sVar18 = WriteBlobShort(image,((sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2) -\n                                      (ushort)(local_113c == (Image *)0x0));\n        iVar2 = local_1128 + 1;\n        local_1144 = sVar18 + uVar10 + sVar13 + sVar14 + sVar15 + sVar16;\n        MVar34 = TellBlob(image);\n        *(int *)(memory + local_1128) = (int)MVar34;\n        *(int *)((int)memory + iVar2 * 8 + -4) = (int)((ulonglong)MVar34 >> 0x20);\n        iVar31 = 0;\n        do {\n          while (sVar13 = WriteBlobShort(image,(ushort)iVar31), psd_info->version == 1) {\n            iVar31 = iVar31 + 1;\n            sVar14 = WriteBlobLong(image,0);\n            local_1144 = local_1144 + sVar13 + sVar14;\n            if (iVar31 == local_1134) goto LAB_0025ff56;\n          }\n          iVar31 = iVar31 + 1;\n          sVar14 = WriteBlobLongLong(image,0);\n          local_1144 = local_1144 + sVar13 + sVar14;\n        } while (iVar31 != local_1134);\nLAB_0025ff56:\n        if (local_114c->alpha_trait != UndefinedPixelTrait) {\n          sVar13 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        if (local_113c != (Image *)0x0) {\n          sVar13 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        pcVar11 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar11 = "MIB8";\n        }\n        sVar13 = WriteBlobString(image,pcVar11);\n        switch(local_114c->compose) {\n        case ColorBurnCompositeOp:\n          pcVar11 = "idiv";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar11 = "div ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar11 = "colr";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "rloc";\n          }\n          break;\n        default:\n          pcVar11 = "norm";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar11 = "dark";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar11 = "diff";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar11 = "diss";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar11 = "smud";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar11 = "hLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar11 = "hMix";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar11 = "hue ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar11 = "lite";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar11 = "lbrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar11 = "lddg";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar11 = "lLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar11 = "lum ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar11 = "mul ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar11 = "over";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar11 = "pLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar11 = "sat ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar11 = "scrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar11 = "sLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar11 = "vLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLv";\n          }\n        }\n        sVar14 = WriteBlobString(image,pcVar11);\n        pcVar11 = GetImageArtifact(local_114c,"psd:layer.opacity");\n        if (pcVar11 == (char *)0x0) {\n          iVar31 = WriteBlobByte(image,0xff);\n        }\n        else {\n          lVar19 = strtol(pcVar11,(char **)0x0,10);\n          value = '\0';\n          if (0.0 < (float)lVar19) {\n            value = 0xff;\n            fVar5 = (float)lVar19 / DAT_002a7ff0;\n            if (fVar5 < DAT_002a7ff4) {\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }\n          }\n          iVar31 = WriteBlobByte(image,value);\n          ApplyPSDLayerOpacity(local_114c,(double)lVar19,MagickTrue,exception);\n        }\n        sVar15 = WriteBlobByte(image,'\0');\n        sVar16 = WriteBlobByte(image,(local_114c->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar18 = WriteBlobByte(image,'\0');\n        iVar31 = sVar18 + local_1144 + sVar13 + sVar14 + iVar31 + sVar15 + sVar16;\n        puVar29 = &DAT_0030c7e0;\n        pacVar32 = allowed;\n        for (iVar26 = 0x2d; iVar26 != 0; iVar26 = iVar26 + -1) {\n          *(undefined4 *)*pacVar32 = *puVar29;\n          puVar29 = puVar29 + (uint)bVar33 * -2 + 1;\n          pacVar32 = (char (*) [5])((int)pacVar32 + (uint)bVar33 * -8 + 4);\n        }\n        pSVar20 = GetImageProfile(local_114c,"psd:additional-info");\n        if (pSVar20 == (StringInfo *)0x0) {\nLAB_00260a9c:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar11 = GetImageOption(image_info,"psd:additional-info");\n          iVar26 = LocaleCompare(pcVar11,"all");\n          string_info = pSVar20;\n          if (iVar26 != 0) {\n            iVar26 = LocaleCompare(pcVar11,"selective");\n            if (iVar26 == 0) {\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar11 = GetImageProperty(local_114c,"label",exception);\n        if (pcVar11 == (char *)0x0) {\n          pcVar11 = layer_name;\n          FormatLocaleString(pcVar11,0x1000,"L%.20g",SUB84((double)iVar2,0),\n                             (int)((ulonglong)(double)iVar2 >> 0x20));\n        }\n        sVar12 = strlen(pcVar11);\n        uVar10 = sVar12 + 1;\n        if ((uVar10 & 3) != 0) {\n          uVar10 = (uVar10 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar28 = GetStringInfoLength(string_info);\n          uVar10 = uVar10 + sVar28;\n        }\n        if (local_113c == (Image *)0x0) {\n          sVar13 = WriteBlobLong(image,uVar10 + 8);\n          sVar14 = WriteBlobLong(image,0);\n          iVar31 = sVar13 + sVar14 + iVar31;\n        }\n        else {\n          sVar13 = WriteBlobLong(image,uVar10 + 0x1c);\n          if ((local_113c->compose != NoCompositeOp) &&\n             (local_114c->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_113c->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_113c->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar14 = WriteBlobLong(image,0x14);\n          sVar15 = WriteBlobSignedLong(image,(local_113c->page).y);\n          sVar16 = WriteBlobSignedLong(image,(local_113c->page).x);\n          sVar18 = WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows);\n          sVar22 = WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns);\n          sVar23 = WriteBlobByte(image,local_10e3);\n          sVar24 = WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02');\n          sVar25 = WriteBlobMSBShort(image,0);\n          iVar31 = iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +\n                   sVar25;\n        }\n        sVar13 = WriteBlobLong(image,0);\n        sVar12 = strlen(pcVar11);\n        if (sVar12 < 0x100) {\n          if (sVar12 == 0) {\n            sVar15 = WriteBlobByte(image,'\0');\n            local_113c = (Image *)0x3;\n          }\n          else {\n            sVar15 = WriteBlobByte(image,(uchar)sVar12);\n            sVar14 = WriteBlob(image,sVar12,pcVar11);\n            sVar15 = sVar15 + sVar14;\n            uVar10 = sVar12 + 1 & 3;\n            if (uVar10 == 0) goto LAB_00260559;\n            local_113c = (Image *)(4 - uVar10);\n          }\n          iVar26 = 0;\n          do {\n            iVar26 = iVar26 + 1;\n            sVar14 = WriteBlobByte(image,'\0');\n            sVar15 = sVar15 + sVar14;\n          } while (local_113c != (Image *)iVar26);\n        }\n        else {\n          sVar15 = WriteBlobByte(image,0xff);\n          sVar14 = WriteBlob(image,0xff,pcVar11);\n          sVar15 = sVar15 + sVar14;\n        }\nLAB_00260559:\n        uVar10 = sVar15 + sVar13 + iVar31;\n        if (string_info != (StringInfo *)0x0) {\n          puVar21 = GetStringInfoDatum(string_info);\n          sVar28 = GetStringInfoLength(string_info);\n          sVar13 = WriteBlob(image,sVar28,puVar21);\n          uVar10 = uVar10 + sVar13;\n        }\n        local_114c = GetNextImageInList(local_114c);\n        pMVar30 = memory;\n        pIVar9 = pIVar8;\n        local_1128 = iVar2;\n      } while (local_114c != (Image *)0x0);\n      do {\n        sVar28 = WritePSDChannels(psd_info,image_info,image,pIVar9,*pMVar30,MagickTrue,exception);\n        if (sVar28 == 0) {\n          MVar17 = MagickFalse;\n          local_113c = (Image *)uVar10;\n          goto LAB_0026060b;\n        }\n        uVar10 = uVar10 + sVar28;\n        pIVar9 = GetNextImageInList(pIVar9);\n        pMVar30 = pMVar30 + 1;\n        local_113c = (Image *)uVar10;\n      } while (pIVar9 != (Image *)0x0);\n    }" if (parenthesized_expression "(pIVar8 != (Image *)0x0)" ( (binary_expression "pIVar8 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      local_1128 = 0;\n      local_114c = pIVar8;\n      do {\n        pcVar11 = GetImageArtifact(local_114c,"psd:opacity-mask");\n        if (pcVar11 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = (Image *)0x0;\n        }\n        else {\n          local_113c = (Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception);\n          sVar12 = strlen(pcVar11);\n          local_10e3 = -(sVar12 == 9);\n        }\n        sVar13 = WriteBlobSignedLong(image,(local_114c->page).y);\n        sVar14 = WriteBlobSignedLong(image,(local_114c->page).x);\n        sVar15 = WriteBlobSignedLong(image,local_114c->rows + (local_114c->page).y);\n        sVar16 = WriteBlobSignedLong(image,local_114c->columns + (local_114c->page).x);\n        if ((local_114c->storage_class == PseudoClass) ||\n           (MVar17 = IsImageGray(local_114c), MVar17 != MagickFalse)) {\n          local_1134 = 1;\n          sVar7 = 1;\n        }\n        else {\n          local_1134 = (local_114c->colorspace == CMYKColorspace) + 3;\n          sVar7 = (local_114c->colorspace == CMYKColorspace) + 3;\n        }\n        sVar18 = WriteBlobShort(image,((sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2) -\n                                      (ushort)(local_113c == (Image *)0x0));\n        iVar2 = local_1128 + 1;\n        local_1144 = sVar18 + uVar10 + sVar13 + sVar14 + sVar15 + sVar16;\n        MVar34 = TellBlob(image);\n        *(int *)(memory + local_1128) = (int)MVar34;\n        *(int *)((int)memory + iVar2 * 8 + -4) = (int)((ulonglong)MVar34 >> 0x20);\n        iVar31 = 0;\n        do {\n          while (sVar13 = WriteBlobShort(image,(ushort)iVar31), psd_info->version == 1) {\n            iVar31 = iVar31 + 1;\n            sVar14 = WriteBlobLong(image,0);\n            local_1144 = local_1144 + sVar13 + sVar14;\n            if (iVar31 == local_1134) goto LAB_0025ff56;\n          }\n          iVar31 = iVar31 + 1;\n          sVar14 = WriteBlobLongLong(image,0);\n          local_1144 = local_1144 + sVar13 + sVar14;\n        } while (iVar31 != local_1134);\nLAB_0025ff56:\n        if (local_114c->alpha_trait != UndefinedPixelTrait) {\n          sVar13 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        if (local_113c != (Image *)0x0) {\n          sVar13 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        pcVar11 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar11 = "MIB8";\n        }\n        sVar13 = WriteBlobString(image,pcVar11);\n        switch(local_114c->compose) {\n        case ColorBurnCompositeOp:\n          pcVar11 = "idiv";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar11 = "div ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar11 = "colr";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "rloc";\n          }\n          break;\n        default:\n          pcVar11 = "norm";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar11 = "dark";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar11 = "diff";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar11 = "diss";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar11 = "smud";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar11 = "hLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar11 = "hMix";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar11 = "hue ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar11 = "lite";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar11 = "lbrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar11 = "lddg";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar11 = "lLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar11 = "lum ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar11 = "mul ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar11 = "over";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar11 = "pLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar11 = "sat ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar11 = "scrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar11 = "sLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar11 = "vLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLv";\n          }\n        }\n        sVar14 = WriteBlobString(image,pcVar11);\n        pcVar11 = GetImageArtifact(local_114c,"psd:layer.opacity");\n        if (pcVar11 == (char *)0x0) {\n          iVar31 = WriteBlobByte(image,0xff);\n        }\n        else {\n          lVar19 = strtol(pcVar11,(char **)0x0,10);\n          value = '\0';\n          if (0.0 < (float)lVar19) {\n            value = 0xff;\n            fVar5 = (float)lVar19 / DAT_002a7ff0;\n            if (fVar5 < DAT_002a7ff4) {\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }\n          }\n          iVar31 = WriteBlobByte(image,value);\n          ApplyPSDLayerOpacity(local_114c,(double)lVar19,MagickTrue,exception);\n        }\n        sVar15 = WriteBlobByte(image,'\0');\n        sVar16 = WriteBlobByte(image,(local_114c->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar18 = WriteBlobByte(image,'\0');\n        iVar31 = sVar18 + local_1144 + sVar13 + sVar14 + iVar31 + sVar15 + sVar16;\n        puVar29 = &DAT_0030c7e0;\n        pacVar32 = allowed;\n        for (iVar26 = 0x2d; iVar26 != 0; iVar26 = iVar26 + -1) {\n          *(undefined4 *)*pacVar32 = *puVar29;\n          puVar29 = puVar29 + (uint)bVar33 * -2 + 1;\n          pacVar32 = (char (*) [5])((int)pacVar32 + (uint)bVar33 * -8 + 4);\n        }\n        pSVar20 = GetImageProfile(local_114c,"psd:additional-info");\n        if (pSVar20 == (StringInfo *)0x0) {\nLAB_00260a9c:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar11 = GetImageOption(image_info,"psd:additional-info");\n          iVar26 = LocaleCompare(pcVar11,"all");\n          string_info = pSVar20;\n          if (iVar26 != 0) {\n            iVar26 = LocaleCompare(pcVar11,"selective");\n            if (iVar26 == 0) {\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar11 = GetImageProperty(local_114c,"label",exception);\n        if (pcVar11 == (char *)0x0) {\n          pcVar11 = layer_name;\n          FormatLocaleString(pcVar11,0x1000,"L%.20g",SUB84((double)iVar2,0),\n                             (int)((ulonglong)(double)iVar2 >> 0x20));\n        }\n        sVar12 = strlen(pcVar11);\n        uVar10 = sVar12 + 1;\n        if ((uVar10 & 3) != 0) {\n          uVar10 = (uVar10 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar28 = GetStringInfoLength(string_info);\n          uVar10 = uVar10 + sVar28;\n        }\n        if (local_113c == (Image *)0x0) {\n          sVar13 = WriteBlobLong(image,uVar10 + 8);\n          sVar14 = WriteBlobLong(image,0);\n          iVar31 = sVar13 + sVar14 + iVar31;\n        }\n        else {\n          sVar13 = WriteBlobLong(image,uVar10 + 0x1c);\n          if ((local_113c->compose != NoCompositeOp) &&\n             (local_114c->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_113c->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_113c->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar14 = WriteBlobLong(image,0x14);\n          sVar15 = WriteBlobSignedLong(image,(local_113c->page).y);\n          sVar16 = WriteBlobSignedLong(image,(local_113c->page).x);\n          sVar18 = WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows);\n          sVar22 = WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns);\n          sVar23 = WriteBlobByte(image,local_10e3);\n          sVar24 = WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02');\n          sVar25 = WriteBlobMSBShort(image,0);\n          iVar31 = iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +\n                   sVar25;\n        }\n        sVar13 = WriteBlobLong(image,0);\n        sVar12 = strlen(pcVar11);\n        if (sVar12 < 0x100) {\n          if (sVar12 == 0) {\n            sVar15 = WriteBlobByte(image,'\0');\n            local_113c = (Image *)0x3;\n          }\n          else {\n            sVar15 = WriteBlobByte(image,(uchar)sVar12);\n            sVar14 = WriteBlob(image,sVar12,pcVar11);\n            sVar15 = sVar15 + sVar14;\n            uVar10 = sVar12 + 1 & 3;\n            if (uVar10 == 0) goto LAB_00260559;\n            local_113c = (Image *)(4 - uVar10);\n          }\n          iVar26 = 0;\n          do {\n            iVar26 = iVar26 + 1;\n            sVar14 = WriteBlobByte(image,'\0');\n            sVar15 = sVar15 + sVar14;\n          } while (local_113c != (Image *)iVar26);\n        }\n        else {\n          sVar15 = WriteBlobByte(image,0xff);\n          sVar14 = WriteBlob(image,0xff,pcVar11);\n          sVar15 = sVar15 + sVar14;\n        }\nLAB_00260559:\n        uVar10 = sVar15 + sVar13 + iVar31;\n        if (string_info != (StringInfo *)0x0) {\n          puVar21 = GetStringInfoDatum(string_info);\n          sVar28 = GetStringInfoLength(string_info);\n          sVar13 = WriteBlob(image,sVar28,puVar21);\n          uVar10 = uVar10 + sVar13;\n        }\n        local_114c = GetNextImageInList(local_114c);\n        pMVar30 = memory;\n        pIVar9 = pIVar8;\n        local_1128 = iVar2;\n      } while (local_114c != (Image *)0x0);\n      do {\n        sVar28 = WritePSDChannels(psd_info,image_info,image,pIVar9,*pMVar30,MagickTrue,exception);\n        if (sVar28 == 0) {\n          MVar17 = MagickFalse;\n          local_113c = (Image *)uVar10;\n          goto LAB_0026060b;\n        }\n        uVar10 = uVar10 + sVar28;\n        pIVar9 = GetNextImageInList(pIVar9);\n        pMVar30 = pMVar30 + 1;\n        local_113c = (Image *)uVar10;\n      } while (pIVar9 != (Image *)0x0);\n    }" { (expression_statement "local_1128 = 0;" (assignment_expression "local_1128 = 0" identifier = number_literal) ;) (expression_statement "local_114c = pIVar8;" (assignment_expression "local_114c = pIVar8" identifier = identifier) ;) (do_statement "do {\n        pcVar11 = GetImageArtifact(local_114c,"psd:opacity-mask");\n        if (pcVar11 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = (Image *)0x0;\n        }\n        else {\n          local_113c = (Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception);\n          sVar12 = strlen(pcVar11);\n          local_10e3 = -(sVar12 == 9);\n        }\n        sVar13 = WriteBlobSignedLong(image,(local_114c->page).y);\n        sVar14 = WriteBlobSignedLong(image,(local_114c->page).x);\n        sVar15 = WriteBlobSignedLong(image,local_114c->rows + (local_114c->page).y);\n        sVar16 = WriteBlobSignedLong(image,local_114c->columns + (local_114c->page).x);\n        if ((local_114c->storage_class == PseudoClass) ||\n           (MVar17 = IsImageGray(local_114c), MVar17 != MagickFalse)) {\n          local_1134 = 1;\n          sVar7 = 1;\n        }\n        else {\n          local_1134 = (local_114c->colorspace == CMYKColorspace) + 3;\n          sVar7 = (local_114c->colorspace == CMYKColorspace) + 3;\n        }\n        sVar18 = WriteBlobShort(image,((sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2) -\n                                      (ushort)(local_113c == (Image *)0x0));\n        iVar2 = local_1128 + 1;\n        local_1144 = sVar18 + uVar10 + sVar13 + sVar14 + sVar15 + sVar16;\n        MVar34 = TellBlob(image);\n        *(int *)(memory + local_1128) = (int)MVar34;\n        *(int *)((int)memory + iVar2 * 8 + -4) = (int)((ulonglong)MVar34 >> 0x20);\n        iVar31 = 0;\n        do {\n          while (sVar13 = WriteBlobShort(image,(ushort)iVar31), psd_info->version == 1) {\n            iVar31 = iVar31 + 1;\n            sVar14 = WriteBlobLong(image,0);\n            local_1144 = local_1144 + sVar13 + sVar14;\n            if (iVar31 == local_1134) goto LAB_0025ff56;\n          }\n          iVar31 = iVar31 + 1;\n          sVar14 = WriteBlobLongLong(image,0);\n          local_1144 = local_1144 + sVar13 + sVar14;\n        } while (iVar31 != local_1134);\nLAB_0025ff56:\n        if (local_114c->alpha_trait != UndefinedPixelTrait) {\n          sVar13 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        if (local_113c != (Image *)0x0) {\n          sVar13 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        pcVar11 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar11 = "MIB8";\n        }\n        sVar13 = WriteBlobString(image,pcVar11);\n        switch(local_114c->compose) {\n        case ColorBurnCompositeOp:\n          pcVar11 = "idiv";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar11 = "div ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar11 = "colr";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "rloc";\n          }\n          break;\n        default:\n          pcVar11 = "norm";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar11 = "dark";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar11 = "diff";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar11 = "diss";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar11 = "smud";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar11 = "hLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar11 = "hMix";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar11 = "hue ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar11 = "lite";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar11 = "lbrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar11 = "lddg";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar11 = "lLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar11 = "lum ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar11 = "mul ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar11 = "over";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar11 = "pLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar11 = "sat ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar11 = "scrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar11 = "sLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar11 = "vLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLv";\n          }\n        }\n        sVar14 = WriteBlobString(image,pcVar11);\n        pcVar11 = GetImageArtifact(local_114c,"psd:layer.opacity");\n        if (pcVar11 == (char *)0x0) {\n          iVar31 = WriteBlobByte(image,0xff);\n        }\n        else {\n          lVar19 = strtol(pcVar11,(char **)0x0,10);\n          value = '\0';\n          if (0.0 < (float)lVar19) {\n            value = 0xff;\n            fVar5 = (float)lVar19 / DAT_002a7ff0;\n            if (fVar5 < DAT_002a7ff4) {\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }\n          }\n          iVar31 = WriteBlobByte(image,value);\n          ApplyPSDLayerOpacity(local_114c,(double)lVar19,MagickTrue,exception);\n        }\n        sVar15 = WriteBlobByte(image,'\0');\n        sVar16 = WriteBlobByte(image,(local_114c->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar18 = WriteBlobByte(image,'\0');\n        iVar31 = sVar18 + local_1144 + sVar13 + sVar14 + iVar31 + sVar15 + sVar16;\n        puVar29 = &DAT_0030c7e0;\n        pacVar32 = allowed;\n        for (iVar26 = 0x2d; iVar26 != 0; iVar26 = iVar26 + -1) {\n          *(undefined4 *)*pacVar32 = *puVar29;\n          puVar29 = puVar29 + (uint)bVar33 * -2 + 1;\n          pacVar32 = (char (*) [5])((int)pacVar32 + (uint)bVar33 * -8 + 4);\n        }\n        pSVar20 = GetImageProfile(local_114c,"psd:additional-info");\n        if (pSVar20 == (StringInfo *)0x0) {\nLAB_00260a9c:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar11 = GetImageOption(image_info,"psd:additional-info");\n          iVar26 = LocaleCompare(pcVar11,"all");\n          string_info = pSVar20;\n          if (iVar26 != 0) {\n            iVar26 = LocaleCompare(pcVar11,"selective");\n            if (iVar26 == 0) {\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar11 = GetImageProperty(local_114c,"label",exception);\n        if (pcVar11 == (char *)0x0) {\n          pcVar11 = layer_name;\n          FormatLocaleString(pcVar11,0x1000,"L%.20g",SUB84((double)iVar2,0),\n                             (int)((ulonglong)(double)iVar2 >> 0x20));\n        }\n        sVar12 = strlen(pcVar11);\n        uVar10 = sVar12 + 1;\n        if ((uVar10 & 3) != 0) {\n          uVar10 = (uVar10 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar28 = GetStringInfoLength(string_info);\n          uVar10 = uVar10 + sVar28;\n        }\n        if (local_113c == (Image *)0x0) {\n          sVar13 = WriteBlobLong(image,uVar10 + 8);\n          sVar14 = WriteBlobLong(image,0);\n          iVar31 = sVar13 + sVar14 + iVar31;\n        }\n        else {\n          sVar13 = WriteBlobLong(image,uVar10 + 0x1c);\n          if ((local_113c->compose != NoCompositeOp) &&\n             (local_114c->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_113c->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_113c->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar14 = WriteBlobLong(image,0x14);\n          sVar15 = WriteBlobSignedLong(image,(local_113c->page).y);\n          sVar16 = WriteBlobSignedLong(image,(local_113c->page).x);\n          sVar18 = WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows);\n          sVar22 = WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns);\n          sVar23 = WriteBlobByte(image,local_10e3);\n          sVar24 = WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02');\n          sVar25 = WriteBlobMSBShort(image,0);\n          iVar31 = iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +\n                   sVar25;\n        }\n        sVar13 = WriteBlobLong(image,0);\n        sVar12 = strlen(pcVar11);\n        if (sVar12 < 0x100) {\n          if (sVar12 == 0) {\n            sVar15 = WriteBlobByte(image,'\0');\n            local_113c = (Image *)0x3;\n          }\n          else {\n            sVar15 = WriteBlobByte(image,(uchar)sVar12);\n            sVar14 = WriteBlob(image,sVar12,pcVar11);\n            sVar15 = sVar15 + sVar14;\n            uVar10 = sVar12 + 1 & 3;\n            if (uVar10 == 0) goto LAB_00260559;\n            local_113c = (Image *)(4 - uVar10);\n          }\n          iVar26 = 0;\n          do {\n            iVar26 = iVar26 + 1;\n            sVar14 = WriteBlobByte(image,'\0');\n            sVar15 = sVar15 + sVar14;\n          } while (local_113c != (Image *)iVar26);\n        }\n        else {\n          sVar15 = WriteBlobByte(image,0xff);\n          sVar14 = WriteBlob(image,0xff,pcVar11);\n          sVar15 = sVar15 + sVar14;\n        }\nLAB_00260559:\n        uVar10 = sVar15 + sVar13 + iVar31;\n        if (string_info != (StringInfo *)0x0) {\n          puVar21 = GetStringInfoDatum(string_info);\n          sVar28 = GetStringInfoLength(string_info);\n          sVar13 = WriteBlob(image,sVar28,puVar21);\n          uVar10 = uVar10 + sVar13;\n        }\n        local_114c = GetNextImageInList(local_114c);\n        pMVar30 = memory;\n        pIVar9 = pIVar8;\n        local_1128 = iVar2;\n      } while (local_114c != (Image *)0x0);" do (compound_statement "{\n        pcVar11 = GetImageArtifact(local_114c,"psd:opacity-mask");\n        if (pcVar11 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = (Image *)0x0;\n        }\n        else {\n          local_113c = (Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception);\n          sVar12 = strlen(pcVar11);\n          local_10e3 = -(sVar12 == 9);\n        }\n        sVar13 = WriteBlobSignedLong(image,(local_114c->page).y);\n        sVar14 = WriteBlobSignedLong(image,(local_114c->page).x);\n        sVar15 = WriteBlobSignedLong(image,local_114c->rows + (local_114c->page).y);\n        sVar16 = WriteBlobSignedLong(image,local_114c->columns + (local_114c->page).x);\n        if ((local_114c->storage_class == PseudoClass) ||\n           (MVar17 = IsImageGray(local_114c), MVar17 != MagickFalse)) {\n          local_1134 = 1;\n          sVar7 = 1;\n        }\n        else {\n          local_1134 = (local_114c->colorspace == CMYKColorspace) + 3;\n          sVar7 = (local_114c->colorspace == CMYKColorspace) + 3;\n        }\n        sVar18 = WriteBlobShort(image,((sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2) -\n                                      (ushort)(local_113c == (Image *)0x0));\n        iVar2 = local_1128 + 1;\n        local_1144 = sVar18 + uVar10 + sVar13 + sVar14 + sVar15 + sVar16;\n        MVar34 = TellBlob(image);\n        *(int *)(memory + local_1128) = (int)MVar34;\n        *(int *)((int)memory + iVar2 * 8 + -4) = (int)((ulonglong)MVar34 >> 0x20);\n        iVar31 = 0;\n        do {\n          while (sVar13 = WriteBlobShort(image,(ushort)iVar31), psd_info->version == 1) {\n            iVar31 = iVar31 + 1;\n            sVar14 = WriteBlobLong(image,0);\n            local_1144 = local_1144 + sVar13 + sVar14;\n            if (iVar31 == local_1134) goto LAB_0025ff56;\n          }\n          iVar31 = iVar31 + 1;\n          sVar14 = WriteBlobLongLong(image,0);\n          local_1144 = local_1144 + sVar13 + sVar14;\n        } while (iVar31 != local_1134);\nLAB_0025ff56:\n        if (local_114c->alpha_trait != UndefinedPixelTrait) {\n          sVar13 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        if (local_113c != (Image *)0x0) {\n          sVar13 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }\n        pcVar11 = "8BIM";\n        if (image->endian == LSBEndian) {\n          pcVar11 = "MIB8";\n        }\n        sVar13 = WriteBlobString(image,pcVar11);\n        switch(local_114c->compose) {\n        case ColorBurnCompositeOp:\n          pcVar11 = "idiv";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar11 = "div ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar11 = "colr";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "rloc";\n          }\n          break;\n        default:\n          pcVar11 = "norm";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar11 = "dark";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar11 = "diff";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar11 = "diss";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar11 = "smud";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar11 = "hLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar11 = "hMix";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar11 = "hue ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar11 = "lite";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar11 = "lbrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar11 = "lddg";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar11 = "lLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar11 = "lum ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar11 = "mul ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar11 = "over";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar11 = "pLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar11 = "sat ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar11 = "scrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar11 = "sLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar11 = "vLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLv";\n          }\n        }\n        sVar14 = WriteBlobString(image,pcVar11);\n        pcVar11 = GetImageArtifact(local_114c,"psd:layer.opacity");\n        if (pcVar11 == (char *)0x0) {\n          iVar31 = WriteBlobByte(image,0xff);\n        }\n        else {\n          lVar19 = strtol(pcVar11,(char **)0x0,10);\n          value = '\0';\n          if (0.0 < (float)lVar19) {\n            value = 0xff;\n            fVar5 = (float)lVar19 / DAT_002a7ff0;\n            if (fVar5 < DAT_002a7ff4) {\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }\n          }\n          iVar31 = WriteBlobByte(image,value);\n          ApplyPSDLayerOpacity(local_114c,(double)lVar19,MagickTrue,exception);\n        }\n        sVar15 = WriteBlobByte(image,'\0');\n        sVar16 = WriteBlobByte(image,(local_114c->compose == NoCompositeOp) * '\x03' + '\x01');\n        sVar18 = WriteBlobByte(image,'\0');\n        iVar31 = sVar18 + local_1144 + sVar13 + sVar14 + iVar31 + sVar15 + sVar16;\n        puVar29 = &DAT_0030c7e0;\n        pacVar32 = allowed;\n        for (iVar26 = 0x2d; iVar26 != 0; iVar26 = iVar26 + -1) {\n          *(undefined4 *)*pacVar32 = *puVar29;\n          puVar29 = puVar29 + (uint)bVar33 * -2 + 1;\n          pacVar32 = (char (*) [5])((int)pacVar32 + (uint)bVar33 * -8 + 4);\n        }\n        pSVar20 = GetImageProfile(local_114c,"psd:additional-info");\n        if (pSVar20 == (StringInfo *)0x0) {\nLAB_00260a9c:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar11 = GetImageOption(image_info,"psd:additional-info");\n          iVar26 = LocaleCompare(pcVar11,"all");\n          string_info = pSVar20;\n          if (iVar26 != 0) {\n            iVar26 = LocaleCompare(pcVar11,"selective");\n            if (iVar26 == 0) {\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar11 = GetImageProperty(local_114c,"label",exception);\n        if (pcVar11 == (char *)0x0) {\n          pcVar11 = layer_name;\n          FormatLocaleString(pcVar11,0x1000,"L%.20g",SUB84((double)iVar2,0),\n                             (int)((ulonglong)(double)iVar2 >> 0x20));\n        }\n        sVar12 = strlen(pcVar11);\n        uVar10 = sVar12 + 1;\n        if ((uVar10 & 3) != 0) {\n          uVar10 = (uVar10 & 0xfffffffc) + 4;\n        }\n        if (string_info != (StringInfo *)0x0) {\n          sVar28 = GetStringInfoLength(string_info);\n          uVar10 = uVar10 + sVar28;\n        }\n        if (local_113c == (Image *)0x0) {\n          sVar13 = WriteBlobLong(image,uVar10 + 8);\n          sVar14 = WriteBlobLong(image,0);\n          iVar31 = sVar13 + sVar14 + iVar31;\n        }\n        else {\n          sVar13 = WriteBlobLong(image,uVar10 + 0x1c);\n          if ((local_113c->compose != NoCompositeOp) &&\n             (local_114c->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_113c->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_113c->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar14 = WriteBlobLong(image,0x14);\n          sVar15 = WriteBlobSignedLong(image,(local_113c->page).y);\n          sVar16 = WriteBlobSignedLong(image,(local_113c->page).x);\n          sVar18 = WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows);\n          sVar22 = WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns);\n          sVar23 = WriteBlobByte(image,local_10e3);\n          sVar24 = WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02');\n          sVar25 = WriteBlobMSBShort(image,0);\n          iVar31 = iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +\n                   sVar25;\n        }\n        sVar13 = WriteBlobLong(image,0);\n        sVar12 = strlen(pcVar11);\n        if (sVar12 < 0x100) {\n          if (sVar12 == 0) {\n            sVar15 = WriteBlobByte(image,'\0');\n            local_113c = (Image *)0x3;\n          }\n          else {\n            sVar15 = WriteBlobByte(image,(uchar)sVar12);\n            sVar14 = WriteBlob(image,sVar12,pcVar11);\n            sVar15 = sVar15 + sVar14;\n            uVar10 = sVar12 + 1 & 3;\n            if (uVar10 == 0) goto LAB_00260559;\n            local_113c = (Image *)(4 - uVar10);\n          }\n          iVar26 = 0;\n          do {\n            iVar26 = iVar26 + 1;\n            sVar14 = WriteBlobByte(image,'\0');\n            sVar15 = sVar15 + sVar14;\n          } while (local_113c != (Image *)iVar26);\n        }\n        else {\n          sVar15 = WriteBlobByte(image,0xff);\n          sVar14 = WriteBlob(image,0xff,pcVar11);\n          sVar15 = sVar15 + sVar14;\n        }\nLAB_00260559:\n        uVar10 = sVar15 + sVar13 + iVar31;\n        if (string_info != (StringInfo *)0x0) {\n          puVar21 = GetStringInfoDatum(string_info);\n          sVar28 = GetStringInfoLength(string_info);\n          sVar13 = WriteBlob(image,sVar28,puVar21);\n          uVar10 = uVar10 + sVar13;\n        }\n        local_114c = GetNextImageInList(local_114c);\n        pMVar30 = memory;\n        pIVar9 = pIVar8;\n        local_1128 = iVar2;\n      }" { (expression_statement "pcVar11 = GetImageArtifact(local_114c,"psd:opacity-mask");" (assignment_expression "pcVar11 = GetImageArtifact(local_114c,"psd:opacity-mask")" identifier = (call_expression "GetImageArtifact(local_114c,"psd:opacity-mask")" identifier (argument_list "(local_114c,"psd:opacity-mask")" ( identifier , (string_literal ""psd:opacity-mask"" " string_content ") )))) ;) (if_statement "if (pcVar11 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = (Image *)0x0;\n        }\n        else {\n          local_113c = (Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception);\n          sVar12 = strlen(pcVar11);\n          local_10e3 = -(sVar12 == 9);\n        }" if (parenthesized_expression "(pcVar11 == (char *)0x0)" ( (binary_expression "pcVar11 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          local_10e3 = 0;\n          local_113c = (Image *)0x0;\n        }" { (expression_statement "local_10e3 = 0;" (assignment_expression "local_10e3 = 0" identifier = number_literal) ;) (expression_statement "local_113c = (Image *)0x0;" (assignment_expression "local_113c = (Image *)0x0" identifier = (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n          local_113c = (Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception);\n          sVar12 = strlen(pcVar11);\n          local_10e3 = -(sVar12 == 9);\n        }" else (compound_statement "{\n          local_113c = (Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception);\n          sVar12 = strlen(pcVar11);\n          local_10e3 = -(sVar12 == 9);\n        }" { (expression_statement "local_113c = (Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception);" (assignment_expression "local_113c = (Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception)" identifier = (cast_expression "(Image *)GetImageRegistry(ImageRegistryType,pcVar11,exception)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageRegistry(ImageRegistryType,pcVar11,exception)" identifier (argument_list "(ImageRegistryType,pcVar11,exception)" ( identifier , identifier , identifier ))))) ;) (expression_statement "sVar12 = strlen(pcVar11);" (assignment_expression "sVar12 = strlen(pcVar11)" identifier = (call_expression "strlen(pcVar11)" identifier (argument_list "(pcVar11)" ( identifier )))) ;) (expression_statement "local_10e3 = -(sVar12 == 9);" (assignment_expression "local_10e3 = -(sVar12 == 9)" identifier = (unary_expression "-(sVar12 == 9)" - (parenthesized_expression "(sVar12 == 9)" ( (binary_expression "sVar12 == 9" identifier == number_literal) )))) ;) }))) (expression_statement "sVar13 = WriteBlobSignedLong(image,(local_114c->page).y);" (assignment_expression "sVar13 = WriteBlobSignedLong(image,(local_114c->page).y)" identifier = (call_expression "WriteBlobSignedLong(image,(local_114c->page).y)" identifier (argument_list "(image,(local_114c->page).y)" ( identifier , (field_expression "(local_114c->page).y" (parenthesized_expression "(local_114c->page)" ( (field_expression "local_114c->page" identifier -> field_identifier) )) . field_identifier) )))) ;) (expression_statement "sVar14 = WriteBlobSignedLong(image,(local_114c->page).x);" (assignment_expression "sVar14 = WriteBlobSignedLong(image,(local_114c->page).x)" identifier = (call_expression "WriteBlobSignedLong(image,(local_114c->page).x)" identifier (argument_list "(image,(local_114c->page).x)" ( identifier , (field_expression "(local_114c->page).x" (parenthesized_expression "(local_114c->page)" ( (field_expression "local_114c->page" identifier -> field_identifier) )) . field_identifier) )))) ;) (expression_statement "sVar15 = WriteBlobSignedLong(image,local_114c->rows + (local_114c->page).y);" (assignment_expression "sVar15 = WriteBlobSignedLong(image,local_114c->rows + (local_114c->page).y)" identifier = (call_expression "WriteBlobSignedLong(image,local_114c->rows + (local_114c->page).y)" identifier (argument_list "(image,local_114c->rows + (local_114c->page).y)" ( identifier , (binary_expression "local_114c->rows + (local_114c->page).y" (field_expression "local_114c->rows" identifier -> field_identifier) + (field_expression "(local_114c->page).y" (parenthesized_expression "(local_114c->page)" ( (field_expression "local_114c->page" identifier -> field_identifier) )) . field_identifier)) )))) ;) (expression_statement "sVar16 = WriteBlobSignedLong(image,local_114c->columns + (local_114c->page).x);" (assignment_expression "sVar16 = WriteBlobSignedLong(image,local_114c->columns + (local_114c->page).x)" identifier = (call_expression "WriteBlobSignedLong(image,local_114c->columns + (local_114c->page).x)" identifier (argument_list "(image,local_114c->columns + (local_114c->page).x)" ( identifier , (binary_expression "local_114c->columns + (local_114c->page).x" (field_expression "local_114c->columns" identifier -> field_identifier) + (field_expression "(local_114c->page).x" (parenthesized_expression "(local_114c->page)" ( (field_expression "local_114c->page" identifier -> field_identifier) )) . field_identifier)) )))) ;) (if_statement "if ((local_114c->storage_class == PseudoClass) ||\n           (MVar17 = IsImageGray(local_114c), MVar17 != MagickFalse)) {\n          local_1134 = 1;\n          sVar7 = 1;\n        }\n        else {\n          local_1134 = (local_114c->colorspace == CMYKColorspace) + 3;\n          sVar7 = (local_114c->colorspace == CMYKColorspace) + 3;\n        }" if (parenthesized_expression "((local_114c->storage_class == PseudoClass) ||\n           (MVar17 = IsImageGray(local_114c), MVar17 != MagickFalse))" ( (binary_expression "(local_114c->storage_class == PseudoClass) ||\n           (MVar17 = IsImageGray(local_114c), MVar17 != MagickFalse)" (parenthesized_expression "(local_114c->storage_class == PseudoClass)" ( (binary_expression "local_114c->storage_class == PseudoClass" (field_expression "local_114c->storage_class" identifier -> field_identifier) == identifier) )) || (parenthesized_expression "(MVar17 = IsImageGray(local_114c), MVar17 != MagickFalse)" ( (comma_expression "MVar17 = IsImageGray(local_114c), MVar17 != MagickFalse" (assignment_expression "MVar17 = IsImageGray(local_114c)" identifier = (call_expression "IsImageGray(local_114c)" identifier (argument_list "(local_114c)" ( identifier )))) , (binary_expression "MVar17 != MagickFalse" identifier != identifier)) ))) )) (compound_statement "{\n          local_1134 = 1;\n          sVar7 = 1;\n        }" { (expression_statement "local_1134 = 1;" (assignment_expression "local_1134 = 1" identifier = number_literal) ;) (expression_statement "sVar7 = 1;" (assignment_expression "sVar7 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          local_1134 = (local_114c->colorspace == CMYKColorspace) + 3;\n          sVar7 = (local_114c->colorspace == CMYKColorspace) + 3;\n        }" else (compound_statement "{\n          local_1134 = (local_114c->colorspace == CMYKColorspace) + 3;\n          sVar7 = (local_114c->colorspace == CMYKColorspace) + 3;\n        }" { (expression_statement "local_1134 = (local_114c->colorspace == CMYKColorspace) + 3;" (assignment_expression "local_1134 = (local_114c->colorspace == CMYKColorspace) + 3" identifier = (binary_expression "(local_114c->colorspace == CMYKColorspace) + 3" (parenthesized_expression "(local_114c->colorspace == CMYKColorspace)" ( (binary_expression "local_114c->colorspace == CMYKColorspace" (field_expression "local_114c->colorspace" identifier -> field_identifier) == identifier) )) + number_literal)) ;) (expression_statement "sVar7 = (local_114c->colorspace == CMYKColorspace) + 3;" (assignment_expression "sVar7 = (local_114c->colorspace == CMYKColorspace) + 3" identifier = (binary_expression "(local_114c->colorspace == CMYKColorspace) + 3" (parenthesized_expression "(local_114c->colorspace == CMYKColorspace)" ( (binary_expression "local_114c->colorspace == CMYKColorspace" (field_expression "local_114c->colorspace" identifier -> field_identifier) == identifier) )) + number_literal)) ;) }))) (expression_statement "sVar18 = WriteBlobShort(image,((sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2) -\n                                      (ushort)(local_113c == (Image *)0x0));" (assignment_expression "sVar18 = WriteBlobShort(image,((sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2) -\n                                      (ushort)(local_113c == (Image *)0x0))" identifier = (call_expression "WriteBlobShort(image,((sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2) -\n                                      (ushort)(local_113c == (Image *)0x0))" identifier (argument_list "(image,((sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2) -\n                                      (ushort)(local_113c == (Image *)0x0))" ( identifier , (binary_expression "((sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2) -\n                                      (ushort)(local_113c == (Image *)0x0)" (parenthesized_expression "((sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2)" ( (binary_expression "(sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)) + 2" (parenthesized_expression "(sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait))" ( (binary_expression "sVar7 - (ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)" identifier - (call_expression "(ushort)(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait)" ( (binary_expression "local_114c->alpha_trait ==\n                                                        UndefinedPixelTrait" (field_expression "local_114c->alpha_trait" identifier -> field_identifier) == identifier) )))) )) + number_literal) )) - (call_expression "(ushort)(local_113c == (Image *)0x0)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(local_113c == (Image *)0x0)" ( (binary_expression "local_113c == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )))) )))) ;) (expression_statement "iVar2 = local_1128 + 1;" (assignment_expression "iVar2 = local_1128 + 1" identifier = (binary_expression "local_1128 + 1" identifier + number_literal)) ;) (expression_statement "local_1144 = sVar18 + uVar10 + sVar13 + sVar14 + sVar15 + sVar16;" (assignment_expression "local_1144 = sVar18 + uVar10 + sVar13 + sVar14 + sVar15 + sVar16" identifier = (binary_expression "sVar18 + uVar10 + sVar13 + sVar14 + sVar15 + sVar16" (binary_expression "sVar18 + uVar10 + sVar13 + sVar14 + sVar15" (binary_expression "sVar18 + uVar10 + sVar13 + sVar14" (binary_expression "sVar18 + uVar10 + sVar13" (binary_expression "sVar18 + uVar10" identifier + identifier) + identifier) + identifier) + identifier) + identifier)) ;) (expression_statement "MVar34 = TellBlob(image);" (assignment_expression "MVar34 = TellBlob(image)" identifier = (call_expression "TellBlob(image)" identifier (argument_list "(image)" ( identifier )))) ;) (expression_statement "*(int *)(memory + local_1128) = (int)MVar34;" (assignment_expression "*(int *)(memory + local_1128) = (int)MVar34" (pointer_expression "*(int *)(memory + local_1128)" * (cast_expression "(int *)(memory + local_1128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(memory + local_1128)" ( (binary_expression "memory + local_1128" identifier + identifier) )))) = (cast_expression "(int)MVar34" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(int *)((int)memory + iVar2 * 8 + -4) = (int)((ulonglong)MVar34 >> 0x20);" (assignment_expression "*(int *)((int)memory + iVar2 * 8 + -4) = (int)((ulonglong)MVar34 >> 0x20)" (pointer_expression "*(int *)((int)memory + iVar2 * 8 + -4)" * (cast_expression "(int *)((int)memory + iVar2 * 8 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)memory + iVar2 * 8 + -4)" ( (binary_expression "(int)memory + iVar2 * 8 + -4" (binary_expression "(int)memory + iVar2 * 8" (cast_expression "(int)memory" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar2 * 8" identifier * number_literal)) + number_literal) )))) = (cast_expression "(int)((ulonglong)MVar34 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)MVar34 >> 0x20)" ( (binary_expression "(ulonglong)MVar34 >> 0x20" (cast_expression "(ulonglong)MVar34" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar31 = 0;" (assignment_expression "iVar31 = 0" identifier = number_literal) ;) (do_statement "do {\n          while (sVar13 = WriteBlobShort(image,(ushort)iVar31), psd_info->version == 1) {\n            iVar31 = iVar31 + 1;\n            sVar14 = WriteBlobLong(image,0);\n            local_1144 = local_1144 + sVar13 + sVar14;\n            if (iVar31 == local_1134) goto LAB_0025ff56;\n          }\n          iVar31 = iVar31 + 1;\n          sVar14 = WriteBlobLongLong(image,0);\n          local_1144 = local_1144 + sVar13 + sVar14;\n        } while (iVar31 != local_1134);" do (compound_statement "{\n          while (sVar13 = WriteBlobShort(image,(ushort)iVar31), psd_info->version == 1) {\n            iVar31 = iVar31 + 1;\n            sVar14 = WriteBlobLong(image,0);\n            local_1144 = local_1144 + sVar13 + sVar14;\n            if (iVar31 == local_1134) goto LAB_0025ff56;\n          }\n          iVar31 = iVar31 + 1;\n          sVar14 = WriteBlobLongLong(image,0);\n          local_1144 = local_1144 + sVar13 + sVar14;\n        }" { (while_statement "while (sVar13 = WriteBlobShort(image,(ushort)iVar31), psd_info->version == 1) {\n            iVar31 = iVar31 + 1;\n            sVar14 = WriteBlobLong(image,0);\n            local_1144 = local_1144 + sVar13 + sVar14;\n            if (iVar31 == local_1134) goto LAB_0025ff56;\n          }" while (parenthesized_expression "(sVar13 = WriteBlobShort(image,(ushort)iVar31), psd_info->version == 1)" ( (comma_expression "sVar13 = WriteBlobShort(image,(ushort)iVar31), psd_info->version == 1" (assignment_expression "sVar13 = WriteBlobShort(image,(ushort)iVar31)" identifier = (call_expression "WriteBlobShort(image,(ushort)iVar31)" identifier (argument_list "(image,(ushort)iVar31)" ( identifier , (cast_expression "(ushort)iVar31" ( (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            iVar31 = iVar31 + 1;\n            sVar14 = WriteBlobLong(image,0);\n            local_1144 = local_1144 + sVar13 + sVar14;\n            if (iVar31 == local_1134) goto LAB_0025ff56;\n          }" { (expression_statement "iVar31 = iVar31 + 1;" (assignment_expression "iVar31 = iVar31 + 1" identifier = (binary_expression "iVar31 + 1" identifier + number_literal)) ;) (expression_statement "sVar14 = WriteBlobLong(image,0);" (assignment_expression "sVar14 = WriteBlobLong(image,0)" identifier = (call_expression "WriteBlobLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) (expression_statement "local_1144 = local_1144 + sVar13 + sVar14;" (assignment_expression "local_1144 = local_1144 + sVar13 + sVar14" identifier = (binary_expression "local_1144 + sVar13 + sVar14" (binary_expression "local_1144 + sVar13" identifier + identifier) + identifier)) ;) (if_statement "if (iVar31 == local_1134) goto LAB_0025ff56;" if (parenthesized_expression "(iVar31 == local_1134)" ( (binary_expression "iVar31 == local_1134" identifier == identifier) )) (goto_statement "goto LAB_0025ff56;" goto statement_identifier ;)) })) (expression_statement "iVar31 = iVar31 + 1;" (assignment_expression "iVar31 = iVar31 + 1" identifier = (binary_expression "iVar31 + 1" identifier + number_literal)) ;) (expression_statement "sVar14 = WriteBlobLongLong(image,0);" (assignment_expression "sVar14 = WriteBlobLongLong(image,0)" identifier = (call_expression "WriteBlobLongLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) (expression_statement "local_1144 = local_1144 + sVar13 + sVar14;" (assignment_expression "local_1144 = local_1144 + sVar13 + sVar14" identifier = (binary_expression "local_1144 + sVar13 + sVar14" (binary_expression "local_1144 + sVar13" identifier + identifier) + identifier)) ;) }) while (parenthesized_expression "(iVar31 != local_1134)" ( (binary_expression "iVar31 != local_1134" identifier != identifier) )) ;) (labeled_statement "LAB_0025ff56:\n        if (local_114c->alpha_trait != UndefinedPixelTrait) {\n          sVar13 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }" statement_identifier : (if_statement "if (local_114c->alpha_trait != UndefinedPixelTrait) {\n          sVar13 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }" if (parenthesized_expression "(local_114c->alpha_trait != UndefinedPixelTrait)" ( (binary_expression "local_114c->alpha_trait != UndefinedPixelTrait" (field_expression "local_114c->alpha_trait" identifier -> field_identifier) != identifier) )) (compound_statement "{\n          sVar13 = WriteBlobShort(image,0xffff);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }" { (expression_statement "sVar13 = WriteBlobShort(image,0xffff);" (assignment_expression "sVar13 = 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            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = 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            iVar31 = WriteBlobLong(image,0);\n          }" { (expression_statement "iVar31 = WriteBlobLong(image,0);" (assignment_expression "iVar31 = WriteBlobLong(image,0)" identifier = (call_expression "WriteBlobLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }" else (compound_statement "{\n            iVar31 = WriteBlobLongLong(image,0);\n          }" { (expression_statement "iVar31 = WriteBlobLongLong(image,0);" (assignment_expression "iVar31 = WriteBlobLongLong(image,0)" identifier = (call_expression "WriteBlobLongLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) }))) (expression_statement "local_1144 = iVar31 + local_1144 + sVar13;" (assignment_expression "local_1144 = iVar31 + local_1144 + sVar13" identifier = (binary_expression "iVar31 + local_1144 + sVar13" (binary_expression "iVar31 + local_1144" identifier + identifier) + identifier)) ;) }))) (if_statement "if (local_113c != (Image *)0x0) {\n          sVar13 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }" if (parenthesized_expression "(local_113c != (Image *)0x0)" ( (binary_expression "local_113c != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          sVar13 = WriteBlobShort(image,0xfffe);\n          if (psd_info->version == 1) {\n            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }\n          local_1144 = iVar31 + local_1144 + sVar13;\n        }" { (expression_statement "sVar13 = WriteBlobShort(image,0xfffe);" (assignment_expression "sVar13 = 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            iVar31 = WriteBlobLong(image,0);\n          }\n          else {\n            iVar31 = 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            iVar31 = WriteBlobLong(image,0);\n          }" { (expression_statement "iVar31 = WriteBlobLong(image,0);" (assignment_expression "iVar31 = WriteBlobLong(image,0)" identifier = (call_expression "WriteBlobLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n            iVar31 = WriteBlobLongLong(image,0);\n          }" else (compound_statement "{\n            iVar31 = WriteBlobLongLong(image,0);\n          }" { (expression_statement "iVar31 = WriteBlobLongLong(image,0);" (assignment_expression "iVar31 = WriteBlobLongLong(image,0)" identifier = (call_expression "WriteBlobLongLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) }))) (expression_statement "local_1144 = iVar31 + local_1144 + sVar13;" (assignment_expression "local_1144 = iVar31 + local_1144 + sVar13" identifier = (binary_expression "iVar31 + local_1144 + sVar13" (binary_expression "iVar31 + local_1144" identifier + identifier) + identifier)) ;) })) (expression_statement "pcVar11 = "8BIM";" (assignment_expression "pcVar11 = "8BIM"" identifier = (string_literal ""8BIM"" " string_content ")) ;) (if_statement "if (image->endian == LSBEndian) {\n          pcVar11 = "MIB8";\n        }" if (parenthesized_expression "(image->endian == LSBEndian)" ( (binary_expression "image->endian == LSBEndian" (field_expression "image->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n          pcVar11 = "MIB8";\n        }" { (expression_statement "pcVar11 = "MIB8";" (assignment_expression "pcVar11 = "MIB8"" identifier = (string_literal ""MIB8"" " string_content ")) ;) })) (expression_statement "sVar13 = WriteBlobString(image,pcVar11);" (assignment_expression "sVar13 = WriteBlobString(image,pcVar11)" identifier = (call_expression "WriteBlobString(image,pcVar11)" identifier (argument_list "(image,pcVar11)" ( identifier , identifier )))) ;) (switch_statement "switch(local_114c->compose) {\n        case ColorBurnCompositeOp:\n          pcVar11 = "idiv";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar11 = "div ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar11 = "colr";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "rloc";\n          }\n          break;\n        default:\n          pcVar11 = "norm";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar11 = "dark";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar11 = "diff";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar11 = "diss";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar11 = "smud";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar11 = "hLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar11 = "hMix";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar11 = "hue ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar11 = "lite";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar11 = "lbrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar11 = "lddg";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar11 = "lLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar11 = "lum ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar11 = "mul ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar11 = "over";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar11 = "pLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar11 = "sat ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar11 = "scrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar11 = "sLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar11 = "vLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLv";\n          }\n        }" switch (parenthesized_expression "(local_114c->compose)" ( (field_expression "local_114c->compose" identifier -> field_identifier) )) (compound_statement "{\n        case ColorBurnCompositeOp:\n          pcVar11 = "idiv";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "vidi";\n          }\n          break;\n        case ColorDodgeCompositeOp:\n          pcVar11 = "div ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " vid";\n          }\n          break;\n        case ColorizeCompositeOp:\n          pcVar11 = "colr";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "rloc";\n          }\n          break;\n        default:\n          pcVar11 = "norm";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "mron";\n          }\n          break;\n        case DarkenCompositeOp:\n          pcVar11 = "dark";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "krad";\n          }\n          break;\n        case DifferenceCompositeOp:\n          pcVar11 = "diff";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ffid";\n          }\n          break;\n        case DissolveCompositeOp:\n          pcVar11 = "diss";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ssid";\n          }\n          break;\n        case ExclusionCompositeOp:\n          pcVar11 = "smud";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "dums";\n          }\n          break;\n        case HardLightCompositeOp:\n          pcVar11 = "hLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLh";\n          }\n          break;\n        case HardMixCompositeOp:\n          pcVar11 = "hMix";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "xiMh";\n          }\n          break;\n        case HueCompositeOp:\n          pcVar11 = "hue ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " euh";\n          }\n          break;\n        case LightenCompositeOp:\n          pcVar11 = "lite";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "etil";\n          }\n          break;\n        case LinearBurnCompositeOp:\n          pcVar11 = "lbrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrbl";\n          }\n          break;\n        case LinearDodgeCompositeOp:\n          pcVar11 = "lddg";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "gddl";\n          }\n          break;\n        case LinearLightCompositeOp:\n          pcVar11 = "lLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLl";\n          }\n          break;\n        case LuminizeCompositeOp:\n          pcVar11 = "lum ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " mul";\n          }\n          break;\n        case MultiplyCompositeOp:\n          pcVar11 = "mul ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " lum";\n          }\n          break;\n        case OverlayCompositeOp:\n          pcVar11 = "over";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "revo";\n          }\n          break;\n        case PinLightCompositeOp:\n          pcVar11 = "pLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLp";\n          }\n          break;\n        case SaturateCompositeOp:\n          pcVar11 = "sat ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " tas";\n          }\n          break;\n        case ScreenCompositeOp:\n          pcVar11 = "scrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrcs";\n          }\n          break;\n        case SoftLightCompositeOp:\n          pcVar11 = "sLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLs";\n          }\n          break;\n        case VividLightCompositeOp:\n          pcVar11 = "vLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLv";\n          }\n        }" { (case_statement "case ColorBurnCompositeOp:\n          pcVar11 = "idiv";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "vidi";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "idiv";" (assignment_expression "pcVar11 = "idiv"" identifier = (string_literal ""idiv"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "vidi";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "vidi";\n          }" { (expression_statement "pcVar11 = "vidi";" (assignment_expression "pcVar11 = "vidi"" identifier = (string_literal ""vidi"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case ColorDodgeCompositeOp:\n          pcVar11 = "div ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " vid";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "div ";" (assignment_expression "pcVar11 = "div "" identifier = (string_literal ""div "" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = " vid";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = " vid";\n          }" { (expression_statement "pcVar11 = " vid";" (assignment_expression "pcVar11 = " vid"" identifier = (string_literal "" vid"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case ColorizeCompositeOp:\n          pcVar11 = "colr";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "rloc";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "colr";" (assignment_expression "pcVar11 = "colr"" identifier = (string_literal ""colr"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "rloc";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "rloc";\n          }" { (expression_statement "pcVar11 = "rloc";" (assignment_expression "pcVar11 = "rloc"" identifier = (string_literal ""rloc"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "default:\n          pcVar11 = "norm";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "mron";\n          }\n          break;" default : (expression_statement "pcVar11 = "norm";" (assignment_expression "pcVar11 = "norm"" identifier = (string_literal ""norm"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "mron";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "mron";\n          }" { (expression_statement "pcVar11 = "mron";" (assignment_expression "pcVar11 = "mron"" identifier = (string_literal ""mron"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case DarkenCompositeOp:\n          pcVar11 = "dark";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "krad";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "dark";" (assignment_expression "pcVar11 = "dark"" identifier = (string_literal ""dark"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "krad";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "krad";\n          }" { (expression_statement "pcVar11 = "krad";" (assignment_expression "pcVar11 = "krad"" identifier = (string_literal ""krad"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case DifferenceCompositeOp:\n          pcVar11 = "diff";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ffid";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "diff";" (assignment_expression "pcVar11 = "diff"" identifier = (string_literal ""diff"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ffid";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "ffid";\n          }" { (expression_statement "pcVar11 = "ffid";" (assignment_expression "pcVar11 = "ffid"" identifier = (string_literal ""ffid"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case DissolveCompositeOp:\n          pcVar11 = "diss";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ssid";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "diss";" (assignment_expression "pcVar11 = "diss"" identifier = (string_literal ""diss"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "ssid";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "ssid";\n          }" { (expression_statement "pcVar11 = "ssid";" (assignment_expression "pcVar11 = "ssid"" identifier = (string_literal ""ssid"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case ExclusionCompositeOp:\n          pcVar11 = "smud";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "dums";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "smud";" (assignment_expression "pcVar11 = "smud"" identifier = (string_literal ""smud"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "dums";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "dums";\n          }" { (expression_statement "pcVar11 = "dums";" (assignment_expression "pcVar11 = "dums"" identifier = (string_literal ""dums"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case HardLightCompositeOp:\n          pcVar11 = "hLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLh";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "hLit";" (assignment_expression "pcVar11 = "hLit"" identifier = (string_literal ""hLit"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLh";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "tiLh";\n          }" { (expression_statement "pcVar11 = "tiLh";" (assignment_expression "pcVar11 = "tiLh"" identifier = (string_literal ""tiLh"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case HardMixCompositeOp:\n          pcVar11 = "hMix";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "xiMh";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "hMix";" (assignment_expression "pcVar11 = "hMix"" identifier = (string_literal ""hMix"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "xiMh";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "xiMh";\n          }" { (expression_statement "pcVar11 = "xiMh";" (assignment_expression "pcVar11 = "xiMh"" identifier = (string_literal ""xiMh"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case HueCompositeOp:\n          pcVar11 = "hue ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " euh";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "hue ";" (assignment_expression "pcVar11 = "hue "" identifier = (string_literal ""hue "" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = " euh";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = " euh";\n          }" { (expression_statement "pcVar11 = " euh";" (assignment_expression "pcVar11 = " euh"" identifier = (string_literal "" euh"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case LightenCompositeOp:\n          pcVar11 = "lite";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "etil";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "lite";" (assignment_expression "pcVar11 = "lite"" identifier = (string_literal ""lite"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "etil";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "etil";\n          }" { (expression_statement "pcVar11 = "etil";" (assignment_expression "pcVar11 = "etil"" identifier = (string_literal ""etil"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case LinearBurnCompositeOp:\n          pcVar11 = "lbrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrbl";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "lbrn";" (assignment_expression "pcVar11 = "lbrn"" identifier = (string_literal ""lbrn"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrbl";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "nrbl";\n          }" { (expression_statement "pcVar11 = "nrbl";" (assignment_expression "pcVar11 = "nrbl"" identifier = (string_literal ""nrbl"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case LinearDodgeCompositeOp:\n          pcVar11 = "lddg";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "gddl";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "lddg";" (assignment_expression "pcVar11 = "lddg"" identifier = (string_literal ""lddg"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "gddl";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "gddl";\n          }" { (expression_statement "pcVar11 = "gddl";" (assignment_expression "pcVar11 = "gddl"" identifier = (string_literal ""gddl"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case LinearLightCompositeOp:\n          pcVar11 = "lLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLl";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "lLit";" (assignment_expression "pcVar11 = "lLit"" identifier = (string_literal ""lLit"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLl";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "tiLl";\n          }" { (expression_statement "pcVar11 = "tiLl";" (assignment_expression "pcVar11 = "tiLl"" identifier = (string_literal ""tiLl"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case LuminizeCompositeOp:\n          pcVar11 = "lum ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " mul";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "lum ";" (assignment_expression "pcVar11 = "lum "" identifier = (string_literal ""lum "" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = " mul";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = " mul";\n          }" { (expression_statement "pcVar11 = " mul";" (assignment_expression "pcVar11 = " mul"" identifier = (string_literal "" mul"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case MultiplyCompositeOp:\n          pcVar11 = "mul ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " lum";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "mul ";" (assignment_expression "pcVar11 = "mul "" identifier = (string_literal ""mul "" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = " lum";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = " lum";\n          }" { (expression_statement "pcVar11 = " lum";" (assignment_expression "pcVar11 = " lum"" identifier = (string_literal "" lum"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case OverlayCompositeOp:\n          pcVar11 = "over";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "revo";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "over";" (assignment_expression "pcVar11 = "over"" identifier = (string_literal ""over"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "revo";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "revo";\n          }" { (expression_statement "pcVar11 = "revo";" (assignment_expression "pcVar11 = "revo"" identifier = (string_literal ""revo"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case PinLightCompositeOp:\n          pcVar11 = "pLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLp";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "pLit";" (assignment_expression "pcVar11 = "pLit"" identifier = (string_literal ""pLit"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLp";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "tiLp";\n          }" { (expression_statement "pcVar11 = "tiLp";" (assignment_expression "pcVar11 = "tiLp"" identifier = (string_literal ""tiLp"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case SaturateCompositeOp:\n          pcVar11 = "sat ";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = " tas";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "sat ";" (assignment_expression "pcVar11 = "sat "" identifier = (string_literal ""sat "" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = " tas";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = " tas";\n          }" { (expression_statement "pcVar11 = " tas";" (assignment_expression "pcVar11 = " tas"" identifier = (string_literal "" tas"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case ScreenCompositeOp:\n          pcVar11 = "scrn";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrcs";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "scrn";" (assignment_expression "pcVar11 = "scrn"" identifier = (string_literal ""scrn"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "nrcs";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "nrcs";\n          }" { (expression_statement "pcVar11 = "nrcs";" (assignment_expression "pcVar11 = "nrcs"" identifier = (string_literal ""nrcs"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case SoftLightCompositeOp:\n          pcVar11 = "sLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLs";\n          }\n          break;" case identifier : (expression_statement "pcVar11 = "sLit";" (assignment_expression "pcVar11 = "sLit"" identifier = (string_literal ""sLit"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLs";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "tiLs";\n          }" { (expression_statement "pcVar11 = "tiLs";" (assignment_expression "pcVar11 = "tiLs"" identifier = (string_literal ""tiLs"" " string_content ")) ;) })) (break_statement "break;" break ;)) (case_statement "case VividLightCompositeOp:\n          pcVar11 = "vLit";\n          if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLv";\n          }" case identifier : (expression_statement "pcVar11 = "vLit";" (assignment_expression "pcVar11 = "vLit"" identifier = (string_literal ""vLit"" " string_content ")) ;) (if_statement "if (local_114c->endian == LSBEndian) {\n            pcVar11 = "tiLv";\n          }" if (parenthesized_expression "(local_114c->endian == LSBEndian)" ( (binary_expression "local_114c->endian == LSBEndian" (field_expression "local_114c->endian" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            pcVar11 = "tiLv";\n          }" { (expression_statement "pcVar11 = "tiLv";" (assignment_expression "pcVar11 = "tiLv"" identifier = (string_literal ""tiLv"" " string_content ")) ;) }))) })) (expression_statement "sVar14 = WriteBlobString(image,pcVar11);" (assignment_expression "sVar14 = WriteBlobString(image,pcVar11)" identifier = (call_expression "WriteBlobString(image,pcVar11)" identifier (argument_list "(image,pcVar11)" ( identifier , identifier )))) ;) (expression_statement "pcVar11 = GetImageArtifact(local_114c,"psd:layer.opacity");" (assignment_expression "pcVar11 = GetImageArtifact(local_114c,"psd:layer.opacity")" identifier = (call_expression "GetImageArtifact(local_114c,"psd:layer.opacity")" identifier (argument_list "(local_114c,"psd:layer.opacity")" ( identifier , (string_literal ""psd:layer.opacity"" " string_content ") )))) ;) (if_statement "if (pcVar11 == (char *)0x0) {\n          iVar31 = WriteBlobByte(image,0xff);\n        }\n        else {\n          lVar19 = strtol(pcVar11,(char **)0x0,10);\n          value = '\0';\n          if (0.0 < (float)lVar19) {\n            value = 0xff;\n            fVar5 = (float)lVar19 / DAT_002a7ff0;\n            if (fVar5 < DAT_002a7ff4) {\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }\n          }\n          iVar31 = WriteBlobByte(image,value);\n          ApplyPSDLayerOpacity(local_114c,(double)lVar19,MagickTrue,exception);\n        }" if (parenthesized_expression "(pcVar11 == (char *)0x0)" ( (binary_expression "pcVar11 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar31 = WriteBlobByte(image,0xff);\n        }" { (expression_statement "iVar31 = WriteBlobByte(image,0xff);" (assignment_expression "iVar31 = WriteBlobByte(image,0xff)" identifier = (call_expression "WriteBlobByte(image,0xff)" identifier (argument_list "(image,0xff)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n          lVar19 = strtol(pcVar11,(char **)0x0,10);\n          value = '\0';\n          if (0.0 < (float)lVar19) {\n            value = 0xff;\n            fVar5 = (float)lVar19 / DAT_002a7ff0;\n            if (fVar5 < DAT_002a7ff4) {\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }\n          }\n          iVar31 = WriteBlobByte(image,value);\n          ApplyPSDLayerOpacity(local_114c,(double)lVar19,MagickTrue,exception);\n        }" else (compound_statement "{\n          lVar19 = strtol(pcVar11,(char **)0x0,10);\n          value = '\0';\n          if (0.0 < (float)lVar19) {\n            value = 0xff;\n            fVar5 = (float)lVar19 / DAT_002a7ff0;\n            if (fVar5 < DAT_002a7ff4) {\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }\n          }\n          iVar31 = WriteBlobByte(image,value);\n          ApplyPSDLayerOpacity(local_114c,(double)lVar19,MagickTrue,exception);\n        }" { (expression_statement "lVar19 = strtol(pcVar11,(char **)0x0,10);" (assignment_expression "lVar19 = strtol(pcVar11,(char **)0x0,10)" identifier = (call_expression "strtol(pcVar11,(char **)0x0,10)" identifier (argument_list "(pcVar11,(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 "value = '\0';" (assignment_expression "value = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (0.0 < (float)lVar19) {\n            value = 0xff;\n            fVar5 = (float)lVar19 / DAT_002a7ff0;\n            if (fVar5 < DAT_002a7ff4) {\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }\n          }" if (parenthesized_expression "(0.0 < (float)lVar19)" ( (binary_expression "0.0 < (float)lVar19" number_literal < (cast_expression "(float)lVar19" ( (type_descriptor "float" primitive_type) ) identifier)) )) (compound_statement "{\n            value = 0xff;\n            fVar5 = (float)lVar19 / DAT_002a7ff0;\n            if (fVar5 < DAT_002a7ff4) {\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }\n          }" { (expression_statement "value = 0xff;" (assignment_expression "value = 0xff" identifier = number_literal) ;) (expression_statement "fVar5 = (float)lVar19 / DAT_002a7ff0;" (assignment_expression "fVar5 = (float)lVar19 / DAT_002a7ff0" identifier = (binary_expression "(float)lVar19 / DAT_002a7ff0" (cast_expression "(float)lVar19" ( (type_descriptor "float" primitive_type) ) identifier) / identifier)) ;) (if_statement "if (fVar5 < DAT_002a7ff4) {\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }" if (parenthesized_expression "(fVar5 < DAT_002a7ff4)" ( (binary_expression "fVar5 < DAT_002a7ff4" identifier < identifier) )) (compound_statement "{\n              value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);\n            }" { (expression_statement "value = (uchar)(short)ROUND(fVar5 + DAT_0029f124);" (assignment_expression "value = (uchar)(short)ROUND(fVar5 + DAT_0029f124)" identifier = (cast_expression "(uchar)(short)ROUND(fVar5 + DAT_0029f124)" ( (type_descriptor "uchar" type_identifier) ) (cast_expression "(short)ROUND(fVar5 + DAT_0029f124)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (call_expression "ROUND(fVar5 + DAT_0029f124)" identifier (argument_list "(fVar5 + DAT_0029f124)" ( (binary_expression "fVar5 + DAT_0029f124" identifier + identifier) )))))) ;) })) })) (expression_statement "iVar31 = WriteBlobByte(image,value);" (assignment_expression "iVar31 = WriteBlobByte(image,value)" identifier = (call_expression "WriteBlobByte(image,value)" identifier (argument_list "(image,value)" ( identifier , identifier )))) ;) (expression_statement "ApplyPSDLayerOpacity(local_114c,(double)lVar19,MagickTrue,exception);" (call_expression "ApplyPSDLayerOpacity(local_114c,(double)lVar19,MagickTrue,exception)" identifier (argument_list "(local_114c,(double)lVar19,MagickTrue,exception)" ( identifier , (cast_expression "(double)lVar19" ( (type_descriptor "double" primitive_type) ) identifier) , identifier , identifier ))) ;) }))) (expression_statement "sVar15 = WriteBlobByte(image,'\0');" (assignment_expression "sVar15 = WriteBlobByte(image,'\0')" identifier = (call_expression "WriteBlobByte(image,'\0')" identifier (argument_list "(image,'\0')" ( identifier , (char_literal "'\0'" ' escape_sequence ') )))) ;) (expression_statement "sVar16 = WriteBlobByte(image,(local_114c->compose == NoCompositeOp) * '\x03' + '\x01');" (assignment_expression "sVar16 = WriteBlobByte(image,(local_114c->compose == NoCompositeOp) * '\x03' + '\x01')" identifier = (call_expression "WriteBlobByte(image,(local_114c->compose == NoCompositeOp) * '\x03' + '\x01')" identifier (argument_list "(image,(local_114c->compose == NoCompositeOp) * '\x03' + '\x01')" ( identifier , (binary_expression "(local_114c->compose == NoCompositeOp) * '\x03' + '\x01'" (binary_expression "(local_114c->compose == NoCompositeOp) * '\x03'" (parenthesized_expression "(local_114c->compose == NoCompositeOp)" ( (binary_expression "local_114c->compose == NoCompositeOp" (field_expression "local_114c->compose" identifier -> field_identifier) == identifier) )) * (char_literal "'\x03'" ' escape_sequence ')) + (char_literal "'\x01'" ' escape_sequence ')) )))) ;) (expression_statement "sVar18 = WriteBlobByte(image,'\0');" (assignment_expression "sVar18 = WriteBlobByte(image,'\0')" identifier = (call_expression "WriteBlobByte(image,'\0')" identifier (argument_list "(image,'\0')" ( identifier , (char_literal "'\0'" ' escape_sequence ') )))) ;) (expression_statement "iVar31 = sVar18 + local_1144 + sVar13 + sVar14 + iVar31 + sVar15 + sVar16;" (assignment_expression "iVar31 = sVar18 + local_1144 + sVar13 + sVar14 + iVar31 + sVar15 + sVar16" identifier = (binary_expression "sVar18 + local_1144 + sVar13 + sVar14 + iVar31 + sVar15 + sVar16" (binary_expression "sVar18 + local_1144 + sVar13 + sVar14 + iVar31 + sVar15" (binary_expression "sVar18 + local_1144 + sVar13 + sVar14 + iVar31" (binary_expression "sVar18 + local_1144 + sVar13 + sVar14" (binary_expression "sVar18 + local_1144 + sVar13" (binary_expression "sVar18 + local_1144" identifier + identifier) + identifier) + identifier) + identifier) + identifier) + identifier)) ;) (expression_statement "puVar29 = &DAT_0030c7e0;" (assignment_expression "puVar29 = &DAT_0030c7e0" identifier = (pointer_expression "&DAT_0030c7e0" & identifier)) ;) (expression_statement "pacVar32 = allowed;" (assignment_expression "pacVar32 = allowed" identifier = identifier) ;) (for_statement "for (iVar26 = 0x2d; iVar26 != 0; iVar26 = iVar26 + -1) {\n          *(undefined4 *)*pacVar32 = *puVar29;\n          puVar29 = puVar29 + (uint)bVar33 * -2 + 1;\n          pacVar32 = (char (*) [5])((int)pacVar32 + (uint)bVar33 * -8 + 4);\n        }" for ( (assignment_expression "iVar26 = 0x2d" identifier = number_literal) ; (binary_expression "iVar26 != 0" identifier != number_literal) ; (assignment_expression "iVar26 = iVar26 + -1" identifier = (binary_expression "iVar26 + -1" identifier + number_literal)) ) (compound_statement "{\n          *(undefined4 *)*pacVar32 = *puVar29;\n          puVar29 = puVar29 + (uint)bVar33 * -2 + 1;\n          pacVar32 = (char (*) [5])((int)pacVar32 + (uint)bVar33 * -8 + 4);\n        }" { (expression_statement "*(undefined4 *)*pacVar32 = *puVar29;" (assignment_expression "*(undefined4 *)*pacVar32 = *puVar29" (pointer_expression "*(undefined4 *)*pacVar32" * (cast_expression "(undefined4 *)*pacVar32" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pacVar32" * identifier))) = (pointer_expression "*puVar29" * identifier)) ;) (expression_statement "puVar29 = puVar29 + (uint)bVar33 * -2 + 1;" (assignment_expression "puVar29 = puVar29 + (uint)bVar33 * -2 + 1" identifier = (binary_expression "puVar29 + (uint)bVar33 * -2 + 1" (binary_expression "puVar29 + (uint)bVar33 * -2" identifier + (binary_expression "(uint)bVar33 * -2" (cast_expression "(uint)bVar33" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pacVar32 = (char (*) [5])((int)pacVar32 + (uint)bVar33 * -8 + 4);" (assignment_expression "pacVar32 = (char (*) [5])((int)pacVar32 + (uint)bVar33 * -8 + 4)" identifier = (cast_expression "(char (*) [5])((int)pacVar32 + (uint)bVar33 * -8 + 4)" ( (type_descriptor "char (*) [5]" primitive_type (abstract_array_declarator "(*) [5]" (abstract_parenthesized_declarator "(*)" ( (abstract_pointer_declarator "*" *) )) [ number_literal ])) ) (parenthesized_expression "((int)pacVar32 + (uint)bVar33 * -8 + 4)" ( (binary_expression "(int)pacVar32 + (uint)bVar33 * -8 + 4" (binary_expression "(int)pacVar32 + (uint)bVar33 * -8" (cast_expression "(int)pacVar32" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar33 * -8" (cast_expression "(uint)bVar33" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "pSVar20 = GetImageProfile(local_114c,"psd:additional-info");" (assignment_expression "pSVar20 = GetImageProfile(local_114c,"psd:additional-info")" identifier = (call_expression "GetImageProfile(local_114c,"psd:additional-info")" identifier (argument_list "(local_114c,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (if_statement "if (pSVar20 == (StringInfo *)0x0) {\nLAB_00260a9c:\n          string_info = (StringInfo *)0x0;\n        }\n        else {\n          pcVar11 = GetImageOption(image_info,"psd:additional-info");\n          iVar26 = LocaleCompare(pcVar11,"all");\n          string_info = pSVar20;\n          if (iVar26 != 0) {\n            iVar26 = LocaleCompare(pcVar11,"selective");\n            if (iVar26 == 0) {\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }\n          }\n        }" if (parenthesized_expression "(pSVar20 == (StringInfo *)0x0)" ( (binary_expression "pSVar20 == (StringInfo *)0x0" identifier == (cast_expression "(StringInfo *)0x0" ( (type_descriptor "StringInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00260a9c:\n          string_info = (StringInfo *)0x0;\n        }" { (labeled_statement "LAB_00260a9c:\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          pcVar11 = GetImageOption(image_info,"psd:additional-info");\n          iVar26 = LocaleCompare(pcVar11,"all");\n          string_info = pSVar20;\n          if (iVar26 != 0) {\n            iVar26 = LocaleCompare(pcVar11,"selective");\n            if (iVar26 == 0) {\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }\n          }\n        }" else (compound_statement "{\n          pcVar11 = GetImageOption(image_info,"psd:additional-info");\n          iVar26 = LocaleCompare(pcVar11,"all");\n          string_info = pSVar20;\n          if (iVar26 != 0) {\n            iVar26 = LocaleCompare(pcVar11,"selective");\n            if (iVar26 == 0) {\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }\n          }\n        }" { (expression_statement "pcVar11 = GetImageOption(image_info,"psd:additional-info");" (assignment_expression "pcVar11 = 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 "iVar26 = LocaleCompare(pcVar11,"all");" (assignment_expression "iVar26 = LocaleCompare(pcVar11,"all")" identifier = (call_expression "LocaleCompare(pcVar11,"all")" identifier (argument_list "(pcVar11,"all")" ( identifier , (string_literal ""all"" " string_content ") )))) ;) (expression_statement "string_info = pSVar20;" (assignment_expression "string_info = pSVar20" identifier = identifier) ;) (if_statement "if (iVar26 != 0) {\n            iVar26 = LocaleCompare(pcVar11,"selective");\n            if (iVar26 == 0) {\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }\n          }" if (parenthesized_expression "(iVar26 != 0)" ( (binary_expression "iVar26 != 0" identifier != number_literal) )) (compound_statement "{\n            iVar26 = LocaleCompare(pcVar11,"selective");\n            if (iVar26 == 0) {\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }\n          }" { (expression_statement "iVar26 = LocaleCompare(pcVar11,"selective");" (assignment_expression "iVar26 = LocaleCompare(pcVar11,"selective")" identifier = (call_expression "LocaleCompare(pcVar11,"selective")" identifier (argument_list "(pcVar11,"selective")" ( identifier , (string_literal ""selective"" " string_content ") )))) ;) (if_statement "if (iVar26 == 0) {\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }\n            else {\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }" if (parenthesized_expression "(iVar26 == 0)" ( (binary_expression "iVar26 == 0" identifier == number_literal) )) (compound_statement "{\n              sVar28 = GetStringInfoLength(pSVar20);\n              puVar21 = GetStringInfoDatum(pSVar20);\n              if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }\n              string_info = DestroyStringInfo(string_info);\n            }" { (expression_statement "sVar28 = GetStringInfoLength(pSVar20);" (assignment_expression "sVar28 = GetStringInfoLength(pSVar20)" identifier = (call_expression "GetStringInfoLength(pSVar20)" identifier (argument_list "(pSVar20)" ( identifier )))) ;) (expression_statement "puVar21 = GetStringInfoDatum(pSVar20);" (assignment_expression "puVar21 = GetStringInfoDatum(pSVar20)" identifier = (call_expression "GetStringInfoDatum(pSVar20)" identifier (argument_list "(pSVar20)" ( identifier )))) ;) (if_statement "if (sVar28 < 0xc) {\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }" if (parenthesized_expression "(sVar28 < 0xc)" ( (binary_expression "sVar28 < 0xc" identifier < number_literal) )) (compound_statement "{\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n              }" { (expression_statement "string_info = RemoveImageProfile(local_114c,"psd:additional-info");" (assignment_expression "string_info = RemoveImageProfile(local_114c,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(local_114c,"psd:additional-info")" identifier (argument_list "(local_114c,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) }) (else_clause "else {\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }" else (compound_statement "{\n                local_1134 = 0;\n                do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);\n                string_info = RemoveImageProfile(local_114c,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }\n              }" { (expression_statement "local_1134 = 0;" (assignment_expression "local_1134 = 0" identifier = number_literal) ;) (do_statement "do {\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                } while (0xb < sVar28);" do (compound_statement "{\n                  key[0] = puVar21[4];\n                  uVar27 = sVar28 - 0xc;\n                  key[4] = '\0';\n                  uVar10 = *(uint *)(puVar21 + 8);\n                  key[1] = puVar21[5];\n                  uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;\n                  key[2] = puVar21[6];\n                  key[3] = puVar21[7];\n                  pacVar32 = allowed;\n                  if (uVar27 < uVar10) goto LAB_00260a9c;\n                  do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);\n                  sVar28 = uVar27 - uVar10;\n                  if (sVar28 == 0) break;\n                  memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);\nLAB_0026028c:\n                }" { (expression_statement "key[0] = puVar21[4];" (assignment_expression "key[0] = puVar21[4]" (subscript_expression "key[0]" identifier [ number_literal ]) = (subscript_expression "puVar21[4]" identifier [ number_literal ])) ;) (expression_statement "uVar27 = sVar28 - 0xc;" (assignment_expression "uVar27 = sVar28 - 0xc" identifier = (binary_expression "sVar28 - 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 "uVar10 = *(uint *)(puVar21 + 8);" (assignment_expression "uVar10 = *(uint *)(puVar21 + 8)" identifier = (pointer_expression "*(uint *)(puVar21 + 8)" * (cast_expression "(uint *)(puVar21 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar21 + 8)" ( (binary_expression "puVar21 + 8" identifier + number_literal) ))))) ;) (expression_statement "key[1] = puVar21[5];" (assignment_expression "key[1] = puVar21[5]" (subscript_expression "key[1]" identifier [ number_literal ]) = (subscript_expression "puVar21[5]" identifier [ number_literal ])) ;) (expression_statement "uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18;" (assignment_expression "uVar10 = uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18" identifier = (binary_expression "uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8 |\n                           uVar10 << 0x18" (binary_expression "uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8 | (uVar10 & 0xff00) << 8" (binary_expression "uVar10 >> 0x18 | (uVar10 & 0xff0000) >> 8" (binary_expression "uVar10 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar10 & 0xff0000) >> 8" (parenthesized_expression "(uVar10 & 0xff0000)" ( (binary_expression "uVar10 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar10 & 0xff00) << 8" (parenthesized_expression "(uVar10 & 0xff00)" ( (binary_expression "uVar10 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar10 << 0x18" identifier << number_literal))) ;) (expression_statement "key[2] = puVar21[6];" (assignment_expression "key[2] = puVar21[6]" (subscript_expression "key[2]" identifier [ number_literal ]) = (subscript_expression "puVar21[6]" identifier [ number_literal ])) ;) (expression_statement "key[3] = puVar21[7];" (assignment_expression "key[3] = puVar21[7]" (subscript_expression "key[3]" identifier [ number_literal ]) = (subscript_expression "puVar21[7]" identifier [ number_literal ])) ;) (expression_statement "pacVar32 = allowed;" (assignment_expression "pacVar32 = allowed" identifier = identifier) ;) (if_statement "if (uVar27 < uVar10) goto LAB_00260a9c;" if (parenthesized_expression "(uVar27 < uVar10)" ( (binary_expression "uVar27 < uVar10" identifier < identifier) )) (goto_statement "goto LAB_00260a9c;" goto statement_identifier ;)) (do_statement "do {\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  } while (pacVar32 != &key);" do (compound_statement "{\n                    iVar26 = LocaleNCompare(key,*pacVar32,5);\n                    if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }\n                    pacVar32 = pacVar32 + 1;\n                  }" { (expression_statement "iVar26 = LocaleNCompare(key,*pacVar32,5);" (assignment_expression "iVar26 = LocaleNCompare(key,*pacVar32,5)" identifier = (call_expression "LocaleNCompare(key,*pacVar32,5)" identifier (argument_list "(key,*pacVar32,5)" ( identifier , (pointer_expression "*pacVar32" * identifier) , number_literal )))) ;) (if_statement "if (iVar26 == 0) {\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }" if (parenthesized_expression "(iVar26 == 0)" ( (binary_expression "iVar26 == 0" identifier == number_literal) )) (compound_statement "{\n                      sVar28 = uVar27 - uVar10;\n                      local_1134 = uVar10 + 0xc + local_1134;\n                      puVar21 = puVar21 + uVar10 + 0xc;\n                      goto LAB_0026028c;\n                    }" { (expression_statement "sVar28 = uVar27 - uVar10;" (assignment_expression "sVar28 = uVar27 - uVar10" identifier = (binary_expression "uVar27 - uVar10" identifier - identifier)) ;) (expression_statement "local_1134 = uVar10 + 0xc + local_1134;" (assignment_expression "local_1134 = uVar10 + 0xc + local_1134" identifier = (binary_expression "uVar10 + 0xc + local_1134" (binary_expression "uVar10 + 0xc" identifier + number_literal) + identifier)) ;) (expression_statement "puVar21 = puVar21 + uVar10 + 0xc;" (assignment_expression "puVar21 = puVar21 + uVar10 + 0xc" identifier = (binary_expression "puVar21 + uVar10 + 0xc" (binary_expression "puVar21 + uVar10" identifier + identifier) + number_literal)) ;) (goto_statement "goto LAB_0026028c;" goto statement_identifier ;) })) (expression_statement "pacVar32 = pacVar32 + 1;" (assignment_expression "pacVar32 = pacVar32 + 1" identifier = (binary_expression "pacVar32 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pacVar32 != &key)" ( (binary_expression "pacVar32 != &key" identifier != (pointer_expression "&key" & identifier)) )) ;) (expression_statement "sVar28 = uVar27 - uVar10;" (assignment_expression "sVar28 = uVar27 - uVar10" identifier = (binary_expression "uVar27 - uVar10" identifier - identifier)) ;) (if_statement "if (sVar28 == 0) break;" if (parenthesized_expression "(sVar28 == 0)" ( (binary_expression "sVar28 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28);" (call_expression "memmove(puVar21,puVar21 + uVar10 + 0xc,sVar28)" identifier (argument_list "(puVar21,puVar21 + uVar10 + 0xc,sVar28)" ( identifier , (binary_expression "puVar21 + uVar10 + 0xc" (binary_expression "puVar21 + uVar10" identifier + identifier) + number_literal) , identifier ))) ;) (labeled_statement "LAB_0026028c:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(0xb < sVar28)" ( (binary_expression "0xb < sVar28" number_literal < identifier) )) ;) (expression_statement "string_info = RemoveImageProfile(local_114c,"psd:additional-info");" (assignment_expression "string_info = RemoveImageProfile(local_114c,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(local_114c,"psd:additional-info")" identifier (argument_list "(local_114c,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (if_statement "if (local_1134 != 0) {\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }" if (parenthesized_expression "(local_1134 != 0)" ( (binary_expression "local_1134 != 0" identifier != number_literal) )) (compound_statement "{\n                  SetStringInfoLength(string_info,local_1134);\n                  SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);\n                  goto LAB_00260370;\n                }" { (expression_statement "SetStringInfoLength(string_info,local_1134);" (call_expression "SetStringInfoLength(string_info,local_1134)" identifier (argument_list "(string_info,local_1134)" ( identifier , identifier ))) ;) (expression_statement "SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception);" (call_expression "SetImageProfile(local_114c,"psd:additional-info",pSVar20,exception)" identifier (argument_list "(local_114c,"psd:additional-info",pSVar20,exception)" ( identifier , (string_literal ""psd:additional-info"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto LAB_00260370;" 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              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }" else (compound_statement "{\n              pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");\n              string_info = DestroyStringInfo(pSVar20);\n            }" { (expression_statement "pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info");" (assignment_expression "pSVar20 = RemoveImageProfile(local_114c,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(local_114c,"psd:additional-info")" identifier (argument_list "(local_114c,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (expression_statement "string_info = DestroyStringInfo(pSVar20);" (assignment_expression "string_info = DestroyStringInfo(pSVar20)" identifier = (call_expression "DestroyStringInfo(pSVar20)" identifier (argument_list "(pSVar20)" ( identifier )))) ;) }))) })) }))) (labeled_statement "LAB_00260370:\n        pcVar11 = GetImageProperty(local_114c,"label",exception);" statement_identifier : (expression_statement "pcVar11 = GetImageProperty(local_114c,"label",exception);" (assignment_expression "pcVar11 = GetImageProperty(local_114c,"label",exception)" identifier = (call_expression "GetImageProperty(local_114c,"label",exception)" identifier (argument_list "(local_114c,"label",exception)" ( identifier , (string_literal ""label"" " string_content ") , identifier )))) ;)) (if_statement "if (pcVar11 == (char *)0x0) {\n          pcVar11 = layer_name;\n          FormatLocaleString(pcVar11,0x1000,"L%.20g",SUB84((double)iVar2,0),\n                             (int)((ulonglong)(double)iVar2 >> 0x20));\n        }" if (parenthesized_expression "(pcVar11 == (char *)0x0)" ( (binary_expression "pcVar11 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar11 = layer_name;\n          FormatLocaleString(pcVar11,0x1000,"L%.20g",SUB84((double)iVar2,0),\n                             (int)((ulonglong)(double)iVar2 >> 0x20));\n        }" { (expression_statement "pcVar11 = layer_name;" (assignment_expression "pcVar11 = layer_name" identifier = identifier) ;) (expression_statement "FormatLocaleString(pcVar11,0x1000,"L%.20g",SUB84((double)iVar2,0),\n                             (int)((ulonglong)(double)iVar2 >> 0x20));" (call_expression "FormatLocaleString(pcVar11,0x1000,"L%.20g",SUB84((double)iVar2,0),\n                             (int)((ulonglong)(double)iVar2 >> 0x20))" identifier (argument_list "(pcVar11,0x1000,"L%.20g",SUB84((double)iVar2,0),\n                             (int)((ulonglong)(double)iVar2 >> 0x20))" ( identifier , number_literal , (string_literal ""L%.20g"" " string_content ") , (call_expression "SUB84((double)iVar2,0)" identifier (argument_list "((double)iVar2,0)" ( (cast_expression "(double)iVar2" ( (type_descriptor "double" primitive_type) ) identifier) , number_literal ))) , (cast_expression "(int)((ulonglong)(double)iVar2 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)(double)iVar2 >> 0x20)" ( (binary_expression "(ulonglong)(double)iVar2 >> 0x20" (cast_expression "(ulonglong)(double)iVar2" ( (type_descriptor "ulonglong" type_identifier) ) (cast_expression "(double)iVar2" ( (type_descriptor "double" primitive_type) ) identifier)) >> number_literal) ))) ))) ;) })) (expression_statement "sVar12 = strlen(pcVar11);" (assignment_expression "sVar12 = strlen(pcVar11)" identifier = (call_expression "strlen(pcVar11)" identifier (argument_list "(pcVar11)" ( identifier )))) ;) (expression_statement "uVar10 = sVar12 + 1;" (assignment_expression "uVar10 = sVar12 + 1" identifier = (binary_expression "sVar12 + 1" identifier + number_literal)) ;) (if_statement "if ((uVar10 & 3) != 0) {\n          uVar10 = (uVar10 & 0xfffffffc) + 4;\n        }" if (parenthesized_expression "((uVar10 & 3) != 0)" ( (binary_expression "(uVar10 & 3) != 0" (parenthesized_expression "(uVar10 & 3)" ( (binary_expression "uVar10 & 3" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          uVar10 = (uVar10 & 0xfffffffc) + 4;\n        }" { (expression_statement "uVar10 = (uVar10 & 0xfffffffc) + 4;" (assignment_expression "uVar10 = (uVar10 & 0xfffffffc) + 4" identifier = (binary_expression "(uVar10 & 0xfffffffc) + 4" (parenthesized_expression "(uVar10 & 0xfffffffc)" ( (binary_expression "uVar10 & 0xfffffffc" identifier & number_literal) )) + number_literal)) ;) })) (if_statement "if (string_info != (StringInfo *)0x0) {\n          sVar28 = GetStringInfoLength(string_info);\n          uVar10 = uVar10 + sVar28;\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          sVar28 = GetStringInfoLength(string_info);\n          uVar10 = uVar10 + sVar28;\n        }" { (expression_statement "sVar28 = GetStringInfoLength(string_info);" (assignment_expression "sVar28 = GetStringInfoLength(string_info)" identifier = (call_expression "GetStringInfoLength(string_info)" identifier (argument_list "(string_info)" ( identifier )))) ;) (expression_statement "uVar10 = uVar10 + sVar28;" (assignment_expression "uVar10 = uVar10 + sVar28" identifier = (binary_expression "uVar10 + sVar28" identifier + identifier)) ;) })) (if_statement "if (local_113c == (Image *)0x0) {\n          sVar13 = WriteBlobLong(image,uVar10 + 8);\n          sVar14 = WriteBlobLong(image,0);\n          iVar31 = sVar13 + sVar14 + iVar31;\n        }\n        else {\n          sVar13 = WriteBlobLong(image,uVar10 + 0x1c);\n          if ((local_113c->compose != NoCompositeOp) &&\n             (local_114c->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_113c->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_113c->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar14 = WriteBlobLong(image,0x14);\n          sVar15 = WriteBlobSignedLong(image,(local_113c->page).y);\n          sVar16 = WriteBlobSignedLong(image,(local_113c->page).x);\n          sVar18 = WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows);\n          sVar22 = WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns);\n          sVar23 = WriteBlobByte(image,local_10e3);\n          sVar24 = WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02');\n          sVar25 = WriteBlobMSBShort(image,0);\n          iVar31 = iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +\n                   sVar25;\n        }" if (parenthesized_expression "(local_113c == (Image *)0x0)" ( (binary_expression "local_113c == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          sVar13 = WriteBlobLong(image,uVar10 + 8);\n          sVar14 = WriteBlobLong(image,0);\n          iVar31 = sVar13 + sVar14 + iVar31;\n        }" { (expression_statement "sVar13 = WriteBlobLong(image,uVar10 + 8);" (assignment_expression "sVar13 = WriteBlobLong(image,uVar10 + 8)" identifier = (call_expression "WriteBlobLong(image,uVar10 + 8)" identifier (argument_list "(image,uVar10 + 8)" ( identifier , (binary_expression "uVar10 + 8" identifier + number_literal) )))) ;) (expression_statement "sVar14 = WriteBlobLong(image,0);" (assignment_expression "sVar14 = WriteBlobLong(image,0)" identifier = (call_expression "WriteBlobLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar31 = sVar13 + sVar14 + iVar31;" (assignment_expression "iVar31 = sVar13 + sVar14 + iVar31" identifier = (binary_expression "sVar13 + sVar14 + iVar31" (binary_expression "sVar13 + sVar14" identifier + identifier) + identifier)) ;) }) (else_clause "else {\n          sVar13 = WriteBlobLong(image,uVar10 + 0x1c);\n          if ((local_113c->compose != NoCompositeOp) &&\n             (local_114c->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_113c->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_113c->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar14 = WriteBlobLong(image,0x14);\n          sVar15 = WriteBlobSignedLong(image,(local_113c->page).y);\n          sVar16 = WriteBlobSignedLong(image,(local_113c->page).x);\n          sVar18 = WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows);\n          sVar22 = WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns);\n          sVar23 = WriteBlobByte(image,local_10e3);\n          sVar24 = WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02');\n          sVar25 = WriteBlobMSBShort(image,0);\n          iVar31 = iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +\n                   sVar25;\n        }" else (compound_statement "{\n          sVar13 = WriteBlobLong(image,uVar10 + 0x1c);\n          if ((local_113c->compose != NoCompositeOp) &&\n             (local_114c->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception);\n          }\n          psVar1 = &(local_113c->page).y;\n          *psVar1 = *psVar1 + (image->page).y;\n          psVar1 = &(local_113c->page).x;\n          *psVar1 = *psVar1 + (image->page).x;\n          sVar14 = WriteBlobLong(image,0x14);\n          sVar15 = WriteBlobSignedLong(image,(local_113c->page).y);\n          sVar16 = WriteBlobSignedLong(image,(local_113c->page).x);\n          sVar18 = WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows);\n          sVar22 = WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns);\n          sVar23 = WriteBlobByte(image,local_10e3);\n          sVar24 = WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02');\n          sVar25 = WriteBlobMSBShort(image,0);\n          iVar31 = iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +\n                   sVar25;\n        }" { (expression_statement "sVar13 = WriteBlobLong(image,uVar10 + 0x1c);" (assignment_expression "sVar13 = WriteBlobLong(image,uVar10 + 0x1c)" identifier = (call_expression "WriteBlobLong(image,uVar10 + 0x1c)" identifier (argument_list "(image,uVar10 + 0x1c)" ( identifier , (binary_expression "uVar10 + 0x1c" identifier + number_literal) )))) ;) (if_statement "if ((local_113c->compose != NoCompositeOp) &&\n             (local_114c->alpha_trait != UndefinedPixelTrait)) {\n            ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception);\n          }" if (parenthesized_expression "((local_113c->compose != NoCompositeOp) &&\n             (local_114c->alpha_trait != UndefinedPixelTrait))" ( (binary_expression "(local_113c->compose != NoCompositeOp) &&\n             (local_114c->alpha_trait != UndefinedPixelTrait)" (parenthesized_expression "(local_113c->compose != NoCompositeOp)" ( (binary_expression "local_113c->compose != NoCompositeOp" (field_expression "local_113c->compose" identifier -> field_identifier) != identifier) )) && (parenthesized_expression "(local_114c->alpha_trait != UndefinedPixelTrait)" ( (binary_expression "local_114c->alpha_trait != UndefinedPixelTrait" (field_expression "local_114c->alpha_trait" identifier -> field_identifier) != identifier) ))) )) (compound_statement "{\n            ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception);\n          }" { (expression_statement "ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception);" (call_expression "ApplyPSDOpacityMask(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception)" identifier (argument_list "(local_114c,local_113c,(double)((float)local_10e3 * DAT_002a7ff0),\n                                MagickTrue,exception)" ( identifier , identifier , (cast_expression "(double)((float)local_10e3 * DAT_002a7ff0)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)local_10e3 * DAT_002a7ff0)" ( (binary_expression "(float)local_10e3 * DAT_002a7ff0" (cast_expression "(float)local_10e3" ( (type_descriptor "float" primitive_type) ) identifier) * identifier) ))) , identifier , identifier ))) ;) })) (expression_statement "psVar1 = &(local_113c->page).y;" (assignment_expression "psVar1 = &(local_113c->page).y" identifier = (pointer_expression "&(local_113c->page).y" & (field_expression "(local_113c->page).y" (parenthesized_expression "(local_113c->page)" ( (field_expression "local_113c->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_113c->page).x;" (assignment_expression "psVar1 = &(local_113c->page).x" identifier = (pointer_expression "&(local_113c->page).x" & (field_expression "(local_113c->page).x" (parenthesized_expression "(local_113c->page)" ( (field_expression "local_113c->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 "sVar14 = WriteBlobLong(image,0x14);" (assignment_expression "sVar14 = WriteBlobLong(image,0x14)" identifier = (call_expression "WriteBlobLong(image,0x14)" identifier (argument_list "(image,0x14)" ( identifier , number_literal )))) ;) (expression_statement "sVar15 = WriteBlobSignedLong(image,(local_113c->page).y);" (assignment_expression "sVar15 = WriteBlobSignedLong(image,(local_113c->page).y)" identifier = (call_expression "WriteBlobSignedLong(image,(local_113c->page).y)" identifier (argument_list "(image,(local_113c->page).y)" ( identifier , (field_expression "(local_113c->page).y" (parenthesized_expression "(local_113c->page)" ( (field_expression "local_113c->page" identifier -> field_identifier) )) . field_identifier) )))) ;) (expression_statement "sVar16 = WriteBlobSignedLong(image,(local_113c->page).x);" (assignment_expression "sVar16 = WriteBlobSignedLong(image,(local_113c->page).x)" identifier = (call_expression "WriteBlobSignedLong(image,(local_113c->page).x)" identifier (argument_list "(image,(local_113c->page).x)" ( identifier , (field_expression "(local_113c->page).x" (parenthesized_expression "(local_113c->page)" ( (field_expression "local_113c->page" identifier -> field_identifier) )) . field_identifier) )))) ;) (expression_statement "sVar18 = WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows);" (assignment_expression "sVar18 = WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows)" identifier = (call_expression "WriteBlobSignedLong(image,(local_113c->page).y + local_113c->rows)" identifier (argument_list "(image,(local_113c->page).y + local_113c->rows)" ( identifier , (binary_expression "(local_113c->page).y + local_113c->rows" (field_expression "(local_113c->page).y" (parenthesized_expression "(local_113c->page)" ( (field_expression "local_113c->page" identifier -> field_identifier) )) . field_identifier) + (field_expression "local_113c->rows" identifier -> field_identifier)) )))) ;) (expression_statement "sVar22 = WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns);" (assignment_expression "sVar22 = WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns)" identifier = (call_expression "WriteBlobSignedLong(image,(local_113c->page).x + local_113c->columns)" identifier (argument_list "(image,(local_113c->page).x + local_113c->columns)" ( identifier , (binary_expression "(local_113c->page).x + local_113c->columns" (field_expression "(local_113c->page).x" (parenthesized_expression "(local_113c->page)" ( (field_expression "local_113c->page" identifier -> field_identifier) )) . field_identifier) + (field_expression "local_113c->columns" identifier -> field_identifier)) )))) ;) (expression_statement "sVar23 = WriteBlobByte(image,local_10e3);" (assignment_expression "sVar23 = WriteBlobByte(image,local_10e3)" identifier = (call_expression "WriteBlobByte(image,local_10e3)" identifier (argument_list "(image,local_10e3)" ( identifier , identifier )))) ;) (expression_statement "sVar24 = WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02');" (assignment_expression "sVar24 = WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02')" identifier = (call_expression "WriteBlobByte(image,(local_113c->compose == NoCompositeOp) * '\x02')" identifier (argument_list "(image,(local_113c->compose == NoCompositeOp) * '\x02')" ( identifier , (binary_expression "(local_113c->compose == NoCompositeOp) * '\x02'" (parenthesized_expression "(local_113c->compose == NoCompositeOp)" ( (binary_expression "local_113c->compose == NoCompositeOp" (field_expression "local_113c->compose" identifier -> field_identifier) == identifier) )) * (char_literal "'\x02'" ' escape_sequence ')) )))) ;) (expression_statement "sVar25 = WriteBlobMSBShort(image,0);" (assignment_expression "sVar25 = WriteBlobMSBShort(image,0)" identifier = (call_expression "WriteBlobMSBShort(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar31 = iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +\n                   sVar25;" (assignment_expression "iVar31 = iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +\n                   sVar25" identifier = (binary_expression "iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24 +\n                   sVar25" (binary_expression "iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23 + sVar24" (binary_expression "iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22 + sVar23" (binary_expression "iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18 + sVar22" (binary_expression "iVar31 + sVar13 + sVar14 + sVar15 + sVar16 + sVar18" (binary_expression "iVar31 + sVar13 + sVar14 + sVar15 + sVar16" (binary_expression "iVar31 + sVar13 + sVar14 + sVar15" (binary_expression "iVar31 + sVar13 + sVar14" (binary_expression "iVar31 + sVar13" identifier + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier)) ;) }))) (expression_statement "sVar13 = WriteBlobLong(image,0);" (assignment_expression "sVar13 = WriteBlobLong(image,0)" identifier = (call_expression "WriteBlobLong(image,0)" identifier (argument_list "(image,0)" ( identifier , number_literal )))) ;) (expression_statement "sVar12 = strlen(pcVar11);" (assignment_expression "sVar12 = strlen(pcVar11)" identifier = (call_expression "strlen(pcVar11)" identifier (argument_list "(pcVar11)" ( identifier )))) ;) (if_statement "if (sVar12 < 0x100) {\n          if (sVar12 == 0) {\n            sVar15 = WriteBlobByte(image,'\0');\n            local_113c = (Image *)0x3;\n          }\n          else {\n            sVar15 = WriteBlobByte(image,(uchar)sVar12);\n            sVar14 = WriteBlob(image,sVar12,pcVar11);\n            sVar15 = sVar15 + sVar14;\n            uVar10 = sVar12 + 1 & 3;\n            if (uVar10 == 0) goto LAB_00260559;\n            local_113c = (Image *)(4 - uVar10);\n          }\n          iVar26 = 0;\n          do {\n            iVar26 = iVar26 + 1;\n            sVar14 = WriteBlobByte(image,'\0');\n            sVar15 = sVar15 + sVar14;\n          } while (local_113c != (Image *)iVar26);\n        }\n        else {\n          sVar15 = WriteBlobByte(image,0xff);\n          sVar14 = WriteBlob(image,0xff,pcVar11);\n          sVar15 = sVar15 + sVar14;\n        }" if (parenthesized_expression "(sVar12 < 0x100)" ( (binary_expression "sVar12 < 0x100" identifier < number_literal) )) (compound_statement "{\n          if (sVar12 == 0) {\n            sVar15 = WriteBlobByte(image,'\0');\n            local_113c = (Image *)0x3;\n          }\n          else {\n            sVar15 = WriteBlobByte(image,(uchar)sVar12);\n            sVar14 = WriteBlob(image,sVar12,pcVar11);\n            sVar15 = sVar15 + sVar14;\n            uVar10 = sVar12 + 1 & 3;\n            if (uVar10 == 0) goto LAB_00260559;\n            local_113c = (Image *)(4 - uVar10);\n          }\n          iVar26 = 0;\n          do {\n            iVar26 = iVar26 + 1;\n            sVar14 = WriteBlobByte(image,'\0');\n            sVar15 = sVar15 + sVar14;\n          } while (local_113c != (Image *)iVar26);\n        }" { (if_statement "if (sVar12 == 0) {\n            sVar15 = WriteBlobByte(image,'\0');\n            local_113c = (Image *)0x3;\n          }\n          else {\n            sVar15 = WriteBlobByte(image,(uchar)sVar12);\n            sVar14 = WriteBlob(image,sVar12,pcVar11);\n            sVar15 = sVar15 + sVar14;\n            uVar10 = sVar12 + 1 & 3;\n            if (uVar10 == 0) goto LAB_00260559;\n            local_113c = (Image *)(4 - uVar10);\n          }" if (parenthesized_expression "(sVar12 == 0)" ( (binary_expression "sVar12 == 0" identifier == number_literal) )) (compound_statement "{\n            sVar15 = WriteBlobByte(image,'\0');\n            local_113c = (Image *)0x3;\n          }" { (expression_statement "sVar15 = WriteBlobByte(image,'\0');" (assignment_expression "sVar15 = WriteBlobByte(image,'\0')" identifier = (call_expression "WriteBlobByte(image,'\0')" identifier (argument_list "(image,'\0')" ( identifier , (char_literal "'\0'" ' escape_sequence ') )))) ;) (expression_statement "local_113c = (Image *)0x3;" (assignment_expression "local_113c = (Image *)0x3" identifier = (cast_expression "(Image *)0x3" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n            sVar15 = WriteBlobByte(image,(uchar)sVar12);\n            sVar14 = WriteBlob(image,sVar12,pcVar11);\n            sVar15 = sVar15 + sVar14;\n            uVar10 = sVar12 + 1 & 3;\n            if (uVar10 == 0) goto LAB_00260559;\n            local_113c = (Image *)(4 - uVar10);\n          }" else (compound_statement "{\n            sVar15 = WriteBlobByte(image,(uchar)sVar12);\n            sVar14 = WriteBlob(image,sVar12,pcVar11);\n            sVar15 = sVar15 + sVar14;\n            uVar10 = sVar12 + 1 & 3;\n            if (uVar10 == 0) goto LAB_00260559;\n            local_113c = (Image *)(4 - uVar10);\n          }" { (expression_statement "sVar15 = WriteBlobByte(image,(uchar)sVar12);" (assignment_expression "sVar15 = WriteBlobByte(image,(uchar)sVar12)" identifier = (call_expression "WriteBlobByte(image,(uchar)sVar12)" identifier (argument_list "(image,(uchar)sVar12)" ( identifier , (cast_expression "(uchar)sVar12" ( (type_descriptor "uchar" type_identifier) ) identifier) )))) ;) (expression_statement "sVar14 = WriteBlob(image,sVar12,pcVar11);" (assignment_expression "sVar14 = WriteBlob(image,sVar12,pcVar11)" identifier = (call_expression "WriteBlob(image,sVar12,pcVar11)" identifier (argument_list "(image,sVar12,pcVar11)" ( identifier , identifier , identifier )))) ;) (expression_statement "sVar15 = sVar15 + sVar14;" (assignment_expression "sVar15 = sVar15 + sVar14" identifier = (binary_expression "sVar15 + sVar14" identifier + identifier)) ;) (expression_statement "uVar10 = sVar12 + 1 & 3;" (assignment_expression "uVar10 = sVar12 + 1 & 3" identifier = (binary_expression "sVar12 + 1 & 3" (binary_expression "sVar12 + 1" identifier + number_literal) & number_literal)) ;) (if_statement "if (uVar10 == 0) goto LAB_00260559;" if (parenthesized_expression "(uVar10 == 0)" ( (binary_expression "uVar10 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00260559;" goto statement_identifier ;)) (expression_statement "local_113c = (Image *)(4 - uVar10);" (assignment_expression "local_113c = (Image *)(4 - uVar10)" identifier = (cast_expression "(Image *)(4 - uVar10)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(4 - uVar10)" ( (binary_expression "4 - uVar10" number_literal - identifier) )))) ;) }))) (expression_statement "iVar26 = 0;" (assignment_expression "iVar26 = 0" identifier = number_literal) ;) (do_statement "do {\n            iVar26 = iVar26 + 1;\n            sVar14 = WriteBlobByte(image,'\0');\n            sVar15 = sVar15 + sVar14;\n          } while (local_113c != (Image *)iVar26);" do (compound_statement "{\n            iVar26 = iVar26 + 1;\n            sVar14 = WriteBlobByte(image,'\0');\n            sVar15 = sVar15 + sVar14;\n          }" { (expression_statement "iVar26 = iVar26 + 1;" (assignment_expression "iVar26 = iVar26 + 1" identifier = (binary_expression "iVar26 + 1" identifier + number_literal)) ;) (expression_statement "sVar14 = WriteBlobByte(image,'\0');" (assignment_expression "sVar14 = WriteBlobByte(image,'\0')" identifier = (call_expression "WriteBlobByte(image,'\0')" identifier (argument_list "(image,'\0')" ( identifier , (char_literal "'\0'" ' escape_sequence ') )))) ;) (expression_statement "sVar15 = sVar15 + sVar14;" (assignment_expression "sVar15 = sVar15 + sVar14" identifier = (binary_expression "sVar15 + sVar14" identifier + identifier)) ;) }) while (parenthesized_expression "(local_113c != (Image *)iVar26)" ( (binary_expression "local_113c != (Image *)iVar26" identifier != (cast_expression "(Image *)iVar26" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) ;) }) (else_clause "else {\n          sVar15 = WriteBlobByte(image,0xff);\n          sVar14 = WriteBlob(image,0xff,pcVar11);\n          sVar15 = sVar15 + sVar14;\n        }" else (compound_statement "{\n          sVar15 = WriteBlobByte(image,0xff);\n          sVar14 = WriteBlob(image,0xff,pcVar11);\n          sVar15 = sVar15 + sVar14;\n        }" { (expression_statement "sVar15 = WriteBlobByte(image,0xff);" (assignment_expression "sVar15 = WriteBlobByte(image,0xff)" identifier = (call_expression "WriteBlobByte(image,0xff)" identifier (argument_list "(image,0xff)" ( identifier , number_literal )))) ;) (expression_statement "sVar14 = WriteBlob(image,0xff,pcVar11);" (assignment_expression "sVar14 = WriteBlob(image,0xff,pcVar11)" identifier = (call_expression "WriteBlob(image,0xff,pcVar11)" identifier (argument_list "(image,0xff,pcVar11)" ( identifier , number_literal , identifier )))) ;) (expression_statement "sVar15 = sVar15 + sVar14;" (assignment_expression "sVar15 = sVar15 + sVar14" identifier = (binary_expression "sVar15 + sVar14" identifier + identifier)) ;) }))) (labeled_statement "LAB_00260559:\n        uVar10 = sVar15 + sVar13 + iVar31;" statement_identifier : (expression_statement "uVar10 = sVar15 + sVar13 + iVar31;" (assignment_expression "uVar10 = sVar15 + sVar13 + iVar31" identifier = (binary_expression "sVar15 + sVar13 + iVar31" (binary_expression "sVar15 + sVar13" identifier + identifier) + identifier)) ;)) (if_statement "if (string_info != (StringInfo *)0x0) {\n          puVar21 = GetStringInfoDatum(string_info);\n          sVar28 = GetStringInfoLength(string_info);\n          sVar13 = WriteBlob(image,sVar28,puVar21);\n          uVar10 = uVar10 + sVar13;\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          puVar21 = GetStringInfoDatum(string_info);\n          sVar28 = GetStringInfoLength(string_info);\n          sVar13 = WriteBlob(image,sVar28,puVar21);\n          uVar10 = uVar10 + sVar13;\n        }" { (expression_statement "puVar21 = GetStringInfoDatum(string_info);" (assignment_expression "puVar21 = GetStringInfoDatum(string_info)" identifier = (call_expression "GetStringInfoDatum(string_info)" identifier (argument_list "(string_info)" ( identifier )))) ;) (expression_statement "sVar28 = GetStringInfoLength(string_info);" (assignment_expression "sVar28 = GetStringInfoLength(string_info)" identifier = (call_expression "GetStringInfoLength(string_info)" identifier (argument_list "(string_info)" ( identifier )))) ;) (expression_statement "sVar13 = WriteBlob(image,sVar28,puVar21);" (assignment_expression "sVar13 = WriteBlob(image,sVar28,puVar21)" identifier = (call_expression "WriteBlob(image,sVar28,puVar21)" identifier (argument_list "(image,sVar28,puVar21)" ( identifier , identifier , identifier )))) ;) (expression_statement "uVar10 = uVar10 + sVar13;" (assignment_expression "uVar10 = uVar10 + sVar13" identifier = (binary_expression "uVar10 + sVar13" identifier + identifier)) ;) })) (expression_statement "local_114c = GetNextImageInList(local_114c);" (assignment_expression "local_114c = GetNextImageInList(local_114c)" identifier = (call_expression "GetNextImageInList(local_114c)" identifier (argument_list "(local_114c)" ( identifier )))) ;) (expression_statement "pMVar30 = memory;" (assignment_expression "pMVar30 = memory" identifier = identifier) ;) (expression_statement "pIVar9 = pIVar8;" (assignment_expression "pIVar9 = pIVar8" identifier = identifier) ;) (expression_statement "local_1128 = iVar2;" (assignment_expression "local_1128 = iVar2" identifier = identifier) ;) }) while (parenthesized_expression "(local_114c != (Image *)0x0)" ( (binary_expression "local_114c != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (do_statement "do {\n        sVar28 = WritePSDChannels(psd_info,image_info,image,pIVar9,*pMVar30,MagickTrue,exception);\n        if (sVar28 == 0) {\n          MVar17 = MagickFalse;\n          local_113c = (Image *)uVar10;\n          goto LAB_0026060b;\n        }\n        uVar10 = uVar10 + sVar28;\n        pIVar9 = GetNextImageInList(pIVar9);\n        pMVar30 = pMVar30 + 1;\n        local_113c = (Image *)uVar10;\n      } while (pIVar9 != (Image *)0x0);" do (compound_statement "{\n        sVar28 = WritePSDChannels(psd_info,image_info,image,pIVar9,*pMVar30,MagickTrue,exception);\n        if (sVar28 == 0) {\n          MVar17 = MagickFalse;\n          local_113c = (Image *)uVar10;\n          goto LAB_0026060b;\n        }\n        uVar10 = uVar10 + sVar28;\n        pIVar9 = GetNextImageInList(pIVar9);\n        pMVar30 = pMVar30 + 1;\n        local_113c = (Image *)uVar10;\n      }" { (expression_statement "sVar28 = WritePSDChannels(psd_info,image_info,image,pIVar9,*pMVar30,MagickTrue,exception);" (assignment_expression "sVar28 = WritePSDChannels(psd_info,image_info,image,pIVar9,*pMVar30,MagickTrue,exception)" identifier = (call_expression "WritePSDChannels(psd_info,image_info,image,pIVar9,*pMVar30,MagickTrue,exception)" identifier (argument_list "(psd_info,image_info,image,pIVar9,*pMVar30,MagickTrue,exception)" ( identifier , identifier , identifier , identifier , (pointer_expression "*pMVar30" * identifier) , identifier , identifier )))) ;) (if_statement "if (sVar28 == 0) {\n          MVar17 = MagickFalse;\n          local_113c = (Image *)uVar10;\n          goto LAB_0026060b;\n        }" if (parenthesized_expression "(sVar28 == 0)" ( (binary_expression "sVar28 == 0" identifier == number_literal) )) (compound_statement "{\n          MVar17 = MagickFalse;\n          local_113c = (Image *)uVar10;\n          goto LAB_0026060b;\n        }" { (expression_statement "MVar17 = MagickFalse;" (assignment_expression "MVar17 = MagickFalse" identifier = identifier) ;) (expression_statement "local_113c = (Image *)uVar10;" (assignment_expression "local_113c = (Image *)uVar10" identifier = (cast_expression "(Image *)uVar10" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (goto_statement "goto LAB_0026060b;" goto statement_identifier ;) })) (expression_statement "uVar10 = uVar10 + sVar28;" (assignment_expression "uVar10 = uVar10 + sVar28" identifier = (binary_expression "uVar10 + sVar28" identifier + identifier)) ;) (expression_statement "pIVar9 = GetNextImageInList(pIVar9);" (assignment_expression "pIVar9 = GetNextImageInList(pIVar9)" identifier = (call_expression "GetNextImageInList(pIVar9)" identifier (argument_list "(pIVar9)" ( identifier )))) ;) (expression_statement "pMVar30 = pMVar30 + 1;" (assignment_expression "pMVar30 = pMVar30 + 1" identifier = (binary_expression "pMVar30 + 1" identifier + number_literal)) ;) (expression_statement "local_113c = (Image *)uVar10;" (assignment_expression "local_113c = (Image *)uVar10" identifier = (cast_expression "(Image *)uVar10" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) while (parenthesized_expression "(pIVar9 != (Image *)0x0)" ( (binary_expression "pIVar9 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "MVar17 = MagickTrue;" (assignment_expression "MVar17 = MagickTrue" identifier = identifier) ;) (labeled_statement "LAB_0026060b:\n    if (layers_size != (size_t *)0x0) {\n      *layers_size = (size_t)local_113c;\n    }" statement_identifier : (if_statement "if (layers_size != (size_t *)0x0) {\n      *layers_size = (size_t)local_113c;\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 = (size_t)local_113c;\n    }" { (expression_statement "*layers_size = (size_t)local_113c;" (assignment_expression "*layers_size = (size_t)local_113c" (pointer_expression "*layers_size" * identifier) = (cast_expression "(size_t)local_113c" ( (type_descriptor "size_t" primitive_type) ) identifier)) ;) }))) (expression_statement "pIVar9 = (Image *)((int)local_113c + 1U);" (assignment_expression "pIVar9 = (Image *)((int)local_113c + 1U)" identifier = (cast_expression "(Image *)((int)local_113c + 1U)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_113c + 1U)" ( (binary_expression "(int)local_113c + 1U" (cast_expression "(int)local_113c" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if ((uint)local_113c >> 1 == (int)local_113c + 1U >> 1) {\n      pIVar9 = local_113c;\n    }" if (parenthesized_expression "((uint)local_113c >> 1 == (int)local_113c + 1U >> 1)" ( (binary_expression "(uint)local_113c >> 1 == (int)local_113c + 1U >> 1" (binary_expression "(uint)local_113c >> 1" (cast_expression "(uint)local_113c" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) == (binary_expression "(int)local_113c + 1U >> 1" (binary_expression "(int)local_113c + 1U" (cast_expression "(int)local_113c" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) >> number_literal)) )) (compound_statement "{\n      pIVar9 = local_113c;\n    }" { (expression_statement "pIVar9 = local_113c;" (assignment_expression "pIVar9 = local_113c" identifier = identifier) ;) })) (expression_statement "MVar34 = TellBlob(image);" (assignment_expression "MVar34 = 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,(uint)pIVar9);\n    }\n    else {\n      WriteBlobLongLong(image,ZEXT48(pIVar9));\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,(uint)pIVar9);\n    }" { (expression_statement "WriteBlobLong(image,(uint)pIVar9);" (call_expression "WriteBlobLong(image,(uint)pIVar9)" identifier (argument_list "(image,(uint)pIVar9)" ( identifier , (cast_expression "(uint)pIVar9" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) }) (else_clause "else {\n      WriteBlobLongLong(image,ZEXT48(pIVar9));\n    }" else (compound_statement "{\n      WriteBlobLongLong(image,ZEXT48(pIVar9));\n    }" { (expression_statement "WriteBlobLongLong(image,ZEXT48(pIVar9));" (call_expression "WriteBlobLongLong(image,ZEXT48(pIVar9))" identifier (argument_list "(image,ZEXT48(pIVar9))" ( identifier , (call_expression "ZEXT48(pIVar9)" identifier (argument_list "(pIVar9)" ( identifier ))) ))) ;) }))) (expression_statement "SeekBlob(image,MVar34,0);" (call_expression "SeekBlob(image,MVar34,0)" identifier (argument_list "(image,MVar34,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "RelinquishMagickMemory(memory);" (call_expression "RelinquishMagickMemory(memory)" identifier (argument_list "(memory)" ( identifier ))) ;) (for_statement "for (; pIVar8 != (Image *)0x0; pIVar8 = GetNextImageInList(pIVar8)) {\n      pcVar11 = GetImageArtifact(pIVar8,"psd:opacity-mask");\n      if (pcVar11 != (char *)0x0) {\n        DeleteImageRegistry(pcVar11);\n      }\n    }" for ( ; (binary_expression "pIVar8 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "pIVar8 = GetNextImageInList(pIVar8)" identifier = (call_expression "GetNextImageInList(pIVar8)" identifier (argument_list "(pIVar8)" ( identifier )))) ) (compound_statement "{\n      pcVar11 = GetImageArtifact(pIVar8,"psd:opacity-mask");\n      if (pcVar11 != (char *)0x0) {\n        DeleteImageRegistry(pcVar11);\n      }\n    }" { (expression_statement "pcVar11 = GetImageArtifact(pIVar8,"psd:opacity-mask");" (assignment_expression "pcVar11 = GetImageArtifact(pIVar8,"psd:opacity-mask")" identifier = (call_expression "GetImageArtifact(pIVar8,"psd:opacity-mask")" identifier (argument_list "(pIVar8,"psd:opacity-mask")" ( identifier , (string_literal ""psd:opacity-mask"" " string_content ") )))) ;) (if_statement "if (pcVar11 != (char *)0x0) {\n        DeleteImageRegistry(pcVar11);\n      }" if (parenthesized_expression "(pcVar11 != (char *)0x0)" ( (binary_expression "pcVar11 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        DeleteImageRegistry(pcVar11);\n      }" { (expression_statement "DeleteImageRegistry(pcVar11);" (call_expression "DeleteImageRegistry(pcVar11)" identifier (argument_list "(pcVar11)" ( identifier ))) ;) })) })) }))) (if_statement "if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar3 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar3 != *(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 MVar17;" return identifier ;) })))
(translation_unit "undefined4 __regparm3\nFUN_0025fc80(int *param_1,int param_2,int param_3,uint *param_4,undefined4 param_5)\n\n{\n  float fVar1;\n  undefined1 uVar2;\n  short sVar3;\n  int *piVar4;\n  int *piVar5;\n  uint uVar6;\n  undefined4 *puVar7;\n  char *pcVar8;\n  size_t sVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  undefined1 *puVar15;\n  long lVar16;\n  int iVar17;\n  undefined4 uVar18;\n  void *__dest;\n  int iVar19;\n  int iVar20;\n  int iVar21;\n  int iVar22;\n  int iVar23;\n  undefined4 uVar24;\n  int *piVar25;\n  uint uVar26;\n  undefined4 *puVar27;\n  undefined4 *puVar28;\n  int in_GS_OFFSET;\n  byte bVar29;\n  undefined8 uVar30;\n  undefined8 uVar31;\n  int *piVar32;\n  int local_1144;\n  uint local_113c;\n  int local_1134;\n  int local_1128;\n  byte local_10e3;\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  bVar29 = 0;\n  uStack_14 = 0x25fc8d;\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  uVar30 = 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  uVar26 = 0;\n  if (piVar4 != (int *)0x0) {\n    uVar26 = 0;\n    piVar5 = piVar4;\n    do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    } while (piVar5 != (int *)0x0);\n  }\n  uVar6 = uVar26;\n  if (param_1[0xa5] != 0) {\n    uVar6 = -uVar26;\n  }\n  uVar6 = WriteBlobShort(param_1,uVar6 & 0xffff);\n  puVar7 = (undefined4 *)AcquireQuantumMemory(uVar26,8);\n  if (puVar7 == (undefined4 *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = *(int **)(param_2 + 0xc);\n    piVar5 = param_1;\n    while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }\n    uVar18 = 0;\n    CloseBlob(piVar5);\n  }\n  else {\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return uVar18;\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_0025fc80(int *param_1,int param_2,int param_3,uint *param_4,undefined4 param_5)\n\n{\n  float fVar1;\n  undefined1 uVar2;\n  short sVar3;\n  int *piVar4;\n  int *piVar5;\n  uint uVar6;\n  undefined4 *puVar7;\n  char *pcVar8;\n  size_t sVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  undefined1 *puVar15;\n  long lVar16;\n  int iVar17;\n  undefined4 uVar18;\n  void *__dest;\n  int iVar19;\n  int iVar20;\n  int iVar21;\n  int iVar22;\n  int iVar23;\n  undefined4 uVar24;\n  int *piVar25;\n  uint uVar26;\n  undefined4 *puVar27;\n  undefined4 *puVar28;\n  int in_GS_OFFSET;\n  byte bVar29;\n  undefined8 uVar30;\n  undefined8 uVar31;\n  int *piVar32;\n  int local_1144;\n  uint local_113c;\n  int local_1134;\n  int local_1128;\n  byte local_10e3;\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  bVar29 = 0;\n  uStack_14 = 0x25fc8d;\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  uVar30 = 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  uVar26 = 0;\n  if (piVar4 != (int *)0x0) {\n    uVar26 = 0;\n    piVar5 = piVar4;\n    do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    } while (piVar5 != (int *)0x0);\n  }\n  uVar6 = uVar26;\n  if (param_1[0xa5] != 0) {\n    uVar6 = -uVar26;\n  }\n  uVar6 = WriteBlobShort(param_1,uVar6 & 0xffff);\n  puVar7 = (undefined4 *)AcquireQuantumMemory(uVar26,8);\n  if (puVar7 == (undefined4 *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = *(int **)(param_2 + 0xc);\n    piVar5 = param_1;\n    while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }\n    uVar18 = 0;\n    CloseBlob(piVar5);\n  }\n  else {\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return uVar18;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0025fc80(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 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  float fVar1;\n  undefined1 uVar2;\n  short sVar3;\n  int *piVar4;\n  int *piVar5;\n  uint uVar6;\n  undefined4 *puVar7;\n  char *pcVar8;\n  size_t sVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  undefined1 *puVar15;\n  long lVar16;\n  int iVar17;\n  undefined4 uVar18;\n  void *__dest;\n  int iVar19;\n  int iVar20;\n  int iVar21;\n  int iVar22;\n  int iVar23;\n  undefined4 uVar24;\n  int *piVar25;\n  uint uVar26;\n  undefined4 *puVar27;\n  undefined4 *puVar28;\n  int in_GS_OFFSET;\n  byte bVar29;\n  undefined8 uVar30;\n  undefined8 uVar31;\n  int *piVar32;\n  int local_1144;\n  uint local_113c;\n  int local_1134;\n  int local_1128;\n  byte local_10e3;\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  bVar29 = 0;\n  uStack_14 = 0x25fc8d;\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  uVar30 = 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  uVar26 = 0;\n  if (piVar4 != (int *)0x0) {\n    uVar26 = 0;\n    piVar5 = piVar4;\n    do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    } while (piVar5 != (int *)0x0);\n  }\n  uVar6 = uVar26;\n  if (param_1[0xa5] != 0) {\n    uVar6 = -uVar26;\n  }\n  uVar6 = WriteBlobShort(param_1,uVar6 & 0xffff);\n  puVar7 = (undefined4 *)AcquireQuantumMemory(uVar26,8);\n  if (puVar7 == (undefined4 *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = *(int **)(param_2 + 0xc);\n    piVar5 = param_1;\n    while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }\n    uVar18 = 0;\n    CloseBlob(piVar5);\n  }\n  else {\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return uVar18;\n}" { (declaration "float fVar1;" 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 uVar6;" type_identifier identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "size_t sVar9;" 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 "int iVar14;" primitive_type identifier ;) (declaration "undefined1 *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "long lVar16;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "undefined4 uVar18;" type_identifier identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * 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 "int iVar23;" primitive_type identifier ;) (declaration "undefined4 uVar24;" type_identifier identifier ;) (declaration "int *piVar25;" primitive_type (pointer_declarator "*piVar25" * identifier) ;) (declaration "uint uVar26;" type_identifier identifier ;) (declaration "undefined4 *puVar27;" type_identifier (pointer_declarator "*puVar27" * identifier) ;) (declaration "undefined4 *puVar28;" type_identifier (pointer_declarator "*puVar28" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar29;" type_identifier identifier ;) (declaration "undefined8 uVar30;" type_identifier identifier ;) (declaration "undefined8 uVar31;" type_identifier identifier ;) (declaration "int *piVar32;" primitive_type (pointer_declarator "*piVar32" * identifier) ;) (declaration "int local_1144;" primitive_type identifier ;) (declaration "uint local_113c;" type_identifier identifier ;) (declaration "int local_1134;" primitive_type identifier ;) (declaration "int local_1128;" primitive_type identifier ;) (declaration "byte local_10e3;" 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 "bVar29 = 0;" (assignment_expression "bVar29 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x25fc8d;" (assignment_expression "uStack_14 = 0x25fc8d" 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 "uVar30 = TellBlob(param_1);" (assignment_expression "uVar30 = 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 "uVar26 = 0;" (assignment_expression "uVar26 = 0" identifier = number_literal) ;) (if_statement "if (piVar4 != (int *)0x0) {\n    uVar26 = 0;\n    piVar5 = piVar4;\n    do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\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    uVar26 = 0;\n    piVar5 = piVar4;\n    do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    } while (piVar5 != (int *)0x0);\n  }" { (expression_statement "uVar26 = 0;" (assignment_expression "uVar26 = 0" identifier = number_literal) ;) (expression_statement "piVar5 = piVar4;" (assignment_expression "piVar5 = piVar4" identifier = identifier) ;) (do_statement "do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    } while (piVar5 != (int *)0x0);" do (compound_statement "{\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    }" { (expression_statement "uVar26 = uVar26 + 1;" (assignment_expression "uVar26 = uVar26 + 1" identifier = (binary_expression "uVar26 + 1" identifier + number_literal)) ;) (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 ))))) ;) }) 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 "uVar6 = uVar26;" (assignment_expression "uVar6 = uVar26" identifier = identifier) ;) (if_statement "if (param_1[0xa5] != 0) {\n    uVar6 = -uVar26;\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    uVar6 = -uVar26;\n  }" { (expression_statement "uVar6 = -uVar26;" (assignment_expression "uVar6 = -uVar26" identifier = (unary_expression "-uVar26" - identifier)) ;) })) (expression_statement "uVar6 = WriteBlobShort(param_1,uVar6 & 0xffff);" (assignment_expression "uVar6 = WriteBlobShort(param_1,uVar6 & 0xffff)" identifier = (call_expression "WriteBlobShort(param_1,uVar6 & 0xffff)" identifier (argument_list "(param_1,uVar6 & 0xffff)" ( identifier , (binary_expression "uVar6 & 0xffff" identifier & number_literal) )))) ;) (expression_statement "puVar7 = (undefined4 *)AcquireQuantumMemory(uVar26,8);" (assignment_expression "puVar7 = (undefined4 *)AcquireQuantumMemory(uVar26,8)" identifier = (cast_expression "(undefined4 *)AcquireQuantumMemory(uVar26,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireQuantumMemory(uVar26,8)" identifier (argument_list "(uVar26,8)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar7 == (undefined4 *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = *(int **)(param_2 + 0xc);\n    piVar5 = param_1;\n    while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }\n    uVar18 = 0;\n    CloseBlob(piVar5);\n  }\n  else {\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }" if (parenthesized_expression "(puVar7 == (undefined4 *)0x0)" ( (binary_expression "puVar7 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" 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 + 0xc);\n    piVar5 = param_1;\n    while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }\n    uVar18 = 0;\n    CloseBlob(piVar5);\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 + 0xc);" (assignment_expression "piVar4 = *(int **)(param_2 + 0xc)" identifier = (pointer_expression "*(int **)(param_2 + 0xc)" * (cast_expression "(int **)(param_2 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "piVar5 = param_1;" (assignment_expression "piVar5 = param_1" identifier = identifier) ;) (while_statement "while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }" while (parenthesized_expression "(piVar25 = param_1, piVar4 != (int *)0x0)" ( (comma_expression "piVar25 = param_1, piVar4 != (int *)0x0" (assignment_expression "piVar25 = 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 *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }" { (expression_statement "piVar4 = (int *)piVar25[0xccf];" (assignment_expression "piVar4 = (int *)piVar25[0xccf]" identifier = (cast_expression "(int *)piVar25[0xccf]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar25[0xccf]" identifier [ number_literal ]))) ;) (expression_statement "param_1 = piVar4;" (assignment_expression "param_1 = piVar4" identifier = identifier) ;) (expression_statement "piVar5 = piVar25;" (assignment_expression "piVar5 = piVar25" identifier = identifier) ;) })) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "CloseBlob(piVar5);" (call_expression "CloseBlob(piVar5)" identifier (argument_list "(piVar5)" ( identifier ))) ;) }) (else_clause "else {\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }" else (compound_statement "{\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }" { (expression_statement "local_113c = uVar6;" (assignment_expression "local_113c = uVar6" identifier = identifier) ;) (if_statement "if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (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_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }" { (expression_statement "local_1128 = 0;" (assignment_expression "local_1128 = 0" identifier = number_literal) ;) (expression_statement "piVar5 = piVar4;" (assignment_expression "piVar5 = piVar4" identifier = identifier) ;) (do_statement "do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);" do (compound_statement "{\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      }" { (expression_statement "pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");" (assignment_expression "pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask")" identifier = (cast_expression "(char *)GetImageArtifact(piVar5,"psd:opacity-mask")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (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 (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(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_10e3 = 0;\n          local_113c = 0;\n        }" { (expression_statement "local_10e3 = 0;" (assignment_expression "local_10e3 = 0" identifier = number_literal) ;) (expression_statement "local_113c = 0;" (assignment_expression "local_113c = 0" identifier = number_literal) ;) }) (else_clause "else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }" else (compound_statement "{\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }" { (expression_statement "local_113c = GetImageRegistry(1,pcVar8,param_5);" (assignment_expression "local_113c = GetImageRegistry(1,pcVar8,param_5)" identifier = (call_expression "GetImageRegistry(1,pcVar8,param_5)" identifier (argument_list "(1,pcVar8,param_5)" ( number_literal , 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_10e3 = -(sVar9 == 9);" (assignment_expression "local_10e3 = -(sVar9 == 9)" identifier = (unary_expression "-(sVar9 == 9)" - (parenthesized_expression "(sVar9 == 9)" ( (binary_expression "sVar9 == 9" identifier == number_literal) )))) ;) }))) (expression_statement "iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);" (assignment_expression "iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83])" identifier = (call_expression "WriteBlobSignedLong(param_1,piVar5[0x83])" identifier (argument_list "(param_1,piVar5[0x83])" ( identifier , (subscript_expression "piVar5[0x83]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);" (assignment_expression "iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82])" identifier = (call_expression "WriteBlobSignedLong(param_1,piVar5[0x82])" identifier (argument_list "(param_1,piVar5[0x82])" ( identifier , (subscript_expression "piVar5[0x82]" identifier [ number_literal ]) )))) ;) (expression_statement "piVar25 = piVar5;" (assignment_expression "piVar25 = piVar5" identifier = identifier) ;) (expression_statement "iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);" (assignment_expression "iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83])" identifier = (call_expression "WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83])" identifier (argument_list "(param_1,piVar5[7] + piVar5[0x83])" ( identifier , (binary_expression "piVar5[7] + piVar5[0x83]" (subscript_expression "piVar5[7]" identifier [ number_literal ]) + (subscript_expression "piVar5[0x83]" identifier [ number_literal ])) )))) ;) (expression_statement "iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);" (assignment_expression "iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82])" identifier = (call_expression "WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82])" identifier (argument_list "(param_1,piVar5[6] + piVar5[0x82])" ( identifier , (binary_expression "piVar5[6] + piVar5[0x82]" (subscript_expression "piVar5[6]" identifier [ number_literal ]) + (subscript_expression "piVar5[0x82]" identifier [ number_literal ])) )))) ;) (expression_statement "piVar32 = piVar25;" (assignment_expression "piVar32 = piVar25" identifier = identifier) ;) (if_statement "if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }" if (parenthesized_expression "((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0))" ( (binary_expression "(*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)" (parenthesized_expression "(*piVar5 == 2)" ( (binary_expression "*piVar5 == 2" (pointer_expression "*piVar5" * identifier) == number_literal) )) || (parenthesized_expression "(iVar14 = IsImageGray(piVar25), iVar14 != 0)" ( (comma_expression "iVar14 = IsImageGray(piVar25), iVar14 != 0" (assignment_expression "iVar14 = IsImageGray(piVar25)" identifier = (call_expression "IsImageGray(piVar25)" identifier (argument_list "(piVar25)" ( identifier )))) , (binary_expression "iVar14 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          local_1134 = 1;\n          sVar3 = 1;\n        }" { (expression_statement "local_1134 = 1;" (assignment_expression "local_1134 = 1" identifier = number_literal) ;) (expression_statement "sVar3 = 1;" (assignment_expression "sVar3 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }" else (compound_statement "{\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }" { (expression_statement "local_1134 = (piVar25[1] == 2) + 3;" (assignment_expression "local_1134 = (piVar25[1] == 2) + 3" identifier = (binary_expression "(piVar25[1] == 2) + 3" (parenthesized_expression "(piVar25[1] == 2)" ( (binary_expression "piVar25[1] == 2" (subscript_expression "piVar25[1]" identifier [ number_literal ]) == number_literal) )) + number_literal)) ;) (expression_statement "sVar3 = (piVar25[1] == 2) + 3;" (assignment_expression "sVar3 = (piVar25[1] == 2) + 3" identifier = (binary_expression "(piVar25[1] == 2) + 3" (parenthesized_expression "(piVar25[1] == 2)" ( (binary_expression "piVar25[1] == 2" (subscript_expression "piVar25[1]" identifier [ number_literal ]) == number_literal) )) + number_literal)) ;) }))) (expression_statement "local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));" (assignment_expression "local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0))" identifier = (call_expression "WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0))" identifier (argument_list "(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0))" ( identifier , (binary_expression "((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0)" (parenthesized_expression "((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2)" ( (binary_expression "(sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2" (parenthesized_expression "(sVar3 - (ushort)(piVar32[0xa5] == 0))" ( (binary_expression "sVar3 - (ushort)(piVar32[0xa5] == 0)" identifier - (call_expression "(ushort)(piVar32[0xa5] == 0)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(piVar32[0xa5] == 0)" ( (binary_expression "piVar32[0xa5] == 0" (subscript_expression "piVar32[0xa5]" identifier [ number_literal ]) == number_literal) )))) )) + number_literal) )) - (call_expression "(ushort)(local_113c == 0)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(local_113c == 0)" ( (binary_expression "local_113c == 0" identifier == number_literal) )))) )))) ;) (expression_statement "local_1128 = local_1128 + 1;" (assignment_expression "local_1128 = local_1128 + 1" identifier = (binary_expression "local_1128 + 1" identifier + number_literal)) ;) (expression_statement "local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;" (assignment_expression "local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13" identifier = (binary_expression "local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13" (binary_expression "local_1144 + uVar6 + iVar10 + iVar11 + iVar12" (binary_expression "local_1144 + uVar6 + iVar10 + iVar11" (binary_expression "local_1144 + uVar6 + iVar10" (binary_expression "local_1144 + uVar6" identifier + identifier) + identifier) + identifier) + identifier) + identifier)) ;) (expression_statement "uVar31 = TellBlob(param_1);" (assignment_expression "uVar31 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar7[local_1128 * 2 + -2] = (int)uVar31;" (assignment_expression "puVar7[local_1128 * 2 + -2] = (int)uVar31" (subscript_expression "puVar7[local_1128 * 2 + -2]" identifier [ (binary_expression "local_1128 * 2 + -2" (binary_expression "local_1128 * 2" identifier * number_literal) + number_literal) ]) = (cast_expression "(int)uVar31" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);" (assignment_expression "puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20)" (subscript_expression "puVar7[local_1128 * 2 + -1]" identifier [ (binary_expression "local_1128 * 2 + -1" (binary_expression "local_1128 * 2" identifier * number_literal) + number_literal) ]) = (cast_expression "(int)((ulonglong)uVar31 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar31 >> 0x20)" ( (binary_expression "(ulonglong)uVar31 >> 0x20" (cast_expression "(ulonglong)uVar31" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (do_statement "do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);" do (compound_statement "{\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        }" { (while_statement "while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }" while (parenthesized_expression "(iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1)" ( (comma_expression "iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1" (assignment_expression "iVar11 = WriteBlobShort(param_1,iVar10)" identifier = (call_expression "WriteBlobShort(param_1,iVar10)" identifier (argument_list "(param_1,iVar10)" ( 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            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }" { (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" 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 "local_1144 = local_1144 + iVar11 + iVar12;" (assignment_expression "local_1144 = local_1144 + iVar11 + iVar12" identifier = (binary_expression "local_1144 + iVar11 + iVar12" (binary_expression "local_1144 + iVar11" identifier + identifier) + identifier)) ;) (if_statement "if (iVar10 == local_1134) goto LAB_0025ff56;" if (parenthesized_expression "(iVar10 == local_1134)" ( (binary_expression "iVar10 == local_1134" identifier == identifier) )) (goto_statement "goto LAB_0025ff56;" goto statement_identifier ;)) })) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "iVar12 = WriteBlobLongLong(param_1,0,0);" (assignment_expression "iVar12 = 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_1144 = local_1144 + iVar11 + iVar12;" (assignment_expression "local_1144 = local_1144 + iVar11 + iVar12" identifier = (binary_expression "local_1144 + iVar11 + iVar12" (binary_expression "local_1144 + iVar11" identifier + identifier) + identifier)) ;) }) while (parenthesized_expression "(iVar10 != local_1134)" ( (binary_expression "iVar10 != local_1134" identifier != identifier) )) ;) (labeled_statement "LAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }" statement_identifier : (if_statement "if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }" if (parenthesized_expression "(piVar32[0xa5] != 0)" ( (binary_expression "piVar32[0xa5] != 0" (subscript_expression "piVar32[0xa5]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }" { (expression_statement "iVar10 = WriteBlobShort(param_1,0xffff);" (assignment_expression "iVar10 = 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            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = 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            iVar11 = WriteBlobLong(param_1,0);\n          }" { (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 )))) ;) }) (else_clause "else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }" else (compound_statement "{\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }" { (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_1144 = iVar11 + local_1144 + iVar10;" (assignment_expression "local_1144 = iVar11 + local_1144 + iVar10" identifier = (binary_expression "iVar11 + local_1144 + iVar10" (binary_expression "iVar11 + local_1144" identifier + identifier) + identifier)) ;) }))) (if_statement "if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }" if (parenthesized_expression "(local_113c != 0)" ( (binary_expression "local_113c != 0" identifier != number_literal) )) (compound_statement "{\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }" { (expression_statement "iVar10 = WriteBlobShort(param_1,0xfffe);" (assignment_expression "iVar10 = 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            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = 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            iVar11 = WriteBlobLong(param_1,0);\n          }" { (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 )))) ;) }) (else_clause "else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }" else (compound_statement "{\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }" { (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_1144 = iVar11 + local_1144 + iVar10;" (assignment_expression "local_1144 = iVar11 + local_1144 + iVar10" identifier = (binary_expression "iVar11 + local_1144 + iVar10" (binary_expression "iVar11 + local_1144" identifier + identifier) + identifier)) ;) })) (expression_statement "puVar15 = &DAT_002a239a;" (assignment_expression "puVar15 = &DAT_002a239a" identifier = (pointer_expression "&DAT_002a239a" & identifier)) ;) (if_statement "if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\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          puVar15 = &DAT_0030c1c9;\n        }" { (expression_statement "puVar15 = &DAT_0030c1c9;" (assignment_expression "puVar15 = &DAT_0030c1c9" identifier = (pointer_expression "&DAT_0030c1c9" & identifier)) ;) })) (expression_statement "iVar10 = WriteBlobString(param_1,puVar15);" (assignment_expression "iVar10 = WriteBlobString(param_1,puVar15)" identifier = (call_expression "WriteBlobString(param_1,puVar15)" identifier (argument_list "(param_1,puVar15)" ( identifier , identifier )))) ;) (switch_statement "switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }" switch (parenthesized_expression "(piVar32[0x8f])" ( (subscript_expression "piVar32[0x8f]" identifier [ number_literal ]) )) (compound_statement "{\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }" { (case_statement "case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "idiv";" (assignment_expression "pcVar8 = "idiv"" identifier = (string_literal ""idiv"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "div ";" (assignment_expression "pcVar8 = "div "" identifier = (string_literal ""div "" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "colr";" (assignment_expression "pcVar8 = "colr"" identifier = (string_literal ""colr"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;" default : (expression_statement "pcVar8 = "norm";" (assignment_expression "pcVar8 = "norm"" identifier = (string_literal ""norm"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "dark";" (assignment_expression "pcVar8 = "dark"" identifier = (string_literal ""dark"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "diff";" (assignment_expression "pcVar8 = "diff"" identifier = (string_literal ""diff"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "diss";" (assignment_expression "pcVar8 = "diss"" identifier = (string_literal ""diss"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "smud";" (assignment_expression "pcVar8 = "smud"" identifier = (string_literal ""smud"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "hLit";" (assignment_expression "pcVar8 = "hLit"" identifier = (string_literal ""hLit"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "hMix";" (assignment_expression "pcVar8 = "hMix"" identifier = (string_literal ""hMix"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "hue ";" (assignment_expression "pcVar8 = "hue "" identifier = (string_literal ""hue "" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "lite";" (assignment_expression "pcVar8 = "lite"" identifier = (string_literal ""lite"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "lbrn";" (assignment_expression "pcVar8 = "lbrn"" identifier = (string_literal ""lbrn"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "lddg";" (assignment_expression "pcVar8 = "lddg"" identifier = (string_literal ""lddg"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "lLit";" (assignment_expression "pcVar8 = "lLit"" identifier = (string_literal ""lLit"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "lum ";" (assignment_expression "pcVar8 = "lum "" identifier = (string_literal ""lum "" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "mul ";" (assignment_expression "pcVar8 = "mul "" identifier = (string_literal ""mul "" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "over";" (assignment_expression "pcVar8 = "over"" identifier = (string_literal ""over"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "pLit";" (assignment_expression "pcVar8 = "pLit"" identifier = (string_literal ""pLit"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "sat ";" (assignment_expression "pcVar8 = "sat "" identifier = (string_literal ""sat "" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "scrn";" (assignment_expression "pcVar8 = "scrn"" identifier = (string_literal ""scrn"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;" case number_literal : (expression_statement "pcVar8 = "sLit";" (assignment_expression "pcVar8 = "sLit"" identifier = (string_literal ""sLit"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (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 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }" case number_literal : (expression_statement "pcVar8 = "vLit";" (assignment_expression "pcVar8 = "vLit"" identifier = (string_literal ""vLit"" " string_content ")) ;) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }" if (parenthesized_expression "(piVar32[0x8d] == 1)" ( (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            pcVar8 = "tiLv";\n          }" { (expression_statement "pcVar8 = "tiLv";" (assignment_expression "pcVar8 = "tiLv"" identifier = (string_literal ""tiLv"" " string_content ")) ;) }))) })) (expression_statement "iVar11 = WriteBlobString(param_1,pcVar8);" (assignment_expression "iVar11 = WriteBlobString(param_1,pcVar8)" identifier = (call_expression "WriteBlobString(param_1,pcVar8)" identifier (argument_list "(param_1,pcVar8)" ( identifier , identifier )))) ;) (expression_statement "pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");" (assignment_expression "pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity")" identifier = (cast_expression "(char *)GetImageArtifact(piVar32,"psd:layer.opacity")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageArtifact(piVar32,"psd:layer.opacity")" identifier (argument_list "(piVar32,"psd:layer.opacity")" ( identifier , (string_literal ""psd:layer.opacity"" " string_content ") ))))) ;) (if_statement "if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\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          iVar12 = WriteBlobByte(param_1,0xff);\n        }" { (expression_statement "iVar12 = WriteBlobByte(param_1,0xff);" (assignment_expression "iVar12 = WriteBlobByte(param_1,0xff)" identifier = (call_expression "WriteBlobByte(param_1,0xff)" identifier (argument_list "(param_1,0xff)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }" else (compound_statement "{\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\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 "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }" if (parenthesized_expression "(0.0 < (float)lVar16)" ( (binary_expression "0.0 < (float)lVar16" number_literal < (cast_expression "(float)lVar16" ( (type_descriptor "float" primitive_type) ) identifier)) )) (compound_statement "{\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }" { (expression_statement "uVar2 = 0xff;" (assignment_expression "uVar2 = 0xff" identifier = number_literal) ;) (expression_statement "fVar1 = (float)lVar16 / DAT_002a7ff0;" (assignment_expression "fVar1 = (float)lVar16 / DAT_002a7ff0" identifier = (binary_expression "(float)lVar16 / DAT_002a7ff0" (cast_expression "(float)lVar16" ( (type_descriptor "float" primitive_type) ) identifier) / identifier)) ;) (if_statement "if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }" if (parenthesized_expression "(fVar1 < DAT_002a7ff4)" ( (binary_expression "fVar1 < DAT_002a7ff4" identifier < identifier) )) (compound_statement "{\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }" { (expression_statement "uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);" (assignment_expression "uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124)" identifier = (cast_expression "(undefined1)(short)ROUND(fVar1 + DAT_0029f124)" ( (type_descriptor "undefined1" type_identifier) ) (cast_expression "(short)ROUND(fVar1 + DAT_0029f124)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (call_expression "ROUND(fVar1 + DAT_0029f124)" identifier (argument_list "(fVar1 + DAT_0029f124)" ( (binary_expression "fVar1 + DAT_0029f124" identifier + identifier) )))))) ;) })) })) (expression_statement "iVar12 = WriteBlobByte(param_1,uVar2);" (assignment_expression "iVar12 = WriteBlobByte(param_1,uVar2)" identifier = (call_expression "WriteBlobByte(param_1,uVar2)" identifier (argument_list "(param_1,uVar2)" ( identifier , identifier )))) ;) (expression_statement "FUN_0025c840((double)lVar16);" (call_expression "FUN_0025c840((double)lVar16)" identifier (argument_list "((double)lVar16)" ( (cast_expression "(double)lVar16" ( (type_descriptor "double" primitive_type) ) identifier) ))) ;) }))) (expression_statement "iVar14 = WriteBlobByte(param_1,0);" (assignment_expression "iVar14 = WriteBlobByte(param_1,0)" identifier = (call_expression "WriteBlobByte(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');" (assignment_expression "iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01')" identifier = (call_expression "WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01')" identifier (argument_list "(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01')" ( identifier , (binary_expression "(piVar32[0x8f] == 0x34) * '\x03' + '\x01'" (binary_expression "(piVar32[0x8f] == 0x34) * '\x03'" (parenthesized_expression "(piVar32[0x8f] == 0x34)" ( (binary_expression "piVar32[0x8f] == 0x34" (subscript_expression "piVar32[0x8f]" identifier [ number_literal ]) == number_literal) )) * (char_literal "'\x03'" ' escape_sequence ')) + (char_literal "'\x01'" ' escape_sequence ')) )))) ;) (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 "iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;" (assignment_expression "iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17" identifier = (binary_expression "iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17" (binary_expression "iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14" (binary_expression "iVar13 + local_1144 + iVar10 + iVar11 + iVar12" (binary_expression "iVar13 + local_1144 + iVar10 + iVar11" (binary_expression "iVar13 + local_1144 + iVar10" (binary_expression "iVar13 + local_1144" identifier + identifier) + identifier) + identifier) + identifier) + identifier) + identifier)) ;) (expression_statement "puVar28 = &DAT_0030c7e0;" (assignment_expression "puVar28 = &DAT_0030c7e0" identifier = (pointer_expression "&DAT_0030c7e0" & identifier)) ;) (expression_statement "puVar27 = local_10d9;" (assignment_expression "puVar27 = local_10d9" identifier = identifier) ;) (for_statement "for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -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          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }" { (expression_statement "*puVar27 = *puVar28;" (assignment_expression "*puVar27 = *puVar28" (pointer_expression "*puVar27" * identifier) = (pointer_expression "*puVar28" * identifier)) ;) (expression_statement "puVar28 = puVar28 + (uint)bVar29 * -2 + 1;" (assignment_expression "puVar28 = puVar28 + (uint)bVar29 * -2 + 1" identifier = (binary_expression "puVar28 + (uint)bVar29 * -2 + 1" (binary_expression "puVar28 + (uint)bVar29 * -2" identifier + (binary_expression "(uint)bVar29 * -2" (cast_expression "(uint)bVar29" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar27 = puVar27 + (uint)bVar29 * -2 + 1;" (assignment_expression "puVar27 = puVar27 + (uint)bVar29 * -2 + 1" identifier = (binary_expression "puVar27 + (uint)bVar29 * -2 + 1" (binary_expression "puVar27 + (uint)bVar29 * -2" identifier + (binary_expression "(uint)bVar29 * -2" (cast_expression "(uint)bVar29" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "iVar10 = GetImageProfile(piVar32,"psd:additional-info");" (assignment_expression "iVar10 = GetImageProfile(piVar32,"psd:additional-info")" identifier = (call_expression "GetImageProfile(piVar32,"psd:additional-info")" identifier (argument_list "(piVar32,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (if_statement "if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00260a9c:\n          iVar11 = 0;\n        }" { (labeled_statement "LAB_00260a9c:\n          iVar11 = 0;" statement_identifier : (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }" else (compound_statement "{\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }" { (expression_statement "uVar18 = GetImageOption(param_2,"psd:additional-info");" (assignment_expression "uVar18 = 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(uVar18,"all");" (assignment_expression "iVar12 = LocaleCompare(uVar18,"all")" identifier = (call_expression "LocaleCompare(uVar18,"all")" identifier (argument_list "(uVar18,"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(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }" if (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) (compound_statement "{\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }" { (expression_statement "iVar11 = LocaleCompare(uVar18,"selective");" (assignment_expression "iVar11 = LocaleCompare(uVar18,"selective")" identifier = (call_expression "LocaleCompare(uVar18,"selective")" identifier (argument_list "(uVar18,"selective")" ( identifier , (string_literal ""selective"" " string_content ") )))) ;) (if_statement "if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }" { (expression_statement "uVar26 = GetStringInfoLength(iVar10);" (assignment_expression "uVar26 = 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 (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }" if (parenthesized_expression "(uVar26 < 0xc)" ( (binary_expression "uVar26 < 0xc" identifier < number_literal) )) (compound_statement "{\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }" { (expression_statement "iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");" (assignment_expression "iVar11 = RemoveImageProfile(piVar32,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(piVar32,"psd:additional-info")" identifier (argument_list "(piVar32,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) }) (else_clause "else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }" else (compound_statement "{\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }" { (expression_statement "local_1134 = 0;" (assignment_expression "local_1134 = 0" identifier = number_literal) ;) (do_statement "do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);" do (compound_statement "{\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\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 "uVar26 = uVar26 - 0xc;" (assignment_expression "uVar26 = uVar26 - 0xc" identifier = (binary_expression "uVar26 - 0xc" identifier - number_literal)) ;) (expression_statement "local_1021 = 0;" (assignment_expression "local_1021 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = *(uint *)((int)__dest + 8);" (assignment_expression "uVar6 = *(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 "uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;" (assignment_expression "uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18" identifier = (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" ( (binary_expression "uVar6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" ( (binary_expression "uVar6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar6 << 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 "puVar28 = local_10d9;" (assignment_expression "puVar28 = local_10d9" identifier = identifier) ;) (if_statement "if (uVar26 < uVar6) goto LAB_00260a9c;" if (parenthesized_expression "(uVar26 < uVar6)" ( (binary_expression "uVar26 < uVar6" identifier < identifier) )) (goto_statement "goto LAB_00260a9c;" goto statement_identifier ;)) (do_statement "do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);" do (compound_statement "{\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  }" { (expression_statement "iVar11 = LocaleNCompare(&local_1025,puVar28,5);" (assignment_expression "iVar11 = LocaleNCompare(&local_1025,puVar28,5)" identifier = (call_expression "LocaleNCompare(&local_1025,puVar28,5)" identifier (argument_list "(&local_1025,puVar28,5)" ( (pointer_expression "&local_1025" & identifier) , identifier , number_literal )))) ;) (if_statement "if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }" { (expression_statement "uVar26 = uVar26 - uVar6;" (assignment_expression "uVar26 = uVar26 - uVar6" identifier = (binary_expression "uVar26 - uVar6" identifier - identifier)) ;) (expression_statement "local_1134 = uVar6 + 0xc + local_1134;" (assignment_expression "local_1134 = uVar6 + 0xc + local_1134" identifier = (binary_expression "uVar6 + 0xc + local_1134" (binary_expression "uVar6 + 0xc" identifier + number_literal) + identifier)) ;) (expression_statement "__dest = (void *)((int)__dest + uVar6 + 0xc);" (assignment_expression "__dest = (void *)((int)__dest + uVar6 + 0xc)" identifier = (cast_expression "(void *)((int)__dest + uVar6 + 0xc)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + uVar6 + 0xc)" ( (binary_expression "(int)__dest + uVar6 + 0xc" (binary_expression "(int)__dest + uVar6" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (goto_statement "goto LAB_0026028c;" goto statement_identifier ;) })) (expression_statement "puVar28 = (undefined4 *)((int)puVar28 + 5);" (assignment_expression "puVar28 = (undefined4 *)((int)puVar28 + 5)" identifier = (cast_expression "(undefined4 *)((int)puVar28 + 5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar28 + 5)" ( (binary_expression "(int)puVar28 + 5" (cast_expression "(int)puVar28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "(puVar28 != (undefined4 *)&local_1025)" ( (binary_expression "puVar28 != (undefined4 *)&local_1025" identifier != (cast_expression "(undefined4 *)&local_1025" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_1025" & identifier))) )) ;) (expression_statement "uVar26 = uVar26 - uVar6;" (assignment_expression "uVar26 = uVar26 - uVar6" identifier = (binary_expression "uVar26 - uVar6" identifier - identifier)) ;) (if_statement "if (uVar26 == 0) break;" if (parenthesized_expression "(uVar26 == 0)" ( (binary_expression "uVar26 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);" (call_expression "memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26)" identifier (argument_list "(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26)" ( identifier , (cast_expression "(void *)((int)__dest + uVar6 + 0xc)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + uVar6 + 0xc)" ( (binary_expression "(int)__dest + uVar6 + 0xc" (binary_expression "(int)__dest + uVar6" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) ))) , identifier ))) ;) (labeled_statement "LAB_0026028c:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(0xb < uVar26)" ( (binary_expression "0xb < uVar26" number_literal < identifier) )) ;) (expression_statement "iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");" (assignment_expression "iVar11 = RemoveImageProfile(piVar32,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(piVar32,"psd:additional-info")" identifier (argument_list "(piVar32,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (if_statement "if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }" if (parenthesized_expression "(local_1134 != 0)" ( (binary_expression "local_1134 != 0" identifier != number_literal) )) (compound_statement "{\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }" { (expression_statement "SetStringInfoLength(iVar11,local_1134);" (call_expression "SetStringInfoLength(iVar11,local_1134)" identifier (argument_list "(iVar11,local_1134)" ( identifier , identifier ))) ;) (expression_statement "SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);" (call_expression "SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5)" identifier (argument_list "(piVar32,"psd:additional-info",iVar10,param_5)" ( identifier , (string_literal ""psd:additional-info"" " string_content ") , identifier , identifier ))) ;) (goto_statement "goto LAB_00260370;" 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              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }" else (compound_statement "{\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }" { (expression_statement "uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");" (assignment_expression "uVar18 = RemoveImageProfile(piVar32,"psd:additional-info")" identifier = (call_expression "RemoveImageProfile(piVar32,"psd:additional-info")" identifier (argument_list "(piVar32,"psd:additional-info")" ( identifier , (string_literal ""psd:additional-info"" " string_content ") )))) ;) (expression_statement "iVar11 = DestroyStringInfo(uVar18);" (assignment_expression "iVar11 = DestroyStringInfo(uVar18)" identifier = (call_expression "DestroyStringInfo(uVar18)" identifier (argument_list "(uVar18)" ( identifier )))) ;) }))) })) }))) (labeled_statement "LAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);" statement_identifier : (expression_statement "pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);" (assignment_expression "pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5)" identifier = (cast_expression "(char *)GetImageProperty(piVar32,"label",param_5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageProperty(piVar32,"label",param_5)" identifier (argument_list "(piVar32,"label",param_5)" ( identifier , (string_literal ""label"" " string_content ") , identifier ))))) ;)) (if_statement "if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\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 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }" { (expression_statement "pcVar8 = local_1020;" (assignment_expression "pcVar8 = local_1020" identifier = identifier) ;) (expression_statement "FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);" (call_expression "FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128)" identifier (argument_list "(pcVar8,0x1000,"L%.20g",(double)local_1128)" ( identifier , number_literal , (string_literal ""L%.20g"" " string_content ") , (cast_expression "(double)local_1128" ( (type_descriptor "double" primitive_type) ) identifier) ))) ;) })) (expression_statement "sVar9 = strlen(pcVar8);" (assignment_expression "sVar9 = strlen(pcVar8)" identifier = (call_expression "strlen(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier )))) ;) (expression_statement "uVar26 = sVar9 + 1;" (assignment_expression "uVar26 = sVar9 + 1" identifier = (binary_expression "sVar9 + 1" identifier + number_literal)) ;) (if_statement "if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }" if (parenthesized_expression "((uVar26 & 3) != 0)" ( (binary_expression "(uVar26 & 3) != 0" (parenthesized_expression "(uVar26 & 3)" ( (binary_expression "uVar26 & 3" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }" { (expression_statement "uVar26 = (uVar26 & 0xfffffffc) + 4;" (assignment_expression "uVar26 = (uVar26 & 0xfffffffc) + 4" identifier = (binary_expression "(uVar26 & 0xfffffffc) + 4" (parenthesized_expression "(uVar26 & 0xfffffffc)" ( (binary_expression "uVar26 & 0xfffffffc" identifier & number_literal) )) + number_literal)) ;) })) (if_statement "if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }" if (parenthesized_expression "(iVar11 != 0)" ( (binary_expression "iVar11 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }" { (expression_statement "iVar10 = GetStringInfoLength(iVar11);" (assignment_expression "iVar10 = GetStringInfoLength(iVar11)" identifier = (call_expression "GetStringInfoLength(iVar11)" identifier (argument_list "(iVar11)" ( identifier )))) ;) (expression_statement "uVar26 = uVar26 + iVar10;" (assignment_expression "uVar26 = uVar26 + iVar10" identifier = (binary_expression "uVar26 + iVar10" identifier + identifier)) ;) })) (if_statement "if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }" if (parenthesized_expression "(local_113c == 0)" ( (binary_expression "local_113c == 0" identifier == number_literal) )) (compound_statement "{\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }" { (expression_statement "iVar10 = WriteBlobLong(param_1,uVar26 + 8);" (assignment_expression "iVar10 = WriteBlobLong(param_1,uVar26 + 8)" identifier = (call_expression "WriteBlobLong(param_1,uVar26 + 8)" identifier (argument_list "(param_1,uVar26 + 8)" ( identifier , (binary_expression "uVar26 + 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 + iVar13;" (assignment_expression "iVar10 = iVar10 + iVar12 + iVar13" identifier = (binary_expression "iVar10 + iVar12 + iVar13" (binary_expression "iVar10 + iVar12" identifier + identifier) + identifier)) ;) }) (else_clause "else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }" else (compound_statement "{\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }" { (expression_statement "iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);" (assignment_expression "iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c)" identifier = (call_expression "WriteBlobLong(param_1,uVar26 + 0x1c)" identifier (argument_list "(param_1,uVar26 + 0x1c)" ( identifier , (binary_expression "uVar26 + 0x1c" identifier + number_literal) )))) ;) (if_statement "if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }" if (parenthesized_expression "((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0))" ( (binary_expression "(*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)" (parenthesized_expression "(*(int *)(local_113c + 0x23c) != 0x34)" ( (binary_expression "*(int *)(local_113c + 0x23c) != 0x34" (pointer_expression "*(int *)(local_113c + 0x23c)" * (cast_expression "(int *)(local_113c + 0x23c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x23c)" ( (binary_expression "local_113c + 0x23c" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(piVar32[0xa5] != 0)" ( (binary_expression "piVar32[0xa5] != 0" (subscript_expression "piVar32[0xa5]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }" { (expression_statement "FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);" (call_expression "FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5)" identifier (argument_list "((double)((float)local_10e3 * DAT_002a7ff0),param_5)" ( (cast_expression "(double)((float)local_10e3 * DAT_002a7ff0)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)local_10e3 * DAT_002a7ff0)" ( (binary_expression "(float)local_10e3 * DAT_002a7ff0" (cast_expression "(float)local_10e3" ( (type_descriptor "float" primitive_type) ) identifier) * identifier) ))) , identifier ))) ;) })) (expression_statement "*(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];" (assignment_expression "*(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83]" (pointer_expression "*(int *)(local_113c + 0x20c)" * (cast_expression "(int *)(local_113c + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x20c)" ( (binary_expression "local_113c + 0x20c" identifier + number_literal) )))) = (binary_expression "*(int *)(local_113c + 0x20c) + param_1[0x83]" (pointer_expression "*(int *)(local_113c + 0x20c)" * (cast_expression "(int *)(local_113c + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x20c)" ( (binary_expression "local_113c + 0x20c" identifier + number_literal) )))) + (subscript_expression "param_1[0x83]" identifier [ number_literal ]))) ;) (expression_statement "*(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];" (assignment_expression "*(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82]" (pointer_expression "*(int *)(local_113c + 0x208)" * (cast_expression "(int *)(local_113c + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x208)" ( (binary_expression "local_113c + 0x208" identifier + number_literal) )))) = (binary_expression "*(int *)(local_113c + 0x208) + param_1[0x82]" (pointer_expression "*(int *)(local_113c + 0x208)" * (cast_expression "(int *)(local_113c + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x208)" ( (binary_expression "local_113c + 0x208" identifier + number_literal) )))) + (subscript_expression "param_1[0x82]" identifier [ number_literal ]))) ;) (expression_statement "iVar14 = WriteBlobLong(param_1,0x14);" (assignment_expression "iVar14 = 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_113c + 0x20c));" (assignment_expression "iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c))" identifier = (call_expression "WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c))" identifier (argument_list "(param_1,*(undefined4 *)(local_113c + 0x20c))" ( identifier , (pointer_expression "*(undefined4 *)(local_113c + 0x20c)" * (cast_expression "(undefined4 *)(local_113c + 0x20c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x20c)" ( (binary_expression "local_113c + 0x20c" identifier + number_literal) )))) )))) ;) (expression_statement "iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));" (assignment_expression "iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208))" identifier = (call_expression "WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208))" identifier (argument_list "(param_1,*(undefined4 *)(local_113c + 0x208))" ( identifier , (pointer_expression "*(undefined4 *)(local_113c + 0x208)" * (cast_expression "(undefined4 *)(local_113c + 0x208)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x208)" ( (binary_expression "local_113c + 0x208" identifier + number_literal) )))) )))) ;) (expression_statement "iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));" (assignment_expression "iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c))" identifier = (call_expression "WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c))" identifier (argument_list "(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c))" ( identifier , (binary_expression "*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c)" (pointer_expression "*(int *)(local_113c + 0x20c)" * (cast_expression "(int *)(local_113c + 0x20c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x20c)" ( (binary_expression "local_113c + 0x20c" identifier + number_literal) )))) + (pointer_expression "*(int *)(local_113c + 0x1c)" * (cast_expression "(int *)(local_113c + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x1c)" ( (binary_expression "local_113c + 0x1c" identifier + number_literal) ))))) )))) ;) (expression_statement "iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));" (assignment_expression "iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18))" identifier = (call_expression "WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18))" identifier (argument_list "(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18))" ( identifier , (binary_expression "*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18)" (pointer_expression "*(int *)(local_113c + 0x208)" * (cast_expression "(int *)(local_113c + 0x208)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x208)" ( (binary_expression "local_113c + 0x208" identifier + number_literal) )))) + (pointer_expression "*(int *)(local_113c + 0x18)" * (cast_expression "(int *)(local_113c + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x18)" ( (binary_expression "local_113c + 0x18" identifier + number_literal) ))))) )))) ;) (expression_statement "iVar22 = WriteBlobByte(param_1,local_10e3);" (assignment_expression "iVar22 = WriteBlobByte(param_1,local_10e3)" identifier = (call_expression "WriteBlobByte(param_1,local_10e3)" identifier (argument_list "(param_1,local_10e3)" ( identifier , identifier )))) ;) (expression_statement "iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');" (assignment_expression "iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02')" identifier = (call_expression "WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02')" identifier (argument_list "(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02')" ( identifier , (binary_expression "(*(int *)(local_113c + 0x23c) == 0x34) * '\x02'" (parenthesized_expression "(*(int *)(local_113c + 0x23c) == 0x34)" ( (binary_expression "*(int *)(local_113c + 0x23c) == 0x34" (pointer_expression "*(int *)(local_113c + 0x23c)" * (cast_expression "(int *)(local_113c + 0x23c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_113c + 0x23c)" ( (binary_expression "local_113c + 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 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;" (assignment_expression "iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10" identifier = (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17" (binary_expression "iVar13 + iVar12 + iVar14" (binary_expression "iVar13 + iVar12" identifier + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier) + identifier)) ;) }))) (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 "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            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }" if (parenthesized_expression "(sVar9 < 0x100)" ( (binary_expression "sVar9 < 0x100" identifier < number_literal) )) (compound_statement "{\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }" { (if_statement "if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }" if (parenthesized_expression "(sVar9 == 0)" ( (binary_expression "sVar9 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }" { (expression_statement "iVar14 = WriteBlobByte(param_1,0);" (assignment_expression "iVar14 = WriteBlobByte(param_1,0)" identifier = (call_expression "WriteBlobByte(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "local_113c = 3;" (assignment_expression "local_113c = 3" identifier = number_literal) ;) }) (else_clause "else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }" else (compound_statement "{\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }" { (expression_statement "iVar14 = WriteBlobByte(param_1,sVar9);" (assignment_expression "iVar14 = WriteBlobByte(param_1,sVar9)" identifier = (call_expression "WriteBlobByte(param_1,sVar9)" identifier (argument_list "(param_1,sVar9)" ( identifier , identifier )))) ;) (expression_statement "iVar13 = WriteBlob(param_1,sVar9,pcVar8);" (assignment_expression "iVar13 = WriteBlob(param_1,sVar9,pcVar8)" identifier = (call_expression "WriteBlob(param_1,sVar9,pcVar8)" identifier (argument_list "(param_1,sVar9,pcVar8)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar14 = iVar14 + iVar13;" (assignment_expression "iVar14 = iVar14 + iVar13" identifier = (binary_expression "iVar14 + iVar13" identifier + identifier)) ;) (expression_statement "local_113c = sVar9 + 1 & 3;" (assignment_expression "local_113c = sVar9 + 1 & 3" identifier = (binary_expression "sVar9 + 1 & 3" (binary_expression "sVar9 + 1" identifier + number_literal) & number_literal)) ;) (if_statement "if (local_113c == 0) goto LAB_00260559;" if (parenthesized_expression "(local_113c == 0)" ( (binary_expression "local_113c == 0" identifier == number_literal) )) (goto_statement "goto LAB_00260559;" goto statement_identifier ;)) (expression_statement "local_113c = 4 - local_113c;" (assignment_expression "local_113c = 4 - local_113c" identifier = (binary_expression "4 - local_113c" number_literal - identifier)) ;) }))) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (do_statement "do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);" do (compound_statement "{\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          }" { (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" identifier = (binary_expression "iVar13 + 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 "iVar14 = iVar14 + iVar17;" (assignment_expression "iVar14 = iVar14 + iVar17" identifier = (binary_expression "iVar14 + iVar17" identifier + identifier)) ;) }) while (parenthesized_expression "(local_113c != iVar13)" ( (binary_expression "local_113c != iVar13" identifier != identifier) )) ;) }) (else_clause "else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }" else (compound_statement "{\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }" { (expression_statement "iVar14 = WriteBlobByte(param_1,0xff);" (assignment_expression "iVar14 = WriteBlobByte(param_1,0xff)" identifier = (call_expression "WriteBlobByte(param_1,0xff)" identifier (argument_list "(param_1,0xff)" ( identifier , number_literal )))) ;) (expression_statement "iVar13 = WriteBlob(param_1,0xff,pcVar8);" (assignment_expression "iVar13 = WriteBlob(param_1,0xff,pcVar8)" identifier = (call_expression "WriteBlob(param_1,0xff,pcVar8)" identifier (argument_list "(param_1,0xff,pcVar8)" ( identifier , number_literal , identifier )))) ;) (expression_statement "iVar14 = iVar14 + iVar13;" (assignment_expression "iVar14 = iVar14 + iVar13" identifier = (binary_expression "iVar14 + iVar13" identifier + identifier)) ;) }))) (labeled_statement "LAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;" statement_identifier : (expression_statement "uVar6 = iVar14 + iVar12 + iVar10;" (assignment_expression "uVar6 = iVar14 + iVar12 + iVar10" identifier = (binary_expression "iVar14 + iVar12 + iVar10" (binary_expression "iVar14 + iVar12" identifier + identifier) + identifier)) ;)) (if_statement "if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }" if (parenthesized_expression "(iVar11 != 0)" ( (binary_expression "iVar11 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }" { (expression_statement "uVar18 = GetStringInfoDatum(iVar11);" (assignment_expression "uVar18 = GetStringInfoDatum(iVar11)" identifier = (call_expression "GetStringInfoDatum(iVar11)" identifier (argument_list "(iVar11)" ( identifier )))) ;) (expression_statement "uVar24 = GetStringInfoLength(iVar11);" (assignment_expression "uVar24 = GetStringInfoLength(iVar11)" identifier = (call_expression "GetStringInfoLength(iVar11)" identifier (argument_list "(iVar11)" ( identifier )))) ;) (expression_statement "iVar10 = WriteBlob(param_1,uVar24,uVar18);" (assignment_expression "iVar10 = WriteBlob(param_1,uVar24,uVar18)" identifier = (call_expression "WriteBlob(param_1,uVar24,uVar18)" identifier (argument_list "(param_1,uVar24,uVar18)" ( identifier , identifier , identifier )))) ;) (expression_statement "uVar6 = uVar6 + iVar10;" (assignment_expression "uVar6 = uVar6 + iVar10" identifier = (binary_expression "uVar6 + iVar10" identifier + identifier)) ;) })) (expression_statement "piVar5 = (int *)GetNextImageInList(piVar32);" (assignment_expression "piVar5 = (int *)GetNextImageInList(piVar32)" identifier = (cast_expression "(int *)GetNextImageInList(piVar32)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageInList(piVar32)" identifier (argument_list "(piVar32)" ( identifier ))))) ;) (expression_statement "puVar28 = puVar7;" (assignment_expression "puVar28 = puVar7" identifier = identifier) ;) (expression_statement "piVar25 = piVar4;" (assignment_expression "piVar25 = piVar4" identifier = identifier) ;) }) 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)) )) ;) (do_statement "do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);" do (compound_statement "{\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      }" { (expression_statement "iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);" (assignment_expression "iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5)" identifier = (call_expression "FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5)" identifier (argument_list "(piVar25,*puVar28,puVar28[1],1,param_5)" ( identifier , (pointer_expression "*puVar28" * identifier) , (subscript_expression "puVar28[1]" identifier [ number_literal ]) , number_literal , identifier )))) ;) (if_statement "if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }" { (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "local_113c = uVar6;" (assignment_expression "local_113c = uVar6" identifier = identifier) ;) (goto_statement "goto LAB_0026060b;" goto statement_identifier ;) })) (expression_statement "uVar6 = uVar6 + iVar10;" (assignment_expression "uVar6 = uVar6 + iVar10" identifier = (binary_expression "uVar6 + iVar10" identifier + identifier)) ;) (expression_statement "piVar25 = (int *)GetNextImageInList(piVar25);" (assignment_expression "piVar25 = (int *)GetNextImageInList(piVar25)" identifier = (cast_expression "(int *)GetNextImageInList(piVar25)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageInList(piVar25)" identifier (argument_list "(piVar25)" ( identifier ))))) ;) (expression_statement "puVar28 = puVar28 + 2;" (assignment_expression "puVar28 = puVar28 + 2" identifier = (binary_expression "puVar28 + 2" identifier + number_literal)) ;) (expression_statement "local_113c = uVar6;" (assignment_expression "local_113c = uVar6" identifier = identifier) ;) }) while (parenthesized_expression "(piVar25 != (int *)0x0)" ( (binary_expression "piVar25 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "uVar18 = 1;" (assignment_expression "uVar18 = 1" identifier = number_literal) ;) (labeled_statement "LAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }" statement_identifier : (if_statement "if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\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_113c;\n    }" { (expression_statement "*param_4 = local_113c;" (assignment_expression "*param_4 = local_113c" (pointer_expression "*param_4" * identifier) = identifier) ;) }))) (expression_statement "uVar26 = local_113c + 1;" (assignment_expression "uVar26 = local_113c + 1" identifier = (binary_expression "local_113c + 1" identifier + number_literal)) ;) (if_statement "if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }" if (parenthesized_expression "(local_113c >> 1 == local_113c + 1 >> 1)" ( (binary_expression "local_113c >> 1 == local_113c + 1 >> 1" (binary_expression "local_113c >> 1" identifier >> number_literal) == (binary_expression "local_113c + 1 >> 1" (binary_expression "local_113c + 1" identifier + number_literal) >> number_literal)) )) (compound_statement "{\n      uVar26 = local_113c;\n    }" { (expression_statement "uVar26 = local_113c;" (assignment_expression "uVar26 = local_113c" identifier = identifier) ;) })) (expression_statement "uVar31 = TellBlob(param_1);" (assignment_expression "uVar31 = TellBlob(param_1)" identifier = (call_expression "TellBlob(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SeekBlob(param_1,uVar30,0,uVar31);" (call_expression "SeekBlob(param_1,uVar30,0,uVar31)" identifier (argument_list "(param_1,uVar30,0,uVar31)" ( identifier , identifier , number_literal , identifier ))) ;) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,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,uVar26);\n    }" { (expression_statement "WriteBlobLong(param_1,uVar26);" (call_expression "WriteBlobLong(param_1,uVar26)" identifier (argument_list "(param_1,uVar26)" ( identifier , identifier ))) ;) }) (else_clause "else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }" else (compound_statement "{\n      WriteBlobLongLong(param_1,uVar26,0);\n    }" { (expression_statement "WriteBlobLongLong(param_1,uVar26,0);" (call_expression "WriteBlobLongLong(param_1,uVar26,0)" identifier (argument_list "(param_1,uVar26,0)" ( identifier , identifier , number_literal ))) ;) }))) (expression_statement "SeekBlob(param_1,uVar31,0);" (call_expression "SeekBlob(param_1,uVar31,0)" identifier (argument_list "(param_1,uVar31,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "RelinquishMagickMemory(puVar7);" (call_expression "RelinquishMagickMemory(puVar7)" identifier (argument_list "(puVar7)" ( identifier ))) ;) (for_statement "for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\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      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }" { (expression_statement "iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");" (assignment_expression "iVar10 = 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 ") )))) ;) (if_statement "if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }" if (parenthesized_expression "(iVar10 != 0)" ( (binary_expression "iVar10 != 0" identifier != number_literal) )) (compound_statement "{\n        DeleteImageRegistry(iVar10);\n      }" { (expression_statement "DeleteImageRegistry(iVar10);" (call_expression "DeleteImageRegistry(iVar10)" identifier (argument_list "(iVar10)" ( identifier ))) ;) })) })) }))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0029eab0();\n  }" { (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar18;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE 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 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 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 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 (pointer_declarator * IDENT) ;) (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 ;) (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) ;) (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 = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_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 (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = 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 = 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 = IDENT) ;) (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 ])) )))) ;) (expression_statement (assignment_expression IDENT = 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 = 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 = (call_expression IDENT (argument_list ( IDENT , (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )))) )) + 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) ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (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 )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (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 , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (labeled_statement statement_identifier : (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 )))) ;) (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)) ;) }))) (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 = (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 )))) ;) }) (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 = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) / IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < 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 IDENT + IDENT) )))))) ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) }))) (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 (binary_expression (binary_expression (binary_expression IDENT + IDENT) + IDENT) + 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 IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & 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 = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (expression_statement (assignment_expression IDENT = 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 , 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 , 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 { (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 ))) ;) })) })) }))) (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_0025fc80(int *param_1,int param_2,int param_3,uint *param_4,undefined4 param_5)\n\n{\n  float fVar1;\n  undefined1 uVar2;\n  short sVar3;\n  int *piVar4;\n  int *piVar5;\n  uint uVar6;\n  undefined4 *puVar7;\n  char *pcVar8;\n  size_t sVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  undefined1 *puVar15;\n  long lVar16;\n  int iVar17;\n  undefined4 uVar18;\n  void *__dest;\n  int iVar19;\n  int iVar20;\n  int iVar21;\n  int iVar22;\n  int iVar23;\n  undefined4 uVar24;\n  int *piVar25;\n  uint uVar26;\n  undefined4 *puVar27;\n  undefined4 *puVar28;\n  int in_GS_OFFSET;\n  byte bVar29;\n  undefined8 uVar30;\n  undefined8 uVar31;\n  int *piVar32;\n  int local_1144;\n  uint local_113c;\n  int local_1134;\n  int local_1128;\n  byte local_10e3;\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  bVar29 = 0;\n  uStack_14 = 0x25fc8d;\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  uVar30 = 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  uVar26 = 0;\n  if (piVar4 != (int *)0x0) {\n    uVar26 = 0;\n    piVar5 = piVar4;\n    do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    } while (piVar5 != (int *)0x0);\n  }\n  uVar6 = uVar26;\n  if (param_1[0xa5] != 0) {\n    uVar6 = -uVar26;\n  }\n  uVar6 = WriteBlobShort(param_1,uVar6 & 0xffff);\n  puVar7 = (undefined4 *)AcquireQuantumMemory(uVar26,8);\n  if (puVar7 == (undefined4 *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = *(int **)(param_2 + 0xc);\n    piVar5 = param_1;\n    while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }\n    uVar18 = 0;\n    CloseBlob(piVar5);\n  }\n  else {\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return uVar18;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0025fc80(int *param_1,int param_2,int param_3,uint *param_4,undefined4 param_5)" (identifier "FUN_0025fc80") (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") (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  float fVar1;\n  undefined1 uVar2;\n  short sVar3;\n  int *piVar4;\n  int *piVar5;\n  uint uVar6;\n  undefined4 *puVar7;\n  char *pcVar8;\n  size_t sVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  undefined1 *puVar15;\n  long lVar16;\n  int iVar17;\n  undefined4 uVar18;\n  void *__dest;\n  int iVar19;\n  int iVar20;\n  int iVar21;\n  int iVar22;\n  int iVar23;\n  undefined4 uVar24;\n  int *piVar25;\n  uint uVar26;\n  undefined4 *puVar27;\n  undefined4 *puVar28;\n  int in_GS_OFFSET;\n  byte bVar29;\n  undefined8 uVar30;\n  undefined8 uVar31;\n  int *piVar32;\n  int local_1144;\n  uint local_113c;\n  int local_1134;\n  int local_1128;\n  byte local_10e3;\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  bVar29 = 0;\n  uStack_14 = 0x25fc8d;\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  uVar30 = 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  uVar26 = 0;\n  if (piVar4 != (int *)0x0) {\n    uVar26 = 0;\n    piVar5 = piVar4;\n    do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    } while (piVar5 != (int *)0x0);\n  }\n  uVar6 = uVar26;\n  if (param_1[0xa5] != 0) {\n    uVar6 = -uVar26;\n  }\n  uVar6 = WriteBlobShort(param_1,uVar6 & 0xffff);\n  puVar7 = (undefined4 *)AcquireQuantumMemory(uVar26,8);\n  if (puVar7 == (undefined4 *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = *(int **)(param_2 + 0xc);\n    piVar5 = param_1;\n    while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }\n    uVar18 = 0;\n    CloseBlob(piVar5);\n  }\n  else {\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }\n  return uVar18;\n}" ({ "{") (declaration "float fVar1;" (primitive_type "float") (identifier "fVar1") (; ";")) (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 uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "size_t sVar9;" (primitive_type "size_t") (identifier "sVar9") (; ";")) (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 "int iVar14;" (primitive_type "int") (identifier "iVar14") (; ";")) (declaration "undefined1 *puVar15;" (type_identifier "undefined1") (pointer_declarator "*puVar15" (* "*") (identifier "puVar15")) (; ";")) (declaration "long lVar16;" (sized_type_specifier "long" (long "long")) (identifier "lVar16") (; ";")) (declaration "int iVar17;" (primitive_type "int") (identifier "iVar17") (; ";")) (declaration "undefined4 uVar18;" (type_identifier "undefined4") (identifier "uVar18") (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (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 "int iVar23;" (primitive_type "int") (identifier "iVar23") (; ";")) (declaration "undefined4 uVar24;" (type_identifier "undefined4") (identifier "uVar24") (; ";")) (declaration "int *piVar25;" (primitive_type "int") (pointer_declarator "*piVar25" (* "*") (identifier "piVar25")) (; ";")) (declaration "uint uVar26;" (type_identifier "uint") (identifier "uVar26") (; ";")) (declaration "undefined4 *puVar27;" (type_identifier "undefined4") (pointer_declarator "*puVar27" (* "*") (identifier "puVar27")) (; ";")) (declaration "undefined4 *puVar28;" (type_identifier "undefined4") (pointer_declarator "*puVar28" (* "*") (identifier "puVar28")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte bVar29;" (type_identifier "byte") (identifier "bVar29") (; ";")) (declaration "undefined8 uVar30;" (type_identifier "undefined8") (identifier "uVar30") (; ";")) (declaration "undefined8 uVar31;" (type_identifier "undefined8") (identifier "uVar31") (; ";")) (declaration "int *piVar32;" (primitive_type "int") (pointer_declarator "*piVar32" (* "*") (identifier "piVar32")) (; ";")) (declaration "int local_1144;" (primitive_type "int") (identifier "local_1144") (; ";")) (declaration "uint local_113c;" (type_identifier "uint") (identifier "local_113c") (; ";")) (declaration "int local_1134;" (primitive_type "int") (identifier "local_1134") (; ";")) (declaration "int local_1128;" (primitive_type "int") (identifier "local_1128") (; ";")) (declaration "byte local_10e3;" (type_identifier "byte") (identifier "local_10e3") (; ";")) (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 "bVar29 = 0;" (assignment_expression "bVar29 = 0" (identifier "bVar29") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0x25fc8d;" (assignment_expression "uStack_14 = 0x25fc8d" (identifier "uStack_14") (= "=") (number_literal "0x25fc8d")) (; ";")) (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 "uVar30 = TellBlob(param_1);" (assignment_expression "uVar30 = TellBlob(param_1)" (identifier "uVar30") (= "=") (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 "uVar26 = 0;" (assignment_expression "uVar26 = 0" (identifier "uVar26") (= "=") (number_literal "0")) (; ";")) (if_statement "if (piVar4 != (int *)0x0) {\n    uVar26 = 0;\n    piVar5 = piVar4;\n    do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\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    uVar26 = 0;\n    piVar5 = piVar4;\n    do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    } while (piVar5 != (int *)0x0);\n  }" ({ "{") (expression_statement "uVar26 = 0;" (assignment_expression "uVar26 = 0" (identifier "uVar26") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar5 = piVar4;" (assignment_expression "piVar5 = piVar4" (identifier "piVar5") (= "=") (identifier "piVar4")) (; ";")) (do_statement "do {\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    } while (piVar5 != (int *)0x0);" (do "do") (compound_statement "{\n      uVar26 = uVar26 + 1;\n      piVar5 = (int *)GetNextImageInList(piVar5);\n    }" ({ "{") (expression_statement "uVar26 = uVar26 + 1;" (assignment_expression "uVar26 = uVar26 + 1" (identifier "uVar26") (= "=") (binary_expression "uVar26 + 1" (identifier "uVar26") (+ "+") (number_literal "1"))) (; ";")) (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") () ")"))))) (; ";")) (} "}")) (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 "uVar6 = uVar26;" (assignment_expression "uVar6 = uVar26" (identifier "uVar6") (= "=") (identifier "uVar26")) (; ";")) (if_statement "if (param_1[0xa5] != 0) {\n    uVar6 = -uVar26;\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    uVar6 = -uVar26;\n  }" ({ "{") (expression_statement "uVar6 = -uVar26;" (assignment_expression "uVar6 = -uVar26" (identifier "uVar6") (= "=") (unary_expression "-uVar26" (- "-") (identifier "uVar26"))) (; ";")) (} "}"))) (expression_statement "uVar6 = WriteBlobShort(param_1,uVar6 & 0xffff);" (assignment_expression "uVar6 = WriteBlobShort(param_1,uVar6 & 0xffff)" (identifier "uVar6") (= "=") (call_expression "WriteBlobShort(param_1,uVar6 & 0xffff)" (identifier "WriteBlobShort") (argument_list "(param_1,uVar6 & 0xffff)" (( "(") (identifier "param_1") (, ",") (binary_expression "uVar6 & 0xffff" (identifier "uVar6") (& "&") (number_literal "0xffff")) () ")")))) (; ";")) (expression_statement "puVar7 = (undefined4 *)AcquireQuantumMemory(uVar26,8);" (assignment_expression "puVar7 = (undefined4 *)AcquireQuantumMemory(uVar26,8)" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)AcquireQuantumMemory(uVar26,8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "AcquireQuantumMemory(uVar26,8)" (identifier "AcquireQuantumMemory") (argument_list "(uVar26,8)" (( "(") (identifier "uVar26") (, ",") (number_literal "8") () ")"))))) (; ";")) (if_statement "if (puVar7 == (undefined4 *)0x0) {\n    ThrowMagickException\n              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",\n               "`%s\'",param_1 + 0xc6);\n    piVar4 = *(int **)(param_2 + 0xc);\n    piVar5 = param_1;\n    while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }\n    uVar18 = 0;\n    CloseBlob(piVar5);\n  }\n  else {\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }" (if "if") (parenthesized_expression "(puVar7 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar7 == (undefined4 *)0x0" (identifier "puVar7") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (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 + 0xc);\n    piVar5 = param_1;\n    while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }\n    uVar18 = 0;\n    CloseBlob(piVar5);\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 + 0xc);" (assignment_expression "piVar4 = *(int **)(param_2 + 0xc)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(param_2 + 0xc)" (* "*") (cast_expression "(int **)(param_2 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "piVar5 = param_1;" (assignment_expression "piVar5 = param_1" (identifier "piVar5") (= "=") (identifier "param_1")) (; ";")) (while_statement "while (piVar25 = param_1, piVar4 != (int *)0x0) {\n      piVar4 = (int *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }" (while "while") (parenthesized_expression "(piVar25 = param_1, piVar4 != (int *)0x0)" (( "(") (comma_expression "piVar25 = param_1, piVar4 != (int *)0x0" (assignment_expression "piVar25 = param_1" (identifier "piVar25") (= "=") (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 *)piVar25[0xccf];\n      param_1 = piVar4;\n      piVar5 = piVar25;\n    }" ({ "{") (expression_statement "piVar4 = (int *)piVar25[0xccf];" (assignment_expression "piVar4 = (int *)piVar25[0xccf]" (identifier "piVar4") (= "=") (cast_expression "(int *)piVar25[0xccf]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar25[0xccf]" (identifier "piVar25") ([ "[") (number_literal "0xccf") (] "]")))) (; ";")) (expression_statement "param_1 = piVar4;" (assignment_expression "param_1 = piVar4" (identifier "param_1") (= "=") (identifier "piVar4")) (; ";")) (expression_statement "piVar5 = piVar25;" (assignment_expression "piVar5 = piVar25" (identifier "piVar5") (= "=") (identifier "piVar25")) (; ";")) (} "}"))) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" (identifier "uVar18") (= "=") (number_literal "0")) (; ";")) (expression_statement "CloseBlob(piVar5);" (call_expression "CloseBlob(piVar5)" (identifier "CloseBlob") (argument_list "(piVar5)" (( "(") (identifier "piVar5") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }" (else "else") (compound_statement "{\n    local_113c = uVar6;\n    if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }\n    uVar18 = 1;\nLAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }\n    uVar26 = local_113c + 1;\n    if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }\n    uVar31 = TellBlob(param_1);\n    SeekBlob(param_1,uVar30,0,uVar31);\n    if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }\n    SeekBlob(param_1,uVar31,0);\n    RelinquishMagickMemory(puVar7);\n    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }\n  }" ({ "{") (expression_statement "local_113c = uVar6;" (assignment_expression "local_113c = uVar6" (identifier "local_113c") (= "=") (identifier "uVar6")) (; ";")) (if_statement "if (piVar4 != (int *)0x0) {\n      local_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (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_1128 = 0;\n      piVar5 = piVar4;\n      do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);\n      do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);\n    }" ({ "{") (expression_statement "local_1128 = 0;" (assignment_expression "local_1128 = 0" (identifier "local_1128") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar5 = piVar4;" (assignment_expression "piVar5 = piVar4" (identifier "piVar5") (= "=") (identifier "piVar4")) (; ";")) (do_statement "do {\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      } while (piVar5 != (int *)0x0);" (do "do") (compound_statement "{\n        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");\n        if (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }\n        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);\n        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);\n        piVar25 = piVar5;\n        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);\n        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);\n        piVar32 = piVar25;\n        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }\n        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));\n        local_1128 = local_1128 + 1;\n        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;\n        uVar31 = TellBlob(param_1);\n        puVar7[local_1128 * 2 + -2] = (int)uVar31;\n        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);\n        iVar10 = 0;\n        do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);\nLAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }\n        puVar15 = &DAT_002a239a;\n        if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\n        }\n        iVar10 = WriteBlobString(param_1,puVar15);\n        switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }\n        iVar11 = WriteBlobString(param_1,pcVar8);\n        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");\n        if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }\n        iVar14 = WriteBlobByte(param_1,0);\n        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');\n        iVar13 = WriteBlobByte(param_1,0);\n        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;\n        puVar28 = &DAT_0030c7e0;\n        puVar27 = local_10d9;\n        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }\n        iVar10 = GetImageProfile(piVar32,"psd:additional-info");\n        if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }\nLAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);\n        if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }\n        sVar9 = strlen(pcVar8);\n        uVar26 = sVar9 + 1;\n        if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }\n        if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }\n        if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }\n        iVar12 = WriteBlobLong(param_1,0);\n        sVar9 = strlen(pcVar8);\n        if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }\nLAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;\n        if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }\n        piVar5 = (int *)GetNextImageInList(piVar32);\n        puVar28 = puVar7;\n        piVar25 = piVar4;\n      }" ({ "{") (expression_statement "pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");" (assignment_expression "pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask")" (identifier "pcVar8") (= "=") (cast_expression "(char *)GetImageArtifact(piVar5,"psd:opacity-mask")" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (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 (pcVar8 == (char *)0x0) {\n          local_10e3 = 0;\n          local_113c = 0;\n        }\n        else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }" (if "if") (parenthesized_expression "(pcVar8 == (char *)0x0)" (( "(") (binary_expression "pcVar8 == (char *)0x0" (identifier "pcVar8") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          local_10e3 = 0;\n          local_113c = 0;\n        }" ({ "{") (expression_statement "local_10e3 = 0;" (assignment_expression "local_10e3 = 0" (identifier "local_10e3") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_113c = 0;" (assignment_expression "local_113c = 0" (identifier "local_113c") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }" (else "else") (compound_statement "{\n          local_113c = GetImageRegistry(1,pcVar8,param_5);\n          sVar9 = strlen(pcVar8);\n          local_10e3 = -(sVar9 == 9);\n        }" ({ "{") (expression_statement "local_113c = GetImageRegistry(1,pcVar8,param_5);" (assignment_expression "local_113c = GetImageRegistry(1,pcVar8,param_5)" (identifier "local_113c") (= "=") (call_expression "GetImageRegistry(1,pcVar8,param_5)" (identifier "GetImageRegistry") (argument_list "(1,pcVar8,param_5)" (( "(") (number_literal "1") (, ",") (identifier "pcVar8") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "sVar9 = strlen(pcVar8);" (assignment_expression "sVar9 = strlen(pcVar8)" (identifier "sVar9") (= "=") (call_expression "strlen(pcVar8)" (identifier "strlen") (argument_list "(pcVar8)" (( "(") (identifier "pcVar8") () ")")))) (; ";")) (expression_statement "local_10e3 = -(sVar9 == 9);" (assignment_expression "local_10e3 = -(sVar9 == 9)" (identifier "local_10e3") (= "=") (unary_expression "-(sVar9 == 9)" (- "-") (parenthesized_expression "(sVar9 == 9)" (( "(") (binary_expression "sVar9 == 9" (identifier "sVar9") (== "==") (number_literal "9")) () ")")))) (; ";")) (} "}")))) (expression_statement "iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);" (assignment_expression "iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83])" (identifier "iVar10") (= "=") (call_expression "WriteBlobSignedLong(param_1,piVar5[0x83])" (identifier "WriteBlobSignedLong") (argument_list "(param_1,piVar5[0x83])" (( "(") (identifier "param_1") (, ",") (subscript_expression "piVar5[0x83]" (identifier "piVar5") ([ "[") (number_literal "0x83") (] "]")) () ")")))) (; ";")) (expression_statement "iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);" (assignment_expression "iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82])" (identifier "iVar11") (= "=") (call_expression "WriteBlobSignedLong(param_1,piVar5[0x82])" (identifier "WriteBlobSignedLong") (argument_list "(param_1,piVar5[0x82])" (( "(") (identifier "param_1") (, ",") (subscript_expression "piVar5[0x82]" (identifier "piVar5") ([ "[") (number_literal "0x82") (] "]")) () ")")))) (; ";")) (expression_statement "piVar25 = piVar5;" (assignment_expression "piVar25 = piVar5" (identifier "piVar25") (= "=") (identifier "piVar5")) (; ";")) (expression_statement "iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);" (assignment_expression "iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83])" (identifier "iVar12") (= "=") (call_expression "WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83])" (identifier "WriteBlobSignedLong") (argument_list "(param_1,piVar5[7] + piVar5[0x83])" (( "(") (identifier "param_1") (, ",") (binary_expression "piVar5[7] + piVar5[0x83]" (subscript_expression "piVar5[7]" (identifier "piVar5") ([ "[") (number_literal "7") (] "]")) (+ "+") (subscript_expression "piVar5[0x83]" (identifier "piVar5") ([ "[") (number_literal "0x83") (] "]"))) () ")")))) (; ";")) (expression_statement "iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);" (assignment_expression "iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82])" (identifier "iVar13") (= "=") (call_expression "WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82])" (identifier "WriteBlobSignedLong") (argument_list "(param_1,piVar5[6] + piVar5[0x82])" (( "(") (identifier "param_1") (, ",") (binary_expression "piVar5[6] + piVar5[0x82]" (subscript_expression "piVar5[6]" (identifier "piVar5") ([ "[") (number_literal "6") (] "]")) (+ "+") (subscript_expression "piVar5[0x82]" (identifier "piVar5") ([ "[") (number_literal "0x82") (] "]"))) () ")")))) (; ";")) (expression_statement "piVar32 = piVar25;" (assignment_expression "piVar32 = piVar25" (identifier "piVar32") (= "=") (identifier "piVar25")) (; ";")) (if_statement "if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {\n          local_1134 = 1;\n          sVar3 = 1;\n        }\n        else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }" (if "if") (parenthesized_expression "((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0))" (( "(") (binary_expression "(*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)" (parenthesized_expression "(*piVar5 == 2)" (( "(") (binary_expression "*piVar5 == 2" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (== "==") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "(iVar14 = IsImageGray(piVar25), iVar14 != 0)" (( "(") (comma_expression "iVar14 = IsImageGray(piVar25), iVar14 != 0" (assignment_expression "iVar14 = IsImageGray(piVar25)" (identifier "iVar14") (= "=") (call_expression "IsImageGray(piVar25)" (identifier "IsImageGray") (argument_list "(piVar25)" (( "(") (identifier "piVar25") () ")")))) (, ",") (binary_expression "iVar14 != 0" (identifier "iVar14") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          local_1134 = 1;\n          sVar3 = 1;\n        }" ({ "{") (expression_statement "local_1134 = 1;" (assignment_expression "local_1134 = 1" (identifier "local_1134") (= "=") (number_literal "1")) (; ";")) (expression_statement "sVar3 = 1;" (assignment_expression "sVar3 = 1" (identifier "sVar3") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }" (else "else") (compound_statement "{\n          local_1134 = (piVar25[1] == 2) + 3;\n          sVar3 = (piVar25[1] == 2) + 3;\n        }" ({ "{") (expression_statement "local_1134 = (piVar25[1] == 2) + 3;" (assignment_expression "local_1134 = (piVar25[1] == 2) + 3" (identifier "local_1134") (= "=") (binary_expression "(piVar25[1] == 2) + 3" (parenthesized_expression "(piVar25[1] == 2)" (( "(") (binary_expression "piVar25[1] == 2" (subscript_expression "piVar25[1]" (identifier "piVar25") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "2")) () ")")) (+ "+") (number_literal "3"))) (; ";")) (expression_statement "sVar3 = (piVar25[1] == 2) + 3;" (assignment_expression "sVar3 = (piVar25[1] == 2) + 3" (identifier "sVar3") (= "=") (binary_expression "(piVar25[1] == 2) + 3" (parenthesized_expression "(piVar25[1] == 2)" (( "(") (binary_expression "piVar25[1] == 2" (subscript_expression "piVar25[1]" (identifier "piVar25") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "2")) () ")")) (+ "+") (number_literal "3"))) (; ";")) (} "}")))) (expression_statement "local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0));" (assignment_expression "local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0))" (identifier "local_1144") (= "=") (call_expression "WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0))" (identifier "WriteBlobShort") (argument_list "(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0))" (( "(") (identifier "param_1") (, ",") (binary_expression "((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -\n                                            (ushort)(local_113c == 0)" (parenthesized_expression "((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2)" (( "(") (binary_expression "(sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2" (parenthesized_expression "(sVar3 - (ushort)(piVar32[0xa5] == 0))" (( "(") (binary_expression "sVar3 - (ushort)(piVar32[0xa5] == 0)" (identifier "sVar3") (- "-") (call_expression "(ushort)(piVar32[0xa5] == 0)" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "(piVar32[0xa5] == 0)" (( "(") (binary_expression "piVar32[0xa5] == 0" (subscript_expression "piVar32[0xa5]" (identifier "piVar32") ([ "[") (number_literal "0xa5") (] "]")) (== "==") (number_literal "0")) () ")")))) () ")")) (+ "+") (number_literal "2")) () ")")) (- "-") (call_expression "(ushort)(local_113c == 0)" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "(local_113c == 0)" (( "(") (binary_expression "local_113c == 0" (identifier "local_113c") (== "==") (number_literal "0")) () ")")))) () ")")))) (; ";")) (expression_statement "local_1128 = local_1128 + 1;" (assignment_expression "local_1128 = local_1128 + 1" (identifier "local_1128") (= "=") (binary_expression "local_1128 + 1" (identifier "local_1128") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;" (assignment_expression "local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13" (identifier "local_1144") (= "=") (binary_expression "local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13" (binary_expression "local_1144 + uVar6 + iVar10 + iVar11 + iVar12" (binary_expression "local_1144 + uVar6 + iVar10 + iVar11" (binary_expression "local_1144 + uVar6 + iVar10" (binary_expression "local_1144 + uVar6" (identifier "local_1144") (+ "+") (identifier "uVar6")) (+ "+") (identifier "iVar10")) (+ "+") (identifier "iVar11")) (+ "+") (identifier "iVar12")) (+ "+") (identifier "iVar13"))) (; ";")) (expression_statement "uVar31 = TellBlob(param_1);" (assignment_expression "uVar31 = TellBlob(param_1)" (identifier "uVar31") (= "=") (call_expression "TellBlob(param_1)" (identifier "TellBlob") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "puVar7[local_1128 * 2 + -2] = (int)uVar31;" (assignment_expression "puVar7[local_1128 * 2 + -2] = (int)uVar31" (subscript_expression "puVar7[local_1128 * 2 + -2]" (identifier "puVar7") ([ "[") (binary_expression "local_1128 * 2 + -2" (binary_expression "local_1128 * 2" (identifier "local_1128") (* "*") (number_literal "2")) (+ "+") (number_literal "-2")) (] "]")) (= "=") (cast_expression "(int)uVar31" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar31"))) (; ";")) (expression_statement "puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);" (assignment_expression "puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20)" (subscript_expression "puVar7[local_1128 * 2 + -1]" (identifier "puVar7") ([ "[") (binary_expression "local_1128 * 2 + -1" (binary_expression "local_1128 * 2" (identifier "local_1128") (* "*") (number_literal "2")) (+ "+") (number_literal "-1")) (] "]")) (= "=") (cast_expression "(int)((ulonglong)uVar31 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar31 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar31 >> 0x20" (cast_expression "(ulonglong)uVar31" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar31")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" (identifier "iVar10") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        } while (iVar10 != local_1134);" (do "do") (compound_statement "{\n          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }\n          iVar10 = iVar10 + 1;\n          iVar12 = WriteBlobLongLong(param_1,0,0);\n          local_1144 = local_1144 + iVar11 + iVar12;\n        }" ({ "{") (while_statement "while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {\n            iVar10 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }" (while "while") (parenthesized_expression "(iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1)" (( "(") (comma_expression "iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1" (assignment_expression "iVar11 = WriteBlobShort(param_1,iVar10)" (identifier "iVar11") (= "=") (call_expression "WriteBlobShort(param_1,iVar10)" (identifier "WriteBlobShort") (argument_list "(param_1,iVar10)" (( "(") (identifier "param_1") (, ",") (identifier "iVar10") () ")")))) (, ",") (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 = iVar10 + 1;\n            iVar12 = WriteBlobLong(param_1,0);\n            local_1144 = local_1144 + iVar11 + iVar12;\n            if (iVar10 == local_1134) goto LAB_0025ff56;\n          }" ({ "{") (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" (identifier "iVar10") (= "=") (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1"))) (; ";")) (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 "local_1144 = local_1144 + iVar11 + iVar12;" (assignment_expression "local_1144 = local_1144 + iVar11 + iVar12" (identifier "local_1144") (= "=") (binary_expression "local_1144 + iVar11 + iVar12" (binary_expression "local_1144 + iVar11" (identifier "local_1144") (+ "+") (identifier "iVar11")) (+ "+") (identifier "iVar12"))) (; ";")) (if_statement "if (iVar10 == local_1134) goto LAB_0025ff56;" (if "if") (parenthesized_expression "(iVar10 == local_1134)" (( "(") (binary_expression "iVar10 == local_1134" (identifier "iVar10") (== "==") (identifier "local_1134")) () ")")) (goto_statement "goto LAB_0025ff56;" (goto "goto") (statement_identifier "LAB_0025ff56") (; ";"))) (} "}"))) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" (identifier "iVar10") (= "=") (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar12 = WriteBlobLongLong(param_1,0,0);" (assignment_expression "iVar12 = WriteBlobLongLong(param_1,0,0)" (identifier "iVar12") (= "=") (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_1144 = local_1144 + iVar11 + iVar12;" (assignment_expression "local_1144 = local_1144 + iVar11 + iVar12" (identifier "local_1144") (= "=") (binary_expression "local_1144 + iVar11 + iVar12" (binary_expression "local_1144 + iVar11" (identifier "local_1144") (+ "+") (identifier "iVar11")) (+ "+") (identifier "iVar12"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar10 != local_1134)" (( "(") (binary_expression "iVar10 != local_1134" (identifier "iVar10") (!= "!=") (identifier "local_1134")) () ")")) (; ";")) (labeled_statement "LAB_0025ff56:\n        if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }" (statement_identifier "LAB_0025ff56") (: ":") (if_statement "if (piVar32[0xa5] != 0) {\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }" (if "if") (parenthesized_expression "(piVar32[0xa5] != 0)" (( "(") (binary_expression "piVar32[0xa5] != 0" (subscript_expression "piVar32[0xa5]" (identifier "piVar32") ([ "[") (number_literal "0xa5") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar10 = WriteBlobShort(param_1,0xffff);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }" ({ "{") (expression_statement "iVar10 = WriteBlobShort(param_1,0xffff);" (assignment_expression "iVar10 = WriteBlobShort(param_1,0xffff)" (identifier "iVar10") (= "=") (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            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = 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            iVar11 = WriteBlobLong(param_1,0);\n          }" ({ "{") (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") () ")")))) (; ";")) (} "}")) (else_clause "else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }" (else "else") (compound_statement "{\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }" ({ "{") (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_1144 = iVar11 + local_1144 + iVar10;" (assignment_expression "local_1144 = iVar11 + local_1144 + iVar10" (identifier "local_1144") (= "=") (binary_expression "iVar11 + local_1144 + iVar10" (binary_expression "iVar11 + local_1144" (identifier "iVar11") (+ "+") (identifier "local_1144")) (+ "+") (identifier "iVar10"))) (; ";")) (} "}")))) (if_statement "if (local_113c != 0) {\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }" (if "if") (parenthesized_expression "(local_113c != 0)" (( "(") (binary_expression "local_113c != 0" (identifier "local_113c") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar10 = WriteBlobShort(param_1,0xfffe);\n          if (*(short *)(param_3 + 0x1e) == 1) {\n            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }\n          local_1144 = iVar11 + local_1144 + iVar10;\n        }" ({ "{") (expression_statement "iVar10 = WriteBlobShort(param_1,0xfffe);" (assignment_expression "iVar10 = WriteBlobShort(param_1,0xfffe)" (identifier "iVar10") (= "=") (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            iVar11 = WriteBlobLong(param_1,0);\n          }\n          else {\n            iVar11 = 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            iVar11 = WriteBlobLong(param_1,0);\n          }" ({ "{") (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") () ")")))) (; ";")) (} "}")) (else_clause "else {\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }" (else "else") (compound_statement "{\n            iVar11 = WriteBlobLongLong(param_1,0,0);\n          }" ({ "{") (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_1144 = iVar11 + local_1144 + iVar10;" (assignment_expression "local_1144 = iVar11 + local_1144 + iVar10" (identifier "local_1144") (= "=") (binary_expression "iVar11 + local_1144 + iVar10" (binary_expression "iVar11 + local_1144" (identifier "iVar11") (+ "+") (identifier "local_1144")) (+ "+") (identifier "iVar10"))) (; ";")) (} "}"))) (expression_statement "puVar15 = &DAT_002a239a;" (assignment_expression "puVar15 = &DAT_002a239a" (identifier "puVar15") (= "=") (pointer_expression "&DAT_002a239a" (& "&") (identifier "DAT_002a239a"))) (; ";")) (if_statement "if (param_1[0x8d] == 1) {\n          puVar15 = &DAT_0030c1c9;\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          puVar15 = &DAT_0030c1c9;\n        }" ({ "{") (expression_statement "puVar15 = &DAT_0030c1c9;" (assignment_expression "puVar15 = &DAT_0030c1c9" (identifier "puVar15") (= "=") (pointer_expression "&DAT_0030c1c9" (& "&") (identifier "DAT_0030c1c9"))) (; ";")) (} "}"))) (expression_statement "iVar10 = WriteBlobString(param_1,puVar15);" (assignment_expression "iVar10 = WriteBlobString(param_1,puVar15)" (identifier "iVar10") (= "=") (call_expression "WriteBlobString(param_1,puVar15)" (identifier "WriteBlobString") (argument_list "(param_1,puVar15)" (( "(") (identifier "param_1") (, ",") (identifier "puVar15") () ")")))) (; ";")) (switch_statement "switch(piVar32[0x8f]) {\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }" (switch "switch") (parenthesized_expression "(piVar32[0x8f])" (( "(") (subscript_expression "piVar32[0x8f]" (identifier "piVar32") ([ "[") (number_literal "0x8f") (] "]")) () ")")) (compound_statement "{\n        case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;\n        case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;\n        case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;\n        default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;\n        case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;\n        case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;\n        case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;\n        case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;\n        case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;\n        case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;\n        case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;\n        case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;\n        case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;\n        case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;\n        case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;\n        case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;\n        case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;\n        case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;\n        case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;\n        case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;\n        case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;\n        case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;\n        case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }\n        }" ({ "{") (case_statement "case 8:\n          pcVar8 = "idiv";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }\n          break;" (case "case") (number_literal "8") (: ":") (expression_statement "pcVar8 = "idiv";" (assignment_expression "pcVar8 = "idiv"" (identifier "pcVar8") (= "=") (string_literal ""idiv"" (" """) (string_content "idiv") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "vidi";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "vidi";\n          }" ({ "{") (expression_statement "pcVar8 = "vidi";" (assignment_expression "pcVar8 = "vidi"" (identifier "pcVar8") (= "=") (string_literal ""vidi"" (" """) (string_content "vidi") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 9:\n          pcVar8 = "div ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }\n          break;" (case "case") (number_literal "9") (: ":") (expression_statement "pcVar8 = "div ";" (assignment_expression "pcVar8 = "div "" (identifier "pcVar8") (= "=") (string_literal ""div "" (" """) (string_content "div ") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = " vid";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = " vid";\n          }" ({ "{") (expression_statement "pcVar8 = " vid";" (assignment_expression "pcVar8 = " vid"" (identifier "pcVar8") (= "=") (string_literal "" vid"" (" """) (string_content " vid") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 10:\n          pcVar8 = "colr";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }\n          break;" (case "case") (number_literal "10") (: ":") (expression_statement "pcVar8 = "colr";" (assignment_expression "pcVar8 = "colr"" (identifier "pcVar8") (= "=") (string_literal ""colr"" (" """) (string_content "colr") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "rloc";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "rloc";\n          }" ({ "{") (expression_statement "pcVar8 = "rloc";" (assignment_expression "pcVar8 = "rloc"" (identifier "pcVar8") (= "=") (string_literal ""rloc"" (" """) (string_content "rloc") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "default:\n          pcVar8 = "norm";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }\n          break;" (default "default") (: ":") (expression_statement "pcVar8 = "norm";" (assignment_expression "pcVar8 = "norm"" (identifier "pcVar8") (= "=") (string_literal ""norm"" (" """) (string_content "norm") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "mron";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "mron";\n          }" ({ "{") (expression_statement "pcVar8 = "mron";" (assignment_expression "pcVar8 = "mron"" (identifier "pcVar8") (= "=") (string_literal ""mron"" (" """) (string_content "mron") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x14:\n          pcVar8 = "dark";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }\n          break;" (case "case") (number_literal "0x14") (: ":") (expression_statement "pcVar8 = "dark";" (assignment_expression "pcVar8 = "dark"" (identifier "pcVar8") (= "=") (string_literal ""dark"" (" """) (string_content "dark") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "krad";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "krad";\n          }" ({ "{") (expression_statement "pcVar8 = "krad";" (assignment_expression "pcVar8 = "krad"" (identifier "pcVar8") (= "=") (string_literal ""krad"" (" """) (string_content "krad") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x16:\n          pcVar8 = "diff";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }\n          break;" (case "case") (number_literal "0x16") (: ":") (expression_statement "pcVar8 = "diff";" (assignment_expression "pcVar8 = "diff"" (identifier "pcVar8") (= "=") (string_literal ""diff"" (" """) (string_content "diff") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "ffid";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "ffid";\n          }" ({ "{") (expression_statement "pcVar8 = "ffid";" (assignment_expression "pcVar8 = "ffid"" (identifier "pcVar8") (= "=") (string_literal ""ffid"" (" """) (string_content "ffid") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x18:\n          pcVar8 = "diss";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }\n          break;" (case "case") (number_literal "0x18") (: ":") (expression_statement "pcVar8 = "diss";" (assignment_expression "pcVar8 = "diss"" (identifier "pcVar8") (= "=") (string_literal ""diss"" (" """) (string_content "diss") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "ssid";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "ssid";\n          }" ({ "{") (expression_statement "pcVar8 = "ssid";" (assignment_expression "pcVar8 = "ssid"" (identifier "pcVar8") (= "=") (string_literal ""ssid"" (" """) (string_content "ssid") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x21:\n          pcVar8 = "smud";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }\n          break;" (case "case") (number_literal "0x21") (: ":") (expression_statement "pcVar8 = "smud";" (assignment_expression "pcVar8 = "smud"" (identifier "pcVar8") (= "=") (string_literal ""smud"" (" """) (string_content "smud") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "dums";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "dums";\n          }" ({ "{") (expression_statement "pcVar8 = "dums";" (assignment_expression "pcVar8 = "dums"" (identifier "pcVar8") (= "=") (string_literal ""dums"" (" """) (string_content "dums") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x22:\n          pcVar8 = "hLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }\n          break;" (case "case") (number_literal "0x22") (: ":") (expression_statement "pcVar8 = "hLit";" (assignment_expression "pcVar8 = "hLit"" (identifier "pcVar8") (= "=") (string_literal ""hLit"" (" """) (string_content "hLit") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLh";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "tiLh";\n          }" ({ "{") (expression_statement "pcVar8 = "tiLh";" (assignment_expression "pcVar8 = "tiLh"" (identifier "pcVar8") (= "=") (string_literal ""tiLh"" (" """) (string_content "tiLh") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x23:\n          pcVar8 = "hMix";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }\n          break;" (case "case") (number_literal "0x23") (: ":") (expression_statement "pcVar8 = "hMix";" (assignment_expression "pcVar8 = "hMix"" (identifier "pcVar8") (= "=") (string_literal ""hMix"" (" """) (string_content "hMix") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "xiMh";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "xiMh";\n          }" ({ "{") (expression_statement "pcVar8 = "xiMh";" (assignment_expression "pcVar8 = "xiMh"" (identifier "pcVar8") (= "=") (string_literal ""xiMh"" (" """) (string_content "xiMh") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x24:\n          pcVar8 = "hue ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }\n          break;" (case "case") (number_literal "0x24") (: ":") (expression_statement "pcVar8 = "hue ";" (assignment_expression "pcVar8 = "hue "" (identifier "pcVar8") (= "=") (string_literal ""hue "" (" """) (string_content "hue ") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = " euh";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = " euh";\n          }" ({ "{") (expression_statement "pcVar8 = " euh";" (assignment_expression "pcVar8 = " euh"" (identifier "pcVar8") (= "=") (string_literal "" euh"" (" """) (string_content " euh") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x27:\n          pcVar8 = "lite";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }\n          break;" (case "case") (number_literal "0x27") (: ":") (expression_statement "pcVar8 = "lite";" (assignment_expression "pcVar8 = "lite"" (identifier "pcVar8") (= "=") (string_literal ""lite"" (" """) (string_content "lite") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "etil";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "etil";\n          }" ({ "{") (expression_statement "pcVar8 = "etil";" (assignment_expression "pcVar8 = "etil"" (identifier "pcVar8") (= "=") (string_literal ""etil"" (" """) (string_content "etil") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x29:\n          pcVar8 = "lbrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }\n          break;" (case "case") (number_literal "0x29") (: ":") (expression_statement "pcVar8 = "lbrn";" (assignment_expression "pcVar8 = "lbrn"" (identifier "pcVar8") (= "=") (string_literal ""lbrn"" (" """) (string_content "lbrn") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrbl";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "nrbl";\n          }" ({ "{") (expression_statement "pcVar8 = "nrbl";" (assignment_expression "pcVar8 = "nrbl"" (identifier "pcVar8") (= "=") (string_literal ""nrbl"" (" """) (string_content "nrbl") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x2a:\n          pcVar8 = "lddg";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }\n          break;" (case "case") (number_literal "0x2a") (: ":") (expression_statement "pcVar8 = "lddg";" (assignment_expression "pcVar8 = "lddg"" (identifier "pcVar8") (= "=") (string_literal ""lddg"" (" """) (string_content "lddg") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "gddl";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "gddl";\n          }" ({ "{") (expression_statement "pcVar8 = "gddl";" (assignment_expression "pcVar8 = "gddl"" (identifier "pcVar8") (= "=") (string_literal ""gddl"" (" """) (string_content "gddl") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x2b:\n          pcVar8 = "lLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }\n          break;" (case "case") (number_literal "0x2b") (: ":") (expression_statement "pcVar8 = "lLit";" (assignment_expression "pcVar8 = "lLit"" (identifier "pcVar8") (= "=") (string_literal ""lLit"" (" """) (string_content "lLit") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLl";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "tiLl";\n          }" ({ "{") (expression_statement "pcVar8 = "tiLl";" (assignment_expression "pcVar8 = "tiLl"" (identifier "pcVar8") (= "=") (string_literal ""tiLl"" (" """) (string_content "tiLl") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x2c:\n          pcVar8 = "lum ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }\n          break;" (case "case") (number_literal "0x2c") (: ":") (expression_statement "pcVar8 = "lum ";" (assignment_expression "pcVar8 = "lum "" (identifier "pcVar8") (= "=") (string_literal ""lum "" (" """) (string_content "lum ") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = " mul";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = " mul";\n          }" ({ "{") (expression_statement "pcVar8 = " mul";" (assignment_expression "pcVar8 = " mul"" (identifier "pcVar8") (= "=") (string_literal "" mul"" (" """) (string_content " mul") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x33:\n          pcVar8 = "mul ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }\n          break;" (case "case") (number_literal "0x33") (: ":") (expression_statement "pcVar8 = "mul ";" (assignment_expression "pcVar8 = "mul "" (identifier "pcVar8") (= "=") (string_literal ""mul "" (" """) (string_content "mul ") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = " lum";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = " lum";\n          }" ({ "{") (expression_statement "pcVar8 = " lum";" (assignment_expression "pcVar8 = " lum"" (identifier "pcVar8") (= "=") (string_literal "" lum"" (" """) (string_content " lum") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x37:\n          pcVar8 = "over";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }\n          break;" (case "case") (number_literal "0x37") (: ":") (expression_statement "pcVar8 = "over";" (assignment_expression "pcVar8 = "over"" (identifier "pcVar8") (= "=") (string_literal ""over"" (" """) (string_content "over") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "revo";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "revo";\n          }" ({ "{") (expression_statement "pcVar8 = "revo";" (assignment_expression "pcVar8 = "revo"" (identifier "pcVar8") (= "=") (string_literal ""revo"" (" """) (string_content "revo") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x39:\n          pcVar8 = "pLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }\n          break;" (case "case") (number_literal "0x39") (: ":") (expression_statement "pcVar8 = "pLit";" (assignment_expression "pcVar8 = "pLit"" (identifier "pcVar8") (= "=") (string_literal ""pLit"" (" """) (string_content "pLit") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLp";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "tiLp";\n          }" ({ "{") (expression_statement "pcVar8 = "tiLp";" (assignment_expression "pcVar8 = "tiLp"" (identifier "pcVar8") (= "=") (string_literal ""tiLp"" (" """) (string_content "tiLp") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x3c:\n          pcVar8 = "sat ";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }\n          break;" (case "case") (number_literal "0x3c") (: ":") (expression_statement "pcVar8 = "sat ";" (assignment_expression "pcVar8 = "sat "" (identifier "pcVar8") (= "=") (string_literal ""sat "" (" """) (string_content "sat ") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = " tas";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = " tas";\n          }" ({ "{") (expression_statement "pcVar8 = " tas";" (assignment_expression "pcVar8 = " tas"" (identifier "pcVar8") (= "=") (string_literal "" tas"" (" """) (string_content " tas") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x3d:\n          pcVar8 = "scrn";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }\n          break;" (case "case") (number_literal "0x3d") (: ":") (expression_statement "pcVar8 = "scrn";" (assignment_expression "pcVar8 = "scrn"" (identifier "pcVar8") (= "=") (string_literal ""scrn"" (" """) (string_content "scrn") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "nrcs";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "nrcs";\n          }" ({ "{") (expression_statement "pcVar8 = "nrcs";" (assignment_expression "pcVar8 = "nrcs"" (identifier "pcVar8") (= "=") (string_literal ""nrcs"" (" """) (string_content "nrcs") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x3e:\n          pcVar8 = "sLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }\n          break;" (case "case") (number_literal "0x3e") (: ":") (expression_statement "pcVar8 = "sLit";" (assignment_expression "pcVar8 = "sLit"" (identifier "pcVar8") (= "=") (string_literal ""sLit"" (" """) (string_content "sLit") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLs";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "tiLs";\n          }" ({ "{") (expression_statement "pcVar8 = "tiLs";" (assignment_expression "pcVar8 = "tiLs"" (identifier "pcVar8") (= "=") (string_literal ""tiLs"" (" """) (string_content "tiLs") (" """))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x45:\n          pcVar8 = "vLit";\n          if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }" (case "case") (number_literal "0x45") (: ":") (expression_statement "pcVar8 = "vLit";" (assignment_expression "pcVar8 = "vLit"" (identifier "pcVar8") (= "=") (string_literal ""vLit"" (" """) (string_content "vLit") (" """))) (; ";")) (if_statement "if (piVar32[0x8d] == 1) {\n            pcVar8 = "tiLv";\n          }" (if "if") (parenthesized_expression "(piVar32[0x8d] == 1)" (( "(") (binary_expression "piVar32[0x8d] == 1" (subscript_expression "piVar32[0x8d]" (identifier "piVar32") ([ "[") (number_literal "0x8d") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            pcVar8 = "tiLv";\n          }" ({ "{") (expression_statement "pcVar8 = "tiLv";" (assignment_expression "pcVar8 = "tiLv"" (identifier "pcVar8") (= "=") (string_literal ""tiLv"" (" """) (string_content "tiLv") (" """))) (; ";")) (} "}")))) (} "}"))) (expression_statement "iVar11 = WriteBlobString(param_1,pcVar8);" (assignment_expression "iVar11 = WriteBlobString(param_1,pcVar8)" (identifier "iVar11") (= "=") (call_expression "WriteBlobString(param_1,pcVar8)" (identifier "WriteBlobString") (argument_list "(param_1,pcVar8)" (( "(") (identifier "param_1") (, ",") (identifier "pcVar8") () ")")))) (; ";")) (expression_statement "pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");" (assignment_expression "pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity")" (identifier "pcVar8") (= "=") (cast_expression "(char *)GetImageArtifact(piVar32,"psd:layer.opacity")" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetImageArtifact(piVar32,"psd:layer.opacity")" (identifier "GetImageArtifact") (argument_list "(piVar32,"psd:layer.opacity")" (( "(") (identifier "piVar32") (, ",") (string_literal ""psd:layer.opacity"" (" """) (string_content "psd:layer.opacity") (" """)) () ")"))))) (; ";")) (if_statement "if (pcVar8 == (char *)0x0) {\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }\n        else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }" (if "if") (parenthesized_expression "(pcVar8 == (char *)0x0)" (( "(") (binary_expression "pcVar8 == (char *)0x0" (identifier "pcVar8") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          iVar12 = WriteBlobByte(param_1,0xff);\n        }" ({ "{") (expression_statement "iVar12 = WriteBlobByte(param_1,0xff);" (assignment_expression "iVar12 = WriteBlobByte(param_1,0xff)" (identifier "iVar12") (= "=") (call_expression "WriteBlobByte(param_1,0xff)" (identifier "WriteBlobByte") (argument_list "(param_1,0xff)" (( "(") (identifier "param_1") (, ",") (number_literal "0xff") () ")")))) (; ";")) (} "}")) (else_clause "else {\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }" (else "else") (compound_statement "{\n          lVar16 = strtol(pcVar8,(char **)0x0,10);\n          uVar2 = 0;\n          if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }\n          iVar12 = WriteBlobByte(param_1,uVar2);\n          FUN_0025c840((double)lVar16);\n        }" ({ "{") (expression_statement "lVar16 = strtol(pcVar8,(char **)0x0,10);" (assignment_expression "lVar16 = strtol(pcVar8,(char **)0x0,10)" (identifier "lVar16") (= "=") (call_expression "strtol(pcVar8,(char **)0x0,10)" (identifier "strtol") (argument_list "(pcVar8,(char **)0x0,10)" (( "(") (identifier "pcVar8") (, ",") (cast_expression "(char **)0x0" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x0")) (, ",") (number_literal "10") () ")")))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0.0 < (float)lVar16) {\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }" (if "if") (parenthesized_expression "(0.0 < (float)lVar16)" (( "(") (binary_expression "0.0 < (float)lVar16" (number_literal "0.0") (< "<") (cast_expression "(float)lVar16" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (identifier "lVar16"))) () ")")) (compound_statement "{\n            uVar2 = 0xff;\n            fVar1 = (float)lVar16 / DAT_002a7ff0;\n            if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }\n          }" ({ "{") (expression_statement "uVar2 = 0xff;" (assignment_expression "uVar2 = 0xff" (identifier "uVar2") (= "=") (number_literal "0xff")) (; ";")) (expression_statement "fVar1 = (float)lVar16 / DAT_002a7ff0;" (assignment_expression "fVar1 = (float)lVar16 / DAT_002a7ff0" (identifier "fVar1") (= "=") (binary_expression "(float)lVar16 / DAT_002a7ff0" (cast_expression "(float)lVar16" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (identifier "lVar16")) (/ "/") (identifier "DAT_002a7ff0"))) (; ";")) (if_statement "if (fVar1 < DAT_002a7ff4) {\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }" (if "if") (parenthesized_expression "(fVar1 < DAT_002a7ff4)" (( "(") (binary_expression "fVar1 < DAT_002a7ff4" (identifier "fVar1") (< "<") (identifier "DAT_002a7ff4")) () ")")) (compound_statement "{\n              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);\n            }" ({ "{") (expression_statement "uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);" (assignment_expression "uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124)" (identifier "uVar2") (= "=") (cast_expression "(undefined1)(short)ROUND(fVar1 + DAT_0029f124)" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (cast_expression "(short)ROUND(fVar1 + DAT_0029f124)" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (call_expression "ROUND(fVar1 + DAT_0029f124)" (identifier "ROUND") (argument_list "(fVar1 + DAT_0029f124)" (( "(") (binary_expression "fVar1 + DAT_0029f124" (identifier "fVar1") (+ "+") (identifier "DAT_0029f124")) () ")")))))) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar12 = WriteBlobByte(param_1,uVar2);" (assignment_expression "iVar12 = WriteBlobByte(param_1,uVar2)" (identifier "iVar12") (= "=") (call_expression "WriteBlobByte(param_1,uVar2)" (identifier "WriteBlobByte") (argument_list "(param_1,uVar2)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "FUN_0025c840((double)lVar16);" (call_expression "FUN_0025c840((double)lVar16)" (identifier "FUN_0025c840") (argument_list "((double)lVar16)" (( "(") (cast_expression "(double)lVar16" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "lVar16")) () ")"))) (; ";")) (} "}")))) (expression_statement "iVar14 = WriteBlobByte(param_1,0);" (assignment_expression "iVar14 = WriteBlobByte(param_1,0)" (identifier "iVar14") (= "=") (call_expression "WriteBlobByte(param_1,0)" (identifier "WriteBlobByte") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');" (assignment_expression "iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01')" (identifier "iVar17") (= "=") (call_expression "WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01')" (identifier "WriteBlobByte") (argument_list "(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01')" (( "(") (identifier "param_1") (, ",") (binary_expression "(piVar32[0x8f] == 0x34) * '\x03' + '\x01'" (binary_expression "(piVar32[0x8f] == 0x34) * '\x03'" (parenthesized_expression "(piVar32[0x8f] == 0x34)" (( "(") (binary_expression "piVar32[0x8f] == 0x34" (subscript_expression "piVar32[0x8f]" (identifier "piVar32") ([ "[") (number_literal "0x8f") (] "]")) (== "==") (number_literal "0x34")) () ")")) (* "*") (char_literal "'\x03'" (' "'") (escape_sequence "\x03") (' "'"))) (+ "+") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")))) (; ";")) (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 "iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;" (assignment_expression "iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17" (identifier "iVar13") (= "=") (binary_expression "iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17" (binary_expression "iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14" (binary_expression "iVar13 + local_1144 + iVar10 + iVar11 + iVar12" (binary_expression "iVar13 + local_1144 + iVar10 + iVar11" (binary_expression "iVar13 + local_1144 + iVar10" (binary_expression "iVar13 + local_1144" (identifier "iVar13") (+ "+") (identifier "local_1144")) (+ "+") (identifier "iVar10")) (+ "+") (identifier "iVar11")) (+ "+") (identifier "iVar12")) (+ "+") (identifier "iVar14")) (+ "+") (identifier "iVar17"))) (; ";")) (expression_statement "puVar28 = &DAT_0030c7e0;" (assignment_expression "puVar28 = &DAT_0030c7e0" (identifier "puVar28") (= "=") (pointer_expression "&DAT_0030c7e0" (& "&") (identifier "DAT_0030c7e0"))) (; ";")) (expression_statement "puVar27 = local_10d9;" (assignment_expression "puVar27 = local_10d9" (identifier "puVar27") (= "=") (identifier "local_10d9")) (; ";")) (for_statement "for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {\n          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -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          *puVar27 = *puVar28;\n          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;\n          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;\n        }" ({ "{") (expression_statement "*puVar27 = *puVar28;" (assignment_expression "*puVar27 = *puVar28" (pointer_expression "*puVar27" (* "*") (identifier "puVar27")) (= "=") (pointer_expression "*puVar28" (* "*") (identifier "puVar28"))) (; ";")) (expression_statement "puVar28 = puVar28 + (uint)bVar29 * -2 + 1;" (assignment_expression "puVar28 = puVar28 + (uint)bVar29 * -2 + 1" (identifier "puVar28") (= "=") (binary_expression "puVar28 + (uint)bVar29 * -2 + 1" (binary_expression "puVar28 + (uint)bVar29 * -2" (identifier "puVar28") (+ "+") (binary_expression "(uint)bVar29 * -2" (cast_expression "(uint)bVar29" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar29")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar27 = puVar27 + (uint)bVar29 * -2 + 1;" (assignment_expression "puVar27 = puVar27 + (uint)bVar29 * -2 + 1" (identifier "puVar27") (= "=") (binary_expression "puVar27 + (uint)bVar29 * -2 + 1" (binary_expression "puVar27 + (uint)bVar29 * -2" (identifier "puVar27") (+ "+") (binary_expression "(uint)bVar29 * -2" (cast_expression "(uint)bVar29" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar29")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "iVar10 = GetImageProfile(piVar32,"psd:additional-info");" (assignment_expression "iVar10 = GetImageProfile(piVar32,"psd:additional-info")" (identifier "iVar10") (= "=") (call_expression "GetImageProfile(piVar32,"psd:additional-info")" (identifier "GetImageProfile") (argument_list "(piVar32,"psd:additional-info")" (( "(") (identifier "piVar32") (, ",") (string_literal ""psd:additional-info"" (" """) (string_content "psd:additional-info") (" """)) () ")")))) (; ";")) (if_statement "if (iVar10 == 0) {\nLAB_00260a9c:\n          iVar11 = 0;\n        }\n        else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }" (if "if") (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00260a9c:\n          iVar11 = 0;\n        }" ({ "{") (labeled_statement "LAB_00260a9c:\n          iVar11 = 0;" (statement_identifier "LAB_00260a9c") (: ":") (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" (identifier "iVar11") (= "=") (number_literal "0")) (; ";"))) (} "}")) (else_clause "else {\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }" (else "else") (compound_statement "{\n          uVar18 = GetImageOption(param_2,"psd:additional-info");\n          iVar12 = LocaleCompare(uVar18,"all");\n          iVar11 = iVar10;\n          if (iVar12 != 0) {\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }\n        }" ({ "{") (expression_statement "uVar18 = GetImageOption(param_2,"psd:additional-info");" (assignment_expression "uVar18 = GetImageOption(param_2,"psd:additional-info")" (identifier "uVar18") (= "=") (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(uVar18,"all");" (assignment_expression "iVar12 = LocaleCompare(uVar18,"all")" (identifier "iVar12") (= "=") (call_expression "LocaleCompare(uVar18,"all")" (identifier "LocaleCompare") (argument_list "(uVar18,"all")" (( "(") (identifier "uVar18") (, ",") (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(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }" (if "if") (parenthesized_expression "(iVar12 != 0)" (( "(") (binary_expression "iVar12 != 0" (identifier "iVar12") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            iVar11 = LocaleCompare(uVar18,"selective");\n            if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }\n          }" ({ "{") (expression_statement "iVar11 = LocaleCompare(uVar18,"selective");" (assignment_expression "iVar11 = LocaleCompare(uVar18,"selective")" (identifier "iVar11") (= "=") (call_expression "LocaleCompare(uVar18,"selective")" (identifier "LocaleCompare") (argument_list "(uVar18,"selective")" (( "(") (identifier "uVar18") (, ",") (string_literal ""selective"" (" """) (string_content "selective") (" """)) () ")")))) (; ";")) (if_statement "if (iVar11 == 0) {\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }\n            else {\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }" (if "if") (parenthesized_expression "(iVar11 == 0)" (( "(") (binary_expression "iVar11 == 0" (identifier "iVar11") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              uVar26 = GetStringInfoLength(iVar10);\n              __dest = (void *)GetStringInfoDatum(iVar10);\n              if (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }\n              iVar11 = DestroyStringInfo(iVar11);\n            }" ({ "{") (expression_statement "uVar26 = GetStringInfoLength(iVar10);" (assignment_expression "uVar26 = GetStringInfoLength(iVar10)" (identifier "uVar26") (= "=") (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 (uVar26 < 0xc) {\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }\n              else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }" (if "if") (parenthesized_expression "(uVar26 < 0xc)" (( "(") (binary_expression "uVar26 < 0xc" (identifier "uVar26") (< "<") (number_literal "0xc")) () ")")) (compound_statement "{\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n              }" ({ "{") (expression_statement "iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");" (assignment_expression "iVar11 = RemoveImageProfile(piVar32,"psd:additional-info")" (identifier "iVar11") (= "=") (call_expression "RemoveImageProfile(piVar32,"psd:additional-info")" (identifier "RemoveImageProfile") (argument_list "(piVar32,"psd:additional-info")" (( "(") (identifier "piVar32") (, ",") (string_literal ""psd:additional-info"" (" """) (string_content "psd:additional-info") (" """)) () ")")))) (; ";")) (} "}")) (else_clause "else {\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }" (else "else") (compound_statement "{\n                local_1134 = 0;\n                do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);\n                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");\n                if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }\n              }" ({ "{") (expression_statement "local_1134 = 0;" (assignment_expression "local_1134 = 0" (identifier "local_1134") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\n                } while (0xb < uVar26);" (do "do") (compound_statement "{\n                  local_1025 = *(undefined1 *)((int)__dest + 4);\n                  uVar26 = uVar26 - 0xc;\n                  local_1021 = 0;\n                  uVar6 = *(uint *)((int)__dest + 8);\n                  local_1024 = *(undefined1 *)((int)__dest + 5);\n                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;\n                  local_1023 = *(undefined1 *)((int)__dest + 6);\n                  local_1022 = *(undefined1 *)((int)__dest + 7);\n                  puVar28 = local_10d9;\n                  if (uVar26 < uVar6) goto LAB_00260a9c;\n                  do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);\n                  uVar26 = uVar26 - uVar6;\n                  if (uVar26 == 0) break;\n                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);\nLAB_0026028c:\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 "uVar26 = uVar26 - 0xc;" (assignment_expression "uVar26 = uVar26 - 0xc" (identifier "uVar26") (= "=") (binary_expression "uVar26 - 0xc" (identifier "uVar26") (- "-") (number_literal "0xc"))) (; ";")) (expression_statement "local_1021 = 0;" (assignment_expression "local_1021 = 0" (identifier "local_1021") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar6 = *(uint *)((int)__dest + 8);" (assignment_expression "uVar6 = *(uint *)((int)__dest + 8)" (identifier "uVar6") (= "=") (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 "uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18;" (assignment_expression "uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18" (identifier "uVar6") (= "=") (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |\n                          uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" (identifier "uVar6") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" (( "(") (binary_expression "uVar6 & 0xff0000" (identifier "uVar6") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" (( "(") (binary_expression "uVar6 & 0xff00" (identifier "uVar6") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar6 << 0x18" (identifier "uVar6") (<< "<<") (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 "puVar28 = local_10d9;" (assignment_expression "puVar28 = local_10d9" (identifier "puVar28") (= "=") (identifier "local_10d9")) (; ";")) (if_statement "if (uVar26 < uVar6) goto LAB_00260a9c;" (if "if") (parenthesized_expression "(uVar26 < uVar6)" (( "(") (binary_expression "uVar26 < uVar6" (identifier "uVar26") (< "<") (identifier "uVar6")) () ")")) (goto_statement "goto LAB_00260a9c;" (goto "goto") (statement_identifier "LAB_00260a9c") (; ";"))) (do_statement "do {\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  } while (puVar28 != (undefined4 *)&local_1025);" (do "do") (compound_statement "{\n                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);\n                    if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }\n                    puVar28 = (undefined4 *)((int)puVar28 + 5);\n                  }" ({ "{") (expression_statement "iVar11 = LocaleNCompare(&local_1025,puVar28,5);" (assignment_expression "iVar11 = LocaleNCompare(&local_1025,puVar28,5)" (identifier "iVar11") (= "=") (call_expression "LocaleNCompare(&local_1025,puVar28,5)" (identifier "LocaleNCompare") (argument_list "(&local_1025,puVar28,5)" (( "(") (pointer_expression "&local_1025" (& "&") (identifier "local_1025")) (, ",") (identifier "puVar28") (, ",") (number_literal "5") () ")")))) (; ";")) (if_statement "if (iVar11 == 0) {\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }" (if "if") (parenthesized_expression "(iVar11 == 0)" (( "(") (binary_expression "iVar11 == 0" (identifier "iVar11") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                      uVar26 = uVar26 - uVar6;\n                      local_1134 = uVar6 + 0xc + local_1134;\n                      __dest = (void *)((int)__dest + uVar6 + 0xc);\n                      goto LAB_0026028c;\n                    }" ({ "{") (expression_statement "uVar26 = uVar26 - uVar6;" (assignment_expression "uVar26 = uVar26 - uVar6" (identifier "uVar26") (= "=") (binary_expression "uVar26 - uVar6" (identifier "uVar26") (- "-") (identifier "uVar6"))) (; ";")) (expression_statement "local_1134 = uVar6 + 0xc + local_1134;" (assignment_expression "local_1134 = uVar6 + 0xc + local_1134" (identifier "local_1134") (= "=") (binary_expression "uVar6 + 0xc + local_1134" (binary_expression "uVar6 + 0xc" (identifier "uVar6") (+ "+") (number_literal "0xc")) (+ "+") (identifier "local_1134"))) (; ";")) (expression_statement "__dest = (void *)((int)__dest + uVar6 + 0xc);" (assignment_expression "__dest = (void *)((int)__dest + uVar6 + 0xc)" (identifier "__dest") (= "=") (cast_expression "(void *)((int)__dest + uVar6 + 0xc)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + uVar6 + 0xc)" (( "(") (binary_expression "(int)__dest + uVar6 + 0xc" (binary_expression "(int)__dest + uVar6" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "uVar6")) (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (goto_statement "goto LAB_0026028c;" (goto "goto") (statement_identifier "LAB_0026028c") (; ";")) (} "}"))) (expression_statement "puVar28 = (undefined4 *)((int)puVar28 + 5);" (assignment_expression "puVar28 = (undefined4 *)((int)puVar28 + 5)" (identifier "puVar28") (= "=") (cast_expression "(undefined4 *)((int)puVar28 + 5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar28 + 5)" (( "(") (binary_expression "(int)puVar28 + 5" (cast_expression "(int)puVar28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar28")) (+ "+") (number_literal "5")) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar28 != (undefined4 *)&local_1025)" (( "(") (binary_expression "puVar28 != (undefined4 *)&local_1025" (identifier "puVar28") (!= "!=") (cast_expression "(undefined4 *)&local_1025" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_1025" (& "&") (identifier "local_1025")))) () ")")) (; ";")) (expression_statement "uVar26 = uVar26 - uVar6;" (assignment_expression "uVar26 = uVar26 - uVar6" (identifier "uVar26") (= "=") (binary_expression "uVar26 - uVar6" (identifier "uVar26") (- "-") (identifier "uVar6"))) (; ";")) (if_statement "if (uVar26 == 0) break;" (if "if") (parenthesized_expression "(uVar26 == 0)" (( "(") (binary_expression "uVar26 == 0" (identifier "uVar26") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);" (call_expression "memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26)" (identifier "memmove") (argument_list "(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26)" (( "(") (identifier "__dest") (, ",") (cast_expression "(void *)((int)__dest + uVar6 + 0xc)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + uVar6 + 0xc)" (( "(") (binary_expression "(int)__dest + uVar6 + 0xc" (binary_expression "(int)__dest + uVar6" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "uVar6")) (+ "+") (number_literal "0xc")) () ")"))) (, ",") (identifier "uVar26") () ")"))) (; ";")) (labeled_statement "LAB_0026028c:" (statement_identifier "LAB_0026028c") (: ":") (expression_statement "" (; ""))) (} "}")) (while "while") (parenthesized_expression "(0xb < uVar26)" (( "(") (binary_expression "0xb < uVar26" (number_literal "0xb") (< "<") (identifier "uVar26")) () ")")) (; ";")) (expression_statement "iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");" (assignment_expression "iVar11 = RemoveImageProfile(piVar32,"psd:additional-info")" (identifier "iVar11") (= "=") (call_expression "RemoveImageProfile(piVar32,"psd:additional-info")" (identifier "RemoveImageProfile") (argument_list "(piVar32,"psd:additional-info")" (( "(") (identifier "piVar32") (, ",") (string_literal ""psd:additional-info"" (" """) (string_content "psd:additional-info") (" """)) () ")")))) (; ";")) (if_statement "if (local_1134 != 0) {\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }" (if "if") (parenthesized_expression "(local_1134 != 0)" (( "(") (binary_expression "local_1134 != 0" (identifier "local_1134") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                  SetStringInfoLength(iVar11,local_1134);\n                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);\n                  goto LAB_00260370;\n                }" ({ "{") (expression_statement "SetStringInfoLength(iVar11,local_1134);" (call_expression "SetStringInfoLength(iVar11,local_1134)" (identifier "SetStringInfoLength") (argument_list "(iVar11,local_1134)" (( "(") (identifier "iVar11") (, ",") (identifier "local_1134") () ")"))) (; ";")) (expression_statement "SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);" (call_expression "SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5)" (identifier "SetImageProfile") (argument_list "(piVar32,"psd:additional-info",iVar10,param_5)" (( "(") (identifier "piVar32") (, ",") (string_literal ""psd:additional-info"" (" """) (string_content "psd:additional-info") (" """)) (, ",") (identifier "iVar10") (, ",") (identifier "param_5") () ")"))) (; ";")) (goto_statement "goto LAB_00260370;" (goto "goto") (statement_identifier "LAB_00260370") (; ";")) (} "}"))) (} "}")))) (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              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }" (else "else") (compound_statement "{\n              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");\n              iVar11 = DestroyStringInfo(uVar18);\n            }" ({ "{") (expression_statement "uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");" (assignment_expression "uVar18 = RemoveImageProfile(piVar32,"psd:additional-info")" (identifier "uVar18") (= "=") (call_expression "RemoveImageProfile(piVar32,"psd:additional-info")" (identifier "RemoveImageProfile") (argument_list "(piVar32,"psd:additional-info")" (( "(") (identifier "piVar32") (, ",") (string_literal ""psd:additional-info"" (" """) (string_content "psd:additional-info") (" """)) () ")")))) (; ";")) (expression_statement "iVar11 = DestroyStringInfo(uVar18);" (assignment_expression "iVar11 = DestroyStringInfo(uVar18)" (identifier "iVar11") (= "=") (call_expression "DestroyStringInfo(uVar18)" (identifier "DestroyStringInfo") (argument_list "(uVar18)" (( "(") (identifier "uVar18") () ")")))) (; ";")) (} "}")))) (} "}"))) (} "}")))) (labeled_statement "LAB_00260370:\n        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);" (statement_identifier "LAB_00260370") (: ":") (expression_statement "pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);" (assignment_expression "pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5)" (identifier "pcVar8") (= "=") (cast_expression "(char *)GetImageProperty(piVar32,"label",param_5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetImageProperty(piVar32,"label",param_5)" (identifier "GetImageProperty") (argument_list "(piVar32,"label",param_5)" (( "(") (identifier "piVar32") (, ",") (string_literal ""label"" (" """) (string_content "label") (" """)) (, ",") (identifier "param_5") () ")"))))) (; ";"))) (if_statement "if (pcVar8 == (char *)0x0) {\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }" (if "if") (parenthesized_expression "(pcVar8 == (char *)0x0)" (( "(") (binary_expression "pcVar8 == (char *)0x0" (identifier "pcVar8") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          pcVar8 = local_1020;\n          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);\n        }" ({ "{") (expression_statement "pcVar8 = local_1020;" (assignment_expression "pcVar8 = local_1020" (identifier "pcVar8") (= "=") (identifier "local_1020")) (; ";")) (expression_statement "FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);" (call_expression "FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128)" (identifier "FormatLocaleString") (argument_list "(pcVar8,0x1000,"L%.20g",(double)local_1128)" (( "(") (identifier "pcVar8") (, ",") (number_literal "0x1000") (, ",") (string_literal ""L%.20g"" (" """) (string_content "L%.20g") (" """)) (, ",") (cast_expression "(double)local_1128" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "local_1128")) () ")"))) (; ";")) (} "}"))) (expression_statement "sVar9 = strlen(pcVar8);" (assignment_expression "sVar9 = strlen(pcVar8)" (identifier "sVar9") (= "=") (call_expression "strlen(pcVar8)" (identifier "strlen") (argument_list "(pcVar8)" (( "(") (identifier "pcVar8") () ")")))) (; ";")) (expression_statement "uVar26 = sVar9 + 1;" (assignment_expression "uVar26 = sVar9 + 1" (identifier "uVar26") (= "=") (binary_expression "sVar9 + 1" (identifier "sVar9") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((uVar26 & 3) != 0) {\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }" (if "if") (parenthesized_expression "((uVar26 & 3) != 0)" (( "(") (binary_expression "(uVar26 & 3) != 0" (parenthesized_expression "(uVar26 & 3)" (( "(") (binary_expression "uVar26 & 3" (identifier "uVar26") (& "&") (number_literal "3")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar26 = (uVar26 & 0xfffffffc) + 4;\n        }" ({ "{") (expression_statement "uVar26 = (uVar26 & 0xfffffffc) + 4;" (assignment_expression "uVar26 = (uVar26 & 0xfffffffc) + 4" (identifier "uVar26") (= "=") (binary_expression "(uVar26 & 0xfffffffc) + 4" (parenthesized_expression "(uVar26 & 0xfffffffc)" (( "(") (binary_expression "uVar26 & 0xfffffffc" (identifier "uVar26") (& "&") (number_literal "0xfffffffc")) () ")")) (+ "+") (number_literal "4"))) (; ";")) (} "}"))) (if_statement "if (iVar11 != 0) {\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + iVar10;\n        }" (if "if") (parenthesized_expression "(iVar11 != 0)" (( "(") (binary_expression "iVar11 != 0" (identifier "iVar11") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar10 = GetStringInfoLength(iVar11);\n          uVar26 = uVar26 + 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 "uVar26 = uVar26 + iVar10;" (assignment_expression "uVar26 = uVar26 + iVar10" (identifier "uVar26") (= "=") (binary_expression "uVar26 + iVar10" (identifier "uVar26") (+ "+") (identifier "iVar10"))) (; ";")) (} "}"))) (if_statement "if (local_113c == 0) {\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }\n        else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }" (if "if") (parenthesized_expression "(local_113c == 0)" (( "(") (binary_expression "local_113c == 0" (identifier "local_113c") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar10 = WriteBlobLong(param_1,uVar26 + 8);\n          iVar12 = WriteBlobLong(param_1,0);\n          iVar10 = iVar10 + iVar12 + iVar13;\n        }" ({ "{") (expression_statement "iVar10 = WriteBlobLong(param_1,uVar26 + 8);" (assignment_expression "iVar10 = WriteBlobLong(param_1,uVar26 + 8)" (identifier "iVar10") (= "=") (call_expression "WriteBlobLong(param_1,uVar26 + 8)" (identifier "WriteBlobLong") (argument_list "(param_1,uVar26 + 8)" (( "(") (identifier "param_1") (, ",") (binary_expression "uVar26 + 8" (identifier "uVar26") (+ "+") (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 + iVar13;" (assignment_expression "iVar10 = iVar10 + iVar12 + iVar13" (identifier "iVar10") (= "=") (binary_expression "iVar10 + iVar12 + iVar13" (binary_expression "iVar10 + iVar12" (identifier "iVar10") (+ "+") (identifier "iVar12")) (+ "+") (identifier "iVar13"))) (; ";")) (} "}")) (else_clause "else {\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }" (else "else") (compound_statement "{\n          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);\n          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }\n          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];\n          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];\n          iVar14 = WriteBlobLong(param_1,0x14);\n          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));\n          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));\n          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));\n          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));\n          iVar22 = WriteBlobByte(param_1,local_10e3);\n          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');\n          iVar10 = WriteBlobMSBShort(param_1,0);\n          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;\n        }" ({ "{") (expression_statement "iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);" (assignment_expression "iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c)" (identifier "iVar12") (= "=") (call_expression "WriteBlobLong(param_1,uVar26 + 0x1c)" (identifier "WriteBlobLong") (argument_list "(param_1,uVar26 + 0x1c)" (( "(") (identifier "param_1") (, ",") (binary_expression "uVar26 + 0x1c" (identifier "uVar26") (+ "+") (number_literal "0x1c")) () ")")))) (; ";")) (if_statement "if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }" (if "if") (parenthesized_expression "((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0))" (( "(") (binary_expression "(*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)" (parenthesized_expression "(*(int *)(local_113c + 0x23c) != 0x34)" (( "(") (binary_expression "*(int *)(local_113c + 0x23c) != 0x34" (pointer_expression "*(int *)(local_113c + 0x23c)" (* "*") (cast_expression "(int *)(local_113c + 0x23c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_113c + 0x23c)" (( "(") (binary_expression "local_113c + 0x23c" (identifier "local_113c") (+ "+") (number_literal "0x23c")) () ")")))) (!= "!=") (number_literal "0x34")) () ")")) (&& "&&") (parenthesized_expression "(piVar32[0xa5] != 0)" (( "(") (binary_expression "piVar32[0xa5] != 0" (subscript_expression "piVar32[0xa5]" (identifier "piVar32") ([ "[") (number_literal "0xa5") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);\n          }" ({ "{") (expression_statement "FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);" (call_expression "FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5)" (identifier "FUN_0025cab0") (argument_list "((double)((float)local_10e3 * DAT_002a7ff0),param_5)" (( "(") (cast_expression "(double)((float)local_10e3 * DAT_002a7ff0)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (parenthesized_expression "((float)local_10e3 * DAT_002a7ff0)" (( "(") (binary_expression "(float)local_10e3 * DAT_002a7ff0" (cast_expression "(float)local_10e3" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (identifier "local_10e3")) (* "*") (identifier "DAT_002a7ff0")) () ")"))) (, ",") (identifier "param_5") () ")"))) (; ";")) (} "}"))) (expression_statement "*(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];" (assignment_expression "*(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83]" (pointer_expression "*(int *)(local_113c + 0x20c)" (* "*") (cast_expression "(int *)(local_113c + 0x20c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_113c + 0x20c)" (( "(") (binary_expression "local_113c + 0x20c" (identifier "local_113c") (+ "+") (number_literal "0x20c")) () ")")))) (= "=") (binary_expression "*(int *)(local_113c + 0x20c) + param_1[0x83]" (pointer_expression "*(int *)(local_113c + 0x20c)" (* "*") (cast_expression "(int *)(local_113c + 0x20c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_113c + 0x20c)" (( "(") (binary_expression "local_113c + 0x20c" (identifier "local_113c") (+ "+") (number_literal "0x20c")) () ")")))) (+ "+") (subscript_expression "param_1[0x83]" (identifier "param_1") ([ "[") (number_literal "0x83") (] "]")))) (; ";")) (expression_statement "*(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];" (assignment_expression "*(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82]" (pointer_expression "*(int *)(local_113c + 0x208)" (* "*") (cast_expression "(int *)(local_113c + 0x208)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_113c + 0x208)" (( "(") (binary_expression "local_113c + 0x208" (identifier "local_113c") (+ "+") (number_literal "0x208")) () ")")))) (= "=") (binary_expression "*(int *)(local_113c + 0x208) + param_1[0x82]" (pointer_expression "*(int *)(local_113c + 0x208)" (* "*") (cast_expression "(int *)(local_113c + 0x208)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_113c + 0x208)" (( "(") (binary_expression "local_113c + 0x208" (identifier "local_113c") (+ "+") (number_literal "0x208")) () ")")))) (+ "+") (subscript_expression "param_1[0x82]" (identifier "param_1") ([ "[") (number_literal "0x82") (] "]")))) (; ";")) (expression_statement "iVar14 = WriteBlobLong(param_1,0x14);" (assignment_expression "iVar14 = WriteBlobLong(param_1,0x14)" (identifier "iVar14") (= "=") (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_113c + 0x20c));" (assignment_expression "iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c))" (identifier "iVar17") (= "=") (call_expression "WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c))" (identifier "WriteBlobSignedLong") (argument_list "(param_1,*(undefined4 *)(local_113c + 0x20c))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(local_113c + 0x20c)" (* "*") (cast_expression "(undefined4 *)(local_113c + 0x20c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_113c + 0x20c)" (( "(") (binary_expression "local_113c + 0x20c" (identifier "local_113c") (+ "+") (number_literal "0x20c")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));" (assignment_expression "iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208))" (identifier "iVar19") (= "=") (call_expression "WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208))" (identifier "WriteBlobSignedLong") (argument_list "(param_1,*(undefined4 *)(local_113c + 0x208))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(local_113c + 0x208)" (* "*") (cast_expression "(undefined4 *)(local_113c + 0x208)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_113c + 0x208)" (( "(") (binary_expression "local_113c + 0x208" (identifier "local_113c") (+ "+") (number_literal "0x208")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c));" (assignment_expression "iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c))" (identifier "iVar20") (= "=") (call_expression "WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c))" (identifier "WriteBlobSignedLong") (argument_list "(param_1,*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c))" (( "(") (identifier "param_1") (, ",") (binary_expression "*(int *)(local_113c + 0x20c) +\n                                               *(int *)(local_113c + 0x1c)" (pointer_expression "*(int *)(local_113c + 0x20c)" (* "*") (cast_expression "(int *)(local_113c + 0x20c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_113c + 0x20c)" (( "(") (binary_expression "local_113c + 0x20c" (identifier "local_113c") (+ "+") (number_literal "0x20c")) () ")")))) (+ "+") (pointer_expression "*(int *)(local_113c + 0x1c)" (* "*") (cast_expression "(int *)(local_113c + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_113c + 0x1c)" (( "(") (binary_expression "local_113c + 0x1c" (identifier "local_113c") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")))) (; ";")) (expression_statement "iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18));" (assignment_expression "iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18))" (identifier "iVar21") (= "=") (call_expression "WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18))" (identifier "WriteBlobSignedLong") (argument_list "(param_1,*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18))" (( "(") (identifier "param_1") (, ",") (binary_expression "*(int *)(local_113c + 0x208) +\n                                               *(int *)(local_113c + 0x18)" (pointer_expression "*(int *)(local_113c + 0x208)" (* "*") (cast_expression "(int *)(local_113c + 0x208)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_113c + 0x208)" (( "(") (binary_expression "local_113c + 0x208" (identifier "local_113c") (+ "+") (number_literal "0x208")) () ")")))) (+ "+") (pointer_expression "*(int *)(local_113c + 0x18)" (* "*") (cast_expression "(int *)(local_113c + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_113c + 0x18)" (( "(") (binary_expression "local_113c + 0x18" (identifier "local_113c") (+ "+") (number_literal "0x18")) () ")"))))) () ")")))) (; ";")) (expression_statement "iVar22 = WriteBlobByte(param_1,local_10e3);" (assignment_expression "iVar22 = WriteBlobByte(param_1,local_10e3)" (identifier "iVar22") (= "=") (call_expression "WriteBlobByte(param_1,local_10e3)" (identifier "WriteBlobByte") (argument_list "(param_1,local_10e3)" (( "(") (identifier "param_1") (, ",") (identifier "local_10e3") () ")")))) (; ";")) (expression_statement "iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');" (assignment_expression "iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02')" (identifier "iVar23") (= "=") (call_expression "WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02')" (identifier "WriteBlobByte") (argument_list "(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02')" (( "(") (identifier "param_1") (, ",") (binary_expression "(*(int *)(local_113c + 0x23c) == 0x34) * '\x02'" (parenthesized_expression "(*(int *)(local_113c + 0x23c) == 0x34)" (( "(") (binary_expression "*(int *)(local_113c + 0x23c) == 0x34" (pointer_expression "*(int *)(local_113c + 0x23c)" (* "*") (cast_expression "(int *)(local_113c + 0x23c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_113c + 0x23c)" (( "(") (binary_expression "local_113c + 0x23c" (identifier "local_113c") (+ "+") (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 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10;" (assignment_expression "iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10" (identifier "iVar10") (= "=") (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +\n                   iVar10" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17 + iVar19" (binary_expression "iVar13 + iVar12 + iVar14 + iVar17" (binary_expression "iVar13 + iVar12 + iVar14" (binary_expression "iVar13 + iVar12" (identifier "iVar13") (+ "+") (identifier "iVar12")) (+ "+") (identifier "iVar14")) (+ "+") (identifier "iVar17")) (+ "+") (identifier "iVar19")) (+ "+") (identifier "iVar20")) (+ "+") (identifier "iVar21")) (+ "+") (identifier "iVar22")) (+ "+") (identifier "iVar23")) (+ "+") (identifier "iVar10"))) (; ";")) (} "}")))) (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 "sVar9 = strlen(pcVar8);" (assignment_expression "sVar9 = strlen(pcVar8)" (identifier "sVar9") (= "=") (call_expression "strlen(pcVar8)" (identifier "strlen") (argument_list "(pcVar8)" (( "(") (identifier "pcVar8") () ")")))) (; ";")) (if_statement "if (sVar9 < 0x100) {\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }\n        else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }" (if "if") (parenthesized_expression "(sVar9 < 0x100)" (( "(") (binary_expression "sVar9 < 0x100" (identifier "sVar9") (< "<") (number_literal "0x100")) () ")")) (compound_statement "{\n          if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }\n          iVar13 = 0;\n          do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);\n        }" ({ "{") (if_statement "if (sVar9 == 0) {\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }\n          else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }" (if "if") (parenthesized_expression "(sVar9 == 0)" (( "(") (binary_expression "sVar9 == 0" (identifier "sVar9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            iVar14 = WriteBlobByte(param_1,0);\n            local_113c = 3;\n          }" ({ "{") (expression_statement "iVar14 = WriteBlobByte(param_1,0);" (assignment_expression "iVar14 = WriteBlobByte(param_1,0)" (identifier "iVar14") (= "=") (call_expression "WriteBlobByte(param_1,0)" (identifier "WriteBlobByte") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "local_113c = 3;" (assignment_expression "local_113c = 3" (identifier "local_113c") (= "=") (number_literal "3")) (; ";")) (} "}")) (else_clause "else {\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }" (else "else") (compound_statement "{\n            iVar14 = WriteBlobByte(param_1,sVar9);\n            iVar13 = WriteBlob(param_1,sVar9,pcVar8);\n            iVar14 = iVar14 + iVar13;\n            local_113c = sVar9 + 1 & 3;\n            if (local_113c == 0) goto LAB_00260559;\n            local_113c = 4 - local_113c;\n          }" ({ "{") (expression_statement "iVar14 = WriteBlobByte(param_1,sVar9);" (assignment_expression "iVar14 = WriteBlobByte(param_1,sVar9)" (identifier "iVar14") (= "=") (call_expression "WriteBlobByte(param_1,sVar9)" (identifier "WriteBlobByte") (argument_list "(param_1,sVar9)" (( "(") (identifier "param_1") (, ",") (identifier "sVar9") () ")")))) (; ";")) (expression_statement "iVar13 = WriteBlob(param_1,sVar9,pcVar8);" (assignment_expression "iVar13 = WriteBlob(param_1,sVar9,pcVar8)" (identifier "iVar13") (= "=") (call_expression "WriteBlob(param_1,sVar9,pcVar8)" (identifier "WriteBlob") (argument_list "(param_1,sVar9,pcVar8)" (( "(") (identifier "param_1") (, ",") (identifier "sVar9") (, ",") (identifier "pcVar8") () ")")))) (; ";")) (expression_statement "iVar14 = iVar14 + iVar13;" (assignment_expression "iVar14 = iVar14 + iVar13" (identifier "iVar14") (= "=") (binary_expression "iVar14 + iVar13" (identifier "iVar14") (+ "+") (identifier "iVar13"))) (; ";")) (expression_statement "local_113c = sVar9 + 1 & 3;" (assignment_expression "local_113c = sVar9 + 1 & 3" (identifier "local_113c") (= "=") (binary_expression "sVar9 + 1 & 3" (binary_expression "sVar9 + 1" (identifier "sVar9") (+ "+") (number_literal "1")) (& "&") (number_literal "3"))) (; ";")) (if_statement "if (local_113c == 0) goto LAB_00260559;" (if "if") (parenthesized_expression "(local_113c == 0)" (( "(") (binary_expression "local_113c == 0" (identifier "local_113c") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00260559;" (goto "goto") (statement_identifier "LAB_00260559") (; ";"))) (expression_statement "local_113c = 4 - local_113c;" (assignment_expression "local_113c = 4 - local_113c" (identifier "local_113c") (= "=") (binary_expression "4 - local_113c" (number_literal "4") (- "-") (identifier "local_113c"))) (; ";")) (} "}")))) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" (identifier "iVar13") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          } while (local_113c != iVar13);" (do "do") (compound_statement "{\n            iVar13 = iVar13 + 1;\n            iVar17 = WriteBlobByte(param_1,0);\n            iVar14 = iVar14 + iVar17;\n          }" ({ "{") (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" (identifier "iVar13") (= "=") (binary_expression "iVar13 + 1" (identifier "iVar13") (+ "+") (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 "iVar14 = iVar14 + iVar17;" (assignment_expression "iVar14 = iVar14 + iVar17" (identifier "iVar14") (= "=") (binary_expression "iVar14 + iVar17" (identifier "iVar14") (+ "+") (identifier "iVar17"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_113c != iVar13)" (( "(") (binary_expression "local_113c != iVar13" (identifier "local_113c") (!= "!=") (identifier "iVar13")) () ")")) (; ";")) (} "}")) (else_clause "else {\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }" (else "else") (compound_statement "{\n          iVar14 = WriteBlobByte(param_1,0xff);\n          iVar13 = WriteBlob(param_1,0xff,pcVar8);\n          iVar14 = iVar14 + iVar13;\n        }" ({ "{") (expression_statement "iVar14 = WriteBlobByte(param_1,0xff);" (assignment_expression "iVar14 = WriteBlobByte(param_1,0xff)" (identifier "iVar14") (= "=") (call_expression "WriteBlobByte(param_1,0xff)" (identifier "WriteBlobByte") (argument_list "(param_1,0xff)" (( "(") (identifier "param_1") (, ",") (number_literal "0xff") () ")")))) (; ";")) (expression_statement "iVar13 = WriteBlob(param_1,0xff,pcVar8);" (assignment_expression "iVar13 = WriteBlob(param_1,0xff,pcVar8)" (identifier "iVar13") (= "=") (call_expression "WriteBlob(param_1,0xff,pcVar8)" (identifier "WriteBlob") (argument_list "(param_1,0xff,pcVar8)" (( "(") (identifier "param_1") (, ",") (number_literal "0xff") (, ",") (identifier "pcVar8") () ")")))) (; ";")) (expression_statement "iVar14 = iVar14 + iVar13;" (assignment_expression "iVar14 = iVar14 + iVar13" (identifier "iVar14") (= "=") (binary_expression "iVar14 + iVar13" (identifier "iVar14") (+ "+") (identifier "iVar13"))) (; ";")) (} "}")))) (labeled_statement "LAB_00260559:\n        uVar6 = iVar14 + iVar12 + iVar10;" (statement_identifier "LAB_00260559") (: ":") (expression_statement "uVar6 = iVar14 + iVar12 + iVar10;" (assignment_expression "uVar6 = iVar14 + iVar12 + iVar10" (identifier "uVar6") (= "=") (binary_expression "iVar14 + iVar12 + iVar10" (binary_expression "iVar14 + iVar12" (identifier "iVar14") (+ "+") (identifier "iVar12")) (+ "+") (identifier "iVar10"))) (; ";"))) (if_statement "if (iVar11 != 0) {\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }" (if "if") (parenthesized_expression "(iVar11 != 0)" (( "(") (binary_expression "iVar11 != 0" (identifier "iVar11") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar18 = GetStringInfoDatum(iVar11);\n          uVar24 = GetStringInfoLength(iVar11);\n          iVar10 = WriteBlob(param_1,uVar24,uVar18);\n          uVar6 = uVar6 + iVar10;\n        }" ({ "{") (expression_statement "uVar18 = GetStringInfoDatum(iVar11);" (assignment_expression "uVar18 = GetStringInfoDatum(iVar11)" (identifier "uVar18") (= "=") (call_expression "GetStringInfoDatum(iVar11)" (identifier "GetStringInfoDatum") (argument_list "(iVar11)" (( "(") (identifier "iVar11") () ")")))) (; ";")) (expression_statement "uVar24 = GetStringInfoLength(iVar11);" (assignment_expression "uVar24 = GetStringInfoLength(iVar11)" (identifier "uVar24") (= "=") (call_expression "GetStringInfoLength(iVar11)" (identifier "GetStringInfoLength") (argument_list "(iVar11)" (( "(") (identifier "iVar11") () ")")))) (; ";")) (expression_statement "iVar10 = WriteBlob(param_1,uVar24,uVar18);" (assignment_expression "iVar10 = WriteBlob(param_1,uVar24,uVar18)" (identifier "iVar10") (= "=") (call_expression "WriteBlob(param_1,uVar24,uVar18)" (identifier "WriteBlob") (argument_list "(param_1,uVar24,uVar18)" (( "(") (identifier "param_1") (, ",") (identifier "uVar24") (, ",") (identifier "uVar18") () ")")))) (; ";")) (expression_statement "uVar6 = uVar6 + iVar10;" (assignment_expression "uVar6 = uVar6 + iVar10" (identifier "uVar6") (= "=") (binary_expression "uVar6 + iVar10" (identifier "uVar6") (+ "+") (identifier "iVar10"))) (; ";")) (} "}"))) (expression_statement "piVar5 = (int *)GetNextImageInList(piVar32);" (assignment_expression "piVar5 = (int *)GetNextImageInList(piVar32)" (identifier "piVar5") (= "=") (cast_expression "(int *)GetNextImageInList(piVar32)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetNextImageInList(piVar32)" (identifier "GetNextImageInList") (argument_list "(piVar32)" (( "(") (identifier "piVar32") () ")"))))) (; ";")) (expression_statement "puVar28 = puVar7;" (assignment_expression "puVar28 = puVar7" (identifier "puVar28") (= "=") (identifier "puVar7")) (; ";")) (expression_statement "piVar25 = piVar4;" (assignment_expression "piVar25 = piVar4" (identifier "piVar25") (= "=") (identifier "piVar4")) (; ";")) (} "}")) (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"))) () ")")) (; ";")) (do_statement "do {\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      } while (piVar25 != (int *)0x0);" (do "do") (compound_statement "{\n        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);\n        if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }\n        uVar6 = uVar6 + iVar10;\n        piVar25 = (int *)GetNextImageInList(piVar25);\n        puVar28 = puVar28 + 2;\n        local_113c = uVar6;\n      }" ({ "{") (expression_statement "iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);" (assignment_expression "iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5)" (identifier "iVar10") (= "=") (call_expression "FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5)" (identifier "FUN_0025f0f0") (argument_list "(piVar25,*puVar28,puVar28[1],1,param_5)" (( "(") (identifier "piVar25") (, ",") (pointer_expression "*puVar28" (* "*") (identifier "puVar28")) (, ",") (subscript_expression "puVar28[1]" (identifier "puVar28") ([ "[") (number_literal "1") (] "]")) (, ",") (number_literal "1") (, ",") (identifier "param_5") () ")")))) (; ";")) (if_statement "if (iVar10 == 0) {\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }" (if "if") (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          uVar18 = 0;\n          local_113c = uVar6;\n          goto LAB_0026060b;\n        }" ({ "{") (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" (identifier "uVar18") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_113c = uVar6;" (assignment_expression "local_113c = uVar6" (identifier "local_113c") (= "=") (identifier "uVar6")) (; ";")) (goto_statement "goto LAB_0026060b;" (goto "goto") (statement_identifier "LAB_0026060b") (; ";")) (} "}"))) (expression_statement "uVar6 = uVar6 + iVar10;" (assignment_expression "uVar6 = uVar6 + iVar10" (identifier "uVar6") (= "=") (binary_expression "uVar6 + iVar10" (identifier "uVar6") (+ "+") (identifier "iVar10"))) (; ";")) (expression_statement "piVar25 = (int *)GetNextImageInList(piVar25);" (assignment_expression "piVar25 = (int *)GetNextImageInList(piVar25)" (identifier "piVar25") (= "=") (cast_expression "(int *)GetNextImageInList(piVar25)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetNextImageInList(piVar25)" (identifier "GetNextImageInList") (argument_list "(piVar25)" (( "(") (identifier "piVar25") () ")"))))) (; ";")) (expression_statement "puVar28 = puVar28 + 2;" (assignment_expression "puVar28 = puVar28 + 2" (identifier "puVar28") (= "=") (binary_expression "puVar28 + 2" (identifier "puVar28") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "local_113c = uVar6;" (assignment_expression "local_113c = uVar6" (identifier "local_113c") (= "=") (identifier "uVar6")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar25 != (int *)0x0)" (( "(") (binary_expression "piVar25 != (int *)0x0" (identifier "piVar25") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (expression_statement "uVar18 = 1;" (assignment_expression "uVar18 = 1" (identifier "uVar18") (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_0026060b:\n    if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\n    }" (statement_identifier "LAB_0026060b") (: ":") (if_statement "if (param_4 != (uint *)0x0) {\n      *param_4 = local_113c;\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_113c;\n    }" ({ "{") (expression_statement "*param_4 = local_113c;" (assignment_expression "*param_4 = local_113c" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "local_113c")) (; ";")) (} "}")))) (expression_statement "uVar26 = local_113c + 1;" (assignment_expression "uVar26 = local_113c + 1" (identifier "uVar26") (= "=") (binary_expression "local_113c + 1" (identifier "local_113c") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (local_113c >> 1 == local_113c + 1 >> 1) {\n      uVar26 = local_113c;\n    }" (if "if") (parenthesized_expression "(local_113c >> 1 == local_113c + 1 >> 1)" (( "(") (binary_expression "local_113c >> 1 == local_113c + 1 >> 1" (binary_expression "local_113c >> 1" (identifier "local_113c") (>> ">>") (number_literal "1")) (== "==") (binary_expression "local_113c + 1 >> 1" (binary_expression "local_113c + 1" (identifier "local_113c") (+ "+") (number_literal "1")) (>> ">>") (number_literal "1"))) () ")")) (compound_statement "{\n      uVar26 = local_113c;\n    }" ({ "{") (expression_statement "uVar26 = local_113c;" (assignment_expression "uVar26 = local_113c" (identifier "uVar26") (= "=") (identifier "local_113c")) (; ";")) (} "}"))) (expression_statement "uVar31 = TellBlob(param_1);" (assignment_expression "uVar31 = TellBlob(param_1)" (identifier "uVar31") (= "=") (call_expression "TellBlob(param_1)" (identifier "TellBlob") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "SeekBlob(param_1,uVar30,0,uVar31);" (call_expression "SeekBlob(param_1,uVar30,0,uVar31)" (identifier "SeekBlob") (argument_list "(param_1,uVar30,0,uVar31)" (( "(") (identifier "param_1") (, ",") (identifier "uVar30") (, ",") (number_literal "0") (, ",") (identifier "uVar31") () ")"))) (; ";")) (if_statement "if (*(short *)(param_3 + 0x1e) == 1) {\n      WriteBlobLong(param_1,uVar26);\n    }\n    else {\n      WriteBlobLongLong(param_1,uVar26,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,uVar26);\n    }" ({ "{") (expression_statement "WriteBlobLong(param_1,uVar26);" (call_expression "WriteBlobLong(param_1,uVar26)" (identifier "WriteBlobLong") (argument_list "(param_1,uVar26)" (( "(") (identifier "param_1") (, ",") (identifier "uVar26") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      WriteBlobLongLong(param_1,uVar26,0);\n    }" (else "else") (compound_statement "{\n      WriteBlobLongLong(param_1,uVar26,0);\n    }" ({ "{") (expression_statement "WriteBlobLongLong(param_1,uVar26,0);" (call_expression "WriteBlobLongLong(param_1,uVar26,0)" (identifier "WriteBlobLongLong") (argument_list "(param_1,uVar26,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar26") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")))) (expression_statement "SeekBlob(param_1,uVar31,0);" (call_expression "SeekBlob(param_1,uVar31,0)" (identifier "SeekBlob") (argument_list "(param_1,uVar31,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar31") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "RelinquishMagickMemory(puVar7);" (call_expression "RelinquishMagickMemory(puVar7)" (identifier "RelinquishMagickMemory") (argument_list "(puVar7)" (( "(") (identifier "puVar7") () ")"))) (; ";")) (for_statement "for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {\n      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\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      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");\n      if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }\n    }" ({ "{") (expression_statement "iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");" (assignment_expression "iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask")" (identifier "iVar10") (= "=") (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") (" """)) () ")")))) (; ";")) (if_statement "if (iVar10 != 0) {\n        DeleteImageRegistry(iVar10);\n      }" (if "if") (parenthesized_expression "(iVar10 != 0)" (( "(") (binary_expression "iVar10 != 0" (identifier "iVar10") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        DeleteImageRegistry(iVar10);\n      }" ({ "{") (expression_statement "DeleteImageRegistry(iVar10);" (call_expression "DeleteImageRegistry(iVar10)" (identifier "DeleteImageRegistry") (argument_list "(iVar10)" (( "(") (identifier "iVar10") () ")"))) (; ";")) (} "}"))) (} "}"))) (} "}")))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0029eab0();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0029eab0();\n  }" ({ "{") (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" (identifier "FUN_0029eab0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return uVar18;" (return "return") (identifier "uVar18") (; ";")) (} "}")))

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

type_1 __regparm3
function_1
          (type_2 *image,type_3 *image_info,type_4 *psd_info,size_t *var_82,
          type_5 *exception)

{
  ssize_t *psVar1;
  int var_36;
  int var_87;
  type_6 *var_14;
  float var_45;
  size_t sVar6;
  type_7 value;
  short var_27;
  type_2 *var_3;
  type_2 *var_8;
  type_8 var_31;
  type_9 *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 lVar19;
  type_10 *var_54;
  type_7 *var_60;
  type_10 *var_71;
  ssize_t var_74;
  ssize_t var_75;
  ssize_t var_76;
  ssize_t var_77;
  int var_51;
  type_8 var_61;
  size_t var_7;
  type_11 *var_52;
  type_9 *var_81;
  int var_37;
  char (*var_63) [5];
  int var_1;
  type_12 bVar33;
  type_9 offset;
  type_9 MVar34;
  type_2 *var_79;
  int var_38;
  type_2 *var_28;
  size_t var_39;
  int var_29;
  type_9 size_offset;
  type_12 local_10e3;
  char allowed [36] [5];
  char key [5];
  char layer_name [4096];
  
  bVar33 = 0;
  var_87 = *(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_7 = 0;
  if (var_3 != (type_2 *)0x0) {
    var_7 = 0;
    var_8 = var_3;
    do {
      var_7 = var_7 + 1;
      var_8 = var_2(var_8);
    } while (var_8 != (type_2 *)0x0);
  }
  sVar6 = var_7;
  if (image->alpha_trait != var_9) {
    sVar6 = -var_7;
  }
  var_31 = var_10(image,(type_13)sVar6);
  var_12 = (type_9 *)var_11(var_7,8);
  if (var_12 == (type_9 *)0x0) {
    var_13
              (exception,"coders/psd.c","WritePSDLayersInternal",0xdf3,ErrorException,
               "MemoryAllocationFailed","`%s\'",0xd6,image->filename);
    var_14 = (type_6 *)image_info->adjoin;
    var_3 = image;
    while (var_8 = image, var_14 != (type_6 *)0x0) {
      var_14 = var_8->previous;
      image = var_14;
      var_3 = var_8;
    }
    var_24 = var_25;
    var_15(var_3);
  }
  else {
    var_28 = (type_2 *)var_31;
    if (var_3 != (type_2 *)0x0) {
      var_29 = 0;
      var_79 = var_3;
      do {
        var_17 = var_16(var_79,"psd:opacity-mask");
        if (var_17 == (char *)0x0) {
          local_10e3 = 0;
          var_28 = (type_2 *)0x0;
        }
        else {
          var_28 = (type_2 *)var_18(ImageRegistryType,var_17,exception);
          var_20 = var_19(var_17);
          local_10e3 = -(var_20 == 9);
        }
        var_32 = var_21(image,(var_79->page).y);
        var_33 = var_21(image,(var_79->page).x);
        var_34 = var_21(image,var_79->rows + (var_79->page).y);
        var_35 = var_21(image,var_79->columns + (var_79->page).x);
        if ((var_79->storage_class == var_22) ||
           (var_24 = var_23(var_79), var_24 != var_25)) {
          var_39 = 1;
          var_27 = 1;
        }
        else {
          var_39 = (var_79->colorspace == var_26) + 3;
          var_27 = (var_79->colorspace == var_26) + 3;
        }
        var_30 = var_10(image,((var_27 - (type_13)(var_79->alpha_trait ==
                                                        var_9)) + 2) -
                                      (type_13)(var_28 == (type_2 *)0x0));
        var_36 = var_29 + 1;
        var_38 = var_30 + var_31 + var_32 + var_33 + var_34 + var_35;
        MVar34 = var_4(image);
        *(int *)(var_12 + var_29) = (int)MVar34;
        *(int *)((int)var_12 + var_36 * 8 + -4) = (int)((type_14)MVar34 >> 0x20);
        var_37 = 0;
        do {
          while (var_32 = var_10(image,(type_13)var_37), psd_info->version == 1) {
            var_37 = var_37 + 1;
            var_33 = var_5(image,0);
            var_38 = var_38 + var_32 + var_33;
            if (var_37 == var_39) goto LAB_0025ff56;
          }
          var_37 = var_37 + 1;
          var_33 = var_6(image,0);
          var_38 = var_38 + var_32 + var_33;
        } while (var_37 != var_39);
LAB_0025ff56:
        if (var_79->alpha_trait != var_9) {
          var_32 = var_10(image,0xffff);
          if (psd_info->version == 1) {
            var_37 = var_5(image,0);
          }
          else {
            var_37 = var_6(image,0);
          }
          var_38 = var_37 + var_38 + var_32;
        }
        if (var_28 != (type_2 *)0x0) {
          var_32 = var_10(image,0xfffe);
          if (psd_info->version == 1) {
            var_37 = var_5(image,0);
          }
          else {
            var_37 = var_6(image,0);
          }
          var_38 = var_37 + var_38 + var_32;
        }
        var_17 = "8BIM";
        if (image->endian == var_40) {
          var_17 = "MIB8";
        }
        var_32 = var_41(image,var_17);
        switch(var_79->compose) {
        case ColorBurnCompositeOp:
          var_17 = "idiv";
          if (var_79->endian == var_40) {
            var_17 = "vidi";
          }
          break;
        case ColorDodgeCompositeOp:
          var_17 = "div ";
          if (var_79->endian == var_40) {
            var_17 = " vid";
          }
          break;
        case ColorizeCompositeOp:
          var_17 = "colr";
          if (var_79->endian == var_40) {
            var_17 = "rloc";
          }
          break;
        default:
          var_17 = "norm";
          if (var_79->endian == var_40) {
            var_17 = "mron";
          }
          break;
        case DarkenCompositeOp:
          var_17 = "dark";
          if (var_79->endian == var_40) {
            var_17 = "krad";
          }
          break;
        case DifferenceCompositeOp:
          var_17 = "diff";
          if (var_79->endian == var_40) {
            var_17 = "ffid";
          }
          break;
        case DissolveCompositeOp:
          var_17 = "diss";
          if (var_79->endian == var_40) {
            var_17 = "ssid";
          }
          break;
        case ExclusionCompositeOp:
          var_17 = "smud";
          if (var_79->endian == var_40) {
            var_17 = "dums";
          }
          break;
        case HardLightCompositeOp:
          var_17 = "hLit";
          if (var_79->endian == var_40) {
            var_17 = "tiLh";
          }
          break;
        case HardMixCompositeOp:
          var_17 = "hMix";
          if (var_79->endian == var_40) {
            var_17 = "xiMh";
          }
          break;
        case HueCompositeOp:
          var_17 = "hue ";
          if (var_79->endian == var_40) {
            var_17 = " euh";
          }
          break;
        case LightenCompositeOp:
          var_17 = "lite";
          if (var_79->endian == var_40) {
            var_17 = "etil";
          }
          break;
        case LinearBurnCompositeOp:
          var_17 = "lbrn";
          if (var_79->endian == var_40) {
            var_17 = "nrbl";
          }
          break;
        case LinearDodgeCompositeOp:
          var_17 = "lddg";
          if (var_79->endian == var_40) {
            var_17 = "gddl";
          }
          break;
        case LinearLightCompositeOp:
          var_17 = "lLit";
          if (var_79->endian == var_40) {
            var_17 = "tiLl";
          }
          break;
        case LuminizeCompositeOp:
          var_17 = "lum ";
          if (var_79->endian == var_40) {
            var_17 = " mul";
          }
          break;
        case MultiplyCompositeOp:
          var_17 = "mul ";
          if (var_79->endian == var_40) {
            var_17 = " lum";
          }
          break;
        case OverlayCompositeOp:
          var_17 = "over";
          if (var_79->endian == var_40) {
            var_17 = "revo";
          }
          break;
        case PinLightCompositeOp:
          var_17 = "pLit";
          if (var_79->endian == var_40) {
            var_17 = "tiLp";
          }
          break;
        case SaturateCompositeOp:
          var_17 = "sat ";
          if (var_79->endian == var_40) {
            var_17 = " tas";
          }
          break;
        case ScreenCompositeOp:
          var_17 = "scrn";
          if (var_79->endian == var_40) {
            var_17 = "nrcs";
          }
          break;
        case SoftLightCompositeOp:
          var_17 = "sLit";
          if (var_79->endian == var_40) {
            var_17 = "tiLs";
          }
          break;
        case VividLightCompositeOp:
          var_17 = "vLit";
          if (var_79->endian == var_40) {
            var_17 = "tiLv";
          }
        }
        var_33 = var_41(image,var_17);
        var_17 = var_16(var_79,"psd:layer.opacity");
        if (var_17 == (char *)0x0) {
          var_37 = var_42(image,0xff);
        }
        else {
          lVar19 = var_43(var_17,(char **)0x0,10);
          value = '\0';
          if (0.0 < (float)lVar19) {
            value = 0xff;
            var_45 = (float)lVar19 / var_44;
            if (var_45 < var_46) {
              value = (type_7)(short)var_47(var_45 + var_48);
            }
          }
          var_37 = var_42(image,value);
          var_49(var_79,(double)lVar19,MagickTrue,exception);
        }
        var_34 = var_42(image,'\0');
        var_35 = var_42(image,(var_79->compose == var_50) * '\x03' + '\x01');
        var_30 = var_42(image,'\0');
        var_37 = var_30 + var_38 + var_32 + var_33 + var_37 + var_34 + var_35;
        var_52 = &DAT_0030c7e0;
        var_63 = allowed;
        for (var_51 = 0x2d; var_51 != 0; var_51 = var_51 + -1) {
          *(type_11 *)*var_63 = *var_52;
          var_52 = var_52 + (type_8)bVar33 * -2 + 1;
          var_63 = (char (*) [5])((int)var_63 + (type_8)bVar33 * -8 + 4);
        }
        var_54 = var_53(var_79,"psd:additional-info");
        if (var_54 == (type_10 *)0x0) {
LAB_00260a9c:
          var_71 = (type_10 *)0x0;
        }
        else {
          var_17 = var_55(image_info,"psd:additional-info");
          var_51 = var_56(var_17,"all");
          var_71 = var_54;
          if (var_51 != 0) {
            var_51 = var_56(var_17,"selective");
            if (var_51 == 0) {
              var_7 = var_57(var_54);
              var_60 = var_58(var_54);
              if (var_7 < 0xc) {
                var_71 = var_59(var_79,"psd:additional-info");
              }
              else {
                var_39 = 0;
                do {
                  key[0] = var_60[4];
                  var_61 = var_7 - 0xc;
                  key[4] = '\0';
                  var_31 = *(type_8 *)(var_60 + 8);
                  key[1] = var_60[5];
                  var_31 = var_31 >> 0x18 | (var_31 & 0xff0000) >> 8 | (var_31 & 0xff00) << 8 |
                           var_31 << 0x18;
                  key[2] = var_60[6];
                  key[3] = var_60[7];
                  var_63 = allowed;
                  if (var_61 < var_31) goto LAB_00260a9c;
                  do {
                    var_51 = var_62(key,*var_63,5);
                    if (var_51 == 0) {
                      var_7 = var_61 - var_31;
                      var_39 = var_31 + 0xc + var_39;
                      var_60 = var_60 + var_31 + 0xc;
                      goto LAB_0026028c;
                    }
                    var_63 = var_63 + 1;
                  } while (var_63 != &key);
                  var_7 = var_61 - var_31;
                  if (var_7 == 0) break;
                  var_64(var_60,var_60 + var_31 + 0xc,var_7);
LAB_0026028c:
                } while (0xb < var_7);
                var_71 = var_59(var_79,"psd:additional-info");
                if (var_39 != 0) {
                  var_65(var_71,var_39);
                  var_66(var_79,"psd:additional-info",var_54,exception);
                  goto LAB_00260370;
                }
              }
              var_71 = var_67(var_71);
            }
            else {
              var_54 = var_59(var_79,"psd:additional-info");
              var_71 = var_67(var_54);
            }
          }
        }
LAB_00260370:
        var_17 = var_68(var_79,"label",exception);
        if (var_17 == (char *)0x0) {
          var_17 = layer_name;
          var_69(var_17,0x1000,"L%.20g",var_70((double)var_36,0),
                             (int)((type_14)(double)var_36 >> 0x20));
        }
        var_20 = var_19(var_17);
        var_31 = var_20 + 1;
        if ((var_31 & 3) != 0) {
          var_31 = (var_31 & 0xfffffffc) + 4;
        }
        if (var_71 != (type_10 *)0x0) {
          var_7 = var_57(var_71);
          var_31 = var_31 + var_7;
        }
        if (var_28 == (type_2 *)0x0) {
          var_32 = var_5(image,var_31 + 8);
          var_33 = var_5(image,0);
          var_37 = var_32 + var_33 + var_37;
        }
        else {
          var_32 = var_5(image,var_31 + 0x1c);
          if ((var_28->compose != var_50) &&
             (var_79->alpha_trait != var_9)) {
            var_72(var_79,var_28,(double)((float)local_10e3 * var_44),
                                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_74 = var_21(image,(var_28->page).x + var_28->columns);
          var_75 = var_42(image,local_10e3);
          var_76 = var_42(image,(var_28->compose == var_50) * '\x02');
          var_77 = var_73(image,0);
          var_37 = var_37 + var_32 + var_33 + var_34 + var_35 + var_30 + var_74 + var_75 + var_76 +
                   var_77;
        }
        var_32 = var_5(image,0);
        var_20 = var_19(var_17);
        if (var_20 < 0x100) {
          if (var_20 == 0) {
            var_34 = var_42(image,'\0');
            var_28 = (type_2 *)0x3;
          }
          else {
            var_34 = var_42(image,(type_7)var_20);
            var_33 = var_78(image,var_20,var_17);
            var_34 = var_34 + var_33;
            var_31 = var_20 + 1 & 3;
            if (var_31 == 0) goto LAB_00260559;
            var_28 = (type_2 *)(4 - var_31);
          }
          var_51 = 0;
          do {
            var_51 = var_51 + 1;
            var_33 = var_42(image,'\0');
            var_34 = var_34 + var_33;
          } while (var_28 != (type_2 *)var_51);
        }
        else {
          var_34 = var_42(image,0xff);
          var_33 = var_78(image,0xff,var_17);
          var_34 = var_34 + var_33;
        }
LAB_00260559:
        var_31 = var_34 + var_32 + var_37;
        if (var_71 != (type_10 *)0x0) {
          var_60 = var_58(var_71);
          var_7 = var_57(var_71);
          var_32 = var_78(image,var_7,var_60);
          var_31 = var_31 + var_32;
        }
        var_79 = var_2(var_79);
        var_81 = var_12;
        var_8 = var_3;
        var_29 = var_36;
      } while (var_79 != (type_2 *)0x0);
      do {
        var_7 = var_80(psd_info,image_info,image,var_8,*var_81,MagickTrue,exception);
        if (var_7 == 0) {
          var_24 = var_25;
          var_28 = (type_2 *)var_31;
          goto LAB_0026060b;
        }
        var_31 = var_31 + var_7;
        var_8 = var_2(var_8);
        var_81 = var_81 + 1;
        var_28 = (type_2 *)var_31;
      } while (var_8 != (type_2 *)0x0);
    }
    var_24 = MagickTrue;
LAB_0026060b:
    if (var_82 != (size_t *)0x0) {
      *var_82 = (size_t)var_28;
    }
    var_8 = (type_2 *)((int)var_28 + 1U);
    if ((type_8)var_28 >> 1 == (int)var_28 + 1U >> 1) {
      var_8 = var_28;
    }
    MVar34 = var_4(image);
    var_83(image,offset,0);
    if (psd_info->version == 1) {
      var_5(image,(type_8)var_8);
    }
    else {
      var_6(image,var_84(var_8));
    }
    var_83(image,MVar34,0);
    var_85(var_12);
    for (; var_3 != (type_2 *)0x0; var_3 = var_2(var_3)) {
      var_17 = var_16(var_3,"psd:opacity-mask");
      if (var_17 != (char *)0x0) {
        var_86(var_17);
      }
    }
  }
  if (var_87 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_88();
  }
  return var_24;
}


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

{
  float fVar1;
  undefined1 uVar2;
  short sVar3;
  int *piVar4;
  int *piVar5;
  uint uVar6;
  undefined4 *puVar7;
  char *pcVar8;
  size_t sVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  int iVar13;
  int iVar14;
  undefined1 *puVar15;
  long lVar16;
  int iVar17;
  undefined4 uVar18;
  void *__dest;
  int iVar19;
  int iVar20;
  int iVar21;
  int iVar22;
  int iVar23;
  undefined4 uVar24;
  int *piVar25;
  uint uVar26;
  undefined4 *puVar27;
  undefined4 *puVar28;
  int in_GS_OFFSET;
  byte bVar29;
  undefined8 uVar30;
  undefined8 uVar31;
  int *piVar32;
  int local_1144;
  uint local_113c;
  int local_1134;
  int local_1128;
  byte local_10e3;
  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;
  
  bVar29 = 0;
  uStack_14 = 0x25fc8d;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  piVar4 = (int *)GetNextImageInList(param_1);
  if (piVar4 == (int *)0x0) {
    piVar4 = param_1;
  }
  uVar30 = TellBlob(param_1);
  if (*(short *)(param_3 + 0x1e) == 1) {
    WriteBlobLong(param_1,0);
  }
  else {
    WriteBlobLongLong(param_1,0,0);
  }
  uVar26 = 0;
  if (piVar4 != (int *)0x0) {
    uVar26 = 0;
    piVar5 = piVar4;
    do {
      uVar26 = uVar26 + 1;
      piVar5 = (int *)GetNextImageInList(piVar5);
    } while (piVar5 != (int *)0x0);
  }
  uVar6 = uVar26;
  if (param_1[0xa5] != 0) {
    uVar6 = -uVar26;
  }
  uVar6 = WriteBlobShort(param_1,uVar6 & 0xffff);
  puVar7 = (undefined4 *)AcquireQuantumMemory(uVar26,8);
  if (puVar7 == (undefined4 *)0x0) {
    ThrowMagickException
              (param_5,"coders/psd.c","WritePSDLayersInternal",0xdf3,400,"MemoryAllocationFailed",
               "`%s\'",param_1 + 0xc6);
    piVar4 = *(int **)(param_2 + 0xc);
    piVar5 = param_1;
    while (piVar25 = param_1, piVar4 != (int *)0x0) {
      piVar4 = (int *)piVar25[0xccf];
      param_1 = piVar4;
      piVar5 = piVar25;
    }
    uVar18 = 0;
    CloseBlob(piVar5);
  }
  else {
    local_113c = uVar6;
    if (piVar4 != (int *)0x0) {
      local_1128 = 0;
      piVar5 = piVar4;
      do {
        pcVar8 = (char *)GetImageArtifact(piVar5,"psd:opacity-mask");
        if (pcVar8 == (char *)0x0) {
          local_10e3 = 0;
          local_113c = 0;
        }
        else {
          local_113c = GetImageRegistry(1,pcVar8,param_5);
          sVar9 = strlen(pcVar8);
          local_10e3 = -(sVar9 == 9);
        }
        iVar10 = WriteBlobSignedLong(param_1,piVar5[0x83]);
        iVar11 = WriteBlobSignedLong(param_1,piVar5[0x82]);
        piVar25 = piVar5;
        iVar12 = WriteBlobSignedLong(param_1,piVar5[7] + piVar5[0x83]);
        iVar13 = WriteBlobSignedLong(param_1,piVar5[6] + piVar5[0x82]);
        piVar32 = piVar25;
        if ((*piVar5 == 2) || (iVar14 = IsImageGray(piVar25), iVar14 != 0)) {
          local_1134 = 1;
          sVar3 = 1;
        }
        else {
          local_1134 = (piVar25[1] == 2) + 3;
          sVar3 = (piVar25[1] == 2) + 3;
        }
        local_1144 = WriteBlobShort(param_1,((sVar3 - (ushort)(piVar32[0xa5] == 0)) + 2) -
                                            (ushort)(local_113c == 0));
        local_1128 = local_1128 + 1;
        local_1144 = local_1144 + uVar6 + iVar10 + iVar11 + iVar12 + iVar13;
        uVar31 = TellBlob(param_1);
        puVar7[local_1128 * 2 + -2] = (int)uVar31;
        puVar7[local_1128 * 2 + -1] = (int)((ulonglong)uVar31 >> 0x20);
        iVar10 = 0;
        do {
          while (iVar11 = WriteBlobShort(param_1,iVar10), *(short *)(param_3 + 0x1e) == 1) {
            iVar10 = iVar10 + 1;
            iVar12 = WriteBlobLong(param_1,0);
            local_1144 = local_1144 + iVar11 + iVar12;
            if (iVar10 == local_1134) goto LAB_0025ff56;
          }
          iVar10 = iVar10 + 1;
          iVar12 = WriteBlobLongLong(param_1,0,0);
          local_1144 = local_1144 + iVar11 + iVar12;
        } while (iVar10 != local_1134);
LAB_0025ff56:
        if (piVar32[0xa5] != 0) {
          iVar10 = WriteBlobShort(param_1,0xffff);
          if (*(short *)(param_3 + 0x1e) == 1) {
            iVar11 = WriteBlobLong(param_1,0);
          }
          else {
            iVar11 = WriteBlobLongLong(param_1,0,0);
          }
          local_1144 = iVar11 + local_1144 + iVar10;
        }
        if (local_113c != 0) {
          iVar10 = WriteBlobShort(param_1,0xfffe);
          if (*(short *)(param_3 + 0x1e) == 1) {
            iVar11 = WriteBlobLong(param_1,0);
          }
          else {
            iVar11 = WriteBlobLongLong(param_1,0,0);
          }
          local_1144 = iVar11 + local_1144 + iVar10;
        }
        puVar15 = &DAT_002a239a;
        if (param_1[0x8d] == 1) {
          puVar15 = &DAT_0030c1c9;
        }
        iVar10 = WriteBlobString(param_1,puVar15);
        switch(piVar32[0x8f]) {
        case 8:
          pcVar8 = "idiv";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "vidi";
          }
          break;
        case 9:
          pcVar8 = "div ";
          if (piVar32[0x8d] == 1) {
            pcVar8 = " vid";
          }
          break;
        case 10:
          pcVar8 = "colr";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "rloc";
          }
          break;
        default:
          pcVar8 = "norm";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "mron";
          }
          break;
        case 0x14:
          pcVar8 = "dark";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "krad";
          }
          break;
        case 0x16:
          pcVar8 = "diff";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "ffid";
          }
          break;
        case 0x18:
          pcVar8 = "diss";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "ssid";
          }
          break;
        case 0x21:
          pcVar8 = "smud";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "dums";
          }
          break;
        case 0x22:
          pcVar8 = "hLit";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "tiLh";
          }
          break;
        case 0x23:
          pcVar8 = "hMix";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "xiMh";
          }
          break;
        case 0x24:
          pcVar8 = "hue ";
          if (piVar32[0x8d] == 1) {
            pcVar8 = " euh";
          }
          break;
        case 0x27:
          pcVar8 = "lite";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "etil";
          }
          break;
        case 0x29:
          pcVar8 = "lbrn";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "nrbl";
          }
          break;
        case 0x2a:
          pcVar8 = "lddg";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "gddl";
          }
          break;
        case 0x2b:
          pcVar8 = "lLit";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "tiLl";
          }
          break;
        case 0x2c:
          pcVar8 = "lum ";
          if (piVar32[0x8d] == 1) {
            pcVar8 = " mul";
          }
          break;
        case 0x33:
          pcVar8 = "mul ";
          if (piVar32[0x8d] == 1) {
            pcVar8 = " lum";
          }
          break;
        case 0x37:
          pcVar8 = "over";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "revo";
          }
          break;
        case 0x39:
          pcVar8 = "pLit";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "tiLp";
          }
          break;
        case 0x3c:
          pcVar8 = "sat ";
          if (piVar32[0x8d] == 1) {
            pcVar8 = " tas";
          }
          break;
        case 0x3d:
          pcVar8 = "scrn";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "nrcs";
          }
          break;
        case 0x3e:
          pcVar8 = "sLit";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "tiLs";
          }
          break;
        case 0x45:
          pcVar8 = "vLit";
          if (piVar32[0x8d] == 1) {
            pcVar8 = "tiLv";
          }
        }
        iVar11 = WriteBlobString(param_1,pcVar8);
        pcVar8 = (char *)GetImageArtifact(piVar32,"psd:layer.opacity");
        if (pcVar8 == (char *)0x0) {
          iVar12 = WriteBlobByte(param_1,0xff);
        }
        else {
          lVar16 = strtol(pcVar8,(char **)0x0,10);
          uVar2 = 0;
          if (0.0 < (float)lVar16) {
            uVar2 = 0xff;
            fVar1 = (float)lVar16 / DAT_002a7ff0;
            if (fVar1 < DAT_002a7ff4) {
              uVar2 = (undefined1)(short)ROUND(fVar1 + DAT_0029f124);
            }
          }
          iVar12 = WriteBlobByte(param_1,uVar2);
          FUN_0025c840((double)lVar16);
        }
        iVar14 = WriteBlobByte(param_1,0);
        iVar17 = WriteBlobByte(param_1,(piVar32[0x8f] == 0x34) * '\x03' + '\x01');
        iVar13 = WriteBlobByte(param_1,0);
        iVar13 = iVar13 + local_1144 + iVar10 + iVar11 + iVar12 + iVar14 + iVar17;
        puVar28 = &DAT_0030c7e0;
        puVar27 = local_10d9;
        for (iVar10 = 0x2d; iVar10 != 0; iVar10 = iVar10 + -1) {
          *puVar27 = *puVar28;
          puVar28 = puVar28 + (uint)bVar29 * -2 + 1;
          puVar27 = puVar27 + (uint)bVar29 * -2 + 1;
        }
        iVar10 = GetImageProfile(piVar32,"psd:additional-info");
        if (iVar10 == 0) {
LAB_00260a9c:
          iVar11 = 0;
        }
        else {
          uVar18 = GetImageOption(param_2,"psd:additional-info");
          iVar12 = LocaleCompare(uVar18,"all");
          iVar11 = iVar10;
          if (iVar12 != 0) {
            iVar11 = LocaleCompare(uVar18,"selective");
            if (iVar11 == 0) {
              uVar26 = GetStringInfoLength(iVar10);
              __dest = (void *)GetStringInfoDatum(iVar10);
              if (uVar26 < 0xc) {
                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");
              }
              else {
                local_1134 = 0;
                do {
                  local_1025 = *(undefined1 *)((int)__dest + 4);
                  uVar26 = uVar26 - 0xc;
                  local_1021 = 0;
                  uVar6 = *(uint *)((int)__dest + 8);
                  local_1024 = *(undefined1 *)((int)__dest + 5);
                  uVar6 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 |
                          uVar6 << 0x18;
                  local_1023 = *(undefined1 *)((int)__dest + 6);
                  local_1022 = *(undefined1 *)((int)__dest + 7);
                  puVar28 = local_10d9;
                  if (uVar26 < uVar6) goto LAB_00260a9c;
                  do {
                    iVar11 = LocaleNCompare(&local_1025,puVar28,5);
                    if (iVar11 == 0) {
                      uVar26 = uVar26 - uVar6;
                      local_1134 = uVar6 + 0xc + local_1134;
                      __dest = (void *)((int)__dest + uVar6 + 0xc);
                      goto LAB_0026028c;
                    }
                    puVar28 = (undefined4 *)((int)puVar28 + 5);
                  } while (puVar28 != (undefined4 *)&local_1025);
                  uVar26 = uVar26 - uVar6;
                  if (uVar26 == 0) break;
                  memmove(__dest,(void *)((int)__dest + uVar6 + 0xc),uVar26);
LAB_0026028c:
                } while (0xb < uVar26);
                iVar11 = RemoveImageProfile(piVar32,"psd:additional-info");
                if (local_1134 != 0) {
                  SetStringInfoLength(iVar11,local_1134);
                  SetImageProfile(piVar32,"psd:additional-info",iVar10,param_5);
                  goto LAB_00260370;
                }
              }
              iVar11 = DestroyStringInfo(iVar11);
            }
            else {
              uVar18 = RemoveImageProfile(piVar32,"psd:additional-info");
              iVar11 = DestroyStringInfo(uVar18);
            }
          }
        }
LAB_00260370:
        pcVar8 = (char *)GetImageProperty(piVar32,"label",param_5);
        if (pcVar8 == (char *)0x0) {
          pcVar8 = local_1020;
          FormatLocaleString(pcVar8,0x1000,"L%.20g",(double)local_1128);
        }
        sVar9 = strlen(pcVar8);
        uVar26 = sVar9 + 1;
        if ((uVar26 & 3) != 0) {
          uVar26 = (uVar26 & 0xfffffffc) + 4;
        }
        if (iVar11 != 0) {
          iVar10 = GetStringInfoLength(iVar11);
          uVar26 = uVar26 + iVar10;
        }
        if (local_113c == 0) {
          iVar10 = WriteBlobLong(param_1,uVar26 + 8);
          iVar12 = WriteBlobLong(param_1,0);
          iVar10 = iVar10 + iVar12 + iVar13;
        }
        else {
          iVar12 = WriteBlobLong(param_1,uVar26 + 0x1c);
          if ((*(int *)(local_113c + 0x23c) != 0x34) && (piVar32[0xa5] != 0)) {
            FUN_0025cab0((double)((float)local_10e3 * DAT_002a7ff0),param_5);
          }
          *(int *)(local_113c + 0x20c) = *(int *)(local_113c + 0x20c) + param_1[0x83];
          *(int *)(local_113c + 0x208) = *(int *)(local_113c + 0x208) + param_1[0x82];
          iVar14 = WriteBlobLong(param_1,0x14);
          iVar17 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x20c));
          iVar19 = WriteBlobSignedLong(param_1,*(undefined4 *)(local_113c + 0x208));
          iVar20 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x20c) +
                                               *(int *)(local_113c + 0x1c));
          iVar21 = WriteBlobSignedLong(param_1,*(int *)(local_113c + 0x208) +
                                               *(int *)(local_113c + 0x18));
          iVar22 = WriteBlobByte(param_1,local_10e3);
          iVar23 = WriteBlobByte(param_1,(*(int *)(local_113c + 0x23c) == 0x34) * '\x02');
          iVar10 = WriteBlobMSBShort(param_1,0);
          iVar10 = iVar13 + iVar12 + iVar14 + iVar17 + iVar19 + iVar20 + iVar21 + iVar22 + iVar23 +
                   iVar10;
        }
        iVar12 = WriteBlobLong(param_1,0);
        sVar9 = strlen(pcVar8);
        if (sVar9 < 0x100) {
          if (sVar9 == 0) {
            iVar14 = WriteBlobByte(param_1,0);
            local_113c = 3;
          }
          else {
            iVar14 = WriteBlobByte(param_1,sVar9);
            iVar13 = WriteBlob(param_1,sVar9,pcVar8);
            iVar14 = iVar14 + iVar13;
            local_113c = sVar9 + 1 & 3;
            if (local_113c == 0) goto LAB_00260559;
            local_113c = 4 - local_113c;
          }
          iVar13 = 0;
          do {
            iVar13 = iVar13 + 1;
            iVar17 = WriteBlobByte(param_1,0);
            iVar14 = iVar14 + iVar17;
          } while (local_113c != iVar13);
        }
        else {
          iVar14 = WriteBlobByte(param_1,0xff);
          iVar13 = WriteBlob(param_1,0xff,pcVar8);
          iVar14 = iVar14 + iVar13;
        }
LAB_00260559:
        uVar6 = iVar14 + iVar12 + iVar10;
        if (iVar11 != 0) {
          uVar18 = GetStringInfoDatum(iVar11);
          uVar24 = GetStringInfoLength(iVar11);
          iVar10 = WriteBlob(param_1,uVar24,uVar18);
          uVar6 = uVar6 + iVar10;
        }
        piVar5 = (int *)GetNextImageInList(piVar32);
        puVar28 = puVar7;
        piVar25 = piVar4;
      } while (piVar5 != (int *)0x0);
      do {
        iVar10 = FUN_0025f0f0(piVar25,*puVar28,puVar28[1],1,param_5);
        if (iVar10 == 0) {
          uVar18 = 0;
          local_113c = uVar6;
          goto LAB_0026060b;
        }
        uVar6 = uVar6 + iVar10;
        piVar25 = (int *)GetNextImageInList(piVar25);
        puVar28 = puVar28 + 2;
        local_113c = uVar6;
      } while (piVar25 != (int *)0x0);
    }
    uVar18 = 1;
LAB_0026060b:
    if (param_4 != (uint *)0x0) {
      *param_4 = local_113c;
    }
    uVar26 = local_113c + 1;
    if (local_113c >> 1 == local_113c + 1 >> 1) {
      uVar26 = local_113c;
    }
    uVar31 = TellBlob(param_1);
    SeekBlob(param_1,uVar30,0,uVar31);
    if (*(short *)(param_3 + 0x1e) == 1) {
      WriteBlobLong(param_1,uVar26);
    }
    else {
      WriteBlobLongLong(param_1,uVar26,0);
    }
    SeekBlob(param_1,uVar31,0);
    RelinquishMagickMemory(puVar7);
    for (; piVar4 != (int *)0x0; piVar4 = (int *)GetNextImageInList(piVar4)) {
      iVar10 = GetImageArtifact(piVar4,"psd:opacity-mask");
      if (iVar10 != 0) {
        DeleteImageRegistry(iVar10);
      }
    }
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0029eab0();
  }
  return uVar18;
}

