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

char ** MagickGetImageArtifacts(MagickWand *wand,char *pattern,size_t *number_artifacts)

{
  char *pcVar1;
  int iVar2;
  size_t sVar3;
  size_t sVar4;
  char **local_28;
  int local_20;
  
  if (wand == (MagickWand *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,
                  "MagickGetImageArtifacts");
  }
  if (wand->signature == 0xabacadab) {
    if (wand->debug != MagickFalse) {
      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",
                     wand->name);
    }
    if (wand->images == (Image *)0x0) {
      ThrowMagickException
                (wand->exception,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x267,
                 0x1d6,"ContainsNoImages",&DAT_000e672e,wand->name);
      local_28 = (char **)0x0;
    }
    else {
      GetImageProperty(wand->images,"exif:*",wand->exception);
      local_28 = (char **)AcquireQuantumMemory(0x400,4);
      if (local_28 != (char **)0x0) {
        ResetImagePropertyIterator(wand->images);
        pcVar1 = (char *)GetNextImageProperty(wand->images);
        if (pcVar1 == (char *)0x0) {
          iVar2 = 0;
          sVar4 = 0;
        }
        else {
          local_20 = 0x400;
          sVar3 = 0;
          do {
            sVar4 = sVar3;
            if (*pcVar1 != '[') {
              iVar2 = GlobExpression(pcVar1,pattern,0);
              if (iVar2 != 0) {
                sVar4 = sVar3 + 1;
                if (local_20 <= (int)sVar4) {
                  local_20 = local_20 * 2;
                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);
                  if (local_28 == (char **)0x0) {
                    ThrowMagickException
                              (wand->exception,"MagickWand/magick-property.c",
                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",
                               &DAT_000e672e,wand->name);
                    return (char **)0x0;
                  }
                }
                pcVar1 = (char *)ConstantString(pcVar1);
                local_28[sVar3] = pcVar1;
              }
            }
            pcVar1 = (char *)GetNextImageProperty(wand->images);
            sVar3 = sVar4;
          } while (pcVar1 != (char *)0x0);
          iVar2 = sVar4 * 4;
        }
        *(undefined4 *)((int)local_28 + iVar2) = 0;
        *number_artifacts = sVar4;
      }
    }
    return local_28;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,
                "MagickGetImageArtifacts");
}



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

int MagickGetImageArtifacts(int param_1,undefined4 param_2,int *param_3)

