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

MagickBooleanType
MagickRangeThresholdImage
          (MagickWand *wand,double low_black,double low_white,double high_white,double high_black)

{
  Image *pIVar1;
  ExceptionInfo *pEVar2;
  MagickBooleanType MVar3;
  
  if (wand == (MagickWand *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,
                  "MagickRangeThresholdImage");
  }
  if (wand->signature == 0xabacadab) {
    if (wand->debug == MagickFalse) {
      pIVar1 = wand->images;
      pEVar2 = wand->exception;
    }
    else {
      LogMagickEvent();
      pIVar1 = wand->images;
      pEVar2 = wand->exception;
    }
    if (pIVar1 != (Image *)0x0) {
      MVar3 = RangeThresholdImage(pIVar1,low_black,low_white,high_white,high_black,pEVar2);
      return MVar3;
    }
    ThrowMagickException();
    return MagickFalse;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,
                "MagickRangeThresholdImage");
}



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

undefined4
MagickRangeThresholdImage
          (int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,undefined8 param_5)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,
                  "MagickRangeThresholdImage");
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (*(int *)(param_1 + 0x1018) == 0) {
      iVar1 = *(int *)(param_1 + 0x1004);
      uVar2 = *(undefined4 *)(param_1 + 0x100c);
    }
    else {
      LogMagickEvent();
      iVar1 = *(int *)(param_1 + 0x1004);
      uVar2 = *(undefined4 *)(param_1 + 0x100c);
    }
    if (iVar1 != 0) {
      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);
      return uVar2;
    }
    ThrowMagickException();
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,
                "MagickRangeThresholdImage");
}


