
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */

PixelWand ** DestroyPixelWands(PixelWand **wand,size_t number_wands)

{
  PixelWand *pPVar1;
  PixelWand **ppPVar2;
  PixelWand **ppPVar3;
  
  if (wand == (PixelWand **)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")
    ;
  }
  pPVar1 = *wand;
  if (pPVar1 != (PixelWand *)0x0) {
    if (pPVar1->signature == 0xabacadab) {
      if (pPVar1->debug != MagickFalse) {
        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",pPVar1->name
                      );
      }
      if (-1 < (int)(number_wands - 1)) {
        ppPVar2 = wand + (number_wands - 1);
        do {
          ppPVar3 = ppPVar2 + -1;
          pPVar1 = DestroyPixelWand(*ppPVar2);
          *ppPVar2 = pPVar1;
          ppPVar2 = ppPVar3;
        } while (ppPVar3 != wand + -1);
      }
      ppPVar2 = (PixelWand **)RelinquishMagickMemory(wand);
      return ppPVar2;
    }
                    /* WARNING: Subroutine does not return */
    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,
                  "DestroyPixelWands");
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void DestroyPixelWands(int *param_1,int param_2)

{
  int iVar1;
  int *piVar2;
  int *piVar3;
  
  if (param_1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")
    ;
  }
  iVar1 = *param_1;
  if (iVar1 != 0) {
    if (*(int *)(iVar1 + 0x1060) == -0x54535255) {
      if (*(int *)(iVar1 + 0x105c) != 0) {
        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);
      }
      if (-1 < param_2 + -1) {
        piVar2 = param_1 + param_2 + -1;
        do {
          piVar3 = piVar2 + -1;
          iVar1 = DestroyPixelWand(*piVar2);
          *piVar2 = iVar1;
          piVar2 = piVar3;
        } while (piVar3 != param_1 + -1);
      }
      RelinquishMagickMemory(param_1);
      return;
    }
                    /* WARNING: Subroutine does not return */
    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,
                  "DestroyPixelWands");
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001e8f0
ADD EBX,0x8d587
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x20]
TEST EBP,EBP
JZ 0x000d8b5e
MOV EAX,dword ptr [EBP]
TEST EAX,EAX
JZ 0x000d8b3f
CMP dword ptr [EAX + 0x1060],0xabacadab
JNZ 0x000d8b20
MOV EDX,dword ptr [EAX + 0x105c]
TEST EDX,EDX
JNZ 0x000d8af0
MOV EAX,dword ptr [ESP + 0x24]
SUB EAX,0x1
JS 0x000d8ad8
LEA ESI,[EBP + EAX*0x4]
LEA EDI,[EBP + -0x4]
NOP
SUB ESP,0xc
SUB ESI,0x4
PUSH dword ptr [ESI + 0x4]
CALL 0x0001c980
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EAX
CMP ESI,EDI
JNZ 0x000d8ac0
SUB ESP,0xc
PUSH EBP
CALL 0x0001dc90
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
ADD EAX,0x4
PUSH EAX
LEA EAX,[EBX + 0xfff92fa4]
PUSH EAX
LEA EAX,[EBX + 0xfff9ab08]
PUSH 0x11d
PUSH EAX
LEA EAX,[EBX + 0xfff9a0ff]
PUSH EAX
PUSH 0x40000
CALL 0x0001d6f0
ADD ESP,0x20
JMP 0x000d8aaf
LEA EAX,[EBX + 0xfff9ab1c]
PUSH EAX
LEA EAX,[EBX + 0xfff9a0ff]
PUSH 0x11b
PUSH EAX
LEA EAX,[EBX + 0xfff9a1dc]
PUSH EAX
CALL 0x0001ccf0
LEA EAX,[EBX + 0xfff9ab1c]
PUSH EAX
LEA EAX,[EBX + 0xfff9a0ff]
PUSH 0x11a
PUSH EAX
LEA EAX,[EBX + 0xfff9a13d]
PUSH EAX
CALL 0x0001ccf0
LEA EAX,[EBX + 0xfff9ab1c]
PUSH EAX
LEA EAX,[EBX + 0xfff9a0ff]
PUSH 0x119
PUSH EAX
LEA EAX,[EBX + 0xfff9a121]
PUSH EAX
CALL 0x0001ccf0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid DestroyPixelWands(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");\n}\n\n" comment (function_definition "void DestroyPixelWands(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");\n}" primitive_type (function_declarator "DestroyPixelWands(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }" { comment (expression_statement "__assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;" (call_expression "__assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")" identifier (argument_list "("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")" ( (string_literal ""wand != (PixelWand **) NULL"" " string_content ") , (string_literal ""MagickWand/pixel-wand.c"" " string_content ") , number_literal , (string_literal ""DestroyPixelWands"" " string_content ") ))) ;) })) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }" { (if_statement "if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x1060) == -0x54535255)" ( (binary_expression "*(int *)(iVar1 + 0x1060) == -0x54535255" (pointer_expression "*(int *)(iVar1 + 0x1060)" * (cast_expression "(int *)(iVar1 + 0x1060)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1060)" ( (binary_expression "iVar1 + 0x1060" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }" { (if_statement "if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }" if (parenthesized_expression "(*(int *)(iVar1 + 0x105c) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x105c) != 0" (pointer_expression "*(int *)(iVar1 + 0x105c)" * (cast_expression "(int *)(iVar1 + 0x105c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x105c)" ( (binary_expression "iVar1 + 0x105c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4)" identifier (argument_list "(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4)" ( number_literal , (string_literal ""MagickWand/pixel-wand.c"" " string_content ") , (string_literal ""DestroyPixelWands"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "iVar1 + 4" identifier + number_literal) ))) ;) })) (if_statement "if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }" if (parenthesized_expression "(-1 < param_2 + -1)" ( (binary_expression "-1 < param_2 + -1" number_literal < (binary_expression "param_2 + -1" identifier + number_literal)) )) (compound_statement "{\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }" { (expression_statement "piVar2 = param_1 + param_2 + -1;" (assignment_expression "piVar2 = param_1 + param_2 + -1" identifier = (binary_expression "param_1 + param_2 + -1" (binary_expression "param_1 + param_2" identifier + identifier) + number_literal)) ;) (do_statement "do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);" do (compound_statement "{\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        }" { (expression_statement "piVar3 = piVar2 + -1;" (assignment_expression "piVar3 = piVar2 + -1" identifier = (binary_expression "piVar2 + -1" identifier + number_literal)) ;) (expression_statement "iVar1 = DestroyPixelWand(*piVar2);" (assignment_expression "iVar1 = DestroyPixelWand(*piVar2)" identifier = (call_expression "DestroyPixelWand(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar2 = piVar3;" (assignment_expression "piVar2 = piVar3" identifier = identifier) ;) }) while (parenthesized_expression "(piVar3 != param_1 + -1)" ( (binary_expression "piVar3 != param_1 + -1" identifier != (binary_expression "param_1 + -1" identifier + number_literal)) )) ;) })) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");" (call_expression "__assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands")" identifier (argument_list "("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands")" ( (string_literal ""(*wand)->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/pixel-wand.c"" " string_content ") , number_literal , (string_literal ""DestroyPixelWands"" " string_content ") ))) ;) })) comment (expression_statement "__assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");" (call_expression "__assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands")" identifier (argument_list "("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands")" ( (string_literal ""*wand != (PixelWand *) NULL"" " string_content ") , (string_literal ""MagickWand/pixel-wand.c"" " string_content ") , number_literal , (string_literal ""DestroyPixelWands"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n\nPixelWand ** DestroyPixelWands(PixelWand **wand,size_t number_wands)\n\n{\n  PixelWand *pPVar1;\n  PixelWand **ppPVar2;\n  PixelWand **ppPVar3;\n  \n  if (wand == (PixelWand **)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }\n  pPVar1 = *wand;\n  if (pPVar1 != (PixelWand *)0x0) {\n    if (pPVar1->signature == 0xabacadab) {\n      if (pPVar1->debug != MagickFalse) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",pPVar1->name\n                      );\n      }\n      if (-1 < (int)(number_wands - 1)) {\n        ppPVar2 = wand + (number_wands - 1);\n        do {\n          ppPVar3 = ppPVar2 + -1;\n          pPVar1 = DestroyPixelWand(*ppPVar2);\n          *ppPVar2 = pPVar1;\n          ppPVar2 = ppPVar3;\n        } while (ppPVar3 != wand + -1);\n      }\n      ppPVar2 = (PixelWand **)RelinquishMagickMemory(wand);\n      return ppPVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");\n}\n\n" comment comment (function_definition "PixelWand ** DestroyPixelWands(PixelWand **wand,size_t number_wands)\n\n{\n  PixelWand *pPVar1;\n  PixelWand **ppPVar2;\n  PixelWand **ppPVar3;\n  \n  if (wand == (PixelWand **)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }\n  pPVar1 = *wand;\n  if (pPVar1 != (PixelWand *)0x0) {\n    if (pPVar1->signature == 0xabacadab) {\n      if (pPVar1->debug != MagickFalse) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",pPVar1->name\n                      );\n      }\n      if (-1 < (int)(number_wands - 1)) {\n        ppPVar2 = wand + (number_wands - 1);\n        do {\n          ppPVar3 = ppPVar2 + -1;\n          pPVar1 = DestroyPixelWand(*ppPVar2);\n          *ppPVar2 = pPVar1;\n          ppPVar2 = ppPVar3;\n        } while (ppPVar3 != wand + -1);\n      }\n      ppPVar2 = (PixelWand **)RelinquishMagickMemory(wand);\n      return ppPVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");\n}" type_identifier (pointer_declarator "** DestroyPixelWands(PixelWand **wand,size_t number_wands)" * (pointer_declarator "* DestroyPixelWands(PixelWand **wand,size_t number_wands)" * (function_declarator "DestroyPixelWands(PixelWand **wand,size_t number_wands)" identifier (parameter_list "(PixelWand **wand,size_t number_wands)" ( (parameter_declaration "PixelWand **wand" type_identifier (pointer_declarator "**wand" * (pointer_declarator "*wand" * identifier))) , (parameter_declaration "size_t number_wands" primitive_type identifier) ))))) (compound_statement "{\n  PixelWand *pPVar1;\n  PixelWand **ppPVar2;\n  PixelWand **ppPVar3;\n  \n  if (wand == (PixelWand **)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }\n  pPVar1 = *wand;\n  if (pPVar1 != (PixelWand *)0x0) {\n    if (pPVar1->signature == 0xabacadab) {\n      if (pPVar1->debug != MagickFalse) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",pPVar1->name\n                      );\n      }\n      if (-1 < (int)(number_wands - 1)) {\n        ppPVar2 = wand + (number_wands - 1);\n        do {\n          ppPVar3 = ppPVar2 + -1;\n          pPVar1 = DestroyPixelWand(*ppPVar2);\n          *ppPVar2 = pPVar1;\n          ppPVar2 = ppPVar3;\n        } while (ppPVar3 != wand + -1);\n      }\n      ppPVar2 = (PixelWand **)RelinquishMagickMemory(wand);\n      return ppPVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");\n}" { (declaration "PixelWand *pPVar1;" type_identifier (pointer_declarator "*pPVar1" * identifier) ;) (declaration "PixelWand **ppPVar2;" type_identifier (pointer_declarator "**ppPVar2" * (pointer_declarator "*ppPVar2" * identifier)) ;) (declaration "PixelWand **ppPVar3;" type_identifier (pointer_declarator "**ppPVar3" * (pointer_declarator "*ppPVar3" * identifier)) ;) (if_statement "if (wand == (PixelWand **)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }" if (parenthesized_expression "(wand == (PixelWand **)0x0)" ( (binary_expression "wand == (PixelWand **)0x0" identifier == (cast_expression "(PixelWand **)0x0" ( (type_descriptor "PixelWand **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }" { comment (expression_statement "__assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;" (call_expression "__assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")" identifier (argument_list "("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")" ( (string_literal ""wand != (PixelWand **) NULL"" " string_content ") , (string_literal ""MagickWand/pixel-wand.c"" " string_content ") , number_literal , (string_literal ""DestroyPixelWands"" " string_content ") ))) ;) })) (expression_statement "pPVar1 = *wand;" (assignment_expression "pPVar1 = *wand" identifier = (pointer_expression "*wand" * identifier)) ;) (if_statement "if (pPVar1 != (PixelWand *)0x0) {\n    if (pPVar1->signature == 0xabacadab) {\n      if (pPVar1->debug != MagickFalse) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",pPVar1->name\n                      );\n      }\n      if (-1 < (int)(number_wands - 1)) {\n        ppPVar2 = wand + (number_wands - 1);\n        do {\n          ppPVar3 = ppPVar2 + -1;\n          pPVar1 = DestroyPixelWand(*ppPVar2);\n          *ppPVar2 = pPVar1;\n          ppPVar2 = ppPVar3;\n        } while (ppPVar3 != wand + -1);\n      }\n      ppPVar2 = (PixelWand **)RelinquishMagickMemory(wand);\n      return ppPVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }" if (parenthesized_expression "(pPVar1 != (PixelWand *)0x0)" ( (binary_expression "pPVar1 != (PixelWand *)0x0" identifier != (cast_expression "(PixelWand *)0x0" ( (type_descriptor "PixelWand *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (pPVar1->signature == 0xabacadab) {\n      if (pPVar1->debug != MagickFalse) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",pPVar1->name\n                      );\n      }\n      if (-1 < (int)(number_wands - 1)) {\n        ppPVar2 = wand + (number_wands - 1);\n        do {\n          ppPVar3 = ppPVar2 + -1;\n          pPVar1 = DestroyPixelWand(*ppPVar2);\n          *ppPVar2 = pPVar1;\n          ppPVar2 = ppPVar3;\n        } while (ppPVar3 != wand + -1);\n      }\n      ppPVar2 = (PixelWand **)RelinquishMagickMemory(wand);\n      return ppPVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }" { (if_statement "if (pPVar1->signature == 0xabacadab) {\n      if (pPVar1->debug != MagickFalse) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",pPVar1->name\n                      );\n      }\n      if (-1 < (int)(number_wands - 1)) {\n        ppPVar2 = wand + (number_wands - 1);\n        do {\n          ppPVar3 = ppPVar2 + -1;\n          pPVar1 = DestroyPixelWand(*ppPVar2);\n          *ppPVar2 = pPVar1;\n          ppPVar2 = ppPVar3;\n        } while (ppPVar3 != wand + -1);\n      }\n      ppPVar2 = (PixelWand **)RelinquishMagickMemory(wand);\n      return ppPVar2;\n    }" if (parenthesized_expression "(pPVar1->signature == 0xabacadab)" ( (binary_expression "pPVar1->signature == 0xabacadab" (field_expression "pPVar1->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      if (pPVar1->debug != MagickFalse) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",pPVar1->name\n                      );\n      }\n      if (-1 < (int)(number_wands - 1)) {\n        ppPVar2 = wand + (number_wands - 1);\n        do {\n          ppPVar3 = ppPVar2 + -1;\n          pPVar1 = DestroyPixelWand(*ppPVar2);\n          *ppPVar2 = pPVar1;\n          ppPVar2 = ppPVar3;\n        } while (ppPVar3 != wand + -1);\n      }\n      ppPVar2 = (PixelWand **)RelinquishMagickMemory(wand);\n      return ppPVar2;\n    }" { (if_statement "if (pPVar1->debug != MagickFalse) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",pPVar1->name\n                      );\n      }" if (parenthesized_expression "(pPVar1->debug != MagickFalse)" ( (binary_expression "pPVar1->debug != MagickFalse" (field_expression "pPVar1->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",pPVar1->name\n                      );\n      }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",pPVar1->name\n                      );" (call_expression "LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",pPVar1->name\n                      )" identifier (argument_list "(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",pPVar1->name\n                      )" ( number_literal , (string_literal ""MagickWand/pixel-wand.c"" " string_content ") , (string_literal ""DestroyPixelWands"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "pPVar1->name" identifier -> field_identifier) ))) ;) })) (if_statement "if (-1 < (int)(number_wands - 1)) {\n        ppPVar2 = wand + (number_wands - 1);\n        do {\n          ppPVar3 = ppPVar2 + -1;\n          pPVar1 = DestroyPixelWand(*ppPVar2);\n          *ppPVar2 = pPVar1;\n          ppPVar2 = ppPVar3;\n        } while (ppPVar3 != wand + -1);\n      }" if (parenthesized_expression "(-1 < (int)(number_wands - 1))" ( (binary_expression "-1 < (int)(number_wands - 1)" number_literal < (cast_expression "(int)(number_wands - 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(number_wands - 1)" ( (binary_expression "number_wands - 1" identifier - number_literal) )))) )) (compound_statement "{\n        ppPVar2 = wand + (number_wands - 1);\n        do {\n          ppPVar3 = ppPVar2 + -1;\n          pPVar1 = DestroyPixelWand(*ppPVar2);\n          *ppPVar2 = pPVar1;\n          ppPVar2 = ppPVar3;\n        } while (ppPVar3 != wand + -1);\n      }" { (expression_statement "ppPVar2 = wand + (number_wands - 1);" (assignment_expression "ppPVar2 = wand + (number_wands - 1)" identifier = (binary_expression "wand + (number_wands - 1)" identifier + (parenthesized_expression "(number_wands - 1)" ( (binary_expression "number_wands - 1" identifier - number_literal) )))) ;) (do_statement "do {\n          ppPVar3 = ppPVar2 + -1;\n          pPVar1 = DestroyPixelWand(*ppPVar2);\n          *ppPVar2 = pPVar1;\n          ppPVar2 = ppPVar3;\n        } while (ppPVar3 != wand + -1);" do (compound_statement "{\n          ppPVar3 = ppPVar2 + -1;\n          pPVar1 = DestroyPixelWand(*ppPVar2);\n          *ppPVar2 = pPVar1;\n          ppPVar2 = ppPVar3;\n        }" { (expression_statement "ppPVar3 = ppPVar2 + -1;" (assignment_expression "ppPVar3 = ppPVar2 + -1" identifier = (binary_expression "ppPVar2 + -1" identifier + number_literal)) ;) (expression_statement "pPVar1 = DestroyPixelWand(*ppPVar2);" (assignment_expression "pPVar1 = DestroyPixelWand(*ppPVar2)" identifier = (call_expression "DestroyPixelWand(*ppPVar2)" identifier (argument_list "(*ppPVar2)" ( (pointer_expression "*ppPVar2" * identifier) )))) ;) (expression_statement "*ppPVar2 = pPVar1;" (assignment_expression "*ppPVar2 = pPVar1" (pointer_expression "*ppPVar2" * identifier) = identifier) ;) (expression_statement "ppPVar2 = ppPVar3;" (assignment_expression "ppPVar2 = ppPVar3" identifier = identifier) ;) }) while (parenthesized_expression "(ppPVar3 != wand + -1)" ( (binary_expression "ppPVar3 != wand + -1" identifier != (binary_expression "wand + -1" identifier + number_literal)) )) ;) })) (expression_statement "ppPVar2 = (PixelWand **)RelinquishMagickMemory(wand);" (assignment_expression "ppPVar2 = (PixelWand **)RelinquishMagickMemory(wand)" identifier = (cast_expression "(PixelWand **)RelinquishMagickMemory(wand)" ( (type_descriptor "PixelWand **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "RelinquishMagickMemory(wand)" identifier (argument_list "(wand)" ( identifier ))))) ;) (return_statement "return ppPVar2;" return identifier ;) })) comment (expression_statement "__assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");" (call_expression "__assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands")" identifier (argument_list "("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands")" ( (string_literal ""(*wand)->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/pixel-wand.c"" " string_content ") , number_literal , (string_literal ""DestroyPixelWands"" " string_content ") ))) ;) })) comment (expression_statement "__assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");" (call_expression "__assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands")" identifier (argument_list "("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands")" ( (string_literal ""*wand != (PixelWand *) NULL"" " string_content ") , (string_literal ""MagickWand/pixel-wand.c"" " string_content ") , number_literal , (string_literal ""DestroyPixelWands"" " string_content ") ))) ;) })))
(translation_unit "void DestroyPixelWands(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }\n                    \n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }\n                    \n  __assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");\n}\n\n" (function_definition "void DestroyPixelWands(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }\n                    \n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }\n                    \n  __assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");\n}" primitive_type (function_declarator "DestroyPixelWands(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }\n                    \n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }\n                    \n  __assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }" { (expression_statement "__assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;" (call_expression "__assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")" identifier (argument_list "("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")" ( (string_literal ""wand != (PixelWand **) NULL"" " string_content ") , (string_literal ""MagickWand/pixel-wand.c"" " string_content ") , number_literal , (string_literal ""DestroyPixelWands"" " string_content ") ))) ;) })) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }\n                    \n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }\n                    \n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }" { (if_statement "if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x1060) == -0x54535255)" ( (binary_expression "*(int *)(iVar1 + 0x1060) == -0x54535255" (pointer_expression "*(int *)(iVar1 + 0x1060)" * (cast_expression "(int *)(iVar1 + 0x1060)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1060)" ( (binary_expression "iVar1 + 0x1060" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }" { (if_statement "if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }" if (parenthesized_expression "(*(int *)(iVar1 + 0x105c) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x105c) != 0" (pointer_expression "*(int *)(iVar1 + 0x105c)" * (cast_expression "(int *)(iVar1 + 0x105c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x105c)" ( (binary_expression "iVar1 + 0x105c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }" { (expression_statement "LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4)" identifier (argument_list "(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4)" ( number_literal , (string_literal ""MagickWand/pixel-wand.c"" " string_content ") , (string_literal ""DestroyPixelWands"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (binary_expression "iVar1 + 4" identifier + number_literal) ))) ;) })) (if_statement "if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }" if (parenthesized_expression "(-1 < param_2 + -1)" ( (binary_expression "-1 < param_2 + -1" number_literal < (binary_expression "param_2 + -1" identifier + number_literal)) )) (compound_statement "{\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }" { (expression_statement "piVar2 = param_1 + param_2 + -1;" (assignment_expression "piVar2 = param_1 + param_2 + -1" identifier = (binary_expression "param_1 + param_2 + -1" (binary_expression "param_1 + param_2" identifier + identifier) + number_literal)) ;) (do_statement "do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);" do (compound_statement "{\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        }" { (expression_statement "piVar3 = piVar2 + -1;" (assignment_expression "piVar3 = piVar2 + -1" identifier = (binary_expression "piVar2 + -1" identifier + number_literal)) ;) (expression_statement "iVar1 = DestroyPixelWand(*piVar2);" (assignment_expression "iVar1 = DestroyPixelWand(*piVar2)" identifier = (call_expression "DestroyPixelWand(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar2 = piVar3;" (assignment_expression "piVar2 = piVar3" identifier = identifier) ;) }) while (parenthesized_expression "(piVar3 != param_1 + -1)" ( (binary_expression "piVar3 != param_1 + -1" identifier != (binary_expression "param_1 + -1" identifier + number_literal)) )) ;) })) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "__assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");" (call_expression "__assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands")" identifier (argument_list "("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands")" ( (string_literal ""(*wand)->signature == MagickWandSignature"" " string_content ") , (string_literal ""MagickWand/pixel-wand.c"" " string_content ") , number_literal , (string_literal ""DestroyPixelWands"" " string_content ") ))) ;) })) (expression_statement "__assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");" (call_expression "__assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands")" identifier (argument_list "("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands")" ( (string_literal ""*wand != (PixelWand *) NULL"" " string_content ") , (string_literal ""MagickWand/pixel-wand.c"" " string_content ") , number_literal , (string_literal ""DestroyPixelWands"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (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 IDENT + LIT) )))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") , (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + LIT)) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void DestroyPixelWands(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }\n                    \n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }\n                    \n  __assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");\n}" (primitive_type "void") (function_declarator "DestroyPixelWands(int *param_1,int param_2)" (identifier "DestroyPixelWands") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }\n                    \n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }\n                    \n  __assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (if_statement "if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }" (if "if") (parenthesized_expression "(param_1 == (int *)0x0)" (( "(") (binary_expression "param_1 == (int *)0x0" (identifier "param_1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;\n  }" ({ "{") (expression_statement "__assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")\n    ;" (call_expression "__assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")" (identifier "__assert_fail") (argument_list "("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")" (( "(") (string_literal ""wand != (PixelWand **) NULL"" (" """) (string_content "wand != (PixelWand **) NULL") (" """)) (, ",") (string_literal ""MagickWand/pixel-wand.c"" (" """) (string_content "MagickWand/pixel-wand.c") (" """)) (, ",") (number_literal "0x119") (, ",") (string_literal ""DestroyPixelWands"" (" """) (string_content "DestroyPixelWands") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }\n                    \n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }\n                    \n    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");\n  }" ({ "{") (if_statement "if (*(int *)(iVar1 + 0x1060) == -0x54535255) {\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x1060) == -0x54535255)" (( "(") (binary_expression "*(int *)(iVar1 + 0x1060) == -0x54535255" (pointer_expression "*(int *)(iVar1 + 0x1060)" (* "*") (cast_expression "(int *)(iVar1 + 0x1060)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1060)" (( "(") (binary_expression "iVar1 + 0x1060" (identifier "iVar1") (+ "+") (number_literal "0x1060")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n      if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }\n      if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }\n      RelinquishMagickMemory(param_1);\n      return;\n    }" ({ "{") (if_statement "if (*(int *)(iVar1 + 0x105c) != 0) {\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x105c) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x105c) != 0" (pointer_expression "*(int *)(iVar1 + 0x105c)" (* "*") (cast_expression "(int *)(iVar1 + 0x105c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x105c)" (( "(") (binary_expression "iVar1 + 0x105c" (identifier "iVar1") (+ "+") (number_literal "0x105c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);\n      }" ({ "{") (expression_statement "LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4);" (call_expression "LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4)" (identifier "LogMagickEvent") (argument_list "(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",iVar1 + 4)" (( "(") (number_literal "0x40000") (, ",") (string_literal ""MagickWand/pixel-wand.c"" (" """) (string_content "MagickWand/pixel-wand.c") (" """)) (, ",") (string_literal ""DestroyPixelWands"" (" """) (string_content "DestroyPixelWands") (" """)) (, ",") (number_literal "0x11d") (, ",") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))) (; ";")) (} "}"))) (if_statement "if (-1 < param_2 + -1) {\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }" (if "if") (parenthesized_expression "(-1 < param_2 + -1)" (( "(") (binary_expression "-1 < param_2 + -1" (number_literal "-1") (< "<") (binary_expression "param_2 + -1" (identifier "param_2") (+ "+") (number_literal "-1"))) () ")")) (compound_statement "{\n        piVar2 = param_1 + param_2 + -1;\n        do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);\n      }" ({ "{") (expression_statement "piVar2 = param_1 + param_2 + -1;" (assignment_expression "piVar2 = param_1 + param_2 + -1" (identifier "piVar2") (= "=") (binary_expression "param_1 + param_2 + -1" (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2")) (+ "+") (number_literal "-1"))) (; ";")) (do_statement "do {\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        } while (piVar3 != param_1 + -1);" (do "do") (compound_statement "{\n          piVar3 = piVar2 + -1;\n          iVar1 = DestroyPixelWand(*piVar2);\n          *piVar2 = iVar1;\n          piVar2 = piVar3;\n        }" ({ "{") (expression_statement "piVar3 = piVar2 + -1;" (assignment_expression "piVar3 = piVar2 + -1" (identifier "piVar3") (= "=") (binary_expression "piVar2 + -1" (identifier "piVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar1 = DestroyPixelWand(*piVar2);" (assignment_expression "iVar1 = DestroyPixelWand(*piVar2)" (identifier "iVar1") (= "=") (call_expression "DestroyPixelWand(*piVar2)" (identifier "DestroyPixelWand") (argument_list "(*piVar2)" (( "(") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) () ")")))) (; ";")) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "piVar2 = piVar3;" (assignment_expression "piVar2 = piVar3" (identifier "piVar2") (= "=") (identifier "piVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar3 != param_1 + -1)" (( "(") (binary_expression "piVar3 != param_1 + -1" (identifier "piVar3") (!= "!=") (binary_expression "param_1 + -1" (identifier "param_1") (+ "+") (number_literal "-1"))) () ")")) (; ";")) (} "}"))) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" (identifier "RelinquishMagickMemory") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands");" (call_expression "__assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands")" (identifier "__assert_fail") (argument_list "("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,\n                  "DestroyPixelWands")" (( "(") (string_literal ""(*wand)->signature == MagickWandSignature"" (" """) (string_content "(*wand)->signature == MagickWandSignature") (" """)) (, ",") (string_literal ""MagickWand/pixel-wand.c"" (" """) (string_content "MagickWand/pixel-wand.c") (" """)) (, ",") (number_literal "0x11b") (, ",") (string_literal ""DestroyPixelWands"" (" """) (string_content "DestroyPixelWands") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "__assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");" (call_expression "__assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands")" (identifier "__assert_fail") (argument_list "("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands")" (( "(") (string_literal ""*wand != (PixelWand *) NULL"" (" """) (string_content "*wand != (PixelWand *) NULL") (" """)) (, ",") (string_literal ""MagickWand/pixel-wand.c"" (" """) (string_content "MagickWand/pixel-wand.c") (" """)) (, ",") (number_literal "0x11a") (, ",") (string_literal ""DestroyPixelWands"" (" """) (string_content "DestroyPixelWands") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */

type_1 ** function_1(type_1 **var_1,size_t var_6)

{
  type_1 *var_3;
  type_1 **var_7;
  type_1 **var_9;
  
  if (var_1 == (type_1 **)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"DestroyPixelWands")
    ;
  }
  var_3 = *var_1;
  if (var_3 != (type_1 *)0x0) {
    if (var_3->signature == 0xabacadab) {
      if (var_3->debug != var_4) {
        var_5(0x40000,"MagickWand/pixel-wand.c","DestroyPixelWands",0x11d,"%s",var_3->name
                      );
      }
      if (-1 < (int)(var_6 - 1)) {
        var_7 = var_1 + (var_6 - 1);
        do {
          var_9 = var_7 + -1;
          var_3 = var_8(*var_7);
          *var_7 = var_3;
          var_7 = var_9;
        } while (var_9 != var_1 + -1);
      }
      var_7 = (type_1 **)var_10(var_1);
      return var_7;
    }
                    /* WARNING: Subroutine does not return */
    var_2("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,
                  "DestroyPixelWands");
  }
                    /* WARNING: Subroutine does not return */
  var_2("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"DestroyPixelWands");
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(int *param_1,int param_2)

{
  int iVar1;
  int *piVar2;
  int *piVar3;
  
  if (param_1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("wand != (PixelWand **) NULL","MagickWand/pixel-wand.c",0x119,"MASKED")
    ;
  }
  iVar1 = *param_1;
  if (iVar1 != 0) {
    if (*(int *)(iVar1 + 0x1060) == -0x54535255) {
      if (*(int *)(iVar1 + 0x105c) != 0) {
        LogMagickEvent(0x40000,"MagickWand/pixel-wand.c","MASKED",0x11d,"%s",iVar1 + 4);
      }
      if (-1 < param_2 + -1) {
        piVar2 = param_1 + param_2 + -1;
        do {
          piVar3 = piVar2 + -1;
          iVar1 = DestroyPixelWand(*piVar2);
          *piVar2 = iVar1;
          piVar2 = piVar3;
        } while (piVar3 != param_1 + -1);
      }
      RelinquishMagickMemory(param_1);
      return;
    }
                    /* WARNING: Subroutine does not return */
    __assert_fail("(*wand)->signature == MagickWandSignature","MagickWand/pixel-wand.c",0x11b,
                  "MASKED");
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("*wand != (PixelWand *) NULL","MagickWand/pixel-wand.c",0x11a,"MASKED");
}

