
/* 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 */

MagickWand *
MagickCompareImages(MagickWand *wand,MagickWand *reference,MetricType metric,double *distortion)

{
  MagickWand *pMVar1;
  Image *pIVar2;
  
  if (wand == (MagickWand *)0x0) {
    pMVar1 = (MagickWand *)
             (*(code *)PTR___assert_fail_00178728)
                       (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,
                        PTR_s_oint_00178034 + 0x1084);
    return pMVar1;
  }
  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 + 0x1070,0x7d2,
                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);
      pIVar2 = wand->images;
    }
    if ((pIVar2 == (Image *)0x0) || (reference->images == (Image *)0x0)) {
      (*(code *)PTR_ThrowMagickException_001782c4)
                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0x1070,0x7d5,
                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);
      pMVar1 = (MagickWand *)0x0;
    }
    else {
      pIVar2 = (Image *)(*(code *)PTR_CompareImages_0017836c)
                                  (pIVar2,reference->images,metric,distortion,wand->exception);
      if (pIVar2 == (Image *)0x0) {
        pMVar1 = (MagickWand *)0x0;
      }
      else {
        pMVar1 = CloneMagickWandFromImages(wand,pIVar2);
      }
    }
    return pMVar1;
  }
  pMVar1 = (MagickWand *)
           (*(code *)PTR___assert_fail_00178728)
                     (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,
                      PTR_s_oint_00178034 + 0x1084);
  return pMVar1;
}



undefined4 MagickCompareImages(int param_1,int 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,1999,
                       PTR_s_oint_00178034 + 0x1084);
    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 + 0x1070,0x7d2,
                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);
      iVar2 = *(int *)(&DAT_00001004 + param_1);
    }
    if ((iVar2 == 0) || (*(int *)(&DAT_00001004 + param_2) == 0)) {
      (*(code *)PTR_ThrowMagickException_001782c4)
                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,
                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,
                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);
      uVar1 = 0;
    }
    else {
      iVar2 = (*(code *)PTR_CompareImages_0017836c)
                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,
                         *(undefined4 *)(param_1 + 0x100c));
      if (iVar2 == 0) {
        uVar1 = 0;
      }
      else {
        uVar1 = FUN_000918f0(param_1,iVar2);
      }
    }
    return uVar1;
  }
  uVar1 = (*(code *)PTR___assert_fail_00178728)
                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,
                     PTR_s_oint_00178034 + 0x1084);
  return uVar1;
}


