
/* 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 SetImageMonochrome(Image *image,ExceptionInfo *exception)

{
  uint uVar1;
  char *value;
  MagickBooleanType MVar2;
  
  if (image == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");
  }
  if (image->signature == 0xabacadab) {
    if (image->debug != MagickFalse) {
      LogMagickEvent(TraceEvent,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,"%s",
                     image->filename);
    }
    MVar2 = MagickTrue;
    if (image->type != BilevelType) {
      uVar1 = image->colorspace - GRAYColorspace;
      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {
        value = GetImageProperty(image,"colorspace:auto-grayscale",exception);
        MVar2 = IsStringFalse(value);
        if ((MVar2 == MagickFalse) &&
           (MVar2 = IdentifyImageMonochrome(image,exception), MVar2 != MagickFalse)) {
          image->colorspace = GRAYColorspace;
          MVar2 = SyncImagePixelCache(image,exception);
          if (MVar2 != MagickFalse) {
            image->type = BilevelType;
            return MagickTrue;
          }
        }
      }
      MVar2 = MagickFalse;
    }
    return MVar2;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,
                "SetImageMonochrome");
}



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

undefined4 SetImageMonochrome(int param_1,undefined4 param_2)

{
  uint uVar1;
  int iVar2;
  undefined4 uVar3;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");
  }
  if (*(int *)(param_1 + 0x3344) == -0x54535255) {
    if (*(int *)(param_1 + 0x3328) != 0) {
      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,
                     param_1 + 0x318);
    }
    uVar3 = 1;
    if (*(int *)(param_1 + 0x278) != 1) {
      uVar1 = *(int *)(param_1 + 4) - 3;
      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {
        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);
        iVar2 = IsStringFalse(uVar3);
        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {
          *(undefined4 *)(param_1 + 4) = 3;
          iVar2 = FUN_00059310(param_1,param_2);
          if (iVar2 != 0) {
            *(undefined4 *)(param_1 + 0x278) = 1;
            return 1;
          }
        }
      }
      uVar3 = 0;
    }
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,
                "SetImageMonochrome");
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00039d70
ADD EBX,0x3b1b64
TEST ESI,ESI
JZ 0x0006c5b5
CMP dword ptr [ESI + 0x3344],0xabacadab
JNZ 0x0006c596
MOV EAX,dword ptr [ESI + 0x3328]
TEST EAX,EAX
JNZ 0x0006c560
CMP dword ptr [ESI + 0x278],0x1
MOV EDI,0x1
JZ 0x0006c4f2
MOV EAX,dword ptr [ESI + 0x4]
SUB EAX,0x3
CMP EAX,0x1e
JA 0x0006c4f0
MOV EDX,0x403c0001
BT EDX,EAX
JC 0x0006c500
NOP
LEA ESI,[ESI]
XOR EDI,EDI
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
RET
LEA EAX,[EBX + 0xffeca310]
SUB ESP,0x4
PUSH dword ptr [ESP + 0x18]
PUSH EAX
PUSH ESI
CALL 0x00031bb0
MOV dword ptr [ESP],EAX
CALL 0x000322e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0006c4f0
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH ESI
CALL 0x00031100
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0006c4f0
SUB ESP,0x8
MOV dword ptr [ESI + 0x4],0x3
PUSH dword ptr [ESP + 0x1c]
PUSH ESI
CALL 0x00059310
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0006c4f0
MOV dword ptr [ESI + 0x278],0x1
JMP 0x0006c4f2
LEA EAX,[ESI + 0x318]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xffed95ae]
PUSH EAX
LEA EAX,[EBX + 0xffecbbcc]
PUSH 0x5b2
PUSH EAX
LEA EAX,[EBX + 0xffeca2a0]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
ADD ESP,0x20
JMP 0x0006c4c8
LEA EAX,[EBX + 0xffecbbe0]
PUSH EAX
LEA EAX,[EBX + 0xffeca2a0]
PUSH 0x5b0
PUSH EAX
LEA EAX,[EBX + 0xffecc4b8]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffecbbe0]
PUSH EAX
LEA EAX,[EBX + 0xffeca2a0]
PUSH 0x5af
PUSH EAX
LEA EAX,[EBX + 0xffed9cf4]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 SetImageMonochrome(int param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }\n    uVar3 = 1;\n    if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome");\n}\n\n" comment (function_definition "undefined4 SetImageMonochrome(int param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }\n    uVar3 = 1;\n    if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome");\n}" type_identifier (function_declarator "SetImageMonochrome(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  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }\n    uVar3 = 1;\n    if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome");\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\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("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome")" identifier (argument_list "("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/colorspace.c"" " string_content ") , number_literal , (string_literal ""SetImageMonochrome"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }\n    uVar3 = 1;\n    if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }\n    return uVar3;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3344) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x3344) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" * (cast_expression "(int *)(param_1 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3344)" ( (binary_expression "param_1 + 0x3344" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }\n    uVar3 = 1;\n    if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }\n    return uVar3;\n  }" { (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x3328) != 0)" ( (binary_expression "*(int *)(param_1 + 0x3328) != 0" (pointer_expression "*(int *)(param_1 + 0x3328)" * (cast_expression "(int *)(param_1 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3328)" ( (binary_expression "param_1 + 0x3328" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318)" ( number_literal , (string_literal ""MagickCore/colorspace.c"" " string_content ") , (string_literal ""SetImageMonochrome"" " string_content ") , number_literal , (pointer_expression "&DAT_002f75ae" & identifier) , (binary_expression "param_1 + 0x318" identifier + number_literal) ))) ;) })) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (if_statement "if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x278) != 1)" ( (binary_expression "*(int *)(param_1 + 0x278) != 1" (pointer_expression "*(int *)(param_1 + 0x278)" * (cast_expression "(int *)(param_1 + 0x278)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x278)" ( (binary_expression "param_1 + 0x278" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }" { (expression_statement "uVar1 = *(int *)(param_1 + 4) - 3;" (assignment_expression "uVar1 = *(int *)(param_1 + 4) - 3" identifier = (binary_expression "*(int *)(param_1 + 4) - 3" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) - number_literal)) ;) (if_statement "if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }" if (parenthesized_expression "((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0))" ( (binary_expression "(uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)" (parenthesized_expression "(uVar1 < 0x1f)" ( (binary_expression "uVar1 < 0x1f" identifier < number_literal) )) && (parenthesized_expression "((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)" ( (binary_expression "(0x403c0001U >> (uVar1 & 0x1f) & 1) != 0" (parenthesized_expression "(0x403c0001U >> (uVar1 & 0x1f) & 1)" ( (binary_expression "0x403c0001U >> (uVar1 & 0x1f) & 1" (binary_expression "0x403c0001U >> (uVar1 & 0x1f)" number_literal >> (parenthesized_expression "(uVar1 & 0x1f)" ( (binary_expression "uVar1 & 0x1f" identifier & number_literal) ))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }" { (expression_statement "uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);" (assignment_expression "uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2)" identifier = (call_expression "GetImageProperty(param_1,"colorspace:auto-grayscale",param_2)" identifier (argument_list "(param_1,"colorspace:auto-grayscale",param_2)" ( identifier , (string_literal ""colorspace:auto-grayscale"" " string_content ") , identifier )))) ;) (expression_statement "iVar2 = IsStringFalse(uVar3);" (assignment_expression "iVar2 = IsStringFalse(uVar3)" identifier = (call_expression "IsStringFalse(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (if_statement "if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }" if (parenthesized_expression "((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0))" ( (binary_expression "(iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)" ( (comma_expression "iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0" (assignment_expression "iVar2 = IdentifyImageMonochrome(param_1,param_2)" identifier = (call_expression "IdentifyImageMonochrome(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }" { (expression_statement "*(undefined4 *)(param_1 + 4) = 3;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 3" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = FUN_00059310(param_1,param_2);" (assignment_expression "iVar2 = FUN_00059310(param_1,param_2)" identifier = (call_expression "FUN_00059310(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }" { (expression_statement "*(undefined4 *)(param_1 + 0x278) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x278) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x278)" * (cast_expression "(undefined4 *)(param_1 + 0x278)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x278)" ( (binary_expression "param_1 + 0x278" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) })) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) })) (return_statement "return uVar3;" return identifier ;) })) comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/colorspace.c"" " string_content ") , number_literal , (string_literal ""SetImageMonochrome"" " 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 SetImageMonochrome(Image *image,ExceptionInfo *exception)\n\n{\n  uint uVar1;\n  char *value;\n  MagickBooleanType MVar2;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\n  }\n  if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,"%s",\n                     image->filename);\n    }\n    MVar2 = MagickTrue;\n    if (image->type != BilevelType) {\n      uVar1 = image->colorspace - GRAYColorspace;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        value = GetImageProperty(image,"colorspace:auto-grayscale",exception);\n        MVar2 = IsStringFalse(value);\n        if ((MVar2 == MagickFalse) &&\n           (MVar2 = IdentifyImageMonochrome(image,exception), MVar2 != MagickFalse)) {\n          image->colorspace = GRAYColorspace;\n          MVar2 = SyncImagePixelCache(image,exception);\n          if (MVar2 != MagickFalse) {\n            image->type = BilevelType;\n            return MagickTrue;\n          }\n        }\n      }\n      MVar2 = MagickFalse;\n    }\n    return MVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome");\n}\n\n" comment comment comment comment comment comment comment (function_definition "MagickBooleanType SetImageMonochrome(Image *image,ExceptionInfo *exception)\n\n{\n  uint uVar1;\n  char *value;\n  MagickBooleanType MVar2;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\n  }\n  if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,"%s",\n                     image->filename);\n    }\n    MVar2 = MagickTrue;\n    if (image->type != BilevelType) {\n      uVar1 = image->colorspace - GRAYColorspace;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        value = GetImageProperty(image,"colorspace:auto-grayscale",exception);\n        MVar2 = IsStringFalse(value);\n        if ((MVar2 == MagickFalse) &&\n           (MVar2 = IdentifyImageMonochrome(image,exception), MVar2 != MagickFalse)) {\n          image->colorspace = GRAYColorspace;\n          MVar2 = SyncImagePixelCache(image,exception);\n          if (MVar2 != MagickFalse) {\n            image->type = BilevelType;\n            return MagickTrue;\n          }\n        }\n      }\n      MVar2 = MagickFalse;\n    }\n    return MVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome");\n}" type_identifier (function_declarator "SetImageMonochrome(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  uint uVar1;\n  char *value;\n  MagickBooleanType MVar2;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\n  }\n  if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,"%s",\n                     image->filename);\n    }\n    MVar2 = MagickTrue;\n    if (image->type != BilevelType) {\n      uVar1 = image->colorspace - GRAYColorspace;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        value = GetImageProperty(image,"colorspace:auto-grayscale",exception);\n        MVar2 = IsStringFalse(value);\n        if ((MVar2 == MagickFalse) &&\n           (MVar2 = IdentifyImageMonochrome(image,exception), MVar2 != MagickFalse)) {\n          image->colorspace = GRAYColorspace;\n          MVar2 = SyncImagePixelCache(image,exception);\n          if (MVar2 != MagickFalse) {\n            image->type = BilevelType;\n            return MagickTrue;\n          }\n        }\n      }\n      MVar2 = MagickFalse;\n    }\n    return MVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome");\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char *value;" primitive_type (pointer_declarator "*value" * identifier) ;) (declaration "MagickBooleanType MVar2;" type_identifier identifier ;) (if_statement "if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\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/colorspace.c",0x5af,"SetImageMonochrome");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome")" identifier (argument_list "("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/colorspace.c"" " string_content ") , number_literal , (string_literal ""SetImageMonochrome"" " string_content ") ))) ;) })) (if_statement "if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,"%s",\n                     image->filename);\n    }\n    MVar2 = MagickTrue;\n    if (image->type != BilevelType) {\n      uVar1 = image->colorspace - GRAYColorspace;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        value = GetImageProperty(image,"colorspace:auto-grayscale",exception);\n        MVar2 = IsStringFalse(value);\n        if ((MVar2 == MagickFalse) &&\n           (MVar2 = IdentifyImageMonochrome(image,exception), MVar2 != MagickFalse)) {\n          image->colorspace = GRAYColorspace;\n          MVar2 = SyncImagePixelCache(image,exception);\n          if (MVar2 != MagickFalse) {\n            image->type = BilevelType;\n            return MagickTrue;\n          }\n        }\n      }\n      MVar2 = MagickFalse;\n    }\n    return MVar2;\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/colorspace.c","SetImageMonochrome",0x5b2,"%s",\n                     image->filename);\n    }\n    MVar2 = MagickTrue;\n    if (image->type != BilevelType) {\n      uVar1 = image->colorspace - GRAYColorspace;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        value = GetImageProperty(image,"colorspace:auto-grayscale",exception);\n        MVar2 = IsStringFalse(value);\n        if ((MVar2 == MagickFalse) &&\n           (MVar2 = IdentifyImageMonochrome(image,exception), MVar2 != MagickFalse)) {\n          image->colorspace = GRAYColorspace;\n          MVar2 = SyncImagePixelCache(image,exception);\n          if (MVar2 != MagickFalse) {\n            image->type = BilevelType;\n            return MagickTrue;\n          }\n        }\n      }\n      MVar2 = MagickFalse;\n    }\n    return MVar2;\n  }" { (if_statement "if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,"%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/colorspace.c","SetImageMonochrome",0x5b2,"%s",\n                     image->filename);\n    }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,"%s",\n                     image->filename);" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,"%s",\n                     image->filename)" identifier (argument_list "(TraceEvent,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,"%s",\n                     image->filename)" ( identifier , (string_literal ""MagickCore/colorspace.c"" " string_content ") , (string_literal ""SetImageMonochrome"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "image->filename" identifier -> field_identifier) ))) ;) })) (expression_statement "MVar2 = MagickTrue;" (assignment_expression "MVar2 = MagickTrue" identifier = identifier) ;) (if_statement "if (image->type != BilevelType) {\n      uVar1 = image->colorspace - GRAYColorspace;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        value = GetImageProperty(image,"colorspace:auto-grayscale",exception);\n        MVar2 = IsStringFalse(value);\n        if ((MVar2 == MagickFalse) &&\n           (MVar2 = IdentifyImageMonochrome(image,exception), MVar2 != MagickFalse)) {\n          image->colorspace = GRAYColorspace;\n          MVar2 = SyncImagePixelCache(image,exception);\n          if (MVar2 != MagickFalse) {\n            image->type = BilevelType;\n            return MagickTrue;\n          }\n        }\n      }\n      MVar2 = MagickFalse;\n    }" if (parenthesized_expression "(image->type != BilevelType)" ( (binary_expression "image->type != BilevelType" (field_expression "image->type" identifier -> field_identifier) != identifier) )) (compound_statement "{\n      uVar1 = image->colorspace - GRAYColorspace;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        value = GetImageProperty(image,"colorspace:auto-grayscale",exception);\n        MVar2 = IsStringFalse(value);\n        if ((MVar2 == MagickFalse) &&\n           (MVar2 = IdentifyImageMonochrome(image,exception), MVar2 != MagickFalse)) {\n          image->colorspace = GRAYColorspace;\n          MVar2 = SyncImagePixelCache(image,exception);\n          if (MVar2 != MagickFalse) {\n            image->type = BilevelType;\n            return MagickTrue;\n          }\n        }\n      }\n      MVar2 = MagickFalse;\n    }" { (expression_statement "uVar1 = image->colorspace - GRAYColorspace;" (assignment_expression "uVar1 = image->colorspace - GRAYColorspace" identifier = (binary_expression "image->colorspace - GRAYColorspace" (field_expression "image->colorspace" identifier -> field_identifier) - identifier)) ;) (if_statement "if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        value = GetImageProperty(image,"colorspace:auto-grayscale",exception);\n        MVar2 = IsStringFalse(value);\n        if ((MVar2 == MagickFalse) &&\n           (MVar2 = IdentifyImageMonochrome(image,exception), MVar2 != MagickFalse)) {\n          image->colorspace = GRAYColorspace;\n          MVar2 = SyncImagePixelCache(image,exception);\n          if (MVar2 != MagickFalse) {\n            image->type = BilevelType;\n            return MagickTrue;\n          }\n        }\n      }" if (parenthesized_expression "((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0))" ( (binary_expression "(uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)" (parenthesized_expression "(uVar1 < 0x1f)" ( (binary_expression "uVar1 < 0x1f" identifier < number_literal) )) && (parenthesized_expression "((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)" ( (binary_expression "(0x403c0001U >> (uVar1 & 0x1f) & 1) != 0" (parenthesized_expression "(0x403c0001U >> (uVar1 & 0x1f) & 1)" ( (binary_expression "0x403c0001U >> (uVar1 & 0x1f) & 1" (binary_expression "0x403c0001U >> (uVar1 & 0x1f)" number_literal >> (parenthesized_expression "(uVar1 & 0x1f)" ( (binary_expression "uVar1 & 0x1f" identifier & number_literal) ))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        value = GetImageProperty(image,"colorspace:auto-grayscale",exception);\n        MVar2 = IsStringFalse(value);\n        if ((MVar2 == MagickFalse) &&\n           (MVar2 = IdentifyImageMonochrome(image,exception), MVar2 != MagickFalse)) {\n          image->colorspace = GRAYColorspace;\n          MVar2 = SyncImagePixelCache(image,exception);\n          if (MVar2 != MagickFalse) {\n            image->type = BilevelType;\n            return MagickTrue;\n          }\n        }\n      }" { (expression_statement "value = GetImageProperty(image,"colorspace:auto-grayscale",exception);" (assignment_expression "value = GetImageProperty(image,"colorspace:auto-grayscale",exception)" identifier = (call_expression "GetImageProperty(image,"colorspace:auto-grayscale",exception)" identifier (argument_list "(image,"colorspace:auto-grayscale",exception)" ( identifier , (string_literal ""colorspace:auto-grayscale"" " string_content ") , identifier )))) ;) (expression_statement "MVar2 = IsStringFalse(value);" (assignment_expression "MVar2 = IsStringFalse(value)" identifier = (call_expression "IsStringFalse(value)" identifier (argument_list "(value)" ( identifier )))) ;) (if_statement "if ((MVar2 == MagickFalse) &&\n           (MVar2 = IdentifyImageMonochrome(image,exception), MVar2 != MagickFalse)) {\n          image->colorspace = GRAYColorspace;\n          MVar2 = SyncImagePixelCache(image,exception);\n          if (MVar2 != MagickFalse) {\n            image->type = BilevelType;\n            return MagickTrue;\n          }\n        }" if (parenthesized_expression "((MVar2 == MagickFalse) &&\n           (MVar2 = IdentifyImageMonochrome(image,exception), MVar2 != MagickFalse))" ( (binary_expression "(MVar2 == MagickFalse) &&\n           (MVar2 = IdentifyImageMonochrome(image,exception), MVar2 != MagickFalse)" (parenthesized_expression "(MVar2 == MagickFalse)" ( (binary_expression "MVar2 == MagickFalse" identifier == identifier) )) && (parenthesized_expression "(MVar2 = IdentifyImageMonochrome(image,exception), MVar2 != MagickFalse)" ( (comma_expression "MVar2 = IdentifyImageMonochrome(image,exception), MVar2 != MagickFalse" (assignment_expression "MVar2 = IdentifyImageMonochrome(image,exception)" identifier = (call_expression "IdentifyImageMonochrome(image,exception)" identifier (argument_list "(image,exception)" ( identifier , identifier )))) , (binary_expression "MVar2 != MagickFalse" identifier != identifier)) ))) )) (compound_statement "{\n          image->colorspace = GRAYColorspace;\n          MVar2 = SyncImagePixelCache(image,exception);\n          if (MVar2 != MagickFalse) {\n            image->type = BilevelType;\n            return MagickTrue;\n          }\n        }" { (expression_statement "image->colorspace = GRAYColorspace;" (assignment_expression "image->colorspace = GRAYColorspace" (field_expression "image->colorspace" identifier -> field_identifier) = identifier) ;) (expression_statement "MVar2 = SyncImagePixelCache(image,exception);" (assignment_expression "MVar2 = SyncImagePixelCache(image,exception)" identifier = (call_expression "SyncImagePixelCache(image,exception)" identifier (argument_list "(image,exception)" ( identifier , identifier )))) ;) (if_statement "if (MVar2 != MagickFalse) {\n            image->type = BilevelType;\n            return MagickTrue;\n          }" if (parenthesized_expression "(MVar2 != MagickFalse)" ( (binary_expression "MVar2 != MagickFalse" identifier != identifier) )) (compound_statement "{\n            image->type = BilevelType;\n            return MagickTrue;\n          }" { (expression_statement "image->type = BilevelType;" (assignment_expression "image->type = BilevelType" (field_expression "image->type" identifier -> field_identifier) = identifier) ;) (return_statement "return MagickTrue;" return identifier ;) })) })) })) (expression_statement "MVar2 = MagickFalse;" (assignment_expression "MVar2 = MagickFalse" identifier = identifier) ;) })) (return_statement "return MVar2;" return identifier ;) })) comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/colorspace.c"" " string_content ") , number_literal , (string_literal ""SetImageMonochrome"" " string_content ") ))) ;) })))
(translation_unit "undefined4 SetImageMonochrome(int param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }\n    uVar3 = 1;\n    if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }\n    return uVar3;\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome");\n}\n\n" (function_definition "undefined4 SetImageMonochrome(int param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }\n    uVar3 = 1;\n    if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }\n    return uVar3;\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome");\n}" type_identifier (function_declarator "SetImageMonochrome(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  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }\n    uVar3 = 1;\n    if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }\n    return uVar3;\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome");\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\n  }" { (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome")" identifier (argument_list "("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/colorspace.c"" " string_content ") , number_literal , (string_literal ""SetImageMonochrome"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }\n    uVar3 = 1;\n    if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }\n    return uVar3;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3344) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x3344) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" * (cast_expression "(int *)(param_1 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3344)" ( (binary_expression "param_1 + 0x3344" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }\n    uVar3 = 1;\n    if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }\n    return uVar3;\n  }" { (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x3328) != 0)" ( (binary_expression "*(int *)(param_1 + 0x3328) != 0" (pointer_expression "*(int *)(param_1 + 0x3328)" * (cast_expression "(int *)(param_1 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3328)" ( (binary_expression "param_1 + 0x3328" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318)" ( number_literal , (string_literal ""MagickCore/colorspace.c"" " string_content ") , (string_literal ""SetImageMonochrome"" " string_content ") , number_literal , (pointer_expression "&DAT_002f75ae" & identifier) , (binary_expression "param_1 + 0x318" identifier + number_literal) ))) ;) })) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (if_statement "if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x278) != 1)" ( (binary_expression "*(int *)(param_1 + 0x278) != 1" (pointer_expression "*(int *)(param_1 + 0x278)" * (cast_expression "(int *)(param_1 + 0x278)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x278)" ( (binary_expression "param_1 + 0x278" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }" { (expression_statement "uVar1 = *(int *)(param_1 + 4) - 3;" (assignment_expression "uVar1 = *(int *)(param_1 + 4) - 3" identifier = (binary_expression "*(int *)(param_1 + 4) - 3" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) - number_literal)) ;) (if_statement "if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }" if (parenthesized_expression "((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0))" ( (binary_expression "(uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)" (parenthesized_expression "(uVar1 < 0x1f)" ( (binary_expression "uVar1 < 0x1f" identifier < number_literal) )) && (parenthesized_expression "((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)" ( (binary_expression "(0x403c0001U >> (uVar1 & 0x1f) & 1) != 0" (parenthesized_expression "(0x403c0001U >> (uVar1 & 0x1f) & 1)" ( (binary_expression "0x403c0001U >> (uVar1 & 0x1f) & 1" (binary_expression "0x403c0001U >> (uVar1 & 0x1f)" number_literal >> (parenthesized_expression "(uVar1 & 0x1f)" ( (binary_expression "uVar1 & 0x1f" identifier & number_literal) ))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }" { (expression_statement "uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);" (assignment_expression "uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2)" identifier = (call_expression "GetImageProperty(param_1,"colorspace:auto-grayscale",param_2)" identifier (argument_list "(param_1,"colorspace:auto-grayscale",param_2)" ( identifier , (string_literal ""colorspace:auto-grayscale"" " string_content ") , identifier )))) ;) (expression_statement "iVar2 = IsStringFalse(uVar3);" (assignment_expression "iVar2 = IsStringFalse(uVar3)" identifier = (call_expression "IsStringFalse(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (if_statement "if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }" if (parenthesized_expression "((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0))" ( (binary_expression "(iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)" ( (comma_expression "iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0" (assignment_expression "iVar2 = IdentifyImageMonochrome(param_1,param_2)" identifier = (call_expression "IdentifyImageMonochrome(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }" { (expression_statement "*(undefined4 *)(param_1 + 4) = 3;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 3" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = FUN_00059310(param_1,param_2);" (assignment_expression "iVar2 = FUN_00059310(param_1,param_2)" identifier = (call_expression "FUN_00059310(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }" { (expression_statement "*(undefined4 *)(param_1 + 0x278) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x278) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x278)" * (cast_expression "(undefined4 *)(param_1 + 0x278)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x278)" ( (binary_expression "param_1 + 0x278" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) })) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) })) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/colorspace.c"" " string_content ") , number_literal , (string_literal ""SetImageMonochrome"" " 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 ;) (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 , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (assignment_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 = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression LIT >> (parenthesized_expression ( (binary_expression IDENT & LIT) ))) & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "undefined4 SetImageMonochrome(int param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }\n    uVar3 = 1;\n    if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }\n    return uVar3;\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome");\n}" (type_identifier "undefined4") (function_declarator "SetImageMonochrome(int param_1,undefined4 param_2)" (identifier "SetImageMonochrome") (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  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }\n    uVar3 = 1;\n    if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }\n    return uVar3;\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome");\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\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("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");\n  }" ({ "{") (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome")" (identifier "__assert_fail") (argument_list "("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome")" (( "(") (string_literal ""image != (Image *) NULL"" (" """) (string_content "image != (Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/colorspace.c"" (" """) (string_content "MagickCore/colorspace.c") (" """)) (, ",") (number_literal "0x5af") (, ",") (string_literal ""SetImageMonochrome"" (" """) (string_content "SetImageMonochrome") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }\n    uVar3 = 1;\n    if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x3344) == -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x3344) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" (* "*") (cast_expression "(int *)(param_1 + 0x3344)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3344)" (( "(") (binary_expression "param_1 + 0x3344" (identifier "param_1") (+ "+") (number_literal "0x3344")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }\n    uVar3 = 1;\n    if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }\n    return uVar3;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x3328) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x3328) != 0" (pointer_expression "*(int *)(param_1 + 0x3328)" (* "*") (cast_expression "(int *)(param_1 + 0x3328)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3328)" (( "(") (binary_expression "param_1 + 0x3328" (identifier "param_1") (+ "+") (number_literal "0x3328")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);\n    }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318)" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,&DAT_002f75ae,\n                     param_1 + 0x318)" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/colorspace.c"" (" """) (string_content "MagickCore/colorspace.c") (" """)) (, ",") (string_literal ""SetImageMonochrome"" (" """) (string_content "SetImageMonochrome") (" """)) (, ",") (number_literal "0x5b2") (, ",") (pointer_expression "&DAT_002f75ae" (& "&") (identifier "DAT_002f75ae")) (, ",") (binary_expression "param_1 + 0x318" (identifier "param_1") (+ "+") (number_literal "0x318")) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (if_statement "if (*(int *)(param_1 + 0x278) != 1) {\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x278) != 1)" (( "(") (binary_expression "*(int *)(param_1 + 0x278) != 1" (pointer_expression "*(int *)(param_1 + 0x278)" (* "*") (cast_expression "(int *)(param_1 + 0x278)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x278)" (( "(") (binary_expression "param_1 + 0x278" (identifier "param_1") (+ "+") (number_literal "0x278")) () ")")))) (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      uVar1 = *(int *)(param_1 + 4) - 3;\n      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }\n      uVar3 = 0;\n    }" ({ "{") (expression_statement "uVar1 = *(int *)(param_1 + 4) - 3;" (assignment_expression "uVar1 = *(int *)(param_1 + 4) - 3" (identifier "uVar1") (= "=") (binary_expression "*(int *)(param_1 + 4) - 3" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (- "-") (number_literal "3"))) (; ";")) (if_statement "if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }" (if "if") (parenthesized_expression "((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0))" (( "(") (binary_expression "(uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)" (parenthesized_expression "(uVar1 < 0x1f)" (( "(") (binary_expression "uVar1 < 0x1f" (identifier "uVar1") (< "<") (number_literal "0x1f")) () ")")) (&& "&&") (parenthesized_expression "((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)" (( "(") (binary_expression "(0x403c0001U >> (uVar1 & 0x1f) & 1) != 0" (parenthesized_expression "(0x403c0001U >> (uVar1 & 0x1f) & 1)" (( "(") (binary_expression "0x403c0001U >> (uVar1 & 0x1f) & 1" (binary_expression "0x403c0001U >> (uVar1 & 0x1f)" (number_literal "0x403c0001U") (>> ">>") (parenthesized_expression "(uVar1 & 0x1f)" (( "(") (binary_expression "uVar1 & 0x1f" (identifier "uVar1") (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);\n        iVar2 = IsStringFalse(uVar3);\n        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }\n      }" ({ "{") (expression_statement "uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);" (assignment_expression "uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2)" (identifier "uVar3") (= "=") (call_expression "GetImageProperty(param_1,"colorspace:auto-grayscale",param_2)" (identifier "GetImageProperty") (argument_list "(param_1,"colorspace:auto-grayscale",param_2)" (( "(") (identifier "param_1") (, ",") (string_literal ""colorspace:auto-grayscale"" (" """) (string_content "colorspace:auto-grayscale") (" """)) (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar2 = IsStringFalse(uVar3);" (assignment_expression "iVar2 = IsStringFalse(uVar3)" (identifier "iVar2") (= "=") (call_expression "IsStringFalse(uVar3)" (identifier "IsStringFalse") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (if_statement "if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }" (if "if") (parenthesized_expression "((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0))" (( "(") (binary_expression "(iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)" (( "(") (comma_expression "iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0" (assignment_expression "iVar2 = IdentifyImageMonochrome(param_1,param_2)" (identifier "iVar2") (= "=") (call_expression "IdentifyImageMonochrome(param_1,param_2)" (identifier "IdentifyImageMonochrome") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          *(undefined4 *)(param_1 + 4) = 3;\n          iVar2 = FUN_00059310(param_1,param_2);\n          if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }\n        }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 4) = 3;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 3" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "3")) (; ";")) (expression_statement "iVar2 = FUN_00059310(param_1,param_2);" (assignment_expression "iVar2 = FUN_00059310(param_1,param_2)" (identifier "iVar2") (= "=") (call_expression "FUN_00059310(param_1,param_2)" (identifier "FUN_00059310") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            *(undefined4 *)(param_1 + 0x278) = 1;\n            return 1;\n          }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x278) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x278) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x278)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x278)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x278)" (( "(") (binary_expression "param_1 + 0x278" (identifier "param_1") (+ "+") (number_literal "0x278")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome")" (identifier "__assert_fail") (argument_list "("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,\n                "SetImageMonochrome")" (( "(") (string_literal ""image->signature == MagickCoreSignature"" (" """) (string_content "image->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/colorspace.c"" (" """) (string_content "MagickCore/colorspace.c") (" """)) (, ",") (number_literal "0x5b0") (, ",") (string_literal ""SetImageMonochrome"" (" """) (string_content "SetImageMonochrome") (" """)) () ")"))) (; ";")) (} "}")))

/* 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_4 var_7;
  char *value;
  type_1 var_10;
  
  if (var_1 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"SetImageMonochrome");
  }
  if (var_1->signature == 0xabacadab) {
    if (var_1->debug != var_3) {
      var_4(TraceEvent,"MagickCore/colorspace.c","SetImageMonochrome",0x5b2,"%s",
                     var_1->filename);
    }
    var_10 = MagickTrue;
    if (var_1->type != var_5) {
      var_7 = var_1->colorspace - var_6;
      if ((var_7 < 0x1f) && ((0x403c0001U >> (var_7 & 0x1f) & 1) != 0)) {
        value = var_8(var_1,"colorspace:auto-grayscale",exception);
        var_10 = var_9(value);
        if ((var_10 == var_3) &&
           (var_10 = var_11(var_1,exception), var_10 != var_3)) {
          var_1->colorspace = var_6;
          var_10 = var_12(var_1,exception);
          if (var_10 != var_3) {
            var_1->type = var_5;
            return MagickTrue;
          }
        }
      }
      var_10 = var_3;
    }
    return var_10;
  }
                    /* WARNING: Subroutine does not return */
  var_2("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,
                "SetImageMonochrome");
}


