
/* 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 MagickNegateImage(MagickWand *wand,MagickBooleanType gray)

{
  ExceptionInfo *pEVar1;
  MagickBooleanType MVar2;
  Image *pIVar3;
  
  if (wand == (MagickWand *)0x0) {
    MVar2 = (*(code *)PTR___assert_fail_0014f720)
                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150
                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);
    return MVar2;
  }
  if (wand->signature == 0xabacadab) {
    if (wand->debug == MagickFalse) {
      pIVar3 = wand->images;
      pEVar1 = wand->exception;
    }
    else {
      (*(code *)PTR_LogMagickEvent_0014f488)
                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,
                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,
                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,wand->name);
      pIVar3 = wand->images;
      pEVar1 = wand->exception;
    }
    if (pIVar3 != (Image *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      MVar2 = (*(code *)PTR_NegateImage_0014f880)(pIVar3,gray,pEVar1);
      return MVar2;
    }
    (*(code *)PTR_ThrowMagickException_0014f2bc)
              (pEVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,
               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,
               wand->name);
    return MagickFalse;
  }
  MVar2 = (*(code *)PTR___assert_fail_0014f720)
                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,
                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);
  return MVar2;
}



undefined4 MagickNegateImage(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  int iVar2;
  
  if (param_1 == 0) {
    uVar1 = (*(code *)PTR___assert_fail_0014f720)
                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150
                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);
    return uVar1;
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (*(int *)(&DAT_00001018 + param_1) == 0) {
      iVar2 = *(int *)(&DAT_00001004 + param_1);
      uVar1 = *(undefined4 *)(param_1 + 0x100c);
    }
    else {
      (*(code *)PTR_LogMagickEvent_0014f488)
                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,
                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,
                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);
      iVar2 = *(int *)(&DAT_00001004 + param_1);
      uVar1 = *(undefined4 *)(param_1 + 0x100c);
    }
    if (iVar2 != 0) {
                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);
      return uVar1;
    }
    (*(code *)PTR_ThrowMagickException_0014f2bc)
              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,
               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,
               param_1 + 4);
    return 0;
  }
  uVar1 = (*(code *)PTR___assert_fail_0014f720)
                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,
                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);
  return uVar1;
}


lui gp,0xd
addiu gp,gp,-0x3c14
addu gp,gp,t9
addiu sp,sp,-0x38
sw gp,0x20(sp)
sw ra,0x34(sp)
sw s1,0x30(sp)
beq a0,zero,0x0008ad4c
_sw s0,0x2c(sp)
lui v0,0xabac
lw v1,0x101c(a0)
ori v0,v0,0xadab
bne v1,v0,0x0008ad28
_or s0,a0,zero
lw v0,0x1018(a0)
bne v0,zero,0x0008ac84
_or s1,a1,zero
lw a0,0x1004(s0)
beq a0,zero,0x0008acc8
_lw v0,0x100c(s0)
lw ra,0x34(sp)
or a1,s1,zero
lw s0,0x2c(sp)
or a2,v0,zero
lw s1,0x30(sp)
lw t9,-0x7780(gp)
jr t9
_addiu sp,sp,0x38
addiu v0,a0,0x4
lw a2,-0x7fc4(gp)
lw a1,-0x7fc4(gp)
lui a0,0x4
lw t9,-0x7b78(gp)
li a3,0x1e0c
sw v0,0x14(sp)
addiu a2,a2,0x59f0
lw v0,-0x7fd0(gp)
addiu a1,a1,0x4150
addiu v0,v0,-0x131c
jalr t9
_sw v0,0x10(sp)
lw a0,0x1004(s0)
lw gp,0x20(sp)
bne a0,zero,0x0008ac64
_lw v0,0x100c(s0)
lw v1,-0x7fd4(gp)
or a0,v0,zero
lw a2,-0x7fc4(gp)
addiu s0,s0,0x4
lw a1,-0x7fc4(gp)
li v0,0x1d6
addiu v1,v1,0x5cf4
lw t9,-0x7d44(gp)
li a3,0x1e0e
sw s0,0x1c(sp)
sw v1,0x18(sp)
addiu a2,a2,0x59f0
lw v1,-0x7fc4(gp)
addiu a1,a1,0x4150
sw v0,0x10(sp)
addiu v1,v1,-0x225c
jalr t9
_sw v1,0x14(sp)
or v0,zero,zero
lw ra,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x38
lw a3,-0x7fc4(gp)
li a2,0x1e0a
lw a1,-0x7fc4(gp)
lw a0,-0x7fc4(gp)
lw t9,-0x78e0(gp)
addiu a3,a3,0x5a04
addiu a1,a1,0x4150
jalr t9
_addiu a0,a0,0x419c
lw a3,-0x7fc4(gp)
li a2,0x1e09
lw a1,-0x7fc4(gp)
lw a0,-0x7fc4(gp)
lw t9,-0x78e0(gp)
addiu a3,a3,0x5a04
addiu a1,a1,0x4150
jalr t9
_addiu a0,a0,0x417c
(translation_unit "undefined4 MagickNegateImage(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return uVar1;\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);\n    return 0;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n  return uVar1;\n}\n\n" (function_definition "undefined4 MagickNegateImage(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return uVar1;\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);\n    return 0;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n  return uVar1;\n}" type_identifier (function_declarator "MagickNegateImage(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  undefined4 uVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return uVar1;\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);\n    return 0;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return uVar1;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return uVar1;\n  }" { (expression_statement "uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04)" identifier = (call_expression "(*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04)" (parenthesized_expression "(*(code *)PTR___assert_fail_0014f720)" ( (pointer_expression "*(code *)PTR___assert_fail_0014f720" * (cast_expression "(code *)PTR___assert_fail_0014f720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04)" ( (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x417c" identifier + number_literal) , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x4150" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x5a04" identifier + number_literal) )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);\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 *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);\n    return 0;\n  }" { (if_statement "if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }" if (parenthesized_expression "(*(int *)(&DAT_00001018 + param_1) == 0)" ( (binary_expression "*(int *)(&DAT_00001018 + param_1) == 0" (pointer_expression "*(int *)(&DAT_00001018 + param_1)" * (cast_expression "(int *)(&DAT_00001018 + param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00001018 + param_1)" ( (binary_expression "&DAT_00001018 + param_1" (pointer_expression "&DAT_00001018" & identifier) + identifier) )))) == number_literal) )) (compound_statement "{\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }" { (expression_statement "iVar2 = *(int *)(&DAT_00001004 + param_1);" (assignment_expression "iVar2 = *(int *)(&DAT_00001004 + param_1)" identifier = (pointer_expression "*(int *)(&DAT_00001004 + param_1)" * (cast_expression "(int *)(&DAT_00001004 + param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00001004 + param_1)" ( (binary_expression "&DAT_00001004 + param_1" (pointer_expression "&DAT_00001004" & identifier) + identifier) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x100c);" (assignment_expression "uVar1 = *(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      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }" else (compound_statement "{\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }" { (expression_statement "(*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);" (call_expression "(*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4)" (parenthesized_expression "(*(code *)PTR_LogMagickEvent_0014f488)" ( (pointer_expression "*(code *)PTR_LogMagickEvent_0014f488" * (cast_expression "(code *)PTR_LogMagickEvent_0014f488" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4)" ( number_literal , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x4150" identifier + number_literal) , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x59f0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + -0x131c" identifier + number_literal) , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) (expression_statement "iVar2 = *(int *)(&DAT_00001004 + param_1);" (assignment_expression "iVar2 = *(int *)(&DAT_00001004 + param_1)" identifier = (pointer_expression "*(int *)(&DAT_00001004 + param_1)" * (cast_expression "(int *)(&DAT_00001004 + param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00001004 + param_1)" ( (binary_expression "&DAT_00001004 + param_1" (pointer_expression "&DAT_00001004" & identifier) + identifier) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x100c);" (assignment_expression "uVar1 = *(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 (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }" { comment comment (expression_statement "uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);" (assignment_expression "uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1)" identifier = (call_expression "(*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1)" (parenthesized_expression "(*(code *)PTR_NegateImage_0014f880)" ( (pointer_expression "*(code *)PTR_NegateImage_0014f880" * (cast_expression "(code *)PTR_NegateImage_0014f880" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,param_2,uVar1)" ( identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "(*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);" (call_expression "(*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4)" (parenthesized_expression "(*(code *)PTR_ThrowMagickException_0014f2bc)" ( (pointer_expression "*(code *)PTR_ThrowMagickException_0014f2bc" * (cast_expression "(code *)PTR_ThrowMagickException_0014f2bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4)" ( identifier , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x4150" identifier + number_literal) , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x59f0" identifier + number_literal) , number_literal , number_literal , (binary_expression "PTR_s_t_char____NULL_0014f03c + -0x225c" identifier + number_literal) , (binary_expression "PTR_LAB_0014f02c + 0x5cf4" identifier + number_literal) , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04)" identifier = (call_expression "(*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04)" (parenthesized_expression "(*(code *)PTR___assert_fail_0014f720)" ( (pointer_expression "*(code *)PTR___assert_fail_0014f720" * (cast_expression "(code *)PTR___assert_fail_0014f720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04)" ( (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x419c" identifier + number_literal) , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x4150" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x5a04" identifier + number_literal) )))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* 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 MagickNegateImage(MagickWand *wand,MagickBooleanType gray)\n\n{\n  ExceptionInfo *pEVar1;\n  MagickBooleanType MVar2;\n  Image *pIVar3;\n  \n  if (wand == (MagickWand *)0x0) {\n    MVar2 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return MVar2;\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar3 = wand->images;\n      pEVar1 = wand->exception;\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,wand->name);\n      pIVar3 = wand->images;\n      pEVar1 = wand->exception;\n    }\n    if (pIVar3 != (Image *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      MVar2 = (*(code *)PTR_NegateImage_0014f880)(pIVar3,gray,pEVar1);\n      return MVar2;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (pEVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               wand->name);\n    return MagickFalse;\n  }\n  MVar2 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n  return MVar2;\n}\n\n" comment comment comment comment comment (function_definition "MagickBooleanType MagickNegateImage(MagickWand *wand,MagickBooleanType gray)\n\n{\n  ExceptionInfo *pEVar1;\n  MagickBooleanType MVar2;\n  Image *pIVar3;\n  \n  if (wand == (MagickWand *)0x0) {\n    MVar2 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return MVar2;\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar3 = wand->images;\n      pEVar1 = wand->exception;\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,wand->name);\n      pIVar3 = wand->images;\n      pEVar1 = wand->exception;\n    }\n    if (pIVar3 != (Image *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      MVar2 = (*(code *)PTR_NegateImage_0014f880)(pIVar3,gray,pEVar1);\n      return MVar2;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (pEVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               wand->name);\n    return MagickFalse;\n  }\n  MVar2 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n  return MVar2;\n}" type_identifier (function_declarator "MagickNegateImage(MagickWand *wand,MagickBooleanType gray)" identifier (parameter_list "(MagickWand *wand,MagickBooleanType gray)" ( (parameter_declaration "MagickWand *wand" type_identifier (pointer_declarator "*wand" * identifier)) , (parameter_declaration "MagickBooleanType gray" type_identifier identifier) ))) (compound_statement "{\n  ExceptionInfo *pEVar1;\n  MagickBooleanType MVar2;\n  Image *pIVar3;\n  \n  if (wand == (MagickWand *)0x0) {\n    MVar2 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return MVar2;\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar3 = wand->images;\n      pEVar1 = wand->exception;\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,wand->name);\n      pIVar3 = wand->images;\n      pEVar1 = wand->exception;\n    }\n    if (pIVar3 != (Image *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      MVar2 = (*(code *)PTR_NegateImage_0014f880)(pIVar3,gray,pEVar1);\n      return MVar2;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (pEVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               wand->name);\n    return MagickFalse;\n  }\n  MVar2 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n  return MVar2;\n}" { (declaration "ExceptionInfo *pEVar1;" type_identifier (pointer_declarator "*pEVar1" * identifier) ;) (declaration "MagickBooleanType MVar2;" type_identifier identifier ;) (declaration "Image *pIVar3;" type_identifier (pointer_declarator "*pIVar3" * identifier) ;) (if_statement "if (wand == (MagickWand *)0x0) {\n    MVar2 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return MVar2;\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    MVar2 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return MVar2;\n  }" { (expression_statement "MVar2 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);" (assignment_expression "MVar2 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04)" identifier = (call_expression "(*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04)" (parenthesized_expression "(*(code *)PTR___assert_fail_0014f720)" ( (pointer_expression "*(code *)PTR___assert_fail_0014f720" * (cast_expression "(code *)PTR___assert_fail_0014f720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04)" ( (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x417c" identifier + number_literal) , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x4150" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x5a04" identifier + number_literal) )))) ;) (return_statement "return MVar2;" return identifier ;) })) (if_statement "if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar3 = wand->images;\n      pEVar1 = wand->exception;\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,wand->name);\n      pIVar3 = wand->images;\n      pEVar1 = wand->exception;\n    }\n    if (pIVar3 != (Image *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      MVar2 = (*(code *)PTR_NegateImage_0014f880)(pIVar3,gray,pEVar1);\n      return MVar2;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (pEVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               wand->name);\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      pIVar3 = wand->images;\n      pEVar1 = wand->exception;\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,wand->name);\n      pIVar3 = wand->images;\n      pEVar1 = wand->exception;\n    }\n    if (pIVar3 != (Image *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      MVar2 = (*(code *)PTR_NegateImage_0014f880)(pIVar3,gray,pEVar1);\n      return MVar2;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (pEVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               wand->name);\n    return MagickFalse;\n  }" { (if_statement "if (wand->debug == MagickFalse) {\n      pIVar3 = wand->images;\n      pEVar1 = wand->exception;\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,wand->name);\n      pIVar3 = wand->images;\n      pEVar1 = 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      pIVar3 = wand->images;\n      pEVar1 = wand->exception;\n    }" { (expression_statement "pIVar3 = wand->images;" (assignment_expression "pIVar3 = wand->images" identifier = (field_expression "wand->images" identifier -> field_identifier)) ;) (expression_statement "pEVar1 = wand->exception;" (assignment_expression "pEVar1 = wand->exception" identifier = (field_expression "wand->exception" identifier -> field_identifier)) ;) }) (else_clause "else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,wand->name);\n      pIVar3 = wand->images;\n      pEVar1 = wand->exception;\n    }" else (compound_statement "{\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,wand->name);\n      pIVar3 = wand->images;\n      pEVar1 = wand->exception;\n    }" { (expression_statement "(*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,wand->name);" (call_expression "(*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,wand->name)" (parenthesized_expression "(*(code *)PTR_LogMagickEvent_0014f488)" ( (pointer_expression "*(code *)PTR_LogMagickEvent_0014f488" * (cast_expression "(code *)PTR_LogMagickEvent_0014f488" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,wand->name)" ( number_literal , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x4150" identifier + number_literal) , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x59f0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + -0x131c" identifier + number_literal) , (field_expression "wand->name" identifier -> field_identifier) ))) ;) (expression_statement "pIVar3 = wand->images;" (assignment_expression "pIVar3 = wand->images" identifier = (field_expression "wand->images" identifier -> field_identifier)) ;) (expression_statement "pEVar1 = wand->exception;" (assignment_expression "pEVar1 = wand->exception" identifier = (field_expression "wand->exception" identifier -> field_identifier)) ;) }))) (if_statement "if (pIVar3 != (Image *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      MVar2 = (*(code *)PTR_NegateImage_0014f880)(pIVar3,gray,pEVar1);\n      return MVar2;\n    }" if (parenthesized_expression "(pIVar3 != (Image *)0x0)" ( (binary_expression "pIVar3 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      MVar2 = (*(code *)PTR_NegateImage_0014f880)(pIVar3,gray,pEVar1);\n      return MVar2;\n    }" { comment comment (expression_statement "MVar2 = (*(code *)PTR_NegateImage_0014f880)(pIVar3,gray,pEVar1);" (assignment_expression "MVar2 = (*(code *)PTR_NegateImage_0014f880)(pIVar3,gray,pEVar1)" identifier = (call_expression "(*(code *)PTR_NegateImage_0014f880)(pIVar3,gray,pEVar1)" (parenthesized_expression "(*(code *)PTR_NegateImage_0014f880)" ( (pointer_expression "*(code *)PTR_NegateImage_0014f880" * (cast_expression "(code *)PTR_NegateImage_0014f880" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pIVar3,gray,pEVar1)" ( identifier , identifier , identifier )))) ;) (return_statement "return MVar2;" return identifier ;) })) (expression_statement "(*(code *)PTR_ThrowMagickException_0014f2bc)\n              (pEVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               wand->name);" (call_expression "(*(code *)PTR_ThrowMagickException_0014f2bc)\n              (pEVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               wand->name)" (parenthesized_expression "(*(code *)PTR_ThrowMagickException_0014f2bc)" ( (pointer_expression "*(code *)PTR_ThrowMagickException_0014f2bc" * (cast_expression "(code *)PTR_ThrowMagickException_0014f2bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pEVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               wand->name)" ( identifier , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x4150" identifier + number_literal) , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x59f0" identifier + number_literal) , number_literal , number_literal , (binary_expression "PTR_s_t_char____NULL_0014f03c + -0x225c" identifier + number_literal) , (binary_expression "PTR_LAB_0014f02c + 0x5cf4" identifier + number_literal) , (field_expression "wand->name" identifier -> field_identifier) ))) ;) (return_statement "return MagickFalse;" return identifier ;) })) (expression_statement "MVar2 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);" (assignment_expression "MVar2 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04)" identifier = (call_expression "(*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04)" (parenthesized_expression "(*(code *)PTR___assert_fail_0014f720)" ( (pointer_expression "*(code *)PTR___assert_fail_0014f720" * (cast_expression "(code *)PTR___assert_fail_0014f720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04)" ( (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x419c" identifier + number_literal) , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x4150" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x5a04" identifier + number_literal) )))) ;) (return_statement "return MVar2;" return identifier ;) })))
(translation_unit "undefined4 MagickNegateImage(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return uVar1;\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);\n    return 0;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n  return uVar1;\n}\n\n" (function_definition "undefined4 MagickNegateImage(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return uVar1;\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);\n    return 0;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n  return uVar1;\n}" type_identifier (function_declarator "MagickNegateImage(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  undefined4 uVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return uVar1;\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);\n    return 0;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return uVar1;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return uVar1;\n  }" { (expression_statement "uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04)" identifier = (call_expression "(*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04)" (parenthesized_expression "(*(code *)PTR___assert_fail_0014f720)" ( (pointer_expression "*(code *)PTR___assert_fail_0014f720" * (cast_expression "(code *)PTR___assert_fail_0014f720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04)" ( (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x417c" identifier + number_literal) , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x4150" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x5a04" identifier + number_literal) )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);\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 *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);\n    return 0;\n  }" { (if_statement "if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }" if (parenthesized_expression "(*(int *)(&DAT_00001018 + param_1) == 0)" ( (binary_expression "*(int *)(&DAT_00001018 + param_1) == 0" (pointer_expression "*(int *)(&DAT_00001018 + param_1)" * (cast_expression "(int *)(&DAT_00001018 + param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00001018 + param_1)" ( (binary_expression "&DAT_00001018 + param_1" (pointer_expression "&DAT_00001018" & identifier) + identifier) )))) == number_literal) )) (compound_statement "{\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }" { (expression_statement "iVar2 = *(int *)(&DAT_00001004 + param_1);" (assignment_expression "iVar2 = *(int *)(&DAT_00001004 + param_1)" identifier = (pointer_expression "*(int *)(&DAT_00001004 + param_1)" * (cast_expression "(int *)(&DAT_00001004 + param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00001004 + param_1)" ( (binary_expression "&DAT_00001004 + param_1" (pointer_expression "&DAT_00001004" & identifier) + identifier) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x100c);" (assignment_expression "uVar1 = *(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      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }" else (compound_statement "{\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }" { (expression_statement "(*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);" (call_expression "(*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4)" (parenthesized_expression "(*(code *)PTR_LogMagickEvent_0014f488)" ( (pointer_expression "*(code *)PTR_LogMagickEvent_0014f488" * (cast_expression "(code *)PTR_LogMagickEvent_0014f488" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4)" ( number_literal , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x4150" identifier + number_literal) , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x59f0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + -0x131c" identifier + number_literal) , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) (expression_statement "iVar2 = *(int *)(&DAT_00001004 + param_1);" (assignment_expression "iVar2 = *(int *)(&DAT_00001004 + param_1)" identifier = (pointer_expression "*(int *)(&DAT_00001004 + param_1)" * (cast_expression "(int *)(&DAT_00001004 + param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00001004 + param_1)" ( (binary_expression "&DAT_00001004 + param_1" (pointer_expression "&DAT_00001004" & identifier) + identifier) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x100c);" (assignment_expression "uVar1 = *(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 (iVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n                    \n                    \n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }" { (expression_statement "uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);" (assignment_expression "uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1)" identifier = (call_expression "(*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1)" (parenthesized_expression "(*(code *)PTR_NegateImage_0014f880)" ( (pointer_expression "*(code *)PTR_NegateImage_0014f880" * (cast_expression "(code *)PTR_NegateImage_0014f880" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,param_2,uVar1)" ( identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "(*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);" (call_expression "(*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4)" (parenthesized_expression "(*(code *)PTR_ThrowMagickException_0014f2bc)" ( (pointer_expression "*(code *)PTR_ThrowMagickException_0014f2bc" * (cast_expression "(code *)PTR_ThrowMagickException_0014f2bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4)" ( identifier , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x4150" identifier + number_literal) , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x59f0" identifier + number_literal) , number_literal , number_literal , (binary_expression "PTR_s_t_char____NULL_0014f03c + -0x225c" identifier + number_literal) , (binary_expression "PTR_LAB_0014f02c + 0x5cf4" identifier + number_literal) , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04)" identifier = (call_expression "(*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04)" (parenthesized_expression "(*(code *)PTR___assert_fail_0014f720)" ( (pointer_expression "*(code *)PTR___assert_fail_0014f720" * (cast_expression "(code *)PTR___assert_fail_0014f720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04)" ( (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x419c" identifier + number_literal) , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x4150" identifier + number_literal) , number_literal , (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x5a04" identifier + number_literal) )))) ;) (return_statement "return uVar1;" return identifier ;) })))
(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 ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (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 (pointer_expression & IDENT) + IDENT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) ))))) ;) (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 (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) ))))) ;) (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 (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 MagickNegateImage(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return uVar1;\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);\n    return 0;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "MagickNegateImage(int param_1,undefined4 param_2)" (identifier "MagickNegateImage") (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  undefined4 uVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return uVar1;\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);\n    return 0;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR___assert_fail_0014f720)\n                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04)" (parenthesized_expression "(*(code *)PTR___assert_fail_0014f720)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_0014f720" (* "*") (cast_expression "(code *)PTR___assert_fail_0014f720" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_0014f720"))) () ")")) (argument_list "(PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150\n                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04)" (( "(") (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x417c" (identifier "PTR_s_t_char____NULL_0014f03c") (+ "+") (number_literal "0x417c")) (, ",") (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x4150" (identifier "PTR_s_t_char____NULL_0014f03c") (+ "+") (number_literal "0x4150")) (, ",") (number_literal "0x1e09") (, ",") (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x5a04" (identifier "PTR_s_t_char____NULL_0014f03c") (+ "+") (number_literal "0x5a04")) () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);\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 *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    if (iVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }\n    (*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);\n    return 0;\n  }" ({ "{") (if_statement "if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }" (if "if") (parenthesized_expression "(*(int *)(&DAT_00001018 + param_1) == 0)" (( "(") (binary_expression "*(int *)(&DAT_00001018 + param_1) == 0" (pointer_expression "*(int *)(&DAT_00001018 + param_1)" (* "*") (cast_expression "(int *)(&DAT_00001018 + param_1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00001018 + param_1)" (( "(") (binary_expression "&DAT_00001018 + param_1" (pointer_expression "&DAT_00001018" (& "&") (identifier "DAT_00001018")) (+ "+") (identifier "param_1")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(&DAT_00001004 + param_1);" (assignment_expression "iVar2 = *(int *)(&DAT_00001004 + param_1)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(&DAT_00001004 + param_1)" (* "*") (cast_expression "(int *)(&DAT_00001004 + param_1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00001004 + param_1)" (( "(") (binary_expression "&DAT_00001004 + param_1" (pointer_expression "&DAT_00001004" (& "&") (identifier "DAT_00001004")) (+ "+") (identifier "param_1")) () ")"))))) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x100c);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x100c)" (identifier "uVar1") (= "=") (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      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }" (else "else") (compound_statement "{\n      (*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n      uVar1 = *(undefined4 *)(param_1 + 0x100c);\n    }" ({ "{") (expression_statement "(*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);" (call_expression "(*(code *)PTR_LogMagickEvent_0014f488)\n                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4)" (parenthesized_expression "(*(code *)PTR_LogMagickEvent_0014f488)" (( "(") (pointer_expression "*(code *)PTR_LogMagickEvent_0014f488" (* "*") (cast_expression "(code *)PTR_LogMagickEvent_0014f488" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_LogMagickEvent_0014f488"))) () ")")) (argument_list "(0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,\n                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4)" (( "(") (number_literal "0x40000") (, ",") (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x4150" (identifier "PTR_s_t_char____NULL_0014f03c") (+ "+") (number_literal "0x4150")) (, ",") (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x59f0" (identifier "PTR_s_t_char____NULL_0014f03c") (+ "+") (number_literal "0x59f0")) (, ",") (number_literal "0x1e0c") (, ",") (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + -0x131c" (identifier "PTR_s_the_image__define_format_option_d_0014f030") (+ "+") (number_literal "-0x131c")) (, ",") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(&DAT_00001004 + param_1);" (assignment_expression "iVar2 = *(int *)(&DAT_00001004 + param_1)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(&DAT_00001004 + param_1)" (* "*") (cast_expression "(int *)(&DAT_00001004 + param_1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00001004 + param_1)" (( "(") (binary_expression "&DAT_00001004 + param_1" (pointer_expression "&DAT_00001004" (& "&") (identifier "DAT_00001004")) (+ "+") (identifier "param_1")) () ")"))))) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x100c);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x100c)" (identifier "uVar1") (= "=") (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 (iVar2 != 0) {\n                    \n                    \n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n                    \n      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);\n      return uVar1;\n    }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);" (assignment_expression "uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1)" (parenthesized_expression "(*(code *)PTR_NegateImage_0014f880)" (( "(") (pointer_expression "*(code *)PTR_NegateImage_0014f880" (* "*") (cast_expression "(code *)PTR_NegateImage_0014f880" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_NegateImage_0014f880"))) () ")")) (argument_list "(iVar2,param_2,uVar1)" (( "(") (identifier "iVar2") (, ",") (identifier "param_2") (, ",") (identifier "uVar1") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4);" (call_expression "(*(code *)PTR_ThrowMagickException_0014f2bc)\n              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4)" (parenthesized_expression "(*(code *)PTR_ThrowMagickException_0014f2bc)" (( "(") (pointer_expression "*(code *)PTR_ThrowMagickException_0014f2bc" (* "*") (cast_expression "(code *)PTR_ThrowMagickException_0014f2bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ThrowMagickException_0014f2bc"))) () ")")) (argument_list "(uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,\n               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,\n               param_1 + 4)" (( "(") (identifier "uVar1") (, ",") (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x4150" (identifier "PTR_s_t_char____NULL_0014f03c") (+ "+") (number_literal "0x4150")) (, ",") (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x59f0" (identifier "PTR_s_t_char____NULL_0014f03c") (+ "+") (number_literal "0x59f0")) (, ",") (number_literal "0x1e0e") (, ",") (number_literal "0x1d6") (, ",") (binary_expression "PTR_s_t_char____NULL_0014f03c + -0x225c" (identifier "PTR_s_t_char____NULL_0014f03c") (+ "+") (number_literal "-0x225c")) (, ",") (binary_expression "PTR_LAB_0014f02c + 0x5cf4" (identifier "PTR_LAB_0014f02c") (+ "+") (number_literal "0x5cf4")) (, ",") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR___assert_fail_0014f720)\n                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04)" (parenthesized_expression "(*(code *)PTR___assert_fail_0014f720)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_0014f720" (* "*") (cast_expression "(code *)PTR___assert_fail_0014f720" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_0014f720"))) () ")")) (argument_list "(PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,\n                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04)" (( "(") (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x419c" (identifier "PTR_s_t_char____NULL_0014f03c") (+ "+") (number_literal "0x419c")) (, ",") (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x4150" (identifier "PTR_s_t_char____NULL_0014f03c") (+ "+") (number_literal "0x4150")) (, ",") (number_literal "0x1e0a") (, ",") (binary_expression "PTR_s_t_char____NULL_0014f03c + 0x5a04" (identifier "PTR_s_t_char____NULL_0014f03c") (+ "+") (number_literal "0x5a04")) () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "PixelChannel": Some values do not have unique names */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */

