
/* 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 * GetWandViewWand(WandView *wand_view)

{
  int iVar1;
  undefined *puVar2;
  undefined *puVar3;
  
  if (wand_view == (WandView *)0x0) {
    (*(code *)PTR___assert_fail_0014f720)
              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,
               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,
               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);
  }
  else if (wand_view->signature == 0xabacadab) {
    return wand_view->wand;
  }
  puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;
  puVar3 = PTR___assert_fail_0014f720;
  (*(code *)PTR___assert_fail_0014f720)
            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,
             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);
  if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {
    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);
    return (MagickWand *)(uint)(iVar1 == 0);
  }
  return (MagickWand *)0x0;
}



uint GetWandViewWand(int param_1)

{
  int iVar1;
  undefined *puVar2;
  undefined *puVar3;
  
  if (param_1 == 0) {
    (*(code *)PTR___assert_fail_0014f720)
              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,
               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,
               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);
  }
  else if (*(int *)(param_1 + 0x1030) == -0x54535255) {
    return *(uint *)(&DAT_00001018 + param_1);
  }
  puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;
  puVar3 = PTR___assert_fail_0014f720;
  (*(code *)PTR___assert_fail_0014f720)
            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,
             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);
  if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {
    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);
    return (uint)(iVar1 == 0);
  }
  return 0;
}


lui gp,0x4
addiu gp,gp,0x6080
addu gp,gp,t9
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
beq a0,zero,0x00110fbc
_lui v0,0xabac
lw v1,0x1030(a0)
ori v0,v0,0xadab
bne v1,v0,0x00110fe0
_lw ra,0x1c(sp)
lw v0,0x1018(a0)
jr ra
_addiu sp,sp,0x20
lw a3,-0x7fd0(gp)
li a2,0x28c
lw a1,-0x7fd0(gp)
lw a0,-0x7fd0(gp)
lw t9,-0x78e0(gp)
addiu a3,a3,0x5010
addiu a1,a1,0x4e10
jalr t9
_addiu a0,a0,0x4e4c
lw a3,-0x7fd0(gp)
li a2,0x28d
lw a1,-0x7fd0(gp)
lw a0,-0x7fd0(gp)
lw t9,-0x78e0(gp)
addiu a3,a3,0x5010
addiu a1,a1,0x4e10
jalr t9
_addiu a0,a0,0x4e6c
(translation_unit "uint GetWandViewWand(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }\n  else if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }\n  puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;\n  puVar3 = PTR___assert_fail_0014f720;\n  (*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (uint)(iVar1 == 0);\n  }\n  return 0;\n}\n\n" (function_definition "uint GetWandViewWand(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }\n  else if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }\n  puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;\n  puVar3 = PTR___assert_fail_0014f720;\n  (*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (uint)(iVar1 == 0);\n  }\n  return 0;\n}" type_identifier (function_declarator "GetWandViewWand(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }\n  else if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }\n  puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;\n  puVar3 = PTR___assert_fail_0014f720;\n  (*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (uint)(iVar1 == 0);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }\n  else if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }" { (expression_statement "(*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);" (call_expression "(*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010)" (parenthesized_expression "(*(code *)PTR___assert_fail_0014f720)" ( (pointer_expression "*(code *)PTR___assert_fail_0014f720" * (cast_expression "(code *)PTR___assert_fail_0014f720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010)" ( (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c" identifier + number_literal) , (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10" identifier + number_literal) , number_literal , (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x5010" identifier + number_literal) ))) ;) }) (else_clause "else if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }" else (if_statement "if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x1030) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x1030) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x1030)" * (cast_expression "(int *)(param_1 + 0x1030)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1030)" ( (binary_expression "param_1 + 0x1030" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    return *(uint *)(&DAT_00001018 + param_1);\n  }" { (return_statement "return *(uint *)(&DAT_00001018 + param_1);" return (pointer_expression "*(uint *)(&DAT_00001018 + param_1)" * (cast_expression "(uint *)(&DAT_00001018 + param_1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00001018 + param_1)" ( (binary_expression "&DAT_00001018 + param_1" (pointer_expression "&DAT_00001018" & identifier) + identifier) )))) ;) })))) (expression_statement "puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;" (assignment_expression "puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c" identifier = (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c" identifier + number_literal)) ;) (expression_statement "puVar3 = PTR___assert_fail_0014f720;" (assignment_expression "puVar3 = PTR___assert_fail_0014f720" identifier = identifier) ;) (expression_statement "(*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);" (call_expression "(*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010)" (parenthesized_expression "(*(code *)PTR___assert_fail_0014f720)" ( (pointer_expression "*(code *)PTR___assert_fail_0014f720" * (cast_expression "(code *)PTR___assert_fail_0014f720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010)" ( identifier , (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10" identifier + number_literal) , number_literal , (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x5010" identifier + number_literal) ))) ;) (if_statement "if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (uint)(iVar1 == 0);\n  }" if (parenthesized_expression "((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255))" ( (binary_expression "(puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)" (parenthesized_expression "(puVar2 != (undefined *)0x0)" ( (binary_expression "puVar2 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*(int *)(puVar2 + 0x1030) == -0x54535255)" ( (binary_expression "*(int *)(puVar2 + 0x1030) == -0x54535255" (pointer_expression "*(int *)(puVar2 + 0x1030)" * (cast_expression "(int *)(puVar2 + 0x1030)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x1030)" ( (binary_expression "puVar2 + 0x1030" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (uint)(iVar1 == 0);\n  }" { (expression_statement "iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);" (assignment_expression "iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8)" identifier = (call_expression "(**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8)" (parenthesized_expression "(**(code **)(puVar3 + 0x3e730))" ( (pointer_expression "**(code **)(puVar3 + 0x3e730)" * (pointer_expression "*(code **)(puVar3 + 0x3e730)" * (cast_expression "(code **)(puVar3 + 0x3e730)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x3e730)" ( (binary_expression "puVar3 + 0x3e730" identifier + number_literal) ))))) )) (argument_list "(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8)" ( (binary_expression "puVar2 + 4" identifier + number_literal) , (binary_expression "*(int *)(puVar3 + 0x3e02c) + 0x4e98" (pointer_expression "*(int *)(puVar3 + 0x3e02c)" * (cast_expression "(int *)(puVar3 + 0x3e02c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x3e02c)" ( (binary_expression "puVar3 + 0x3e02c" identifier + number_literal) )))) + number_literal) , number_literal )))) ;) (return_statement "return (uint)(iVar1 == 0);" return (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(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 * GetWandViewWand(WandView *wand_view)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  if (wand_view == (WandView *)0x0) {\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }\n  else if (wand_view->signature == 0xabacadab) {\n    return wand_view->wand;\n  }\n  puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;\n  puVar3 = PTR___assert_fail_0014f720;\n  (*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (MagickWand *)(uint)(iVar1 == 0);\n  }\n  return (MagickWand *)0x0;\n}\n\n" comment comment comment comment comment (function_definition "MagickWand * GetWandViewWand(WandView *wand_view)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  if (wand_view == (WandView *)0x0) {\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }\n  else if (wand_view->signature == 0xabacadab) {\n    return wand_view->wand;\n  }\n  puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;\n  puVar3 = PTR___assert_fail_0014f720;\n  (*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (MagickWand *)(uint)(iVar1 == 0);\n  }\n  return (MagickWand *)0x0;\n}" type_identifier (pointer_declarator "* GetWandViewWand(WandView *wand_view)" * (function_declarator "GetWandViewWand(WandView *wand_view)" identifier (parameter_list "(WandView *wand_view)" ( (parameter_declaration "WandView *wand_view" type_identifier (pointer_declarator "*wand_view" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  if (wand_view == (WandView *)0x0) {\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }\n  else if (wand_view->signature == 0xabacadab) {\n    return wand_view->wand;\n  }\n  puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;\n  puVar3 = PTR___assert_fail_0014f720;\n  (*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (MagickWand *)(uint)(iVar1 == 0);\n  }\n  return (MagickWand *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (wand_view == (WandView *)0x0) {\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }\n  else if (wand_view->signature == 0xabacadab) {\n    return wand_view->wand;\n  }" if (parenthesized_expression "(wand_view == (WandView *)0x0)" ( (binary_expression "wand_view == (WandView *)0x0" identifier == (cast_expression "(WandView *)0x0" ( (type_descriptor "WandView *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }" { (expression_statement "(*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);" (call_expression "(*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010)" (parenthesized_expression "(*(code *)PTR___assert_fail_0014f720)" ( (pointer_expression "*(code *)PTR___assert_fail_0014f720" * (cast_expression "(code *)PTR___assert_fail_0014f720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010)" ( (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c" identifier + number_literal) , (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10" identifier + number_literal) , number_literal , (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x5010" identifier + number_literal) ))) ;) }) (else_clause "else if (wand_view->signature == 0xabacadab) {\n    return wand_view->wand;\n  }" else (if_statement "if (wand_view->signature == 0xabacadab) {\n    return wand_view->wand;\n  }" if (parenthesized_expression "(wand_view->signature == 0xabacadab)" ( (binary_expression "wand_view->signature == 0xabacadab" (field_expression "wand_view->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    return wand_view->wand;\n  }" { (return_statement "return wand_view->wand;" return (field_expression "wand_view->wand" identifier -> field_identifier) ;) })))) (expression_statement "puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;" (assignment_expression "puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c" identifier = (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c" identifier + number_literal)) ;) (expression_statement "puVar3 = PTR___assert_fail_0014f720;" (assignment_expression "puVar3 = PTR___assert_fail_0014f720" identifier = identifier) ;) (expression_statement "(*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);" (call_expression "(*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010)" (parenthesized_expression "(*(code *)PTR___assert_fail_0014f720)" ( (pointer_expression "*(code *)PTR___assert_fail_0014f720" * (cast_expression "(code *)PTR___assert_fail_0014f720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010)" ( identifier , (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10" identifier + number_literal) , number_literal , (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x5010" identifier + number_literal) ))) ;) (if_statement "if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (MagickWand *)(uint)(iVar1 == 0);\n  }" if (parenthesized_expression "((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255))" ( (binary_expression "(puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)" (parenthesized_expression "(puVar2 != (undefined *)0x0)" ( (binary_expression "puVar2 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*(int *)(puVar2 + 0x1030) == -0x54535255)" ( (binary_expression "*(int *)(puVar2 + 0x1030) == -0x54535255" (pointer_expression "*(int *)(puVar2 + 0x1030)" * (cast_expression "(int *)(puVar2 + 0x1030)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x1030)" ( (binary_expression "puVar2 + 0x1030" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (MagickWand *)(uint)(iVar1 == 0);\n  }" { (expression_statement "iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);" (assignment_expression "iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8)" identifier = (call_expression "(**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8)" (parenthesized_expression "(**(code **)(puVar3 + 0x3e730))" ( (pointer_expression "**(code **)(puVar3 + 0x3e730)" * (pointer_expression "*(code **)(puVar3 + 0x3e730)" * (cast_expression "(code **)(puVar3 + 0x3e730)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x3e730)" ( (binary_expression "puVar3 + 0x3e730" identifier + number_literal) ))))) )) (argument_list "(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8)" ( (binary_expression "puVar2 + 4" identifier + number_literal) , (binary_expression "*(int *)(puVar3 + 0x3e02c) + 0x4e98" (pointer_expression "*(int *)(puVar3 + 0x3e02c)" * (cast_expression "(int *)(puVar3 + 0x3e02c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x3e02c)" ( (binary_expression "puVar3 + 0x3e02c" identifier + number_literal) )))) + number_literal) , number_literal )))) ;) (return_statement "return (MagickWand *)(uint)(iVar1 == 0);" return (cast_expression "(MagickWand *)(uint)(iVar1 == 0)" ( (type_descriptor "MagickWand *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )))) ;) })) (return_statement "return (MagickWand *)0x0;" return (cast_expression "(MagickWand *)0x0" ( (type_descriptor "MagickWand *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "uint GetWandViewWand(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }\n  else if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }\n  puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;\n  puVar3 = PTR___assert_fail_0014f720;\n  (*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (uint)(iVar1 == 0);\n  }\n  return 0;\n}\n\n" (function_definition "uint GetWandViewWand(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }\n  else if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }\n  puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;\n  puVar3 = PTR___assert_fail_0014f720;\n  (*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (uint)(iVar1 == 0);\n  }\n  return 0;\n}" type_identifier (function_declarator "GetWandViewWand(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }\n  else if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }\n  puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;\n  puVar3 = PTR___assert_fail_0014f720;\n  (*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (uint)(iVar1 == 0);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }\n  else if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }" { (expression_statement "(*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);" (call_expression "(*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010)" (parenthesized_expression "(*(code *)PTR___assert_fail_0014f720)" ( (pointer_expression "*(code *)PTR___assert_fail_0014f720" * (cast_expression "(code *)PTR___assert_fail_0014f720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010)" ( (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c" identifier + number_literal) , (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10" identifier + number_literal) , number_literal , (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x5010" identifier + number_literal) ))) ;) }) (else_clause "else if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }" else (if_statement "if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x1030) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x1030) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x1030)" * (cast_expression "(int *)(param_1 + 0x1030)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1030)" ( (binary_expression "param_1 + 0x1030" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    return *(uint *)(&DAT_00001018 + param_1);\n  }" { (return_statement "return *(uint *)(&DAT_00001018 + param_1);" return (pointer_expression "*(uint *)(&DAT_00001018 + param_1)" * (cast_expression "(uint *)(&DAT_00001018 + param_1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00001018 + param_1)" ( (binary_expression "&DAT_00001018 + param_1" (pointer_expression "&DAT_00001018" & identifier) + identifier) )))) ;) })))) (expression_statement "puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;" (assignment_expression "puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c" identifier = (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c" identifier + number_literal)) ;) (expression_statement "puVar3 = PTR___assert_fail_0014f720;" (assignment_expression "puVar3 = PTR___assert_fail_0014f720" identifier = identifier) ;) (expression_statement "(*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);" (call_expression "(*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010)" (parenthesized_expression "(*(code *)PTR___assert_fail_0014f720)" ( (pointer_expression "*(code *)PTR___assert_fail_0014f720" * (cast_expression "(code *)PTR___assert_fail_0014f720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010)" ( identifier , (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10" identifier + number_literal) , number_literal , (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x5010" identifier + number_literal) ))) ;) (if_statement "if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (uint)(iVar1 == 0);\n  }" if (parenthesized_expression "((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255))" ( (binary_expression "(puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)" (parenthesized_expression "(puVar2 != (undefined *)0x0)" ( (binary_expression "puVar2 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*(int *)(puVar2 + 0x1030) == -0x54535255)" ( (binary_expression "*(int *)(puVar2 + 0x1030) == -0x54535255" (pointer_expression "*(int *)(puVar2 + 0x1030)" * (cast_expression "(int *)(puVar2 + 0x1030)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x1030)" ( (binary_expression "puVar2 + 0x1030" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (uint)(iVar1 == 0);\n  }" { (expression_statement "iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);" (assignment_expression "iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8)" identifier = (call_expression "(**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8)" (parenthesized_expression "(**(code **)(puVar3 + 0x3e730))" ( (pointer_expression "**(code **)(puVar3 + 0x3e730)" * (pointer_expression "*(code **)(puVar3 + 0x3e730)" * (cast_expression "(code **)(puVar3 + 0x3e730)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x3e730)" ( (binary_expression "puVar3 + 0x3e730" identifier + number_literal) ))))) )) (argument_list "(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8)" ( (binary_expression "puVar2 + 4" identifier + number_literal) , (binary_expression "*(int *)(puVar3 + 0x3e02c) + 0x4e98" (pointer_expression "*(int *)(puVar3 + 0x3e02c)" * (cast_expression "(int *)(puVar3 + 0x3e02c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x3e02c)" ( (binary_expression "puVar3 + 0x3e02c" identifier + number_literal) )))) + number_literal) , number_literal )))) ;) (return_statement "return (uint)(iVar1 == 0);" return (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) }) (else_clause else (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 { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) ;) })))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , LIT )))) ;) (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) ))) ;) })) (return_statement return LIT ;) })))
(function_definition "uint GetWandViewWand(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }\n  else if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }\n  puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;\n  puVar3 = PTR___assert_fail_0014f720;\n  (*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (uint)(iVar1 == 0);\n  }\n  return 0;\n}" (type_identifier "uint") (function_declarator "GetWandViewWand(int param_1)" (identifier "GetWandViewWand") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }\n  else if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }\n  puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;\n  puVar3 = PTR___assert_fail_0014f720;\n  (*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (uint)(iVar1 == 0);\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (if_statement "if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }\n  else if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);\n  }" ({ "{") (expression_statement "(*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);" (call_expression "(*(code *)PTR___assert_fail_0014f720)\n              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010)" (parenthesized_expression "(*(code *)PTR___assert_fail_0014f720)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_0014f720" (* "*") (cast_expression "(code *)PTR___assert_fail_0014f720" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_0014f720"))) () ")")) (argument_list "(PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,\n               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010)" (( "(") (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c" (identifier "PTR_s_the_image__define_format_option_d_0014f030") (+ "+") (number_literal "0x4e4c")) (, ",") (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10" (identifier "PTR_s_the_image__define_format_option_d_0014f030") (+ "+") (number_literal "0x4e10")) (, ",") (number_literal "0x28c") (, ",") (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x5010" (identifier "PTR_s_the_image__define_format_option_d_0014f030") (+ "+") (number_literal "0x5010")) () ")"))) (; ";")) (} "}")) (else_clause "else if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }" (else "else") (if_statement "if (*(int *)(param_1 + 0x1030) == -0x54535255) {\n    return *(uint *)(&DAT_00001018 + param_1);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1030) == -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x1030) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x1030)" (* "*") (cast_expression "(int *)(param_1 + 0x1030)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1030)" (( "(") (binary_expression "param_1 + 0x1030" (identifier "param_1") (+ "+") (number_literal "0x1030")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    return *(uint *)(&DAT_00001018 + param_1);\n  }" ({ "{") (return_statement "return *(uint *)(&DAT_00001018 + param_1);" (return "return") (pointer_expression "*(uint *)(&DAT_00001018 + param_1)" (* "*") (cast_expression "(uint *)(&DAT_00001018 + param_1)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (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")) () ")")))) (; ";")) (} "}"))))) (expression_statement "puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;" (assignment_expression "puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c" (identifier "puVar2") (= "=") (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c" (identifier "PTR_s_the_image__define_format_option_d_0014f030") (+ "+") (number_literal "0x4e6c"))) (; ";")) (expression_statement "puVar3 = PTR___assert_fail_0014f720;" (assignment_expression "puVar3 = PTR___assert_fail_0014f720" (identifier "puVar3") (= "=") (identifier "PTR___assert_fail_0014f720")) (; ";")) (expression_statement "(*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);" (call_expression "(*(code *)PTR___assert_fail_0014f720)\n            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010)" (parenthesized_expression "(*(code *)PTR___assert_fail_0014f720)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_0014f720" (* "*") (cast_expression "(code *)PTR___assert_fail_0014f720" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_0014f720"))) () ")")) (argument_list "(puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,\n             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010)" (( "(") (identifier "puVar2") (, ",") (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10" (identifier "PTR_s_the_image__define_format_option_d_0014f030") (+ "+") (number_literal "0x4e10")) (, ",") (number_literal "0x28d") (, ",") (binary_expression "PTR_s_the_image__define_format_option_d_0014f030 + 0x5010" (identifier "PTR_s_the_image__define_format_option_d_0014f030") (+ "+") (number_literal "0x5010")) () ")"))) (; ";")) (if_statement "if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (uint)(iVar1 == 0);\n  }" (if "if") (parenthesized_expression "((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255))" (( "(") (binary_expression "(puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)" (parenthesized_expression "(puVar2 != (undefined *)0x0)" (( "(") (binary_expression "puVar2 != (undefined *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(puVar2 + 0x1030) == -0x54535255)" (( "(") (binary_expression "*(int *)(puVar2 + 0x1030) == -0x54535255" (pointer_expression "*(int *)(puVar2 + 0x1030)" (* "*") (cast_expression "(int *)(puVar2 + 0x1030)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x1030)" (( "(") (binary_expression "puVar2 + 0x1030" (identifier "puVar2") (+ "+") (number_literal "0x1030")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")"))) () ")")) (compound_statement "{\n    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);\n    return (uint)(iVar1 == 0);\n  }" ({ "{") (expression_statement "iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);" (assignment_expression "iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8)" (parenthesized_expression "(**(code **)(puVar3 + 0x3e730))" (( "(") (pointer_expression "**(code **)(puVar3 + 0x3e730)" (* "*") (pointer_expression "*(code **)(puVar3 + 0x3e730)" (* "*") (cast_expression "(code **)(puVar3 + 0x3e730)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 0x3e730)" (( "(") (binary_expression "puVar3 + 0x3e730" (identifier "puVar3") (+ "+") (number_literal "0x3e730")) () ")"))))) () ")")) (argument_list "(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8)" (( "(") (binary_expression "puVar2 + 4" (identifier "puVar2") (+ "+") (number_literal "4")) (, ",") (binary_expression "*(int *)(puVar3 + 0x3e02c) + 0x4e98" (pointer_expression "*(int *)(puVar3 + 0x3e02c)" (* "*") (cast_expression "(int *)(puVar3 + 0x3e02c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x3e02c)" (( "(") (binary_expression "puVar3 + 0x3e02c" (identifier "puVar3") (+ "+") (number_literal "0x3e02c")) () ")")))) (+ "+") (number_literal "0x4e98")) (, ",") (number_literal "8") () ")")))) (; ";")) (return_statement "return (uint)(iVar1 == 0);" (return "return") (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 * function_1(type_2 *var_1)

{
  int var_5;
  type_3 *var_3;
  type_3 *var_4;
  
  if (var_1 == (type_2 *)0x0) {
    (*(type_4 *)PTR___assert_fail_0014f720)
              (var_2 + 0x4e4c,
               var_2 + 0x4e10,0x28c,
               var_2 + 0x5010);
  }
  else if (var_1->signature == 0xabacadab) {
    return var_1->wand;
  }
  var_3 = var_2 + 0x4e6c;
  var_4 = PTR___assert_fail_0014f720;
  (*(type_4 *)PTR___assert_fail_0014f720)
            (var_3,var_2 + 0x4e10,0x28d,
             var_2 + 0x5010);
  if ((var_3 != (type_3 *)0x0) && (*(int *)(var_3 + 0x1030) == -0x54535255)) {
    var_5 = (**(type_4 **)(var_4 + 0x3e730))(var_3 + 4,*(int *)(var_4 + 0x3e02c) + 0x4e98,8);
    return (type_1 *)(uint)(var_5 == 0);
  }
  return (type_1 *)0x0;
}


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

uint MASKED(int param_1)

{
  int iVar1;
  undefined *puVar2;
  undefined *puVar3;
  
  if (param_1 == 0) {
    (*(code *)PTR___assert_fail_0014f720)
              (PTR_s_the_image__define_format_option_d_0014f030 + 0x4e4c,
               PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28c,
               PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);
  }
  else if (*(int *)(param_1 + 0x1030) == -0x54535255) {
    return *(uint *)(&DAT_00001018 + param_1);
  }
  puVar2 = PTR_s_the_image__define_format_option_d_0014f030 + 0x4e6c;
  puVar3 = PTR___assert_fail_0014f720;
  (*(code *)PTR___assert_fail_0014f720)
            (puVar2,PTR_s_the_image__define_format_option_d_0014f030 + 0x4e10,0x28d,
             PTR_s_the_image__define_format_option_d_0014f030 + 0x5010);
  if ((puVar2 != (undefined *)0x0) && (*(int *)(puVar2 + 0x1030) == -0x54535255)) {
    iVar1 = (**(code **)(puVar3 + 0x3e730))(puVar2 + 4,*(int *)(puVar3 + 0x3e02c) + 0x4e98,8);
    return (uint)(iVar1 == 0);
  }
  return 0;
}

