
/* 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 MagickEvaluateImage(MagickWand *wand,MagickEvaluateOperator op,double value)

{
  MagickBooleanType MVar1;
  Image *pIVar2;
  undefined4 in_a2;
  undefined4 in_a3;
  
  if (wand == (MagickWand *)0x0) {
    MVar1 = (*(code *)PTR___assert_fail_00178728)
                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,
                       PTR_s_oint_00178034 + 0xc14);
    return MVar1;
  }
  if (wand->signature == 0xabacadab) {
    if (wand->debug == MagickFalse) {
      pIVar2 = wand->images;
    }
    else {
      (*(code *)PTR_LogMagickEvent_00178490)
                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,
                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);
      pIVar2 = wand->images;
    }
    if (pIVar2 == (Image *)0x0) {
      (*(code *)PTR_ThrowMagickException_001782c4)
                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf3,
                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);
      MVar1 = MagickFalse;
    }
    else {
      MVar1 = (*(code *)PTR_EvaluateImage_00178320)(pIVar2,op,in_a2,in_a3,wand->exception);
    }
    return MVar1;
  }
  MVar1 = (*(code *)PTR___assert_fail_00178728)
                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,
                     PTR_s_oint_00178034 + 0xc14);
  return MVar1;
}



undefined4 MagickEvaluateImage(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined4 uVar1;
  int iVar2;
  
  if (param_1 == 0) {
    uVar1 = (*(code *)PTR___assert_fail_00178728)
                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,
                       PTR_s_oint_00178034 + 0xc14);
    return uVar1;
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (*(int *)(&DAT_00001018 + param_1) == 0) {
      iVar2 = *(int *)(&DAT_00001004 + param_1);
    }
    else {
      (*(code *)PTR_LogMagickEvent_00178490)
                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,
                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);
      iVar2 = *(int *)(&DAT_00001004 + param_1);
    }
    if (iVar2 == 0) {
      (*(code *)PTR_ThrowMagickException_001782c4)
                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,
                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,
                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);
      uVar1 = 0;
    }
    else {
      uVar1 = (*(code *)PTR_EvaluateImage_00178320)
                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));
    }
    return uVar1;
  }
  uVar1 = (*(code *)PTR___assert_fail_00178728)
                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,
                     PTR_s_oint_00178034 + 0xc14);
  return uVar1;
}


lui gp,0xe
addiu gp,gp,0x7d20
addu gp,gp,t9
addiu sp,sp,-0x40
sw ra,0x34(sp)
sw s1,0x30(sp)
sw s0,0x2c(sp)
sdc1 f20,0x38(sp)
sw gp,0x20(sp)
mtc1 a3,f20
beq a0,zero,0x00098378
_mthc1 a2,f20
or s0,a0,zero
lw v1,0x101c(a0)
lui v0,0xabac
ori v0,v0,0xadab
bne v1,v0,0x000983a0
_or s1,a1,zero
lw v0,0x1018(a0)
bne v0,zero,0x000983c8
_addiu v0,a0,0x4
lw a0,0x1004(s0)
beq a0,zero,0x00098408
_mfc1 a3,f20
lw v0,0x100c(s0)
sw v0,0x10(sp)
mfhc1 a2,f20
or a1,s1,zero
lw t9,-0x7ce0(gp)
jalr t9
_nop
lw gp,0x20(sp)
lw ra,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
ldc1 f20,0x38(sp)
jr ra
_addiu sp,sp,0x40
lw a3,-0x7fcc(gp)
addiu a3,a3,0xc14
li a2,0xcee
lw a1,-0x7fcc(gp)
addiu a1,a1,-0x1ea0
lw a0,-0x7fcc(gp)
addiu a0,a0,-0x1e74
lw t9,-0x78d8(gp)
jalr t9
_nop
lw a3,-0x7fcc(gp)
addiu a3,a3,0xc14
li a2,0xcef
lw a1,-0x7fcc(gp)
addiu a1,a1,-0x1ea0
lw a0,-0x7fcc(gp)
addiu a0,a0,-0x1e54
lw t9,-0x78d8(gp)
jalr t9
_nop
sw v0,0x14(sp)
lw v0,-0x7fc8(gp)
addiu v0,v0,-0x7318
sw v0,0x10(sp)
li a3,0xcf1
lw a2,-0x7fcc(gp)
addiu a2,a2,0xc00
lw a1,-0x7fcc(gp)
addiu a1,a1,-0x1ea0
lui a0,0x4
lw t9,-0x7b70(gp)
jalr t9
_nop
lw gp,0x20(sp)
b 0x00098338
_lw a0,0x1004(s0)
lw a0,0x100c(s0)
addiu s0,s0,0x4
sw s0,0x1c(sp)
lw v0,-0x7fd0(gp)
addiu v0,v0,-0x35c
sw v0,0x18(sp)
lw v0,-0x7fd0(gp)
addiu v0,v0,0x7db4
sw v0,0x14(sp)
li v0,0x1d6
sw v0,0x10(sp)
li a3,0xcf3
lw a2,-0x7fcc(gp)
addiu a2,a2,0xc00
lw a1,-0x7fcc(gp)
addiu a1,a1,-0x1ea0
lw t9,-0x7d3c(gp)
jalr t9
_nop
lw gp,0x20(sp)
b 0x00098360
_or v0,zero,zero
(translation_unit "undefined4 MagickEvaluateImage(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\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    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }\n    return uVar1;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14);\n  return uVar1;\n}\n\n" (function_definition "undefined4 MagickEvaluateImage(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\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    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }\n    return uVar1;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14);\n  return uVar1;\n}" type_identifier (function_declarator "MagickEvaluateImage(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\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    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }\n    return uVar1;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14);\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_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\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_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\n    return uVar1;\n  }" { (expression_statement "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14)" (parenthesized_expression "(*(code *)PTR___assert_fail_00178728)" ( (pointer_expression "*(code *)PTR___assert_fail_00178728" * (cast_expression "(code *)PTR___assert_fail_00178728" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14)" ( (binary_expression "PTR_s_oint_00178034 + -0x1e74" identifier + number_literal) , (binary_expression "PTR_s_oint_00178034 + -0x1ea0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_oint_00178034 + 0xc14" 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    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }\n    return uVar1;\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    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }\n    return uVar1;\n  }" { (if_statement "if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\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    }" { (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) ))))) ;) }) (else_clause "else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }" else (compound_statement "{\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }" { (expression_statement "(*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);" (call_expression "(*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4)" (parenthesized_expression "(*(code *)PTR_LogMagickEvent_00178490)" ( (pointer_expression "*(code *)PTR_LogMagickEvent_00178490" * (cast_expression "(code *)PTR_LogMagickEvent_00178490" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4)" ( number_literal , (binary_expression "PTR_s_oint_00178034 + -0x1ea0" identifier + number_literal) , (binary_expression "PTR_s_oint_00178034 + 0xc00" identifier + number_literal) , number_literal , (binary_expression "PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318" 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) ))))) ;) }))) (if_statement "if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }" { (expression_statement "(*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);" (call_expression "(*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4)" (parenthesized_expression "(*(code *)PTR_ThrowMagickException_001782c4)" ( (pointer_expression "*(code *)PTR_ThrowMagickException_001782c4" * (cast_expression "(code *)PTR_ThrowMagickException_001782c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4)" ( (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) )))) , (binary_expression "PTR_s_oint_00178034 + -0x1ea0" identifier + number_literal) , (binary_expression "PTR_s_oint_00178034 + 0xc00" identifier + number_literal) , number_literal , number_literal , (binary_expression "PTR_s_ision_00178030 + 0x7db4" identifier + number_literal) , (binary_expression "PTR_s_ision_00178030 + -0x35c" identifier + number_literal) , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }" else (compound_statement "{\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }" { (expression_statement "uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));" (assignment_expression "uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c))" identifier = (call_expression "(*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c))" (parenthesized_expression "(*(code *)PTR_EvaluateImage_00178320)" ( (pointer_expression "*(code *)PTR_EvaluateImage_00178320" * (cast_expression "(code *)PTR_EvaluateImage_00178320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c))" ( identifier , identifier , identifier , 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) )))) )))) ;) }))) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14)" (parenthesized_expression "(*(code *)PTR___assert_fail_00178728)" ( (pointer_expression "*(code *)PTR___assert_fail_00178728" * (cast_expression "(code *)PTR___assert_fail_00178728" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14)" ( (binary_expression "PTR_s_oint_00178034 + -0x1e54" identifier + number_literal) , (binary_expression "PTR_s_oint_00178034 + -0x1ea0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_oint_00178034 + 0xc14" 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 MagickEvaluateImage(MagickWand *wand,MagickEvaluateOperator op,double value)\n\n{\n  MagickBooleanType MVar1;\n  Image *pIVar2;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  \n  if (wand == (MagickWand *)0x0) {\n    MVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\n    return MVar1;\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar2 = wand->images;\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n      pIVar2 = wand->images;\n    }\n    if (pIVar2 == (Image *)0x0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf3,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);\n      MVar1 = MagickFalse;\n    }\n    else {\n      MVar1 = (*(code *)PTR_EvaluateImage_00178320)(pIVar2,op,in_a2,in_a3,wand->exception);\n    }\n    return MVar1;\n  }\n  MVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14);\n  return MVar1;\n}\n\n" comment comment comment comment comment (function_definition "MagickBooleanType MagickEvaluateImage(MagickWand *wand,MagickEvaluateOperator op,double value)\n\n{\n  MagickBooleanType MVar1;\n  Image *pIVar2;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  \n  if (wand == (MagickWand *)0x0) {\n    MVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\n    return MVar1;\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar2 = wand->images;\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n      pIVar2 = wand->images;\n    }\n    if (pIVar2 == (Image *)0x0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf3,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);\n      MVar1 = MagickFalse;\n    }\n    else {\n      MVar1 = (*(code *)PTR_EvaluateImage_00178320)(pIVar2,op,in_a2,in_a3,wand->exception);\n    }\n    return MVar1;\n  }\n  MVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14);\n  return MVar1;\n}" type_identifier (function_declarator "MagickEvaluateImage(MagickWand *wand,MagickEvaluateOperator op,double value)" identifier (parameter_list "(MagickWand *wand,MagickEvaluateOperator op,double value)" ( (parameter_declaration "MagickWand *wand" type_identifier (pointer_declarator "*wand" * identifier)) , (parameter_declaration "MagickEvaluateOperator op" type_identifier identifier) , (parameter_declaration "double value" primitive_type identifier) ))) (compound_statement "{\n  MagickBooleanType MVar1;\n  Image *pIVar2;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  \n  if (wand == (MagickWand *)0x0) {\n    MVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\n    return MVar1;\n  }\n  if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar2 = wand->images;\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n      pIVar2 = wand->images;\n    }\n    if (pIVar2 == (Image *)0x0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf3,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);\n      MVar1 = MagickFalse;\n    }\n    else {\n      MVar1 = (*(code *)PTR_EvaluateImage_00178320)(pIVar2,op,in_a2,in_a3,wand->exception);\n    }\n    return MVar1;\n  }\n  MVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14);\n  return MVar1;\n}" { (declaration "MagickBooleanType MVar1;" type_identifier identifier ;) (declaration "Image *pIVar2;" type_identifier (pointer_declarator "*pIVar2" * identifier) ;) (declaration "undefined4 in_a2;" type_identifier identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (if_statement "if (wand == (MagickWand *)0x0) {\n    MVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\n    return MVar1;\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    MVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\n    return MVar1;\n  }" { (expression_statement "MVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);" (assignment_expression "MVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14)" (parenthesized_expression "(*(code *)PTR___assert_fail_00178728)" ( (pointer_expression "*(code *)PTR___assert_fail_00178728" * (cast_expression "(code *)PTR___assert_fail_00178728" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14)" ( (binary_expression "PTR_s_oint_00178034 + -0x1e74" identifier + number_literal) , (binary_expression "PTR_s_oint_00178034 + -0x1ea0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_oint_00178034 + 0xc14" identifier + number_literal) )))) ;) (return_statement "return MVar1;" return identifier ;) })) (if_statement "if (wand->signature == 0xabacadab) {\n    if (wand->debug == MagickFalse) {\n      pIVar2 = wand->images;\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n      pIVar2 = wand->images;\n    }\n    if (pIVar2 == (Image *)0x0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf3,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);\n      MVar1 = MagickFalse;\n    }\n    else {\n      MVar1 = (*(code *)PTR_EvaluateImage_00178320)(pIVar2,op,in_a2,in_a3,wand->exception);\n    }\n    return MVar1;\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      pIVar2 = wand->images;\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n      pIVar2 = wand->images;\n    }\n    if (pIVar2 == (Image *)0x0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf3,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);\n      MVar1 = MagickFalse;\n    }\n    else {\n      MVar1 = (*(code *)PTR_EvaluateImage_00178320)(pIVar2,op,in_a2,in_a3,wand->exception);\n    }\n    return MVar1;\n  }" { (if_statement "if (wand->debug == MagickFalse) {\n      pIVar2 = wand->images;\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n      pIVar2 = wand->images;\n    }" if (parenthesized_expression "(wand->debug == MagickFalse)" ( (binary_expression "wand->debug == MagickFalse" (field_expression "wand->debug" identifier -> field_identifier) == identifier) )) (compound_statement "{\n      pIVar2 = wand->images;\n    }" { (expression_statement "pIVar2 = wand->images;" (assignment_expression "pIVar2 = wand->images" identifier = (field_expression "wand->images" identifier -> field_identifier)) ;) }) (else_clause "else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n      pIVar2 = wand->images;\n    }" else (compound_statement "{\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n      pIVar2 = wand->images;\n    }" { (expression_statement "(*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);" (call_expression "(*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name)" (parenthesized_expression "(*(code *)PTR_LogMagickEvent_00178490)" ( (pointer_expression "*(code *)PTR_LogMagickEvent_00178490" * (cast_expression "(code *)PTR_LogMagickEvent_00178490" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name)" ( number_literal , (binary_expression "PTR_s_oint_00178034 + -0x1ea0" identifier + number_literal) , (binary_expression "PTR_s_oint_00178034 + 0xc00" identifier + number_literal) , number_literal , (binary_expression "PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318" identifier + number_literal) , (field_expression "wand->name" identifier -> field_identifier) ))) ;) (expression_statement "pIVar2 = wand->images;" (assignment_expression "pIVar2 = wand->images" identifier = (field_expression "wand->images" identifier -> field_identifier)) ;) }))) (if_statement "if (pIVar2 == (Image *)0x0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf3,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);\n      MVar1 = MagickFalse;\n    }\n    else {\n      MVar1 = (*(code *)PTR_EvaluateImage_00178320)(pIVar2,op,in_a2,in_a3,wand->exception);\n    }" if (parenthesized_expression "(pIVar2 == (Image *)0x0)" ( (binary_expression "pIVar2 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf3,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);\n      MVar1 = MagickFalse;\n    }" { (expression_statement "(*(code *)PTR_ThrowMagickException_001782c4)\n                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf3,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);" (call_expression "(*(code *)PTR_ThrowMagickException_001782c4)\n                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf3,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name)" (parenthesized_expression "(*(code *)PTR_ThrowMagickException_001782c4)" ( (pointer_expression "*(code *)PTR_ThrowMagickException_001782c4" * (cast_expression "(code *)PTR_ThrowMagickException_001782c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf3,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name)" ( (field_expression "wand->exception" identifier -> field_identifier) , (binary_expression "PTR_s_oint_00178034 + -0x1ea0" identifier + number_literal) , (binary_expression "PTR_s_oint_00178034 + 0xc00" identifier + number_literal) , number_literal , number_literal , (binary_expression "PTR_s_ision_00178030 + 0x7db4" identifier + number_literal) , (binary_expression "PTR_s_ision_00178030 + -0x35c" identifier + number_literal) , (field_expression "wand->name" identifier -> field_identifier) ))) ;) (expression_statement "MVar1 = MagickFalse;" (assignment_expression "MVar1 = MagickFalse" identifier = identifier) ;) }) (else_clause "else {\n      MVar1 = (*(code *)PTR_EvaluateImage_00178320)(pIVar2,op,in_a2,in_a3,wand->exception);\n    }" else (compound_statement "{\n      MVar1 = (*(code *)PTR_EvaluateImage_00178320)(pIVar2,op,in_a2,in_a3,wand->exception);\n    }" { (expression_statement "MVar1 = (*(code *)PTR_EvaluateImage_00178320)(pIVar2,op,in_a2,in_a3,wand->exception);" (assignment_expression "MVar1 = (*(code *)PTR_EvaluateImage_00178320)(pIVar2,op,in_a2,in_a3,wand->exception)" identifier = (call_expression "(*(code *)PTR_EvaluateImage_00178320)(pIVar2,op,in_a2,in_a3,wand->exception)" (parenthesized_expression "(*(code *)PTR_EvaluateImage_00178320)" ( (pointer_expression "*(code *)PTR_EvaluateImage_00178320" * (cast_expression "(code *)PTR_EvaluateImage_00178320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pIVar2,op,in_a2,in_a3,wand->exception)" ( identifier , identifier , identifier , identifier , (field_expression "wand->exception" identifier -> field_identifier) )))) ;) }))) (return_statement "return MVar1;" return identifier ;) })) (expression_statement "MVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14);" (assignment_expression "MVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14)" (parenthesized_expression "(*(code *)PTR___assert_fail_00178728)" ( (pointer_expression "*(code *)PTR___assert_fail_00178728" * (cast_expression "(code *)PTR___assert_fail_00178728" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14)" ( (binary_expression "PTR_s_oint_00178034 + -0x1e54" identifier + number_literal) , (binary_expression "PTR_s_oint_00178034 + -0x1ea0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_oint_00178034 + 0xc14" identifier + number_literal) )))) ;) (return_statement "return MVar1;" return identifier ;) })))
(translation_unit "undefined4 MagickEvaluateImage(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\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    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }\n    return uVar1;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14);\n  return uVar1;\n}\n\n" (function_definition "undefined4 MagickEvaluateImage(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\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    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }\n    return uVar1;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14);\n  return uVar1;\n}" type_identifier (function_declarator "MagickEvaluateImage(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\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    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }\n    return uVar1;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14);\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_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\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_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\n    return uVar1;\n  }" { (expression_statement "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14)" (parenthesized_expression "(*(code *)PTR___assert_fail_00178728)" ( (pointer_expression "*(code *)PTR___assert_fail_00178728" * (cast_expression "(code *)PTR___assert_fail_00178728" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14)" ( (binary_expression "PTR_s_oint_00178034 + -0x1e74" identifier + number_literal) , (binary_expression "PTR_s_oint_00178034 + -0x1ea0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_oint_00178034 + 0xc14" 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    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }\n    return uVar1;\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    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }\n    return uVar1;\n  }" { (if_statement "if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\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    }" { (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) ))))) ;) }) (else_clause "else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }" else (compound_statement "{\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }" { (expression_statement "(*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);" (call_expression "(*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4)" (parenthesized_expression "(*(code *)PTR_LogMagickEvent_00178490)" ( (pointer_expression "*(code *)PTR_LogMagickEvent_00178490" * (cast_expression "(code *)PTR_LogMagickEvent_00178490" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4)" ( number_literal , (binary_expression "PTR_s_oint_00178034 + -0x1ea0" identifier + number_literal) , (binary_expression "PTR_s_oint_00178034 + 0xc00" identifier + number_literal) , number_literal , (binary_expression "PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318" 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) ))))) ;) }))) (if_statement "if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }" { (expression_statement "(*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);" (call_expression "(*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4)" (parenthesized_expression "(*(code *)PTR_ThrowMagickException_001782c4)" ( (pointer_expression "*(code *)PTR_ThrowMagickException_001782c4" * (cast_expression "(code *)PTR_ThrowMagickException_001782c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4)" ( (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) )))) , (binary_expression "PTR_s_oint_00178034 + -0x1ea0" identifier + number_literal) , (binary_expression "PTR_s_oint_00178034 + 0xc00" identifier + number_literal) , number_literal , number_literal , (binary_expression "PTR_s_ision_00178030 + 0x7db4" identifier + number_literal) , (binary_expression "PTR_s_ision_00178030 + -0x35c" identifier + number_literal) , (binary_expression "param_1 + 4" identifier + number_literal) ))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }" else (compound_statement "{\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }" { (expression_statement "uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));" (assignment_expression "uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c))" identifier = (call_expression "(*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c))" (parenthesized_expression "(*(code *)PTR_EvaluateImage_00178320)" ( (pointer_expression "*(code *)PTR_EvaluateImage_00178320" * (cast_expression "(code *)PTR_EvaluateImage_00178320" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c))" ( identifier , identifier , identifier , 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) )))) )))) ;) }))) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14)" (parenthesized_expression "(*(code *)PTR___assert_fail_00178728)" ( (pointer_expression "*(code *)PTR___assert_fail_00178728" * (cast_expression "(code *)PTR___assert_fail_00178728" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14)" ( (binary_expression "PTR_s_oint_00178034 + -0x1e54" identifier + number_literal) , (binary_expression "PTR_s_oint_00178034 + -0x1ea0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_oint_00178034 + 0xc14" 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) , (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) ))))) ;) }) (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) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (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 , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) }))) (return_statement return IDENT ;) })) (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 MagickEvaluateImage(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\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    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }\n    return uVar1;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14);\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "MagickEvaluateImage(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "MagickEvaluateImage") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\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    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }\n    return uVar1;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14);\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_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\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_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14)" (parenthesized_expression "(*(code *)PTR___assert_fail_00178728)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_00178728" (* "*") (cast_expression "(code *)PTR___assert_fail_00178728" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_00178728"))) () ")")) (argument_list "(PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,\n                       PTR_s_oint_00178034 + 0xc14)" (( "(") (binary_expression "PTR_s_oint_00178034 + -0x1e74" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "-0x1e74")) (, ",") (binary_expression "PTR_s_oint_00178034 + -0x1ea0" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "-0x1ea0")) (, ",") (number_literal "0xcee") (, ",") (binary_expression "PTR_s_oint_00178034 + 0xc14" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "0xc14")) () ")")))) (; ";")) (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    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }\n    return uVar1;\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    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }\n    return uVar1;\n  }" ({ "{") (if_statement "if (*(int *)(&DAT_00001018 + param_1) == 0) {\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }\n    else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\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    }" ({ "{") (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")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }" (else "else") (compound_statement "{\n      (*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n      iVar2 = *(int *)(&DAT_00001004 + param_1);\n    }" ({ "{") (expression_statement "(*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);" (call_expression "(*(code *)PTR_LogMagickEvent_00178490)\n                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4)" (parenthesized_expression "(*(code *)PTR_LogMagickEvent_00178490)" (( "(") (pointer_expression "*(code *)PTR_LogMagickEvent_00178490" (* "*") (cast_expression "(code *)PTR_LogMagickEvent_00178490" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_LogMagickEvent_00178490"))) () ")")) (argument_list "(0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4)" (( "(") (number_literal "0x40000") (, ",") (binary_expression "PTR_s_oint_00178034 + -0x1ea0" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "-0x1ea0")) (, ",") (binary_expression "PTR_s_oint_00178034 + 0xc00" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "0xc00")) (, ",") (number_literal "0xcf1") (, ",") (binary_expression "PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318" (identifier "PTR_fde_table_entry_0015fffc_data_loc_00178038") (+ "+") (number_literal "-0x7318")) (, ",") (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")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar2 == 0) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }" ({ "{") (expression_statement "(*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);" (call_expression "(*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4)" (parenthesized_expression "(*(code *)PTR_ThrowMagickException_001782c4)" (( "(") (pointer_expression "*(code *)PTR_ThrowMagickException_001782c4" (* "*") (cast_expression "(code *)PTR_ThrowMagickException_001782c4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ThrowMagickException_001782c4"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4)" (( "(") (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")) () ")")))) (, ",") (binary_expression "PTR_s_oint_00178034 + -0x1ea0" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "-0x1ea0")) (, ",") (binary_expression "PTR_s_oint_00178034 + 0xc00" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "0xc00")) (, ",") (number_literal "0xcf3") (, ",") (number_literal "0x1d6") (, ",") (binary_expression "PTR_s_ision_00178030 + 0x7db4" (identifier "PTR_s_ision_00178030") (+ "+") (number_literal "0x7db4")) (, ",") (binary_expression "PTR_s_ision_00178030 + -0x35c" (identifier "PTR_s_ision_00178030") (+ "+") (number_literal "-0x35c")) (, ",") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }" (else "else") (compound_statement "{\n      uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));\n    }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));" (assignment_expression "uVar1 = (*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c))" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_EvaluateImage_00178320)\n                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c))" (parenthesized_expression "(*(code *)PTR_EvaluateImage_00178320)" (( "(") (pointer_expression "*(code *)PTR_EvaluateImage_00178320" (* "*") (cast_expression "(code *)PTR_EvaluateImage_00178320" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_EvaluateImage_00178320"))) () ")")) (argument_list "(iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c))" (( "(") (identifier "iVar2") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (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")) () ")")))) () ")")))) (; ";")) (} "}")))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14)" (parenthesized_expression "(*(code *)PTR___assert_fail_00178728)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_00178728" (* "*") (cast_expression "(code *)PTR___assert_fail_00178728" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_00178728"))) () ")")) (argument_list "(PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,\n                     PTR_s_oint_00178034 + 0xc14)" (( "(") (binary_expression "PTR_s_oint_00178034 + -0x1e54" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "-0x1e54")) (, ",") (binary_expression "PTR_s_oint_00178034 + -0x1ea0" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "-0x1ea0")) (, ",") (number_literal "0xcef") (, ",") (binary_expression "PTR_s_oint_00178034 + 0xc14" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "0xc14")) () ")")))) (; ";")) (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_3 op,double value)

{
  type_1 MVar1;
  type_4 *var_5;
  type_5 in_a2;
  type_5 in_a3;
  
  if (var_1 == (type_2 *)0x0) {
    MVar1 = (*(type_6 *)PTR___assert_fail_00178728)
                      (var_2 + -0x1e74,var_2 + -0x1ea0,0xcee,
                       var_2 + 0xc14);
    return MVar1;
  }
  if (var_1->signature == 0xabacadab) {
    if (var_1->debug == var_3) {
      var_5 = var_1->images;
    }
    else {
      (*(type_6 *)PTR_LogMagickEvent_00178490)
                (0x40000,var_2 + -0x1ea0,var_2 + 0xc00,0xcf1,
                 var_4 + -0x7318,var_1->name);
      var_5 = var_1->images;
    }
    if (var_5 == (type_4 *)0x0) {
      (*(type_6 *)PTR_ThrowMagickException_001782c4)
                (var_1->exception,var_2 + -0x1ea0,var_2 + 0xc00,0xcf3,
                 0x1d6,var_6 + 0x7db4,var_6 + -0x35c,var_1->name);
      MVar1 = var_3;
    }
    else {
      MVar1 = (*(type_6 *)PTR_EvaluateImage_00178320)(var_5,op,in_a2,in_a3,var_1->exception);
    }
    return MVar1;
  }
  MVar1 = (*(type_6 *)PTR___assert_fail_00178728)
                    (var_2 + -0x1e54,var_2 + -0x1ea0,0xcef,
                     var_2 + 0xc14);
  return MVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) 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)))))))) 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)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (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 (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))))) (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))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (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) (identifier) (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)))))))))))) (return_statement (identifier)))) (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 param_3,undefined4 param_4)

{
  undefined4 uVar1;
  int iVar2;
  
  if (param_1 == 0) {
    uVar1 = (*(code *)PTR___assert_fail_00178728)
                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0xcee,
                       PTR_s_oint_00178034 + 0xc14);
    return uVar1;
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (*(int *)(&DAT_00001018 + param_1) == 0) {
      iVar2 = *(int *)(&DAT_00001004 + param_1);
    }
    else {
      (*(code *)PTR_LogMagickEvent_00178490)
                (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0xc00,0xcf1,
                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);
      iVar2 = *(int *)(&DAT_00001004 + param_1);
    }
    if (iVar2 == 0) {
      (*(code *)PTR_ThrowMagickException_001782c4)
                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,
                 PTR_s_oint_00178034 + 0xc00,0xcf3,0x1d6,PTR_s_ision_00178030 + 0x7db4,
                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);
      uVar1 = 0;
    }
    else {
      uVar1 = (*(code *)PTR_EvaluateImage_00178320)
                        (iVar2,param_2,param_3,param_4,*(undefined4 *)(param_1 + 0x100c));
    }
    return uVar1;
  }
  uVar1 = (*(code *)PTR___assert_fail_00178728)
                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0xcef,
                     PTR_s_oint_00178034 + 0xc14);
  return uVar1;
}

