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

MagickBooleanType MagickWriteImageFile(MagickWand *wand,FILE *file)

{
  int iVar1;
  int iVar2;
  MagickBooleanType MVar3;
  Image *pIVar4;
  
  if (wand == (MagickWand *)0x0) {
    MVar3 = (*(code *)PTR___assert_fail_00178728)
                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,
                       PTR_s_oint_00178034 + -0x1b50);
    return MVar3;
  }
  if (wand->signature == 0xabacadab) {
    if (file != (FILE *)0x0) {
      if (wand->debug == MagickFalse) {
        pIVar4 = wand->images;
      }
      else {
        (*(code *)PTR_LogMagickEvent_00178490)
                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,
                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);
        pIVar4 = wand->images;
      }
      if (pIVar4 == (Image *)0x0) {
        (*(code *)PTR_ThrowMagickException_001782c4)
                  (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,
                   0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,
                   wand->name);
        MVar3 = MagickFalse;
      }
      else {
        iVar1 = (*(code *)PTR_CloneImage_0017885c)(pIVar4,0,0,1,wand->exception);
        if (iVar1 == 0) {
          MVar3 = MagickFalse;
        }
        else {
          iVar2 = (*(code *)PTR_CloneImageInfo_00178450)(wand->image_info);
          (*(code *)PTR_SetImageInfoFile_00178658)(iVar2,file);
          *(undefined4 *)(iVar2 + 0xc) = 1;
          MVar3 = (*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception);
          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar2);
          (*(code *)PTR_DestroyImage_001782ec)(iVar1);
        }
      }
      return MVar3;
    }
    MVar3 = (*(code *)PTR___assert_fail_00178728)
                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,
                       PTR_s_oint_00178034 + -0x1b50);
    return MVar3;
  }
  MVar3 = (*(code *)PTR___assert_fail_00178728)
                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,
                     PTR_s_oint_00178034 + -0x1b50);
  return MVar3;
}



undefined4 MagickWriteImageFile(int param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  
  if (param_1 == 0) {
    uVar2 = (*(code *)PTR___assert_fail_00178728)
                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,
                       PTR_s_oint_00178034 + -0x1b50);
    return uVar2;
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (param_2 != 0) {
      if (*(int *)(&DAT_00001018 + param_1) == 0) {
        iVar3 = *(int *)(&DAT_00001004 + param_1);
      }
      else {
        (*(code *)PTR_LogMagickEvent_00178490)
                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,
                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);
        iVar3 = *(int *)(&DAT_00001004 + param_1);
      }
      if (iVar3 == 0) {
        (*(code *)PTR_ThrowMagickException_001782c4)
                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,
                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,
                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);
        uVar2 = 0;
      }
      else {
        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));
        if (iVar3 == 0) {
          uVar2 = 0;
        }
        else {
          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));
          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);
          *(undefined4 *)(iVar1 + 0xc) = 1;
          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));
          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);
          (*(code *)PTR_DestroyImage_001782ec)(iVar3);
        }
      }
      return uVar2;
    }
    uVar2 = (*(code *)PTR___assert_fail_00178728)
                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,
                       PTR_s_oint_00178034 + -0x1b50);
    return uVar2;
  }
  uVar2 = (*(code *)PTR___assert_fail_00178728)
                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,
                     PTR_s_oint_00178034 + -0x1b50);
  return uVar2;
}


