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

MagickBooleanType DrawClipPath(Image *image,DrawInfo *draw_info,char *id,ExceptionInfo *exception)

{
  char *clip_path;
  Image *mask;
  MagickBooleanType MVar1;
  
  clip_path = GetImageArtifact(image,id);
  if (clip_path != (char *)0x0) {
    mask = DrawClippingMask(image,draw_info,draw_info->clip_mask,clip_path,exception);
    if (mask != (Image *)0x0) {
      MVar1 = SetImageMask(image,WritePixelMask,mask,exception);
      DestroyImage(mask);
      return MVar1;
    }
  }
  return MagickFalse;
}



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

undefined4 DrawClipPath(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = GetImageArtifact(param_1,param_3);
  if (iVar1 != 0) {
    iVar1 = FUN_000a4980(iVar1,param_4);
    if (iVar1 != 0) {
      uVar2 = SetImageMask(param_1,2,iVar1,param_4);
      DestroyImage(iVar1);
      return uVar2;
    }
  }
  return 0;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00038830
ADD EBX,0x334344
MOV EDI,dword ptr [ESP + 0x14]
SUB ESP,0x8
PUSH dword ptr [ESP + 0x20]
PUSH ESI
CALL 0x000318c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000a4d20
MOV ECX,dword ptr [EDI + 0x278]
SUB ESP,0x8
MOV EDX,EDI
PUSH dword ptr [ESP + 0x24]
PUSH EAX
MOV EAX,ESI
CALL 0x000a4980
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x000a4d20
PUSH dword ptr [ESP + 0x1c]
PUSH EAX
PUSH 0x2
PUSH ESI
CALL 0x00031400
MOV dword ptr [ESP],EDI
MOV ESI,EAX
CALL 0x00032dd0
ADD ESP,0x10
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
XOR ESI,ESI
POP EBX
MOV EAX,ESI
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 DrawClipPath(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = GetImageArtifact(param_1,param_3);\n  if (iVar1 != 0) {\n    iVar1 = FUN_000a4980(iVar1,param_4);\n    if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 DrawClipPath(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = GetImageArtifact(param_1,param_3);\n  if (iVar1 != 0) {\n    iVar1 = FUN_000a4980(iVar1,param_4);\n    if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "DrawClipPath(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = GetImageArtifact(param_1,param_3);\n  if (iVar1 != 0) {\n    iVar1 = FUN_000a4980(iVar1,param_4);\n    if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = GetImageArtifact(param_1,param_3);" (assignment_expression "iVar1 = GetImageArtifact(param_1,param_3)" identifier = (call_expression "GetImageArtifact(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = FUN_000a4980(iVar1,param_4);\n    if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_000a4980(iVar1,param_4);\n    if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }\n  }" { (expression_statement "iVar1 = FUN_000a4980(iVar1,param_4);" (assignment_expression "iVar1 = FUN_000a4980(iVar1,param_4)" identifier = (call_expression "FUN_000a4980(iVar1,param_4)" identifier (argument_list "(iVar1,param_4)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }" { (expression_statement "uVar2 = SetImageMask(param_1,2,iVar1,param_4);" (assignment_expression "uVar2 = SetImageMask(param_1,2,iVar1,param_4)" identifier = (call_expression "SetImageMask(param_1,2,iVar1,param_4)" identifier (argument_list "(param_1,2,iVar1,param_4)" ( identifier , number_literal , identifier , identifier )))) ;) (expression_statement "DestroyImage(iVar1);" (call_expression "DestroyImage(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return uVar2;" return identifier ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(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 "ComplianceType": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n\nMagickBooleanType DrawClipPath(Image *image,DrawInfo *draw_info,char *id,ExceptionInfo *exception)\n\n{\n  char *clip_path;\n  Image *mask;\n  MagickBooleanType MVar1;\n  \n  clip_path = GetImageArtifact(image,id);\n  if (clip_path != (char *)0x0) {\n    mask = DrawClippingMask(image,draw_info,draw_info->clip_mask,clip_path,exception);\n    if (mask != (Image *)0x0) {\n      MVar1 = SetImageMask(image,WritePixelMask,mask,exception);\n      DestroyImage(mask);\n      return MVar1;\n    }\n  }\n  return MagickFalse;\n}\n\n" comment comment comment comment comment comment comment comment (function_definition "MagickBooleanType DrawClipPath(Image *image,DrawInfo *draw_info,char *id,ExceptionInfo *exception)\n\n{\n  char *clip_path;\n  Image *mask;\n  MagickBooleanType MVar1;\n  \n  clip_path = GetImageArtifact(image,id);\n  if (clip_path != (char *)0x0) {\n    mask = DrawClippingMask(image,draw_info,draw_info->clip_mask,clip_path,exception);\n    if (mask != (Image *)0x0) {\n      MVar1 = SetImageMask(image,WritePixelMask,mask,exception);\n      DestroyImage(mask);\n      return MVar1;\n    }\n  }\n  return MagickFalse;\n}" type_identifier (function_declarator "DrawClipPath(Image *image,DrawInfo *draw_info,char *id,ExceptionInfo *exception)" identifier (parameter_list "(Image *image,DrawInfo *draw_info,char *id,ExceptionInfo *exception)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) , (parameter_declaration "DrawInfo *draw_info" type_identifier (pointer_declarator "*draw_info" * identifier)) , (parameter_declaration "char *id" primitive_type (pointer_declarator "*id" * identifier)) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) ))) (compound_statement "{\n  char *clip_path;\n  Image *mask;\n  MagickBooleanType MVar1;\n  \n  clip_path = GetImageArtifact(image,id);\n  if (clip_path != (char *)0x0) {\n    mask = DrawClippingMask(image,draw_info,draw_info->clip_mask,clip_path,exception);\n    if (mask != (Image *)0x0) {\n      MVar1 = SetImageMask(image,WritePixelMask,mask,exception);\n      DestroyImage(mask);\n      return MVar1;\n    }\n  }\n  return MagickFalse;\n}" { (declaration "char *clip_path;" primitive_type (pointer_declarator "*clip_path" * identifier) ;) (declaration "Image *mask;" type_identifier (pointer_declarator "*mask" * identifier) ;) (declaration "MagickBooleanType MVar1;" type_identifier identifier ;) (expression_statement "clip_path = GetImageArtifact(image,id);" (assignment_expression "clip_path = GetImageArtifact(image,id)" identifier = (call_expression "GetImageArtifact(image,id)" identifier (argument_list "(image,id)" ( identifier , identifier )))) ;) (if_statement "if (clip_path != (char *)0x0) {\n    mask = DrawClippingMask(image,draw_info,draw_info->clip_mask,clip_path,exception);\n    if (mask != (Image *)0x0) {\n      MVar1 = SetImageMask(image,WritePixelMask,mask,exception);\n      DestroyImage(mask);\n      return MVar1;\n    }\n  }" if (parenthesized_expression "(clip_path != (char *)0x0)" ( (binary_expression "clip_path != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    mask = DrawClippingMask(image,draw_info,draw_info->clip_mask,clip_path,exception);\n    if (mask != (Image *)0x0) {\n      MVar1 = SetImageMask(image,WritePixelMask,mask,exception);\n      DestroyImage(mask);\n      return MVar1;\n    }\n  }" { (expression_statement "mask = DrawClippingMask(image,draw_info,draw_info->clip_mask,clip_path,exception);" (assignment_expression "mask = DrawClippingMask(image,draw_info,draw_info->clip_mask,clip_path,exception)" identifier = (call_expression "DrawClippingMask(image,draw_info,draw_info->clip_mask,clip_path,exception)" identifier (argument_list "(image,draw_info,draw_info->clip_mask,clip_path,exception)" ( identifier , identifier , (field_expression "draw_info->clip_mask" identifier -> field_identifier) , identifier , identifier )))) ;) (if_statement "if (mask != (Image *)0x0) {\n      MVar1 = SetImageMask(image,WritePixelMask,mask,exception);\n      DestroyImage(mask);\n      return MVar1;\n    }" if (parenthesized_expression "(mask != (Image *)0x0)" ( (binary_expression "mask != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      MVar1 = SetImageMask(image,WritePixelMask,mask,exception);\n      DestroyImage(mask);\n      return MVar1;\n    }" { (expression_statement "MVar1 = SetImageMask(image,WritePixelMask,mask,exception);" (assignment_expression "MVar1 = SetImageMask(image,WritePixelMask,mask,exception)" identifier = (call_expression "SetImageMask(image,WritePixelMask,mask,exception)" identifier (argument_list "(image,WritePixelMask,mask,exception)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "DestroyImage(mask);" (call_expression "DestroyImage(mask)" identifier (argument_list "(mask)" ( identifier ))) ;) (return_statement "return MVar1;" return identifier ;) })) })) (return_statement "return MagickFalse;" return identifier ;) })))
(translation_unit "undefined4 DrawClipPath(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = GetImageArtifact(param_1,param_3);\n  if (iVar1 != 0) {\n    iVar1 = FUN_000a4980(iVar1,param_4);\n    if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 DrawClipPath(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = GetImageArtifact(param_1,param_3);\n  if (iVar1 != 0) {\n    iVar1 = FUN_000a4980(iVar1,param_4);\n    if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "DrawClipPath(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = GetImageArtifact(param_1,param_3);\n  if (iVar1 != 0) {\n    iVar1 = FUN_000a4980(iVar1,param_4);\n    if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = GetImageArtifact(param_1,param_3);" (assignment_expression "iVar1 = GetImageArtifact(param_1,param_3)" identifier = (call_expression "GetImageArtifact(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = FUN_000a4980(iVar1,param_4);\n    if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_000a4980(iVar1,param_4);\n    if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }\n  }" { (expression_statement "iVar1 = FUN_000a4980(iVar1,param_4);" (assignment_expression "iVar1 = FUN_000a4980(iVar1,param_4)" identifier = (call_expression "FUN_000a4980(iVar1,param_4)" identifier (argument_list "(iVar1,param_4)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }" { (expression_statement "uVar2 = SetImageMask(param_1,2,iVar1,param_4);" (assignment_expression "uVar2 = SetImageMask(param_1,2,iVar1,param_4)" identifier = (call_expression "SetImageMask(param_1,2,iVar1,param_4)" identifier (argument_list "(param_1,2,iVar1,param_4)" ( identifier , number_literal , identifier , identifier )))) ;) (expression_statement "DestroyImage(iVar1);" (call_expression "DestroyImage(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return uVar2;" return identifier ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 DrawClipPath(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = GetImageArtifact(param_1,param_3);\n  if (iVar1 != 0) {\n    iVar1 = FUN_000a4980(iVar1,param_4);\n    if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "DrawClipPath(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "DrawClipPath") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = GetImageArtifact(param_1,param_3);\n  if (iVar1 != 0) {\n    iVar1 = FUN_000a4980(iVar1,param_4);\n    if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = GetImageArtifact(param_1,param_3);" (assignment_expression "iVar1 = GetImageArtifact(param_1,param_3)" (identifier "iVar1") (= "=") (call_expression "GetImageArtifact(param_1,param_3)" (identifier "GetImageArtifact") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar1 = FUN_000a4980(iVar1,param_4);\n    if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_000a4980(iVar1,param_4);\n    if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_000a4980(iVar1,param_4);" (assignment_expression "iVar1 = FUN_000a4980(iVar1,param_4)" (identifier "iVar1") (= "=") (call_expression "FUN_000a4980(iVar1,param_4)" (identifier "FUN_000a4980") (argument_list "(iVar1,param_4)" (( "(") (identifier "iVar1") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = SetImageMask(param_1,2,iVar1,param_4);\n      DestroyImage(iVar1);\n      return uVar2;\n    }" ({ "{") (expression_statement "uVar2 = SetImageMask(param_1,2,iVar1,param_4);" (assignment_expression "uVar2 = SetImageMask(param_1,2,iVar1,param_4)" (identifier "uVar2") (= "=") (call_expression "SetImageMask(param_1,2,iVar1,param_4)" (identifier "SetImageMask") (argument_list "(param_1,2,iVar1,param_4)" (( "(") (identifier "param_1") (, ",") (number_literal "2") (, ",") (identifier "iVar1") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "DestroyImage(iVar1);" (call_expression "DestroyImage(iVar1)" (identifier "DestroyImage") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 function_1(type_2 *image,type_3 *draw_info,char *id,type_4 *exception)

{
  char *var_2;
  type_2 *var_4;
  type_1 MVar1;
  
  var_2 = var_1(image,id);
  if (var_2 != (char *)0x0) {
    var_4 = var_3(image,draw_info,draw_info->clip_mask,var_2,exception);
    if (var_4 != (type_2 *)0x0) {
      MVar1 = var_5(image,WritePixelMask,var_4,exception);
      var_6(var_4);
      return MVar1;
    }
  }
  return MagickFalse;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (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)) (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: (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: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))))) (return_statement (number_literal)))))

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

undefined4 MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = GetImageArtifact(param_1,param_3);
  if (iVar1 != 0) {
    iVar1 = FUN_000a4980(iVar1,param_4);
    if (iVar1 != 0) {
      uVar2 = SetImageMask(param_1,2,iVar1,param_4);
      DestroyImage(iVar1);
      return uVar2;
    }
  }
  return 0;
}