{
  char *pcVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  int local_28;
  int local_20;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,
                  "MagickGetImageArtifacts");
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (*(int *)(param_1 + 0x1018) != 0) {
      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",
                     param_1 + 4);
    }
    if (*(int *)(param_1 + 0x1004) == 0) {
      ThrowMagickException
                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",
                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)
      ;
      local_28 = 0;
    }
    else {
      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));
      local_28 = AcquireQuantumMemory(0x400,4);
      if (local_28 != 0) {
        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));
        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));
        if (pcVar1 == (char *)0x0) {
          iVar4 = 0;
          iVar5 = 0;
        }
        else {
          local_20 = 0x400;
          iVar4 = 0;
          do {
            iVar5 = iVar4;
            if (*pcVar1 != '[') {
              iVar2 = GlobExpression(pcVar1,param_2,0);
              if (iVar2 != 0) {
                iVar5 = iVar4 + 1;
                if (local_20 <= iVar5) {
                  local_20 = local_20 * 2;
                  local_28 = ResizeQuantumMemory(local_28,local_20,4);
                  if (local_28 == 0) {
                    ThrowMagickException
                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",
                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",
                               &DAT_000e672e,param_1 + 4);
                    return 0;
                  }
                }
                uVar3 = ConstantString(pcVar1);
                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;
              }
            }
            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));
            iVar4 = iVar5;
          } while (pcVar1 != (char *)0x0);
          iVar4 = iVar5 * 4;
        }
        *(undefined4 *)(local_28 + iVar4) = 0;
        *param_3 = iVar5;
      }
    }
    return local_28;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,
                "MagickGetImageArtifacts");
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001e8f0
ADD EBX,0xe2ad7
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
TEST ESI,ESI
JZ 0x00083764
CMP dword ptr [ESI + 0x101c],0xabacadab
JNZ 0x00083745
MOV EDI,dword ptr [ESI + 0x1018]
TEST EDI,EDI
JNZ 0x00083680
MOV EAX,dword ptr [ESI + 0x1004]
MOV EDX,dword ptr [ESI + 0x100c]
TEST EAX,EAX
JZ 0x00083705
SUB ESP,0x4
PUSH EDX
LEA EDX,[EBX + 0xfff92085]
PUSH EDX
PUSH EAX
CALL 0x0001d1e0
POP EDX
POP ECX
PUSH 0x4
PUSH 0x400
CALL 0x0001cf40
MOV dword ptr [ESP + 0x14],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0008366d
SUB ESP,0xc
PUSH dword ptr [ESI + 0x1004]
CALL 0x0001e590
POP EAX
PUSH dword ptr [ESI + 0x1004]
CALL 0x0001c690
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x000836fc
MOV dword ptr [ESP + 0xc],0x400
XOR EDI,EDI
NOP
CMP byte ptr [EBP],0x5b
JZ 0x0008363a
SUB ESP,0x4
PUSH 0x0
PUSH dword ptr [ESP + 0x3c]
PUSH EBP
CALL 0x0001cc20
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0008363a
LEA EAX,[EDI + 0x1]
MOV ECX,EAX
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP + 0xc]
CMP ECX,EAX
JL 0x00083621
ADD EAX,EAX
SUB ESP,0x4
MOV dword ptr [ESP + 0x10],EAX
PUSH 0x4
PUSH EAX
PUSH dword ptr [ESP + 0x10]
CALL 0x0001d190
MOV dword ptr [ESP + 0x14],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000836b8
MOV EAX,dword ptr [ESP + 0x4]
SUB ESP,0xc
PUSH EBP
LEA EDI,[EAX + EDI*0x4]
CALL 0x0001da80
ADD ESP,0x10
MOV dword ptr [EDI],EAX
MOV EDI,dword ptr [ESP + 0x8]
SUB ESP,0xc
PUSH dword ptr [ESI + 0x1004]
CALL 0x0001c690
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x000835d0
LEA EAX,[EDI*0x4 + 0x0]
MOV EDX,dword ptr [ESP + 0x4]
MOV dword ptr [EDX + EAX*0x1],0x0
MOV EAX,dword ptr [ESP + 0x38]
MOV dword ptr [EAX],EDI
MOV EAX,dword ptr [ESP + 0x4]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[ESI + 0x4]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xfff92fa4]
PUSH EAX
LEA EAX,[EBX + 0xfff92880]
PUSH 0x264
PUSH EAX
LEA EAX,[EBX + 0xfff92068]
PUSH EAX
PUSH 0x40000
CALL 0x0001d6f0
ADD ESP,0x20
JMP 0x0008355c
LEA EAX,[ESI + 0x4]
PUSH EAX
LEA EAX,[EBX + 0xfff8072e]
PUSH EAX
LEA EAX,[EBX + 0xfff80733]
PUSH EAX
LEA EAX,[EBX + 0xfff92880]
PUSH 0x190
PUSH 0x27e
PUSH EAX
LEA EAX,[EBX + 0xfff92068]
PUSH EAX
PUSH dword ptr [ESI + 0x100c]
CALL 0x0001de10
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0x4]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EAX,EAX
XOR EDI,EDI
JMP 0x0008365c
LEA EAX,[EBX + 0xfff8072e]
ADD ESI,0x4
PUSH ESI
PUSH EAX
LEA EAX,[EBX + 0xfff884fe]
PUSH EAX
LEA EAX,[EBX + 0xfff92880]
PUSH 0x1d6
PUSH 0x267
PUSH EAX
LEA EAX,[EBX + 0xfff92068]
PUSH EAX
PUSH EDX
CALL 0x0001de10
ADD ESP,0x20
MOV dword ptr [ESP + 0x4],0x0
JMP 0x0008366d
LEA EAX,[EBX + 0xfff92898]
PUSH EAX
LEA EAX,[EBX + 0xfff92068]
PUSH 0x262
PUSH EAX
LEA EAX,[EBX + 0xfff8e9f8]
PUSH EAX
CALL 0x0001ccf0
LEA EAX,[EBX + 0xfff92898]
PUSH EAX
LEA EAX,[EBX + 0xfff92068]
PUSH 0x261
PUSH EAX
LEA EAX,[EBX + 0xfff8e933]
PUSH EAX
CALL 0x0001ccf0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint MagickGetImageArtifacts(int param_1,undefined4 param_2,int *param_3)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int local_28;\n  int local_20;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }\n    if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }\n    return local_28;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts");\n}\n\n" comment (function_definition "int MagickGetImageArtifacts(int param_1,undefined4 param_2,int *param_3)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int local_28;\n  int local_20;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }\n    if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }\n    return local_28;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts");\n}" primitive_type (function_declarator "MagickGetImageArtifacts(int param_1,undefined4 param_2,int *param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int local_28;\n  int local_20;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }\n    if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }\n    return local_28;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts");\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }" { comment (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-property.c"" " string_content ") , number_literal , (string_literal ""MagickGetImageArtifacts"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }\n    if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }\n    return local_28;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x101c) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x101c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x101c)" * (cast_expression "(int *)(param_1 + 0x101c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x101c)" ( (binary_expression "param_1 + 0x101c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }\n    if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }\n    return local_28;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1018) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1018) != 0" (pointer_expression "*(int *)(param_1 + 0x1018)" * (cast_expression "(int *)(param_1 + 0x1018)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1018)" ( (binary_expression "param_1 + 0x1018" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4)" identifier (argument_list "(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4)" ( number_literal , (string_literal ""MagickWand/magick-property.c"" " string_content ") , (string_literal ""MagickGetImageArtifacts"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1004) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1004) == 0" (pointer_expression "*(int *)(param_1 + 0x1004)" * (cast_expression "(int *)(param_1 + 0x1004)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }" { (expression_statement "ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;" (call_expression "ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" * (cast_expression "(undefined4 *)(param_1 + 0x100c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100c)" ( (binary_expression "param_1 + 0x100c" identifier + number_literal) )))) , (string_literal ""MagickWand/magick-property.c"" " string_content ") , (string_literal ""MagickGetImageArtifacts"" " string_content ") , number_literal , number_literal , (string_literal ""ContainsNoImages"" " string_content ") , (pointer_expression "&DAT_000e672e" & identifier) , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }" else (compound_statement "{\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }" { (expression_statement "GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));" (call_expression "GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c))" identifier (argument_list "(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c))" ( (pointer_expression "*(int *)(param_1 + 0x1004)" * (cast_expression "(int *)(param_1 + 0x1004)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) )))) , (string_literal ""exif:*"" " string_content ") , (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" * (cast_expression "(undefined4 *)(param_1 + 0x100c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100c)" ( (binary_expression "param_1 + 0x100c" identifier + number_literal) )))) ))) ;) (expression_statement "local_28 = AcquireQuantumMemory(0x400,4);" (assignment_expression "local_28 = AcquireQuantumMemory(0x400,4)" identifier = (call_expression "AcquireQuantumMemory(0x400,4)" identifier (argument_list "(0x400,4)" ( number_literal , number_literal )))) ;) (if_statement "if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }" if (parenthesized_expression "(local_28 != 0)" ( (binary_expression "local_28 != 0" identifier != number_literal) )) (compound_statement "{\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }" { (expression_statement "ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));" (call_expression "ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x1004))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1004)" * (cast_expression "(undefined4 *)(param_1 + 0x1004)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) )))) ))) ;) (expression_statement "pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));" (assignment_expression "pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" identifier = (cast_expression "(char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x1004))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1004)" * (cast_expression "(undefined4 *)(param_1 + 0x1004)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) )))) ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar4 = 0;\n          iVar5 = 0;\n        }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }" else (compound_statement "{\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }" { (expression_statement "local_20 = 0x400;" (assignment_expression "local_20 = 0x400" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);" do (compound_statement "{\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          }" { (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }" if (parenthesized_expression "(*pcVar1 != '[')" ( (binary_expression "*pcVar1 != '['" (pointer_expression "*pcVar1" * identifier) != (char_literal "'['" ' character ')) )) (compound_statement "{\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }" { (expression_statement "iVar2 = GlobExpression(pcVar1,param_2,0);" (assignment_expression "iVar2 = GlobExpression(pcVar1,param_2,0)" identifier = (call_expression "GlobExpression(pcVar1,param_2,0)" identifier (argument_list "(pcVar1,param_2,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }" { (expression_statement "iVar5 = iVar4 + 1;" (assignment_expression "iVar5 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }" if (parenthesized_expression "(local_20 <= iVar5)" ( (binary_expression "local_20 <= iVar5" identifier <= identifier) )) (compound_statement "{\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }" { (expression_statement "local_20 = local_20 * 2;" (assignment_expression "local_20 = local_20 * 2" identifier = (binary_expression "local_20 * 2" identifier * number_literal)) ;) (expression_statement "local_28 = ResizeQuantumMemory(local_28,local_20,4);" (assignment_expression "local_28 = ResizeQuantumMemory(local_28,local_20,4)" identifier = (call_expression "ResizeQuantumMemory(local_28,local_20,4)" identifier (argument_list "(local_28,local_20,4)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }" if (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) (compound_statement "{\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }" { (expression_statement "ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);" (call_expression "ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" * (cast_expression "(undefined4 *)(param_1 + 0x100c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100c)" ( (binary_expression "param_1 + 0x100c" identifier + number_literal) )))) , (string_literal ""MagickWand/magick-property.c"" " string_content ") , (string_literal ""MagickGetImageArtifacts"" " string_content ") , number_literal , number_literal , (string_literal ""MemoryAllocationFailed"" " string_content ") , (pointer_expression "&DAT_000e672e" & identifier) , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "uVar3 = ConstantString(pcVar1);" (assignment_expression "uVar3 = ConstantString(pcVar1)" identifier = (call_expression "ConstantString(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(local_28 + iVar4 * 4) = uVar3;" (assignment_expression "*(undefined4 *)(local_28 + iVar4 * 4) = uVar3" (pointer_expression "*(undefined4 *)(local_28 + iVar4 * 4)" * (cast_expression "(undefined4 *)(local_28 + iVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_28 + iVar4 * 4)" ( (binary_expression "local_28 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) = identifier) ;) })) })) (expression_statement "pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));" (assignment_expression "pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" identifier = (cast_expression "(char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x1004))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1004)" * (cast_expression "(undefined4 *)(param_1 + 0x1004)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) )))) ))))) ;) (expression_statement "iVar4 = iVar5;" (assignment_expression "iVar4 = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "iVar4 = iVar5 * 4;" (assignment_expression "iVar4 = iVar5 * 4" identifier = (binary_expression "iVar5 * 4" identifier * number_literal)) ;) }))) (expression_statement "*(undefined4 *)(local_28 + iVar4) = 0;" (assignment_expression "*(undefined4 *)(local_28 + iVar4) = 0" (pointer_expression "*(undefined4 *)(local_28 + iVar4)" * (cast_expression "(undefined4 *)(local_28 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_28 + iVar4)" ( (binary_expression "local_28 + iVar4" identifier + identifier) )))) = number_literal) ;) (expression_statement "*param_3 = iVar5;" (assignment_expression "*param_3 = iVar5" (pointer_expression "*param_3" * identifier) = identifier) ;) })) }))) (return_statement "return local_28;" return identifier ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-property.c"" " string_content ") , number_literal , (string_literal ""MagickGetImageArtifacts"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n\nchar ** MagickGetImageArtifacts(MagickWand *wand,char *pattern,size_t *number_artifacts)\n\n{\n  char *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char **local_28;\n  int local_20;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     wand->name);\n    }\n    if (wand->images == (Image *)0x0) {\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x267,\n                 0x1d6,"ContainsNoImages",&DAT_000e672e,wand->name);\n      local_28 = (char **)0x0;\n    }\n    else {\n      GetImageProperty(wand->images,"exif:*",wand->exception);\n      local_28 = (char **)AcquireQuantumMemory(0x400,4);\n      if (local_28 != (char **)0x0) {\n        ResetImagePropertyIterator(wand->images);\n        pcVar1 = (char *)GetNextImageProperty(wand->images);\n        if (pcVar1 == (char *)0x0) {\n          iVar2 = 0;\n          sVar4 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          sVar3 = 0;\n          do {\n            sVar4 = sVar3;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(wand->images);\n            sVar3 = sVar4;\n          } while (pcVar1 != (char *)0x0);\n          iVar2 = sVar4 * 4;\n        }\n        *(undefined4 *)((int)local_28 + iVar2) = 0;\n        *number_artifacts = sVar4;\n      }\n    }\n    return local_28;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts");\n}\n\n" comment comment comment comment comment comment comment (function_definition "char ** MagickGetImageArtifacts(MagickWand *wand,char *pattern,size_t *number_artifacts)\n\n{\n  char *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char **local_28;\n  int local_20;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     wand->name);\n    }\n    if (wand->images == (Image *)0x0) {\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x267,\n                 0x1d6,"ContainsNoImages",&DAT_000e672e,wand->name);\n      local_28 = (char **)0x0;\n    }\n    else {\n      GetImageProperty(wand->images,"exif:*",wand->exception);\n      local_28 = (char **)AcquireQuantumMemory(0x400,4);\n      if (local_28 != (char **)0x0) {\n        ResetImagePropertyIterator(wand->images);\n        pcVar1 = (char *)GetNextImageProperty(wand->images);\n        if (pcVar1 == (char *)0x0) {\n          iVar2 = 0;\n          sVar4 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          sVar3 = 0;\n          do {\n            sVar4 = sVar3;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(wand->images);\n            sVar3 = sVar4;\n          } while (pcVar1 != (char *)0x0);\n          iVar2 = sVar4 * 4;\n        }\n        *(undefined4 *)((int)local_28 + iVar2) = 0;\n        *number_artifacts = sVar4;\n      }\n    }\n    return local_28;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts");\n}" primitive_type (pointer_declarator "** MagickGetImageArtifacts(MagickWand *wand,char *pattern,size_t *number_artifacts)" * (pointer_declarator "* MagickGetImageArtifacts(MagickWand *wand,char *pattern,size_t *number_artifacts)" * (function_declarator "MagickGetImageArtifacts(MagickWand *wand,char *pattern,size_t *number_artifacts)" identifier (parameter_list "(MagickWand *wand,char *pattern,size_t *number_artifacts)" ( (parameter_declaration "MagickWand *wand" type_identifier (pointer_declarator "*wand" * identifier)) , (parameter_declaration "char *pattern" primitive_type (pointer_declarator "*pattern" * identifier)) , (parameter_declaration "size_t *number_artifacts" primitive_type (pointer_declarator "*number_artifacts" * identifier)) ))))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char **local_28;\n  int local_20;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     wand->name);\n    }\n    if (wand->images == (Image *)0x0) {\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x267,\n                 0x1d6,"ContainsNoImages",&DAT_000e672e,wand->name);\n      local_28 = (char **)0x0;\n    }\n    else {\n      GetImageProperty(wand->images,"exif:*",wand->exception);\n      local_28 = (char **)AcquireQuantumMemory(0x400,4);\n      if (local_28 != (char **)0x0) {\n        ResetImagePropertyIterator(wand->images);\n        pcVar1 = (char *)GetNextImageProperty(wand->images);\n        if (pcVar1 == (char *)0x0) {\n          iVar2 = 0;\n          sVar4 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          sVar3 = 0;\n          do {\n            sVar4 = sVar3;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(wand->images);\n            sVar3 = sVar4;\n          } while (pcVar1 != (char *)0x0);\n          iVar2 = sVar4 * 4;\n        }\n        *(undefined4 *)((int)local_28 + iVar2) = 0;\n        *number_artifacts = sVar4;\n      }\n    }\n    return local_28;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts");\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "char **local_28;" primitive_type (pointer_declarator "**local_28" * (pointer_declarator "*local_28" * identifier)) ;) (declaration "int local_20;" primitive_type identifier ;) (if_statement "if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }" if (parenthesized_expression "(wand == (MagickWand *)0x0)" ( (binary_expression "wand == (MagickWand *)0x0" identifier == (cast_expression "(MagickWand *)0x0" ( (type_descriptor "MagickWand *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }" { comment (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-property.c"" " string_content ") , number_literal , (string_literal ""MagickGetImageArtifacts"" " string_content ") ))) ;) })) (if_statement "if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     wand->name);\n    }\n    if (wand->images == (Image *)0x0) {\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x267,\n                 0x1d6,"ContainsNoImages",&DAT_000e672e,wand->name);\n      local_28 = (char **)0x0;\n    }\n    else {\n      GetImageProperty(wand->images,"exif:*",wand->exception);\n      local_28 = (char **)AcquireQuantumMemory(0x400,4);\n      if (local_28 != (char **)0x0) {\n        ResetImagePropertyIterator(wand->images);\n        pcVar1 = (char *)GetNextImageProperty(wand->images);\n        if (pcVar1 == (char *)0x0) {\n          iVar2 = 0;\n          sVar4 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          sVar3 = 0;\n          do {\n            sVar4 = sVar3;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(wand->images);\n            sVar3 = sVar4;\n          } while (pcVar1 != (char *)0x0);\n          iVar2 = sVar4 * 4;\n        }\n        *(undefined4 *)((int)local_28 + iVar2) = 0;\n        *number_artifacts = sVar4;\n      }\n    }\n    return local_28;\n  }" if (parenthesized_expression "(wand->signature == 0xabacadab)" ( (binary_expression "wand->signature == 0xabacadab" (field_expression "wand->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     wand->name);\n    }\n    if (wand->images == (Image *)0x0) {\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x267,\n                 0x1d6,"ContainsNoImages",&DAT_000e672e,wand->name);\n      local_28 = (char **)0x0;\n    }\n    else {\n      GetImageProperty(wand->images,"exif:*",wand->exception);\n      local_28 = (char **)AcquireQuantumMemory(0x400,4);\n      if (local_28 != (char **)0x0) {\n        ResetImagePropertyIterator(wand->images);\n        pcVar1 = (char *)GetNextImageProperty(wand->images);\n        if (pcVar1 == (char *)0x0) {\n          iVar2 = 0;\n          sVar4 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          sVar3 = 0;\n          do {\n            sVar4 = sVar3;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(wand->images);\n            sVar3 = sVar4;\n          } while (pcVar1 != (char *)0x0);\n          iVar2 = sVar4 * 4;\n        }\n        *(undefined4 *)((int)local_28 + iVar2) = 0;\n        *number_artifacts = sVar4;\n      }\n    }\n    return local_28;\n  }" { (if_statement "if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     wand->name);\n    }" if (parenthesized_expression "(wand->debug != MagickFalse)" ( (binary_expression "wand->debug != MagickFalse" (field_expression "wand->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     wand->name);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     wand->name);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     wand->name)" identifier (argument_list "(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     wand->name)" ( number_literal , (string_literal ""MagickWand/magick-property.c"" " string_content ") , (string_literal ""MagickGetImageArtifacts"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "wand->name" identifier -> field_identifier) ))) ;) })) (if_statement "if (wand->images == (Image *)0x0) {\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x267,\n                 0x1d6,"ContainsNoImages",&DAT_000e672e,wand->name);\n      local_28 = (char **)0x0;\n    }\n    else {\n      GetImageProperty(wand->images,"exif:*",wand->exception);\n      local_28 = (char **)AcquireQuantumMemory(0x400,4);\n      if (local_28 != (char **)0x0) {\n        ResetImagePropertyIterator(wand->images);\n        pcVar1 = (char *)GetNextImageProperty(wand->images);\n        if (pcVar1 == (char *)0x0) {\n          iVar2 = 0;\n          sVar4 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          sVar3 = 0;\n          do {\n            sVar4 = sVar3;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(wand->images);\n            sVar3 = sVar4;\n          } while (pcVar1 != (char *)0x0);\n          iVar2 = sVar4 * 4;\n        }\n        *(undefined4 *)((int)local_28 + iVar2) = 0;\n        *number_artifacts = sVar4;\n      }\n    }" if (parenthesized_expression "(wand->images == (Image *)0x0)" ( (binary_expression "wand->images == (Image *)0x0" (field_expression "wand->images" identifier -> field_identifier) == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x267,\n                 0x1d6,"ContainsNoImages",&DAT_000e672e,wand->name);\n      local_28 = (char **)0x0;\n    }" { (expression_statement "ThrowMagickException\n                (wand->exception,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x267,\n                 0x1d6,"ContainsNoImages",&DAT_000e672e,wand->name);" (call_expression "ThrowMagickException\n                (wand->exception,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x267,\n                 0x1d6,"ContainsNoImages",&DAT_000e672e,wand->name)" identifier (argument_list "(wand->exception,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x267,\n                 0x1d6,"ContainsNoImages",&DAT_000e672e,wand->name)" ( (field_expression "wand->exception" identifier -> field_identifier) , (string_literal ""MagickWand/magick-property.c"" " string_content ") , (string_literal ""MagickGetImageArtifacts"" " string_content ") , number_literal , number_literal , (string_literal ""ContainsNoImages"" " string_content ") , (pointer_expression "&DAT_000e672e" & identifier) , (field_expression "wand->name" identifier -> field_identifier) ))) ;) (expression_statement "local_28 = (char **)0x0;" (assignment_expression "local_28 = (char **)0x0" identifier = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) }) (else_clause "else {\n      GetImageProperty(wand->images,"exif:*",wand->exception);\n      local_28 = (char **)AcquireQuantumMemory(0x400,4);\n      if (local_28 != (char **)0x0) {\n        ResetImagePropertyIterator(wand->images);\n        pcVar1 = (char *)GetNextImageProperty(wand->images);\n        if (pcVar1 == (char *)0x0) {\n          iVar2 = 0;\n          sVar4 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          sVar3 = 0;\n          do {\n            sVar4 = sVar3;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(wand->images);\n            sVar3 = sVar4;\n          } while (pcVar1 != (char *)0x0);\n          iVar2 = sVar4 * 4;\n        }\n        *(undefined4 *)((int)local_28 + iVar2) = 0;\n        *number_artifacts = sVar4;\n      }\n    }" else (compound_statement "{\n      GetImageProperty(wand->images,"exif:*",wand->exception);\n      local_28 = (char **)AcquireQuantumMemory(0x400,4);\n      if (local_28 != (char **)0x0) {\n        ResetImagePropertyIterator(wand->images);\n        pcVar1 = (char *)GetNextImageProperty(wand->images);\n        if (pcVar1 == (char *)0x0) {\n          iVar2 = 0;\n          sVar4 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          sVar3 = 0;\n          do {\n            sVar4 = sVar3;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(wand->images);\n            sVar3 = sVar4;\n          } while (pcVar1 != (char *)0x0);\n          iVar2 = sVar4 * 4;\n        }\n        *(undefined4 *)((int)local_28 + iVar2) = 0;\n        *number_artifacts = sVar4;\n      }\n    }" { (expression_statement "GetImageProperty(wand->images,"exif:*",wand->exception);" (call_expression "GetImageProperty(wand->images,"exif:*",wand->exception)" identifier (argument_list "(wand->images,"exif:*",wand->exception)" ( (field_expression "wand->images" identifier -> field_identifier) , (string_literal ""exif:*"" " string_content ") , (field_expression "wand->exception" identifier -> field_identifier) ))) ;) (expression_statement "local_28 = (char **)AcquireQuantumMemory(0x400,4);" (assignment_expression "local_28 = (char **)AcquireQuantumMemory(0x400,4)" identifier = (cast_expression "(char **)AcquireQuantumMemory(0x400,4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "AcquireQuantumMemory(0x400,4)" identifier (argument_list "(0x400,4)" ( number_literal , number_literal ))))) ;) (if_statement "if (local_28 != (char **)0x0) {\n        ResetImagePropertyIterator(wand->images);\n        pcVar1 = (char *)GetNextImageProperty(wand->images);\n        if (pcVar1 == (char *)0x0) {\n          iVar2 = 0;\n          sVar4 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          sVar3 = 0;\n          do {\n            sVar4 = sVar3;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(wand->images);\n            sVar3 = sVar4;\n          } while (pcVar1 != (char *)0x0);\n          iVar2 = sVar4 * 4;\n        }\n        *(undefined4 *)((int)local_28 + iVar2) = 0;\n        *number_artifacts = sVar4;\n      }" if (parenthesized_expression "(local_28 != (char **)0x0)" ( (binary_expression "local_28 != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n        ResetImagePropertyIterator(wand->images);\n        pcVar1 = (char *)GetNextImageProperty(wand->images);\n        if (pcVar1 == (char *)0x0) {\n          iVar2 = 0;\n          sVar4 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          sVar3 = 0;\n          do {\n            sVar4 = sVar3;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(wand->images);\n            sVar3 = sVar4;\n          } while (pcVar1 != (char *)0x0);\n          iVar2 = sVar4 * 4;\n        }\n        *(undefined4 *)((int)local_28 + iVar2) = 0;\n        *number_artifacts = sVar4;\n      }" { (expression_statement "ResetImagePropertyIterator(wand->images);" (call_expression "ResetImagePropertyIterator(wand->images)" identifier (argument_list "(wand->images)" ( (field_expression "wand->images" identifier -> field_identifier) ))) ;) (expression_statement "pcVar1 = (char *)GetNextImageProperty(wand->images);" (assignment_expression "pcVar1 = (char *)GetNextImageProperty(wand->images)" identifier = (cast_expression "(char *)GetNextImageProperty(wand->images)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageProperty(wand->images)" identifier (argument_list "(wand->images)" ( (field_expression "wand->images" identifier -> field_identifier) ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n          iVar2 = 0;\n          sVar4 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          sVar3 = 0;\n          do {\n            sVar4 = sVar3;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(wand->images);\n            sVar3 = sVar4;\n          } while (pcVar1 != (char *)0x0);\n          iVar2 = sVar4 * 4;\n        }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar2 = 0;\n          sVar4 = 0;\n        }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          local_20 = 0x400;\n          sVar3 = 0;\n          do {\n            sVar4 = sVar3;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(wand->images);\n            sVar3 = sVar4;\n          } while (pcVar1 != (char *)0x0);\n          iVar2 = sVar4 * 4;\n        }" else (compound_statement "{\n          local_20 = 0x400;\n          sVar3 = 0;\n          do {\n            sVar4 = sVar3;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(wand->images);\n            sVar3 = sVar4;\n          } while (pcVar1 != (char *)0x0);\n          iVar2 = sVar4 * 4;\n        }" { (expression_statement "local_20 = 0x400;" (assignment_expression "local_20 = 0x400" identifier = number_literal) ;) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n            sVar4 = sVar3;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(wand->images);\n            sVar3 = sVar4;\n          } while (pcVar1 != (char *)0x0);" do (compound_statement "{\n            sVar4 = sVar3;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(wand->images);\n            sVar3 = sVar4;\n          }" { (expression_statement "sVar4 = sVar3;" (assignment_expression "sVar4 = sVar3" identifier = identifier) ;) (if_statement "if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }" if (parenthesized_expression "(*pcVar1 != '[')" ( (binary_expression "*pcVar1 != '['" (pointer_expression "*pcVar1" * identifier) != (char_literal "'['" ' character ')) )) (compound_statement "{\n              iVar2 = GlobExpression(pcVar1,pattern,0);\n              if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }\n            }" { (expression_statement "iVar2 = GlobExpression(pcVar1,pattern,0);" (assignment_expression "iVar2 = GlobExpression(pcVar1,pattern,0)" identifier = (call_expression "GlobExpression(pcVar1,pattern,0)" identifier (argument_list "(pcVar1,pattern,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n                sVar4 = sVar3 + 1;\n                if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }\n                pcVar1 = (char *)ConstantString(pcVar1);\n                local_28[sVar3] = pcVar1;\n              }" { (expression_statement "sVar4 = sVar3 + 1;" (assignment_expression "sVar4 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (if_statement "if (local_20 <= (int)sVar4) {\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }" if (parenthesized_expression "(local_20 <= (int)sVar4)" ( (binary_expression "local_20 <= (int)sVar4" identifier <= (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n                  local_20 = local_20 * 2;\n                  local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }\n                }" { (expression_statement "local_20 = local_20 * 2;" (assignment_expression "local_20 = local_20 * 2" identifier = (binary_expression "local_20 * 2" identifier * number_literal)) ;) (expression_statement "local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4);" (assignment_expression "local_28 = (char **)ResizeQuantumMemory(local_28,local_20,4)" identifier = (cast_expression "(char **)ResizeQuantumMemory(local_28,local_20,4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "ResizeQuantumMemory(local_28,local_20,4)" identifier (argument_list "(local_28,local_20,4)" ( identifier , identifier , number_literal ))))) ;) (if_statement "if (local_28 == (char **)0x0) {\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }" if (parenthesized_expression "(local_28 == (char **)0x0)" ( (binary_expression "local_28 == (char **)0x0" identifier == (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n                    ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);\n                    return (char **)0x0;\n                  }" { (expression_statement "ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name);" (call_expression "ThrowMagickException\n                              (wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name)" identifier (argument_list "(wand->exception,"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,wand->name)" ( (field_expression "wand->exception" identifier -> field_identifier) , (string_literal ""MagickWand/magick-property.c"" " string_content ") , (string_literal ""MagickGetImageArtifacts"" " string_content ") , number_literal , number_literal , (string_literal ""MemoryAllocationFailed"" " string_content ") , (pointer_expression "&DAT_000e672e" & identifier) , (field_expression "wand->name" identifier -> field_identifier) ))) ;) (return_statement "return (char **)0x0;" return (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) ;) })) })) (expression_statement "pcVar1 = (char *)ConstantString(pcVar1);" (assignment_expression "pcVar1 = (char *)ConstantString(pcVar1)" identifier = (cast_expression "(char *)ConstantString(pcVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "ConstantString(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))))) ;) (expression_statement "local_28[sVar3] = pcVar1;" (assignment_expression "local_28[sVar3] = pcVar1" (subscript_expression "local_28[sVar3]" identifier [ identifier ]) = identifier) ;) })) })) (expression_statement "pcVar1 = (char *)GetNextImageProperty(wand->images);" (assignment_expression "pcVar1 = (char *)GetNextImageProperty(wand->images)" identifier = (cast_expression "(char *)GetNextImageProperty(wand->images)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageProperty(wand->images)" identifier (argument_list "(wand->images)" ( (field_expression "wand->images" identifier -> field_identifier) ))))) ;) (expression_statement "sVar3 = sVar4;" (assignment_expression "sVar3 = sVar4" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "iVar2 = sVar4 * 4;" (assignment_expression "iVar2 = sVar4 * 4" identifier = (binary_expression "sVar4 * 4" identifier * number_literal)) ;) }))) (expression_statement "*(undefined4 *)((int)local_28 + iVar2) = 0;" (assignment_expression "*(undefined4 *)((int)local_28 + iVar2) = 0" (pointer_expression "*(undefined4 *)((int)local_28 + iVar2)" * (cast_expression "(undefined4 *)((int)local_28 + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + iVar2)" ( (binary_expression "(int)local_28 + iVar2" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*number_artifacts = sVar4;" (assignment_expression "*number_artifacts = sVar4" (pointer_expression "*number_artifacts" * identifier) = identifier) ;) })) }))) (return_statement "return local_28;" return identifier ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-property.c"" " string_content ") , number_literal , (string_literal ""MagickGetImageArtifacts"" " string_content ") ))) ;) })))
(translation_unit "int MagickGetImageArtifacts(int param_1,undefined4 param_2,int *param_3)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int local_28;\n  int local_20;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }\n    if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }\n    return local_28;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts");\n}\n\n" (function_definition "int MagickGetImageArtifacts(int param_1,undefined4 param_2,int *param_3)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int local_28;\n  int local_20;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }\n    if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }\n    return local_28;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts");\n}" primitive_type (function_declarator "MagickGetImageArtifacts(int param_1,undefined4 param_2,int *param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int local_28;\n  int local_20;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }\n    if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }\n    return local_28;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts");\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }" { (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-property.c"" " string_content ") , number_literal , (string_literal ""MagickGetImageArtifacts"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }\n    if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }\n    return local_28;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x101c) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x101c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x101c)" * (cast_expression "(int *)(param_1 + 0x101c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x101c)" ( (binary_expression "param_1 + 0x101c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }\n    if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }\n    return local_28;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1018) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1018) != 0" (pointer_expression "*(int *)(param_1 + 0x1018)" * (cast_expression "(int *)(param_1 + 0x1018)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1018)" ( (binary_expression "param_1 + 0x1018" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4)" identifier (argument_list "(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4)" ( number_literal , (string_literal ""MagickWand/magick-property.c"" " string_content ") , (string_literal ""MagickGetImageArtifacts"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1004) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1004) == 0" (pointer_expression "*(int *)(param_1 + 0x1004)" * (cast_expression "(int *)(param_1 + 0x1004)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }" { (expression_statement "ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;" (call_expression "ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" * (cast_expression "(undefined4 *)(param_1 + 0x100c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100c)" ( (binary_expression "param_1 + 0x100c" identifier + number_literal) )))) , (string_literal ""MagickWand/magick-property.c"" " string_content ") , (string_literal ""MagickGetImageArtifacts"" " string_content ") , number_literal , number_literal , (string_literal ""ContainsNoImages"" " string_content ") , (pointer_expression "&DAT_000e672e" & identifier) , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }" else (compound_statement "{\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }" { (expression_statement "GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));" (call_expression "GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c))" identifier (argument_list "(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c))" ( (pointer_expression "*(int *)(param_1 + 0x1004)" * (cast_expression "(int *)(param_1 + 0x1004)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) )))) , (string_literal ""exif:*"" " string_content ") , (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" * (cast_expression "(undefined4 *)(param_1 + 0x100c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100c)" ( (binary_expression "param_1 + 0x100c" identifier + number_literal) )))) ))) ;) (expression_statement "local_28 = AcquireQuantumMemory(0x400,4);" (assignment_expression "local_28 = AcquireQuantumMemory(0x400,4)" identifier = (call_expression "AcquireQuantumMemory(0x400,4)" identifier (argument_list "(0x400,4)" ( number_literal , number_literal )))) ;) (if_statement "if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }" if (parenthesized_expression "(local_28 != 0)" ( (binary_expression "local_28 != 0" identifier != number_literal) )) (compound_statement "{\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }" { (expression_statement "ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));" (call_expression "ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x1004))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1004)" * (cast_expression "(undefined4 *)(param_1 + 0x1004)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) )))) ))) ;) (expression_statement "pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));" (assignment_expression "pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" identifier = (cast_expression "(char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x1004))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1004)" * (cast_expression "(undefined4 *)(param_1 + 0x1004)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) )))) ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar4 = 0;\n          iVar5 = 0;\n        }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }" else (compound_statement "{\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }" { (expression_statement "local_20 = 0x400;" (assignment_expression "local_20 = 0x400" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);" do (compound_statement "{\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          }" { (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }" if (parenthesized_expression "(*pcVar1 != '[')" ( (binary_expression "*pcVar1 != '['" (pointer_expression "*pcVar1" * identifier) != (char_literal "'['" ' character ')) )) (compound_statement "{\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }" { (expression_statement "iVar2 = GlobExpression(pcVar1,param_2,0);" (assignment_expression "iVar2 = GlobExpression(pcVar1,param_2,0)" identifier = (call_expression "GlobExpression(pcVar1,param_2,0)" identifier (argument_list "(pcVar1,param_2,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }" { (expression_statement "iVar5 = iVar4 + 1;" (assignment_expression "iVar5 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }" if (parenthesized_expression "(local_20 <= iVar5)" ( (binary_expression "local_20 <= iVar5" identifier <= identifier) )) (compound_statement "{\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }" { (expression_statement "local_20 = local_20 * 2;" (assignment_expression "local_20 = local_20 * 2" identifier = (binary_expression "local_20 * 2" identifier * number_literal)) ;) (expression_statement "local_28 = ResizeQuantumMemory(local_28,local_20,4);" (assignment_expression "local_28 = ResizeQuantumMemory(local_28,local_20,4)" identifier = (call_expression "ResizeQuantumMemory(local_28,local_20,4)" identifier (argument_list "(local_28,local_20,4)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }" if (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) (compound_statement "{\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }" { (expression_statement "ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);" (call_expression "ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" * (cast_expression "(undefined4 *)(param_1 + 0x100c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100c)" ( (binary_expression "param_1 + 0x100c" identifier + number_literal) )))) , (string_literal ""MagickWand/magick-property.c"" " string_content ") , (string_literal ""MagickGetImageArtifacts"" " string_content ") , number_literal , number_literal , (string_literal ""MemoryAllocationFailed"" " string_content ") , (pointer_expression "&DAT_000e672e" & identifier) , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "uVar3 = ConstantString(pcVar1);" (assignment_expression "uVar3 = ConstantString(pcVar1)" identifier = (call_expression "ConstantString(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(local_28 + iVar4 * 4) = uVar3;" (assignment_expression "*(undefined4 *)(local_28 + iVar4 * 4) = uVar3" (pointer_expression "*(undefined4 *)(local_28 + iVar4 * 4)" * (cast_expression "(undefined4 *)(local_28 + iVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_28 + iVar4 * 4)" ( (binary_expression "local_28 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) = identifier) ;) })) })) (expression_statement "pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));" (assignment_expression "pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" identifier = (cast_expression "(char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x1004))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1004)" * (cast_expression "(undefined4 *)(param_1 + 0x1004)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) )))) ))))) ;) (expression_statement "iVar4 = iVar5;" (assignment_expression "iVar4 = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "iVar4 = iVar5 * 4;" (assignment_expression "iVar4 = iVar5 * 4" identifier = (binary_expression "iVar5 * 4" identifier * number_literal)) ;) }))) (expression_statement "*(undefined4 *)(local_28 + iVar4) = 0;" (assignment_expression "*(undefined4 *)(local_28 + iVar4) = 0" (pointer_expression "*(undefined4 *)(local_28 + iVar4)" * (cast_expression "(undefined4 *)(local_28 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_28 + iVar4)" ( (binary_expression "local_28 + iVar4" identifier + identifier) )))) = number_literal) ;) (expression_statement "*param_3 = iVar5;" (assignment_expression "*param_3 = iVar5" (pointer_expression "*param_3" * identifier) = identifier) ;) })) }))) (return_statement "return local_28;" return identifier ;) })) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-property.c"" " string_content ") , number_literal , (string_literal ""MagickGetImageArtifacts"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") , (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content ") , (string_literal " string_content ") , LIT , LIT , (string_literal " string_content ") , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content ") , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content ") , (string_literal " string_content ") , LIT , LIT , (string_literal " string_content ") , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) ))) ;) (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) }))) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "int MagickGetImageArtifacts(int param_1,undefined4 param_2,int *param_3)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int local_28;\n  int local_20;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }\n    if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }\n    return local_28;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts");\n}" (primitive_type "int") (function_declarator "MagickGetImageArtifacts(int param_1,undefined4 param_2,int *param_3)" (identifier "MagickGetImageArtifacts") (parameter_list "(int param_1,undefined4 param_2,int *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int local_28;\n  int local_20;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }\n    if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }\n    return local_28;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts");\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");\n  }" ({ "{") (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts")" (identifier "__assert_fail") (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,\n                  "MagickGetImageArtifacts")" (( "(") (string_literal ""wand != (MagickWand *) NULL"" (" """) (string_content "wand != (MagickWand *) NULL") (" """)) (, ",") (string_literal ""MagickWand/magick-property.c"" (" """) (string_content "MagickWand/magick-property.c") (" """)) (, ",") (number_literal "0x261") (, ",") (string_literal ""MagickGetImageArtifacts"" (" """) (string_content "MagickGetImageArtifacts") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }\n    if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }\n    return local_28;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x101c) == -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x101c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x101c)" (* "*") (cast_expression "(int *)(param_1 + 0x101c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x101c)" (( "(") (binary_expression "param_1 + 0x101c" (identifier "param_1") (+ "+") (number_literal "0x101c")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }\n    if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }\n    return local_28;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1018) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1018) != 0" (pointer_expression "*(int *)(param_1 + 0x1018)" (* "*") (cast_expression "(int *)(param_1 + 0x1018)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1018)" (( "(") (binary_expression "param_1 + 0x1018" (identifier "param_1") (+ "+") (number_literal "0x1018")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);\n    }" ({ "{") (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4)" (identifier "LogMagickEvent") (argument_list "(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",\n                     param_1 + 4)" (( "(") (number_literal "0x40000") (, ",") (string_literal ""MagickWand/magick-property.c"" (" """) (string_content "MagickWand/magick-property.c") (" """)) (, ",") (string_literal ""MagickGetImageArtifacts"" (" """) (string_content "MagickGetImageArtifacts") (" """)) (, ",") (number_literal "0x264") (, ",") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x1004) == 0) {\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }\n    else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1004) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1004) == 0" (pointer_expression "*(int *)(param_1 + 0x1004)" (* "*") (cast_expression "(int *)(param_1 + 0x1004)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1004)" (( "(") (binary_expression "param_1 + 0x1004" (identifier "param_1") (+ "+") (number_literal "0x1004")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;\n      local_28 = 0;\n    }" ({ "{") (expression_statement "ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)\n      ;" (call_expression "ThrowMagickException\n                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)" (identifier "ThrowMagickException") (argument_list "(*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                 "MagickGetImageArtifacts",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x100c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x100c)" (( "(") (binary_expression "param_1 + 0x100c" (identifier "param_1") (+ "+") (number_literal "0x100c")) () ")")))) (, ",") (string_literal ""MagickWand/magick-property.c"" (" """) (string_content "MagickWand/magick-property.c") (" """)) (, ",") (string_literal ""MagickGetImageArtifacts"" (" """) (string_content "MagickGetImageArtifacts") (" """)) (, ",") (number_literal "0x267") (, ",") (number_literal "0x1d6") (, ",") (string_literal ""ContainsNoImages"" (" """) (string_content "ContainsNoImages") (" """)) (, ",") (pointer_expression "&DAT_000e672e" (& "&") (identifier "DAT_000e672e")) (, ",") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }" (else "else") (compound_statement "{\n      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));\n      local_28 = AcquireQuantumMemory(0x400,4);\n      if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }\n    }" ({ "{") (expression_statement "GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));" (call_expression "GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c))" (identifier "GetImageProperty") (argument_list "(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c))" (( "(") (pointer_expression "*(int *)(param_1 + 0x1004)" (* "*") (cast_expression "(int *)(param_1 + 0x1004)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1004)" (( "(") (binary_expression "param_1 + 0x1004" (identifier "param_1") (+ "+") (number_literal "0x1004")) () ")")))) (, ",") (string_literal ""exif:*"" (" """) (string_content "exif:*") (" """)) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x100c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x100c)" (( "(") (binary_expression "param_1 + 0x100c" (identifier "param_1") (+ "+") (number_literal "0x100c")) () ")")))) () ")"))) (; ";")) (expression_statement "local_28 = AcquireQuantumMemory(0x400,4);" (assignment_expression "local_28 = AcquireQuantumMemory(0x400,4)" (identifier "local_28") (= "=") (call_expression "AcquireQuantumMemory(0x400,4)" (identifier "AcquireQuantumMemory") (argument_list "(0x400,4)" (( "(") (number_literal "0x400") (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (local_28 != 0) {\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }" (if "if") (parenthesized_expression "(local_28 != 0)" (( "(") (binary_expression "local_28 != 0" (identifier "local_28") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));\n        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n        if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }\n        *(undefined4 *)(local_28 + iVar4) = 0;\n        *param_3 = iVar5;\n      }" ({ "{") (expression_statement "ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));" (call_expression "ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004))" (identifier "ResetImagePropertyIterator") (argument_list "(*(undefined4 *)(param_1 + 0x1004))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x1004)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1004)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1004)" (( "(") (binary_expression "param_1 + 0x1004" (identifier "param_1") (+ "+") (number_literal "0x1004")) () ")")))) () ")"))) (; ";")) (expression_statement "pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));" (assignment_expression "pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" (identifier "pcVar1") (= "=") (cast_expression "(char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" (identifier "GetNextImageProperty") (argument_list "(*(undefined4 *)(param_1 + 0x1004))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x1004)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1004)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1004)" (( "(") (binary_expression "param_1 + 0x1004" (identifier "param_1") (+ "+") (number_literal "0x1004")) () ")")))) () ")"))))) (; ";")) (if_statement "if (pcVar1 == (char *)0x0) {\n          iVar4 = 0;\n          iVar5 = 0;\n        }\n        else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }" (if "if") (parenthesized_expression "(pcVar1 == (char *)0x0)" (( "(") (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          iVar4 = 0;\n          iVar5 = 0;\n        }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }" (else "else") (compound_statement "{\n          local_20 = 0x400;\n          iVar4 = 0;\n          do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);\n          iVar4 = iVar5 * 4;\n        }" ({ "{") (expression_statement "local_20 = 0x400;" (assignment_expression "local_20 = 0x400" (identifier "local_20") (= "=") (number_literal "0x400")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          } while (pcVar1 != (char *)0x0);" (do "do") (compound_statement "{\n            iVar5 = iVar4;\n            if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }\n            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));\n            iVar4 = iVar5;\n          }" ({ "{") (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" (identifier "iVar5") (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (*pcVar1 != '[') {\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }" (if "if") (parenthesized_expression "(*pcVar1 != '[')" (( "(") (binary_expression "*pcVar1 != '['" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (!= "!=") (char_literal "'['" (' "'") (character "[") (' "'"))) () ")")) (compound_statement "{\n              iVar2 = GlobExpression(pcVar1,param_2,0);\n              if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }\n            }" ({ "{") (expression_statement "iVar2 = GlobExpression(pcVar1,param_2,0);" (assignment_expression "iVar2 = GlobExpression(pcVar1,param_2,0)" (identifier "iVar2") (= "=") (call_expression "GlobExpression(pcVar1,param_2,0)" (identifier "GlobExpression") (argument_list "(pcVar1,param_2,0)" (( "(") (identifier "pcVar1") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                iVar5 = iVar4 + 1;\n                if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }\n                uVar3 = ConstantString(pcVar1);\n                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;\n              }" ({ "{") (expression_statement "iVar5 = iVar4 + 1;" (assignment_expression "iVar5 = iVar4 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (local_20 <= iVar5) {\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }" (if "if") (parenthesized_expression "(local_20 <= iVar5)" (( "(") (binary_expression "local_20 <= iVar5" (identifier "local_20") (<= "<=") (identifier "iVar5")) () ")")) (compound_statement "{\n                  local_20 = local_20 * 2;\n                  local_28 = ResizeQuantumMemory(local_28,local_20,4);\n                  if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }\n                }" ({ "{") (expression_statement "local_20 = local_20 * 2;" (assignment_expression "local_20 = local_20 * 2" (identifier "local_20") (= "=") (binary_expression "local_20 * 2" (identifier "local_20") (* "*") (number_literal "2"))) (; ";")) (expression_statement "local_28 = ResizeQuantumMemory(local_28,local_20,4);" (assignment_expression "local_28 = ResizeQuantumMemory(local_28,local_20,4)" (identifier "local_28") (= "=") (call_expression "ResizeQuantumMemory(local_28,local_20,4)" (identifier "ResizeQuantumMemory") (argument_list "(local_28,local_20,4)" (( "(") (identifier "local_28") (, ",") (identifier "local_20") (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (local_28 == 0) {\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }" (if "if") (parenthesized_expression "(local_28 == 0)" (( "(") (binary_expression "local_28 == 0" (identifier "local_28") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);\n                    return 0;\n                  }" ({ "{") (expression_statement "ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4);" (call_expression "ThrowMagickException\n                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4)" (identifier "ThrowMagickException") (argument_list "(*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",\n                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",\n                               &DAT_000e672e,param_1 + 4)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x100c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x100c)" (( "(") (binary_expression "param_1 + 0x100c" (identifier "param_1") (+ "+") (number_literal "0x100c")) () ")")))) (, ",") (string_literal ""MagickWand/magick-property.c"" (" """) (string_content "MagickWand/magick-property.c") (" """)) (, ",") (string_literal ""MagickGetImageArtifacts"" (" """) (string_content "MagickGetImageArtifacts") (" """)) (, ",") (number_literal "0x27e") (, ",") (number_literal "400") (, ",") (string_literal ""MemoryAllocationFailed"" (" """) (string_content "MemoryAllocationFailed") (" """)) (, ",") (pointer_expression "&DAT_000e672e" (& "&") (identifier "DAT_000e672e")) (, ",") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar3 = ConstantString(pcVar1);" (assignment_expression "uVar3 = ConstantString(pcVar1)" (identifier "uVar3") (= "=") (call_expression "ConstantString(pcVar1)" (identifier "ConstantString") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(local_28 + iVar4 * 4) = uVar3;" (assignment_expression "*(undefined4 *)(local_28 + iVar4 * 4) = uVar3" (pointer_expression "*(undefined4 *)(local_28 + iVar4 * 4)" (* "*") (cast_expression "(undefined4 *)(local_28 + iVar4 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_28 + iVar4 * 4)" (( "(") (binary_expression "local_28 + iVar4 * 4" (identifier "local_28") (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (} "}"))) (expression_statement "pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));" (assignment_expression "pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" (identifier "pcVar1") (= "=") (cast_expression "(char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004))" (identifier "GetNextImageProperty") (argument_list "(*(undefined4 *)(param_1 + 0x1004))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x1004)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1004)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1004)" (( "(") (binary_expression "param_1 + 0x1004" (identifier "param_1") (+ "+") (number_literal "0x1004")) () ")")))) () ")"))))) (; ";")) (expression_statement "iVar4 = iVar5;" (assignment_expression "iVar4 = iVar5" (identifier "iVar4") (= "=") (identifier "iVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar1 != (char *)0x0)" (( "(") (binary_expression "pcVar1 != (char *)0x0" (identifier "pcVar1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "iVar4 = iVar5 * 4;" (assignment_expression "iVar4 = iVar5 * 4" (identifier "iVar4") (= "=") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) (; ";")) (} "}")))) (expression_statement "*(undefined4 *)(local_28 + iVar4) = 0;" (assignment_expression "*(undefined4 *)(local_28 + iVar4) = 0" (pointer_expression "*(undefined4 *)(local_28 + iVar4)" (* "*") (cast_expression "(undefined4 *)(local_28 + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_28 + iVar4)" (( "(") (binary_expression "local_28 + iVar4" (identifier "local_28") (+ "+") (identifier "iVar4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_3 = iVar5;" (assignment_expression "*param_3 = iVar5" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar5")) (; ";")) (} "}"))) (} "}")))) (return_statement "return local_28;" (return "return") (identifier "local_28") (; ";")) (} "}"))) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts")" (identifier "__assert_fail") (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,\n                "MagickGetImageArtifacts")" (( "(") (string_literal ""wand->signature == MagickWandSignature"" (" """) (string_content "wand->signature == MagickWandSignature") (" """)) (, ",") (string_literal ""MagickWand/magick-property.c"" (" """) (string_content "MagickWand/magick-property.c") (" """)) (, ",") (number_literal "0x262") (, ",") (string_literal ""MagickGetImageArtifacts"" (" """) (string_content "MagickGetImageArtifacts") (" """)) () ")"))) (; ";")) (} "}")))

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