lui gp,0xf
addiu gp,gp,-0x59c8
addu gp,gp,t9
addiu sp,sp,-0x40
sw ra,0x3c(sp)
sw s3,0x38(sp)
sw s2,0x34(sp)
sw s1,0x30(sp)
sw s0,0x2c(sp)
sw gp,0x20(sp)
beq a0,zero,0x00095a90
_lui v0,0xabac
or s0,a0,zero
or s3,a1,zero
or s1,a2,zero
lw v1,0x101c(a0)
ori v0,v0,0xadab
bne v1,v0,0x00095ab8
_or s2,a3,zero
lw v0,0x1018(a0)
bne v0,zero,0x00095ae0
_addiu v0,a0,0x4
lw a0,0x1004(s0)
beq a0,zero,0x00095b20
_nop
lw a1,0x1004(s3)
beq a1,zero,0x00095b20
_or a3,s2,zero
lw v0,0x100c(s0)
sw v0,0x10(sp)
or a2,s1,zero
lw t9,-0x7c94(gp)
jalr t9
_nop
lw gp,0x20(sp)
beq v0,zero,0x00095b78
_or a1,v0,zero
or a0,s0,zero
lw t9,-0x7fb4(gp)
addiu t9,t9,0x18f0
bal 0x000918f0
_nop
lw gp,0x20(sp)
lw ra,0x3c(sp)
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x40
lw a3,-0x7fcc(gp)
addiu a3,a3,0x1084
li a2,0x7cf
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,0x1084
li a2,0x7d0
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,0x7d2
lw a2,-0x7fcc(gp)
addiu a2,a2,0x1070
lw a1,-0x7fcc(gp)
addiu a1,a1,-0x1ea0
lui a0,0x4
lw t9,-0x7b70(gp)
jalr t9
_nop
lw gp,0x20(sp)
b 0x00095a24
_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,0x7d5
lw a2,-0x7fcc(gp)
addiu a2,a2,0x1070
lw a1,-0x7fcc(gp)
addiu a1,a1,-0x1ea0
lw t9,-0x7d3c(gp)
jalr t9
_nop
lw gp,0x20(sp)
b 0x00095a74
_or v0,zero,zero
b 0x00095a74
_or v0,zero,zero
(translation_unit "undefined4 MagickCompareImages(int param_1,int 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,1999,\n                       PTR_s_oint_00178034 + 0x1084);\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 + 0x1070,0x7d2,\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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }\n    return uVar1;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                     PTR_s_oint_00178034 + 0x1084);\n  return uVar1;\n}\n\n" (function_definition "undefined4 MagickCompareImages(int param_1,int 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,1999,\n                       PTR_s_oint_00178034 + 0x1084);\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 + 0x1070,0x7d2,\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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }\n    return uVar1;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                     PTR_s_oint_00178034 + 0x1084);\n  return uVar1;\n}" type_identifier (function_declarator "MagickCompareImages(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type 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,1999,\n                       PTR_s_oint_00178034 + 0x1084);\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 + 0x1070,0x7d2,\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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }\n    return uVar1;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                     PTR_s_oint_00178034 + 0x1084);\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,1999,\n                       PTR_s_oint_00178034 + 0x1084);\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,1999,\n                       PTR_s_oint_00178034 + 0x1084);\n    return uVar1;\n  }" { (expression_statement "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                       PTR_s_oint_00178034 + 0x1084);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                       PTR_s_oint_00178034 + 0x1084)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                       PTR_s_oint_00178034 + 0x1084)" (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,1999,\n                       PTR_s_oint_00178034 + 0x1084)" ( (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 + 0x1084" 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 + 0x1070,0x7d2,\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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\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 + 0x1070,0x7d2,\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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070" 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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }" if (parenthesized_expression "((iVar2 == 0) || (*(int *)(&DAT_00001004 + param_2) == 0))" ( (binary_expression "(iVar2 == 0) || (*(int *)(&DAT_00001004 + param_2) == 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)(&DAT_00001004 + param_2) == 0)" ( (binary_expression "*(int *)(&DAT_00001004 + param_2) == 0" (pointer_expression "*(int *)(&DAT_00001004 + param_2)" * (cast_expression "(int *)(&DAT_00001004 + param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00001004 + param_2)" ( (binary_expression "&DAT_00001004 + param_2" (pointer_expression "&DAT_00001004" & identifier) + 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 + 0x1070,0x7d5,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 + 0x1070,0x7d5,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 + 0x1070,0x7d5,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 + 0x1070,0x7d5,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 + 0x1070" 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      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }" else (compound_statement "{\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }" { (expression_statement "iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));" (assignment_expression "iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c))" identifier = (call_expression "(*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c))" (parenthesized_expression "(*(code *)PTR_CompareImages_0017836c)" ( (pointer_expression "*(code *)PTR_CompareImages_0017836c" * (cast_expression "(code *)PTR_CompareImages_0017836c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c))" ( identifier , (pointer_expression "*(int *)(&DAT_00001004 + param_2)" * (cast_expression "(int *)(&DAT_00001004 + param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00001004 + param_2)" ( (binary_expression "&DAT_00001004 + param_2" (pointer_expression "&DAT_00001004" & 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) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar1 = 0;\n      }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }" else (compound_statement "{\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }" { (expression_statement "uVar1 = FUN_000918f0(param_1,iVar2);" (assignment_expression "uVar1 = FUN_000918f0(param_1,iVar2)" identifier = (call_expression "FUN_000918f0(param_1,iVar2)" identifier (argument_list "(param_1,iVar2)" ( identifier , identifier )))) ;) }))) }))) (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,2000,\n                     PTR_s_oint_00178034 + 0x1084);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                     PTR_s_oint_00178034 + 0x1084)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                     PTR_s_oint_00178034 + 0x1084)" (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,2000,\n                     PTR_s_oint_00178034 + 0x1084)" ( (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 + 0x1084" 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\nMagickWand *\nMagickCompareImages(MagickWand *wand,MagickWand *reference,MetricType metric,double *distortion)\n\n{\n  MagickWand *pMVar1;\n  Image *pIVar2;\n  \n  if (wand == (MagickWand *)0x0) {\n    pMVar1 = (MagickWand *)\n             (*(code *)PTR___assert_fail_00178728)\n                       (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                        PTR_s_oint_00178034 + 0x1084);\n    return pMVar1;\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 + 0x1070,0x7d2,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n      pIVar2 = wand->images;\n    }\n    if ((pIVar2 == (Image *)0x0) || (reference->images == (Image *)0x0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0x1070,0x7d5,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);\n      pMVar1 = (MagickWand *)0x0;\n    }\n    else {\n      pIVar2 = (Image *)(*(code *)PTR_CompareImages_0017836c)\n                                  (pIVar2,reference->images,metric,distortion,wand->exception);\n      if (pIVar2 == (Image *)0x0) {\n        pMVar1 = (MagickWand *)0x0;\n      }\n      else {\n        pMVar1 = CloneMagickWandFromImages(wand,pIVar2);\n      }\n    }\n    return pMVar1;\n  }\n  pMVar1 = (MagickWand *)\n           (*(code *)PTR___assert_fail_00178728)\n                     (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                      PTR_s_oint_00178034 + 0x1084);\n  return pMVar1;\n}\n\n" comment comment comment comment comment (function_definition "MagickWand *\nMagickCompareImages(MagickWand *wand,MagickWand *reference,MetricType metric,double *distortion)\n\n{\n  MagickWand *pMVar1;\n  Image *pIVar2;\n  \n  if (wand == (MagickWand *)0x0) {\n    pMVar1 = (MagickWand *)\n             (*(code *)PTR___assert_fail_00178728)\n                       (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                        PTR_s_oint_00178034 + 0x1084);\n    return pMVar1;\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 + 0x1070,0x7d2,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n      pIVar2 = wand->images;\n    }\n    if ((pIVar2 == (Image *)0x0) || (reference->images == (Image *)0x0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0x1070,0x7d5,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);\n      pMVar1 = (MagickWand *)0x0;\n    }\n    else {\n      pIVar2 = (Image *)(*(code *)PTR_CompareImages_0017836c)\n                                  (pIVar2,reference->images,metric,distortion,wand->exception);\n      if (pIVar2 == (Image *)0x0) {\n        pMVar1 = (MagickWand *)0x0;\n      }\n      else {\n        pMVar1 = CloneMagickWandFromImages(wand,pIVar2);\n      }\n    }\n    return pMVar1;\n  }\n  pMVar1 = (MagickWand *)\n           (*(code *)PTR___assert_fail_00178728)\n                     (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                      PTR_s_oint_00178034 + 0x1084);\n  return pMVar1;\n}" type_identifier (pointer_declarator "*\nMagickCompareImages(MagickWand *wand,MagickWand *reference,MetricType metric,double *distortion)" * (function_declarator "MagickCompareImages(MagickWand *wand,MagickWand *reference,MetricType metric,double *distortion)" identifier (parameter_list "(MagickWand *wand,MagickWand *reference,MetricType metric,double *distortion)" ( (parameter_declaration "MagickWand *wand" type_identifier (pointer_declarator "*wand" * identifier)) , (parameter_declaration "MagickWand *reference" type_identifier (pointer_declarator "*reference" * identifier)) , (parameter_declaration "MetricType metric" type_identifier identifier) , (parameter_declaration "double *distortion" primitive_type (pointer_declarator "*distortion" * identifier)) )))) (compound_statement "{\n  MagickWand *pMVar1;\n  Image *pIVar2;\n  \n  if (wand == (MagickWand *)0x0) {\n    pMVar1 = (MagickWand *)\n             (*(code *)PTR___assert_fail_00178728)\n                       (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                        PTR_s_oint_00178034 + 0x1084);\n    return pMVar1;\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 + 0x1070,0x7d2,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n      pIVar2 = wand->images;\n    }\n    if ((pIVar2 == (Image *)0x0) || (reference->images == (Image *)0x0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0x1070,0x7d5,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);\n      pMVar1 = (MagickWand *)0x0;\n    }\n    else {\n      pIVar2 = (Image *)(*(code *)PTR_CompareImages_0017836c)\n                                  (pIVar2,reference->images,metric,distortion,wand->exception);\n      if (pIVar2 == (Image *)0x0) {\n        pMVar1 = (MagickWand *)0x0;\n      }\n      else {\n        pMVar1 = CloneMagickWandFromImages(wand,pIVar2);\n      }\n    }\n    return pMVar1;\n  }\n  pMVar1 = (MagickWand *)\n           (*(code *)PTR___assert_fail_00178728)\n                     (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                      PTR_s_oint_00178034 + 0x1084);\n  return pMVar1;\n}" { (declaration "MagickWand *pMVar1;" type_identifier (pointer_declarator "*pMVar1" * identifier) ;) (declaration "Image *pIVar2;" type_identifier (pointer_declarator "*pIVar2" * identifier) ;) (if_statement "if (wand == (MagickWand *)0x0) {\n    pMVar1 = (MagickWand *)\n             (*(code *)PTR___assert_fail_00178728)\n                       (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                        PTR_s_oint_00178034 + 0x1084);\n    return pMVar1;\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    pMVar1 = (MagickWand *)\n             (*(code *)PTR___assert_fail_00178728)\n                       (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                        PTR_s_oint_00178034 + 0x1084);\n    return pMVar1;\n  }" { (expression_statement "pMVar1 = (MagickWand *)\n             (*(code *)PTR___assert_fail_00178728)\n                       (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                        PTR_s_oint_00178034 + 0x1084);" (assignment_expression "pMVar1 = (MagickWand *)\n             (*(code *)PTR___assert_fail_00178728)\n                       (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                        PTR_s_oint_00178034 + 0x1084)" identifier = (cast_expression "(MagickWand *)\n             (*(code *)PTR___assert_fail_00178728)\n                       (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                        PTR_s_oint_00178034 + 0x1084)" ( (type_descriptor "MagickWand *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_00178728)\n                       (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                        PTR_s_oint_00178034 + 0x1084)" (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,1999,\n                        PTR_s_oint_00178034 + 0x1084)" ( (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 + 0x1084" identifier + number_literal) ))))) ;) (return_statement "return pMVar1;" 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 + 0x1070,0x7d2,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n      pIVar2 = wand->images;\n    }\n    if ((pIVar2 == (Image *)0x0) || (reference->images == (Image *)0x0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0x1070,0x7d5,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);\n      pMVar1 = (MagickWand *)0x0;\n    }\n    else {\n      pIVar2 = (Image *)(*(code *)PTR_CompareImages_0017836c)\n                                  (pIVar2,reference->images,metric,distortion,wand->exception);\n      if (pIVar2 == (Image *)0x0) {\n        pMVar1 = (MagickWand *)0x0;\n      }\n      else {\n        pMVar1 = CloneMagickWandFromImages(wand,pIVar2);\n      }\n    }\n    return pMVar1;\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 + 0x1070,0x7d2,\n                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n      pIVar2 = wand->images;\n    }\n    if ((pIVar2 == (Image *)0x0) || (reference->images == (Image *)0x0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0x1070,0x7d5,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);\n      pMVar1 = (MagickWand *)0x0;\n    }\n    else {\n      pIVar2 = (Image *)(*(code *)PTR_CompareImages_0017836c)\n                                  (pIVar2,reference->images,metric,distortion,wand->exception);\n      if (pIVar2 == (Image *)0x0) {\n        pMVar1 = (MagickWand *)0x0;\n      }\n      else {\n        pMVar1 = CloneMagickWandFromImages(wand,pIVar2);\n      }\n    }\n    return pMVar1;\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070" 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) || (reference->images == (Image *)0x0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0x1070,0x7d5,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);\n      pMVar1 = (MagickWand *)0x0;\n    }\n    else {\n      pIVar2 = (Image *)(*(code *)PTR_CompareImages_0017836c)\n                                  (pIVar2,reference->images,metric,distortion,wand->exception);\n      if (pIVar2 == (Image *)0x0) {\n        pMVar1 = (MagickWand *)0x0;\n      }\n      else {\n        pMVar1 = CloneMagickWandFromImages(wand,pIVar2);\n      }\n    }" if (parenthesized_expression "((pIVar2 == (Image *)0x0) || (reference->images == (Image *)0x0))" ( (binary_expression "(pIVar2 == (Image *)0x0) || (reference->images == (Image *)0x0)" (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)) )) || (parenthesized_expression "(reference->images == (Image *)0x0)" ( (binary_expression "reference->images == (Image *)0x0" (field_expression "reference->images" identifier -> field_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 + 0x1070,0x7d5,\n                 0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,wand->name);\n      pMVar1 = (MagickWand *)0x0;\n    }" { (expression_statement "(*(code *)PTR_ThrowMagickException_001782c4)\n                (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + 0x1070,0x7d5,\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 + 0x1070,0x7d5,\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 + 0x1070,0x7d5,\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 + 0x1070" 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 "pMVar1 = (MagickWand *)0x0;" (assignment_expression "pMVar1 = (MagickWand *)0x0" identifier = (cast_expression "(MagickWand *)0x0" ( (type_descriptor "MagickWand *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      pIVar2 = (Image *)(*(code *)PTR_CompareImages_0017836c)\n                                  (pIVar2,reference->images,metric,distortion,wand->exception);\n      if (pIVar2 == (Image *)0x0) {\n        pMVar1 = (MagickWand *)0x0;\n      }\n      else {\n        pMVar1 = CloneMagickWandFromImages(wand,pIVar2);\n      }\n    }" else (compound_statement "{\n      pIVar2 = (Image *)(*(code *)PTR_CompareImages_0017836c)\n                                  (pIVar2,reference->images,metric,distortion,wand->exception);\n      if (pIVar2 == (Image *)0x0) {\n        pMVar1 = (MagickWand *)0x0;\n      }\n      else {\n        pMVar1 = CloneMagickWandFromImages(wand,pIVar2);\n      }\n    }" { (expression_statement "pIVar2 = (Image *)(*(code *)PTR_CompareImages_0017836c)\n                                  (pIVar2,reference->images,metric,distortion,wand->exception);" (assignment_expression "pIVar2 = (Image *)(*(code *)PTR_CompareImages_0017836c)\n                                  (pIVar2,reference->images,metric,distortion,wand->exception)" identifier = (cast_expression "(Image *)(*(code *)PTR_CompareImages_0017836c)\n                                  (pIVar2,reference->images,metric,distortion,wand->exception)" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_CompareImages_0017836c)\n                                  (pIVar2,reference->images,metric,distortion,wand->exception)" (parenthesized_expression "(*(code *)PTR_CompareImages_0017836c)" ( (pointer_expression "*(code *)PTR_CompareImages_0017836c" * (cast_expression "(code *)PTR_CompareImages_0017836c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pIVar2,reference->images,metric,distortion,wand->exception)" ( identifier , (field_expression "reference->images" identifier -> field_identifier) , identifier , identifier , (field_expression "wand->exception" identifier -> field_identifier) ))))) ;) (if_statement "if (pIVar2 == (Image *)0x0) {\n        pMVar1 = (MagickWand *)0x0;\n      }\n      else {\n        pMVar1 = CloneMagickWandFromImages(wand,pIVar2);\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        pMVar1 = (MagickWand *)0x0;\n      }" { (expression_statement "pMVar1 = (MagickWand *)0x0;" (assignment_expression "pMVar1 = (MagickWand *)0x0" identifier = (cast_expression "(MagickWand *)0x0" ( (type_descriptor "MagickWand *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n        pMVar1 = CloneMagickWandFromImages(wand,pIVar2);\n      }" else (compound_statement "{\n        pMVar1 = CloneMagickWandFromImages(wand,pIVar2);\n      }" { (expression_statement "pMVar1 = CloneMagickWandFromImages(wand,pIVar2);" (assignment_expression "pMVar1 = CloneMagickWandFromImages(wand,pIVar2)" identifier = (call_expression "CloneMagickWandFromImages(wand,pIVar2)" identifier (argument_list "(wand,pIVar2)" ( identifier , identifier )))) ;) }))) }))) (return_statement "return pMVar1;" return identifier ;) })) (expression_statement "pMVar1 = (MagickWand *)\n           (*(code *)PTR___assert_fail_00178728)\n                     (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                      PTR_s_oint_00178034 + 0x1084);" (assignment_expression "pMVar1 = (MagickWand *)\n           (*(code *)PTR___assert_fail_00178728)\n                     (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                      PTR_s_oint_00178034 + 0x1084)" identifier = (cast_expression "(MagickWand *)\n           (*(code *)PTR___assert_fail_00178728)\n                     (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                      PTR_s_oint_00178034 + 0x1084)" ( (type_descriptor "MagickWand *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_00178728)\n                     (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                      PTR_s_oint_00178034 + 0x1084)" (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,2000,\n                      PTR_s_oint_00178034 + 0x1084)" ( (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 + 0x1084" identifier + number_literal) ))))) ;) (return_statement "return pMVar1;" return identifier ;) })))
(translation_unit "undefined4 MagickCompareImages(int param_1,int 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,1999,\n                       PTR_s_oint_00178034 + 0x1084);\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 + 0x1070,0x7d2,\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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }\n    return uVar1;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                     PTR_s_oint_00178034 + 0x1084);\n  return uVar1;\n}\n\n" (function_definition "undefined4 MagickCompareImages(int param_1,int 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,1999,\n                       PTR_s_oint_00178034 + 0x1084);\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 + 0x1070,0x7d2,\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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }\n    return uVar1;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                     PTR_s_oint_00178034 + 0x1084);\n  return uVar1;\n}" type_identifier (function_declarator "MagickCompareImages(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type 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,1999,\n                       PTR_s_oint_00178034 + 0x1084);\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 + 0x1070,0x7d2,\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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }\n    return uVar1;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                     PTR_s_oint_00178034 + 0x1084);\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,1999,\n                       PTR_s_oint_00178034 + 0x1084);\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,1999,\n                       PTR_s_oint_00178034 + 0x1084);\n    return uVar1;\n  }" { (expression_statement "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                       PTR_s_oint_00178034 + 0x1084);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                       PTR_s_oint_00178034 + 0x1084)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                       PTR_s_oint_00178034 + 0x1084)" (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,1999,\n                       PTR_s_oint_00178034 + 0x1084)" ( (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 + 0x1084" 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 + 0x1070,0x7d2,\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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\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 + 0x1070,0x7d2,\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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070" 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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }" if (parenthesized_expression "((iVar2 == 0) || (*(int *)(&DAT_00001004 + param_2) == 0))" ( (binary_expression "(iVar2 == 0) || (*(int *)(&DAT_00001004 + param_2) == 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)(&DAT_00001004 + param_2) == 0)" ( (binary_expression "*(int *)(&DAT_00001004 + param_2) == 0" (pointer_expression "*(int *)(&DAT_00001004 + param_2)" * (cast_expression "(int *)(&DAT_00001004 + param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00001004 + param_2)" ( (binary_expression "&DAT_00001004 + param_2" (pointer_expression "&DAT_00001004" & identifier) + 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 + 0x1070,0x7d5,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 + 0x1070,0x7d5,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 + 0x1070,0x7d5,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 + 0x1070,0x7d5,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 + 0x1070" 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      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }" else (compound_statement "{\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }" { (expression_statement "iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));" (assignment_expression "iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c))" identifier = (call_expression "(*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c))" (parenthesized_expression "(*(code *)PTR_CompareImages_0017836c)" ( (pointer_expression "*(code *)PTR_CompareImages_0017836c" * (cast_expression "(code *)PTR_CompareImages_0017836c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c))" ( identifier , (pointer_expression "*(int *)(&DAT_00001004 + param_2)" * (cast_expression "(int *)(&DAT_00001004 + param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00001004 + param_2)" ( (binary_expression "&DAT_00001004 + param_2" (pointer_expression "&DAT_00001004" & 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) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar1 = 0;\n      }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }" else (compound_statement "{\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }" { (expression_statement "uVar1 = FUN_000918f0(param_1,iVar2);" (assignment_expression "uVar1 = FUN_000918f0(param_1,iVar2)" identifier = (call_expression "FUN_000918f0(param_1,iVar2)" identifier (argument_list "(param_1,iVar2)" ( identifier , identifier )))) ;) }))) }))) (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,2000,\n                     PTR_s_oint_00178034 + 0x1084);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                     PTR_s_oint_00178034 + 0x1084)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                     PTR_s_oint_00178034 + 0x1084)" (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,2000,\n                     PTR_s_oint_00178034 + 0x1084)" ( (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 + 0x1084" 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 (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (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 (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 , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) , IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }))) }))) (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 MagickCompareImages(int param_1,int 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,1999,\n                       PTR_s_oint_00178034 + 0x1084);\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 + 0x1070,0x7d2,\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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }\n    return uVar1;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                     PTR_s_oint_00178034 + 0x1084);\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "MagickCompareImages(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" (identifier "MagickCompareImages") (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (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,1999,\n                       PTR_s_oint_00178034 + 0x1084);\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 + 0x1070,0x7d2,\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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }\n    return uVar1;\n  }\n  uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                     PTR_s_oint_00178034 + 0x1084);\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,1999,\n                       PTR_s_oint_00178034 + 0x1084);\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,1999,\n                       PTR_s_oint_00178034 + 0x1084);\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                       PTR_s_oint_00178034 + 0x1084);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                       PTR_s_oint_00178034 + 0x1084)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,1999,\n                       PTR_s_oint_00178034 + 0x1084)" (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,1999,\n                       PTR_s_oint_00178034 + 0x1084)" (( "(") (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 "1999") (, ",") (binary_expression "PTR_s_oint_00178034 + 0x1084" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "0x1084")) () ")")))) (; ";")) (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 + 0x1070,0x7d2,\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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\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 + 0x1070,0x7d2,\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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070,0x7d2,\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 + 0x1070" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "0x1070")) (, ",") (number_literal "0x7d2") (, ",") (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) || (*(int *)(&DAT_00001004 + param_2) == 0)) {\n      (*(code *)PTR_ThrowMagickException_001782c4)\n                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n      uVar1 = 0;\n    }\n    else {\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }" (if "if") (parenthesized_expression "((iVar2 == 0) || (*(int *)(&DAT_00001004 + param_2) == 0))" (( "(") (binary_expression "(iVar2 == 0) || (*(int *)(&DAT_00001004 + param_2) == 0)" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(&DAT_00001004 + param_2) == 0)" (( "(") (binary_expression "*(int *)(&DAT_00001004 + param_2) == 0" (pointer_expression "*(int *)(&DAT_00001004 + param_2)" (* "*") (cast_expression "(int *)(&DAT_00001004 + param_2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00001004 + param_2)" (( "(") (binary_expression "&DAT_00001004 + param_2" (pointer_expression "&DAT_00001004" (& "&") (identifier "DAT_00001004")) (+ "+") (identifier "param_2")) () ")")))) (== "==") (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 + 0x1070,0x7d5,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 + 0x1070,0x7d5,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 + 0x1070,0x7d5,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 + 0x1070,0x7d5,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 + 0x1070" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "0x1070")) (, ",") (number_literal "0x7d5") (, ",") (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      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }" (else "else") (compound_statement "{\n      iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));\n      if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }\n    }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c));" (assignment_expression "iVar2 = (*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c))" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_CompareImages_0017836c)\n                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c))" (parenthesized_expression "(*(code *)PTR_CompareImages_0017836c)" (( "(") (pointer_expression "*(code *)PTR_CompareImages_0017836c" (* "*") (cast_expression "(code *)PTR_CompareImages_0017836c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_CompareImages_0017836c"))) () ")")) (argument_list "(iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,\n                         *(undefined4 *)(param_1 + 0x100c))" (( "(") (identifier "iVar2") (, ",") (pointer_expression "*(int *)(&DAT_00001004 + param_2)" (* "*") (cast_expression "(int *)(&DAT_00001004 + param_2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00001004 + param_2)" (( "(") (binary_expression "&DAT_00001004 + param_2" (pointer_expression "&DAT_00001004" (& "&") (identifier "DAT_00001004")) (+ "+") (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")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        uVar1 = 0;\n      }\n      else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar1 = 0;\n      }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }" (else "else") (compound_statement "{\n        uVar1 = FUN_000918f0(param_1,iVar2);\n      }" ({ "{") (expression_statement "uVar1 = FUN_000918f0(param_1,iVar2);" (assignment_expression "uVar1 = FUN_000918f0(param_1,iVar2)" (identifier "uVar1") (= "=") (call_expression "FUN_000918f0(param_1,iVar2)" (identifier "FUN_000918f0") (argument_list "(param_1,iVar2)" (( "(") (identifier "param_1") (, ",") (identifier "iVar2") () ")")))) (; ";")) (} "}")))) (} "}")))) (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,2000,\n                     PTR_s_oint_00178034 + 0x1084);" (assignment_expression "uVar1 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                     PTR_s_oint_00178034 + 0x1084)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,\n                     PTR_s_oint_00178034 + 0x1084)" (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,2000,\n                     PTR_s_oint_00178034 + 0x1084)" (( "(") (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 "2000") (, ",") (binary_expression "PTR_s_oint_00178034 + 0x1084" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "0x1084")) () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))
(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: (primitive_type) 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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (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 (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) (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))))) (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))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))))))) (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,int 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,1999,
                       PTR_s_oint_00178034 + 0x1084);
    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 + 0x1070,0x7d2,
                 PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);
      iVar2 = *(int *)(&DAT_00001004 + param_1);
    }
    if ((iVar2 == 0) || (*(int *)(&DAT_00001004 + param_2) == 0)) {
      (*(code *)PTR_ThrowMagickException_001782c4)
                (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,
                 PTR_s_oint_00178034 + 0x1070,0x7d5,0x1d6,PTR_s_ision_00178030 + 0x7db4,
                 PTR_s_ision_00178030 + -0x35c,param_1 + 4);
      uVar1 = 0;
    }
    else {
      iVar2 = (*(code *)PTR_CompareImages_0017836c)
                        (iVar2,*(int *)(&DAT_00001004 + param_2),param_3,param_4,
                         *(undefined4 *)(param_1 + 0x100c));
      if (iVar2 == 0) {
        uVar1 = 0;
      }
      else {
        uVar1 = FUN_000918f0(param_1,iVar2);
      }
    }
    return uVar1;
  }
  uVar1 = (*(code *)PTR___assert_fail_00178728)
                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,2000,
                     PTR_s_oint_00178034 + 0x1084);
  return uVar1;
}