(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: (type_identifier) declarator: (identifier)) (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) (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_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: (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (return_statement (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))))

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

undefined4 MASKED(int param_1,undefined4 param_2)

{
  uint uVar1;
  int iVar2;
  undefined4 uVar3;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/colorspace.c",0x5af,"MASKED");
  }
  if (*(int *)(param_1 + 0x3344) == -0x54535255) {
    if (*(int *)(param_1 + 0x3328) != 0) {
      LogMagickEvent(0x8000,"MagickCore/colorspace.c","MASKED",0x5b2,&DAT_002f75ae,
                     param_1 + 0x318);
    }
    uVar3 = 1;
    if (*(int *)(param_1 + 0x278) != 1) {
      uVar1 = *(int *)(param_1 + 4) - 3;
      if ((uVar1 < 0x1f) && ((0x403c0001U >> (uVar1 & 0x1f) & 1) != 0)) {
        uVar3 = GetImageProperty(param_1,"colorspace:auto-grayscale",param_2);
        iVar2 = IsStringFalse(uVar3);
        if ((iVar2 == 0) && (iVar2 = IdentifyImageMonochrome(param_1,param_2), iVar2 != 0)) {
          *(undefined4 *)(param_1 + 4) = 3;
          iVar2 = FUN_00059310(param_1,param_2);
          if (iVar2 != 0) {
            *(undefined4 *)(param_1 + 0x278) = 1;
            return 1;
          }
        }
      }
      uVar3 = 0;
    }
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/colorspace.c",0x5b0,
                "MASKED");
}