char ** function_1(type_1 *var_1,char *pattern,size_t *number_artifacts)

{
  char *var_11;
  int var_13;
  size_t var_14;
  size_t var_18;
  char **var_8;
  int var_15;
  
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,
                  "MagickGetImageArtifacts");
  }
  if (var_1->signature == 0xabacadab) {
    if (var_1->debug != var_3) {
      var_4(0x40000,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x264,"%s",
                     var_1->name);
    }
    if (var_1->images == (type_2 *)0x0) {
      var_5
                (var_1->exception,"MagickWand/magick-property.c","MagickGetImageArtifacts",0x267,
                 0x1d6,"ContainsNoImages",&DAT_000e672e,var_1->name);
      var_8 = (char **)0x0;
    }
    else {
      var_6(var_1->images,"exif:*",var_1->exception);
      var_8 = (char **)var_7(0x400,4);
      if (var_8 != (char **)0x0) {
        var_9(var_1->images);
        var_11 = (char *)var_10(var_1->images);
        if (var_11 == (char *)0x0) {
          var_13 = 0;
          var_18 = 0;
        }
        else {
          var_15 = 0x400;
          var_14 = 0;
          do {
            var_18 = var_14;
            if (*var_11 != '[') {
              var_13 = var_12(var_11,pattern,0);
              if (var_13 != 0) {
                var_18 = var_14 + 1;
                if (var_15 <= (int)var_18) {
                  var_15 = var_15 * 2;
                  var_8 = (char **)var_16(var_8,var_15,4);
                  if (var_8 == (char **)0x0) {
                    var_5
                              (var_1->exception,"MagickWand/magick-property.c",
                               "MagickGetImageArtifacts",0x27e,400,"MemoryAllocationFailed",
                               &DAT_000e672e,var_1->name);
                    return (char **)0x0;
                  }
                }
                var_11 = (char *)var_17(var_11);
                var_8[var_14] = var_11;
              }
            }
            var_11 = (char *)var_10(var_1->images);
            var_14 = var_18;
          } while (var_11 != (char *)0x0);
          var_13 = var_18 * 4;
        }
        *(type_3 *)((int)var_8 + var_13) = 0;
        *number_artifacts = var_18;
      }
    }
    return var_8;
  }
                    /* WARNING: Subroutine does not return */
  var_2("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,
                "MagickGetImageArtifacts");
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content)) (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (string_literal (string_content)) (string_literal (string_content)) (number_literal) (number_literal) (string_literal (string_content)) (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (string_literal (string_content)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (string_literal (string_content)) (string_literal (string_content)) (number_literal) (number_literal) (string_literal (string_content)) (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal))))) (return_statement (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))))) (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))))

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

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