type_1 function_1(type_2 *var_1,type_1 gray)

{
  type_3 *pEVar1;
  type_1 MVar2;
  type_4 *var_5;
  
  if (var_1 == (type_2 *)0x0) {
    MVar2 = (*(type_5 *)PTR___assert_fail_0014f720)
                      (var_2 + 0x417c,var_2 + 0x4150
                       ,0x1e09,var_2 + 0x5a04);
    return MVar2;
  }
  if (var_1->signature == 0xabacadab) {
    if (var_1->debug == var_3) {
      var_5 = var_1->images;
      pEVar1 = var_1->exception;
    }
    else {
      (*(type_5 *)PTR_LogMagickEvent_0014f488)
                (0x40000,var_2 + 0x4150,
                 var_2 + 0x59f0,0x1e0c,
                 var_4 + -0x131c,var_1->name);
      var_5 = var_1->images;
      pEVar1 = var_1->exception;
    }
    if (var_5 != (type_4 *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      MVar2 = (*(type_5 *)PTR_NegateImage_0014f880)(var_5,gray,pEVar1);
      return MVar2;
    }
    (*(type_5 *)PTR_ThrowMagickException_0014f2bc)
              (pEVar1,var_2 + 0x4150,var_2 + 0x59f0,
               0x1e0e,0x1d6,var_2 + -0x225c,var_6 + 0x5cf4,
               var_1->name);
    return var_3;
  }
  MVar2 = (*(type_5 *)PTR___assert_fail_0014f720)
                    (var_2 + 0x419c,var_2 + 0x4150,
                     0x1e0a,var_2 + 0x5a04);
  return MVar2;
}


(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)) (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))) (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: (pointer_expression argument: (identifier)) right: (identifier))))) 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: (pointer_expression argument: (identifier)) right: (identifier))))))) (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal))))) (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: (pointer_expression argument: (identifier)) right: (identifier))))))) (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier))))) (return_statement (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal))))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

