
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": 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 */

size_t InterpretImageFilename
                 (ImageInfo *image_info,Image *image,char *format,int value,char *filename,
                 ExceptionInfo *exception)

{
  char *__nptr;
  char cVar1;
  long lVar2;
  bool bVar3;
  char cVar4;
  int iVar5;
  char *format_00;
  char *pcVar6;
  char *pcVar7;
  long lVar8;
  ulong uVar9;
  long lVar10;
  char *pcVar11;
  long in_FS_OFFSET;
  byte bVar12;
  long local_1098;
  long local_1090;
  char *q;
  char pattern [4096];
  
  bVar12 = 0;
  lVar2 = *(long *)(in_FS_OFFSET + 0x28);
  CopyMagickString(filename,format,0x1000);
  format_00 = strchr(format,0x25);
  if (format_00 != (char *)0x0) {
    local_1090 = 0;
    bVar3 = false;
    do {
      __nptr = format_00 + 1;
      q = __nptr;
      if (format_00[1] == '%') {
        format_00 = format_00 + 2;
        goto LAB_0021b8da;
      }
      local_1098 = 0;
      if (format_00[1] == '0') {
        local_1098 = strtol(__nptr,&q,10);
      }
      pcVar7 = q;
      cVar4 = *q;
      if (cVar4 == 'd') {
LAB_0021b85d:
        cVar4 = q[1];
        q[1] = '\0';
        q = q + 1;
        FormatLocaleString(filename + (long)(format_00 + (-local_1090 - (long)format)),
                           0x1000 - (long)(format_00 + (-local_1090 - (long)format)),format_00,
                           (ulong)(uint)value);
        local_1090 = (local_1090 - local_1098) + 4;
        *q = cVar4;
        ConcatenateMagickString(filename,q,0x1000);
        if (q[-1] == '%') {
          format_00 = __nptr;
        }
        bVar3 = true;
      }
      else if (cVar4 < 'e') {
        if ((cVar4 == '[') && (pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0)) {
          pcVar6 = pcVar7 + 1;
          cVar4 = pcVar7[1];
          if (cVar4 == '\0') {
            lVar8 = 0;
          }
          else {
            lVar10 = 1;
            lVar8 = 0;
            while( true ) {
              if (cVar4 == '[') {
                lVar10 = lVar10 + 1;
              }
              else {
                lVar10 = lVar10 - (ulong)(cVar4 == ']');
              }
              if (lVar10 < 1) break;
              pcVar6 = pcVar6 + 1;
              pattern[lVar8] = cVar4;
              lVar8 = lVar8 + 1;
              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;
            }
          }
          pattern[lVar8] = '\0';
          iVar5 = LocaleNCompare(pattern,"filename:",9);
          if (iVar5 == 0) {
            if (image == (Image *)0x0) {
              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;
            }
            else {
              pcVar7 = GetImageProperty(image,pattern,exception);
              if (((pcVar7 == (char *)0x0) &&
                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&
                 (image_info != (ImageInfo *)0x0)) {
LAB_0021bace:
                pcVar7 = GetImageOption(image_info,pattern);
              }
              if (pcVar7 != (char *)0x0) {
                cVar4 = q[-1];
                q[-1] = '\0';
                q = q + -1;
                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,
                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));
                lVar8 = -1;
                pcVar11 = pattern;
                do {
                  if (lVar8 == 0) break;
                  lVar8 = lVar8 + -1;
                  cVar1 = *pcVar11;
                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;
                } while (cVar1 != '\0');
                lVar10 = -1;
                do {
                  if (lVar10 == 0) break;
                  lVar10 = lVar10 + -1;
                  cVar1 = *pcVar7;
                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;
                } while (cVar1 != '\0');
                local_1090 = (local_1090 - lVar8) + 3 + lVar10;
                *q = cVar4;
                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);
                if (q[-1] == '%') {
                  format_00 = __nptr;
                }
                bVar3 = true;
              }
            }
          }
        }
      }
      else if ((cVar4 == 'o') || (cVar4 == 'x')) goto LAB_0021b85d;
LAB_0021b8da:
      format_00 = strchr(format_00 + 1,0x25);
    } while (format_00 != (char *)0x0);
    if (bVar3) {
      cVar4 = *filename;
      q = filename;
      while (cVar4 != '\0') {
        if ((cVar4 == '%') && (q[1] == '%')) {
          CopyMagickString(q,q + 1,0x1000 - ((long)q - (long)filename));
        }
        cVar4 = q[1];
        q = q + 1;
      }
      goto LAB_0021ba47;
    }
  }
  CopyMagickString(filename,format,0x1000);
LAB_0021ba47:
  uVar9 = 0xffffffffffffffff;
  do {
    if (uVar9 == 0) break;
    uVar9 = uVar9 - 1;
    cVar4 = *filename;
    filename = filename + (ulong)bVar12 * -2 + 1;
  } while (cVar4 != '\0');
  if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {
    return ~uVar9 - 1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



long InterpretImageFilename
               (long param_1,long param_2,char *param_3,undefined4 param_4,char *param_5,
               undefined8 param_6)

{
  char *__nptr;
  char cVar1;
  bool bVar2;
  char cVar3;
  int iVar4;
  char *__s;
  char *pcVar5;
  char *pcVar6;
  long lVar7;
  ulong uVar8;
  long lVar9;
  char *pcVar10;
  long in_FS_OFFSET;
  byte bVar11;
  long local_1098;
  long local_1090;
  char *local_1050;
  char local_1048 [4104];
  long local_40;
  
  bVar11 = 0;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  CopyMagickString(param_5,param_3,0x1000);
  __s = strchr(param_3,0x25);
  if (__s != (char *)0x0) {
    local_1090 = 0;
    bVar2 = false;
    do {
      __nptr = __s + 1;
      local_1050 = __nptr;
      if (__s[1] == '%') {
        __s = __s + 2;
        goto LAB_0021b8da;
      }
      local_1098 = 0;
      if (__s[1] == '0') {
        local_1098 = strtol(__nptr,&local_1050,10);
      }
      pcVar6 = local_1050;
      cVar3 = *local_1050;
      if (cVar3 == 'd') {
LAB_0021b85d:
        cVar3 = local_1050[1];
        local_1050[1] = '\0';
        local_1050 = local_1050 + 1;
        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),
                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);
        local_1090 = (local_1090 - local_1098) + 4;
        *local_1050 = cVar3;
        ConcatenateMagickString(param_5,local_1050,0x1000);
        if (local_1050[-1] == '%') {
          __s = __nptr;
        }
        bVar2 = true;
      }
      else if (cVar3 < 'e') {
        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {
          pcVar5 = pcVar6 + 1;
          cVar3 = pcVar6[1];
          if (cVar3 == '\0') {
            lVar7 = 0;
          }
          else {
            lVar9 = 1;
            lVar7 = 0;
            while( true ) {
              if (cVar3 == '[') {
                lVar9 = lVar9 + 1;
              }
              else {
                lVar9 = lVar9 - (ulong)(cVar3 == ']');
              }
              if (lVar9 < 1) break;
              pcVar5 = pcVar5 + 1;
              local_1048[lVar7] = cVar3;
              lVar7 = lVar7 + 1;
              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;
            }
          }
          local_1048[lVar7] = '\0';
          iVar4 = LocaleNCompare(local_1048,"filename:",9);
          if (iVar4 == 0) {
            if (param_2 == 0) {
              if (param_1 != 0) goto LAB_0021bace;
            }
            else {
              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);
              if (((pcVar6 == (char *)0x0) &&
                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&
                 (param_1 != 0)) {
LAB_0021bace:
                pcVar6 = (char *)GetImageOption(param_1,local_1048);
              }
              if (pcVar6 != (char *)0x0) {
                cVar3 = local_1050[-1];
                local_1050[-1] = '\0';
                local_1050 = local_1050 + -1;
                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,
                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));
                lVar7 = -1;
                pcVar10 = local_1048;
                do {
                  if (lVar7 == 0) break;
                  lVar7 = lVar7 + -1;
                  cVar1 = *pcVar10;
                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;
                } while (cVar1 != '\0');
                lVar9 = -1;
                do {
                  if (lVar9 == 0) break;
                  lVar9 = lVar9 + -1;
                  cVar1 = *pcVar6;
                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;
                } while (cVar1 != '\0');
                local_1090 = (local_1090 - lVar7) + 3 + lVar9;
                *local_1050 = cVar3;
                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);
                if (local_1050[-1] == '%') {
                  __s = __nptr;
                }
                bVar2 = true;
              }
            }
          }
        }
      }
      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;
LAB_0021b8da:
      __s = strchr(__s + 1,0x25);
    } while (__s != (char *)0x0);
    if (bVar2) {
      cVar3 = *param_5;
      local_1050 = param_5;
      while (cVar3 != '\0') {
        if ((cVar3 == '%') && (local_1050[1] == '%')) {
          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));
        }
        cVar3 = local_1050[1];
        local_1050 = local_1050 + 1;
      }
      goto LAB_0021ba47;
    }
  }
  CopyMagickString(param_5,param_3,0x1000);
