
/* 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 * MagickGetImageFilename(MagickWand *wand)

{
  char *pcVar1;
  
  if (wand == (MagickWand *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,
                  "MagickGetImageFilename");
  }
  if (wand->signature == 0xabacadab) {
    if (wand->debug != MagickFalse) {
      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",
                     wand->name);
    }
    if (wand->images == (Image *)0x0) {
      ThrowMagickException
                (wand->exception,"MagickWand/magick-image.c","MagickGetImageFilename",5000,0x1d6,
                 "ContainsNoImages",&DAT_0020ca76,wand->name);
      pcVar1 = (char *)0x0;
    }
    else {
      pcVar1 = (char *)AcquireString(wand->images->filename);
    }
    return pcVar1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,
                "MagickGetImageFilename");
}



undefined8 MagickGetImageFilename(long param_1)

{
  undefined8 uVar1;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,
                  "MagickGetImageFilename");
  }
  if (*(long *)(param_1 + 0x1030) == 0xabacadab) {
    if (*(int *)(param_1 + 0x1028) != 0) {
      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",
                     param_1 + 8);
    }
    if (*(long *)(param_1 + 0x1008) == 0) {
      ThrowMagickException
                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",
                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);
      uVar1 = 0;
    }
    else {
      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);
    }
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,
                "MagickGetImageFilename");
}


PUSH RBX
TEST RDI,RDI
JZ 0x0019818f
MOV RBX,RDI
MOV EAX,0xabacadab
CMP qword ptr [RDI + 0x1030],RAX
JNZ 0x001981ae
CMP dword ptr [RDI + 0x1028],0x0
JNZ 0x001981cd
MOV RDI,qword ptr [RBX + 0x1008]
TEST RDI,RDI
JZ 0x001981ff
ADD RDI,0x3f8
CALL 0x00111720
POP RBX
RET
LEA RCX,[0x21fd60]
MOV EDX,0x1382
LEA RSI,[0x21ce25]
LEA RDI,[0x21ce3f]
CALL 0x00111850
LEA RCX,[0x21fd60]
MOV EDX,0x1383
LEA RSI,[0x21ce25]
LEA RDI,[0x215f68]
CALL 0x00111850
LEA R9,[RDI + 0x8]
LEA R8,[0x2228e2]
MOV ECX,0x1385
LEA RDX,[0x21fd40]
LEA RSI,[0x21ce25]
MOV EDI,0x40000
MOV EAX,0x0
CALL 0x00112620
JMP 0x00198175
MOV RDI,qword ptr [RBX + 0x1018]
ADD RBX,0x8
PUSH RBX
LEA RAX,[0x20ca76]
PUSH RAX
LEA R9,[0x215f56]
MOV R8D,0x1d6
MOV ECX,0x1388
LEA RDX,[0x21fd40]
LEA RSI,[0x21ce25]
MOV EAX,0x0
CALL 0x00112db0
ADD RSP,0x10
MOV EAX,0x0
JMP 0x0019818d
(translation_unit "undefined8 MagickGetImageFilename(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");\n  }\n  if (*(long *)(param_1 + 0x1030) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }\n    if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename");\n}\n\n" (function_definition "undefined8 MagickGetImageFilename(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");\n  }\n  if (*(long *)(param_1 + 0x1030) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }\n    if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename");\n}" type_identifier (function_declarator "MagickGetImageFilename(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");\n  }\n  if (*(long *)(param_1 + 0x1030) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }\n    if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename");\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");\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-image.c",0x1382,\n                  "MagickGetImageFilename");\n  }" { comment (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickGetImageFilename"" " string_content ") ))) ;) })) (if_statement "if (*(long *)(param_1 + 0x1030) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }\n    if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }\n    return uVar1;\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x1030) == 0xabacadab)" ( (binary_expression "*(long *)(param_1 + 0x1030) == 0xabacadab" (pointer_expression "*(long *)(param_1 + 0x1030)" * (cast_expression "(long *)(param_1 + 0x1030)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1030)" ( (binary_expression "param_1 + 0x1030" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }\n    if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }\n    return uVar1;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1028) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1028) != 0" (pointer_expression "*(int *)(param_1 + 0x1028)" * (cast_expression "(int *)(param_1 + 0x1028)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1028)" ( (binary_expression "param_1 + 0x1028" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8)" identifier (argument_list "(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8)" ( number_literal , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickGetImageFilename"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "param_1 + 8" identifier + number_literal) ))) ;) })) (if_statement "if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }" if (parenthesized_expression "(*(long *)(param_1 + 0x1008) == 0)" ( (binary_expression "*(long *)(param_1 + 0x1008) == 0" (pointer_expression "*(long *)(param_1 + 0x1008)" * (cast_expression "(long *)(param_1 + 0x1008)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1008)" ( (binary_expression "param_1 + 0x1008" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }" { (expression_statement "ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);" (call_expression "ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1018)" * (cast_expression "(undefined8 *)(param_1 + 0x1018)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1018)" ( (binary_expression "param_1 + 0x1018" identifier + number_literal) )))) , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickGetImageFilename"" " string_content ") , number_literal , number_literal , (string_literal ""ContainsNoImages"" " string_content ") , (pointer_expression "&DAT_0020ca76" & identifier) , (binary_expression "param_1 + 8" identifier + number_literal) ))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }" else (compound_statement "{\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }" { (expression_statement "uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);" (assignment_expression "uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8)" identifier = (call_expression "AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8)" identifier (argument_list "(*(long *)(param_1 + 0x1008) + 0x3f8)" ( (binary_expression "*(long *)(param_1 + 0x1008) + 0x3f8" (pointer_expression "*(long *)(param_1 + 0x1008)" * (cast_expression "(long *)(param_1 + 0x1008)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1008)" ( (binary_expression "param_1 + 0x1008" identifier + number_literal) )))) + number_literal) )))) ;) }))) (return_statement "return uVar1;" return identifier ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickGetImageFilename"" " string_content ") ))) ;) })))
(translation_unit "/* 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 * MagickGetImageFilename(MagickWand *wand)\n\n{\n  char *pcVar1;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     wand->name);\n    }\n    if (wand->images == (Image *)0x0) {\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-image.c","MagickGetImageFilename",5000,0x1d6,\n                 "ContainsNoImages",&DAT_0020ca76,wand->name);\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = (char *)AcquireString(wand->images->filename);\n    }\n    return pcVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename");\n}\n\n" comment comment comment comment comment (function_definition "char * MagickGetImageFilename(MagickWand *wand)\n\n{\n  char *pcVar1;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     wand->name);\n    }\n    if (wand->images == (Image *)0x0) {\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-image.c","MagickGetImageFilename",5000,0x1d6,\n                 "ContainsNoImages",&DAT_0020ca76,wand->name);\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = (char *)AcquireString(wand->images->filename);\n    }\n    return pcVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename");\n}" primitive_type (pointer_declarator "* MagickGetImageFilename(MagickWand *wand)" * (function_declarator "MagickGetImageFilename(MagickWand *wand)" identifier (parameter_list "(MagickWand *wand)" ( (parameter_declaration "MagickWand *wand" type_identifier (pointer_declarator "*wand" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     wand->name);\n    }\n    if (wand->images == (Image *)0x0) {\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-image.c","MagickGetImageFilename",5000,0x1d6,\n                 "ContainsNoImages",&DAT_0020ca76,wand->name);\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = (char *)AcquireString(wand->images->filename);\n    }\n    return pcVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename");\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");\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-image.c",0x1382,\n                  "MagickGetImageFilename");\n  }" { comment (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickGetImageFilename"" " string_content ") ))) ;) })) (if_statement "if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     wand->name);\n    }\n    if (wand->images == (Image *)0x0) {\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-image.c","MagickGetImageFilename",5000,0x1d6,\n                 "ContainsNoImages",&DAT_0020ca76,wand->name);\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = (char *)AcquireString(wand->images->filename);\n    }\n    return pcVar1;\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-image.c","MagickGetImageFilename",0x1385,"%s",\n                     wand->name);\n    }\n    if (wand->images == (Image *)0x0) {\n      ThrowMagickException\n                (wand->exception,"MagickWand/magick-image.c","MagickGetImageFilename",5000,0x1d6,\n                 "ContainsNoImages",&DAT_0020ca76,wand->name);\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = (char *)AcquireString(wand->images->filename);\n    }\n    return pcVar1;\n  }" { (if_statement "if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%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-image.c","MagickGetImageFilename",0x1385,"%s",\n                     wand->name);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     wand->name);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     wand->name)" identifier (argument_list "(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     wand->name)" ( number_literal , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickGetImageFilename"" " 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-image.c","MagickGetImageFilename",5000,0x1d6,\n                 "ContainsNoImages",&DAT_0020ca76,wand->name);\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = (char *)AcquireString(wand->images->filename);\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-image.c","MagickGetImageFilename",5000,0x1d6,\n                 "ContainsNoImages",&DAT_0020ca76,wand->name);\n      pcVar1 = (char *)0x0;\n    }" { (expression_statement "ThrowMagickException\n                (wand->exception,"MagickWand/magick-image.c","MagickGetImageFilename",5000,0x1d6,\n                 "ContainsNoImages",&DAT_0020ca76,wand->name);" (call_expression "ThrowMagickException\n                (wand->exception,"MagickWand/magick-image.c","MagickGetImageFilename",5000,0x1d6,\n                 "ContainsNoImages",&DAT_0020ca76,wand->name)" identifier (argument_list "(wand->exception,"MagickWand/magick-image.c","MagickGetImageFilename",5000,0x1d6,\n                 "ContainsNoImages",&DAT_0020ca76,wand->name)" ( (field_expression "wand->exception" identifier -> field_identifier) , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickGetImageFilename"" " string_content ") , number_literal , number_literal , (string_literal ""ContainsNoImages"" " string_content ") , (pointer_expression "&DAT_0020ca76" & identifier) , (field_expression "wand->name" identifier -> field_identifier) ))) ;) (expression_statement "pcVar1 = (char *)0x0;" (assignment_expression "pcVar1 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      pcVar1 = (char *)AcquireString(wand->images->filename);\n    }" else (compound_statement "{\n      pcVar1 = (char *)AcquireString(wand->images->filename);\n    }" { (expression_statement "pcVar1 = (char *)AcquireString(wand->images->filename);" (assignment_expression "pcVar1 = (char *)AcquireString(wand->images->filename)" identifier = (cast_expression "(char *)AcquireString(wand->images->filename)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireString(wand->images->filename)" identifier (argument_list "(wand->images->filename)" ( (field_expression "wand->images->filename" (field_expression "wand->images" identifier -> field_identifier) -> field_identifier) ))))) ;) }))) (return_statement "return pcVar1;" return identifier ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickGetImageFilename"" " string_content ") ))) ;) })))
(translation_unit "undefined8 MagickGetImageFilename(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");\n  }\n  if (*(long *)(param_1 + 0x1030) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }\n    if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }\n    return uVar1;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename");\n}\n\n" (function_definition "undefined8 MagickGetImageFilename(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");\n  }\n  if (*(long *)(param_1 + 0x1030) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }\n    if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }\n    return uVar1;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename");\n}" type_identifier (function_declarator "MagickGetImageFilename(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");\n  }\n  if (*(long *)(param_1 + 0x1030) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }\n    if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }\n    return uVar1;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename");\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");\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-image.c",0x1382,\n                  "MagickGetImageFilename");\n  }" { (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickGetImageFilename"" " string_content ") ))) ;) })) (if_statement "if (*(long *)(param_1 + 0x1030) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }\n    if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }\n    return uVar1;\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x1030) == 0xabacadab)" ( (binary_expression "*(long *)(param_1 + 0x1030) == 0xabacadab" (pointer_expression "*(long *)(param_1 + 0x1030)" * (cast_expression "(long *)(param_1 + 0x1030)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1030)" ( (binary_expression "param_1 + 0x1030" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }\n    if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }\n    return uVar1;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1028) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1028) != 0" (pointer_expression "*(int *)(param_1 + 0x1028)" * (cast_expression "(int *)(param_1 + 0x1028)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1028)" ( (binary_expression "param_1 + 0x1028" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8)" identifier (argument_list "(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8)" ( number_literal , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickGetImageFilename"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "param_1 + 8" identifier + number_literal) ))) ;) })) (if_statement "if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }" if (parenthesized_expression "(*(long *)(param_1 + 0x1008) == 0)" ( (binary_expression "*(long *)(param_1 + 0x1008) == 0" (pointer_expression "*(long *)(param_1 + 0x1008)" * (cast_expression "(long *)(param_1 + 0x1008)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1008)" ( (binary_expression "param_1 + 0x1008" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }" { (expression_statement "ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);" (call_expression "ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1018)" * (cast_expression "(undefined8 *)(param_1 + 0x1018)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1018)" ( (binary_expression "param_1 + 0x1018" identifier + number_literal) )))) , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickGetImageFilename"" " string_content ") , number_literal , number_literal , (string_literal ""ContainsNoImages"" " string_content ") , (pointer_expression "&DAT_0020ca76" & identifier) , (binary_expression "param_1 + 8" identifier + number_literal) ))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }" else (compound_statement "{\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }" { (expression_statement "uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);" (assignment_expression "uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8)" identifier = (call_expression "AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8)" identifier (argument_list "(*(long *)(param_1 + 0x1008) + 0x3f8)" ( (binary_expression "*(long *)(param_1 + 0x1008) + 0x3f8" (pointer_expression "*(long *)(param_1 + 0x1008)" * (cast_expression "(long *)(param_1 + 0x1008)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1008)" ( (binary_expression "param_1 + 0x1008" identifier + number_literal) )))) + number_literal) )))) ;) }))) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickGetImageFilename"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (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 (sized_type_specifier long) (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 (sized_type_specifier long) (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 (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) }))) (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 "undefined8 MagickGetImageFilename(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");\n  }\n  if (*(long *)(param_1 + 0x1030) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }\n    if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }\n    return uVar1;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename");\n}" (type_identifier "undefined8") (function_declarator "MagickGetImageFilename(long param_1)" (identifier "MagickGetImageFilename") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");\n  }\n  if (*(long *)(param_1 + 0x1030) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }\n    if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }\n    return uVar1;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename");\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");\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-image.c",0x1382,\n                  "MagickGetImageFilename");\n  }" ({ "{") (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename")" (identifier "__assert_fail") (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,\n                  "MagickGetImageFilename")" (( "(") (string_literal ""wand != (MagickWand *) NULL"" (" """) (string_content "wand != (MagickWand *) NULL") (" """)) (, ",") (string_literal ""MagickWand/magick-image.c"" (" """) (string_content "MagickWand/magick-image.c") (" """)) (, ",") (number_literal "0x1382") (, ",") (string_literal ""MagickGetImageFilename"" (" """) (string_content "MagickGetImageFilename") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(long *)(param_1 + 0x1030) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }\n    if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x1030) == 0xabacadab)" (( "(") (binary_expression "*(long *)(param_1 + 0x1030) == 0xabacadab" (pointer_expression "*(long *)(param_1 + 0x1030)" (* "*") (cast_expression "(long *)(param_1 + 0x1030)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1030)" (( "(") (binary_expression "param_1 + 0x1030" (identifier "param_1") (+ "+") (number_literal "0x1030")) () ")")))) (== "==") (number_literal "0xabacadab")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }\n    if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }\n    return uVar1;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x1028) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1028) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1028) != 0" (pointer_expression "*(int *)(param_1 + 0x1028)" (* "*") (cast_expression "(int *)(param_1 + 0x1028)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1028)" (( "(") (binary_expression "param_1 + 0x1028" (identifier "param_1") (+ "+") (number_literal "0x1028")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);\n    }" ({ "{") (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8)" (identifier "LogMagickEvent") (argument_list "(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",\n                     param_1 + 8)" (( "(") (number_literal "0x40000") (, ",") (string_literal ""MagickWand/magick-image.c"" (" """) (string_content "MagickWand/magick-image.c") (" """)) (, ",") (string_literal ""MagickGetImageFilename"" (" """) (string_content "MagickGetImageFilename") (" """)) (, ",") (number_literal "0x1385") (, ",") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(long *)(param_1 + 0x1008) == 0) {\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x1008) == 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x1008) == 0" (pointer_expression "*(long *)(param_1 + 0x1008)" (* "*") (cast_expression "(long *)(param_1 + 0x1008)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1008)" (( "(") (binary_expression "param_1 + 0x1008" (identifier "param_1") (+ "+") (number_literal "0x1008")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);\n      uVar1 = 0;\n    }" ({ "{") (expression_statement "ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);" (call_expression "ThrowMagickException\n                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8)" (identifier "ThrowMagickException") (argument_list "(*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",\n                 "MagickGetImageFilename",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x1018)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x1018)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1018)" (( "(") (binary_expression "param_1 + 0x1018" (identifier "param_1") (+ "+") (number_literal "0x1018")) () ")")))) (, ",") (string_literal ""MagickWand/magick-image.c"" (" """) (string_content "MagickWand/magick-image.c") (" """)) (, ",") (string_literal ""MagickGetImageFilename"" (" """) (string_content "MagickGetImageFilename") (" """)) (, ",") (number_literal "5000") (, ",") (number_literal "0x1d6") (, ",") (string_literal ""ContainsNoImages"" (" """) (string_content "ContainsNoImages") (" """)) (, ",") (pointer_expression "&DAT_0020ca76" (& "&") (identifier "DAT_0020ca76")) (, ",") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }" (else "else") (compound_statement "{\n      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);\n    }" ({ "{") (expression_statement "uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);" (assignment_expression "uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8)" (identifier "uVar1") (= "=") (call_expression "AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8)" (identifier "AcquireString") (argument_list "(*(long *)(param_1 + 0x1008) + 0x3f8)" (( "(") (binary_expression "*(long *)(param_1 + 0x1008) + 0x3f8" (pointer_expression "*(long *)(param_1 + 0x1008)" (* "*") (cast_expression "(long *)(param_1 + 0x1008)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1008)" (( "(") (binary_expression "param_1 + 0x1008" (identifier "param_1") (+ "+") (number_literal "0x1008")) () ")")))) (+ "+") (number_literal "0x3f8")) () ")")))) (; ";")) (} "}")))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename")" (identifier "__assert_fail") (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,\n                "MagickGetImageFilename")" (( "(") (string_literal ""wand->signature == MagickWandSignature"" (" """) (string_content "wand->signature == MagickWandSignature") (" """)) (, ",") (string_literal ""MagickWand/magick-image.c"" (" """) (string_content "MagickWand/magick-image.c") (" """)) (, ",") (number_literal "0x1383") (, ",") (string_literal ""MagickGetImageFilename"" (" """) (string_content "MagickGetImageFilename") (" """)) () ")"))) (; ";")) (} "}")))

/* 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 *pcVar1;
  
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,
                  "MagickGetImageFilename");
  }
  if (var_1->signature == 0xabacadab) {
    if (var_1->debug != var_3) {
      var_4(0x40000,"MagickWand/magick-image.c","MagickGetImageFilename",0x1385,"%s",
                     var_1->name);
    }
    if (var_1->images == (type_2 *)0x0) {
      var_5
                (var_1->exception,"MagickWand/magick-image.c","MagickGetImageFilename",5000,0x1d6,
                 "ContainsNoImages",&DAT_0020ca76,var_1->name);
      pcVar1 = (char *)0x0;
    }
    else {
      pcVar1 = (char *)var_6(var_1->images->filename);
    }
    return pcVar1;
  }
                    /* WARNING: Subroutine does not return */
  var_2("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,
                "MagickGetImageFilename");
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) 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: (sized_type_specifier) 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: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (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 (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))))) (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))))))))

undefined8 MASKED(long param_1)

{
  undefined8 uVar1;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1382,
                  "MASKED");
  }
  if (*(long *)(param_1 + 0x1030) == 0xabacadab) {
    if (*(int *)(param_1 + 0x1028) != 0) {
      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MASKED",0x1385,"%s",
                     param_1 + 8);
    }
    if (*(long *)(param_1 + 0x1008) == 0) {
      ThrowMagickException
                (*(undefined8 *)(param_1 + 0x1018),"MagickWand/magick-image.c",
                 "MASKED",5000,0x1d6,"ContainsNoImages",&DAT_0020ca76,param_1 + 8);
      uVar1 = 0;
    }
    else {
      uVar1 = AcquireString(*(long *)(param_1 + 0x1008) + 0x3f8);
    }
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1383,
                "MASKED");
}

