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

MagickWand * DestroyMagickWand(MagickWand *wand)

{
  Image *pIVar1;
  ImageInfo *pIVar2;
  ExceptionInfo *pEVar3;
  MagickWand *pMVar4;
  
  if (wand == (MagickWand *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")
    ;
  }
  if (wand->signature == 0xabacadab) {
    if (wand->debug != MagickFalse) {
      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",wand->name);
    }
    pIVar1 = (Image *)DestroyImageList(wand->images);
    wand->images = pIVar1;
    if (wand->image_info != (ImageInfo *)0x0) {
      pIVar2 = (ImageInfo *)DestroyImageInfo(wand->image_info);
      wand->image_info = pIVar2;
    }
    if (wand->exception != (ExceptionInfo *)0x0) {
      pEVar3 = (ExceptionInfo *)DestroyExceptionInfo(wand->exception);
      wand->exception = pEVar3;
    }
    RelinquishWandId(wand->id);
    wand->signature = 0x54535254;
    pMVar4 = (MagickWand *)RelinquishMagickMemory(wand);
    return pMVar4;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,
                "DestroyMagickWand");
}



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

void DestroyMagickWand(undefined4 *param_1)

{
  undefined4 uVar1;
  
  if (param_1 == (undefined4 *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")
    ;
  }
  if (param_1[0x407] == -0x54535255) {
    if (param_1[0x406] != 0) {
      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);
    }
    uVar1 = DestroyImageList(param_1[0x401]);
    param_1[0x401] = uVar1;
    if (param_1[0x402] != 0) {
      uVar1 = DestroyImageInfo(param_1[0x402]);
      param_1[0x402] = uVar1;
    }
    if (param_1[0x403] != 0) {
      uVar1 = DestroyExceptionInfo(param_1[0x403]);
      param_1[0x403] = uVar1;
    }
    RelinquishWandId(*param_1);
    param_1[0x407] = 0x54535254;
    RelinquishMagickMemory(param_1);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,
                "DestroyMagickWand");
}


PUSH ESI
PUSH EBX
CALL 0x0001e8f0
ADD EBX,0xdf379
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x00086d82
CMP dword ptr [ESI + 0x101c],0xabacadab
JNZ 0x00086d63
MOV EAX,dword ptr [ESI + 0x1018]
TEST EAX,EAX
JNZ 0x00086d30
SUB ESP,0xc
PUSH dword ptr [ESI + 0x1004]
CALL 0x0001cf30
ADD ESP,0x10
MOV dword ptr [ESI + 0x1004],EAX
MOV EAX,dword ptr [ESI + 0x1008]
TEST EAX,EAX
JZ 0x00086ce9
SUB ESP,0xc
PUSH EAX
CALL 0x0001cd60
ADD ESP,0x10
MOV dword ptr [ESI + 0x1008],EAX
MOV EAX,dword ptr [ESI + 0x100c]
TEST EAX,EAX
JZ 0x00086d05
SUB ESP,0xc
PUSH EAX
CALL 0x0001e3a0
ADD ESP,0x10
MOV dword ptr [ESI + 0x100c],EAX
SUB ESP,0xc
PUSH dword ptr [ESI]
CALL 0x0001d3b0
MOV dword ptr [ESI + 0x101c],0x54535254
MOV dword ptr [ESP],ESI
CALL 0x0001dc90
ADD ESP,0x14
POP EBX
POP ESI
RET
LEA EAX,[ESI + 0x4]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xfff92fa4]
PUSH EAX
LEA EAX,[EBX + 0xfff92d68]
PUSH 0xab
PUSH EAX
LEA EAX,[EBX + 0xfff92af6]
PUSH EAX
PUSH 0x40000
CALL 0x0001d6f0
ADD ESP,0x20
JMP 0x00086cb6
LEA EAX,[EBX + 0xfff92d7c]
PUSH EAX
LEA EAX,[EBX + 0xfff92af6]
PUSH 0xa9
PUSH EAX
LEA EAX,[EBX + 0xfff8e9f8]
PUSH EAX
CALL 0x0001ccf0
LEA EAX,[EBX + 0xfff92d7c]
PUSH EAX
LEA EAX,[EBX + 0xfff92af6]
PUSH 0xa8
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\nvoid DestroyMagickWand(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }\n  if (param_1[0x407] == -0x54535255) {\n    if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }\n    uVar1 = DestroyImageList(param_1[0x401]);\n    param_1[0x401] = uVar1;\n    if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }\n    if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }\n    RelinquishWandId(*param_1);\n    param_1[0x407] = 0x54535254;\n    RelinquishMagickMemory(param_1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand");\n}\n\n" comment (function_definition "void DestroyMagickWand(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }\n  if (param_1[0x407] == -0x54535255) {\n    if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }\n    uVar1 = DestroyImageList(param_1[0x401]);\n    param_1[0x401] = uVar1;\n    if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }\n    if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }\n    RelinquishWandId(*param_1);\n    param_1[0x407] = 0x54535254;\n    RelinquishMagickMemory(param_1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand");\n}" primitive_type (function_declarator "DestroyMagickWand(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }\n  if (param_1[0x407] == -0x54535255) {\n    if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }\n    uVar1 = DestroyImageList(param_1[0x401]);\n    param_1[0x401] = uVar1;\n    if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }\n    if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }\n    RelinquishWandId(*param_1);\n    param_1[0x407] = 0x54535254;\n    RelinquishMagickMemory(param_1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand");\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }" if (parenthesized_expression "(param_1 == (undefined4 *)0x0)" ( (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }" { comment (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-wand.c"" " string_content ") , number_literal , (string_literal ""DestroyMagickWand"" " string_content ") ))) ;) })) (if_statement "if (param_1[0x407] == -0x54535255) {\n    if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }\n    uVar1 = DestroyImageList(param_1[0x401]);\n    param_1[0x401] = uVar1;\n    if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }\n    if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }\n    RelinquishWandId(*param_1);\n    param_1[0x407] = 0x54535254;\n    RelinquishMagickMemory(param_1);\n    return;\n  }" if (parenthesized_expression "(param_1[0x407] == -0x54535255)" ( (binary_expression "param_1[0x407] == -0x54535255" (subscript_expression "param_1[0x407]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }\n    uVar1 = DestroyImageList(param_1[0x401]);\n    param_1[0x401] = uVar1;\n    if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }\n    if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }\n    RelinquishWandId(*param_1);\n    param_1[0x407] = 0x54535254;\n    RelinquishMagickMemory(param_1);\n    return;\n  }" { (if_statement "if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }" if (parenthesized_expression "(param_1[0x406] != 0)" ( (binary_expression "param_1[0x406] != 0" (subscript_expression "param_1[0x406]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1)" identifier (argument_list "(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1)" ( number_literal , (string_literal ""MagickWand/magick-wand.c"" " string_content ") , (string_literal ""DestroyMagickWand"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) })) (expression_statement "uVar1 = DestroyImageList(param_1[0x401]);" (assignment_expression "uVar1 = DestroyImageList(param_1[0x401])" identifier = (call_expression "DestroyImageList(param_1[0x401])" identifier (argument_list "(param_1[0x401])" ( (subscript_expression "param_1[0x401]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[0x401] = uVar1;" (assignment_expression "param_1[0x401] = uVar1" (subscript_expression "param_1[0x401]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }" if (parenthesized_expression "(param_1[0x402] != 0)" ( (binary_expression "param_1[0x402] != 0" (subscript_expression "param_1[0x402]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }" { (expression_statement "uVar1 = DestroyImageInfo(param_1[0x402]);" (assignment_expression "uVar1 = DestroyImageInfo(param_1[0x402])" identifier = (call_expression "DestroyImageInfo(param_1[0x402])" identifier (argument_list "(param_1[0x402])" ( (subscript_expression "param_1[0x402]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[0x402] = uVar1;" (assignment_expression "param_1[0x402] = uVar1" (subscript_expression "param_1[0x402]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }" if (parenthesized_expression "(param_1[0x403] != 0)" ( (binary_expression "param_1[0x403] != 0" (subscript_expression "param_1[0x403]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }" { (expression_statement "uVar1 = DestroyExceptionInfo(param_1[0x403]);" (assignment_expression "uVar1 = DestroyExceptionInfo(param_1[0x403])" identifier = (call_expression "DestroyExceptionInfo(param_1[0x403])" identifier (argument_list "(param_1[0x403])" ( (subscript_expression "param_1[0x403]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[0x403] = uVar1;" (assignment_expression "param_1[0x403] = uVar1" (subscript_expression "param_1[0x403]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "RelinquishWandId(*param_1);" (call_expression "RelinquishWandId(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "param_1[0x407] = 0x54535254;" (assignment_expression "param_1[0x407] = 0x54535254" (subscript_expression "param_1[0x407]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-wand.c"" " string_content ") , number_literal , (string_literal ""DestroyMagickWand"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n\nMagickWand * DestroyMagickWand(MagickWand *wand)\n\n{\n  Image *pIVar1;\n  ImageInfo *pIVar2;\n  ExceptionInfo *pEVar3;\n  MagickWand *pMVar4;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",wand->name);\n    }\n    pIVar1 = (Image *)DestroyImageList(wand->images);\n    wand->images = pIVar1;\n    if (wand->image_info != (ImageInfo *)0x0) {\n      pIVar2 = (ImageInfo *)DestroyImageInfo(wand->image_info);\n      wand->image_info = pIVar2;\n    }\n    if (wand->exception != (ExceptionInfo *)0x0) {\n      pEVar3 = (ExceptionInfo *)DestroyExceptionInfo(wand->exception);\n      wand->exception = pEVar3;\n    }\n    RelinquishWandId(wand->id);\n    wand->signature = 0x54535254;\n    pMVar4 = (MagickWand *)RelinquishMagickMemory(wand);\n    return pMVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand");\n}\n\n" comment comment comment comment comment comment (function_definition "MagickWand * DestroyMagickWand(MagickWand *wand)\n\n{\n  Image *pIVar1;\n  ImageInfo *pIVar2;\n  ExceptionInfo *pEVar3;\n  MagickWand *pMVar4;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",wand->name);\n    }\n    pIVar1 = (Image *)DestroyImageList(wand->images);\n    wand->images = pIVar1;\n    if (wand->image_info != (ImageInfo *)0x0) {\n      pIVar2 = (ImageInfo *)DestroyImageInfo(wand->image_info);\n      wand->image_info = pIVar2;\n    }\n    if (wand->exception != (ExceptionInfo *)0x0) {\n      pEVar3 = (ExceptionInfo *)DestroyExceptionInfo(wand->exception);\n      wand->exception = pEVar3;\n    }\n    RelinquishWandId(wand->id);\n    wand->signature = 0x54535254;\n    pMVar4 = (MagickWand *)RelinquishMagickMemory(wand);\n    return pMVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand");\n}" type_identifier (pointer_declarator "* DestroyMagickWand(MagickWand *wand)" * (function_declarator "DestroyMagickWand(MagickWand *wand)" identifier (parameter_list "(MagickWand *wand)" ( (parameter_declaration "MagickWand *wand" type_identifier (pointer_declarator "*wand" * identifier)) )))) (compound_statement "{\n  Image *pIVar1;\n  ImageInfo *pIVar2;\n  ExceptionInfo *pEVar3;\n  MagickWand *pMVar4;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",wand->name);\n    }\n    pIVar1 = (Image *)DestroyImageList(wand->images);\n    wand->images = pIVar1;\n    if (wand->image_info != (ImageInfo *)0x0) {\n      pIVar2 = (ImageInfo *)DestroyImageInfo(wand->image_info);\n      wand->image_info = pIVar2;\n    }\n    if (wand->exception != (ExceptionInfo *)0x0) {\n      pEVar3 = (ExceptionInfo *)DestroyExceptionInfo(wand->exception);\n      wand->exception = pEVar3;\n    }\n    RelinquishWandId(wand->id);\n    wand->signature = 0x54535254;\n    pMVar4 = (MagickWand *)RelinquishMagickMemory(wand);\n    return pMVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand");\n}" { (declaration "Image *pIVar1;" type_identifier (pointer_declarator "*pIVar1" * identifier) ;) (declaration "ImageInfo *pIVar2;" type_identifier (pointer_declarator "*pIVar2" * identifier) ;) (declaration "ExceptionInfo *pEVar3;" type_identifier (pointer_declarator "*pEVar3" * identifier) ;) (declaration "MagickWand *pMVar4;" type_identifier (pointer_declarator "*pMVar4" * identifier) ;) (if_statement "if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\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-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }" { comment (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-wand.c"" " string_content ") , number_literal , (string_literal ""DestroyMagickWand"" " string_content ") ))) ;) })) (if_statement "if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",wand->name);\n    }\n    pIVar1 = (Image *)DestroyImageList(wand->images);\n    wand->images = pIVar1;\n    if (wand->image_info != (ImageInfo *)0x0) {\n      pIVar2 = (ImageInfo *)DestroyImageInfo(wand->image_info);\n      wand->image_info = pIVar2;\n    }\n    if (wand->exception != (ExceptionInfo *)0x0) {\n      pEVar3 = (ExceptionInfo *)DestroyExceptionInfo(wand->exception);\n      wand->exception = pEVar3;\n    }\n    RelinquishWandId(wand->id);\n    wand->signature = 0x54535254;\n    pMVar4 = (MagickWand *)RelinquishMagickMemory(wand);\n    return pMVar4;\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-wand.c","DestroyMagickWand",0xab,"%s",wand->name);\n    }\n    pIVar1 = (Image *)DestroyImageList(wand->images);\n    wand->images = pIVar1;\n    if (wand->image_info != (ImageInfo *)0x0) {\n      pIVar2 = (ImageInfo *)DestroyImageInfo(wand->image_info);\n      wand->image_info = pIVar2;\n    }\n    if (wand->exception != (ExceptionInfo *)0x0) {\n      pEVar3 = (ExceptionInfo *)DestroyExceptionInfo(wand->exception);\n      wand->exception = pEVar3;\n    }\n    RelinquishWandId(wand->id);\n    wand->signature = 0x54535254;\n    pMVar4 = (MagickWand *)RelinquishMagickMemory(wand);\n    return pMVar4;\n  }" { (if_statement "if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",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-wand.c","DestroyMagickWand",0xab,"%s",wand->name);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",wand->name);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",wand->name)" identifier (argument_list "(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",wand->name)" ( number_literal , (string_literal ""MagickWand/magick-wand.c"" " string_content ") , (string_literal ""DestroyMagickWand"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "wand->name" identifier -> field_identifier) ))) ;) })) (expression_statement "pIVar1 = (Image *)DestroyImageList(wand->images);" (assignment_expression "pIVar1 = (Image *)DestroyImageList(wand->images)" identifier = (cast_expression "(Image *)DestroyImageList(wand->images)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "DestroyImageList(wand->images)" identifier (argument_list "(wand->images)" ( (field_expression "wand->images" identifier -> field_identifier) ))))) ;) (expression_statement "wand->images = pIVar1;" (assignment_expression "wand->images = pIVar1" (field_expression "wand->images" identifier -> field_identifier) = identifier) ;) (if_statement "if (wand->image_info != (ImageInfo *)0x0) {\n      pIVar2 = (ImageInfo *)DestroyImageInfo(wand->image_info);\n      wand->image_info = pIVar2;\n    }" if (parenthesized_expression "(wand->image_info != (ImageInfo *)0x0)" ( (binary_expression "wand->image_info != (ImageInfo *)0x0" (field_expression "wand->image_info" identifier -> field_identifier) != (cast_expression "(ImageInfo *)0x0" ( (type_descriptor "ImageInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pIVar2 = (ImageInfo *)DestroyImageInfo(wand->image_info);\n      wand->image_info = pIVar2;\n    }" { (expression_statement "pIVar2 = (ImageInfo *)DestroyImageInfo(wand->image_info);" (assignment_expression "pIVar2 = (ImageInfo *)DestroyImageInfo(wand->image_info)" identifier = (cast_expression "(ImageInfo *)DestroyImageInfo(wand->image_info)" ( (type_descriptor "ImageInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "DestroyImageInfo(wand->image_info)" identifier (argument_list "(wand->image_info)" ( (field_expression "wand->image_info" identifier -> field_identifier) ))))) ;) (expression_statement "wand->image_info = pIVar2;" (assignment_expression "wand->image_info = pIVar2" (field_expression "wand->image_info" identifier -> field_identifier) = identifier) ;) })) (if_statement "if (wand->exception != (ExceptionInfo *)0x0) {\n      pEVar3 = (ExceptionInfo *)DestroyExceptionInfo(wand->exception);\n      wand->exception = pEVar3;\n    }" if (parenthesized_expression "(wand->exception != (ExceptionInfo *)0x0)" ( (binary_expression "wand->exception != (ExceptionInfo *)0x0" (field_expression "wand->exception" identifier -> field_identifier) != (cast_expression "(ExceptionInfo *)0x0" ( (type_descriptor "ExceptionInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pEVar3 = (ExceptionInfo *)DestroyExceptionInfo(wand->exception);\n      wand->exception = pEVar3;\n    }" { (expression_statement "pEVar3 = (ExceptionInfo *)DestroyExceptionInfo(wand->exception);" (assignment_expression "pEVar3 = (ExceptionInfo *)DestroyExceptionInfo(wand->exception)" identifier = (cast_expression "(ExceptionInfo *)DestroyExceptionInfo(wand->exception)" ( (type_descriptor "ExceptionInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "DestroyExceptionInfo(wand->exception)" identifier (argument_list "(wand->exception)" ( (field_expression "wand->exception" identifier -> field_identifier) ))))) ;) (expression_statement "wand->exception = pEVar3;" (assignment_expression "wand->exception = pEVar3" (field_expression "wand->exception" identifier -> field_identifier) = identifier) ;) })) (expression_statement "RelinquishWandId(wand->id);" (call_expression "RelinquishWandId(wand->id)" identifier (argument_list "(wand->id)" ( (field_expression "wand->id" identifier -> field_identifier) ))) ;) (expression_statement "wand->signature = 0x54535254;" (assignment_expression "wand->signature = 0x54535254" (field_expression "wand->signature" identifier -> field_identifier) = number_literal) ;) (expression_statement "pMVar4 = (MagickWand *)RelinquishMagickMemory(wand);" (assignment_expression "pMVar4 = (MagickWand *)RelinquishMagickMemory(wand)" identifier = (cast_expression "(MagickWand *)RelinquishMagickMemory(wand)" ( (type_descriptor "MagickWand *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "RelinquishMagickMemory(wand)" identifier (argument_list "(wand)" ( identifier ))))) ;) (return_statement "return pMVar4;" return identifier ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-wand.c"" " string_content ") , number_literal , (string_literal ""DestroyMagickWand"" " string_content ") ))) ;) })))
(translation_unit "void DestroyMagickWand(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == (undefined4 *)0x0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }\n  if (param_1[0x407] == -0x54535255) {\n    if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }\n    uVar1 = DestroyImageList(param_1[0x401]);\n    param_1[0x401] = uVar1;\n    if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }\n    if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }\n    RelinquishWandId(*param_1);\n    param_1[0x407] = 0x54535254;\n    RelinquishMagickMemory(param_1);\n    return;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand");\n}\n\n" (function_definition "void DestroyMagickWand(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == (undefined4 *)0x0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }\n  if (param_1[0x407] == -0x54535255) {\n    if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }\n    uVar1 = DestroyImageList(param_1[0x401]);\n    param_1[0x401] = uVar1;\n    if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }\n    if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }\n    RelinquishWandId(*param_1);\n    param_1[0x407] = 0x54535254;\n    RelinquishMagickMemory(param_1);\n    return;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand");\n}" primitive_type (function_declarator "DestroyMagickWand(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 == (undefined4 *)0x0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }\n  if (param_1[0x407] == -0x54535255) {\n    if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }\n    uVar1 = DestroyImageList(param_1[0x401]);\n    param_1[0x401] = uVar1;\n    if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }\n    if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }\n    RelinquishWandId(*param_1);\n    param_1[0x407] = 0x54535254;\n    RelinquishMagickMemory(param_1);\n    return;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand");\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == (undefined4 *)0x0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }" if (parenthesized_expression "(param_1 == (undefined4 *)0x0)" ( (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }" { (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-wand.c"" " string_content ") , number_literal , (string_literal ""DestroyMagickWand"" " string_content ") ))) ;) })) (if_statement "if (param_1[0x407] == -0x54535255) {\n    if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }\n    uVar1 = DestroyImageList(param_1[0x401]);\n    param_1[0x401] = uVar1;\n    if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }\n    if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }\n    RelinquishWandId(*param_1);\n    param_1[0x407] = 0x54535254;\n    RelinquishMagickMemory(param_1);\n    return;\n  }" if (parenthesized_expression "(param_1[0x407] == -0x54535255)" ( (binary_expression "param_1[0x407] == -0x54535255" (subscript_expression "param_1[0x407]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }\n    uVar1 = DestroyImageList(param_1[0x401]);\n    param_1[0x401] = uVar1;\n    if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }\n    if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }\n    RelinquishWandId(*param_1);\n    param_1[0x407] = 0x54535254;\n    RelinquishMagickMemory(param_1);\n    return;\n  }" { (if_statement "if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }" if (parenthesized_expression "(param_1[0x406] != 0)" ( (binary_expression "param_1[0x406] != 0" (subscript_expression "param_1[0x406]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1)" identifier (argument_list "(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1)" ( number_literal , (string_literal ""MagickWand/magick-wand.c"" " string_content ") , (string_literal ""DestroyMagickWand"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) })) (expression_statement "uVar1 = DestroyImageList(param_1[0x401]);" (assignment_expression "uVar1 = DestroyImageList(param_1[0x401])" identifier = (call_expression "DestroyImageList(param_1[0x401])" identifier (argument_list "(param_1[0x401])" ( (subscript_expression "param_1[0x401]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[0x401] = uVar1;" (assignment_expression "param_1[0x401] = uVar1" (subscript_expression "param_1[0x401]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }" if (parenthesized_expression "(param_1[0x402] != 0)" ( (binary_expression "param_1[0x402] != 0" (subscript_expression "param_1[0x402]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }" { (expression_statement "uVar1 = DestroyImageInfo(param_1[0x402]);" (assignment_expression "uVar1 = DestroyImageInfo(param_1[0x402])" identifier = (call_expression "DestroyImageInfo(param_1[0x402])" identifier (argument_list "(param_1[0x402])" ( (subscript_expression "param_1[0x402]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[0x402] = uVar1;" (assignment_expression "param_1[0x402] = uVar1" (subscript_expression "param_1[0x402]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }" if (parenthesized_expression "(param_1[0x403] != 0)" ( (binary_expression "param_1[0x403] != 0" (subscript_expression "param_1[0x403]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }" { (expression_statement "uVar1 = DestroyExceptionInfo(param_1[0x403]);" (assignment_expression "uVar1 = DestroyExceptionInfo(param_1[0x403])" identifier = (call_expression "DestroyExceptionInfo(param_1[0x403])" identifier (argument_list "(param_1[0x403])" ( (subscript_expression "param_1[0x403]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[0x403] = uVar1;" (assignment_expression "param_1[0x403] = uVar1" (subscript_expression "param_1[0x403]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "RelinquishWandId(*param_1);" (call_expression "RelinquishWandId(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "param_1[0x407] = 0x54535254;" (assignment_expression "param_1[0x407] = 0x54535254" (subscript_expression "param_1[0x407]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-wand.c"" " string_content ") , number_literal , (string_literal ""DestroyMagickWand"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") , (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void DestroyMagickWand(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == (undefined4 *)0x0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }\n  if (param_1[0x407] == -0x54535255) {\n    if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }\n    uVar1 = DestroyImageList(param_1[0x401]);\n    param_1[0x401] = uVar1;\n    if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }\n    if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }\n    RelinquishWandId(*param_1);\n    param_1[0x407] = 0x54535254;\n    RelinquishMagickMemory(param_1);\n    return;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand");\n}" (primitive_type "void") (function_declarator "DestroyMagickWand(undefined4 *param_1)" (identifier "DestroyMagickWand") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 == (undefined4 *)0x0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }\n  if (param_1[0x407] == -0x54535255) {\n    if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }\n    uVar1 = DestroyImageList(param_1[0x401]);\n    param_1[0x401] = uVar1;\n    if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }\n    if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }\n    RelinquishWandId(*param_1);\n    param_1[0x407] = 0x54535254;\n    RelinquishMagickMemory(param_1);\n    return;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand");\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (param_1 == (undefined4 *)0x0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }" (if "if") (parenthesized_expression "(param_1 == (undefined4 *)0x0)" (( "(") (binary_expression "param_1 == (undefined4 *)0x0" (identifier "param_1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;\n  }" ({ "{") (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")\n    ;" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")" (identifier "__assert_fail") (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")" (( "(") (string_literal ""wand != (MagickWand *) NULL"" (" """) (string_content "wand != (MagickWand *) NULL") (" """)) (, ",") (string_literal ""MagickWand/magick-wand.c"" (" """) (string_content "MagickWand/magick-wand.c") (" """)) (, ",") (number_literal "0xa8") (, ",") (string_literal ""DestroyMagickWand"" (" """) (string_content "DestroyMagickWand") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1[0x407] == -0x54535255) {\n    if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }\n    uVar1 = DestroyImageList(param_1[0x401]);\n    param_1[0x401] = uVar1;\n    if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }\n    if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }\n    RelinquishWandId(*param_1);\n    param_1[0x407] = 0x54535254;\n    RelinquishMagickMemory(param_1);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1[0x407] == -0x54535255)" (( "(") (binary_expression "param_1[0x407] == -0x54535255" (subscript_expression "param_1[0x407]" (identifier "param_1") ([ "[") (number_literal "0x407") (] "]")) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }\n    uVar1 = DestroyImageList(param_1[0x401]);\n    param_1[0x401] = uVar1;\n    if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }\n    if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }\n    RelinquishWandId(*param_1);\n    param_1[0x407] = 0x54535254;\n    RelinquishMagickMemory(param_1);\n    return;\n  }" ({ "{") (if_statement "if (param_1[0x406] != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }" (if "if") (parenthesized_expression "(param_1[0x406] != 0)" (( "(") (binary_expression "param_1[0x406] != 0" (subscript_expression "param_1[0x406]" (identifier "param_1") ([ "[") (number_literal "0x406") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);\n    }" ({ "{") (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1)" (identifier "LogMagickEvent") (argument_list "(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",param_1 + 1)" (( "(") (number_literal "0x40000") (, ",") (string_literal ""MagickWand/magick-wand.c"" (" """) (string_content "MagickWand/magick-wand.c") (" """)) (, ",") (string_literal ""DestroyMagickWand"" (" """) (string_content "DestroyMagickWand") (" """)) (, ",") (number_literal "0xab") (, ",") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = DestroyImageList(param_1[0x401]);" (assignment_expression "uVar1 = DestroyImageList(param_1[0x401])" (identifier "uVar1") (= "=") (call_expression "DestroyImageList(param_1[0x401])" (identifier "DestroyImageList") (argument_list "(param_1[0x401])" (( "(") (subscript_expression "param_1[0x401]" (identifier "param_1") ([ "[") (number_literal "0x401") (] "]")) () ")")))) (; ";")) (expression_statement "param_1[0x401] = uVar1;" (assignment_expression "param_1[0x401] = uVar1" (subscript_expression "param_1[0x401]" (identifier "param_1") ([ "[") (number_literal "0x401") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (if_statement "if (param_1[0x402] != 0) {\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }" (if "if") (parenthesized_expression "(param_1[0x402] != 0)" (( "(") (binary_expression "param_1[0x402] != 0" (subscript_expression "param_1[0x402]" (identifier "param_1") ([ "[") (number_literal "0x402") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = DestroyImageInfo(param_1[0x402]);\n      param_1[0x402] = uVar1;\n    }" ({ "{") (expression_statement "uVar1 = DestroyImageInfo(param_1[0x402]);" (assignment_expression "uVar1 = DestroyImageInfo(param_1[0x402])" (identifier "uVar1") (= "=") (call_expression "DestroyImageInfo(param_1[0x402])" (identifier "DestroyImageInfo") (argument_list "(param_1[0x402])" (( "(") (subscript_expression "param_1[0x402]" (identifier "param_1") ([ "[") (number_literal "0x402") (] "]")) () ")")))) (; ";")) (expression_statement "param_1[0x402] = uVar1;" (assignment_expression "param_1[0x402] = uVar1" (subscript_expression "param_1[0x402]" (identifier "param_1") ([ "[") (number_literal "0x402") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (if_statement "if (param_1[0x403] != 0) {\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }" (if "if") (parenthesized_expression "(param_1[0x403] != 0)" (( "(") (binary_expression "param_1[0x403] != 0" (subscript_expression "param_1[0x403]" (identifier "param_1") ([ "[") (number_literal "0x403") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = DestroyExceptionInfo(param_1[0x403]);\n      param_1[0x403] = uVar1;\n    }" ({ "{") (expression_statement "uVar1 = DestroyExceptionInfo(param_1[0x403]);" (assignment_expression "uVar1 = DestroyExceptionInfo(param_1[0x403])" (identifier "uVar1") (= "=") (call_expression "DestroyExceptionInfo(param_1[0x403])" (identifier "DestroyExceptionInfo") (argument_list "(param_1[0x403])" (( "(") (subscript_expression "param_1[0x403]" (identifier "param_1") ([ "[") (number_literal "0x403") (] "]")) () ")")))) (; ";")) (expression_statement "param_1[0x403] = uVar1;" (assignment_expression "param_1[0x403] = uVar1" (subscript_expression "param_1[0x403]" (identifier "param_1") ([ "[") (number_literal "0x403") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (expression_statement "RelinquishWandId(*param_1);" (call_expression "RelinquishWandId(*param_1)" (identifier "RelinquishWandId") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (expression_statement "param_1[0x407] = 0x54535254;" (assignment_expression "param_1[0x407] = 0x54535254" (subscript_expression "param_1[0x407]" (identifier "param_1") ([ "[") (number_literal "0x407") (] "]")) (= "=") (number_literal "0x54535254")) (; ";")) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" (identifier "RelinquishMagickMemory") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand")" (identifier "__assert_fail") (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,\n                "DestroyMagickWand")" (( "(") (string_literal ""wand->signature == MagickWandSignature"" (" """) (string_content "wand->signature == MagickWandSignature") (" """)) (, ",") (string_literal ""MagickWand/magick-wand.c"" (" """) (string_content "MagickWand/magick-wand.c") (" """)) (, ",") (number_literal "0xa9") (, ",") (string_literal ""DestroyMagickWand"" (" """) (string_content "DestroyMagickWand") (" """)) () ")"))) (; ";")) (} "}")))

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

type_1 * function_1(type_1 *var_1)

{
  type_2 *pIVar1;
  type_3 *pIVar2;
  type_4 *pEVar3;
  type_1 *pMVar4;
  
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"DestroyMagickWand")
    ;
  }
  if (var_1->signature == 0xabacadab) {
    if (var_1->debug != var_3) {
      var_4(0x40000,"MagickWand/magick-wand.c","DestroyMagickWand",0xab,"%s",var_1->name);
    }
    pIVar1 = (type_2 *)var_5(var_1->images);
    var_1->images = pIVar1;
    if (var_1->image_info != (type_3 *)0x0) {
      pIVar2 = (type_3 *)var_6(var_1->image_info);
      var_1->image_info = pIVar2;
    }
    if (var_1->exception != (type_4 *)0x0) {
      pEVar3 = (type_4 *)var_7(var_1->exception);
      var_1->exception = pEVar3;
    }
    var_8(var_1->id);
    var_1->signature = 0x54535254;
    pMVar4 = (type_1 *)var_9(var_1);
    return pMVar4;
  }
                    /* WARNING: Subroutine does not return */
  var_2("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,
                "DestroyMagickWand");
}


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

void MASKED(undefined4 *param_1)

{
  undefined4 uVar1;
  
  if (param_1 == (undefined4 *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-wand.c",0xa8,"MASKED")
    ;
  }
  if (param_1[0x407] == -0x54535255) {
    if (param_1[0x406] != 0) {
      LogMagickEvent(0x40000,"MagickWand/magick-wand.c","MASKED",0xab,"%s",param_1 + 1);
    }
    uVar1 = DestroyImageList(param_1[0x401]);
    param_1[0x401] = uVar1;
    if (param_1[0x402] != 0) {
      uVar1 = DestroyImageInfo(param_1[0x402]);
      param_1[0x402] = uVar1;
    }
    if (param_1[0x403] != 0) {
      uVar1 = DestroyExceptionInfo(param_1[0x403]);
      param_1[0x403] = uVar1;
    }
    RelinquishWandId(*param_1);
    param_1[0x407] = 0x54535254;
    RelinquishMagickMemory(param_1);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-wand.c",0xa9,
                "MASKED");
}