{
  char *pcVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  int local_28;
  int local_20;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x261,
                  "MASKED");
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (*(int *)(param_1 + 0x1018) != 0) {
      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MASKED",0x264,"%s",
                     param_1 + 4);
    }
    if (*(int *)(param_1 + 0x1004) == 0) {
      ThrowMagickException
                (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",
                 "MASKED",0x267,0x1d6,"ContainsNoImages",&DAT_000e672e,param_1 + 4)
      ;
      local_28 = 0;
    }
    else {
      GetImageProperty(*(int *)(param_1 + 0x1004),"exif:*",*(undefined4 *)(param_1 + 0x100c));
      local_28 = AcquireQuantumMemory(0x400,4);
      if (local_28 != 0) {
        ResetImagePropertyIterator(*(undefined4 *)(param_1 + 0x1004));
        pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));
        if (pcVar1 == (char *)0x0) {
          iVar4 = 0;
          iVar5 = 0;
        }
        else {
          local_20 = 0x400;
          iVar4 = 0;
          do {
            iVar5 = iVar4;
            if (*pcVar1 != '[') {
              iVar2 = GlobExpression(pcVar1,param_2,0);
              if (iVar2 != 0) {
                iVar5 = iVar4 + 1;
                if (local_20 <= iVar5) {
                  local_20 = local_20 * 2;
                  local_28 = ResizeQuantumMemory(local_28,local_20,4);
                  if (local_28 == 0) {
                    ThrowMagickException
                              (*(undefined4 *)(param_1 + 0x100c),"MagickWand/magick-property.c",
                               "MASKED",0x27e,400,"MemoryAllocationFailed",
                               &DAT_000e672e,param_1 + 4);
                    return 0;
                  }
                }
                uVar3 = ConstantString(pcVar1);
                *(undefined4 *)(local_28 + iVar4 * 4) = uVar3;
              }
            }
            pcVar1 = (char *)GetNextImageProperty(*(undefined4 *)(param_1 + 0x1004));
            iVar4 = iVar5;
          } while (pcVar1 != (char *)0x0);
          iVar4 = iVar5 * 4;
        }
        *(undefined4 *)(local_28 + iVar4) = 0;
        *param_3 = iVar5;
      }
    }
    return local_28;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x262,
                "MASKED");
}