lui gp,0xd
addiu gp,gp,0x3068
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,0x000ad0c4
_lui v0,0xabac
or s0,a0,zero
lw v1,0x101c(a0)
ori v0,v0,0xadab
bne v1,v0,0x000ad0ec
_or s1,a1,zero
beq a1,zero,0x000ad114
_lw a3,-0x7fcc(gp)
lw v0,0x1018(a0)
bne v0,zero,0x000ad138
_addiu v0,a0,0x4
lw a0,0x1004(s0)
beq a0,zero,0x000ad178
_li a3,0x1
lw v0,0x100c(s0)
sw v0,0x10(sp)
or a2,zero,zero
or a1,zero,zero
lw t9,-0x77a4(gp)
jalr t9
_nop
lw gp,0x20(sp)
beq v0,zero,0x000ad1d0
_or s2,v0,zero
lw a0,0x1008(s0)
lw t9,-0x7bb0(gp)
jalr t9
_nop
lw gp,0x20(sp)
or s3,v0,zero
or a1,s1,zero
or a0,v0,zero
lw t9,-0x79a8(gp)
jalr t9
_nop
lw gp,0x20(sp)
li v0,0x1
sw v0,0xc(s3)
lw a2,0x100c(s0)
or a1,s2,zero
or a0,s3,zero
lw t9,-0x7d00(gp)
jalr t9
_nop
lw gp,0x20(sp)
or s0,v0,zero
or a0,s3,zero
lw t9,-0x78f4(gp)
jalr t9
_nop
lw gp,0x20(sp)
or a0,s2,zero
lw t9,-0x7d14(gp)
jalr t9
_nop
lw gp,0x20(sp)
or v0,s0,zero
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,-0x1b50
li a2,0x33d2
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,-0x1b50
li a2,0x33d3
lw a1,-0x7fcc(gp)
addiu a1,a1,-0x1ea0
lw a0,-0x7fcc(gp)
addiu a0,a0,-0x1e54
lw t9,-0x78d8(gp)
jalr t9
_nop
addiu a3,a3,-0x1b50
li a2,0x33d4
lw a1,-0x7fcc(gp)
addiu a1,a1,-0x1ea0
lw a0,-0x7fcc(gp)
addiu a0,a0,-0x1c84
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,0x33d6
lw a2,-0x7fcc(gp)
addiu a2,a2,-0x1b68
lw a1,-0x7fcc(gp)
addiu a1,a1,-0x1ea0
lui a0,0x4
lw t9,-0x7b70(gp)
jalr t9
_nop
lw gp,0x20(sp)
b 0x000acff4
_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,0x33d8
lw a2,-0x7fcc(gp)
addiu a2,a2,-0x1b68
lw a1,-0x7fcc(gp)
addiu a1,a1,-0x1ea0
lw t9,-0x7d3c(gp)
jalr t9
_nop
lw gp,0x20(sp)
b 0x000ad0a4
_or s0,zero,zero
b 0x000ad0a4
_or s0,zero,zero
(translation_unit "undefined4 MagickWriteImageFile(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50);\n  return uVar2;\n}\n\n" (function_definition "undefined4 MagickWriteImageFile(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50);\n  return uVar2;\n}" type_identifier (function_declarator "MagickWriteImageFile(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50);\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }" { (expression_statement "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50)" (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,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50)" ( (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 + -0x1b50" identifier + number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\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 (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }" { (if_statement "if (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }" { (if_statement "if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(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        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }" { (expression_statement "iVar3 = *(int *)(&DAT_00001004 + param_1);" (assignment_expression "iVar3 = *(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 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(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 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }" { (expression_statement "(*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\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 + -0x1b68,0x33d6,\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 + -0x1b68,0x33d6,\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 + -0x1b68" 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 "iVar3 = *(int *)(&DAT_00001004 + param_1);" (assignment_expression "iVar3 = *(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 (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }" { (expression_statement "(*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,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 + -0x1b68,0x33d8,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 + -0x1b68,0x33d8,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 + -0x1b68" 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 "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }" else (compound_statement "{\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }" { (expression_statement "iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));" (assignment_expression "iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c))" identifier = (call_expression "(*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c))" (parenthesized_expression "(*(code *)PTR_CloneImage_0017885c)" ( (pointer_expression "*(code *)PTR_CloneImage_0017885c" * (cast_expression "(code *)PTR_CloneImage_0017885c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c))" ( identifier , number_literal , number_literal , number_literal , (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 (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar2 = 0;\n        }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }" else (compound_statement "{\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }" { (expression_statement "iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));" (assignment_expression "iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1))" identifier = (call_expression "(*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1))" (parenthesized_expression "(*(code *)PTR_CloneImageInfo_00178450)" ( (pointer_expression "*(code *)PTR_CloneImageInfo_00178450" * (cast_expression "(code *)PTR_CloneImageInfo_00178450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(&DAT_00001008 + param_1))" ( (pointer_expression "*(undefined4 *)(&DAT_00001008 + param_1)" * (cast_expression "(undefined4 *)(&DAT_00001008 + param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00001008 + param_1)" ( (binary_expression "&DAT_00001008 + param_1" (pointer_expression "&DAT_00001008" & identifier) + identifier) )))) )))) ;) (expression_statement "(*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);" (call_expression "(*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2)" (parenthesized_expression "(*(code *)PTR_SetImageInfoFile_00178658)" ( (pointer_expression "*(code *)PTR_SetImageInfoFile_00178658" * (cast_expression "(code *)PTR_SetImageInfoFile_00178658" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,param_2)" ( identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = 1;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = 1" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));" (assignment_expression "uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c))" identifier = (call_expression "(*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c))" (parenthesized_expression "(*(code *)PTR_WriteImage_00178300)" ( (pointer_expression "*(code *)PTR_WriteImage_00178300" * (cast_expression "(code *)PTR_WriteImage_00178300" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c))" ( 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) )))) )))) ;) (expression_statement "(*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);" (call_expression "(*(code *)PTR_DestroyImageInfo_0017870c)(iVar1)" (parenthesized_expression "(*(code *)PTR_DestroyImageInfo_0017870c)" ( (pointer_expression "*(code *)PTR_DestroyImageInfo_0017870c" * (cast_expression "(code *)PTR_DestroyImageInfo_0017870c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_DestroyImage_001782ec)(iVar3);" (call_expression "(*(code *)PTR_DestroyImage_001782ec)(iVar3)" (parenthesized_expression "(*(code *)PTR_DestroyImage_001782ec)" ( (pointer_expression "*(code *)PTR_DestroyImage_001782ec" * (cast_expression "(code *)PTR_DestroyImage_001782ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) }))) }))) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50)" (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 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50)" ( (binary_expression "PTR_s_oint_00178034 + -0x1c84" identifier + number_literal) , (binary_expression "PTR_s_oint_00178034 + -0x1ea0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_oint_00178034 + -0x1b50" identifier + number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50)" (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,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50)" ( (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 + -0x1b50" identifier + number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n\nMagickBooleanType MagickWriteImageFile(MagickWand *wand,FILE *file)\n\n{\n  int iVar1;\n  int iVar2;\n  MagickBooleanType MVar3;\n  Image *pIVar4;\n  \n  if (wand == (MagickWand *)0x0) {\n    MVar3 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return MVar3;\n  }\n  if (wand->signature == 0xabacadab) {\n    if (file != (FILE *)0x0) {\n      if (wand->debug == MagickFalse) {\n        pIVar4 = wand->images;\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n        pIVar4 = wand->images;\n      }\n      if (pIVar4 == (Image *)0x0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,\n                   0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,\n                   wand->name);\n        MVar3 = MagickFalse;\n      }\n      else {\n        iVar1 = (*(code *)PTR_CloneImage_0017885c)(pIVar4,0,0,1,wand->exception);\n        if (iVar1 == 0) {\n          MVar3 = MagickFalse;\n        }\n        else {\n          iVar2 = (*(code *)PTR_CloneImageInfo_00178450)(wand->image_info);\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar2,file);\n          *(undefined4 *)(iVar2 + 0xc) = 1;\n          MVar3 = (*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception);\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar2);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar1);\n        }\n      }\n      return MVar3;\n    }\n    MVar3 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return MVar3;\n  }\n  MVar3 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50);\n  return MVar3;\n}\n\n" comment comment comment comment comment (function_definition "MagickBooleanType MagickWriteImageFile(MagickWand *wand,FILE *file)\n\n{\n  int iVar1;\n  int iVar2;\n  MagickBooleanType MVar3;\n  Image *pIVar4;\n  \n  if (wand == (MagickWand *)0x0) {\n    MVar3 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return MVar3;\n  }\n  if (wand->signature == 0xabacadab) {\n    if (file != (FILE *)0x0) {\n      if (wand->debug == MagickFalse) {\n        pIVar4 = wand->images;\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n        pIVar4 = wand->images;\n      }\n      if (pIVar4 == (Image *)0x0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,\n                   0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,\n                   wand->name);\n        MVar3 = MagickFalse;\n      }\n      else {\n        iVar1 = (*(code *)PTR_CloneImage_0017885c)(pIVar4,0,0,1,wand->exception);\n        if (iVar1 == 0) {\n          MVar3 = MagickFalse;\n        }\n        else {\n          iVar2 = (*(code *)PTR_CloneImageInfo_00178450)(wand->image_info);\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar2,file);\n          *(undefined4 *)(iVar2 + 0xc) = 1;\n          MVar3 = (*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception);\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar2);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar1);\n        }\n      }\n      return MVar3;\n    }\n    MVar3 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return MVar3;\n  }\n  MVar3 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50);\n  return MVar3;\n}" type_identifier (function_declarator "MagickWriteImageFile(MagickWand *wand,FILE *file)" identifier (parameter_list "(MagickWand *wand,FILE *file)" ( (parameter_declaration "MagickWand *wand" type_identifier (pointer_declarator "*wand" * identifier)) , (parameter_declaration "FILE *file" type_identifier (pointer_declarator "*file" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  MagickBooleanType MVar3;\n  Image *pIVar4;\n  \n  if (wand == (MagickWand *)0x0) {\n    MVar3 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return MVar3;\n  }\n  if (wand->signature == 0xabacadab) {\n    if (file != (FILE *)0x0) {\n      if (wand->debug == MagickFalse) {\n        pIVar4 = wand->images;\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n        pIVar4 = wand->images;\n      }\n      if (pIVar4 == (Image *)0x0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,\n                   0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,\n                   wand->name);\n        MVar3 = MagickFalse;\n      }\n      else {\n        iVar1 = (*(code *)PTR_CloneImage_0017885c)(pIVar4,0,0,1,wand->exception);\n        if (iVar1 == 0) {\n          MVar3 = MagickFalse;\n        }\n        else {\n          iVar2 = (*(code *)PTR_CloneImageInfo_00178450)(wand->image_info);\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar2,file);\n          *(undefined4 *)(iVar2 + 0xc) = 1;\n          MVar3 = (*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception);\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar2);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar1);\n        }\n      }\n      return MVar3;\n    }\n    MVar3 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return MVar3;\n  }\n  MVar3 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50);\n  return MVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "MagickBooleanType MVar3;" type_identifier identifier ;) (declaration "Image *pIVar4;" type_identifier (pointer_declarator "*pIVar4" * identifier) ;) (if_statement "if (wand == (MagickWand *)0x0) {\n    MVar3 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return MVar3;\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    MVar3 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return MVar3;\n  }" { (expression_statement "MVar3 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);" (assignment_expression "MVar3 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50)" (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,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50)" ( (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 + -0x1b50" identifier + number_literal) )))) ;) (return_statement "return MVar3;" return identifier ;) })) (if_statement "if (wand->signature == 0xabacadab) {\n    if (file != (FILE *)0x0) {\n      if (wand->debug == MagickFalse) {\n        pIVar4 = wand->images;\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n        pIVar4 = wand->images;\n      }\n      if (pIVar4 == (Image *)0x0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,\n                   0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,\n                   wand->name);\n        MVar3 = MagickFalse;\n      }\n      else {\n        iVar1 = (*(code *)PTR_CloneImage_0017885c)(pIVar4,0,0,1,wand->exception);\n        if (iVar1 == 0) {\n          MVar3 = MagickFalse;\n        }\n        else {\n          iVar2 = (*(code *)PTR_CloneImageInfo_00178450)(wand->image_info);\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar2,file);\n          *(undefined4 *)(iVar2 + 0xc) = 1;\n          MVar3 = (*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception);\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar2);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar1);\n        }\n      }\n      return MVar3;\n    }\n    MVar3 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return MVar3;\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 (file != (FILE *)0x0) {\n      if (wand->debug == MagickFalse) {\n        pIVar4 = wand->images;\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n        pIVar4 = wand->images;\n      }\n      if (pIVar4 == (Image *)0x0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,\n                   0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,\n                   wand->name);\n        MVar3 = MagickFalse;\n      }\n      else {\n        iVar1 = (*(code *)PTR_CloneImage_0017885c)(pIVar4,0,0,1,wand->exception);\n        if (iVar1 == 0) {\n          MVar3 = MagickFalse;\n        }\n        else {\n          iVar2 = (*(code *)PTR_CloneImageInfo_00178450)(wand->image_info);\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar2,file);\n          *(undefined4 *)(iVar2 + 0xc) = 1;\n          MVar3 = (*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception);\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar2);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar1);\n        }\n      }\n      return MVar3;\n    }\n    MVar3 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return MVar3;\n  }" { (if_statement "if (file != (FILE *)0x0) {\n      if (wand->debug == MagickFalse) {\n        pIVar4 = wand->images;\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n        pIVar4 = wand->images;\n      }\n      if (pIVar4 == (Image *)0x0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,\n                   0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,\n                   wand->name);\n        MVar3 = MagickFalse;\n      }\n      else {\n        iVar1 = (*(code *)PTR_CloneImage_0017885c)(pIVar4,0,0,1,wand->exception);\n        if (iVar1 == 0) {\n          MVar3 = MagickFalse;\n        }\n        else {\n          iVar2 = (*(code *)PTR_CloneImageInfo_00178450)(wand->image_info);\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar2,file);\n          *(undefined4 *)(iVar2 + 0xc) = 1;\n          MVar3 = (*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception);\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar2);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar1);\n        }\n      }\n      return MVar3;\n    }" if (parenthesized_expression "(file != (FILE *)0x0)" ( (binary_expression "file != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (wand->debug == MagickFalse) {\n        pIVar4 = wand->images;\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n        pIVar4 = wand->images;\n      }\n      if (pIVar4 == (Image *)0x0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,\n                   0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,\n                   wand->name);\n        MVar3 = MagickFalse;\n      }\n      else {\n        iVar1 = (*(code *)PTR_CloneImage_0017885c)(pIVar4,0,0,1,wand->exception);\n        if (iVar1 == 0) {\n          MVar3 = MagickFalse;\n        }\n        else {\n          iVar2 = (*(code *)PTR_CloneImageInfo_00178450)(wand->image_info);\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar2,file);\n          *(undefined4 *)(iVar2 + 0xc) = 1;\n          MVar3 = (*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception);\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar2);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar1);\n        }\n      }\n      return MVar3;\n    }" { (if_statement "if (wand->debug == MagickFalse) {\n        pIVar4 = wand->images;\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n        pIVar4 = 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        pIVar4 = wand->images;\n      }" { (expression_statement "pIVar4 = wand->images;" (assignment_expression "pIVar4 = 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 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n        pIVar4 = wand->images;\n      }" else (compound_statement "{\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,wand->name);\n        pIVar4 = wand->images;\n      }" { (expression_statement "(*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\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 + -0x1b68,0x33d6,\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 + -0x1b68,0x33d6,\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 + -0x1b68" 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 "pIVar4 = wand->images;" (assignment_expression "pIVar4 = wand->images" identifier = (field_expression "wand->images" identifier -> field_identifier)) ;) }))) (if_statement "if (pIVar4 == (Image *)0x0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,\n                   0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,\n                   wand->name);\n        MVar3 = MagickFalse;\n      }\n      else {\n        iVar1 = (*(code *)PTR_CloneImage_0017885c)(pIVar4,0,0,1,wand->exception);\n        if (iVar1 == 0) {\n          MVar3 = MagickFalse;\n        }\n        else {\n          iVar2 = (*(code *)PTR_CloneImageInfo_00178450)(wand->image_info);\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar2,file);\n          *(undefined4 *)(iVar2 + 0xc) = 1;\n          MVar3 = (*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception);\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar2);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar1);\n        }\n      }" if (parenthesized_expression "(pIVar4 == (Image *)0x0)" ( (binary_expression "pIVar4 == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,\n                   0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,\n                   wand->name);\n        MVar3 = MagickFalse;\n      }" { (expression_statement "(*(code *)PTR_ThrowMagickException_001782c4)\n                  (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,\n                   0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,\n                   wand->name);" (call_expression "(*(code *)PTR_ThrowMagickException_001782c4)\n                  (wand->exception,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,\n                   0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,\n                   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 + -0x1b68,\n                   0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,PTR_s_ision_00178030 + -0x35c,\n                   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 + -0x1b68" 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 "MVar3 = MagickFalse;" (assignment_expression "MVar3 = MagickFalse" identifier = identifier) ;) }) (else_clause "else {\n        iVar1 = (*(code *)PTR_CloneImage_0017885c)(pIVar4,0,0,1,wand->exception);\n        if (iVar1 == 0) {\n          MVar3 = MagickFalse;\n        }\n        else {\n          iVar2 = (*(code *)PTR_CloneImageInfo_00178450)(wand->image_info);\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar2,file);\n          *(undefined4 *)(iVar2 + 0xc) = 1;\n          MVar3 = (*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception);\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar2);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar1);\n        }\n      }" else (compound_statement "{\n        iVar1 = (*(code *)PTR_CloneImage_0017885c)(pIVar4,0,0,1,wand->exception);\n        if (iVar1 == 0) {\n          MVar3 = MagickFalse;\n        }\n        else {\n          iVar2 = (*(code *)PTR_CloneImageInfo_00178450)(wand->image_info);\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar2,file);\n          *(undefined4 *)(iVar2 + 0xc) = 1;\n          MVar3 = (*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception);\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar2);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar1);\n        }\n      }" { (expression_statement "iVar1 = (*(code *)PTR_CloneImage_0017885c)(pIVar4,0,0,1,wand->exception);" (assignment_expression "iVar1 = (*(code *)PTR_CloneImage_0017885c)(pIVar4,0,0,1,wand->exception)" identifier = (call_expression "(*(code *)PTR_CloneImage_0017885c)(pIVar4,0,0,1,wand->exception)" (parenthesized_expression "(*(code *)PTR_CloneImage_0017885c)" ( (pointer_expression "*(code *)PTR_CloneImage_0017885c" * (cast_expression "(code *)PTR_CloneImage_0017885c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pIVar4,0,0,1,wand->exception)" ( identifier , number_literal , number_literal , number_literal , (field_expression "wand->exception" identifier -> field_identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n          MVar3 = MagickFalse;\n        }\n        else {\n          iVar2 = (*(code *)PTR_CloneImageInfo_00178450)(wand->image_info);\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar2,file);\n          *(undefined4 *)(iVar2 + 0xc) = 1;\n          MVar3 = (*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception);\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar2);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar1);\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          MVar3 = MagickFalse;\n        }" { (expression_statement "MVar3 = MagickFalse;" (assignment_expression "MVar3 = MagickFalse" identifier = identifier) ;) }) (else_clause "else {\n          iVar2 = (*(code *)PTR_CloneImageInfo_00178450)(wand->image_info);\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar2,file);\n          *(undefined4 *)(iVar2 + 0xc) = 1;\n          MVar3 = (*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception);\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar2);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar1);\n        }" else (compound_statement "{\n          iVar2 = (*(code *)PTR_CloneImageInfo_00178450)(wand->image_info);\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar2,file);\n          *(undefined4 *)(iVar2 + 0xc) = 1;\n          MVar3 = (*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception);\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar2);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar1);\n        }" { (expression_statement "iVar2 = (*(code *)PTR_CloneImageInfo_00178450)(wand->image_info);" (assignment_expression "iVar2 = (*(code *)PTR_CloneImageInfo_00178450)(wand->image_info)" identifier = (call_expression "(*(code *)PTR_CloneImageInfo_00178450)(wand->image_info)" (parenthesized_expression "(*(code *)PTR_CloneImageInfo_00178450)" ( (pointer_expression "*(code *)PTR_CloneImageInfo_00178450" * (cast_expression "(code *)PTR_CloneImageInfo_00178450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(wand->image_info)" ( (field_expression "wand->image_info" identifier -> field_identifier) )))) ;) (expression_statement "(*(code *)PTR_SetImageInfoFile_00178658)(iVar2,file);" (call_expression "(*(code *)PTR_SetImageInfoFile_00178658)(iVar2,file)" (parenthesized_expression "(*(code *)PTR_SetImageInfoFile_00178658)" ( (pointer_expression "*(code *)PTR_SetImageInfoFile_00178658" * (cast_expression "(code *)PTR_SetImageInfoFile_00178658" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,file)" ( identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0xc) = 1;" (assignment_expression "*(undefined4 *)(iVar2 + 0xc) = 1" (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" * (cast_expression "(undefined4 *)(iVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "MVar3 = (*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception);" (assignment_expression "MVar3 = (*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception)" identifier = (call_expression "(*(code *)PTR_WriteImage_00178300)(iVar2,iVar1,wand->exception)" (parenthesized_expression "(*(code *)PTR_WriteImage_00178300)" ( (pointer_expression "*(code *)PTR_WriteImage_00178300" * (cast_expression "(code *)PTR_WriteImage_00178300" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,iVar1,wand->exception)" ( identifier , identifier , (field_expression "wand->exception" identifier -> field_identifier) )))) ;) (expression_statement "(*(code *)PTR_DestroyImageInfo_0017870c)(iVar2);" (call_expression "(*(code *)PTR_DestroyImageInfo_0017870c)(iVar2)" (parenthesized_expression "(*(code *)PTR_DestroyImageInfo_0017870c)" ( (pointer_expression "*(code *)PTR_DestroyImageInfo_0017870c" * (cast_expression "(code *)PTR_DestroyImageInfo_0017870c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_DestroyImage_001782ec)(iVar1);" (call_expression "(*(code *)PTR_DestroyImage_001782ec)(iVar1)" (parenthesized_expression "(*(code *)PTR_DestroyImage_001782ec)" ( (pointer_expression "*(code *)PTR_DestroyImage_001782ec" * (cast_expression "(code *)PTR_DestroyImage_001782ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) }))) }))) (return_statement "return MVar3;" return identifier ;) })) (expression_statement "MVar3 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);" (assignment_expression "MVar3 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50)" (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 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50)" ( (binary_expression "PTR_s_oint_00178034 + -0x1c84" identifier + number_literal) , (binary_expression "PTR_s_oint_00178034 + -0x1ea0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_oint_00178034 + -0x1b50" identifier + number_literal) )))) ;) (return_statement "return MVar3;" return identifier ;) })) (expression_statement "MVar3 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50);" (assignment_expression "MVar3 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50)" (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,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50)" ( (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 + -0x1b50" identifier + number_literal) )))) ;) (return_statement "return MVar3;" return identifier ;) })))
(translation_unit "undefined4 MagickWriteImageFile(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50);\n  return uVar2;\n}\n\n" (function_definition "undefined4 MagickWriteImageFile(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50);\n  return uVar2;\n}" type_identifier (function_declarator "MagickWriteImageFile(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50);\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }" { (expression_statement "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50)" (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,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50)" ( (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 + -0x1b50" identifier + number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\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 (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }" { (if_statement "if (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }" { (if_statement "if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(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        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }" { (expression_statement "iVar3 = *(int *)(&DAT_00001004 + param_1);" (assignment_expression "iVar3 = *(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 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(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 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }" { (expression_statement "(*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\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 + -0x1b68,0x33d6,\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 + -0x1b68,0x33d6,\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 + -0x1b68" 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 "iVar3 = *(int *)(&DAT_00001004 + param_1);" (assignment_expression "iVar3 = *(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 (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }" { (expression_statement "(*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,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 + -0x1b68,0x33d8,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 + -0x1b68,0x33d8,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 + -0x1b68" 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 "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }" else (compound_statement "{\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }" { (expression_statement "iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));" (assignment_expression "iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c))" identifier = (call_expression "(*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c))" (parenthesized_expression "(*(code *)PTR_CloneImage_0017885c)" ( (pointer_expression "*(code *)PTR_CloneImage_0017885c" * (cast_expression "(code *)PTR_CloneImage_0017885c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c))" ( identifier , number_literal , number_literal , number_literal , (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 (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar2 = 0;\n        }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }" else (compound_statement "{\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }" { (expression_statement "iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));" (assignment_expression "iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1))" identifier = (call_expression "(*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1))" (parenthesized_expression "(*(code *)PTR_CloneImageInfo_00178450)" ( (pointer_expression "*(code *)PTR_CloneImageInfo_00178450" * (cast_expression "(code *)PTR_CloneImageInfo_00178450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(&DAT_00001008 + param_1))" ( (pointer_expression "*(undefined4 *)(&DAT_00001008 + param_1)" * (cast_expression "(undefined4 *)(&DAT_00001008 + param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00001008 + param_1)" ( (binary_expression "&DAT_00001008 + param_1" (pointer_expression "&DAT_00001008" & identifier) + identifier) )))) )))) ;) (expression_statement "(*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);" (call_expression "(*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2)" (parenthesized_expression "(*(code *)PTR_SetImageInfoFile_00178658)" ( (pointer_expression "*(code *)PTR_SetImageInfoFile_00178658" * (cast_expression "(code *)PTR_SetImageInfoFile_00178658" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,param_2)" ( identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = 1;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = 1" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));" (assignment_expression "uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c))" identifier = (call_expression "(*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c))" (parenthesized_expression "(*(code *)PTR_WriteImage_00178300)" ( (pointer_expression "*(code *)PTR_WriteImage_00178300" * (cast_expression "(code *)PTR_WriteImage_00178300" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c))" ( 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) )))) )))) ;) (expression_statement "(*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);" (call_expression "(*(code *)PTR_DestroyImageInfo_0017870c)(iVar1)" (parenthesized_expression "(*(code *)PTR_DestroyImageInfo_0017870c)" ( (pointer_expression "*(code *)PTR_DestroyImageInfo_0017870c" * (cast_expression "(code *)PTR_DestroyImageInfo_0017870c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_DestroyImage_001782ec)(iVar3);" (call_expression "(*(code *)PTR_DestroyImage_001782ec)(iVar3)" (parenthesized_expression "(*(code *)PTR_DestroyImage_001782ec)" ( (pointer_expression "*(code *)PTR_DestroyImage_001782ec" * (cast_expression "(code *)PTR_DestroyImage_001782ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) }))) }))) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50)" (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 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50)" ( (binary_expression "PTR_s_oint_00178034 + -0x1c84" identifier + number_literal) , (binary_expression "PTR_s_oint_00178034 + -0x1ea0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_oint_00178034 + -0x1b50" identifier + number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50)" identifier = (call_expression "(*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50)" (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,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50)" ( (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 + -0x1b50" identifier + number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , LIT , (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 (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 (pointer_expression & IDENT) + IDENT) )))) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( 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 ;) })) (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 MagickWriteImageFile(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50);\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "MagickWriteImageFile(int param_1,int param_2)" (identifier "MagickWriteImageFile") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }\n  if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50);\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50)" (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,0x33d2,\n                       PTR_s_oint_00178034 + -0x1b50)" (( "(") (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 "0x33d2") (, ",") (binary_expression "PTR_s_oint_00178034 + -0x1b50" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "-0x1b50")) () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x101c) == -0x54535255) {\n    if (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\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 (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }\n    uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);\n    return uVar2;\n  }" ({ "{") (if_statement "if (param_2 != 0) {\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      if (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }\n      return uVar2;\n    }" ({ "{") (if_statement "if (*(int *)(&DAT_00001018 + param_1) == 0) {\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }\n      else {\n        (*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(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        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }" ({ "{") (expression_statement "iVar3 = *(int *)(&DAT_00001004 + param_1);" (assignment_expression "iVar3 = *(int *)(&DAT_00001004 + param_1)" (identifier "iVar3") (= "=") (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 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(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 + -0x1b68,0x33d6,\n                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);\n        iVar3 = *(int *)(&DAT_00001004 + param_1);\n      }" ({ "{") (expression_statement "(*(code *)PTR_LogMagickEvent_00178490)\n                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,\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 + -0x1b68,0x33d6,\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 + -0x1b68,0x33d6,\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 + -0x1b68" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "-0x1b68")) (, ",") (number_literal "0x33d6") (, ",") (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 "iVar3 = *(int *)(&DAT_00001004 + param_1);" (assignment_expression "iVar3 = *(int *)(&DAT_00001004 + param_1)" (identifier "iVar3") (= "=") (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 (iVar3 == 0) {\n        (*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }\n      else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (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 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,\n                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);\n        uVar2 = 0;\n      }" ({ "{") (expression_statement "(*(code *)PTR_ThrowMagickException_001782c4)\n                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,\n                   PTR_s_oint_00178034 + -0x1b68,0x33d8,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 + -0x1b68,0x33d8,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 + -0x1b68,0x33d8,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 + -0x1b68" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "-0x1b68")) (, ",") (number_literal "0x33d8") (, ",") (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 "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }" (else "else") (compound_statement "{\n        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));\n        if (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }\n      }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));" (assignment_expression "iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c))" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c))" (parenthesized_expression "(*(code *)PTR_CloneImage_0017885c)" (( "(") (pointer_expression "*(code *)PTR_CloneImage_0017885c" (* "*") (cast_expression "(code *)PTR_CloneImage_0017885c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_CloneImage_0017885c"))) () ")")) (argument_list "(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c))" (( "(") (identifier "iVar3") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (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 (iVar3 == 0) {\n          uVar2 = 0;\n        }\n        else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          uVar2 = 0;\n        }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }" (else "else") (compound_statement "{\n          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));\n          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);\n          *(undefined4 *)(iVar1 + 0xc) = 1;\n          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));\n          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);\n          (*(code *)PTR_DestroyImage_001782ec)(iVar3);\n        }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));" (assignment_expression "iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1))" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1))" (parenthesized_expression "(*(code *)PTR_CloneImageInfo_00178450)" (( "(") (pointer_expression "*(code *)PTR_CloneImageInfo_00178450" (* "*") (cast_expression "(code *)PTR_CloneImageInfo_00178450" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_CloneImageInfo_00178450"))) () ")")) (argument_list "(*(undefined4 *)(&DAT_00001008 + param_1))" (( "(") (pointer_expression "*(undefined4 *)(&DAT_00001008 + param_1)" (* "*") (cast_expression "(undefined4 *)(&DAT_00001008 + param_1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00001008 + param_1)" (( "(") (binary_expression "&DAT_00001008 + param_1" (pointer_expression "&DAT_00001008" (& "&") (identifier "DAT_00001008")) (+ "+") (identifier "param_1")) () ")")))) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);" (call_expression "(*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2)" (parenthesized_expression "(*(code *)PTR_SetImageInfoFile_00178658)" (( "(") (pointer_expression "*(code *)PTR_SetImageInfoFile_00178658" (* "*") (cast_expression "(code *)PTR_SetImageInfoFile_00178658" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_SetImageInfoFile_00178658"))) () ")")) (argument_list "(iVar1,param_2)" (( "(") (identifier "iVar1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = 1;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = 1" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));" (assignment_expression "uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c))" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c))" (parenthesized_expression "(*(code *)PTR_WriteImage_00178300)" (( "(") (pointer_expression "*(code *)PTR_WriteImage_00178300" (* "*") (cast_expression "(code *)PTR_WriteImage_00178300" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_WriteImage_00178300"))) () ")")) (argument_list "(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c))" (( "(") (identifier "iVar1") (, ",") (identifier "iVar3") (, ",") (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")) () ")")))) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);" (call_expression "(*(code *)PTR_DestroyImageInfo_0017870c)(iVar1)" (parenthesized_expression "(*(code *)PTR_DestroyImageInfo_0017870c)" (( "(") (pointer_expression "*(code *)PTR_DestroyImageInfo_0017870c" (* "*") (cast_expression "(code *)PTR_DestroyImageInfo_0017870c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DestroyImageInfo_0017870c"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_DestroyImage_001782ec)(iVar3);" (call_expression "(*(code *)PTR_DestroyImage_001782ec)(iVar3)" (parenthesized_expression "(*(code *)PTR_DestroyImage_001782ec)" (( "(") (pointer_expression "*(code *)PTR_DestroyImage_001782ec" (* "*") (cast_expression "(code *)PTR_DestroyImage_001782ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DestroyImage_001782ec"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (} "}")))) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR___assert_fail_00178728)\n                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50)" (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 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,\n                       PTR_s_oint_00178034 + -0x1b50)" (( "(") (binary_expression "PTR_s_oint_00178034 + -0x1c84" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "-0x1c84")) (, ",") (binary_expression "PTR_s_oint_00178034 + -0x1ea0" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "-0x1ea0")) (, ",") (number_literal "0x33d4") (, ",") (binary_expression "PTR_s_oint_00178034 + -0x1b50" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "-0x1b50")) () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR___assert_fail_00178728)\n                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50)" (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,0x33d3,\n                     PTR_s_oint_00178034 + -0x1b50)" (( "(") (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 "0x33d3") (, ",") (binary_expression "PTR_s_oint_00178034 + -0x1b50" (identifier "PTR_s_oint_00178034") (+ "+") (number_literal "-0x1b50")) () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))
(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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (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: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal) (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: (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: (pointer_expression argument: (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) (identifier)))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (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))))))))) (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)))) (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)))))))))) (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)))) (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)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  
  if (param_1 == 0) {
    uVar2 = (*(code *)PTR___assert_fail_00178728)
                      (PTR_s_oint_00178034 + -0x1e74,PTR_s_oint_00178034 + -0x1ea0,0x33d2,
                       PTR_s_oint_00178034 + -0x1b50);
    return uVar2;
  }
  if (*(int *)(param_1 + 0x101c) == -0x54535255) {
    if (param_2 != 0) {
      if (*(int *)(&DAT_00001018 + param_1) == 0) {
        iVar3 = *(int *)(&DAT_00001004 + param_1);
      }
      else {
        (*(code *)PTR_LogMagickEvent_00178490)
                  (0x40000,PTR_s_oint_00178034 + -0x1ea0,PTR_s_oint_00178034 + -0x1b68,0x33d6,
                   PTR_fde_table_entry_0015fffc_data_loc_00178038 + -0x7318,param_1 + 4);
        iVar3 = *(int *)(&DAT_00001004 + param_1);
      }
      if (iVar3 == 0) {
        (*(code *)PTR_ThrowMagickException_001782c4)
                  (*(undefined4 *)(param_1 + 0x100c),PTR_s_oint_00178034 + -0x1ea0,
                   PTR_s_oint_00178034 + -0x1b68,0x33d8,0x1d6,PTR_s_ision_00178030 + 0x7db4,
                   PTR_s_ision_00178030 + -0x35c,param_1 + 4);
        uVar2 = 0;
      }
      else {
        iVar3 = (*(code *)PTR_CloneImage_0017885c)(iVar3,0,0,1,*(undefined4 *)(param_1 + 0x100c));
        if (iVar3 == 0) {
          uVar2 = 0;
        }
        else {
          iVar1 = (*(code *)PTR_CloneImageInfo_00178450)(*(undefined4 *)(&DAT_00001008 + param_1));
          (*(code *)PTR_SetImageInfoFile_00178658)(iVar1,param_2);
          *(undefined4 *)(iVar1 + 0xc) = 1;
          uVar2 = (*(code *)PTR_WriteImage_00178300)(iVar1,iVar3,*(undefined4 *)(param_1 + 0x100c));
          (*(code *)PTR_DestroyImageInfo_0017870c)(iVar1);
          (*(code *)PTR_DestroyImage_001782ec)(iVar3);
        }
      }
      return uVar2;
    }
    uVar2 = (*(code *)PTR___assert_fail_00178728)
                      (PTR_s_oint_00178034 + -0x1c84,PTR_s_oint_00178034 + -0x1ea0,0x33d4,
                       PTR_s_oint_00178034 + -0x1b50);
    return uVar2;
  }
  uVar2 = (*(code *)PTR___assert_fail_00178728)
                    (PTR_s_oint_00178034 + -0x1e54,PTR_s_oint_00178034 + -0x1ea0,0x33d3,
                     PTR_s_oint_00178034 + -0x1b50);
  return uVar2;
}