PUSH ESI
PUSH EBX
CALL 0x0001e8f0
ADD EBX,0xebcc9
SUB ESP,0x24
MOV ESI,dword ptr [ESP + 0x30]
FLD qword ptr [ESP + 0x34]
FLD qword ptr [ESP + 0x3c]
FLD qword ptr [ESP + 0x44]
FLD qword ptr [ESP + 0x4c]
TEST ESI,ESI
JZ 0x0007a49a
CMP dword ptr [ESI + 0x101c],0xabacadab
JNZ 0x0007a473
MOV EAX,dword ptr [ESI + 0x1018]
TEST EAX,EAX
JNZ 0x0007a3c0
MOV EAX,dword ptr [ESI + 0x1004]
MOV EDX,dword ptr [ESI + 0x100c]
TEST EAX,EAX
JZ 0x0007a430
JMP 0x0007a398
FXCH ST3
FXCH
FXCH ST2
FXCH
SUB ESP,0x8
PUSH EDX
SUB ESP,0x20
FSTP qword ptr [ESP + 0x18]
FSTP qword ptr [ESP + 0x10]
FSTP qword ptr [ESP + 0x8]
FSTP qword ptr [ESP]
PUSH EAX
CALL 0x0001d540
ADD ESP,0x30
ADD ESP,0x24
POP EBX
POP ESI
RET
FSTP qword ptr [ESP + 0x18]
LEA EAX,[ESI + 0x4]
SUB ESP,0x8
FSTP qword ptr [ESP + 0x18]
FSTP qword ptr [ESP + 0x10]
FSTP qword ptr [ESP + 0x8]
PUSH EAX
LEA EAX,[EBX + 0xfff92fa4]
PUSH EAX
LEA EAX,[EBX + 0xfff8feb4]
PUSH 0x2203
PUSH EAX
LEA EAX,[EBX + 0xfff8e919]
PUSH EAX
PUSH 0x40000
CALL 0x0001d6f0
MOV EAX,dword ptr [ESI + 0x1004]
ADD ESP,0x20
FLD qword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESI + 0x100c]
FLD qword ptr [ESP + 0x10]
FLD qword ptr [ESP + 0x8]
FLD qword ptr [ESP]
TEST EAX,EAX
JNZ 0x0007a390
FSTP ST0
FSTP ST0
FSTP ST0
FSTP ST0
JMP 0x0007a438
FSTP ST0
FSTP ST0
FSTP ST0
FSTP ST0
LEA EAX,[EBX + 0xfff8072e]
ADD ESI,0x4
PUSH ESI
PUSH EAX
LEA EAX,[EBX + 0xfff884fe]
PUSH EAX
LEA EAX,[EBX + 0xfff8feb4]
PUSH 0x1d6
PUSH 0x2205
PUSH EAX
LEA EAX,[EBX + 0xfff8e919]
PUSH EAX
PUSH EDX
CALL 0x0001de10
ADD ESP,0x20
XOR EAX,EAX
ADD ESP,0x24
POP EBX
POP ESI
RET
FSTP ST0
FSTP ST0
FSTP ST0
FSTP ST0
LEA EAX,[EBX + 0xfff8fed0]
PUSH EAX
LEA EAX,[EBX + 0xfff8e919]
PUSH 0x2201
PUSH EAX
LEA EAX,[EBX + 0xfff8e9f8]
PUSH EAX
CALL 0x0001ccf0
FSTP ST0
FSTP ST0
FSTP ST0
FSTP ST0
LEA EAX,[EBX + 0xfff8fed0]
PUSH EAX
LEA EAX,[EBX + 0xfff8e919]
PUSH 0x2200
PUSH EAX
LEA EAX,[EBX + 0xfff8e933]
PUSH EAX
CALL 0x0001ccf0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4\nMagickRangeThresholdImage\n          (int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,undefined8 param_5)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }\n    ThrowMagickException();\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage");\n}\n\n" comment (function_definition "undefined4\nMagickRangeThresholdImage\n          (int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,undefined8 param_5)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }\n    ThrowMagickException();\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage");\n}" type_identifier (function_declarator "MagickRangeThresholdImage\n          (int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,undefined8 param_5)" identifier (parameter_list "(int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,undefined8 param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }\n    ThrowMagickException();\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }" { comment (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickRangeThresholdImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }\n    ThrowMagickException();\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x101c) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x101c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x101c)" * (cast_expression "(int *)(param_1 + 0x101c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x101c)" ( (binary_expression "param_1 + 0x101c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }\n    ThrowMagickException();\n    return 0;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1018) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1018) == 0" (pointer_expression "*(int *)(param_1 + 0x1018)" * (cast_expression "(int *)(param_1 + 0x1018)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1018)" ( (binary_expression "param_1 + 0x1018" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1004)" identifier = (pointer_expression "*(int *)(param_1 + 0x1004)" * (cast_expression "(int *)(param_1 + 0x1004)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x100c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x100c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" * (cast_expression "(undefined4 *)(param_1 + 0x100c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100c)" ( (binary_expression "param_1 + 0x100c" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }" else (compound_statement "{\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }" { (expression_statement "LogMagickEvent();" (call_expression "LogMagickEvent()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1004)" identifier = (pointer_expression "*(int *)(param_1 + 0x1004)" * (cast_expression "(int *)(param_1 + 0x1004)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x100c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x100c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" * (cast_expression "(undefined4 *)(param_1 + 0x100c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100c)" ( (binary_expression "param_1 + 0x100c" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }" { (expression_statement "uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);" (assignment_expression "uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2)" identifier = (call_expression "RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2)" identifier (argument_list "(iVar1,param_2,param_3,param_4,param_5,uVar2)" ( identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "ThrowMagickException();" (call_expression "ThrowMagickException()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickRangeThresholdImage"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n\nMagickBooleanType\nMagickRangeThresholdImage\n          (MagickWand *wand,double low_black,double low_white,double high_white,double high_black)\n\n{\n  Image *pIVar1;\n  ExceptionInfo *pEVar2;\n  MagickBooleanType MVar3;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar1 = wand->images;\n      pEVar2 = wand->exception;\n    }\n    else {\n      LogMagickEvent();\n      pIVar1 = wand->images;\n      pEVar2 = wand->exception;\n    }\n    if (pIVar1 != (Image *)0x0) {\n      MVar3 = RangeThresholdImage(pIVar1,low_black,low_white,high_white,high_black,pEVar2);\n      return MVar3;\n    }\n    ThrowMagickException();\n    return MagickFalse;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage");\n}\n\n" comment comment comment comment comment comment comment (function_definition "MagickBooleanType\nMagickRangeThresholdImage\n          (MagickWand *wand,double low_black,double low_white,double high_white,double high_black)\n\n{\n  Image *pIVar1;\n  ExceptionInfo *pEVar2;\n  MagickBooleanType MVar3;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar1 = wand->images;\n      pEVar2 = wand->exception;\n    }\n    else {\n      LogMagickEvent();\n      pIVar1 = wand->images;\n      pEVar2 = wand->exception;\n    }\n    if (pIVar1 != (Image *)0x0) {\n      MVar3 = RangeThresholdImage(pIVar1,low_black,low_white,high_white,high_black,pEVar2);\n      return MVar3;\n    }\n    ThrowMagickException();\n    return MagickFalse;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage");\n}" type_identifier (function_declarator "MagickRangeThresholdImage\n          (MagickWand *wand,double low_black,double low_white,double high_white,double high_black)" identifier (parameter_list "(MagickWand *wand,double low_black,double low_white,double high_white,double high_black)" ( (parameter_declaration "MagickWand *wand" type_identifier (pointer_declarator "*wand" * identifier)) , (parameter_declaration "double low_black" primitive_type identifier) , (parameter_declaration "double low_white" primitive_type identifier) , (parameter_declaration "double high_white" primitive_type identifier) , (parameter_declaration "double high_black" primitive_type identifier) ))) (compound_statement "{\n  Image *pIVar1;\n  ExceptionInfo *pEVar2;\n  MagickBooleanType MVar3;\n  \n  if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar1 = wand->images;\n      pEVar2 = wand->exception;\n    }\n    else {\n      LogMagickEvent();\n      pIVar1 = wand->images;\n      pEVar2 = wand->exception;\n    }\n    if (pIVar1 != (Image *)0x0) {\n      MVar3 = RangeThresholdImage(pIVar1,low_black,low_white,high_white,high_black,pEVar2);\n      return MVar3;\n    }\n    ThrowMagickException();\n    return MagickFalse;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage");\n}" { (declaration "Image *pIVar1;" type_identifier (pointer_declarator "*pIVar1" * identifier) ;) (declaration "ExceptionInfo *pEVar2;" type_identifier (pointer_declarator "*pEVar2" * identifier) ;) (declaration "MagickBooleanType MVar3;" type_identifier identifier ;) (if_statement "if (wand == (MagickWand *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }" if (parenthesized_expression "(wand == (MagickWand *)0x0)" ( (binary_expression "wand == (MagickWand *)0x0" identifier == (cast_expression "(MagickWand *)0x0" ( (type_descriptor "MagickWand *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }" { comment (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickRangeThresholdImage"" " string_content ") ))) ;) })) (if_statement "if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar1 = wand->images;\n      pEVar2 = wand->exception;\n    }\n    else {\n      LogMagickEvent();\n      pIVar1 = wand->images;\n      pEVar2 = wand->exception;\n    }\n    if (pIVar1 != (Image *)0x0) {\n      MVar3 = RangeThresholdImage(pIVar1,low_black,low_white,high_white,high_black,pEVar2);\n      return MVar3;\n    }\n    ThrowMagickException();\n    return MagickFalse;\n  }" if (parenthesized_expression "(wand->signature == 0xabacadab)" ( (binary_expression "wand->signature == 0xabacadab" (field_expression "wand->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    if (wand->debug == MagickFalse) {\n      pIVar1 = wand->images;\n      pEVar2 = wand->exception;\n    }\n    else {\n      LogMagickEvent();\n      pIVar1 = wand->images;\n      pEVar2 = wand->exception;\n    }\n    if (pIVar1 != (Image *)0x0) {\n      MVar3 = RangeThresholdImage(pIVar1,low_black,low_white,high_white,high_black,pEVar2);\n      return MVar3;\n    }\n    ThrowMagickException();\n    return MagickFalse;\n  }" { (if_statement "if (wand->debug == MagickFalse) {\n      pIVar1 = wand->images;\n      pEVar2 = wand->exception;\n    }\n    else {\n      LogMagickEvent();\n      pIVar1 = wand->images;\n      pEVar2 = wand->exception;\n    }" if (parenthesized_expression "(wand->debug == MagickFalse)" ( (binary_expression "wand->debug == MagickFalse" (field_expression "wand->debug" identifier -> field_identifier) == identifier) )) (compound_statement "{\n      pIVar1 = wand->images;\n      pEVar2 = wand->exception;\n    }" { (expression_statement "pIVar1 = wand->images;" (assignment_expression "pIVar1 = wand->images" identifier = (field_expression "wand->images" identifier -> field_identifier)) ;) (expression_statement "pEVar2 = wand->exception;" (assignment_expression "pEVar2 = wand->exception" identifier = (field_expression "wand->exception" identifier -> field_identifier)) ;) }) (else_clause "else {\n      LogMagickEvent();\n      pIVar1 = wand->images;\n      pEVar2 = wand->exception;\n    }" else (compound_statement "{\n      LogMagickEvent();\n      pIVar1 = wand->images;\n      pEVar2 = wand->exception;\n    }" { (expression_statement "LogMagickEvent();" (call_expression "LogMagickEvent()" identifier (argument_list "()" ( ))) ;) (expression_statement "pIVar1 = wand->images;" (assignment_expression "pIVar1 = wand->images" identifier = (field_expression "wand->images" identifier -> field_identifier)) ;) (expression_statement "pEVar2 = wand->exception;" (assignment_expression "pEVar2 = wand->exception" identifier = (field_expression "wand->exception" identifier -> field_identifier)) ;) }))) (if_statement "if (pIVar1 != (Image *)0x0) {\n      MVar3 = RangeThresholdImage(pIVar1,low_black,low_white,high_white,high_black,pEVar2);\n      return MVar3;\n    }" if (parenthesized_expression "(pIVar1 != (Image *)0x0)" ( (binary_expression "pIVar1 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      MVar3 = RangeThresholdImage(pIVar1,low_black,low_white,high_white,high_black,pEVar2);\n      return MVar3;\n    }" { (expression_statement "MVar3 = RangeThresholdImage(pIVar1,low_black,low_white,high_white,high_black,pEVar2);" (assignment_expression "MVar3 = RangeThresholdImage(pIVar1,low_black,low_white,high_white,high_black,pEVar2)" identifier = (call_expression "RangeThresholdImage(pIVar1,low_black,low_white,high_white,high_black,pEVar2)" identifier (argument_list "(pIVar1,low_black,low_white,high_white,high_black,pEVar2)" ( identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return MVar3;" return identifier ;) })) (expression_statement "ThrowMagickException();" (call_expression "ThrowMagickException()" identifier (argument_list "()" ( ))) ;) (return_statement "return MagickFalse;" return identifier ;) })) comment (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickRangeThresholdImage"" " string_content ") ))) ;) })))
(translation_unit "undefined4\nMagickRangeThresholdImage\n          (int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,undefined8 param_5)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }\n    ThrowMagickException();\n    return 0;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage");\n}\n\n" (function_definition "undefined4\nMagickRangeThresholdImage\n          (int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,undefined8 param_5)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }\n    ThrowMagickException();\n    return 0;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage");\n}" type_identifier (function_declarator "MagickRangeThresholdImage\n          (int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,undefined8 param_5)" identifier (parameter_list "(int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,undefined8 param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }\n    ThrowMagickException();\n    return 0;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }" { (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage")" identifier (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage")" ( (string_literal ""wand != (MagickWand *) NULL"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickRangeThresholdImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }\n    ThrowMagickException();\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x101c) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x101c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x101c)" * (cast_expression "(int *)(param_1 + 0x101c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x101c)" ( (binary_expression "param_1 + 0x101c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }\n    ThrowMagickException();\n    return 0;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1018) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1018) == 0" (pointer_expression "*(int *)(param_1 + 0x1018)" * (cast_expression "(int *)(param_1 + 0x1018)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1018)" ( (binary_expression "param_1 + 0x1018" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1004)" identifier = (pointer_expression "*(int *)(param_1 + 0x1004)" * (cast_expression "(int *)(param_1 + 0x1004)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x100c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x100c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" * (cast_expression "(undefined4 *)(param_1 + 0x100c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100c)" ( (binary_expression "param_1 + 0x100c" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }" else (compound_statement "{\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }" { (expression_statement "LogMagickEvent();" (call_expression "LogMagickEvent()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1004)" identifier = (pointer_expression "*(int *)(param_1 + 0x1004)" * (cast_expression "(int *)(param_1 + 0x1004)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1004)" ( (binary_expression "param_1 + 0x1004" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x100c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x100c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" * (cast_expression "(undefined4 *)(param_1 + 0x100c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100c)" ( (binary_expression "param_1 + 0x100c" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }" { (expression_statement "uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);" (assignment_expression "uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2)" identifier = (call_expression "RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2)" identifier (argument_list "(iVar1,param_2,param_3,param_4,param_5,uVar2)" ( identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "ThrowMagickException();" (call_expression "ThrowMagickException()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage")" identifier (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage")" ( (string_literal ""wand->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/magick-image.c"" " string_content ") , number_literal , (string_literal ""MagickRangeThresholdImage"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "undefined4\nMagickRangeThresholdImage\n          (int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,undefined8 param_5)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }\n    ThrowMagickException();\n    return 0;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage");\n}" (type_identifier "undefined4") (function_declarator "MagickRangeThresholdImage\n          (int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,undefined8 param_5)" (identifier "MagickRangeThresholdImage") (parameter_list "(int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,undefined8 param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }\n    ThrowMagickException();\n    return 0;\n  }\n                    \n  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage");\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");\n  }" ({ "{") (expression_statement "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage");" (call_expression "__assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage")" (identifier "__assert_fail") (argument_list "("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,\n                  "MagickRangeThresholdImage")" (( "(") (string_literal ""wand != (MagickWand *) NULL"" (" """) (string_content "wand != (MagickWand *) NULL") (" """)) (, ",") (string_literal ""MagickWand/magick-image.c"" (" """) (string_content "MagickWand/magick-image.c") (" """)) (, ",") (number_literal "0x2200") (, ",") (string_literal ""MagickRangeThresholdImage"" (" """) (string_content "MagickRangeThresholdImage") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }\n    ThrowMagickException();\n    return 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x101c) == -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x101c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x101c)" (* "*") (cast_expression "(int *)(param_1 + 0x101c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x101c)" (( "(") (binary_expression "param_1 + 0x101c" (identifier "param_1") (+ "+") (number_literal "0x101c")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }\n    ThrowMagickException();\n    return 0;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x1018) == 0) {\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1018) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1018) == 0" (pointer_expression "*(int *)(param_1 + 0x1018)" (* "*") (cast_expression "(int *)(param_1 + 0x1018)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1018)" (( "(") (binary_expression "param_1 + 0x1018" (identifier "param_1") (+ "+") (number_literal "0x1018")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1004)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x1004)" (* "*") (cast_expression "(int *)(param_1 + 0x1004)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1004)" (( "(") (binary_expression "param_1 + 0x1004" (identifier "param_1") (+ "+") (number_literal "0x1004")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x100c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x100c)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x100c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x100c)" (( "(") (binary_expression "param_1 + 0x100c" (identifier "param_1") (+ "+") (number_literal "0x100c")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }" (else "else") (compound_statement "{\n      LogMagickEvent();\n      iVar1 = *(int *)(param_1 + 0x1004);\n      uVar2 = *(undefined4 *)(param_1 + 0x100c);\n    }" ({ "{") (expression_statement "LogMagickEvent();" (call_expression "LogMagickEvent()" (identifier "LogMagickEvent") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x1004);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1004)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x1004)" (* "*") (cast_expression "(int *)(param_1 + 0x1004)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1004)" (( "(") (binary_expression "param_1 + 0x1004" (identifier "param_1") (+ "+") (number_literal "0x1004")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x100c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x100c)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x100c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x100c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x100c)" (( "(") (binary_expression "param_1 + 0x100c" (identifier "param_1") (+ "+") (number_literal "0x100c")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar1 != 0) {\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);\n      return uVar2;\n    }" ({ "{") (expression_statement "uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);" (assignment_expression "uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2)" (identifier "uVar2") (= "=") (call_expression "RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2)" (identifier "RangeThresholdImage") (argument_list "(iVar1,param_2,param_3,param_4,param_5,uVar2)" (( "(") (identifier "iVar1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "uVar2") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "ThrowMagickException();" (call_expression "ThrowMagickException()" (identifier "ThrowMagickException") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage");" (call_expression "__assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage")" (identifier "__assert_fail") (argument_list "("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,\n                "MagickRangeThresholdImage")" (( "(") (string_literal ""wand->signature == MagickWandSignature"" (" """) (string_content "wand->signature == MagickWandSignature") (" """)) (, ",") (string_literal ""MagickWand/magick-image.c"" (" """) (string_content "MagickWand/magick-image.c") (" """)) (, ",") (number_literal "0x2201") (, ",") (string_literal ""MagickRangeThresholdImage"" (" """) (string_content "MagickRangeThresholdImage") (" """)) () ")"))) (; ";")) (} "}")))

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

type_1
function_1
          (type_2 *var_1,double low_black,double low_white,double high_white,double high_black)

{
  type_3 *var_5;
  type_4 *pEVar2;
  type_1 MVar3;
  
  if (var_1 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,
                  "MagickRangeThresholdImage");
  }
  if (var_1->signature == 0xabacadab) {
    if (var_1->debug == var_3) {
      var_5 = var_1->images;
      pEVar2 = var_1->exception;
    }
    else {
      var_4();
      var_5 = var_1->images;
      pEVar2 = var_1->exception;
    }
    if (var_5 != (type_3 *)0x0) {
      MVar3 = var_6(var_5,low_black,low_white,high_white,high_black,pEVar2);
      return MVar3;
    }
    var_7();
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_2("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,
                "MagickRangeThresholdImage");
}


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

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

undefined4
MASKED
          (int param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,undefined8 param_5)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (MagickWand *) NULL","MagickWand/magick-image.c",0x2200,
                  "MASKED");
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (*(int *)(param_1 + 0x1018) == 0) {
      iVar1 = *(int *)(param_1 + 0x1004);
      uVar2 = *(undefined4 *)(param_1 + 0x100c);
    }
    else {
      LogMagickEvent();
      iVar1 = *(int *)(param_1 + 0x1004);
      uVar2 = *(undefined4 *)(param_1 + 0x100c);
    }
    if (iVar1 != 0) {
      uVar2 = RangeThresholdImage(iVar1,param_2,param_3,param_4,param_5,uVar2);
      return uVar2;
    }
    ThrowMagickException();
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("wand->signature == MagickWandSignature","MagickWand/magick-image.c",0x2201,
                "MASKED");
}

