
/* 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 */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

MagickBooleanType IsHistogramImage(Image *image,ExceptionInfo *exception)

{
  MagickBooleanType MVar1;
  
  if (image == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");
  }
  if (image->signature == 0xabacadab) {
    if (image->debug != MagickFalse) {
      LogMagickEvent(TraceEvent,"MagickCore/histogram.c","IsHistogramImage",0x32d,"%s",
                     image->filename);
    }
    if (image->storage_class != PseudoClass) {
      MVar1 = CheckImageColors(image,exception,0x400);
      return MVar1;
    }
    return (uint)(image->colors < 0x401);
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,
                "IsHistogramImage");
}



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

uint IsHistogramImage(int *param_1)

{
  uint uVar1;
  
  if (param_1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");
  }
  if (param_1[0xcd1] == -0x54535255) {
    if (param_1[0xcca] != 0) {
      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,
                     param_1 + 0xc6);
    }
    if (*param_1 != 2) {
      uVar1 = FUN_000d87d0();
      return uVar1;
    }
    return (uint)((uint)param_1[9] < 0x401);
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,
                "IsHistogramImage");
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00038830
ADD EBX,0x2ffda4
MOV EDI,dword ptr [ESP + 0x14]
TEST ESI,ESI
JZ 0x000d9302
CMP dword ptr [ESI + 0x3344],0xabacadab
JNZ 0x000d92e3
MOV EAX,dword ptr [ESI + 0x3328]
TEST EAX,EAX
JNZ 0x000d92b0
CMP dword ptr [ESI],0x2
JZ 0x000d92a0
POP EBX
MOV EDX,EDI
MOV EAX,ESI
MOV ECX,0x400
POP ESI
POP EDI
JMP 0x000d87d0
XOR EAX,EAX
CMP dword ptr [ESI + 0x24],0x400
POP EBX
POP ESI
POP EDI
SETBE AL
RET
LEA EAX,[ESI + 0x318]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xffedde4e]
PUSH EAX
LEA EAX,[EBX + 0xffedcdec]
PUSH 0x32d
PUSH EAX
LEA EAX,[EBX + 0xffedcd76]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
ADD ESP,0x20
JMP 0x000d9284
LEA EAX,[EBX + 0xffedce00]
PUSH EAX
LEA EAX,[EBX + 0xffedcd76]
PUSH 0x32b
PUSH EAX
LEA EAX,[EBX + 0xffed1338]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffedce00]
PUSH EAX
LEA EAX,[EBX + 0xffedcd76]
PUSH 0x32a
PUSH EAX
LEA EAX,[EBX + 0xffede594]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint IsHistogramImage(int *param_1)\n\n{\n  uint uVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }\n  if (param_1[0xcd1] == -0x54535255) {\n    if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }\n    if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }\n    return (uint)((uint)param_1[9] < 0x401);\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage");\n}\n\n" comment (function_definition "uint IsHistogramImage(int *param_1)\n\n{\n  uint uVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }\n  if (param_1[0xcd1] == -0x54535255) {\n    if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }\n    if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }\n    return (uint)((uint)param_1[9] < 0x401);\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage");\n}" type_identifier (function_declarator "IsHistogramImage(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }\n  if (param_1[0xcd1] == -0x54535255) {\n    if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }\n    if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }\n    return (uint)((uint)param_1[9] < 0x401);\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage");\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage")" identifier (argument_list "("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/histogram.c"" " string_content ") , number_literal , (string_literal ""IsHistogramImage"" " string_content ") ))) ;) })) (if_statement "if (param_1[0xcd1] == -0x54535255) {\n    if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }\n    if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }\n    return (uint)((uint)param_1[9] < 0x401);\n  }" if (parenthesized_expression "(param_1[0xcd1] == -0x54535255)" ( (binary_expression "param_1[0xcd1] == -0x54535255" (subscript_expression "param_1[0xcd1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }\n    if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }\n    return (uint)((uint)param_1[9] < 0x401);\n  }" { (if_statement "if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }" if (parenthesized_expression "(param_1[0xcca] != 0)" ( (binary_expression "param_1[0xcca] != 0" (subscript_expression "param_1[0xcca]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);" (call_expression "LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6)" identifier (argument_list "(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6)" ( number_literal , (string_literal ""MagickCore/histogram.c"" " string_content ") , (string_literal ""IsHistogramImage"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0xc6" identifier + number_literal) ))) ;) })) (if_statement "if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }" if (parenthesized_expression "(*param_1 != 2)" ( (binary_expression "*param_1 != 2" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_000d87d0();" (assignment_expression "uVar1 = FUN_000d87d0()" identifier = (call_expression "FUN_000d87d0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return (uint)((uint)param_1[9] < 0x401);" return (call_expression "(uint)((uint)param_1[9] < 0x401)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)param_1[9] < 0x401)" ( (binary_expression "(uint)param_1[9] < 0x401" (cast_expression "(uint)param_1[9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[9]" identifier [ number_literal ])) < number_literal) ))) ;) })) comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/histogram.c"" " string_content ") , number_literal , (string_literal ""IsHistogramImage"" " 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/* WARNING: Enum "LogEventType": Some values do not have unique names */\n\nMagickBooleanType IsHistogramImage(Image *image,ExceptionInfo *exception)\n\n{\n  MagickBooleanType MVar1;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }\n  if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/histogram.c","IsHistogramImage",0x32d,"%s",\n                     image->filename);\n    }\n    if (image->storage_class != PseudoClass) {\n      MVar1 = CheckImageColors(image,exception,0x400);\n      return MVar1;\n    }\n    return (uint)(image->colors < 0x401);\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage");\n}\n\n" comment comment comment comment comment comment comment (function_definition "MagickBooleanType IsHistogramImage(Image *image,ExceptionInfo *exception)\n\n{\n  MagickBooleanType MVar1;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }\n  if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/histogram.c","IsHistogramImage",0x32d,"%s",\n                     image->filename);\n    }\n    if (image->storage_class != PseudoClass) {\n      MVar1 = CheckImageColors(image,exception,0x400);\n      return MVar1;\n    }\n    return (uint)(image->colors < 0x401);\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage");\n}" type_identifier (function_declarator "IsHistogramImage(Image *image,ExceptionInfo *exception)" identifier (parameter_list "(Image *image,ExceptionInfo *exception)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) ))) (compound_statement "{\n  MagickBooleanType MVar1;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }\n  if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/histogram.c","IsHistogramImage",0x32d,"%s",\n                     image->filename);\n    }\n    if (image->storage_class != PseudoClass) {\n      MVar1 = CheckImageColors(image,exception,0x400);\n      return MVar1;\n    }\n    return (uint)(image->colors < 0x401);\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage");\n}" { (declaration "MagickBooleanType MVar1;" type_identifier identifier ;) (if_statement "if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }" if (parenthesized_expression "(image == (Image *)0x0)" ( (binary_expression "image == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage")" identifier (argument_list "("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/histogram.c"" " string_content ") , number_literal , (string_literal ""IsHistogramImage"" " string_content ") ))) ;) })) (if_statement "if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/histogram.c","IsHistogramImage",0x32d,"%s",\n                     image->filename);\n    }\n    if (image->storage_class != PseudoClass) {\n      MVar1 = CheckImageColors(image,exception,0x400);\n      return MVar1;\n    }\n    return (uint)(image->colors < 0x401);\n  }" if (parenthesized_expression "(image->signature == 0xabacadab)" ( (binary_expression "image->signature == 0xabacadab" (field_expression "image->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/histogram.c","IsHistogramImage",0x32d,"%s",\n                     image->filename);\n    }\n    if (image->storage_class != PseudoClass) {\n      MVar1 = CheckImageColors(image,exception,0x400);\n      return MVar1;\n    }\n    return (uint)(image->colors < 0x401);\n  }" { (if_statement "if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/histogram.c","IsHistogramImage",0x32d,"%s",\n                     image->filename);\n    }" if (parenthesized_expression "(image->debug != MagickFalse)" ( (binary_expression "image->debug != MagickFalse" (field_expression "image->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n      LogMagickEvent(TraceEvent,"MagickCore/histogram.c","IsHistogramImage",0x32d,"%s",\n                     image->filename);\n    }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/histogram.c","IsHistogramImage",0x32d,"%s",\n                     image->filename);" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/histogram.c","IsHistogramImage",0x32d,"%s",\n                     image->filename)" identifier (argument_list "(TraceEvent,"MagickCore/histogram.c","IsHistogramImage",0x32d,"%s",\n                     image->filename)" ( identifier , (string_literal ""MagickCore/histogram.c"" " string_content ") , (string_literal ""IsHistogramImage"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "image->filename" identifier -> field_identifier) ))) ;) })) (if_statement "if (image->storage_class != PseudoClass) {\n      MVar1 = CheckImageColors(image,exception,0x400);\n      return MVar1;\n    }" if (parenthesized_expression "(image->storage_class != PseudoClass)" ( (binary_expression "image->storage_class != PseudoClass" (field_expression "image->storage_class" identifier -> field_identifier) != identifier) )) (compound_statement "{\n      MVar1 = CheckImageColors(image,exception,0x400);\n      return MVar1;\n    }" { (expression_statement "MVar1 = CheckImageColors(image,exception,0x400);" (assignment_expression "MVar1 = CheckImageColors(image,exception,0x400)" identifier = (call_expression "CheckImageColors(image,exception,0x400)" identifier (argument_list "(image,exception,0x400)" ( identifier , identifier , number_literal )))) ;) (return_statement "return MVar1;" return identifier ;) })) (return_statement "return (uint)(image->colors < 0x401);" return (call_expression "(uint)(image->colors < 0x401)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(image->colors < 0x401)" ( (binary_expression "image->colors < 0x401" (field_expression "image->colors" identifier -> field_identifier) < number_literal) ))) ;) })) comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/histogram.c"" " string_content ") , number_literal , (string_literal ""IsHistogramImage"" " string_content ") ))) ;) })))
(translation_unit "uint IsHistogramImage(int *param_1)\n\n{\n  uint uVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }\n  if (param_1[0xcd1] == -0x54535255) {\n    if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }\n    if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }\n    return (uint)((uint)param_1[9] < 0x401);\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage");\n}\n\n" (function_definition "uint IsHistogramImage(int *param_1)\n\n{\n  uint uVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }\n  if (param_1[0xcd1] == -0x54535255) {\n    if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }\n    if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }\n    return (uint)((uint)param_1[9] < 0x401);\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage");\n}" type_identifier (function_declarator "IsHistogramImage(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }\n  if (param_1[0xcd1] == -0x54535255) {\n    if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }\n    if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }\n    return (uint)((uint)param_1[9] < 0x401);\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage");\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }" { (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage")" identifier (argument_list "("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/histogram.c"" " string_content ") , number_literal , (string_literal ""IsHistogramImage"" " string_content ") ))) ;) })) (if_statement "if (param_1[0xcd1] == -0x54535255) {\n    if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }\n    if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }\n    return (uint)((uint)param_1[9] < 0x401);\n  }" if (parenthesized_expression "(param_1[0xcd1] == -0x54535255)" ( (binary_expression "param_1[0xcd1] == -0x54535255" (subscript_expression "param_1[0xcd1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }\n    if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }\n    return (uint)((uint)param_1[9] < 0x401);\n  }" { (if_statement "if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }" if (parenthesized_expression "(param_1[0xcca] != 0)" ( (binary_expression "param_1[0xcca] != 0" (subscript_expression "param_1[0xcca]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);" (call_expression "LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6)" identifier (argument_list "(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6)" ( number_literal , (string_literal ""MagickCore/histogram.c"" " string_content ") , (string_literal ""IsHistogramImage"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0xc6" identifier + number_literal) ))) ;) })) (if_statement "if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }" if (parenthesized_expression "(*param_1 != 2)" ( (binary_expression "*param_1 != 2" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_000d87d0();" (assignment_expression "uVar1 = FUN_000d87d0()" identifier = (call_expression "FUN_000d87d0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return (uint)((uint)param_1[9] < 0x401);" return (call_expression "(uint)((uint)param_1[9] < 0x401)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)param_1[9] < 0x401)" ( (binary_expression "(uint)param_1[9] < 0x401" (cast_expression "(uint)param_1[9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[9]" identifier [ number_literal ])) < number_literal) ))) ;) })) (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/histogram.c"" " string_content ") , number_literal , (string_literal ""IsHistogramImage"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < LIT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "uint IsHistogramImage(int *param_1)\n\n{\n  uint uVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }\n  if (param_1[0xcd1] == -0x54535255) {\n    if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }\n    if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }\n    return (uint)((uint)param_1[9] < 0x401);\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage");\n}" (type_identifier "uint") (function_declarator "IsHistogramImage(int *param_1)" (identifier "IsHistogramImage") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }\n  if (param_1[0xcd1] == -0x54535255) {\n    if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }\n    if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }\n    return (uint)((uint)param_1[9] < 0x401);\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage");\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (if_statement "if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }" (if "if") (parenthesized_expression "(param_1 == (int *)0x0)" (( "(") (binary_expression "param_1 == (int *)0x0" (identifier "param_1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");\n  }" ({ "{") (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage")" (identifier "__assert_fail") (argument_list "("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage")" (( "(") (string_literal ""image != (Image *) NULL"" (" """) (string_content "image != (Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/histogram.c"" (" """) (string_content "MagickCore/histogram.c") (" """)) (, ",") (number_literal "0x32a") (, ",") (string_literal ""IsHistogramImage"" (" """) (string_content "IsHistogramImage") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1[0xcd1] == -0x54535255) {\n    if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }\n    if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }\n    return (uint)((uint)param_1[9] < 0x401);\n  }" (if "if") (parenthesized_expression "(param_1[0xcd1] == -0x54535255)" (( "(") (binary_expression "param_1[0xcd1] == -0x54535255" (subscript_expression "param_1[0xcd1]" (identifier "param_1") ([ "[") (number_literal "0xcd1") (] "]")) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }\n    if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }\n    return (uint)((uint)param_1[9] < 0x401);\n  }" ({ "{") (if_statement "if (param_1[0xcca] != 0) {\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }" (if "if") (parenthesized_expression "(param_1[0xcca] != 0)" (( "(") (binary_expression "param_1[0xcca] != 0" (subscript_expression "param_1[0xcca]" (identifier "param_1") ([ "[") (number_literal "0xcca") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);\n    }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6);" (call_expression "LogMagickEvent(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6)" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/histogram.c","IsHistogramImage",0x32d,&DAT_002b6e4e,\n                     param_1 + 0xc6)" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/histogram.c"" (" """) (string_content "MagickCore/histogram.c") (" """)) (, ",") (string_literal ""IsHistogramImage"" (" """) (string_content "IsHistogramImage") (" """)) (, ",") (number_literal "0x32d") (, ",") (pointer_expression "&DAT_002b6e4e" (& "&") (identifier "DAT_002b6e4e")) (, ",") (binary_expression "param_1 + 0xc6" (identifier "param_1") (+ "+") (number_literal "0xc6")) () ")"))) (; ";")) (} "}"))) (if_statement "if (*param_1 != 2) {\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(*param_1 != 2)" (( "(") (binary_expression "*param_1 != 2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n      uVar1 = FUN_000d87d0();\n      return uVar1;\n    }" ({ "{") (expression_statement "uVar1 = FUN_000d87d0();" (assignment_expression "uVar1 = FUN_000d87d0()" (identifier "uVar1") (= "=") (call_expression "FUN_000d87d0()" (identifier "FUN_000d87d0") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return (uint)((uint)param_1[9] < 0x401);" (return "return") (call_expression "(uint)((uint)param_1[9] < 0x401)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((uint)param_1[9] < 0x401)" (( "(") (binary_expression "(uint)param_1[9] < 0x401" (cast_expression "(uint)param_1[9]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) (< "<") (number_literal "0x401")) () ")"))) (; ";")) (} "}"))) (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage")" (identifier "__assert_fail") (argument_list "("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,\n                "IsHistogramImage")" (( "(") (string_literal ""image->signature == MagickCoreSignature"" (" """) (string_content "image->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/histogram.c"" (" """) (string_content "MagickCore/histogram.c") (" """)) (, ",") (number_literal "0x32b") (, ",") (string_literal ""IsHistogramImage"" (" """) (string_content "IsHistogramImage") (" """)) () ")"))) (; ";")) (} "}")))