LAB_0021ba47:
  uVar8 = 0xffffffffffffffff;
  do {
    if (uVar8 == 0) break;
    uVar8 = uVar8 - 1;
    cVar3 = *param_5;
    param_5 = param_5 + (ulong)bVar11 * -2 + 1;
  } while (cVar3 != '\0');
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return ~uVar8 - 1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x1068
MOV qword ptr [RSP + 0x30],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV RBX,RDX
MOV qword ptr [RSP + 0x10],RDX
MOV dword ptr [RSP + 0x1c],ECX
MOV R15,R8
MOV qword ptr [RSP + 0x38],R9
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x1058],RAX
XOR EAX,EAX
MOV EDX,0x1000
MOV RSI,RBX
MOV RDI,R8
CALL 0x0014a0b0
MOV ESI,0x25
MOV RDI,RBX
CALL 0x0014bfc0
TEST RAX,RAX
JZ 0x0021ba35
MOV RBX,RAX
MOV qword ptr [RSP + 0x8],0x0
MOV dword ptr [RSP + 0x18],0x0
LEA R14,[RSP + 0x50]
LEA RAX,[RSP + 0x48]
MOV qword ptr [RSP + 0x20],RAX
JMP 0x0021b8f4
ADD RBX,0x2
JMP 0x0021b8da
MOV EDX,0xa
MOV RSI,qword ptr [RSP + 0x20]
MOV RDI,R12
CALL 0x0014bbc0
MOV qword ptr [RSP],RAX
JMP 0x0021b919
CMP AL,0x6f
JZ 0x0021b85d
CMP AL,0x78
JNZ 0x0021b8da
LEA RAX,[RBP + 0x1]
MOV qword ptr [RSP + 0x48],RAX
MOVZX R13D,byte ptr [RBP + 0x1]
MOV byte ptr [RBP + 0x1],0x0
MOV RDI,RBX
SUB RDI,qword ptr [RSP + 0x10]
MOV RBP,qword ptr [RSP + 0x8]
SUB RDI,RBP
MOV ESI,0x1000
SUB RSI,RDI
ADD RDI,R15
MOV ECX,dword ptr [RSP + 0x1c]
MOV RDX,RBX
MOV EAX,0x0
CALL 0x0014d3c0
MOV RAX,RBP
SUB RAX,qword ptr [RSP]
LEA RAX,[RAX + 0x4]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x48]
MOV byte ptr [RAX],R13B
MOV EDX,0x1000
MOV RSI,qword ptr [RSP + 0x48]
MOV RDI,R15
CALL 0x00149ee0
MOV RAX,qword ptr [RSP + 0x48]
CMP byte ptr [RAX + -0x1],0x25
CMOVZ RBX,R12
MOV dword ptr [RSP + 0x18],0x1
LEA RDI,[RBX + 0x1]
MOV ESI,0x25
CALL 0x0014bfc0
MOV RBX,RAX
TEST RAX,RAX
JZ 0x0021ba17
LEA R12,[RBX + 0x1]
MOV qword ptr [RSP + 0x48],R12
MOVZX EAX,byte ptr [RBX + 0x1]
CMP AL,0x25
JZ 0x0021b831
MOV qword ptr [RSP],0x0
CMP AL,0x30
JZ 0x0021b83a
MOV RBP,qword ptr [RSP + 0x48]
MOVZX EAX,byte ptr [RBP]
CMP AL,0x64
JZ 0x0021b85d
CMP AL,0x64
JG 0x0021b855
CMP AL,0x5b
JNZ 0x0021b8da
MOV ESI,0x5d
MOV RDI,RBX
CALL 0x0014bfc0
TEST RAX,RAX
JZ 0x0021b8da
LEA R13,[RBP + 0x1]
MOVZX EAX,byte ptr [RBP + 0x1]
TEST AL,AL
JZ 0x0021b99d
ADD RBP,0x1000
MOV EDX,0x1
MOV ECX,0x0
JMP 0x0021b98a
ADD RDX,0x1
TEST RDX,RDX
JLE 0x0021b9a2
ADD R13,0x1
MOV byte ptr [RCX + R14*0x1],AL
ADD RCX,0x1
CMP R13,RBP
JZ 0x0021b9a2
MOVZX EAX,byte ptr [R13]
TEST AL,AL
JZ 0x0021b9a2
CMP AL,0x5b
JZ 0x0021b967
CMP AL,0x5d
SETZ SIL
MOVZX ESI,SIL
SUB RDX,RSI
JMP 0x0021b96b
MOV ECX,0x0
MOV byte ptr [RSP + RCX*0x1 + 0x50],0x0
MOV EDX,0x9
LEA RSI,[0x4368d4]
MOV RDI,R14
CALL 0x0014aab0
TEST EAX,EAX
JNZ 0x0021b8da
MOV RAX,qword ptr [RSP + 0x28]
TEST RAX,RAX
JZ 0x0021bac2
MOV RDX,qword ptr [RSP + 0x38]
MOV RSI,R14
MOV RDI,RAX
CALL 0x0014b410
MOV RBP,RAX
TEST RAX,RAX
JNZ 0x0021bade
MOV RSI,R14
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x0014b0c0
MOV RBP,RAX
TEST RAX,RAX
JNZ 0x0021bade
CMP qword ptr [RSP + 0x30],0x0
JNZ 0x0021bace
JMP 0x0021bade
CMP dword ptr [RSP + 0x18],0x0
JZ 0x0021ba35
MOV qword ptr [RSP + 0x48],R15
MOVZX EAX,byte ptr [R15]
TEST AL,AL
JZ 0x0021ba47
MOV RDI,R15
MOV EBX,0x1000
JMP 0x0021baa1
MOV EDX,0x1000
MOV RSI,qword ptr [RSP + 0x10]
MOV RDI,R15
CALL 0x0014a0b0
MOV RCX,-0x1
MOV EAX,0x0
MOV RDI,R15
SCASB.REPNE RDI
MOV RAX,RCX
NOT RAX
SUB RAX,0x1
MOV RDX,qword ptr [RSP + 0x1058]
XOR RDX,qword ptr FS:[0x28]
JNZ 0x0021bb88
ADD RSP,0x1068
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV RAX,qword ptr [RSP + 0x48]
LEA RDI,[RAX + 0x1]
MOV qword ptr [RSP + 0x48],RDI
MOVZX EAX,byte ptr [RAX + 0x1]
TEST AL,AL
JZ 0x0021ba47
CMP AL,0x25
JNZ 0x0021ba8b
CMP byte ptr [RDI + 0x1],0x25
JNZ 0x0021ba8b
MOV RAX,RDI
SUB RAX,R15
MOV RDX,RBX
SUB RDX,RAX
LEA RSI,[RDI + 0x1]
CALL 0x0014a0b0
JMP 0x0021ba8b
CMP qword ptr [RSP + 0x30],0x0
JZ 0x0021b8da
MOV RSI,R14
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x0014c0a0
MOV RBP,RAX
TEST RBP,RBP
JZ 0x0021b8da
MOV RAX,qword ptr [RSP + 0x48]
LEA RDX,[RAX + -0x1]
MOV qword ptr [RSP + 0x48],RDX
MOVZX ECX,byte ptr [RAX + -0x1]
MOV byte ptr [RSP],CL
MOV byte ptr [RAX + -0x1],0x0
MOV RDI,RBX
SUB RDI,qword ptr [RSP + 0x10]
SUB RDI,qword ptr [RSP + 0x8]
MOV EDX,0x1000
SUB RDX,RDI
ADD RDI,R15
MOV RSI,RBP
CALL 0x0014a0b0
MOV EAX,0x0
MOV RCX,-0x1
MOV RDI,R14
SCASB.REPNE RDI
MOV RDX,RCX
MOV RCX,-0x1
MOV RDI,RBP
SCASB.REPNE RDI
MOV RAX,qword ptr [RSP + 0x8]
SUB RAX,RDX
LEA RAX,[RAX + RCX*0x1 + 0x3]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x48]
MOVZX ECX,byte ptr [RSP]
MOV byte ptr [RAX],CL
LEA RSI,[R13 + 0x1]
MOV EDX,0x1000
MOV RDI,R15
CALL 0x00149ee0
MOV RAX,qword ptr [RSP + 0x48]
CMP byte ptr [RAX + -0x1],0x25
CMOVZ RBX,R12
MOV dword ptr [RSP + 0x18],0x1
JMP 0x0021b8da
CALL 0x0014c5c0
(translation_unit "long InterpretImageFilename\n               (long param_1,long param_2,char *param_3,undefined4 param_4,char *param_5,\n               undefined8 param_6)\n\n{\n  char *__nptr;\n  char cVar1;\n  bool bVar2;\n  char cVar3;\n  int iVar4;\n  char *__s;\n  char *pcVar5;\n  char *pcVar6;\n  long lVar7;\n  ulong uVar8;\n  long lVar9;\n  char *pcVar10;\n  long in_FS_OFFSET;\n  byte bVar11;\n  long local_1098;\n  long local_1090;\n  char *local_1050;\n  char local_1048 [4104];\n  long local_40;\n  \n  bVar11 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  CopyMagickString(param_5,param_3,0x1000);\n  __s = strchr(param_3,0x25);\n  if (__s != (char *)0x0) {\n    local_1090 = 0;\n    bVar2 = false;\n    do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);\n    if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }\n  CopyMagickString(param_5,param_3,0x1000);\nLAB_0021ba47:\n  uVar8 = 0xffffffffffffffff;\n  do {\n    if (uVar8 == 0) break;\n    uVar8 = uVar8 - 1;\n    cVar3 = *param_5;\n    param_5 = param_5 + (ulong)bVar11 * -2 + 1;\n  } while (cVar3 != '\0');\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return ~uVar8 - 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "long InterpretImageFilename\n               (long param_1,long param_2,char *param_3,undefined4 param_4,char *param_5,\n               undefined8 param_6)\n\n{\n  char *__nptr;\n  char cVar1;\n  bool bVar2;\n  char cVar3;\n  int iVar4;\n  char *__s;\n  char *pcVar5;\n  char *pcVar6;\n  long lVar7;\n  ulong uVar8;\n  long lVar9;\n  char *pcVar10;\n  long in_FS_OFFSET;\n  byte bVar11;\n  long local_1098;\n  long local_1090;\n  char *local_1050;\n  char local_1048 [4104];\n  long local_40;\n  \n  bVar11 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  CopyMagickString(param_5,param_3,0x1000);\n  __s = strchr(param_3,0x25);\n  if (__s != (char *)0x0) {\n    local_1090 = 0;\n    bVar2 = false;\n    do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);\n    if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }\n  CopyMagickString(param_5,param_3,0x1000);\nLAB_0021ba47:\n  uVar8 = 0xffffffffffffffff;\n  do {\n    if (uVar8 == 0) break;\n    uVar8 = uVar8 - 1;\n    cVar3 = *param_5;\n    param_5 = param_5 + (ulong)bVar11 * -2 + 1;\n  } while (cVar3 != '\0');\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return ~uVar8 - 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" (sized_type_specifier "long" long) (function_declarator "InterpretImageFilename\n               (long param_1,long param_2,char *param_3,undefined4 param_4,char *param_5,\n               undefined8 param_6)" identifier (parameter_list "(long param_1,long param_2,char *param_3,undefined4 param_4,char *param_5,\n               undefined8 param_6)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "char *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined8 param_6" type_identifier identifier) ))) (compound_statement "{\n  char *__nptr;\n  char cVar1;\n  bool bVar2;\n  char cVar3;\n  int iVar4;\n  char *__s;\n  char *pcVar5;\n  char *pcVar6;\n  long lVar7;\n  ulong uVar8;\n  long lVar9;\n  char *pcVar10;\n  long in_FS_OFFSET;\n  byte bVar11;\n  long local_1098;\n  long local_1090;\n  char *local_1050;\n  char local_1048 [4104];\n  long local_40;\n  \n  bVar11 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  CopyMagickString(param_5,param_3,0x1000);\n  __s = strchr(param_3,0x25);\n  if (__s != (char *)0x0) {\n    local_1090 = 0;\n    bVar2 = false;\n    do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);\n    if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }\n  CopyMagickString(param_5,param_3,0x1000);\nLAB_0021ba47:\n  uVar8 = 0xffffffffffffffff;\n  do {\n    if (uVar8 == 0) break;\n    uVar8 = uVar8 - 1;\n    cVar3 = *param_5;\n    param_5 = param_5 + (ulong)bVar11 * -2 + 1;\n  } while (cVar3 != '\0');\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return ~uVar8 - 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "char *__nptr;" primitive_type (pointer_declarator "*__nptr" * identifier) ;) (declaration "char cVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar11;" type_identifier identifier ;) (declaration "long local_1098;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_1090;" (sized_type_specifier "long" long) identifier ;) (declaration "char *local_1050;" primitive_type (pointer_declarator "*local_1050" * identifier) ;) (declaration "char local_1048 [4104];" primitive_type (array_declarator "local_1048 [4104]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar11 = 0;" (assignment_expression "bVar11 = 0" identifier = number_literal) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "CopyMagickString(param_5,param_3,0x1000);" (call_expression "CopyMagickString(param_5,param_3,0x1000)" identifier (argument_list "(param_5,param_3,0x1000)" ( identifier , identifier , number_literal ))) ;) (expression_statement "__s = strchr(param_3,0x25);" (assignment_expression "__s = strchr(param_3,0x25)" identifier = (call_expression "strchr(param_3,0x25)" identifier (argument_list "(param_3,0x25)" ( identifier , number_literal )))) ;) (if_statement "if (__s != (char *)0x0) {\n    local_1090 = 0;\n    bVar2 = false;\n    do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);\n    if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_1090 = 0;\n    bVar2 = false;\n    do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);\n    if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }" { (expression_statement "local_1090 = 0;" (assignment_expression "local_1090 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (do_statement "do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);" do (compound_statement "{\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    }" { (expression_statement "__nptr = __s + 1;" (assignment_expression "__nptr = __s + 1" identifier = (binary_expression "__s + 1" identifier + number_literal)) ;) (expression_statement "local_1050 = __nptr;" (assignment_expression "local_1050 = __nptr" identifier = identifier) ;) (if_statement "if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }" if (parenthesized_expression "(__s[1] == '%')" ( (binary_expression "__s[1] == '%'" (subscript_expression "__s[1]" identifier [ number_literal ]) == (char_literal "'%'" ' character ')) )) (compound_statement "{\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }" { (expression_statement "__s = __s + 2;" (assignment_expression "__s = __s + 2" identifier = (binary_expression "__s + 2" identifier + number_literal)) ;) (goto_statement "goto LAB_0021b8da;" goto statement_identifier ;) })) (expression_statement "local_1098 = 0;" (assignment_expression "local_1098 = 0" identifier = number_literal) ;) (if_statement "if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }" if (parenthesized_expression "(__s[1] == '0')" ( (binary_expression "__s[1] == '0'" (subscript_expression "__s[1]" identifier [ number_literal ]) == (char_literal "'0'" ' character ')) )) (compound_statement "{\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }" { (expression_statement "local_1098 = strtol(__nptr,&local_1050,10);" (assignment_expression "local_1098 = strtol(__nptr,&local_1050,10)" identifier = (call_expression "strtol(__nptr,&local_1050,10)" identifier (argument_list "(__nptr,&local_1050,10)" ( identifier , (pointer_expression "&local_1050" & identifier) , number_literal )))) ;) })) (expression_statement "pcVar6 = local_1050;" (assignment_expression "pcVar6 = local_1050" identifier = identifier) ;) (expression_statement "cVar3 = *local_1050;" (assignment_expression "cVar3 = *local_1050" identifier = (pointer_expression "*local_1050" * identifier)) ;) (if_statement "if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;" if (parenthesized_expression "(cVar3 == 'd')" ( (binary_expression "cVar3 == 'd'" identifier == (char_literal "'d'" ' character ')) )) (compound_statement "{\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }" { (labeled_statement "LAB_0021b85d:\n        cVar3 = local_1050[1];" statement_identifier : (expression_statement "cVar3 = local_1050[1];" (assignment_expression "cVar3 = local_1050[1]" identifier = (subscript_expression "local_1050[1]" identifier [ number_literal ])) ;)) (expression_statement "local_1050[1] = '\0';" (assignment_expression "local_1050[1] = '\0'" (subscript_expression "local_1050[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_1050 = local_1050 + 1;" (assignment_expression "local_1050 = local_1050 + 1" identifier = (binary_expression "local_1050 + 1" identifier + number_literal)) ;) (expression_statement "FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);" (call_expression "FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4)" identifier (argument_list "(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4)" ( (binary_expression "param_5 + (long)(__s + (-local_1090 - (long)param_3))" identifier + (cast_expression "(long)(__s + (-local_1090 - (long)param_3))" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(__s + (-local_1090 - (long)param_3))" ( (binary_expression "__s + (-local_1090 - (long)param_3)" identifier + (parenthesized_expression "(-local_1090 - (long)param_3)" ( (binary_expression "-local_1090 - (long)param_3" (unary_expression "-local_1090" - identifier) - (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) )))) , (binary_expression "0x1000 - (long)(__s + (-local_1090 - (long)param_3))" number_literal - (cast_expression "(long)(__s + (-local_1090 - (long)param_3))" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(__s + (-local_1090 - (long)param_3))" ( (binary_expression "__s + (-local_1090 - (long)param_3)" identifier + (parenthesized_expression "(-local_1090 - (long)param_3)" ( (binary_expression "-local_1090 - (long)param_3" (unary_expression "-local_1090" - identifier) - (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) )))) , identifier , identifier ))) ;) (expression_statement "local_1090 = (local_1090 - local_1098) + 4;" (assignment_expression "local_1090 = (local_1090 - local_1098) + 4" identifier = (binary_expression "(local_1090 - local_1098) + 4" (parenthesized_expression "(local_1090 - local_1098)" ( (binary_expression "local_1090 - local_1098" identifier - identifier) )) + number_literal)) ;) (expression_statement "*local_1050 = cVar3;" (assignment_expression "*local_1050 = cVar3" (pointer_expression "*local_1050" * identifier) = identifier) ;) (expression_statement "ConcatenateMagickString(param_5,local_1050,0x1000);" (call_expression "ConcatenateMagickString(param_5,local_1050,0x1000)" identifier (argument_list "(param_5,local_1050,0x1000)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }" if (parenthesized_expression "(local_1050[-1] == '%')" ( (binary_expression "local_1050[-1] == '%'" (subscript_expression "local_1050[-1]" identifier [ number_literal ]) == (char_literal "'%'" ' character ')) )) (compound_statement "{\n          __s = __nptr;\n        }" { (expression_statement "__s = __nptr;" (assignment_expression "__s = __nptr" identifier = identifier) ;) })) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) }) (else_clause "else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;" else (if_statement "if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;" if (parenthesized_expression "(cVar3 < 'e')" ( (binary_expression "cVar3 < 'e'" identifier < (char_literal "'e'" ' character ')) )) (compound_statement "{\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }" { (if_statement "if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }" if (parenthesized_expression "((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0))" ( (binary_expression "(cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)" (parenthesized_expression "(cVar3 == '[')" ( (binary_expression "cVar3 == '['" identifier == (char_literal "'['" ' character ')) )) && (parenthesized_expression "(pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)" ( (comma_expression "pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0" (assignment_expression "pcVar5 = strchr(__s,0x5d)" identifier = (call_expression "strchr(__s,0x5d)" identifier (argument_list "(__s,0x5d)" ( identifier , number_literal )))) , (binary_expression "pcVar5 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }" { (expression_statement "pcVar5 = pcVar6 + 1;" (assignment_expression "pcVar5 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (expression_statement "cVar3 = pcVar6[1];" (assignment_expression "cVar3 = pcVar6[1]" identifier = (subscript_expression "pcVar6[1]" identifier [ number_literal ])) ;) (if_statement "if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            lVar7 = 0;\n          }" { (expression_statement "lVar7 = 0;" (assignment_expression "lVar7 = 0" identifier = number_literal) ;) }) (else_clause "else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }" else (compound_statement "{\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }" { (expression_statement "lVar9 = 1;" (assignment_expression "lVar9 = 1" identifier = number_literal) ;) (expression_statement "lVar7 = 0;" (assignment_expression "lVar7 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }" { (if_statement "if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }" if (parenthesized_expression "(cVar3 == '[')" ( (binary_expression "cVar3 == '['" identifier == (char_literal "'['" ' character ')) )) (compound_statement "{\n                lVar9 = lVar9 + 1;\n              }" { (expression_statement "lVar9 = lVar9 + 1;" (assignment_expression "lVar9 = lVar9 + 1" identifier = (binary_expression "lVar9 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }" else (compound_statement "{\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }" { (expression_statement "lVar9 = lVar9 - (ulong)(cVar3 == ']');" (assignment_expression "lVar9 = lVar9 - (ulong)(cVar3 == ']')" identifier = (binary_expression "lVar9 - (ulong)(cVar3 == ']')" identifier - (call_expression "(ulong)(cVar3 == ']')" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(cVar3 == ']')" ( (binary_expression "cVar3 == ']'" identifier == (char_literal "']'" ' character ')) ))))) ;) }))) (if_statement "if (lVar9 < 1) break;" if (parenthesized_expression "(lVar9 < 1)" ( (binary_expression "lVar9 < 1" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "local_1048[lVar7] = cVar3;" (assignment_expression "local_1048[lVar7] = cVar3" (subscript_expression "local_1048[lVar7]" identifier [ identifier ]) = identifier) ;) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" identifier = (binary_expression "lVar7 + 1" identifier + number_literal)) ;) (if_statement "if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;" if (parenthesized_expression "((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0'))" ( (binary_expression "(pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')" (parenthesized_expression "(pcVar5 == pcVar6 + 0x1000)" ( (binary_expression "pcVar5 == pcVar6 + 0x1000" identifier == (binary_expression "pcVar6 + 0x1000" identifier + number_literal)) )) || (parenthesized_expression "(cVar3 = *pcVar5, cVar3 == '\0')" ( (comma_expression "cVar3 = *pcVar5, cVar3 == '\0'" (assignment_expression "cVar3 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) , (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (break_statement "break;" break ;)) })) }))) (expression_statement "local_1048[lVar7] = '\0';" (assignment_expression "local_1048[lVar7] = '\0'" (subscript_expression "local_1048[lVar7]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar4 = LocaleNCompare(local_1048,"filename:",9);" (assignment_expression "iVar4 = LocaleNCompare(local_1048,"filename:",9)" identifier = (call_expression "LocaleNCompare(local_1048,"filename:",9)" identifier (argument_list "(local_1048,"filename:",9)" ( identifier , (string_literal ""filename:"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }" { (if_statement "if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n              if (param_1 != 0) goto LAB_0021bace;\n            }" { (if_statement "if (param_1 != 0) goto LAB_0021bace;" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0021bace;" goto statement_identifier ;)) }) (else_clause "else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }" else (compound_statement "{\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }" { (expression_statement "pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);" (assignment_expression "pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6)" identifier = (cast_expression "(char *)GetImageProperty(param_2,local_1048,param_6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageProperty(param_2,local_1048,param_6)" identifier (argument_list "(param_2,local_1048,param_6)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }" if (parenthesized_expression "(((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0))" ( (binary_expression "((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)" (parenthesized_expression "((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0))" ( (binary_expression "(pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)" (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)" ( (comma_expression "pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0" (assignment_expression "pcVar6 = (char *)GetImageArtifact(param_2,local_1048)" identifier = (cast_expression "(char *)GetImageArtifact(param_2,local_1048)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageArtifact(param_2,local_1048)" identifier (argument_list "(param_2,local_1048)" ( identifier , identifier ))))) , (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) ))) )) (compound_statement "{\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }" { (labeled_statement "LAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);" statement_identifier : (expression_statement "pcVar6 = (char *)GetImageOption(param_1,local_1048);" (assignment_expression "pcVar6 = (char *)GetImageOption(param_1,local_1048)" identifier = (cast_expression "(char *)GetImageOption(param_1,local_1048)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageOption(param_1,local_1048)" identifier (argument_list "(param_1,local_1048)" ( identifier , identifier ))))) ;)) })) (if_statement "if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }" if (parenthesized_expression "(pcVar6 != (char *)0x0)" ( (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }" { (expression_statement "cVar3 = local_1050[-1];" (assignment_expression "cVar3 = local_1050[-1]" identifier = (subscript_expression "local_1050[-1]" identifier [ number_literal ])) ;) (expression_statement "local_1050[-1] = '\0';" (assignment_expression "local_1050[-1] = '\0'" (subscript_expression "local_1050[-1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_1050 = local_1050 + -1;" (assignment_expression "local_1050 = local_1050 + -1" identifier = (binary_expression "local_1050 + -1" identifier + number_literal)) ;) (expression_statement "CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));" (call_expression "CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)))" identifier (argument_list "(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)))" ( (binary_expression "param_5 + (long)(__s + (-local_1090 - (long)param_3))" identifier + (cast_expression "(long)(__s + (-local_1090 - (long)param_3))" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(__s + (-local_1090 - (long)param_3))" ( (binary_expression "__s + (-local_1090 - (long)param_3)" identifier + (parenthesized_expression "(-local_1090 - (long)param_3)" ( (binary_expression "-local_1090 - (long)param_3" (unary_expression "-local_1090" - identifier) - (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) )))) , identifier , (binary_expression "0x1000 - (long)(__s + (-local_1090 - (long)param_3))" number_literal - (cast_expression "(long)(__s + (-local_1090 - (long)param_3))" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(__s + (-local_1090 - (long)param_3))" ( (binary_expression "__s + (-local_1090 - (long)param_3)" identifier + (parenthesized_expression "(-local_1090 - (long)param_3)" ( (binary_expression "-local_1090 - (long)param_3" (unary_expression "-local_1090" - identifier) - (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) )))) ))) ;) (expression_statement "lVar7 = -1;" (assignment_expression "lVar7 = -1" identifier = number_literal) ;) (expression_statement "pcVar10 = local_1048;" (assignment_expression "pcVar10 = local_1048" identifier = identifier) ;) (do_statement "do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');" do (compound_statement "{\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                }" { (if_statement "if (lVar7 == 0) break;" if (parenthesized_expression "(lVar7 == 0)" ( (binary_expression "lVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar7 = lVar7 + -1;" (assignment_expression "lVar7 = lVar7 + -1" identifier = (binary_expression "lVar7 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar10;" (assignment_expression "cVar1 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) (expression_statement "pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;" (assignment_expression "pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1" identifier = (binary_expression "pcVar10 + (ulong)bVar11 * -2 + 1" (binary_expression "pcVar10 + (ulong)bVar11 * -2" identifier + (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "lVar9 = -1;" (assignment_expression "lVar9 = -1" identifier = number_literal) ;) (do_statement "do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');" do (compound_statement "{\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                }" { (if_statement "if (lVar9 == 0) break;" if (parenthesized_expression "(lVar9 == 0)" ( (binary_expression "lVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar9 = lVar9 + -1;" (assignment_expression "lVar9 = lVar9 + -1" identifier = (binary_expression "lVar9 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar6;" (assignment_expression "cVar1 = *pcVar6" identifier = (pointer_expression "*pcVar6" * identifier)) ;) (expression_statement "pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;" (assignment_expression "pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1" identifier = (binary_expression "pcVar6 + (ulong)bVar11 * -2 + 1" (binary_expression "pcVar6 + (ulong)bVar11 * -2" identifier + (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "local_1090 = (local_1090 - lVar7) + 3 + lVar9;" (assignment_expression "local_1090 = (local_1090 - lVar7) + 3 + lVar9" identifier = (binary_expression "(local_1090 - lVar7) + 3 + lVar9" (binary_expression "(local_1090 - lVar7) + 3" (parenthesized_expression "(local_1090 - lVar7)" ( (binary_expression "local_1090 - lVar7" identifier - identifier) )) + number_literal) + identifier)) ;) (expression_statement "*local_1050 = cVar3;" (assignment_expression "*local_1050 = cVar3" (pointer_expression "*local_1050" * identifier) = identifier) ;) (expression_statement "ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);" (call_expression "ConcatenateMagickString(param_5,pcVar5 + 1,0x1000)" identifier (argument_list "(param_5,pcVar5 + 1,0x1000)" ( identifier , (binary_expression "pcVar5 + 1" identifier + number_literal) , number_literal ))) ;) (if_statement "if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }" if (parenthesized_expression "(local_1050[-1] == '%')" ( (binary_expression "local_1050[-1] == '%'" (subscript_expression "local_1050[-1]" identifier [ number_literal ]) == (char_literal "'%'" ' character ')) )) (compound_statement "{\n                  __s = __nptr;\n                }" { (expression_statement "__s = __nptr;" (assignment_expression "__s = __nptr" identifier = identifier) ;) })) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) })) }))) })) })) }) (else_clause "else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;" else (if_statement "if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;" if (parenthesized_expression "((cVar3 == 'o') || (cVar3 == 'x'))" ( (binary_expression "(cVar3 == 'o') || (cVar3 == 'x')" (parenthesized_expression "(cVar3 == 'o')" ( (binary_expression "cVar3 == 'o'" identifier == (char_literal "'o'" ' character ')) )) || (parenthesized_expression "(cVar3 == 'x')" ( (binary_expression "cVar3 == 'x'" identifier == (char_literal "'x'" ' character ')) ))) )) (goto_statement "goto LAB_0021b85d;" goto statement_identifier ;)))))) (labeled_statement "LAB_0021b8da:\n      __s = strchr(__s + 1,0x25);" statement_identifier : (expression_statement "__s = strchr(__s + 1,0x25);" (assignment_expression "__s = strchr(__s + 1,0x25)" identifier = (call_expression "strchr(__s + 1,0x25)" identifier (argument_list "(__s + 1,0x25)" ( (binary_expression "__s + 1" identifier + number_literal) , number_literal )))) ;)) }) while (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }" { (expression_statement "cVar3 = *param_5;" (assignment_expression "cVar3 = *param_5" identifier = (pointer_expression "*param_5" * identifier)) ;) (expression_statement "local_1050 = param_5;" (assignment_expression "local_1050 = param_5" identifier = identifier) ;) (while_statement "while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }" while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }" { (if_statement "if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }" if (parenthesized_expression "((cVar3 == '%') && (local_1050[1] == '%'))" ( (binary_expression "(cVar3 == '%') && (local_1050[1] == '%')" (parenthesized_expression "(cVar3 == '%')" ( (binary_expression "cVar3 == '%'" identifier == (char_literal "'%'" ' character ')) )) && (parenthesized_expression "(local_1050[1] == '%')" ( (binary_expression "local_1050[1] == '%'" (subscript_expression "local_1050[1]" identifier [ number_literal ]) == (char_literal "'%'" ' character ')) ))) )) (compound_statement "{\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }" { (expression_statement "CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));" (call_expression "CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5))" identifier (argument_list "(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5))" ( identifier , (binary_expression "local_1050 + 1" identifier + number_literal) , (binary_expression "0x1000 - ((long)local_1050 - (long)param_5)" number_literal - (parenthesized_expression "((long)local_1050 - (long)param_5)" ( (binary_expression "(long)local_1050 - (long)param_5" (cast_expression "(long)local_1050" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)param_5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) ))) ;) })) (expression_statement "cVar3 = local_1050[1];" (assignment_expression "cVar3 = local_1050[1]" identifier = (subscript_expression "local_1050[1]" identifier [ number_literal ])) ;) (expression_statement "local_1050 = local_1050 + 1;" (assignment_expression "local_1050 = local_1050 + 1" identifier = (binary_expression "local_1050 + 1" identifier + number_literal)) ;) })) (goto_statement "goto LAB_0021ba47;" goto statement_identifier ;) })) })) (expression_statement "CopyMagickString(param_5,param_3,0x1000);" (call_expression "CopyMagickString(param_5,param_3,0x1000)" identifier (argument_list "(param_5,param_3,0x1000)" ( identifier , identifier , number_literal ))) ;) (labeled_statement "LAB_0021ba47:\n  uVar8 = 0xffffffffffffffff;" statement_identifier : (expression_statement "uVar8 = 0xffffffffffffffff;" (assignment_expression "uVar8 = 0xffffffffffffffff" identifier = number_literal) ;)) (do_statement "do {\n    if (uVar8 == 0) break;\n    uVar8 = uVar8 - 1;\n    cVar3 = *param_5;\n    param_5 = param_5 + (ulong)bVar11 * -2 + 1;\n  } while (cVar3 != '\0');" do (compound_statement "{\n    if (uVar8 == 0) break;\n    uVar8 = uVar8 - 1;\n    cVar3 = *param_5;\n    param_5 = param_5 + (ulong)bVar11 * -2 + 1;\n  }" { (if_statement "if (uVar8 == 0) break;" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar8 = uVar8 - 1;" (assignment_expression "uVar8 = uVar8 - 1" identifier = (binary_expression "uVar8 - 1" identifier - number_literal)) ;) (expression_statement "cVar3 = *param_5;" (assignment_expression "cVar3 = *param_5" identifier = (pointer_expression "*param_5" * identifier)) ;) (expression_statement "param_5 = param_5 + (ulong)bVar11 * -2 + 1;" (assignment_expression "param_5 = param_5 + (ulong)bVar11 * -2 + 1" identifier = (binary_expression "param_5 + (ulong)bVar11 * -2 + 1" (binary_expression "param_5 + (ulong)bVar11 * -2" identifier + (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return ~uVar8 - 1;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return ~uVar8 - 1;\n  }" { (return_statement "return ~uVar8 - 1;" return (binary_expression "~uVar8 - 1" (unary_expression "~uVar8" ~ identifier) - number_literal) ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Enum "ChannelType": Some values do not have unique names */\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 "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n\nsize_t InterpretImageFilename\n                 (ImageInfo *image_info,Image *image,char *format,int value,char *filename,\n                 ExceptionInfo *exception)\n\n{\n  char *__nptr;\n  char cVar1;\n  long lVar2;\n  bool bVar3;\n  char cVar4;\n  int iVar5;\n  char *format_00;\n  char *pcVar6;\n  char *pcVar7;\n  long lVar8;\n  ulong uVar9;\n  long lVar10;\n  char *pcVar11;\n  long in_FS_OFFSET;\n  byte bVar12;\n  long local_1098;\n  long local_1090;\n  char *q;\n  char pattern [4096];\n  \n  bVar12 = 0;\n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  CopyMagickString(filename,format,0x1000);\n  format_00 = strchr(format,0x25);\n  if (format_00 != (char *)0x0) {\n    local_1090 = 0;\n    bVar3 = false;\n    do {\n      __nptr = format_00 + 1;\n      q = __nptr;\n      if (format_00[1] == '%') {\n        format_00 = format_00 + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (format_00[1] == '0') {\n        local_1098 = strtol(__nptr,&q,10);\n      }\n      pcVar7 = q;\n      cVar4 = *q;\n      if (cVar4 == 'd') {\nLAB_0021b85d:\n        cVar4 = q[1];\n        q[1] = '\0';\n        q = q + 1;\n        FormatLocaleString(filename + (long)(format_00 + (-local_1090 - (long)format)),\n                           0x1000 - (long)(format_00 + (-local_1090 - (long)format)),format_00,\n                           (ulong)(uint)value);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *q = cVar4;\n        ConcatenateMagickString(filename,q,0x1000);\n        if (q[-1] == '%') {\n          format_00 = __nptr;\n        }\n        bVar3 = true;\n      }\n      else if (cVar4 < 'e') {\n        if ((cVar4 == '[') && (pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0)) {\n          pcVar6 = pcVar7 + 1;\n          cVar4 = pcVar7[1];\n          if (cVar4 == '\0') {\n            lVar8 = 0;\n          }\n          else {\n            lVar10 = 1;\n            lVar8 = 0;\n            while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }\n          }\n          pattern[lVar8] = '\0';\n          iVar5 = LocaleNCompare(pattern,"filename:",9);\n          if (iVar5 == 0) {\n            if (image == (Image *)0x0) {\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }\n            else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar4 == 'o') || (cVar4 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      format_00 = strchr(format_00 + 1,0x25);\n    } while (format_00 != (char *)0x0);\n    if (bVar3) {\n      cVar4 = *filename;\n      q = filename;\n      while (cVar4 != '\0') {\n        if ((cVar4 == '%') && (q[1] == '%')) {\n          CopyMagickString(q,q + 1,0x1000 - ((long)q - (long)filename));\n        }\n        cVar4 = q[1];\n        q = q + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }\n  CopyMagickString(filename,format,0x1000);\nLAB_0021ba47:\n  uVar9 = 0xffffffffffffffff;\n  do {\n    if (uVar9 == 0) break;\n    uVar9 = uVar9 - 1;\n    cVar4 = *filename;\n    filename = filename + (ulong)bVar12 * -2 + 1;\n  } while (cVar4 != '\0');\n  if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return ~uVar9 - 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" comment comment comment comment comment (function_definition "size_t InterpretImageFilename\n                 (ImageInfo *image_info,Image *image,char *format,int value,char *filename,\n                 ExceptionInfo *exception)\n\n{\n  char *__nptr;\n  char cVar1;\n  long lVar2;\n  bool bVar3;\n  char cVar4;\n  int iVar5;\n  char *format_00;\n  char *pcVar6;\n  char *pcVar7;\n  long lVar8;\n  ulong uVar9;\n  long lVar10;\n  char *pcVar11;\n  long in_FS_OFFSET;\n  byte bVar12;\n  long local_1098;\n  long local_1090;\n  char *q;\n  char pattern [4096];\n  \n  bVar12 = 0;\n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  CopyMagickString(filename,format,0x1000);\n  format_00 = strchr(format,0x25);\n  if (format_00 != (char *)0x0) {\n    local_1090 = 0;\n    bVar3 = false;\n    do {\n      __nptr = format_00 + 1;\n      q = __nptr;\n      if (format_00[1] == '%') {\n        format_00 = format_00 + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (format_00[1] == '0') {\n        local_1098 = strtol(__nptr,&q,10);\n      }\n      pcVar7 = q;\n      cVar4 = *q;\n      if (cVar4 == 'd') {\nLAB_0021b85d:\n        cVar4 = q[1];\n        q[1] = '\0';\n        q = q + 1;\n        FormatLocaleString(filename + (long)(format_00 + (-local_1090 - (long)format)),\n                           0x1000 - (long)(format_00 + (-local_1090 - (long)format)),format_00,\n                           (ulong)(uint)value);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *q = cVar4;\n        ConcatenateMagickString(filename,q,0x1000);\n        if (q[-1] == '%') {\n          format_00 = __nptr;\n        }\n        bVar3 = true;\n      }\n      else if (cVar4 < 'e') {\n        if ((cVar4 == '[') && (pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0)) {\n          pcVar6 = pcVar7 + 1;\n          cVar4 = pcVar7[1];\n          if (cVar4 == '\0') {\n            lVar8 = 0;\n          }\n          else {\n            lVar10 = 1;\n            lVar8 = 0;\n            while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }\n          }\n          pattern[lVar8] = '\0';\n          iVar5 = LocaleNCompare(pattern,"filename:",9);\n          if (iVar5 == 0) {\n            if (image == (Image *)0x0) {\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }\n            else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar4 == 'o') || (cVar4 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      format_00 = strchr(format_00 + 1,0x25);\n    } while (format_00 != (char *)0x0);\n    if (bVar3) {\n      cVar4 = *filename;\n      q = filename;\n      while (cVar4 != '\0') {\n        if ((cVar4 == '%') && (q[1] == '%')) {\n          CopyMagickString(q,q + 1,0x1000 - ((long)q - (long)filename));\n        }\n        cVar4 = q[1];\n        q = q + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }\n  CopyMagickString(filename,format,0x1000);\nLAB_0021ba47:\n  uVar9 = 0xffffffffffffffff;\n  do {\n    if (uVar9 == 0) break;\n    uVar9 = uVar9 - 1;\n    cVar4 = *filename;\n    filename = filename + (ulong)bVar12 * -2 + 1;\n  } while (cVar4 != '\0');\n  if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return ~uVar9 - 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "InterpretImageFilename\n                 (ImageInfo *image_info,Image *image,char *format,int value,char *filename,\n                 ExceptionInfo *exception)" identifier (parameter_list "(ImageInfo *image_info,Image *image,char *format,int value,char *filename,\n                 ExceptionInfo *exception)" ( (parameter_declaration "ImageInfo *image_info" type_identifier (pointer_declarator "*image_info" * identifier)) , (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) , (parameter_declaration "char *format" primitive_type (pointer_declarator "*format" * identifier)) , (parameter_declaration "int value" primitive_type identifier) , (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) ))) (compound_statement "{\n  char *__nptr;\n  char cVar1;\n  long lVar2;\n  bool bVar3;\n  char cVar4;\n  int iVar5;\n  char *format_00;\n  char *pcVar6;\n  char *pcVar7;\n  long lVar8;\n  ulong uVar9;\n  long lVar10;\n  char *pcVar11;\n  long in_FS_OFFSET;\n  byte bVar12;\n  long local_1098;\n  long local_1090;\n  char *q;\n  char pattern [4096];\n  \n  bVar12 = 0;\n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  CopyMagickString(filename,format,0x1000);\n  format_00 = strchr(format,0x25);\n  if (format_00 != (char *)0x0) {\n    local_1090 = 0;\n    bVar3 = false;\n    do {\n      __nptr = format_00 + 1;\n      q = __nptr;\n      if (format_00[1] == '%') {\n        format_00 = format_00 + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (format_00[1] == '0') {\n        local_1098 = strtol(__nptr,&q,10);\n      }\n      pcVar7 = q;\n      cVar4 = *q;\n      if (cVar4 == 'd') {\nLAB_0021b85d:\n        cVar4 = q[1];\n        q[1] = '\0';\n        q = q + 1;\n        FormatLocaleString(filename + (long)(format_00 + (-local_1090 - (long)format)),\n                           0x1000 - (long)(format_00 + (-local_1090 - (long)format)),format_00,\n                           (ulong)(uint)value);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *q = cVar4;\n        ConcatenateMagickString(filename,q,0x1000);\n        if (q[-1] == '%') {\n          format_00 = __nptr;\n        }\n        bVar3 = true;\n      }\n      else if (cVar4 < 'e') {\n        if ((cVar4 == '[') && (pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0)) {\n          pcVar6 = pcVar7 + 1;\n          cVar4 = pcVar7[1];\n          if (cVar4 == '\0') {\n            lVar8 = 0;\n          }\n          else {\n            lVar10 = 1;\n            lVar8 = 0;\n            while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }\n          }\n          pattern[lVar8] = '\0';\n          iVar5 = LocaleNCompare(pattern,"filename:",9);\n          if (iVar5 == 0) {\n            if (image == (Image *)0x0) {\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }\n            else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar4 == 'o') || (cVar4 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      format_00 = strchr(format_00 + 1,0x25);\n    } while (format_00 != (char *)0x0);\n    if (bVar3) {\n      cVar4 = *filename;\n      q = filename;\n      while (cVar4 != '\0') {\n        if ((cVar4 == '%') && (q[1] == '%')) {\n          CopyMagickString(q,q + 1,0x1000 - ((long)q - (long)filename));\n        }\n        cVar4 = q[1];\n        q = q + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }\n  CopyMagickString(filename,format,0x1000);\nLAB_0021ba47:\n  uVar9 = 0xffffffffffffffff;\n  do {\n    if (uVar9 == 0) break;\n    uVar9 = uVar9 - 1;\n    cVar4 = *filename;\n    filename = filename + (ulong)bVar12 * -2 + 1;\n  } while (cVar4 != '\0');\n  if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return ~uVar9 - 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "char *__nptr;" primitive_type (pointer_declarator "*__nptr" * identifier) ;) (declaration "char cVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *format_00;" primitive_type (pointer_declarator "*format_00" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar12;" type_identifier identifier ;) (declaration "long local_1098;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_1090;" (sized_type_specifier "long" long) identifier ;) (declaration "char *q;" primitive_type (pointer_declarator "*q" * identifier) ;) (declaration "char pattern [4096];" primitive_type (array_declarator "pattern [4096]" identifier [ number_literal ]) ;) (expression_statement "bVar12 = 0;" (assignment_expression "bVar12 = 0" identifier = number_literal) ;) (expression_statement "lVar2 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar2 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "CopyMagickString(filename,format,0x1000);" (call_expression "CopyMagickString(filename,format,0x1000)" identifier (argument_list "(filename,format,0x1000)" ( identifier , identifier , number_literal ))) ;) (expression_statement "format_00 = strchr(format,0x25);" (assignment_expression "format_00 = strchr(format,0x25)" identifier = (call_expression "strchr(format,0x25)" identifier (argument_list "(format,0x25)" ( identifier , number_literal )))) ;) (if_statement "if (format_00 != (char *)0x0) {\n    local_1090 = 0;\n    bVar3 = false;\n    do {\n      __nptr = format_00 + 1;\n      q = __nptr;\n      if (format_00[1] == '%') {\n        format_00 = format_00 + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (format_00[1] == '0') {\n        local_1098 = strtol(__nptr,&q,10);\n      }\n      pcVar7 = q;\n      cVar4 = *q;\n      if (cVar4 == 'd') {\nLAB_0021b85d:\n        cVar4 = q[1];\n        q[1] = '\0';\n        q = q + 1;\n        FormatLocaleString(filename + (long)(format_00 + (-local_1090 - (long)format)),\n                           0x1000 - (long)(format_00 + (-local_1090 - (long)format)),format_00,\n                           (ulong)(uint)value);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *q = cVar4;\n        ConcatenateMagickString(filename,q,0x1000);\n        if (q[-1] == '%') {\n          format_00 = __nptr;\n        }\n        bVar3 = true;\n      }\n      else if (cVar4 < 'e') {\n        if ((cVar4 == '[') && (pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0)) {\n          pcVar6 = pcVar7 + 1;\n          cVar4 = pcVar7[1];\n          if (cVar4 == '\0') {\n            lVar8 = 0;\n          }\n          else {\n            lVar10 = 1;\n            lVar8 = 0;\n            while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }\n          }\n          pattern[lVar8] = '\0';\n          iVar5 = LocaleNCompare(pattern,"filename:",9);\n          if (iVar5 == 0) {\n            if (image == (Image *)0x0) {\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }\n            else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar4 == 'o') || (cVar4 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      format_00 = strchr(format_00 + 1,0x25);\n    } while (format_00 != (char *)0x0);\n    if (bVar3) {\n      cVar4 = *filename;\n      q = filename;\n      while (cVar4 != '\0') {\n        if ((cVar4 == '%') && (q[1] == '%')) {\n          CopyMagickString(q,q + 1,0x1000 - ((long)q - (long)filename));\n        }\n        cVar4 = q[1];\n        q = q + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }" if (parenthesized_expression "(format_00 != (char *)0x0)" ( (binary_expression "format_00 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_1090 = 0;\n    bVar3 = false;\n    do {\n      __nptr = format_00 + 1;\n      q = __nptr;\n      if (format_00[1] == '%') {\n        format_00 = format_00 + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (format_00[1] == '0') {\n        local_1098 = strtol(__nptr,&q,10);\n      }\n      pcVar7 = q;\n      cVar4 = *q;\n      if (cVar4 == 'd') {\nLAB_0021b85d:\n        cVar4 = q[1];\n        q[1] = '\0';\n        q = q + 1;\n        FormatLocaleString(filename + (long)(format_00 + (-local_1090 - (long)format)),\n                           0x1000 - (long)(format_00 + (-local_1090 - (long)format)),format_00,\n                           (ulong)(uint)value);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *q = cVar4;\n        ConcatenateMagickString(filename,q,0x1000);\n        if (q[-1] == '%') {\n          format_00 = __nptr;\n        }\n        bVar3 = true;\n      }\n      else if (cVar4 < 'e') {\n        if ((cVar4 == '[') && (pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0)) {\n          pcVar6 = pcVar7 + 1;\n          cVar4 = pcVar7[1];\n          if (cVar4 == '\0') {\n            lVar8 = 0;\n          }\n          else {\n            lVar10 = 1;\n            lVar8 = 0;\n            while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }\n          }\n          pattern[lVar8] = '\0';\n          iVar5 = LocaleNCompare(pattern,"filename:",9);\n          if (iVar5 == 0) {\n            if (image == (Image *)0x0) {\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }\n            else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar4 == 'o') || (cVar4 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      format_00 = strchr(format_00 + 1,0x25);\n    } while (format_00 != (char *)0x0);\n    if (bVar3) {\n      cVar4 = *filename;\n      q = filename;\n      while (cVar4 != '\0') {\n        if ((cVar4 == '%') && (q[1] == '%')) {\n          CopyMagickString(q,q + 1,0x1000 - ((long)q - (long)filename));\n        }\n        cVar4 = q[1];\n        q = q + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }" { (expression_statement "local_1090 = 0;" (assignment_expression "local_1090 = 0" identifier = number_literal) ;) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (do_statement "do {\n      __nptr = format_00 + 1;\n      q = __nptr;\n      if (format_00[1] == '%') {\n        format_00 = format_00 + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (format_00[1] == '0') {\n        local_1098 = strtol(__nptr,&q,10);\n      }\n      pcVar7 = q;\n      cVar4 = *q;\n      if (cVar4 == 'd') {\nLAB_0021b85d:\n        cVar4 = q[1];\n        q[1] = '\0';\n        q = q + 1;\n        FormatLocaleString(filename + (long)(format_00 + (-local_1090 - (long)format)),\n                           0x1000 - (long)(format_00 + (-local_1090 - (long)format)),format_00,\n                           (ulong)(uint)value);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *q = cVar4;\n        ConcatenateMagickString(filename,q,0x1000);\n        if (q[-1] == '%') {\n          format_00 = __nptr;\n        }\n        bVar3 = true;\n      }\n      else if (cVar4 < 'e') {\n        if ((cVar4 == '[') && (pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0)) {\n          pcVar6 = pcVar7 + 1;\n          cVar4 = pcVar7[1];\n          if (cVar4 == '\0') {\n            lVar8 = 0;\n          }\n          else {\n            lVar10 = 1;\n            lVar8 = 0;\n            while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }\n          }\n          pattern[lVar8] = '\0';\n          iVar5 = LocaleNCompare(pattern,"filename:",9);\n          if (iVar5 == 0) {\n            if (image == (Image *)0x0) {\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }\n            else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar4 == 'o') || (cVar4 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      format_00 = strchr(format_00 + 1,0x25);\n    } while (format_00 != (char *)0x0);" do (compound_statement "{\n      __nptr = format_00 + 1;\n      q = __nptr;\n      if (format_00[1] == '%') {\n        format_00 = format_00 + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (format_00[1] == '0') {\n        local_1098 = strtol(__nptr,&q,10);\n      }\n      pcVar7 = q;\n      cVar4 = *q;\n      if (cVar4 == 'd') {\nLAB_0021b85d:\n        cVar4 = q[1];\n        q[1] = '\0';\n        q = q + 1;\n        FormatLocaleString(filename + (long)(format_00 + (-local_1090 - (long)format)),\n                           0x1000 - (long)(format_00 + (-local_1090 - (long)format)),format_00,\n                           (ulong)(uint)value);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *q = cVar4;\n        ConcatenateMagickString(filename,q,0x1000);\n        if (q[-1] == '%') {\n          format_00 = __nptr;\n        }\n        bVar3 = true;\n      }\n      else if (cVar4 < 'e') {\n        if ((cVar4 == '[') && (pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0)) {\n          pcVar6 = pcVar7 + 1;\n          cVar4 = pcVar7[1];\n          if (cVar4 == '\0') {\n            lVar8 = 0;\n          }\n          else {\n            lVar10 = 1;\n            lVar8 = 0;\n            while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }\n          }\n          pattern[lVar8] = '\0';\n          iVar5 = LocaleNCompare(pattern,"filename:",9);\n          if (iVar5 == 0) {\n            if (image == (Image *)0x0) {\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }\n            else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar4 == 'o') || (cVar4 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      format_00 = strchr(format_00 + 1,0x25);\n    }" { (expression_statement "__nptr = format_00 + 1;" (assignment_expression "__nptr = format_00 + 1" identifier = (binary_expression "format_00 + 1" identifier + number_literal)) ;) (expression_statement "q = __nptr;" (assignment_expression "q = __nptr" identifier = identifier) ;) (if_statement "if (format_00[1] == '%') {\n        format_00 = format_00 + 2;\n        goto LAB_0021b8da;\n      }" if (parenthesized_expression "(format_00[1] == '%')" ( (binary_expression "format_00[1] == '%'" (subscript_expression "format_00[1]" identifier [ number_literal ]) == (char_literal "'%'" ' character ')) )) (compound_statement "{\n        format_00 = format_00 + 2;\n        goto LAB_0021b8da;\n      }" { (expression_statement "format_00 = format_00 + 2;" (assignment_expression "format_00 = format_00 + 2" identifier = (binary_expression "format_00 + 2" identifier + number_literal)) ;) (goto_statement "goto LAB_0021b8da;" goto statement_identifier ;) })) (expression_statement "local_1098 = 0;" (assignment_expression "local_1098 = 0" identifier = number_literal) ;) (if_statement "if (format_00[1] == '0') {\n        local_1098 = strtol(__nptr,&q,10);\n      }" if (parenthesized_expression "(format_00[1] == '0')" ( (binary_expression "format_00[1] == '0'" (subscript_expression "format_00[1]" identifier [ number_literal ]) == (char_literal "'0'" ' character ')) )) (compound_statement "{\n        local_1098 = strtol(__nptr,&q,10);\n      }" { (expression_statement "local_1098 = strtol(__nptr,&q,10);" (assignment_expression "local_1098 = strtol(__nptr,&q,10)" identifier = (call_expression "strtol(__nptr,&q,10)" identifier (argument_list "(__nptr,&q,10)" ( identifier , (pointer_expression "&q" & identifier) , number_literal )))) ;) })) (expression_statement "pcVar7 = q;" (assignment_expression "pcVar7 = q" identifier = identifier) ;) (expression_statement "cVar4 = *q;" (assignment_expression "cVar4 = *q" identifier = (pointer_expression "*q" * identifier)) ;) (if_statement "if (cVar4 == 'd') {\nLAB_0021b85d:\n        cVar4 = q[1];\n        q[1] = '\0';\n        q = q + 1;\n        FormatLocaleString(filename + (long)(format_00 + (-local_1090 - (long)format)),\n                           0x1000 - (long)(format_00 + (-local_1090 - (long)format)),format_00,\n                           (ulong)(uint)value);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *q = cVar4;\n        ConcatenateMagickString(filename,q,0x1000);\n        if (q[-1] == '%') {\n          format_00 = __nptr;\n        }\n        bVar3 = true;\n      }\n      else if (cVar4 < 'e') {\n        if ((cVar4 == '[') && (pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0)) {\n          pcVar6 = pcVar7 + 1;\n          cVar4 = pcVar7[1];\n          if (cVar4 == '\0') {\n            lVar8 = 0;\n          }\n          else {\n            lVar10 = 1;\n            lVar8 = 0;\n            while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }\n          }\n          pattern[lVar8] = '\0';\n          iVar5 = LocaleNCompare(pattern,"filename:",9);\n          if (iVar5 == 0) {\n            if (image == (Image *)0x0) {\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }\n            else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar4 == 'o') || (cVar4 == 'x')) goto LAB_0021b85d;" if (parenthesized_expression "(cVar4 == 'd')" ( (binary_expression "cVar4 == 'd'" identifier == (char_literal "'d'" ' character ')) )) (compound_statement "{\nLAB_0021b85d:\n        cVar4 = q[1];\n        q[1] = '\0';\n        q = q + 1;\n        FormatLocaleString(filename + (long)(format_00 + (-local_1090 - (long)format)),\n                           0x1000 - (long)(format_00 + (-local_1090 - (long)format)),format_00,\n                           (ulong)(uint)value);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *q = cVar4;\n        ConcatenateMagickString(filename,q,0x1000);\n        if (q[-1] == '%') {\n          format_00 = __nptr;\n        }\n        bVar3 = true;\n      }" { (labeled_statement "LAB_0021b85d:\n        cVar4 = q[1];" statement_identifier : (expression_statement "cVar4 = q[1];" (assignment_expression "cVar4 = q[1]" identifier = (subscript_expression "q[1]" identifier [ number_literal ])) ;)) (expression_statement "q[1] = '\0';" (assignment_expression "q[1] = '\0'" (subscript_expression "q[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "q = q + 1;" (assignment_expression "q = q + 1" identifier = (binary_expression "q + 1" identifier + number_literal)) ;) (expression_statement "FormatLocaleString(filename + (long)(format_00 + (-local_1090 - (long)format)),\n                           0x1000 - (long)(format_00 + (-local_1090 - (long)format)),format_00,\n                           (ulong)(uint)value);" (call_expression "FormatLocaleString(filename + (long)(format_00 + (-local_1090 - (long)format)),\n                           0x1000 - (long)(format_00 + (-local_1090 - (long)format)),format_00,\n                           (ulong)(uint)value)" identifier (argument_list "(filename + (long)(format_00 + (-local_1090 - (long)format)),\n                           0x1000 - (long)(format_00 + (-local_1090 - (long)format)),format_00,\n                           (ulong)(uint)value)" ( (binary_expression "filename + (long)(format_00 + (-local_1090 - (long)format))" identifier + (cast_expression "(long)(format_00 + (-local_1090 - (long)format))" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(format_00 + (-local_1090 - (long)format))" ( (binary_expression "format_00 + (-local_1090 - (long)format)" identifier + (parenthesized_expression "(-local_1090 - (long)format)" ( (binary_expression "-local_1090 - (long)format" (unary_expression "-local_1090" - identifier) - (cast_expression "(long)format" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) )))) , (binary_expression "0x1000 - (long)(format_00 + (-local_1090 - (long)format))" number_literal - (cast_expression "(long)(format_00 + (-local_1090 - (long)format))" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(format_00 + (-local_1090 - (long)format))" ( (binary_expression "format_00 + (-local_1090 - (long)format)" identifier + (parenthesized_expression "(-local_1090 - (long)format)" ( (binary_expression "-local_1090 - (long)format" (unary_expression "-local_1090" - identifier) - (cast_expression "(long)format" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) )))) , identifier , (cast_expression "(ulong)(uint)value" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(uint)value" ( (type_descriptor "uint" type_identifier) ) identifier)) ))) ;) (expression_statement "local_1090 = (local_1090 - local_1098) + 4;" (assignment_expression "local_1090 = (local_1090 - local_1098) + 4" identifier = (binary_expression "(local_1090 - local_1098) + 4" (parenthesized_expression "(local_1090 - local_1098)" ( (binary_expression "local_1090 - local_1098" identifier - identifier) )) + number_literal)) ;) (expression_statement "*q = cVar4;" (assignment_expression "*q = cVar4" (pointer_expression "*q" * identifier) = identifier) ;) (expression_statement "ConcatenateMagickString(filename,q,0x1000);" (call_expression "ConcatenateMagickString(filename,q,0x1000)" identifier (argument_list "(filename,q,0x1000)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (q[-1] == '%') {\n          format_00 = __nptr;\n        }" if (parenthesized_expression "(q[-1] == '%')" ( (binary_expression "q[-1] == '%'" (subscript_expression "q[-1]" identifier [ number_literal ]) == (char_literal "'%'" ' character ')) )) (compound_statement "{\n          format_00 = __nptr;\n        }" { (expression_statement "format_00 = __nptr;" (assignment_expression "format_00 = __nptr" identifier = identifier) ;) })) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) }) (else_clause "else if (cVar4 < 'e') {\n        if ((cVar4 == '[') && (pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0)) {\n          pcVar6 = pcVar7 + 1;\n          cVar4 = pcVar7[1];\n          if (cVar4 == '\0') {\n            lVar8 = 0;\n          }\n          else {\n            lVar10 = 1;\n            lVar8 = 0;\n            while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }\n          }\n          pattern[lVar8] = '\0';\n          iVar5 = LocaleNCompare(pattern,"filename:",9);\n          if (iVar5 == 0) {\n            if (image == (Image *)0x0) {\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }\n            else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar4 == 'o') || (cVar4 == 'x')) goto LAB_0021b85d;" else (if_statement "if (cVar4 < 'e') {\n        if ((cVar4 == '[') && (pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0)) {\n          pcVar6 = pcVar7 + 1;\n          cVar4 = pcVar7[1];\n          if (cVar4 == '\0') {\n            lVar8 = 0;\n          }\n          else {\n            lVar10 = 1;\n            lVar8 = 0;\n            while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }\n          }\n          pattern[lVar8] = '\0';\n          iVar5 = LocaleNCompare(pattern,"filename:",9);\n          if (iVar5 == 0) {\n            if (image == (Image *)0x0) {\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }\n            else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar4 == 'o') || (cVar4 == 'x')) goto LAB_0021b85d;" if (parenthesized_expression "(cVar4 < 'e')" ( (binary_expression "cVar4 < 'e'" identifier < (char_literal "'e'" ' character ')) )) (compound_statement "{\n        if ((cVar4 == '[') && (pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0)) {\n          pcVar6 = pcVar7 + 1;\n          cVar4 = pcVar7[1];\n          if (cVar4 == '\0') {\n            lVar8 = 0;\n          }\n          else {\n            lVar10 = 1;\n            lVar8 = 0;\n            while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }\n          }\n          pattern[lVar8] = '\0';\n          iVar5 = LocaleNCompare(pattern,"filename:",9);\n          if (iVar5 == 0) {\n            if (image == (Image *)0x0) {\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }\n            else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }\n          }\n        }\n      }" { (if_statement "if ((cVar4 == '[') && (pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0)) {\n          pcVar6 = pcVar7 + 1;\n          cVar4 = pcVar7[1];\n          if (cVar4 == '\0') {\n            lVar8 = 0;\n          }\n          else {\n            lVar10 = 1;\n            lVar8 = 0;\n            while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }\n          }\n          pattern[lVar8] = '\0';\n          iVar5 = LocaleNCompare(pattern,"filename:",9);\n          if (iVar5 == 0) {\n            if (image == (Image *)0x0) {\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }\n            else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }\n          }\n        }" if (parenthesized_expression "((cVar4 == '[') && (pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0))" ( (binary_expression "(cVar4 == '[') && (pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0)" (parenthesized_expression "(cVar4 == '[')" ( (binary_expression "cVar4 == '['" identifier == (char_literal "'['" ' character ')) )) && (parenthesized_expression "(pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0)" ( (comma_expression "pcVar6 = strchr(format_00,0x5d), pcVar6 != (char *)0x0" (assignment_expression "pcVar6 = strchr(format_00,0x5d)" identifier = (call_expression "strchr(format_00,0x5d)" identifier (argument_list "(format_00,0x5d)" ( identifier , number_literal )))) , (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          pcVar6 = pcVar7 + 1;\n          cVar4 = pcVar7[1];\n          if (cVar4 == '\0') {\n            lVar8 = 0;\n          }\n          else {\n            lVar10 = 1;\n            lVar8 = 0;\n            while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }\n          }\n          pattern[lVar8] = '\0';\n          iVar5 = LocaleNCompare(pattern,"filename:",9);\n          if (iVar5 == 0) {\n            if (image == (Image *)0x0) {\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }\n            else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }\n          }\n        }" { (expression_statement "pcVar6 = pcVar7 + 1;" (assignment_expression "pcVar6 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (expression_statement "cVar4 = pcVar7[1];" (assignment_expression "cVar4 = pcVar7[1]" identifier = (subscript_expression "pcVar7[1]" identifier [ number_literal ])) ;) (if_statement "if (cVar4 == '\0') {\n            lVar8 = 0;\n          }\n          else {\n            lVar10 = 1;\n            lVar8 = 0;\n            while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }\n          }" if (parenthesized_expression "(cVar4 == '\0')" ( (binary_expression "cVar4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            lVar8 = 0;\n          }" { (expression_statement "lVar8 = 0;" (assignment_expression "lVar8 = 0" identifier = number_literal) ;) }) (else_clause "else {\n            lVar10 = 1;\n            lVar8 = 0;\n            while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }\n          }" else (compound_statement "{\n            lVar10 = 1;\n            lVar8 = 0;\n            while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }\n          }" { (expression_statement "lVar10 = 1;" (assignment_expression "lVar10 = 1" identifier = number_literal) ;) (expression_statement "lVar8 = 0;" (assignment_expression "lVar8 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n              if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }\n              if (lVar10 < 1) break;\n              pcVar6 = pcVar6 + 1;\n              pattern[lVar8] = cVar4;\n              lVar8 = lVar8 + 1;\n              if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;\n            }" { (if_statement "if (cVar4 == '[') {\n                lVar10 = lVar10 + 1;\n              }\n              else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }" if (parenthesized_expression "(cVar4 == '[')" ( (binary_expression "cVar4 == '['" identifier == (char_literal "'['" ' character ')) )) (compound_statement "{\n                lVar10 = lVar10 + 1;\n              }" { (expression_statement "lVar10 = lVar10 + 1;" (assignment_expression "lVar10 = lVar10 + 1" identifier = (binary_expression "lVar10 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }" else (compound_statement "{\n                lVar10 = lVar10 - (ulong)(cVar4 == ']');\n              }" { (expression_statement "lVar10 = lVar10 - (ulong)(cVar4 == ']');" (assignment_expression "lVar10 = lVar10 - (ulong)(cVar4 == ']')" identifier = (binary_expression "lVar10 - (ulong)(cVar4 == ']')" identifier - (call_expression "(ulong)(cVar4 == ']')" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(cVar4 == ']')" ( (binary_expression "cVar4 == ']'" identifier == (char_literal "']'" ' character ')) ))))) ;) }))) (if_statement "if (lVar10 < 1) break;" if (parenthesized_expression "(lVar10 < 1)" ( (binary_expression "lVar10 < 1" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (expression_statement "pattern[lVar8] = cVar4;" (assignment_expression "pattern[lVar8] = cVar4" (subscript_expression "pattern[lVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "lVar8 = lVar8 + 1;" (assignment_expression "lVar8 = lVar8 + 1" identifier = (binary_expression "lVar8 + 1" identifier + number_literal)) ;) (if_statement "if ((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')) break;" if (parenthesized_expression "((pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0'))" ( (binary_expression "(pcVar6 == pcVar7 + 0x1000) || (cVar4 = *pcVar6, cVar4 == '\0')" (parenthesized_expression "(pcVar6 == pcVar7 + 0x1000)" ( (binary_expression "pcVar6 == pcVar7 + 0x1000" identifier == (binary_expression "pcVar7 + 0x1000" identifier + number_literal)) )) || (parenthesized_expression "(cVar4 = *pcVar6, cVar4 == '\0')" ( (comma_expression "cVar4 = *pcVar6, cVar4 == '\0'" (assignment_expression "cVar4 = *pcVar6" identifier = (pointer_expression "*pcVar6" * identifier)) , (binary_expression "cVar4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (break_statement "break;" break ;)) })) }))) (expression_statement "pattern[lVar8] = '\0';" (assignment_expression "pattern[lVar8] = '\0'" (subscript_expression "pattern[lVar8]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar5 = LocaleNCompare(pattern,"filename:",9);" (assignment_expression "iVar5 = LocaleNCompare(pattern,"filename:",9)" identifier = (call_expression "LocaleNCompare(pattern,"filename:",9)" identifier (argument_list "(pattern,"filename:",9)" ( identifier , (string_literal ""filename:"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar5 == 0) {\n            if (image == (Image *)0x0) {\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }\n            else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }\n          }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n            if (image == (Image *)0x0) {\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }\n            else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }\n          }" { (if_statement "if (image == (Image *)0x0) {\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }\n            else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }" if (parenthesized_expression "(image == (Image *)0x0)" ( (binary_expression "image == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;\n            }" { (if_statement "if (image_info != (ImageInfo *)0x0) goto LAB_0021bace;" if (parenthesized_expression "(image_info != (ImageInfo *)0x0)" ( (binary_expression "image_info != (ImageInfo *)0x0" identifier != (cast_expression "(ImageInfo *)0x0" ( (type_descriptor "ImageInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0021bace;" goto statement_identifier ;)) }) (else_clause "else {\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }" else (compound_statement "{\n              pcVar7 = GetImageProperty(image,pattern,exception);\n              if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }\n              if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }\n            }" { (expression_statement "pcVar7 = GetImageProperty(image,pattern,exception);" (assignment_expression "pcVar7 = GetImageProperty(image,pattern,exception)" identifier = (call_expression "GetImageProperty(image,pattern,exception)" identifier (argument_list "(image,pattern,exception)" ( identifier , identifier , identifier )))) ;) (if_statement "if (((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)) {\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }" if (parenthesized_expression "(((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0))" ( (binary_expression "((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)) &&\n                 (image_info != (ImageInfo *)0x0)" (parenthesized_expression "((pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0))" ( (binary_expression "(pcVar7 == (char *)0x0) &&\n                  (pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)" (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0)" ( (comma_expression "pcVar7 = GetImageArtifact(image,pattern), pcVar7 == (char *)0x0" (assignment_expression "pcVar7 = GetImageArtifact(image,pattern)" identifier = (call_expression "GetImageArtifact(image,pattern)" identifier (argument_list "(image,pattern)" ( identifier , identifier )))) , (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(image_info != (ImageInfo *)0x0)" ( (binary_expression "image_info != (ImageInfo *)0x0" identifier != (cast_expression "(ImageInfo *)0x0" ( (type_descriptor "ImageInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\nLAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);\n              }" { (labeled_statement "LAB_0021bace:\n                pcVar7 = GetImageOption(image_info,pattern);" statement_identifier : (expression_statement "pcVar7 = GetImageOption(image_info,pattern);" (assignment_expression "pcVar7 = GetImageOption(image_info,pattern)" identifier = (call_expression "GetImageOption(image_info,pattern)" identifier (argument_list "(image_info,pattern)" ( identifier , identifier )))) ;)) })) (if_statement "if (pcVar7 != (char *)0x0) {\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                cVar4 = q[-1];\n                q[-1] = '\0';\n                q = q + -1;\n                CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));\n                lVar8 = -1;\n                pcVar11 = pattern;\n                do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar10 = -1;\n                do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar8) + 3 + lVar10;\n                *q = cVar4;\n                ConcatenateMagickString(filename,pcVar6 + 1,0x1000);\n                if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }\n                bVar3 = true;\n              }" { (expression_statement "cVar4 = q[-1];" (assignment_expression "cVar4 = q[-1]" identifier = (subscript_expression "q[-1]" identifier [ number_literal ])) ;) (expression_statement "q[-1] = '\0';" (assignment_expression "q[-1] = '\0'" (subscript_expression "q[-1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "q = q + -1;" (assignment_expression "q = q + -1" identifier = (binary_expression "q + -1" identifier + number_literal)) ;) (expression_statement "CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)));" (call_expression "CopyMagickString(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)))" identifier (argument_list "(filename + (long)(format_00 + (-local_1090 - (long)format)),pcVar7,\n                                 0x1000 - (long)(format_00 + (-local_1090 - (long)format)))" ( (binary_expression "filename + (long)(format_00 + (-local_1090 - (long)format))" identifier + (cast_expression "(long)(format_00 + (-local_1090 - (long)format))" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(format_00 + (-local_1090 - (long)format))" ( (binary_expression "format_00 + (-local_1090 - (long)format)" identifier + (parenthesized_expression "(-local_1090 - (long)format)" ( (binary_expression "-local_1090 - (long)format" (unary_expression "-local_1090" - identifier) - (cast_expression "(long)format" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) )))) , identifier , (binary_expression "0x1000 - (long)(format_00 + (-local_1090 - (long)format))" number_literal - (cast_expression "(long)(format_00 + (-local_1090 - (long)format))" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(format_00 + (-local_1090 - (long)format))" ( (binary_expression "format_00 + (-local_1090 - (long)format)" identifier + (parenthesized_expression "(-local_1090 - (long)format)" ( (binary_expression "-local_1090 - (long)format" (unary_expression "-local_1090" - identifier) - (cast_expression "(long)format" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) )))) ))) ;) (expression_statement "lVar8 = -1;" (assignment_expression "lVar8 = -1" identifier = number_literal) ;) (expression_statement "pcVar11 = pattern;" (assignment_expression "pcVar11 = pattern" identifier = identifier) ;) (do_statement "do {\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');" do (compound_statement "{\n                  if (lVar8 == 0) break;\n                  lVar8 = lVar8 + -1;\n                  cVar1 = *pcVar11;\n                  pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;\n                }" { (if_statement "if (lVar8 == 0) break;" if (parenthesized_expression "(lVar8 == 0)" ( (binary_expression "lVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar8 = lVar8 + -1;" (assignment_expression "lVar8 = lVar8 + -1" identifier = (binary_expression "lVar8 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar11;" (assignment_expression "cVar1 = *pcVar11" identifier = (pointer_expression "*pcVar11" * identifier)) ;) (expression_statement "pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1;" (assignment_expression "pcVar11 = pcVar11 + (ulong)bVar12 * -2 + 1" identifier = (binary_expression "pcVar11 + (ulong)bVar12 * -2 + 1" (binary_expression "pcVar11 + (ulong)bVar12 * -2" identifier + (binary_expression "(ulong)bVar12 * -2" (cast_expression "(ulong)bVar12" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "lVar10 = -1;" (assignment_expression "lVar10 = -1" identifier = number_literal) ;) (do_statement "do {\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                } while (cVar1 != '\0');" do (compound_statement "{\n                  if (lVar10 == 0) break;\n                  lVar10 = lVar10 + -1;\n                  cVar1 = *pcVar7;\n                  pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;\n                }" { (if_statement "if (lVar10 == 0) break;" if (parenthesized_expression "(lVar10 == 0)" ( (binary_expression "lVar10 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar10 = lVar10 + -1;" (assignment_expression "lVar10 = lVar10 + -1" identifier = (binary_expression "lVar10 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar12 * -2 + 1" identifier = (binary_expression "pcVar7 + (ulong)bVar12 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar12 * -2" identifier + (binary_expression "(ulong)bVar12 * -2" (cast_expression "(ulong)bVar12" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "local_1090 = (local_1090 - lVar8) + 3 + lVar10;" (assignment_expression "local_1090 = (local_1090 - lVar8) + 3 + lVar10" identifier = (binary_expression "(local_1090 - lVar8) + 3 + lVar10" (binary_expression "(local_1090 - lVar8) + 3" (parenthesized_expression "(local_1090 - lVar8)" ( (binary_expression "local_1090 - lVar8" identifier - identifier) )) + number_literal) + identifier)) ;) (expression_statement "*q = cVar4;" (assignment_expression "*q = cVar4" (pointer_expression "*q" * identifier) = identifier) ;) (expression_statement "ConcatenateMagickString(filename,pcVar6 + 1,0x1000);" (call_expression "ConcatenateMagickString(filename,pcVar6 + 1,0x1000)" identifier (argument_list "(filename,pcVar6 + 1,0x1000)" ( identifier , (binary_expression "pcVar6 + 1" identifier + number_literal) , number_literal ))) ;) (if_statement "if (q[-1] == '%') {\n                  format_00 = __nptr;\n                }" if (parenthesized_expression "(q[-1] == '%')" ( (binary_expression "q[-1] == '%'" (subscript_expression "q[-1]" identifier [ number_literal ]) == (char_literal "'%'" ' character ')) )) (compound_statement "{\n                  format_00 = __nptr;\n                }" { (expression_statement "format_00 = __nptr;" (assignment_expression "format_00 = __nptr" identifier = identifier) ;) })) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) })) }))) })) })) }) (else_clause "else if ((cVar4 == 'o') || (cVar4 == 'x')) goto LAB_0021b85d;" else (if_statement "if ((cVar4 == 'o') || (cVar4 == 'x')) goto LAB_0021b85d;" if (parenthesized_expression "((cVar4 == 'o') || (cVar4 == 'x'))" ( (binary_expression "(cVar4 == 'o') || (cVar4 == 'x')" (parenthesized_expression "(cVar4 == 'o')" ( (binary_expression "cVar4 == 'o'" identifier == (char_literal "'o'" ' character ')) )) || (parenthesized_expression "(cVar4 == 'x')" ( (binary_expression "cVar4 == 'x'" identifier == (char_literal "'x'" ' character ')) ))) )) (goto_statement "goto LAB_0021b85d;" goto statement_identifier ;)))))) (labeled_statement "LAB_0021b8da:\n      format_00 = strchr(format_00 + 1,0x25);" statement_identifier : (expression_statement "format_00 = strchr(format_00 + 1,0x25);" (assignment_expression "format_00 = strchr(format_00 + 1,0x25)" identifier = (call_expression "strchr(format_00 + 1,0x25)" identifier (argument_list "(format_00 + 1,0x25)" ( (binary_expression "format_00 + 1" identifier + number_literal) , number_literal )))) ;)) }) while (parenthesized_expression "(format_00 != (char *)0x0)" ( (binary_expression "format_00 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (bVar3) {\n      cVar4 = *filename;\n      q = filename;\n      while (cVar4 != '\0') {\n        if ((cVar4 == '%') && (q[1] == '%')) {\n          CopyMagickString(q,q + 1,0x1000 - ((long)q - (long)filename));\n        }\n        cVar4 = q[1];\n        q = q + 1;\n      }\n      goto LAB_0021ba47;\n    }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n      cVar4 = *filename;\n      q = filename;\n      while (cVar4 != '\0') {\n        if ((cVar4 == '%') && (q[1] == '%')) {\n          CopyMagickString(q,q + 1,0x1000 - ((long)q - (long)filename));\n        }\n        cVar4 = q[1];\n        q = q + 1;\n      }\n      goto LAB_0021ba47;\n    }" { (expression_statement "cVar4 = *filename;" (assignment_expression "cVar4 = *filename" identifier = (pointer_expression "*filename" * identifier)) ;) (expression_statement "q = filename;" (assignment_expression "q = filename" identifier = identifier) ;) (while_statement "while (cVar4 != '\0') {\n        if ((cVar4 == '%') && (q[1] == '%')) {\n          CopyMagickString(q,q + 1,0x1000 - ((long)q - (long)filename));\n        }\n        cVar4 = q[1];\n        q = q + 1;\n      }" while (parenthesized_expression "(cVar4 != '\0')" ( (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if ((cVar4 == '%') && (q[1] == '%')) {\n          CopyMagickString(q,q + 1,0x1000 - ((long)q - (long)filename));\n        }\n        cVar4 = q[1];\n        q = q + 1;\n      }" { (if_statement "if ((cVar4 == '%') && (q[1] == '%')) {\n          CopyMagickString(q,q + 1,0x1000 - ((long)q - (long)filename));\n        }" if (parenthesized_expression "((cVar4 == '%') && (q[1] == '%'))" ( (binary_expression "(cVar4 == '%') && (q[1] == '%')" (parenthesized_expression "(cVar4 == '%')" ( (binary_expression "cVar4 == '%'" identifier == (char_literal "'%'" ' character ')) )) && (parenthesized_expression "(q[1] == '%')" ( (binary_expression "q[1] == '%'" (subscript_expression "q[1]" identifier [ number_literal ]) == (char_literal "'%'" ' character ')) ))) )) (compound_statement "{\n          CopyMagickString(q,q + 1,0x1000 - ((long)q - (long)filename));\n        }" { (expression_statement "CopyMagickString(q,q + 1,0x1000 - ((long)q - (long)filename));" (call_expression "CopyMagickString(q,q + 1,0x1000 - ((long)q - (long)filename))" identifier (argument_list "(q,q + 1,0x1000 - ((long)q - (long)filename))" ( identifier , (binary_expression "q + 1" identifier + number_literal) , (binary_expression "0x1000 - ((long)q - (long)filename)" number_literal - (parenthesized_expression "((long)q - (long)filename)" ( (binary_expression "(long)q - (long)filename" (cast_expression "(long)q" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)filename" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) ))) ;) })) (expression_statement "cVar4 = q[1];" (assignment_expression "cVar4 = q[1]" identifier = (subscript_expression "q[1]" identifier [ number_literal ])) ;) (expression_statement "q = q + 1;" (assignment_expression "q = q + 1" identifier = (binary_expression "q + 1" identifier + number_literal)) ;) })) (goto_statement "goto LAB_0021ba47;" goto statement_identifier ;) })) })) (expression_statement "CopyMagickString(filename,format,0x1000);" (call_expression "CopyMagickString(filename,format,0x1000)" identifier (argument_list "(filename,format,0x1000)" ( identifier , identifier , number_literal ))) ;) (labeled_statement "LAB_0021ba47:\n  uVar9 = 0xffffffffffffffff;" statement_identifier : (expression_statement "uVar9 = 0xffffffffffffffff;" (assignment_expression "uVar9 = 0xffffffffffffffff" identifier = number_literal) ;)) (do_statement "do {\n    if (uVar9 == 0) break;\n    uVar9 = uVar9 - 1;\n    cVar4 = *filename;\n    filename = filename + (ulong)bVar12 * -2 + 1;\n  } while (cVar4 != '\0');" do (compound_statement "{\n    if (uVar9 == 0) break;\n    uVar9 = uVar9 - 1;\n    cVar4 = *filename;\n    filename = filename + (ulong)bVar12 * -2 + 1;\n  }" { (if_statement "if (uVar9 == 0) break;" if (parenthesized_expression "(uVar9 == 0)" ( (binary_expression "uVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar9 = uVar9 - 1;" (assignment_expression "uVar9 = uVar9 - 1" identifier = (binary_expression "uVar9 - 1" identifier - number_literal)) ;) (expression_statement "cVar4 = *filename;" (assignment_expression "cVar4 = *filename" identifier = (pointer_expression "*filename" * identifier)) ;) (expression_statement "filename = filename + (ulong)bVar12 * -2 + 1;" (assignment_expression "filename = filename + (ulong)bVar12 * -2 + 1" identifier = (binary_expression "filename + (ulong)bVar12 * -2 + 1" (binary_expression "filename + (ulong)bVar12 * -2" identifier + (binary_expression "(ulong)bVar12 * -2" (cast_expression "(ulong)bVar12" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar4 != '\0')" ( (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return ~uVar9 - 1;\n  }" if (parenthesized_expression "(lVar2 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar2 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return ~uVar9 - 1;\n  }" { (return_statement "return ~uVar9 - 1;" return (binary_expression "~uVar9 - 1" (unary_expression "~uVar9" ~ identifier) - number_literal) ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "long InterpretImageFilename\n               (long param_1,long param_2,char *param_3,undefined4 param_4,char *param_5,\n               undefined8 param_6)\n\n{\n  char *__nptr;\n  char cVar1;\n  bool bVar2;\n  char cVar3;\n  int iVar4;\n  char *__s;\n  char *pcVar5;\n  char *pcVar6;\n  long lVar7;\n  ulong uVar8;\n  long lVar9;\n  char *pcVar10;\n  long in_FS_OFFSET;\n  byte bVar11;\n  long local_1098;\n  long local_1090;\n  char *local_1050;\n  char local_1048 [4104];\n  long local_40;\n  \n  bVar11 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  CopyMagickString(param_5,param_3,0x1000);\n  __s = strchr(param_3,0x25);\n  if (__s != (char *)0x0) {\n    local_1090 = 0;\n    bVar2 = false;\n    do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);\n    if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }\n  CopyMagickString(param_5,param_3,0x1000);\nLAB_0021ba47:\n  uVar8 = 0xffffffffffffffff;\n  do {\n    if (uVar8 == 0) break;\n    uVar8 = uVar8 - 1;\n    cVar3 = *param_5;\n    param_5 = param_5 + (ulong)bVar11 * -2 + 1;\n  } while (cVar3 != '\0');\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return ~uVar8 - 1;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "long InterpretImageFilename\n               (long param_1,long param_2,char *param_3,undefined4 param_4,char *param_5,\n               undefined8 param_6)\n\n{\n  char *__nptr;\n  char cVar1;\n  bool bVar2;\n  char cVar3;\n  int iVar4;\n  char *__s;\n  char *pcVar5;\n  char *pcVar6;\n  long lVar7;\n  ulong uVar8;\n  long lVar9;\n  char *pcVar10;\n  long in_FS_OFFSET;\n  byte bVar11;\n  long local_1098;\n  long local_1090;\n  char *local_1050;\n  char local_1048 [4104];\n  long local_40;\n  \n  bVar11 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  CopyMagickString(param_5,param_3,0x1000);\n  __s = strchr(param_3,0x25);\n  if (__s != (char *)0x0) {\n    local_1090 = 0;\n    bVar2 = false;\n    do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);\n    if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }\n  CopyMagickString(param_5,param_3,0x1000);\nLAB_0021ba47:\n  uVar8 = 0xffffffffffffffff;\n  do {\n    if (uVar8 == 0) break;\n    uVar8 = uVar8 - 1;\n    cVar3 = *param_5;\n    param_5 = param_5 + (ulong)bVar11 * -2 + 1;\n  } while (cVar3 != '\0');\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return ~uVar8 - 1;\n  }\n                    \n  __stack_chk_fail();\n}" (sized_type_specifier "long" long) (function_declarator "InterpretImageFilename\n               (long param_1,long param_2,char *param_3,undefined4 param_4,char *param_5,\n               undefined8 param_6)" identifier (parameter_list "(long param_1,long param_2,char *param_3,undefined4 param_4,char *param_5,\n               undefined8 param_6)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "char *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined8 param_6" type_identifier identifier) ))) (compound_statement "{\n  char *__nptr;\n  char cVar1;\n  bool bVar2;\n  char cVar3;\n  int iVar4;\n  char *__s;\n  char *pcVar5;\n  char *pcVar6;\n  long lVar7;\n  ulong uVar8;\n  long lVar9;\n  char *pcVar10;\n  long in_FS_OFFSET;\n  byte bVar11;\n  long local_1098;\n  long local_1090;\n  char *local_1050;\n  char local_1048 [4104];\n  long local_40;\n  \n  bVar11 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  CopyMagickString(param_5,param_3,0x1000);\n  __s = strchr(param_3,0x25);\n  if (__s != (char *)0x0) {\n    local_1090 = 0;\n    bVar2 = false;\n    do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);\n    if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }\n  CopyMagickString(param_5,param_3,0x1000);\nLAB_0021ba47:\n  uVar8 = 0xffffffffffffffff;\n  do {\n    if (uVar8 == 0) break;\n    uVar8 = uVar8 - 1;\n    cVar3 = *param_5;\n    param_5 = param_5 + (ulong)bVar11 * -2 + 1;\n  } while (cVar3 != '\0');\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return ~uVar8 - 1;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "char *__nptr;" primitive_type (pointer_declarator "*__nptr" * identifier) ;) (declaration "char cVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar11;" type_identifier identifier ;) (declaration "long local_1098;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_1090;" (sized_type_specifier "long" long) identifier ;) (declaration "char *local_1050;" primitive_type (pointer_declarator "*local_1050" * identifier) ;) (declaration "char local_1048 [4104];" primitive_type (array_declarator "local_1048 [4104]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar11 = 0;" (assignment_expression "bVar11 = 0" identifier = number_literal) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "CopyMagickString(param_5,param_3,0x1000);" (call_expression "CopyMagickString(param_5,param_3,0x1000)" identifier (argument_list "(param_5,param_3,0x1000)" ( identifier , identifier , number_literal ))) ;) (expression_statement "__s = strchr(param_3,0x25);" (assignment_expression "__s = strchr(param_3,0x25)" identifier = (call_expression "strchr(param_3,0x25)" identifier (argument_list "(param_3,0x25)" ( identifier , number_literal )))) ;) (if_statement "if (__s != (char *)0x0) {\n    local_1090 = 0;\n    bVar2 = false;\n    do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);\n    if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_1090 = 0;\n    bVar2 = false;\n    do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);\n    if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }" { (expression_statement "local_1090 = 0;" (assignment_expression "local_1090 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (do_statement "do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);" do (compound_statement "{\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    }" { (expression_statement "__nptr = __s + 1;" (assignment_expression "__nptr = __s + 1" identifier = (binary_expression "__s + 1" identifier + number_literal)) ;) (expression_statement "local_1050 = __nptr;" (assignment_expression "local_1050 = __nptr" identifier = identifier) ;) (if_statement "if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }" if (parenthesized_expression "(__s[1] == '%')" ( (binary_expression "__s[1] == '%'" (subscript_expression "__s[1]" identifier [ number_literal ]) == (char_literal "'%'" ' character ')) )) (compound_statement "{\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }" { (expression_statement "__s = __s + 2;" (assignment_expression "__s = __s + 2" identifier = (binary_expression "__s + 2" identifier + number_literal)) ;) (goto_statement "goto LAB_0021b8da;" goto statement_identifier ;) })) (expression_statement "local_1098 = 0;" (assignment_expression "local_1098 = 0" identifier = number_literal) ;) (if_statement "if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }" if (parenthesized_expression "(__s[1] == '0')" ( (binary_expression "__s[1] == '0'" (subscript_expression "__s[1]" identifier [ number_literal ]) == (char_literal "'0'" ' character ')) )) (compound_statement "{\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }" { (expression_statement "local_1098 = strtol(__nptr,&local_1050,10);" (assignment_expression "local_1098 = strtol(__nptr,&local_1050,10)" identifier = (call_expression "strtol(__nptr,&local_1050,10)" identifier (argument_list "(__nptr,&local_1050,10)" ( identifier , (pointer_expression "&local_1050" & identifier) , number_literal )))) ;) })) (expression_statement "pcVar6 = local_1050;" (assignment_expression "pcVar6 = local_1050" identifier = identifier) ;) (expression_statement "cVar3 = *local_1050;" (assignment_expression "cVar3 = *local_1050" identifier = (pointer_expression "*local_1050" * identifier)) ;) (if_statement "if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;" if (parenthesized_expression "(cVar3 == 'd')" ( (binary_expression "cVar3 == 'd'" identifier == (char_literal "'d'" ' character ')) )) (compound_statement "{\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }" { (labeled_statement "LAB_0021b85d:\n        cVar3 = local_1050[1];" statement_identifier : (expression_statement "cVar3 = local_1050[1];" (assignment_expression "cVar3 = local_1050[1]" identifier = (subscript_expression "local_1050[1]" identifier [ number_literal ])) ;)) (expression_statement "local_1050[1] = '\0';" (assignment_expression "local_1050[1] = '\0'" (subscript_expression "local_1050[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_1050 = local_1050 + 1;" (assignment_expression "local_1050 = local_1050 + 1" identifier = (binary_expression "local_1050 + 1" identifier + number_literal)) ;) (expression_statement "FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);" (call_expression "FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4)" identifier (argument_list "(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4)" ( (binary_expression "param_5 + (long)(__s + (-local_1090 - (long)param_3))" identifier + (cast_expression "(long)(__s + (-local_1090 - (long)param_3))" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(__s + (-local_1090 - (long)param_3))" ( (binary_expression "__s + (-local_1090 - (long)param_3)" identifier + (parenthesized_expression "(-local_1090 - (long)param_3)" ( (binary_expression "-local_1090 - (long)param_3" (unary_expression "-local_1090" - identifier) - (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) )))) , (binary_expression "0x1000 - (long)(__s + (-local_1090 - (long)param_3))" number_literal - (cast_expression "(long)(__s + (-local_1090 - (long)param_3))" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(__s + (-local_1090 - (long)param_3))" ( (binary_expression "__s + (-local_1090 - (long)param_3)" identifier + (parenthesized_expression "(-local_1090 - (long)param_3)" ( (binary_expression "-local_1090 - (long)param_3" (unary_expression "-local_1090" - identifier) - (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) )))) , identifier , identifier ))) ;) (expression_statement "local_1090 = (local_1090 - local_1098) + 4;" (assignment_expression "local_1090 = (local_1090 - local_1098) + 4" identifier = (binary_expression "(local_1090 - local_1098) + 4" (parenthesized_expression "(local_1090 - local_1098)" ( (binary_expression "local_1090 - local_1098" identifier - identifier) )) + number_literal)) ;) (expression_statement "*local_1050 = cVar3;" (assignment_expression "*local_1050 = cVar3" (pointer_expression "*local_1050" * identifier) = identifier) ;) (expression_statement "ConcatenateMagickString(param_5,local_1050,0x1000);" (call_expression "ConcatenateMagickString(param_5,local_1050,0x1000)" identifier (argument_list "(param_5,local_1050,0x1000)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }" if (parenthesized_expression "(local_1050[-1] == '%')" ( (binary_expression "local_1050[-1] == '%'" (subscript_expression "local_1050[-1]" identifier [ number_literal ]) == (char_literal "'%'" ' character ')) )) (compound_statement "{\n          __s = __nptr;\n        }" { (expression_statement "__s = __nptr;" (assignment_expression "__s = __nptr" identifier = identifier) ;) })) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) }) (else_clause "else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;" else (if_statement "if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;" if (parenthesized_expression "(cVar3 < 'e')" ( (binary_expression "cVar3 < 'e'" identifier < (char_literal "'e'" ' character ')) )) (compound_statement "{\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }" { (if_statement "if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }" if (parenthesized_expression "((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0))" ( (binary_expression "(cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)" (parenthesized_expression "(cVar3 == '[')" ( (binary_expression "cVar3 == '['" identifier == (char_literal "'['" ' character ')) )) && (parenthesized_expression "(pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)" ( (comma_expression "pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0" (assignment_expression "pcVar5 = strchr(__s,0x5d)" identifier = (call_expression "strchr(__s,0x5d)" identifier (argument_list "(__s,0x5d)" ( identifier , number_literal )))) , (binary_expression "pcVar5 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }" { (expression_statement "pcVar5 = pcVar6 + 1;" (assignment_expression "pcVar5 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (expression_statement "cVar3 = pcVar6[1];" (assignment_expression "cVar3 = pcVar6[1]" identifier = (subscript_expression "pcVar6[1]" identifier [ number_literal ])) ;) (if_statement "if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            lVar7 = 0;\n          }" { (expression_statement "lVar7 = 0;" (assignment_expression "lVar7 = 0" identifier = number_literal) ;) }) (else_clause "else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }" else (compound_statement "{\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }" { (expression_statement "lVar9 = 1;" (assignment_expression "lVar9 = 1" identifier = number_literal) ;) (expression_statement "lVar7 = 0;" (assignment_expression "lVar7 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }" { (if_statement "if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }" if (parenthesized_expression "(cVar3 == '[')" ( (binary_expression "cVar3 == '['" identifier == (char_literal "'['" ' character ')) )) (compound_statement "{\n                lVar9 = lVar9 + 1;\n              }" { (expression_statement "lVar9 = lVar9 + 1;" (assignment_expression "lVar9 = lVar9 + 1" identifier = (binary_expression "lVar9 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }" else (compound_statement "{\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }" { (expression_statement "lVar9 = lVar9 - (ulong)(cVar3 == ']');" (assignment_expression "lVar9 = lVar9 - (ulong)(cVar3 == ']')" identifier = (binary_expression "lVar9 - (ulong)(cVar3 == ']')" identifier - (call_expression "(ulong)(cVar3 == ']')" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(cVar3 == ']')" ( (binary_expression "cVar3 == ']'" identifier == (char_literal "']'" ' character ')) ))))) ;) }))) (if_statement "if (lVar9 < 1) break;" if (parenthesized_expression "(lVar9 < 1)" ( (binary_expression "lVar9 < 1" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "local_1048[lVar7] = cVar3;" (assignment_expression "local_1048[lVar7] = cVar3" (subscript_expression "local_1048[lVar7]" identifier [ identifier ]) = identifier) ;) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" identifier = (binary_expression "lVar7 + 1" identifier + number_literal)) ;) (if_statement "if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;" if (parenthesized_expression "((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0'))" ( (binary_expression "(pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')" (parenthesized_expression "(pcVar5 == pcVar6 + 0x1000)" ( (binary_expression "pcVar5 == pcVar6 + 0x1000" identifier == (binary_expression "pcVar6 + 0x1000" identifier + number_literal)) )) || (parenthesized_expression "(cVar3 = *pcVar5, cVar3 == '\0')" ( (comma_expression "cVar3 = *pcVar5, cVar3 == '\0'" (assignment_expression "cVar3 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) , (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (break_statement "break;" break ;)) })) }))) (expression_statement "local_1048[lVar7] = '\0';" (assignment_expression "local_1048[lVar7] = '\0'" (subscript_expression "local_1048[lVar7]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar4 = LocaleNCompare(local_1048,"filename:",9);" (assignment_expression "iVar4 = LocaleNCompare(local_1048,"filename:",9)" identifier = (call_expression "LocaleNCompare(local_1048,"filename:",9)" identifier (argument_list "(local_1048,"filename:",9)" ( identifier , (string_literal ""filename:"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }" { (if_statement "if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n              if (param_1 != 0) goto LAB_0021bace;\n            }" { (if_statement "if (param_1 != 0) goto LAB_0021bace;" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0021bace;" goto statement_identifier ;)) }) (else_clause "else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }" else (compound_statement "{\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }" { (expression_statement "pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);" (assignment_expression "pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6)" identifier = (cast_expression "(char *)GetImageProperty(param_2,local_1048,param_6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageProperty(param_2,local_1048,param_6)" identifier (argument_list "(param_2,local_1048,param_6)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }" if (parenthesized_expression "(((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0))" ( (binary_expression "((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)" (parenthesized_expression "((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0))" ( (binary_expression "(pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)" (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)" ( (comma_expression "pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0" (assignment_expression "pcVar6 = (char *)GetImageArtifact(param_2,local_1048)" identifier = (cast_expression "(char *)GetImageArtifact(param_2,local_1048)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageArtifact(param_2,local_1048)" identifier (argument_list "(param_2,local_1048)" ( identifier , identifier ))))) , (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) ))) )) (compound_statement "{\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }" { (labeled_statement "LAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);" statement_identifier : (expression_statement "pcVar6 = (char *)GetImageOption(param_1,local_1048);" (assignment_expression "pcVar6 = (char *)GetImageOption(param_1,local_1048)" identifier = (cast_expression "(char *)GetImageOption(param_1,local_1048)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetImageOption(param_1,local_1048)" identifier (argument_list "(param_1,local_1048)" ( identifier , identifier ))))) ;)) })) (if_statement "if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }" if (parenthesized_expression "(pcVar6 != (char *)0x0)" ( (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }" { (expression_statement "cVar3 = local_1050[-1];" (assignment_expression "cVar3 = local_1050[-1]" identifier = (subscript_expression "local_1050[-1]" identifier [ number_literal ])) ;) (expression_statement "local_1050[-1] = '\0';" (assignment_expression "local_1050[-1] = '\0'" (subscript_expression "local_1050[-1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_1050 = local_1050 + -1;" (assignment_expression "local_1050 = local_1050 + -1" identifier = (binary_expression "local_1050 + -1" identifier + number_literal)) ;) (expression_statement "CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));" (call_expression "CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)))" identifier (argument_list "(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)))" ( (binary_expression "param_5 + (long)(__s + (-local_1090 - (long)param_3))" identifier + (cast_expression "(long)(__s + (-local_1090 - (long)param_3))" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(__s + (-local_1090 - (long)param_3))" ( (binary_expression "__s + (-local_1090 - (long)param_3)" identifier + (parenthesized_expression "(-local_1090 - (long)param_3)" ( (binary_expression "-local_1090 - (long)param_3" (unary_expression "-local_1090" - identifier) - (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) )))) , identifier , (binary_expression "0x1000 - (long)(__s + (-local_1090 - (long)param_3))" number_literal - (cast_expression "(long)(__s + (-local_1090 - (long)param_3))" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(__s + (-local_1090 - (long)param_3))" ( (binary_expression "__s + (-local_1090 - (long)param_3)" identifier + (parenthesized_expression "(-local_1090 - (long)param_3)" ( (binary_expression "-local_1090 - (long)param_3" (unary_expression "-local_1090" - identifier) - (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) )))) ))) ;) (expression_statement "lVar7 = -1;" (assignment_expression "lVar7 = -1" identifier = number_literal) ;) (expression_statement "pcVar10 = local_1048;" (assignment_expression "pcVar10 = local_1048" identifier = identifier) ;) (do_statement "do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');" do (compound_statement "{\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                }" { (if_statement "if (lVar7 == 0) break;" if (parenthesized_expression "(lVar7 == 0)" ( (binary_expression "lVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar7 = lVar7 + -1;" (assignment_expression "lVar7 = lVar7 + -1" identifier = (binary_expression "lVar7 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar10;" (assignment_expression "cVar1 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) (expression_statement "pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;" (assignment_expression "pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1" identifier = (binary_expression "pcVar10 + (ulong)bVar11 * -2 + 1" (binary_expression "pcVar10 + (ulong)bVar11 * -2" identifier + (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "lVar9 = -1;" (assignment_expression "lVar9 = -1" identifier = number_literal) ;) (do_statement "do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');" do (compound_statement "{\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                }" { (if_statement "if (lVar9 == 0) break;" if (parenthesized_expression "(lVar9 == 0)" ( (binary_expression "lVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar9 = lVar9 + -1;" (assignment_expression "lVar9 = lVar9 + -1" identifier = (binary_expression "lVar9 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar6;" (assignment_expression "cVar1 = *pcVar6" identifier = (pointer_expression "*pcVar6" * identifier)) ;) (expression_statement "pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;" (assignment_expression "pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1" identifier = (binary_expression "pcVar6 + (ulong)bVar11 * -2 + 1" (binary_expression "pcVar6 + (ulong)bVar11 * -2" identifier + (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "local_1090 = (local_1090 - lVar7) + 3 + lVar9;" (assignment_expression "local_1090 = (local_1090 - lVar7) + 3 + lVar9" identifier = (binary_expression "(local_1090 - lVar7) + 3 + lVar9" (binary_expression "(local_1090 - lVar7) + 3" (parenthesized_expression "(local_1090 - lVar7)" ( (binary_expression "local_1090 - lVar7" identifier - identifier) )) + number_literal) + identifier)) ;) (expression_statement "*local_1050 = cVar3;" (assignment_expression "*local_1050 = cVar3" (pointer_expression "*local_1050" * identifier) = identifier) ;) (expression_statement "ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);" (call_expression "ConcatenateMagickString(param_5,pcVar5 + 1,0x1000)" identifier (argument_list "(param_5,pcVar5 + 1,0x1000)" ( identifier , (binary_expression "pcVar5 + 1" identifier + number_literal) , number_literal ))) ;) (if_statement "if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }" if (parenthesized_expression "(local_1050[-1] == '%')" ( (binary_expression "local_1050[-1] == '%'" (subscript_expression "local_1050[-1]" identifier [ number_literal ]) == (char_literal "'%'" ' character ')) )) (compound_statement "{\n                  __s = __nptr;\n                }" { (expression_statement "__s = __nptr;" (assignment_expression "__s = __nptr" identifier = identifier) ;) })) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) })) }))) })) })) }) (else_clause "else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;" else (if_statement "if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;" if (parenthesized_expression "((cVar3 == 'o') || (cVar3 == 'x'))" ( (binary_expression "(cVar3 == 'o') || (cVar3 == 'x')" (parenthesized_expression "(cVar3 == 'o')" ( (binary_expression "cVar3 == 'o'" identifier == (char_literal "'o'" ' character ')) )) || (parenthesized_expression "(cVar3 == 'x')" ( (binary_expression "cVar3 == 'x'" identifier == (char_literal "'x'" ' character ')) ))) )) (goto_statement "goto LAB_0021b85d;" goto statement_identifier ;)))))) (labeled_statement "LAB_0021b8da:\n      __s = strchr(__s + 1,0x25);" statement_identifier : (expression_statement "__s = strchr(__s + 1,0x25);" (assignment_expression "__s = strchr(__s + 1,0x25)" identifier = (call_expression "strchr(__s + 1,0x25)" identifier (argument_list "(__s + 1,0x25)" ( (binary_expression "__s + 1" identifier + number_literal) , number_literal )))) ;)) }) while (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }" { (expression_statement "cVar3 = *param_5;" (assignment_expression "cVar3 = *param_5" identifier = (pointer_expression "*param_5" * identifier)) ;) (expression_statement "local_1050 = param_5;" (assignment_expression "local_1050 = param_5" identifier = identifier) ;) (while_statement "while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }" while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }" { (if_statement "if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }" if (parenthesized_expression "((cVar3 == '%') && (local_1050[1] == '%'))" ( (binary_expression "(cVar3 == '%') && (local_1050[1] == '%')" (parenthesized_expression "(cVar3 == '%')" ( (binary_expression "cVar3 == '%'" identifier == (char_literal "'%'" ' character ')) )) && (parenthesized_expression "(local_1050[1] == '%')" ( (binary_expression "local_1050[1] == '%'" (subscript_expression "local_1050[1]" identifier [ number_literal ]) == (char_literal "'%'" ' character ')) ))) )) (compound_statement "{\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }" { (expression_statement "CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));" (call_expression "CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5))" identifier (argument_list "(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5))" ( identifier , (binary_expression "local_1050 + 1" identifier + number_literal) , (binary_expression "0x1000 - ((long)local_1050 - (long)param_5)" number_literal - (parenthesized_expression "((long)local_1050 - (long)param_5)" ( (binary_expression "(long)local_1050 - (long)param_5" (cast_expression "(long)local_1050" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)param_5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) ))) ;) })) (expression_statement "cVar3 = local_1050[1];" (assignment_expression "cVar3 = local_1050[1]" identifier = (subscript_expression "local_1050[1]" identifier [ number_literal ])) ;) (expression_statement "local_1050 = local_1050 + 1;" (assignment_expression "local_1050 = local_1050 + 1" identifier = (binary_expression "local_1050 + 1" identifier + number_literal)) ;) })) (goto_statement "goto LAB_0021ba47;" goto statement_identifier ;) })) })) (expression_statement "CopyMagickString(param_5,param_3,0x1000);" (call_expression "CopyMagickString(param_5,param_3,0x1000)" identifier (argument_list "(param_5,param_3,0x1000)" ( identifier , identifier , number_literal ))) ;) (labeled_statement "LAB_0021ba47:\n  uVar8 = 0xffffffffffffffff;" statement_identifier : (expression_statement "uVar8 = 0xffffffffffffffff;" (assignment_expression "uVar8 = 0xffffffffffffffff" identifier = number_literal) ;)) (do_statement "do {\n    if (uVar8 == 0) break;\n    uVar8 = uVar8 - 1;\n    cVar3 = *param_5;\n    param_5 = param_5 + (ulong)bVar11 * -2 + 1;\n  } while (cVar3 != '\0');" do (compound_statement "{\n    if (uVar8 == 0) break;\n    uVar8 = uVar8 - 1;\n    cVar3 = *param_5;\n    param_5 = param_5 + (ulong)bVar11 * -2 + 1;\n  }" { (if_statement "if (uVar8 == 0) break;" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar8 = uVar8 - 1;" (assignment_expression "uVar8 = uVar8 - 1" identifier = (binary_expression "uVar8 - 1" identifier - number_literal)) ;) (expression_statement "cVar3 = *param_5;" (assignment_expression "cVar3 = *param_5" identifier = (pointer_expression "*param_5" * identifier)) ;) (expression_statement "param_5 = param_5 + (ulong)bVar11 * -2 + 1;" (assignment_expression "param_5 = param_5 + (ulong)bVar11 * -2 + 1" identifier = (binary_expression "param_5 + (ulong)bVar11 * -2 + 1" (binary_expression "param_5 + (ulong)bVar11 * -2" identifier + (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return ~uVar8 - 1;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return ~uVar8 - 1;\n  }" { (return_statement "return ~uVar8 - 1;" return (binary_expression "~uVar8 - 1" (unary_expression "~uVar8" ~ identifier) - number_literal) ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , 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 = BOOL) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT )))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression (unary_expression - IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ))) )))) , (binary_expression LIT - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression (unary_expression - IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ))) )))) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = BOOL) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == (char_literal ' character ')) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression IDENT == (char_literal ' escape_sequence '))) ))) )) (break_statement break ;)) })) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( 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 = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression (unary_expression - IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ))) )))) , IDENT , (binary_expression LIT - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression (unary_expression - IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ))) )))) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_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)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_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)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = BOOL) ;) })) }))) })) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) || (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) ))) )) (goto_statement goto statement_identifier ;)))))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT )))) ;)) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , (binary_expression LIT - (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ))) ))) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (goto_statement goto statement_identifier ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_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)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return (binary_expression (unary_expression ~ IDENT) - LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "long InterpretImageFilename\n               (long param_1,long param_2,char *param_3,undefined4 param_4,char *param_5,\n               undefined8 param_6)\n\n{\n  char *__nptr;\n  char cVar1;\n  bool bVar2;\n  char cVar3;\n  int iVar4;\n  char *__s;\n  char *pcVar5;\n  char *pcVar6;\n  long lVar7;\n  ulong uVar8;\n  long lVar9;\n  char *pcVar10;\n  long in_FS_OFFSET;\n  byte bVar11;\n  long local_1098;\n  long local_1090;\n  char *local_1050;\n  char local_1048 [4104];\n  long local_40;\n  \n  bVar11 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  CopyMagickString(param_5,param_3,0x1000);\n  __s = strchr(param_3,0x25);\n  if (__s != (char *)0x0) {\n    local_1090 = 0;\n    bVar2 = false;\n    do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);\n    if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }\n  CopyMagickString(param_5,param_3,0x1000);\nLAB_0021ba47:\n  uVar8 = 0xffffffffffffffff;\n  do {\n    if (uVar8 == 0) break;\n    uVar8 = uVar8 - 1;\n    cVar3 = *param_5;\n    param_5 = param_5 + (ulong)bVar11 * -2 + 1;\n  } while (cVar3 != '\0');\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return ~uVar8 - 1;\n  }\n                    \n  __stack_chk_fail();\n}" (sized_type_specifier "long" (long "long")) (function_declarator "InterpretImageFilename\n               (long param_1,long param_2,char *param_3,undefined4 param_4,char *param_5,\n               undefined8 param_6)" (identifier "InterpretImageFilename") (parameter_list "(long param_1,long param_2,char *param_3,undefined4 param_4,char *param_5,\n               undefined8 param_6)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "char *param_5" (primitive_type "char") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "undefined8 param_6" (type_identifier "undefined8") (identifier "param_6")) () ")"))) (compound_statement "{\n  char *__nptr;\n  char cVar1;\n  bool bVar2;\n  char cVar3;\n  int iVar4;\n  char *__s;\n  char *pcVar5;\n  char *pcVar6;\n  long lVar7;\n  ulong uVar8;\n  long lVar9;\n  char *pcVar10;\n  long in_FS_OFFSET;\n  byte bVar11;\n  long local_1098;\n  long local_1090;\n  char *local_1050;\n  char local_1048 [4104];\n  long local_40;\n  \n  bVar11 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  CopyMagickString(param_5,param_3,0x1000);\n  __s = strchr(param_3,0x25);\n  if (__s != (char *)0x0) {\n    local_1090 = 0;\n    bVar2 = false;\n    do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);\n    if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }\n  CopyMagickString(param_5,param_3,0x1000);\nLAB_0021ba47:\n  uVar8 = 0xffffffffffffffff;\n  do {\n    if (uVar8 == 0) break;\n    uVar8 = uVar8 - 1;\n    cVar3 = *param_5;\n    param_5 = param_5 + (ulong)bVar11 * -2 + 1;\n  } while (cVar3 != '\0');\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return ~uVar8 - 1;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "char *__nptr;" (primitive_type "char") (pointer_declarator "*__nptr" (* "*") (identifier "__nptr")) (; ";")) (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "long lVar7;" (sized_type_specifier "long" (long "long")) (identifier "lVar7") (; ";")) (declaration "ulong uVar8;" (type_identifier "ulong") (identifier "uVar8") (; ";")) (declaration "long lVar9;" (sized_type_specifier "long" (long "long")) (identifier "lVar9") (; ";")) (declaration "char *pcVar10;" (primitive_type "char") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "byte bVar11;" (type_identifier "byte") (identifier "bVar11") (; ";")) (declaration "long local_1098;" (sized_type_specifier "long" (long "long")) (identifier "local_1098") (; ";")) (declaration "long local_1090;" (sized_type_specifier "long" (long "long")) (identifier "local_1090") (; ";")) (declaration "char *local_1050;" (primitive_type "char") (pointer_declarator "*local_1050" (* "*") (identifier "local_1050")) (; ";")) (declaration "char local_1048 [4104];" (primitive_type "char") (array_declarator "local_1048 [4104]" (identifier "local_1048") ([ "[") (number_literal "4104") (] "]")) (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "bVar11 = 0;" (assignment_expression "bVar11 = 0" (identifier "bVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "CopyMagickString(param_5,param_3,0x1000);" (call_expression "CopyMagickString(param_5,param_3,0x1000)" (identifier "CopyMagickString") (argument_list "(param_5,param_3,0x1000)" (( "(") (identifier "param_5") (, ",") (identifier "param_3") (, ",") (number_literal "0x1000") () ")"))) (; ";")) (expression_statement "__s = strchr(param_3,0x25);" (assignment_expression "__s = strchr(param_3,0x25)" (identifier "__s") (= "=") (call_expression "strchr(param_3,0x25)" (identifier "strchr") (argument_list "(param_3,0x25)" (( "(") (identifier "param_3") (, ",") (number_literal "0x25") () ")")))) (; ";")) (if_statement "if (__s != (char *)0x0) {\n    local_1090 = 0;\n    bVar2 = false;\n    do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);\n    if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }" (if "if") (parenthesized_expression "(__s != (char *)0x0)" (( "(") (binary_expression "__s != (char *)0x0" (identifier "__s") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    local_1090 = 0;\n    bVar2 = false;\n    do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);\n    if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }\n  }" ({ "{") (expression_statement "local_1090 = 0;" (assignment_expression "local_1090 = 0" (identifier "local_1090") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (do_statement "do {\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    } while (__s != (char *)0x0);" (do "do") (compound_statement "{\n      __nptr = __s + 1;\n      local_1050 = __nptr;\n      if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }\n      local_1098 = 0;\n      if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }\n      pcVar6 = local_1050;\n      cVar3 = *local_1050;\n      if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;\nLAB_0021b8da:\n      __s = strchr(__s + 1,0x25);\n    }" ({ "{") (expression_statement "__nptr = __s + 1;" (assignment_expression "__nptr = __s + 1" (identifier "__nptr") (= "=") (binary_expression "__s + 1" (identifier "__s") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_1050 = __nptr;" (assignment_expression "local_1050 = __nptr" (identifier "local_1050") (= "=") (identifier "__nptr")) (; ";")) (if_statement "if (__s[1] == '%') {\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }" (if "if") (parenthesized_expression "(__s[1] == '%')" (( "(") (binary_expression "__s[1] == '%'" (subscript_expression "__s[1]" (identifier "__s") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'%'" (' "'") (character "%") (' "'"))) () ")")) (compound_statement "{\n        __s = __s + 2;\n        goto LAB_0021b8da;\n      }" ({ "{") (expression_statement "__s = __s + 2;" (assignment_expression "__s = __s + 2" (identifier "__s") (= "=") (binary_expression "__s + 2" (identifier "__s") (+ "+") (number_literal "2"))) (; ";")) (goto_statement "goto LAB_0021b8da;" (goto "goto") (statement_identifier "LAB_0021b8da") (; ";")) (} "}"))) (expression_statement "local_1098 = 0;" (assignment_expression "local_1098 = 0" (identifier "local_1098") (= "=") (number_literal "0")) (; ";")) (if_statement "if (__s[1] == '0') {\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }" (if "if") (parenthesized_expression "(__s[1] == '0')" (( "(") (binary_expression "__s[1] == '0'" (subscript_expression "__s[1]" (identifier "__s") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (compound_statement "{\n        local_1098 = strtol(__nptr,&local_1050,10);\n      }" ({ "{") (expression_statement "local_1098 = strtol(__nptr,&local_1050,10);" (assignment_expression "local_1098 = strtol(__nptr,&local_1050,10)" (identifier "local_1098") (= "=") (call_expression "strtol(__nptr,&local_1050,10)" (identifier "strtol") (argument_list "(__nptr,&local_1050,10)" (( "(") (identifier "__nptr") (, ",") (pointer_expression "&local_1050" (& "&") (identifier "local_1050")) (, ",") (number_literal "10") () ")")))) (; ";")) (} "}"))) (expression_statement "pcVar6 = local_1050;" (assignment_expression "pcVar6 = local_1050" (identifier "pcVar6") (= "=") (identifier "local_1050")) (; ";")) (expression_statement "cVar3 = *local_1050;" (assignment_expression "cVar3 = *local_1050" (identifier "cVar3") (= "=") (pointer_expression "*local_1050" (* "*") (identifier "local_1050"))) (; ";")) (if_statement "if (cVar3 == 'd') {\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }\n      else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;" (if "if") (parenthesized_expression "(cVar3 == 'd')" (( "(") (binary_expression "cVar3 == 'd'" (identifier "cVar3") (== "==") (char_literal "'d'" (' "'") (character "d") (' "'"))) () ")")) (compound_statement "{\nLAB_0021b85d:\n        cVar3 = local_1050[1];\n        local_1050[1] = '\0';\n        local_1050 = local_1050 + 1;\n        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);\n        local_1090 = (local_1090 - local_1098) + 4;\n        *local_1050 = cVar3;\n        ConcatenateMagickString(param_5,local_1050,0x1000);\n        if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }\n        bVar2 = true;\n      }" ({ "{") (labeled_statement "LAB_0021b85d:\n        cVar3 = local_1050[1];" (statement_identifier "LAB_0021b85d") (: ":") (expression_statement "cVar3 = local_1050[1];" (assignment_expression "cVar3 = local_1050[1]" (identifier "cVar3") (= "=") (subscript_expression "local_1050[1]" (identifier "local_1050") ([ "[") (number_literal "1") (] "]"))) (; ";"))) (expression_statement "local_1050[1] = '\0';" (assignment_expression "local_1050[1] = '\0'" (subscript_expression "local_1050[1]" (identifier "local_1050") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "local_1050 = local_1050 + 1;" (assignment_expression "local_1050 = local_1050 + 1" (identifier "local_1050") (= "=") (binary_expression "local_1050 + 1" (identifier "local_1050") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);" (call_expression "FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4)" (identifier "FormatLocaleString") (argument_list "(param_5 + (long)(__s + (-local_1090 - (long)param_3)),\n                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4)" (( "(") (binary_expression "param_5 + (long)(__s + (-local_1090 - (long)param_3))" (identifier "param_5") (+ "+") (cast_expression "(long)(__s + (-local_1090 - (long)param_3))" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(__s + (-local_1090 - (long)param_3))" (( "(") (binary_expression "__s + (-local_1090 - (long)param_3)" (identifier "__s") (+ "+") (parenthesized_expression "(-local_1090 - (long)param_3)" (( "(") (binary_expression "-local_1090 - (long)param_3" (unary_expression "-local_1090" (- "-") (identifier "local_1090")) (- "-") (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3"))) () ")"))) () ")")))) (, ",") (binary_expression "0x1000 - (long)(__s + (-local_1090 - (long)param_3))" (number_literal "0x1000") (- "-") (cast_expression "(long)(__s + (-local_1090 - (long)param_3))" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(__s + (-local_1090 - (long)param_3))" (( "(") (binary_expression "__s + (-local_1090 - (long)param_3)" (identifier "__s") (+ "+") (parenthesized_expression "(-local_1090 - (long)param_3)" (( "(") (binary_expression "-local_1090 - (long)param_3" (unary_expression "-local_1090" (- "-") (identifier "local_1090")) (- "-") (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3"))) () ")"))) () ")")))) (, ",") (identifier "__s") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "local_1090 = (local_1090 - local_1098) + 4;" (assignment_expression "local_1090 = (local_1090 - local_1098) + 4" (identifier "local_1090") (= "=") (binary_expression "(local_1090 - local_1098) + 4" (parenthesized_expression "(local_1090 - local_1098)" (( "(") (binary_expression "local_1090 - local_1098" (identifier "local_1090") (- "-") (identifier "local_1098")) () ")")) (+ "+") (number_literal "4"))) (; ";")) (expression_statement "*local_1050 = cVar3;" (assignment_expression "*local_1050 = cVar3" (pointer_expression "*local_1050" (* "*") (identifier "local_1050")) (= "=") (identifier "cVar3")) (; ";")) (expression_statement "ConcatenateMagickString(param_5,local_1050,0x1000);" (call_expression "ConcatenateMagickString(param_5,local_1050,0x1000)" (identifier "ConcatenateMagickString") (argument_list "(param_5,local_1050,0x1000)" (( "(") (identifier "param_5") (, ",") (identifier "local_1050") (, ",") (number_literal "0x1000") () ")"))) (; ";")) (if_statement "if (local_1050[-1] == '%') {\n          __s = __nptr;\n        }" (if "if") (parenthesized_expression "(local_1050[-1] == '%')" (( "(") (binary_expression "local_1050[-1] == '%'" (subscript_expression "local_1050[-1]" (identifier "local_1050") ([ "[") (number_literal "-1") (] "]")) (== "==") (char_literal "'%'" (' "'") (character "%") (' "'"))) () ")")) (compound_statement "{\n          __s = __nptr;\n        }" ({ "{") (expression_statement "__s = __nptr;" (assignment_expression "__s = __nptr" (identifier "__s") (= "=") (identifier "__nptr")) (; ";")) (} "}"))) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (} "}")) (else_clause "else if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;" (else "else") (if_statement "if (cVar3 < 'e') {\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }\n      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;" (if "if") (parenthesized_expression "(cVar3 < 'e')" (( "(") (binary_expression "cVar3 < 'e'" (identifier "cVar3") (< "<") (char_literal "'e'" (' "'") (character "e") (' "'"))) () ")")) (compound_statement "{\n        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }\n      }" ({ "{") (if_statement "if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }" (if "if") (parenthesized_expression "((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0))" (( "(") (binary_expression "(cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)" (parenthesized_expression "(cVar3 == '[')" (( "(") (binary_expression "cVar3 == '['" (identifier "cVar3") (== "==") (char_literal "'['" (' "'") (character "[") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)" (( "(") (comma_expression "pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0" (assignment_expression "pcVar5 = strchr(__s,0x5d)" (identifier "pcVar5") (= "=") (call_expression "strchr(__s,0x5d)" (identifier "strchr") (argument_list "(__s,0x5d)" (( "(") (identifier "__s") (, ",") (number_literal "0x5d") () ")")))) (, ",") (binary_expression "pcVar5 != (char *)0x0" (identifier "pcVar5") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n          pcVar5 = pcVar6 + 1;\n          cVar3 = pcVar6[1];\n          if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }\n          local_1048[lVar7] = '\0';\n          iVar4 = LocaleNCompare(local_1048,"filename:",9);\n          if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }\n        }" ({ "{") (expression_statement "pcVar5 = pcVar6 + 1;" (assignment_expression "pcVar5 = pcVar6 + 1" (identifier "pcVar5") (= "=") (binary_expression "pcVar6 + 1" (identifier "pcVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar3 = pcVar6[1];" (assignment_expression "cVar3 = pcVar6[1]" (identifier "cVar3") (= "=") (subscript_expression "pcVar6[1]" (identifier "pcVar6") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (cVar3 == '\0') {\n            lVar7 = 0;\n          }\n          else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }" (if "if") (parenthesized_expression "(cVar3 == '\0')" (( "(") (binary_expression "cVar3 == '\0'" (identifier "cVar3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n            lVar7 = 0;\n          }" ({ "{") (expression_statement "lVar7 = 0;" (assignment_expression "lVar7 = 0" (identifier "lVar7") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }" (else "else") (compound_statement "{\n            lVar9 = 1;\n            lVar7 = 0;\n            while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }\n          }" ({ "{") (expression_statement "lVar9 = 1;" (assignment_expression "lVar9 = 1" (identifier "lVar9") (= "=") (number_literal "1")) (; ";")) (expression_statement "lVar7 = 0;" (assignment_expression "lVar7 = 0" (identifier "lVar7") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n              if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }\n              if (lVar9 < 1) break;\n              pcVar5 = pcVar5 + 1;\n              local_1048[lVar7] = cVar3;\n              lVar7 = lVar7 + 1;\n              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;\n            }" ({ "{") (if_statement "if (cVar3 == '[') {\n                lVar9 = lVar9 + 1;\n              }\n              else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }" (if "if") (parenthesized_expression "(cVar3 == '[')" (( "(") (binary_expression "cVar3 == '['" (identifier "cVar3") (== "==") (char_literal "'['" (' "'") (character "[") (' "'"))) () ")")) (compound_statement "{\n                lVar9 = lVar9 + 1;\n              }" ({ "{") (expression_statement "lVar9 = lVar9 + 1;" (assignment_expression "lVar9 = lVar9 + 1" (identifier "lVar9") (= "=") (binary_expression "lVar9 + 1" (identifier "lVar9") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }" (else "else") (compound_statement "{\n                lVar9 = lVar9 - (ulong)(cVar3 == ']');\n              }" ({ "{") (expression_statement "lVar9 = lVar9 - (ulong)(cVar3 == ']');" (assignment_expression "lVar9 = lVar9 - (ulong)(cVar3 == ']')" (identifier "lVar9") (= "=") (binary_expression "lVar9 - (ulong)(cVar3 == ']')" (identifier "lVar9") (- "-") (call_expression "(ulong)(cVar3 == ']')" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(cVar3 == ']')" (( "(") (binary_expression "cVar3 == ']'" (identifier "cVar3") (== "==") (char_literal "']'" (' "'") (character "]") (' "'"))) () ")"))))) (; ";")) (} "}")))) (if_statement "if (lVar9 < 1) break;" (if "if") (parenthesized_expression "(lVar9 < 1)" (( "(") (binary_expression "lVar9 < 1" (identifier "lVar9") (< "<") (number_literal "1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + 1" (identifier "pcVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_1048[lVar7] = cVar3;" (assignment_expression "local_1048[lVar7] = cVar3" (subscript_expression "local_1048[lVar7]" (identifier "local_1048") ([ "[") (identifier "lVar7") (] "]")) (= "=") (identifier "cVar3")) (; ";")) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" (identifier "lVar7") (= "=") (binary_expression "lVar7 + 1" (identifier "lVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;" (if "if") (parenthesized_expression "((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0'))" (( "(") (binary_expression "(pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')" (parenthesized_expression "(pcVar5 == pcVar6 + 0x1000)" (( "(") (binary_expression "pcVar5 == pcVar6 + 0x1000" (identifier "pcVar5") (== "==") (binary_expression "pcVar6 + 0x1000" (identifier "pcVar6") (+ "+") (number_literal "0x1000"))) () ")")) (|| "||") (parenthesized_expression "(cVar3 = *pcVar5, cVar3 == '\0')" (( "(") (comma_expression "cVar3 = *pcVar5, cVar3 == '\0'" (assignment_expression "cVar3 = *pcVar5" (identifier "cVar3") (= "=") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5"))) (, ",") (binary_expression "cVar3 == '\0'" (identifier "cVar3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}"))) (} "}")))) (expression_statement "local_1048[lVar7] = '\0';" (assignment_expression "local_1048[lVar7] = '\0'" (subscript_expression "local_1048[lVar7]" (identifier "local_1048") ([ "[") (identifier "lVar7") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "iVar4 = LocaleNCompare(local_1048,"filename:",9);" (assignment_expression "iVar4 = LocaleNCompare(local_1048,"filename:",9)" (identifier "iVar4") (= "=") (call_expression "LocaleNCompare(local_1048,"filename:",9)" (identifier "LocaleNCompare") (argument_list "(local_1048,"filename:",9)" (( "(") (identifier "local_1048") (, ",") (string_literal ""filename:"" (" """) (string_content "filename:") (" """)) (, ",") (number_literal "9") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }\n          }" ({ "{") (if_statement "if (param_2 == 0) {\n              if (param_1 != 0) goto LAB_0021bace;\n            }\n            else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              if (param_1 != 0) goto LAB_0021bace;\n            }" ({ "{") (if_statement "if (param_1 != 0) goto LAB_0021bace;" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0021bace;" (goto "goto") (statement_identifier "LAB_0021bace") (; ";"))) (} "}")) (else_clause "else {\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }" (else "else") (compound_statement "{\n              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);\n              if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }\n              if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }\n            }" ({ "{") (expression_statement "pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);" (assignment_expression "pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6)" (identifier "pcVar6") (= "=") (cast_expression "(char *)GetImageProperty(param_2,local_1048,param_6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetImageProperty(param_2,local_1048,param_6)" (identifier "GetImageProperty") (argument_list "(param_2,local_1048,param_6)" (( "(") (identifier "param_2") (, ",") (identifier "local_1048") (, ",") (identifier "param_6") () ")"))))) (; ";")) (if_statement "if (((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)) {\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }" (if "if") (parenthesized_expression "(((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0))" (( "(") (binary_expression "((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&\n                 (param_1 != 0)" (parenthesized_expression "((pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0))" (( "(") (binary_expression "(pcVar6 == (char *)0x0) &&\n                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)" (parenthesized_expression "(pcVar6 == (char *)0x0)" (( "(") (binary_expression "pcVar6 == (char *)0x0" (identifier "pcVar6") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)" (( "(") (comma_expression "pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0" (assignment_expression "pcVar6 = (char *)GetImageArtifact(param_2,local_1048)" (identifier "pcVar6") (= "=") (cast_expression "(char *)GetImageArtifact(param_2,local_1048)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetImageArtifact(param_2,local_1048)" (identifier "GetImageArtifact") (argument_list "(param_2,local_1048)" (( "(") (identifier "param_2") (, ",") (identifier "local_1048") () ")"))))) (, ",") (binary_expression "pcVar6 == (char *)0x0" (identifier "pcVar6") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\nLAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);\n              }" ({ "{") (labeled_statement "LAB_0021bace:\n                pcVar6 = (char *)GetImageOption(param_1,local_1048);" (statement_identifier "LAB_0021bace") (: ":") (expression_statement "pcVar6 = (char *)GetImageOption(param_1,local_1048);" (assignment_expression "pcVar6 = (char *)GetImageOption(param_1,local_1048)" (identifier "pcVar6") (= "=") (cast_expression "(char *)GetImageOption(param_1,local_1048)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetImageOption(param_1,local_1048)" (identifier "GetImageOption") (argument_list "(param_1,local_1048)" (( "(") (identifier "param_1") (, ",") (identifier "local_1048") () ")"))))) (; ";"))) (} "}"))) (if_statement "if (pcVar6 != (char *)0x0) {\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }" (if "if") (parenthesized_expression "(pcVar6 != (char *)0x0)" (( "(") (binary_expression "pcVar6 != (char *)0x0" (identifier "pcVar6") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                cVar3 = local_1050[-1];\n                local_1050[-1] = '\0';\n                local_1050 = local_1050 + -1;\n                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));\n                lVar7 = -1;\n                pcVar10 = local_1048;\n                do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                lVar9 = -1;\n                do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');\n                local_1090 = (local_1090 - lVar7) + 3 + lVar9;\n                *local_1050 = cVar3;\n                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);\n                if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }\n                bVar2 = true;\n              }" ({ "{") (expression_statement "cVar3 = local_1050[-1];" (assignment_expression "cVar3 = local_1050[-1]" (identifier "cVar3") (= "=") (subscript_expression "local_1050[-1]" (identifier "local_1050") ([ "[") (number_literal "-1") (] "]"))) (; ";")) (expression_statement "local_1050[-1] = '\0';" (assignment_expression "local_1050[-1] = '\0'" (subscript_expression "local_1050[-1]" (identifier "local_1050") ([ "[") (number_literal "-1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "local_1050 = local_1050 + -1;" (assignment_expression "local_1050 = local_1050 + -1" (identifier "local_1050") (= "=") (binary_expression "local_1050 + -1" (identifier "local_1050") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));" (call_expression "CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)))" (identifier "CopyMagickString") (argument_list "(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,\n                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)))" (( "(") (binary_expression "param_5 + (long)(__s + (-local_1090 - (long)param_3))" (identifier "param_5") (+ "+") (cast_expression "(long)(__s + (-local_1090 - (long)param_3))" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(__s + (-local_1090 - (long)param_3))" (( "(") (binary_expression "__s + (-local_1090 - (long)param_3)" (identifier "__s") (+ "+") (parenthesized_expression "(-local_1090 - (long)param_3)" (( "(") (binary_expression "-local_1090 - (long)param_3" (unary_expression "-local_1090" (- "-") (identifier "local_1090")) (- "-") (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3"))) () ")"))) () ")")))) (, ",") (identifier "pcVar6") (, ",") (binary_expression "0x1000 - (long)(__s + (-local_1090 - (long)param_3))" (number_literal "0x1000") (- "-") (cast_expression "(long)(__s + (-local_1090 - (long)param_3))" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(__s + (-local_1090 - (long)param_3))" (( "(") (binary_expression "__s + (-local_1090 - (long)param_3)" (identifier "__s") (+ "+") (parenthesized_expression "(-local_1090 - (long)param_3)" (( "(") (binary_expression "-local_1090 - (long)param_3" (unary_expression "-local_1090" (- "-") (identifier "local_1090")) (- "-") (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3"))) () ")"))) () ")")))) () ")"))) (; ";")) (expression_statement "lVar7 = -1;" (assignment_expression "lVar7 = -1" (identifier "lVar7") (= "=") (number_literal "-1")) (; ";")) (expression_statement "pcVar10 = local_1048;" (assignment_expression "pcVar10 = local_1048" (identifier "pcVar10") (= "=") (identifier "local_1048")) (; ";")) (do_statement "do {\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');" (do "do") (compound_statement "{\n                  if (lVar7 == 0) break;\n                  lVar7 = lVar7 + -1;\n                  cVar1 = *pcVar10;\n                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;\n                }" ({ "{") (if_statement "if (lVar7 == 0) break;" (if "if") (parenthesized_expression "(lVar7 == 0)" (( "(") (binary_expression "lVar7 == 0" (identifier "lVar7") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar7 = lVar7 + -1;" (assignment_expression "lVar7 = lVar7 + -1" (identifier "lVar7") (= "=") (binary_expression "lVar7 + -1" (identifier "lVar7") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "cVar1 = *pcVar10;" (assignment_expression "cVar1 = *pcVar10" (identifier "cVar1") (= "=") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10"))) (; ";")) (expression_statement "pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;" (assignment_expression "pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1" (identifier "pcVar10") (= "=") (binary_expression "pcVar10 + (ulong)bVar11 * -2 + 1" (binary_expression "pcVar10 + (ulong)bVar11 * -2" (identifier "pcVar10") (+ "+") (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar11")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "lVar9 = -1;" (assignment_expression "lVar9 = -1" (identifier "lVar9") (= "=") (number_literal "-1")) (; ";")) (do_statement "do {\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                } while (cVar1 != '\0');" (do "do") (compound_statement "{\n                  if (lVar9 == 0) break;\n                  lVar9 = lVar9 + -1;\n                  cVar1 = *pcVar6;\n                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;\n                }" ({ "{") (if_statement "if (lVar9 == 0) break;" (if "if") (parenthesized_expression "(lVar9 == 0)" (( "(") (binary_expression "lVar9 == 0" (identifier "lVar9") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar9 = lVar9 + -1;" (assignment_expression "lVar9 = lVar9 + -1" (identifier "lVar9") (= "=") (binary_expression "lVar9 + -1" (identifier "lVar9") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "cVar1 = *pcVar6;" (assignment_expression "cVar1 = *pcVar6" (identifier "cVar1") (= "=") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6"))) (; ";")) (expression_statement "pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;" (assignment_expression "pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1" (identifier "pcVar6") (= "=") (binary_expression "pcVar6 + (ulong)bVar11 * -2 + 1" (binary_expression "pcVar6 + (ulong)bVar11 * -2" (identifier "pcVar6") (+ "+") (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar11")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "local_1090 = (local_1090 - lVar7) + 3 + lVar9;" (assignment_expression "local_1090 = (local_1090 - lVar7) + 3 + lVar9" (identifier "local_1090") (= "=") (binary_expression "(local_1090 - lVar7) + 3 + lVar9" (binary_expression "(local_1090 - lVar7) + 3" (parenthesized_expression "(local_1090 - lVar7)" (( "(") (binary_expression "local_1090 - lVar7" (identifier "local_1090") (- "-") (identifier "lVar7")) () ")")) (+ "+") (number_literal "3")) (+ "+") (identifier "lVar9"))) (; ";")) (expression_statement "*local_1050 = cVar3;" (assignment_expression "*local_1050 = cVar3" (pointer_expression "*local_1050" (* "*") (identifier "local_1050")) (= "=") (identifier "cVar3")) (; ";")) (expression_statement "ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);" (call_expression "ConcatenateMagickString(param_5,pcVar5 + 1,0x1000)" (identifier "ConcatenateMagickString") (argument_list "(param_5,pcVar5 + 1,0x1000)" (( "(") (identifier "param_5") (, ",") (binary_expression "pcVar5 + 1" (identifier "pcVar5") (+ "+") (number_literal "1")) (, ",") (number_literal "0x1000") () ")"))) (; ";")) (if_statement "if (local_1050[-1] == '%') {\n                  __s = __nptr;\n                }" (if "if") (parenthesized_expression "(local_1050[-1] == '%')" (( "(") (binary_expression "local_1050[-1] == '%'" (subscript_expression "local_1050[-1]" (identifier "local_1050") ([ "[") (number_literal "-1") (] "]")) (== "==") (char_literal "'%'" (' "'") (character "%") (' "'"))) () ")")) (compound_statement "{\n                  __s = __nptr;\n                }" ({ "{") (expression_statement "__s = __nptr;" (assignment_expression "__s = __nptr" (identifier "__s") (= "=") (identifier "__nptr")) (; ";")) (} "}"))) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (} "}"))) (} "}")))) (} "}"))) (} "}"))) (} "}")) (else_clause "else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;" (else "else") (if_statement "if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;" (if "if") (parenthesized_expression "((cVar3 == 'o') || (cVar3 == 'x'))" (( "(") (binary_expression "(cVar3 == 'o') || (cVar3 == 'x')" (parenthesized_expression "(cVar3 == 'o')" (( "(") (binary_expression "cVar3 == 'o'" (identifier "cVar3") (== "==") (char_literal "'o'" (' "'") (character "o") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(cVar3 == 'x')" (( "(") (binary_expression "cVar3 == 'x'" (identifier "cVar3") (== "==") (char_literal "'x'" (' "'") (character "x") (' "'"))) () ")"))) () ")")) (goto_statement "goto LAB_0021b85d;" (goto "goto") (statement_identifier "LAB_0021b85d") (; ";"))))))) (labeled_statement "LAB_0021b8da:\n      __s = strchr(__s + 1,0x25);" (statement_identifier "LAB_0021b8da") (: ":") (expression_statement "__s = strchr(__s + 1,0x25);" (assignment_expression "__s = strchr(__s + 1,0x25)" (identifier "__s") (= "=") (call_expression "strchr(__s + 1,0x25)" (identifier "strchr") (argument_list "(__s + 1,0x25)" (( "(") (binary_expression "__s + 1" (identifier "__s") (+ "+") (number_literal "1")) (, ",") (number_literal "0x25") () ")")))) (; ";"))) (} "}")) (while "while") (parenthesized_expression "(__s != (char *)0x0)" (( "(") (binary_expression "__s != (char *)0x0" (identifier "__s") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (if_statement "if (bVar2) {\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }" (if "if") (parenthesized_expression "(bVar2)" (( "(") (identifier "bVar2") () ")")) (compound_statement "{\n      cVar3 = *param_5;\n      local_1050 = param_5;\n      while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }\n      goto LAB_0021ba47;\n    }" ({ "{") (expression_statement "cVar3 = *param_5;" (assignment_expression "cVar3 = *param_5" (identifier "cVar3") (= "=") (pointer_expression "*param_5" (* "*") (identifier "param_5"))) (; ";")) (expression_statement "local_1050 = param_5;" (assignment_expression "local_1050 = param_5" (identifier "local_1050") (= "=") (identifier "param_5")) (; ";")) (while_statement "while (cVar3 != '\0') {\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }" (while "while") (parenthesized_expression "(cVar3 != '\0')" (( "(") (binary_expression "cVar3 != '\0'" (identifier "cVar3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }\n        cVar3 = local_1050[1];\n        local_1050 = local_1050 + 1;\n      }" ({ "{") (if_statement "if ((cVar3 == '%') && (local_1050[1] == '%')) {\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }" (if "if") (parenthesized_expression "((cVar3 == '%') && (local_1050[1] == '%'))" (( "(") (binary_expression "(cVar3 == '%') && (local_1050[1] == '%')" (parenthesized_expression "(cVar3 == '%')" (( "(") (binary_expression "cVar3 == '%'" (identifier "cVar3") (== "==") (char_literal "'%'" (' "'") (character "%") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(local_1050[1] == '%')" (( "(") (binary_expression "local_1050[1] == '%'" (subscript_expression "local_1050[1]" (identifier "local_1050") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'%'" (' "'") (character "%") (' "'"))) () ")"))) () ")")) (compound_statement "{\n          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));\n        }" ({ "{") (expression_statement "CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));" (call_expression "CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5))" (identifier "CopyMagickString") (argument_list "(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5))" (( "(") (identifier "local_1050") (, ",") (binary_expression "local_1050 + 1" (identifier "local_1050") (+ "+") (number_literal "1")) (, ",") (binary_expression "0x1000 - ((long)local_1050 - (long)param_5)" (number_literal "0x1000") (- "-") (parenthesized_expression "((long)local_1050 - (long)param_5)" (( "(") (binary_expression "(long)local_1050 - (long)param_5" (cast_expression "(long)local_1050" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "local_1050")) (- "-") (cast_expression "(long)param_5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_5"))) () ")"))) () ")"))) (; ";")) (} "}"))) (expression_statement "cVar3 = local_1050[1];" (assignment_expression "cVar3 = local_1050[1]" (identifier "cVar3") (= "=") (subscript_expression "local_1050[1]" (identifier "local_1050") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "local_1050 = local_1050 + 1;" (assignment_expression "local_1050 = local_1050 + 1" (identifier "local_1050") (= "=") (binary_expression "local_1050 + 1" (identifier "local_1050") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (goto_statement "goto LAB_0021ba47;" (goto "goto") (statement_identifier "LAB_0021ba47") (; ";")) (} "}"))) (} "}"))) (expression_statement "CopyMagickString(param_5,param_3,0x1000);" (call_expression "CopyMagickString(param_5,param_3,0x1000)" (identifier "CopyMagickString") (argument_list "(param_5,param_3,0x1000)" (( "(") (identifier "param_5") (, ",") (identifier "param_3") (, ",") (number_literal "0x1000") () ")"))) (; ";")) (labeled_statement "LAB_0021ba47:\n  uVar8 = 0xffffffffffffffff;" (statement_identifier "LAB_0021ba47") (: ":") (expression_statement "uVar8 = 0xffffffffffffffff;" (assignment_expression "uVar8 = 0xffffffffffffffff" (identifier "uVar8") (= "=") (number_literal "0xffffffffffffffff")) (; ";"))) (do_statement "do {\n    if (uVar8 == 0) break;\n    uVar8 = uVar8 - 1;\n    cVar3 = *param_5;\n    param_5 = param_5 + (ulong)bVar11 * -2 + 1;\n  } while (cVar3 != '\0');" (do "do") (compound_statement "{\n    if (uVar8 == 0) break;\n    uVar8 = uVar8 - 1;\n    cVar3 = *param_5;\n    param_5 = param_5 + (ulong)bVar11 * -2 + 1;\n  }" ({ "{") (if_statement "if (uVar8 == 0) break;" (if "if") (parenthesized_expression "(uVar8 == 0)" (( "(") (binary_expression "uVar8 == 0" (identifier "uVar8") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar8 = uVar8 - 1;" (assignment_expression "uVar8 = uVar8 - 1" (identifier "uVar8") (= "=") (binary_expression "uVar8 - 1" (identifier "uVar8") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar3 = *param_5;" (assignment_expression "cVar3 = *param_5" (identifier "cVar3") (= "=") (pointer_expression "*param_5" (* "*") (identifier "param_5"))) (; ";")) (expression_statement "param_5 = param_5 + (ulong)bVar11 * -2 + 1;" (assignment_expression "param_5 = param_5 + (ulong)bVar11 * -2 + 1" (identifier "param_5") (= "=") (binary_expression "param_5 + (ulong)bVar11 * -2 + 1" (binary_expression "param_5 + (ulong)bVar11 * -2" (identifier "param_5") (+ "+") (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar11")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar3 != '\0')" (( "(") (binary_expression "cVar3 != '\0'" (identifier "cVar3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return ~uVar8 - 1;\n  }" (if "if") (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return ~uVar8 - 1;\n  }" ({ "{") (return_statement "return ~uVar8 - 1;" (return "return") (binary_expression "~uVar8 - 1" (unary_expression "~uVar8" (~ "~") (identifier "uVar8")) (- "-") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": 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 */

size_t function_1
                 (type_1 *var_20,type_2 *var_19,char *format,int value,char *var_9,
                 type_3 *exception)

{
  char *__nptr;
  char var_25;
  long var_27;
  bool bVar3;
  char var_6;
  int var_18;
  char *var_4;
  char *var_13;
  char *var_14;
  long var_16;
  type_4 var_26;
  long var_15;
  char *var_24;
  long var_1;
  type_5 bVar12;
  long var_11;
  long var_10;
  char *var_7;
  char pattern [4096];
  
  bVar12 = 0;
  var_27 = *(long *)(var_1 + 0x28);
  var_2(var_9,format,0x1000);
  var_4 = var_3(format,0x25);
  if (var_4 != (char *)0x0) {
    var_10 = 0;
    bVar3 = false;
    do {
      __nptr = var_4 + 1;
      var_7 = __nptr;
      if (var_4[1] == '%') {
        var_4 = var_4 + 2;
        goto LAB_0021b8da;
      }
      var_11 = 0;
      if (var_4[1] == '0') {
        var_11 = var_5(__nptr,&var_7,10);
      }
      var_14 = var_7;
      var_6 = *var_7;
      if (var_6 == 'd') {
LAB_0021b85d:
        var_6 = var_7[1];
        var_7[1] = '\0';
        var_7 = var_7 + 1;
        var_8(var_9 + (long)(var_4 + (-var_10 - (long)format)),
                           0x1000 - (long)(var_4 + (-var_10 - (long)format)),var_4,
                           (type_4)(type_6)value);
        var_10 = (var_10 - var_11) + 4;
        *var_7 = var_6;
        var_12(var_9,var_7,0x1000);
        if (var_7[-1] == '%') {
          var_4 = __nptr;
        }
        bVar3 = true;
      }
      else if (var_6 < 'e') {
        if ((var_6 == '[') && (var_13 = var_3(var_4,0x5d), var_13 != (char *)0x0)) {
          var_13 = var_14 + 1;
          var_6 = var_14[1];
          if (var_6 == '\0') {
            var_16 = 0;
          }
          else {
            var_15 = 1;
            var_16 = 0;
            while( true ) {
              if (var_6 == '[') {
                var_15 = var_15 + 1;
              }
              else {
                var_15 = var_15 - (type_4)(var_6 == ']');
              }
              if (var_15 < 1) break;
              var_13 = var_13 + 1;
              pattern[var_16] = var_6;
              var_16 = var_16 + 1;
              if ((var_13 == var_14 + 0x1000) || (var_6 = *var_13, var_6 == '\0')) break;
            }
          }
          pattern[var_16] = '\0';
          var_18 = var_17(pattern,"filename:",9);
          if (var_18 == 0) {
            if (var_19 == (type_2 *)0x0) {
              if (var_20 != (type_1 *)0x0) goto LAB_0021bace;
            }
            else {
              var_14 = var_21(var_19,pattern,exception);
              if (((var_14 == (char *)0x0) &&
                  (var_14 = var_22(var_19,pattern), var_14 == (char *)0x0)) &&
                 (var_20 != (type_1 *)0x0)) {
LAB_0021bace:
                var_14 = var_23(var_20,pattern);
              }
              if (var_14 != (char *)0x0) {
                var_6 = var_7[-1];
                var_7[-1] = '\0';
                var_7 = var_7 + -1;
                var_2(var_9 + (long)(var_4 + (-var_10 - (long)format)),var_14,
                                 0x1000 - (long)(var_4 + (-var_10 - (long)format)));
                var_16 = -1;
                var_24 = pattern;
                do {
                  if (var_16 == 0) break;
                  var_16 = var_16 + -1;
                  var_25 = *var_24;
                  var_24 = var_24 + (type_4)bVar12 * -2 + 1;
                } while (var_25 != '\0');
                var_15 = -1;
                do {
                  if (var_15 == 0) break;
                  var_15 = var_15 + -1;
                  var_25 = *var_14;
                  var_14 = var_14 + (type_4)bVar12 * -2 + 1;
                } while (var_25 != '\0');
                var_10 = (var_10 - var_16) + 3 + var_15;
                *var_7 = var_6;
                var_12(var_9,var_13 + 1,0x1000);
                if (var_7[-1] == '%') {
                  var_4 = __nptr;
                }
                bVar3 = true;
              }
            }
          }
        }
      }
      else if ((var_6 == 'o') || (var_6 == 'x')) goto LAB_0021b85d;
LAB_0021b8da:
      var_4 = var_3(var_4 + 1,0x25);
    } while (var_4 != (char *)0x0);
    if (bVar3) {
      var_6 = *var_9;
      var_7 = var_9;
      while (var_6 != '\0') {
        if ((var_6 == '%') && (var_7[1] == '%')) {
          var_2(var_7,var_7 + 1,0x1000 - ((long)var_7 - (long)var_9));
        }
        var_6 = var_7[1];
        var_7 = var_7 + 1;
      }
      goto LAB_0021ba47;
    }
  }
  var_2(var_9,format,0x1000);
LAB_0021ba47:
  var_26 = 0xffffffffffffffff;
  do {
    if (var_26 == 0) break;
    var_26 = var_26 - 1;
    var_6 = *var_9;
    var_9 = var_9 + (type_4)bVar12 * -2 + 1;
  } while (var_6 != '\0');
  if (var_27 == *(long *)(var_1 + 0x28)) {
    return ~var_26 - 1;
  }
                    /* WARNING: Subroutine does not return */
  var_28();
}


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

long MASKED
               (long param_1,long param_2,char *param_3,undefined4 param_4,char *param_5,
               undefined8 param_6)

{
  char *__nptr;
  char cVar1;
  bool bVar2;
  char cVar3;
  int iVar4;
  char *__s;
  char *pcVar5;
  char *pcVar6;
  long lVar7;
  ulong uVar8;
  long lVar9;
  char *pcVar10;
  long in_FS_OFFSET;
  byte bVar11;
  long local_1098;
  long local_1090;
  char *local_1050;
  char local_1048 [4104];
  long local_40;
  
  bVar11 = 0;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  CopyMagickString(param_5,param_3,0x1000);
  __s = strchr(param_3,0x25);
  if (__s != (char *)0x0) {
    local_1090 = 0;
    bVar2 = false;
    do {
      __nptr = __s + 1;
      local_1050 = __nptr;
      if (__s[1] == '%') {
        __s = __s + 2;
        goto LAB_0021b8da;
      }
      local_1098 = 0;
      if (__s[1] == '0') {
        local_1098 = strtol(__nptr,&local_1050,10);
      }
      pcVar6 = local_1050;
      cVar3 = *local_1050;
      if (cVar3 == 'd') {
LAB_0021b85d:
        cVar3 = local_1050[1];
        local_1050[1] = '\0';
        local_1050 = local_1050 + 1;
        FormatLocaleString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),
                           0x1000 - (long)(__s + (-local_1090 - (long)param_3)),__s,param_4);
        local_1090 = (local_1090 - local_1098) + 4;
        *local_1050 = cVar3;
        ConcatenateMagickString(param_5,local_1050,0x1000);
        if (local_1050[-1] == '%') {
          __s = __nptr;
        }
        bVar2 = true;
      }
      else if (cVar3 < 'e') {
        if ((cVar3 == '[') && (pcVar5 = strchr(__s,0x5d), pcVar5 != (char *)0x0)) {
          pcVar5 = pcVar6 + 1;
          cVar3 = pcVar6[1];
          if (cVar3 == '\0') {
            lVar7 = 0;
          }
          else {
            lVar9 = 1;
            lVar7 = 0;
            while( true ) {
              if (cVar3 == '[') {
                lVar9 = lVar9 + 1;
              }
              else {
                lVar9 = lVar9 - (ulong)(cVar3 == ']');
              }
              if (lVar9 < 1) break;
              pcVar5 = pcVar5 + 1;
              local_1048[lVar7] = cVar3;
              lVar7 = lVar7 + 1;
              if ((pcVar5 == pcVar6 + 0x1000) || (cVar3 = *pcVar5, cVar3 == '\0')) break;
            }
          }
          local_1048[lVar7] = '\0';
          iVar4 = LocaleNCompare(local_1048,"filename:",9);
          if (iVar4 == 0) {
            if (param_2 == 0) {
              if (param_1 != 0) goto LAB_0021bace;
            }
            else {
              pcVar6 = (char *)GetImageProperty(param_2,local_1048,param_6);
              if (((pcVar6 == (char *)0x0) &&
                  (pcVar6 = (char *)GetImageArtifact(param_2,local_1048), pcVar6 == (char *)0x0)) &&
                 (param_1 != 0)) {
LAB_0021bace:
                pcVar6 = (char *)GetImageOption(param_1,local_1048);
              }
              if (pcVar6 != (char *)0x0) {
                cVar3 = local_1050[-1];
                local_1050[-1] = '\0';
                local_1050 = local_1050 + -1;
                CopyMagickString(param_5 + (long)(__s + (-local_1090 - (long)param_3)),pcVar6,
                                 0x1000 - (long)(__s + (-local_1090 - (long)param_3)));
                lVar7 = -1;
                pcVar10 = local_1048;
                do {
                  if (lVar7 == 0) break;
                  lVar7 = lVar7 + -1;
                  cVar1 = *pcVar10;
                  pcVar10 = pcVar10 + (ulong)bVar11 * -2 + 1;
                } while (cVar1 != '\0');
                lVar9 = -1;
                do {
                  if (lVar9 == 0) break;
                  lVar9 = lVar9 + -1;
                  cVar1 = *pcVar6;
                  pcVar6 = pcVar6 + (ulong)bVar11 * -2 + 1;
                } while (cVar1 != '\0');
                local_1090 = (local_1090 - lVar7) + 3 + lVar9;
                *local_1050 = cVar3;
                ConcatenateMagickString(param_5,pcVar5 + 1,0x1000);
                if (local_1050[-1] == '%') {
                  __s = __nptr;
                }
                bVar2 = true;
              }
            }
          }
        }
      }
      else if ((cVar3 == 'o') || (cVar3 == 'x')) goto LAB_0021b85d;
LAB_0021b8da:
      __s = strchr(__s + 1,0x25);
    } while (__s != (char *)0x0);
    if (bVar2) {
      cVar3 = *param_5;
      local_1050 = param_5;
      while (cVar3 != '\0') {
        if ((cVar3 == '%') && (local_1050[1] == '%')) {
          CopyMagickString(local_1050,local_1050 + 1,0x1000 - ((long)local_1050 - (long)param_5));
        }
        cVar3 = local_1050[1];
        local_1050 = local_1050 + 1;
      }
      goto LAB_0021ba47;
    }
  }
  CopyMagickString(param_5,param_3,0x1000);
LAB_0021ba47:
  uVar8 = 0xffffffffffffffff;
  do {
    if (uVar8 == 0) break;
    uVar8 = uVar8 - 1;
    cVar3 = *param_5;
    param_5 = param_5 + (ulong)bVar11 * -2 + 1;
  } while (cVar3 != '\0');
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return ~uVar8 - 1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

