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

MagickBooleanType MagickSetBackgroundColor(MagickWand *wand,PixelWand *background)

{
  if (wand == (MagickWand *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,
                  "MagickSetBackgroundColor");
  }
  if (wand->signature == 0xabacadab) {
    if (wand->debug != MagickFalse) {
      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",
                     wand->name);
    }
    PixelGetQuantumPacket(background,&wand->image_info->background_color);
    return MagickTrue;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,
                "MagickSetBackgroundColor");
}



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

undefined4 MagickSetBackgroundColor(int param_1,undefined4 param_2)

{
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,
                  "MagickSetBackgroundColor");
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (*(int *)(param_1 + 0x1018) != 0) {
      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",
                     param_1 + 4);
    }
    PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);
    return 1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,
                "MagickSetBackgroundColor");
}


PUSH ESI
PUSH EBX
CALL 0x0001e8f0
ADD EBX,0xe0ed9
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x000851c2
CMP dword ptr [ESI + 0x101c],0xabacadab
JNZ 0x000851a3
MOV EAX,dword ptr [ESI + 0x1018]
TEST EAX,EAX
JZ 0x00085180
LEA EAX,[ESI + 0x4]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xfff92fa4]
PUSH EAX
LEA EAX,[EBX + 0xfff92500]
PUSH 0x741
PUSH EAX
LEA EAX,[EBX + 0xfff92068]
PUSH EAX
PUSH 0x40000
CALL 0x0001d6f0
ADD ESP,0x20
MOV EAX,dword ptr [ESI + 0x1008]
SUB ESP,0x8
ADD EAX,0xb8
PUSH EAX
PUSH dword ptr [ESP + 0x20]
CALL 0x0001c810
ADD ESP,0x14
MOV EAX,0x1
POP EBX
POP ESI
RET
LEA EAX,[EBX + 0xfff9251c]
PUSH EAX
LEA EAX,[EBX + 0xfff92068]
PUSH 0x73f
PUSH EAX
LEA EAX,[EBX + 0xfff8e9f8]
PUSH EAX
CALL 0x0001ccf0
LEA EAX,[EBX + 0xfff9251c]
PUSH EAX
LEA EAX,[EBX + 0xfff92068]
PUSH 0x73e
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\nundefined4 MagickSetBackgroundColor(int param_1,undefined4 param_2)\n\n{\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }\n    PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);\n    return 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor");\n}\n\n" comment (function_definition "undefined4 MagickSetBackgroundColor(int param_1,undefined4 param_2)\n\n{\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }\n    PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);\n    return 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor");\n}" type_identifier (function_declarator "MagickSetBackgroundColor(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  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }\n    PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);\n    return 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor");\n}" { (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }" { comment (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-property.c"" " string_content ") , number_literal , (string_literal ""MagickSetBackgroundColor"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }\n    PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);\n    return 1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x101c) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x101c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x101c)" * (cast_expression "(int *)(param_1 + 0x101c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x101c)" ( (binary_expression "param_1 + 0x101c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }\n    PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);\n    return 1;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1018) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1018) != 0" (pointer_expression "*(int *)(param_1 + 0x1018)" * (cast_expression "(int *)(param_1 + 0x1018)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1018)" ( (binary_expression "param_1 + 0x1018" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4)" identifier (argument_list "(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4)" ( number_literal , (string_literal ""MagickWand/magick-property.c"" " string_content ") , (string_literal ""MagickSetBackgroundColor"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) })) (expression_statement "PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);" (call_expression "PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8)" identifier (argument_list "(param_2,*(int *)(param_1 + 0x1008) + 0xb8)" ( identifier , (binary_expression "*(int *)(param_1 + 0x1008) + 0xb8" (pointer_expression "*(int *)(param_1 + 0x1008)" * (cast_expression "(int *)(param_1 + 0x1008)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1008)" ( (binary_expression "param_1 + 0x1008" identifier + number_literal) )))) + number_literal) ))) ;) (return_statement "return 1;" return number_literal ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-property.c"" " string_content ") , number_literal , (string_literal ""MagickSetBackgroundColor"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n\nMagickBooleanType MagickSetBackgroundColor(MagickWand *wand,PixelWand *background)\n\n{\n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     wand->name);\n    }\n    PixelGetQuantumPacket(background,&wand->image_info->background_color);\n    return MagickTrue;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor");\n}\n\n" comment comment comment comment comment comment comment (function_definition "MagickBooleanType MagickSetBackgroundColor(MagickWand *wand,PixelWand *background)\n\n{\n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     wand->name);\n    }\n    PixelGetQuantumPacket(background,&wand->image_info->background_color);\n    return MagickTrue;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor");\n}" type_identifier (function_declarator "MagickSetBackgroundColor(MagickWand *wand,PixelWand *background)" identifier (parameter_list "(MagickWand *wand,PixelWand *background)" ( (parameter_declaration "MagickWand *wand" type_identifier (pointer_declarator "*wand" * identifier)) , (parameter_declaration "PixelWand *background" type_identifier (pointer_declarator "*background" * identifier)) ))) (compound_statement "{\n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     wand->name);\n    }\n    PixelGetQuantumPacket(background,&wand->image_info->background_color);\n    return MagickTrue;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor");\n}" { (if_statement "if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }" if (parenthesized_expression "(wand == (MagickWand *)0x0)" ( (binary_expression "wand == (MagickWand *)0x0" identifier == (cast_expression "(MagickWand *)0x0" ( (type_descriptor "MagickWand *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }" { comment (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-property.c"" " string_content ") , number_literal , (string_literal ""MagickSetBackgroundColor"" " string_content ") ))) ;) })) (if_statement "if (wand->signature == 0xabacadab) {\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     wand->name);\n    }\n    PixelGetQuantumPacket(background,&wand->image_info->background_color);\n    return MagickTrue;\n  }" if (parenthesized_expression "(wand->signature == 0xabacadab)" ( (binary_expression "wand->signature == 0xabacadab" (field_expression "wand->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     wand->name);\n    }\n    PixelGetQuantumPacket(background,&wand->image_info->background_color);\n    return MagickTrue;\n  }" { (if_statement "if (wand->debug != MagickFalse) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     wand->name);\n    }" if (parenthesized_expression "(wand->debug != MagickFalse)" ( (binary_expression "wand->debug != MagickFalse" (field_expression "wand->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     wand->name);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     wand->name);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     wand->name)" identifier (argument_list "(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     wand->name)" ( number_literal , (string_literal ""MagickWand/magick-property.c"" " string_content ") , (string_literal ""MagickSetBackgroundColor"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "wand->name" identifier -> field_identifier) ))) ;) })) (expression_statement "PixelGetQuantumPacket(background,&wand->image_info->background_color);" (call_expression "PixelGetQuantumPacket(background,&wand->image_info->background_color)" identifier (argument_list "(background,&wand->image_info->background_color)" ( identifier , (pointer_expression "&wand->image_info->background_color" & (field_expression "wand->image_info->background_color" (field_expression "wand->image_info" identifier -> field_identifier) -> field_identifier)) ))) ;) (return_statement "return MagickTrue;" return identifier ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-property.c"" " string_content ") , number_literal , (string_literal ""MagickSetBackgroundColor"" " string_content ") ))) ;) })))
(translation_unit "undefined4 MagickSetBackgroundColor(int param_1,undefined4 param_2)\n\n{\n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }\n    PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);\n    return 1;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor");\n}\n\n" (function_definition "undefined4 MagickSetBackgroundColor(int param_1,undefined4 param_2)\n\n{\n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }\n    PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);\n    return 1;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor");\n}" type_identifier (function_declarator "MagickSetBackgroundColor(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  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }\n    PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);\n    return 1;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor");\n}" { (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }" { (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-property.c"" " string_content ") , number_literal , (string_literal ""MagickSetBackgroundColor"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }\n    PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);\n    return 1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x101c) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x101c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x101c)" * (cast_expression "(int *)(param_1 + 0x101c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x101c)" ( (binary_expression "param_1 + 0x101c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }\n    PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);\n    return 1;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1018) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1018) != 0" (pointer_expression "*(int *)(param_1 + 0x1018)" * (cast_expression "(int *)(param_1 + 0x1018)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1018)" ( (binary_expression "param_1 + 0x1018" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4)" identifier (argument_list "(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4)" ( number_literal , (string_literal ""MagickWand/magick-property.c"" " string_content ") , (string_literal ""MagickSetBackgroundColor"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) })) (expression_statement "PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);" (call_expression "PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8)" identifier (argument_list "(param_2,*(int *)(param_1 + 0x1008) + 0xb8)" ( identifier , (binary_expression "*(int *)(param_1 + 0x1008) + 0xb8" (pointer_expression "*(int *)(param_1 + 0x1008)" * (cast_expression "(int *)(param_1 + 0x1008)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1008)" ( (binary_expression "param_1 + 0x1008" identifier + number_literal) )))) + number_literal) ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-property.c"" " string_content ") , number_literal , (string_literal ""MagickSetBackgroundColor"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ;) (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 MagickSetBackgroundColor(int param_1,undefined4 param_2)\n\n{\n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }\n    PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);\n    return 1;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor");\n}" (type_identifier "undefined4") (function_declarator "MagickSetBackgroundColor(int param_1,undefined4 param_2)" (identifier "MagickSetBackgroundColor") (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  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }\n    PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);\n    return 1;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor");\n}" ({ "{") (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");\n  }" ({ "{") (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor")" (identifier "__assert_fail") (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,\n                  "MagickSetBackgroundColor")" (( "(") (string_literal ""wand != (MagickWand *) NULL"" (" """) (string_content "wand != (MagickWand *) NULL") (" """)) (, ",") (string_literal ""MagickWand/magick-property.c"" (" """) (string_content "MagickWand/magick-property.c") (" """)) (, ",") (number_literal "0x73e") (, ",") (string_literal ""MagickSetBackgroundColor"" (" """) (string_content "MagickSetBackgroundColor") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }\n    PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);\n    return 1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x101c) == -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x101c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x101c)" (* "*") (cast_expression "(int *)(param_1 + 0x101c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x101c)" (( "(") (binary_expression "param_1 + 0x101c" (identifier "param_1") (+ "+") (number_literal "0x101c")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }\n    PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);\n    return 1;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x1018) != 0) {\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1018) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1018) != 0" (pointer_expression "*(int *)(param_1 + 0x1018)" (* "*") (cast_expression "(int *)(param_1 + 0x1018)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1018)" (( "(") (binary_expression "param_1 + 0x1018" (identifier "param_1") (+ "+") (number_literal "0x1018")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);\n    }" ({ "{") (expression_statement "LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4)" (identifier "LogMagickEvent") (argument_list "(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",\n                     param_1 + 4)" (( "(") (number_literal "0x40000") (, ",") (string_literal ""MagickWand/magick-property.c"" (" """) (string_content "MagickWand/magick-property.c") (" """)) (, ",") (string_literal ""MagickSetBackgroundColor"" (" """) (string_content "MagickSetBackgroundColor") (" """)) (, ",") (number_literal "0x741") (, ",") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))) (; ";")) (} "}"))) (expression_statement "PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);" (call_expression "PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8)" (identifier "PixelGetQuantumPacket") (argument_list "(param_2,*(int *)(param_1 + 0x1008) + 0xb8)" (( "(") (identifier "param_2") (, ",") (binary_expression "*(int *)(param_1 + 0x1008) + 0xb8" (pointer_expression "*(int *)(param_1 + 0x1008)" (* "*") (cast_expression "(int *)(param_1 + 0x1008)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1008)" (( "(") (binary_expression "param_1 + 0x1008" (identifier "param_1") (+ "+") (number_literal "0x1008")) () ")")))) (+ "+") (number_literal "0xb8")) () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor")" (identifier "__assert_fail") (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,\n                "MagickSetBackgroundColor")" (( "(") (string_literal ""wand->signature == MagickWandSignature"" (" """) (string_content "wand->signature == MagickWandSignature") (" """)) (, ",") (string_literal ""MagickWand/magick-property.c"" (" """) (string_content "MagickWand/magick-property.c") (" """)) (, ",") (number_literal "0x73f") (, ",") (string_literal ""MagickSetBackgroundColor"" (" """) (string_content "MagickSetBackgroundColor") (" """)) () ")"))) (; ";")) (} "}")))

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

type_1 function_1(type_2 *var_1,type_3 *background)

{
  if (var_1 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,
                  "MagickSetBackgroundColor");
  }
  if (var_1->signature == 0xabacadab) {
    if (var_1->debug != var_3) {
      var_4(0x40000,"MagickWand/magick-property.c","MagickSetBackgroundColor",0x741,"%s",
                     var_1->name);
    }
    var_5(background,&var_1->image_info->background_color);
    return MagickTrue;
  }
                    /* WARNING: Subroutine does not return */
  var_2("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,
                "MagickSetBackgroundColor");
}


(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 (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))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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))))) (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)

{
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-property.c",0x73e,
                  "MASKED");
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (*(int *)(param_1 + 0x1018) != 0) {
      LogMagickEvent(0x40000,"MagickWand/magick-property.c","MASKED",0x741,"%s",
                     param_1 + 4);
    }
    PixelGetQuantumPacket(param_2,*(int *)(param_1 + 0x1008) + 0xb8);
    return 1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-property.c",0x73f,
                "MASKED");
}