/* 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 */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

type_1 function_1(type_2 *var_1,type_3 *exception)

{
  type_1 MVar1;
  
  if (var_1 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"IsHistogramImage");
  }
  if (var_1->signature == 0xabacadab) {
    if (var_1->debug != var_3) {
      var_4(TraceEvent,"MagickCore/histogram.c","IsHistogramImage",0x32d,"%s",
                     var_1->filename);
    }
    if (var_1->storage_class != var_5) {
      MVar1 = var_6(var_1,exception,0x400);
      return MVar1;
    }
    return (uint)(var_1->colors < 0x401);
  }
                    /* WARNING: Subroutine does not return */
  var_2("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,
                "IsHistogramImage");
}


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

uint MASKED(int *param_1)

{
  uint uVar1;
  
  if (param_1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/histogram.c",0x32a,"MASKED");
  }
  if (param_1[0xcd1] == -0x54535255) {
    if (param_1[0xcca] != 0) {
      LogMagickEvent(0x8000,"MagickCore/histogram.c","MASKED",0x32d,&DAT_002b6e4e,
                     param_1 + 0xc6);
    }
    if (*param_1 != 2) {
      uVar1 = FUN_000d87d0();
      return uVar1;
    }
    return (uint)((uint)param_1[9] < 0x401);
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/histogram.c",0x32b,
                "MASKED");
}

