
/* 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 * MagickMorphImages(MagickWand *wand,size_t number_frames)

{
  Image *images;
  MagickWand *pMVar1;
  
  if (wand == (MagickWand *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,
                  "MagickMorphImages");
  }
  if (wand->signature == 0xabacadab) {
    if (wand->debug != MagickFalse) {
      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",wand->name)
      ;
    }
    if (wand->images != (Image *)0x0) {
      images = (Image *)MorphImages(wand->images,number_frames,wand->exception);
      if (images != (Image *)0x0) {
        pMVar1 = CloneMagickWandFromImages(wand,images);
        return pMVar1;
      }
    }
    return (MagickWand *)0x0;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,
                "MagickMorphImages");
}



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

undefined4 MagickMorphImages(int param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,
                  "MagickMorphImages");
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (*(int *)(param_1 + 0x1018) != 0) {
      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4
                    );
    }
    if (*(int *)(param_1 + 0x1004) != 0) {
      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));
      if (iVar1 != 0) {
        uVar2 = FUN_0006bca0();
        return uVar2;
      }
    }
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,
                "MagickMorphImages");
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x0001e8f0
ADD EBX,0xedb44
MOV EDI,dword ptr [ESP + 0x14]
TEST ESI,ESI
JZ 0x00078556
CMP dword ptr [ESI + 0x101c],0xabacadab
JNZ 0x00078575
MOV EAX,dword ptr [ESI + 0x1018]
TEST EAX,EAX
JNZ 0x00078518
MOV EAX,dword ptr [ESI + 0x1004]
TEST EAX,EAX
JZ 0x00078550
SUB ESP,0x4
PUSH dword ptr [ESI + 0x100c]
PUSH EDI
PUSH EAX
CALL 0x0001d600
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00078550
POP EBX
MOV EDX,EAX
MOV EAX,ESI
POP ESI
POP EDI
JMP 0x0006bca0
LEA EAX,[ESI + 0x4]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xfff92fa4]
PUSH EAX
LEA EAX,[EBX + 0xfff902a8]
PUSH 0x1d6f
PUSH EAX
LEA EAX,[EBX + 0xfff8e919]
PUSH EAX
PUSH 0x40000
CALL 0x0001d6f0
ADD ESP,0x20
JMP 0x000784e8
POP EBX
XOR EAX,EAX
POP ESI
POP EDI
RET
LEA EAX,[EBX + 0xfff902bc]
PUSH EAX
LEA EAX,[EBX + 0xfff8e919]
PUSH 0x1d6c
PUSH EAX
LEA EAX,[EBX + 0xfff8e933]
PUSH EAX
CALL 0x0001ccf0
LEA EAX,[EBX + 0xfff902bc]
PUSH EAX
LEA EAX,[EBX + 0xfff8e919]
PUSH 0x1d6d
PUSH EAX
LEA EAX,[EBX + 0xfff8e9f8]
PUSH EAX
CALL 0x0001ccf0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 MagickMorphImages(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }\n    if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages");\n}\n\n" comment (function_definition "undefined4 MagickMorphImages(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }\n    if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages");\n}" type_identifier (function_declarator "MagickMorphImages(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }\n    if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" 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",0x1d6c,\n                  "MagickMorphImages");\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",0x1d6c,\n                  "MagickMorphImages");\n  }" { comment (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickMorphImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }\n    if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x101c) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x101c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x101c)" * (cast_expression "(int *)(param_1 + 0x101c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x101c)" ( (binary_expression "param_1 + 0x101c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }\n    if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }\n    return 0;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1018) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1018) != 0" (pointer_expression "*(int *)(param_1 + 0x1018)" * (cast_expression "(int *)(param_1 + 0x1018)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1018)" ( (binary_expression "param_1 + 0x1018" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    )" identifier (argument_list "(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    )" ( number_literal , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickMorphImages"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1004) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1004) != 0" (pointer_expression "*(int *)(param_1 + 0x1004)" * (cast_expression "(int *)(param_1 + 0x1004)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }" { (expression_statement "iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));" (assignment_expression "iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c))" identifier = (call_expression "MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c))" identifier (argument_list "(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c))" ( (pointer_expression "*(int *)(param_1 + 0x1004)" * (cast_expression "(int *)(param_1 + 0x1004)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" * (cast_expression "(undefined4 *)(param_1 + 0x100c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100c)" ( (binary_expression "param_1 + 0x100c" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }" { (expression_statement "uVar2 = FUN_0006bca0();" (assignment_expression "uVar2 = FUN_0006bca0()" identifier = (call_expression "FUN_0006bca0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) })) (return_statement "return 0;" return number_literal ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickMorphImages"" " 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 * MagickMorphImages(MagickWand *wand,size_t number_frames)\n\n{\n  Image *images;\n  MagickWand *pMVar1;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",wand->name)\n      ;\n    }\n    if (wand->images != (Image *)0x0) {\n      images = (Image *)MorphImages(wand->images,number_frames,wand->exception);\n      if (images != (Image *)0x0) {\n        pMVar1 = CloneMagickWandFromImages(wand,images);\n        return pMVar1;\n      }\n    }\n    return (MagickWand *)0x0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages");\n}\n\n" comment comment comment comment comment comment (function_definition "MagickWand * MagickMorphImages(MagickWand *wand,size_t number_frames)\n\n{\n  Image *images;\n  MagickWand *pMVar1;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",wand->name)\n      ;\n    }\n    if (wand->images != (Image *)0x0) {\n      images = (Image *)MorphImages(wand->images,number_frames,wand->exception);\n      if (images != (Image *)0x0) {\n        pMVar1 = CloneMagickWandFromImages(wand,images);\n        return pMVar1;\n      }\n    }\n    return (MagickWand *)0x0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages");\n}" type_identifier (pointer_declarator "* MagickMorphImages(MagickWand *wand,size_t number_frames)" * (function_declarator "MagickMorphImages(MagickWand *wand,size_t number_frames)" identifier (parameter_list "(MagickWand *wand,size_t number_frames)" ( (parameter_declaration "MagickWand *wand" type_identifier (pointer_declarator "*wand" * identifier)) , (parameter_declaration "size_t number_frames" primitive_type identifier) )))) (compound_statement "{\n  Image *images;\n  MagickWand *pMVar1;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",wand->name)\n      ;\n    }\n    if (wand->images != (Image *)0x0) {\n      images = (Image *)MorphImages(wand->images,number_frames,wand->exception);\n      if (images != (Image *)0x0) {\n        pMVar1 = CloneMagickWandFromImages(wand,images);\n        return pMVar1;\n      }\n    }\n    return (MagickWand *)0x0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages");\n}" { (declaration "Image *images;" type_identifier (pointer_declarator "*images" * identifier) ;) (declaration "MagickWand *pMVar1;" type_identifier (pointer_declarator "*pMVar1" * identifier) ;) (if_statement "if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");\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",0x1d6c,\n                  "MagickMorphImages");\n  }" { comment (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickMorphImages"" " string_content ") ))) ;) })) (if_statement "if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",wand->name)\n      ;\n    }\n    if (wand->images != (Image *)0x0) {\n      images = (Image *)MorphImages(wand->images,number_frames,wand->exception);\n      if (images != (Image *)0x0) {\n        pMVar1 = CloneMagickWandFromImages(wand,images);\n        return pMVar1;\n      }\n    }\n    return (MagickWand *)0x0;\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","MagickMorphImages",0x1d6f,"%s",wand->name)\n      ;\n    }\n    if (wand->images != (Image *)0x0) {\n      images = (Image *)MorphImages(wand->images,number_frames,wand->exception);\n      if (images != (Image *)0x0) {\n        pMVar1 = CloneMagickWandFromImages(wand,images);\n        return pMVar1;\n      }\n    }\n    return (MagickWand *)0x0;\n  }" { (if_statement "if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",wand->name)\n      ;\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","MagickMorphImages",0x1d6f,"%s",wand->name)\n      ;\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",wand->name)\n      ;" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",wand->name)" identifier (argument_list "(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",wand->name)" ( number_literal , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickMorphImages"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "wand->name" identifier -> field_identifier) ))) ;) })) (if_statement "if (wand->images != (Image *)0x0) {\n      images = (Image *)MorphImages(wand->images,number_frames,wand->exception);\n      if (images != (Image *)0x0) {\n        pMVar1 = CloneMagickWandFromImages(wand,images);\n        return pMVar1;\n      }\n    }" if (parenthesized_expression "(wand->images != (Image *)0x0)" ( (binary_expression "wand->images != (Image *)0x0" (field_expression "wand->images" identifier -> field_identifier) != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      images = (Image *)MorphImages(wand->images,number_frames,wand->exception);\n      if (images != (Image *)0x0) {\n        pMVar1 = CloneMagickWandFromImages(wand,images);\n        return pMVar1;\n      }\n    }" { (expression_statement "images = (Image *)MorphImages(wand->images,number_frames,wand->exception);" (assignment_expression "images = (Image *)MorphImages(wand->images,number_frames,wand->exception)" identifier = (cast_expression "(Image *)MorphImages(wand->images,number_frames,wand->exception)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "MorphImages(wand->images,number_frames,wand->exception)" identifier (argument_list "(wand->images,number_frames,wand->exception)" ( (field_expression "wand->images" identifier -> field_identifier) , identifier , (field_expression "wand->exception" identifier -> field_identifier) ))))) ;) (if_statement "if (images != (Image *)0x0) {\n        pMVar1 = CloneMagickWandFromImages(wand,images);\n        return pMVar1;\n      }" if (parenthesized_expression "(images != (Image *)0x0)" ( (binary_expression "images != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pMVar1 = CloneMagickWandFromImages(wand,images);\n        return pMVar1;\n      }" { (expression_statement "pMVar1 = CloneMagickWandFromImages(wand,images);" (assignment_expression "pMVar1 = CloneMagickWandFromImages(wand,images)" identifier = (call_expression "CloneMagickWandFromImages(wand,images)" identifier (argument_list "(wand,images)" ( identifier , identifier )))) ;) (return_statement "return pMVar1;" return identifier ;) })) })) (return_statement "return (MagickWand *)0x0;" return (cast_expression "(MagickWand *)0x0" ( (type_descriptor "MagickWand *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickMorphImages"" " string_content ") ))) ;) })))
(translation_unit "undefined4 MagickMorphImages(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }\n    if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }\n    return 0;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages");\n}\n\n" (function_definition "undefined4 MagickMorphImages(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }\n    if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }\n    return 0;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages");\n}" type_identifier (function_declarator "MagickMorphImages(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }\n    if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }\n    return 0;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");\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",0x1d6c,\n                  "MagickMorphImages");\n  }" { (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickMorphImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }\n    if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x101c) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x101c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x101c)" * (cast_expression "(int *)(param_1 + 0x101c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x101c)" ( (binary_expression "param_1 + 0x101c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }\n    if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }\n    return 0;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1018) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1018) != 0" (pointer_expression "*(int *)(param_1 + 0x1018)" * (cast_expression "(int *)(param_1 + 0x1018)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1018)" ( (binary_expression "param_1 + 0x1018" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    )" identifier (argument_list "(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    )" ( number_literal , (string_literal ""MagickWand/magick-image.c"" " string_content ") , (string_literal ""MagickMorphImages"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1004) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1004) != 0" (pointer_expression "*(int *)(param_1 + 0x1004)" * (cast_expression "(int *)(param_1 + 0x1004)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }" { (expression_statement "iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));" (assignment_expression "iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c))" identifier = (call_expression "MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c))" identifier (argument_list "(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c))" ( (pointer_expression "*(int *)(param_1 + 0x1004)" * (cast_expression "(int *)(param_1 + 0x1004)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" * (cast_expression "(undefined4 *)(param_1 + 0x100c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100c)" ( (binary_expression "param_1 + 0x100c" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }" { (expression_statement "uVar2 = FUN_0006bca0();" (assignment_expression "uVar2 = FUN_0006bca0()" identifier = (call_expression "FUN_0006bca0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickMorphImages"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") , (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) })) (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "undefined4 MagickMorphImages(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }\n    if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }\n    return 0;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages");\n}" (type_identifier "undefined4") (function_declarator "MagickMorphImages(int param_1,undefined4 param_2)" (identifier "MagickMorphImages") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }\n    if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }\n    return 0;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages");\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");\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",0x1d6c,\n                  "MagickMorphImages");\n  }" ({ "{") (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages")" (identifier "__assert_fail") (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,\n                  "MagickMorphImages")" (( "(") (string_literal ""wand != (MagickWand *) NULL"" (" """) (string_content "wand != (MagickWand *) NULL") (" """)) (, ",") (string_literal ""MagickWand/magick-image.c"" (" """) (string_content "MagickWand/magick-image.c") (" """)) (, ",") (number_literal "0x1d6c") (, ",") (string_literal ""MagickMorphImages"" (" """) (string_content "MagickMorphImages") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }\n    if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x101c) == -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x101c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x101c)" (* "*") (cast_expression "(int *)(param_1 + 0x101c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x101c)" (( "(") (binary_expression "param_1 + 0x101c" (identifier "param_1") (+ "+") (number_literal "0x101c")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }\n    if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }\n    return 0;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1018) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1018) != 0" (pointer_expression "*(int *)(param_1 + 0x1018)" (* "*") (cast_expression "(int *)(param_1 + 0x1018)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1018)" (( "(") (binary_expression "param_1 + 0x1018" (identifier "param_1") (+ "+") (number_literal "0x1018")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );\n    }" ({ "{") (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    );" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    )" (identifier "LogMagickEvent") (argument_list "(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",param_1 + 4\n                    )" (( "(") (number_literal "0x40000") (, ",") (string_literal ""MagickWand/magick-image.c"" (" """) (string_content "MagickWand/magick-image.c") (" """)) (, ",") (string_literal ""MagickMorphImages"" (" """) (string_content "MagickMorphImages") (" """)) (, ",") (number_literal "0x1d6f") (, ",") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x1004) != 0) {\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1004) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1004) != 0" (pointer_expression "*(int *)(param_1 + 0x1004)" (* "*") (cast_expression "(int *)(param_1 + 0x1004)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1004)" (( "(") (binary_expression "param_1 + 0x1004" (identifier "param_1") (+ "+") (number_literal "0x1004")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));\n      if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }\n    }" ({ "{") (expression_statement "iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));" (assignment_expression "iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c))" (identifier "iVar1") (= "=") (call_expression "MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c))" (identifier "MorphImages") (argument_list "(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c))" (( "(") (pointer_expression "*(int *)(param_1 + 0x1004)" (* "*") (cast_expression "(int *)(param_1 + 0x1004)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1004)" (( "(") (binary_expression "param_1 + 0x1004" (identifier "param_1") (+ "+") (number_literal "0x1004")) () ")")))) (, ",") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x100c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x100c)" (( "(") (binary_expression "param_1 + 0x100c" (identifier "param_1") (+ "+") (number_literal "0x100c")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar2 = FUN_0006bca0();\n        return uVar2;\n      }" ({ "{") (expression_statement "uVar2 = FUN_0006bca0();" (assignment_expression "uVar2 = FUN_0006bca0()" (identifier "uVar2") (= "=") (call_expression "FUN_0006bca0()" (identifier "FUN_0006bca0") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages")" (identifier "__assert_fail") (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,\n                "MagickMorphImages")" (( "(") (string_literal ""wand->signature == MagickWandSignature"" (" """) (string_content "wand->signature == MagickWandSignature") (" """)) (, ",") (string_literal ""MagickWand/magick-image.c"" (" """) (string_content "MagickWand/magick-image.c") (" """)) (, ",") (number_literal "0x1d6d") (, ",") (string_literal ""MagickMorphImages"" (" """) (string_content "MagickMorphImages") (" """)) () ")"))) (; ";")) (} "}")))

/* 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,size_t number_frames)

{
  type_2 *var_6;
  type_1 *pMVar1;
  
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,
                  "MagickMorphImages");
  }
  if (var_1->signature == 0xabacadab) {
    if (var_1->debug != var_3) {
      var_4(0x40000,"MagickWand/magick-image.c","MagickMorphImages",0x1d6f,"%s",var_1->name)
      ;
    }
    if (var_1->var_6 != (type_2 *)0x0) {
      var_6 = (type_2 *)var_5(var_1->var_6,number_frames,var_1->exception);
      if (var_6 != (type_2 *)0x0) {
        pMVar1 = var_7(var_1,var_6);
        return pMVar1;
      }
    }
    return (type_1 *)0x0;
  }
                    /* WARNING: Subroutine does not return */
  var_2("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,
                "MagickMorphImages");
}


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

undefined4 MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x1d6c,
                  "MASKED");
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (*(int *)(param_1 + 0x1018) != 0) {
      LogMagickEvent(0x40000,"MagickWand/magick-image.c","MASKED",0x1d6f,"%s",param_1 + 4
                    );
    }
    if (*(int *)(param_1 + 0x1004) != 0) {
      iVar1 = MorphImages(*(int *)(param_1 + 0x1004),param_2,*(undefined4 *)(param_1 + 0x100c));
      if (iVar1 != 0) {
        uVar2 = FUN_0006bca0();
        return uVar2;
      }
    }
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x1d6d,
                "MASKED");
}