undefined4 MASKED(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  int iVar2;
  
  if (param_1 == 0) {
    uVar1 = (*(code *)PTR___assert_fail_0014f720)
                      (PTR_s_t_char____NULL_0014f03c + 0x417c,PTR_s_t_char____NULL_0014f03c + 0x4150
                       ,0x1e09,PTR_s_t_char____NULL_0014f03c + 0x5a04);
    return uVar1;
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (*(int *)(&DAT_00001018 + param_1) == 0) {
      iVar2 = *(int *)(&DAT_00001004 + param_1);
      uVar1 = *(undefined4 *)(param_1 + 0x100c);
    }
    else {
      (*(code *)PTR_LogMagickEvent_0014f488)
                (0x40000,PTR_s_t_char____NULL_0014f03c + 0x4150,
                 PTR_s_t_char____NULL_0014f03c + 0x59f0,0x1e0c,
                 PTR_s_the_image__define_format_option_d_0014f030 + -0x131c,param_1 + 4);
      iVar2 = *(int *)(&DAT_00001004 + param_1);
      uVar1 = *(undefined4 *)(param_1 + 0x100c);
    }
    if (iVar2 != 0) {
                    /* WARNING: Could not recover jumptable at 0x0008ac7c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar1 = (*(code *)PTR_NegateImage_0014f880)(iVar2,param_2,uVar1);
      return uVar1;
    }
    (*(code *)PTR_ThrowMagickException_0014f2bc)
              (uVar1,PTR_s_t_char____NULL_0014f03c + 0x4150,PTR_s_t_char____NULL_0014f03c + 0x59f0,
               0x1e0e,0x1d6,PTR_s_t_char____NULL_0014f03c + -0x225c,PTR_LAB_0014f02c + 0x5cf4,
               param_1 + 4);
    return 0;
  }
  uVar1 = (*(code *)PTR___assert_fail_0014f720)
                    (PTR_s_t_char____NULL_0014f03c + 0x419c,PTR_s_t_char____NULL_0014f03c + 0x4150,
                     0x1e0a,PTR_s_t_char____NULL_0014f03c + 0x5a04);
  return uVar1;
}

