
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": 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 */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

void AcquireNextImage(ImageInfo *image_info,Image *image,ExceptionInfo *exception)

{
  _Image *p_Var1;
  EndianType EVar2;
  size_t sVar3;
  Image *pIVar4;
  BlobInfo *pBVar5;
  
  if (image == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");
  }
  if (image->signature == 0xabacadab) {
    if (image->debug != MagickFalse) {
      LogMagickEvent(TraceEvent,"MagickCore/image.c","AcquireNextImage",0x175,"%s",image->filename);
    }
    pIVar4 = AcquireImage(image_info,exception);
    image->next = pIVar4;
    pIVar4 = GetNextImageInList(image);
    if (pIVar4 != (Image *)0x0) {
      CopyMagickString(pIVar4->filename,image->filename,0x1000);
      if (image_info != (ImageInfo *)0x0) {
        pIVar4 = GetNextImageInList(image);
        CopyMagickString(pIVar4->filename,image_info->filename,0x1000);
      }
      pIVar4 = GetNextImageInList(image);
      DestroyBlob(pIVar4);
      p_Var1 = image->next;
      pBVar5 = ReferenceBlob(image->blob);
      EVar2 = image->endian;
      p_Var1->blob = pBVar5;
      sVar3 = image->scene;
      p_Var1 = image->next;
      p_Var1->endian = EVar2;
      p_Var1->scene = sVar3 + 1;
      p_Var1->previous = image;
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,
                "AcquireNextImage");
}



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

void AcquireNextImage(int param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 uVar4;
  
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");
  }
  if (*(int *)(param_2 + 0x3344) == -0x54535255) {
    if (*(int *)(param_2 + 0x3328) != 0) {
      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,
                     param_2 + 0x318);
    }
    uVar2 = AcquireImage(param_1,param_3);
    *(undefined4 *)(param_2 + 0x3340) = uVar2;
    iVar3 = GetNextImageInList(param_2);
    if (iVar3 != 0) {
      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);
      if (param_1 != 0) {
        iVar3 = GetNextImageInList(param_2);
        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);
      }
      uVar2 = GetNextImageInList(param_2);
      DestroyBlob(uVar2);
      iVar3 = *(int *)(param_2 + 0x3340);
      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));
      uVar2 = *(undefined4 *)(param_2 + 0x234);
      *(undefined4 *)(iVar3 + 0x3320) = uVar4;
      iVar3 = *(int *)(param_2 + 0x244);
      iVar1 = *(int *)(param_2 + 0x3340);
      *(undefined4 *)(iVar1 + 0x234) = uVar2;
      *(int *)(iVar1 + 0x244) = iVar3 + 1;
      *(int *)(iVar1 + 0x333c) = param_2;
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,
                "AcquireNextImage");
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x14]
CALL 0x00038830
ADD EBX,0x2f2174
MOV EDI,dword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x000e6fd5
CMP dword ptr [ESI + 0x3344],0xabacadab
JNZ 0x000e6fb6
MOV EDX,dword ptr [ESI + 0x3328]
TEST EDX,EDX
JNZ 0x000e6f80
SUB ESP,0x8
PUSH dword ptr [ESP + 0x20]
PUSH EDI
CALL 0x000313c0
MOV dword ptr [ESI + 0x3340],EAX
MOV dword ptr [ESP],ESI
CALL 0x000319e0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000e6f7c
LEA EDX,[ESI + 0x318]
SUB ESP,0x4
ADD EAX,0x318
PUSH 0x1000
PUSH EDX
PUSH EAX
CALL 0x00030b70
ADD ESP,0x10
TEST EDI,EDI
JZ 0x000e6f29
SUB ESP,0xc
ADD EDI,0x21f0
PUSH ESI
CALL 0x000319e0
ADD ESP,0xc
ADD EAX,0x318
PUSH 0x1000
PUSH EDI
PUSH EAX
CALL 0x00030b70
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x000319e0
MOV dword ptr [ESP],EAX
CALL 0x00032ab0
POP EAX
MOV EDI,dword ptr [ESI + 0x3340]
PUSH dword ptr [ESI + 0x3320]
CALL 0x00032120
MOV EDX,dword ptr [ESI + 0x234]
ADD ESP,0x10
MOV dword ptr [EDI + 0x3320],EAX
MOV ECX,dword ptr [ESI + 0x244]
MOV EAX,dword ptr [ESI + 0x3340]
MOV dword ptr [EAX + 0x234],EDX
LEA EDX,[ECX + 0x1]
MOV dword ptr [EAX + 0x244],EDX
MOV dword ptr [EAX + 0x333c],ESI
POP EBX
POP ESI
POP EDI
RET
LEA EAX,[ESI + 0x318]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xffedde4e]
PUSH EAX
LEA EAX,[EBX + 0xffedece0]
PUSH 0x175
PUSH EAX
LEA EAX,[EBX + 0xffede4fb]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
ADD ESP,0x20
JMP 0x000e6ebc
LEA EAX,[EBX + 0xffedecf4]
PUSH EAX
LEA EAX,[EBX + 0xffede4fb]
PUSH 0x173
PUSH EAX
LEA EAX,[EBX + 0xffed1338]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffedecf4]
PUSH EAX
LEA EAX,[EBX + 0xffede4fb]
PUSH 0x172
PUSH EAX
LEA EAX,[EBX + 0xffede594]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid AcquireNextImage(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }\n  if (*(int *)(param_2 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }\n    uVar2 = AcquireImage(param_1,param_3);\n    *(undefined4 *)(param_2 + 0x3340) = uVar2;\n    iVar3 = GetNextImageInList(param_2);\n    if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage");\n}\n\n" comment (function_definition "void AcquireNextImage(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }\n  if (*(int *)(param_2 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }\n    uVar2 = AcquireImage(param_1,param_3);\n    *(undefined4 *)(param_2 + 0x3340) = uVar2;\n    iVar3 = GetNextImageInList(param_2);\n    if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage");\n}" primitive_type (function_declarator "AcquireNextImage(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }\n  if (*(int *)(param_2 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }\n    uVar2 = AcquireImage(param_1,param_3);\n    *(undefined4 *)(param_2 + 0x3340) = uVar2;\n    iVar3 = GetNextImageInList(param_2);\n    if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage")" identifier (argument_list "("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/image.c"" " string_content ") , number_literal , (string_literal ""AcquireNextImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_2 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }\n    uVar2 = AcquireImage(param_1,param_3);\n    *(undefined4 *)(param_2 + 0x3340) = uVar2;\n    iVar3 = GetNextImageInList(param_2);\n    if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x3344) == -0x54535255)" ( (binary_expression "*(int *)(param_2 + 0x3344) == -0x54535255" (pointer_expression "*(int *)(param_2 + 0x3344)" * (cast_expression "(int *)(param_2 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3344)" ( (binary_expression "param_2 + 0x3344" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }\n    uVar2 = AcquireImage(param_1,param_3);\n    *(undefined4 *)(param_2 + 0x3340) = uVar2;\n    iVar3 = GetNextImageInList(param_2);\n    if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }\n    return;\n  }" { (if_statement "if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }" if (parenthesized_expression "(*(int *)(param_2 + 0x3328) != 0)" ( (binary_expression "*(int *)(param_2 + 0x3328) != 0" (pointer_expression "*(int *)(param_2 + 0x3328)" * (cast_expression "(int *)(param_2 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3328)" ( (binary_expression "param_2 + 0x3328" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318)" ( number_literal , (string_literal ""MagickCore/image.c"" " string_content ") , (string_literal ""AcquireNextImage"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_2 + 0x318" identifier + number_literal) ))) ;) })) (expression_statement "uVar2 = AcquireImage(param_1,param_3);" (assignment_expression "uVar2 = AcquireImage(param_1,param_3)" identifier = (call_expression "AcquireImage(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x3340) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 0x3340) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 0x3340)" * (cast_expression "(undefined4 *)(param_2 + 0x3340)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3340)" ( (binary_expression "param_2 + 0x3340" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = GetNextImageInList(param_2);" (assignment_expression "iVar3 = GetNextImageInList(param_2)" identifier = (call_expression "GetNextImageInList(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }" { (expression_statement "CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);" (call_expression "CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000)" identifier (argument_list "(iVar3 + 0x318,param_2 + 0x318,0x1000)" ( (binary_expression "iVar3 + 0x318" identifier + number_literal) , (binary_expression "param_2 + 0x318" identifier + number_literal) , number_literal ))) ;) (if_statement "if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }" { (expression_statement "iVar3 = GetNextImageInList(param_2);" (assignment_expression "iVar3 = GetNextImageInList(param_2)" identifier = (call_expression "GetNextImageInList(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);" (call_expression "CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000)" identifier (argument_list "(iVar3 + 0x318,param_1 + 0x21f0,0x1000)" ( (binary_expression "iVar3 + 0x318" identifier + number_literal) , (binary_expression "param_1 + 0x21f0" identifier + number_literal) , number_literal ))) ;) })) (expression_statement "uVar2 = GetNextImageInList(param_2);" (assignment_expression "uVar2 = GetNextImageInList(param_2)" identifier = (call_expression "GetNextImageInList(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "DestroyBlob(uVar2);" (call_expression "DestroyBlob(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "iVar3 = *(int *)(param_2 + 0x3340);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x3340)" identifier = (pointer_expression "*(int *)(param_2 + 0x3340)" * (cast_expression "(int *)(param_2 + 0x3340)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3340)" ( (binary_expression "param_2 + 0x3340" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));" (assignment_expression "uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320))" identifier = (call_expression "ReferenceBlob(*(undefined4 *)(param_2 + 0x3320))" identifier (argument_list "(*(undefined4 *)(param_2 + 0x3320))" ( (pointer_expression "*(undefined4 *)(param_2 + 0x3320)" * (cast_expression "(undefined4 *)(param_2 + 0x3320)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3320)" ( (binary_expression "param_2 + 0x3320" identifier + number_literal) )))) )))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x234);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x234)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x234)" * (cast_expression "(undefined4 *)(param_2 + 0x234)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x234)" ( (binary_expression "param_2 + 0x234" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x3320) = uVar4;" (assignment_expression "*(undefined4 *)(iVar3 + 0x3320) = uVar4" (pointer_expression "*(undefined4 *)(iVar3 + 0x3320)" * (cast_expression "(undefined4 *)(iVar3 + 0x3320)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x3320)" ( (binary_expression "iVar3 + 0x3320" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = *(int *)(param_2 + 0x244);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x244)" identifier = (pointer_expression "*(int *)(param_2 + 0x244)" * (cast_expression "(int *)(param_2 + 0x244)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x244)" ( (binary_expression "param_2 + 0x244" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(param_2 + 0x3340);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x3340)" identifier = (pointer_expression "*(int *)(param_2 + 0x3340)" * (cast_expression "(int *)(param_2 + 0x3340)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3340)" ( (binary_expression "param_2 + 0x3340" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x234) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x234) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x234)" * (cast_expression "(undefined4 *)(iVar1 + 0x234)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x234)" ( (binary_expression "iVar1 + 0x234" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar1 + 0x244) = iVar3 + 1;" (assignment_expression "*(int *)(iVar1 + 0x244) = iVar3 + 1" (pointer_expression "*(int *)(iVar1 + 0x244)" * (cast_expression "(int *)(iVar1 + 0x244)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x244)" ( (binary_expression "iVar1 + 0x244" identifier + number_literal) )))) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar1 + 0x333c) = param_2;" (assignment_expression "*(int *)(iVar1 + 0x333c) = param_2" (pointer_expression "*(int *)(iVar1 + 0x333c)" * (cast_expression "(int *)(iVar1 + 0x333c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x333c)" ( (binary_expression "iVar1 + 0x333c" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/image.c"" " string_content ") , number_literal , (string_literal ""AcquireNextImage"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": 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/* WARNING: Enum "LogEventType": Some values do not have unique names */\n\nvoid AcquireNextImage(ImageInfo *image_info,Image *image,ExceptionInfo *exception)\n\n{\n  _Image *p_Var1;\n  EndianType EVar2;\n  size_t sVar3;\n  Image *pIVar4;\n  BlobInfo *pBVar5;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }\n  if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/image.c","AcquireNextImage",0x175,"%s",image->filename);\n    }\n    pIVar4 = AcquireImage(image_info,exception);\n    image->next = pIVar4;\n    pIVar4 = GetNextImageInList(image);\n    if (pIVar4 != (Image *)0x0) {\n      CopyMagickString(pIVar4->filename,image->filename,0x1000);\n      if (image_info != (ImageInfo *)0x0) {\n        pIVar4 = GetNextImageInList(image);\n        CopyMagickString(pIVar4->filename,image_info->filename,0x1000);\n      }\n      pIVar4 = GetNextImageInList(image);\n      DestroyBlob(pIVar4);\n      p_Var1 = image->next;\n      pBVar5 = ReferenceBlob(image->blob);\n      EVar2 = image->endian;\n      p_Var1->blob = pBVar5;\n      sVar3 = image->scene;\n      p_Var1 = image->next;\n      p_Var1->endian = EVar2;\n      p_Var1->scene = sVar3 + 1;\n      p_Var1->previous = image;\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage");\n}\n\n" comment comment comment comment comment comment comment (function_definition "void AcquireNextImage(ImageInfo *image_info,Image *image,ExceptionInfo *exception)\n\n{\n  _Image *p_Var1;\n  EndianType EVar2;\n  size_t sVar3;\n  Image *pIVar4;\n  BlobInfo *pBVar5;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }\n  if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/image.c","AcquireNextImage",0x175,"%s",image->filename);\n    }\n    pIVar4 = AcquireImage(image_info,exception);\n    image->next = pIVar4;\n    pIVar4 = GetNextImageInList(image);\n    if (pIVar4 != (Image *)0x0) {\n      CopyMagickString(pIVar4->filename,image->filename,0x1000);\n      if (image_info != (ImageInfo *)0x0) {\n        pIVar4 = GetNextImageInList(image);\n        CopyMagickString(pIVar4->filename,image_info->filename,0x1000);\n      }\n      pIVar4 = GetNextImageInList(image);\n      DestroyBlob(pIVar4);\n      p_Var1 = image->next;\n      pBVar5 = ReferenceBlob(image->blob);\n      EVar2 = image->endian;\n      p_Var1->blob = pBVar5;\n      sVar3 = image->scene;\n      p_Var1 = image->next;\n      p_Var1->endian = EVar2;\n      p_Var1->scene = sVar3 + 1;\n      p_Var1->previous = image;\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage");\n}" primitive_type (function_declarator "AcquireNextImage(ImageInfo *image_info,Image *image,ExceptionInfo *exception)" identifier (parameter_list "(ImageInfo *image_info,Image *image,ExceptionInfo *exception)" ( (parameter_declaration "ImageInfo *image_info" type_identifier (pointer_declarator "*image_info" * identifier)) , (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) ))) (compound_statement "{\n  _Image *p_Var1;\n  EndianType EVar2;\n  size_t sVar3;\n  Image *pIVar4;\n  BlobInfo *pBVar5;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }\n  if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/image.c","AcquireNextImage",0x175,"%s",image->filename);\n    }\n    pIVar4 = AcquireImage(image_info,exception);\n    image->next = pIVar4;\n    pIVar4 = GetNextImageInList(image);\n    if (pIVar4 != (Image *)0x0) {\n      CopyMagickString(pIVar4->filename,image->filename,0x1000);\n      if (image_info != (ImageInfo *)0x0) {\n        pIVar4 = GetNextImageInList(image);\n        CopyMagickString(pIVar4->filename,image_info->filename,0x1000);\n      }\n      pIVar4 = GetNextImageInList(image);\n      DestroyBlob(pIVar4);\n      p_Var1 = image->next;\n      pBVar5 = ReferenceBlob(image->blob);\n      EVar2 = image->endian;\n      p_Var1->blob = pBVar5;\n      sVar3 = image->scene;\n      p_Var1 = image->next;\n      p_Var1->endian = EVar2;\n      p_Var1->scene = sVar3 + 1;\n      p_Var1->previous = image;\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage");\n}" { (declaration "_Image *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (declaration "EndianType EVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "Image *pIVar4;" type_identifier (pointer_declarator "*pIVar4" * identifier) ;) (declaration "BlobInfo *pBVar5;" type_identifier (pointer_declarator "*pBVar5" * identifier) ;) (if_statement "if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }" if (parenthesized_expression "(image == (Image *)0x0)" ( (binary_expression "image == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage")" identifier (argument_list "("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/image.c"" " string_content ") , number_literal , (string_literal ""AcquireNextImage"" " string_content ") ))) ;) })) (if_statement "if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/image.c","AcquireNextImage",0x175,"%s",image->filename);\n    }\n    pIVar4 = AcquireImage(image_info,exception);\n    image->next = pIVar4;\n    pIVar4 = GetNextImageInList(image);\n    if (pIVar4 != (Image *)0x0) {\n      CopyMagickString(pIVar4->filename,image->filename,0x1000);\n      if (image_info != (ImageInfo *)0x0) {\n        pIVar4 = GetNextImageInList(image);\n        CopyMagickString(pIVar4->filename,image_info->filename,0x1000);\n      }\n      pIVar4 = GetNextImageInList(image);\n      DestroyBlob(pIVar4);\n      p_Var1 = image->next;\n      pBVar5 = ReferenceBlob(image->blob);\n      EVar2 = image->endian;\n      p_Var1->blob = pBVar5;\n      sVar3 = image->scene;\n      p_Var1 = image->next;\n      p_Var1->endian = EVar2;\n      p_Var1->scene = sVar3 + 1;\n      p_Var1->previous = image;\n    }\n    return;\n  }" if (parenthesized_expression "(image->signature == 0xabacadab)" ( (binary_expression "image->signature == 0xabacadab" (field_expression "image->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/image.c","AcquireNextImage",0x175,"%s",image->filename);\n    }\n    pIVar4 = AcquireImage(image_info,exception);\n    image->next = pIVar4;\n    pIVar4 = GetNextImageInList(image);\n    if (pIVar4 != (Image *)0x0) {\n      CopyMagickString(pIVar4->filename,image->filename,0x1000);\n      if (image_info != (ImageInfo *)0x0) {\n        pIVar4 = GetNextImageInList(image);\n        CopyMagickString(pIVar4->filename,image_info->filename,0x1000);\n      }\n      pIVar4 = GetNextImageInList(image);\n      DestroyBlob(pIVar4);\n      p_Var1 = image->next;\n      pBVar5 = ReferenceBlob(image->blob);\n      EVar2 = image->endian;\n      p_Var1->blob = pBVar5;\n      sVar3 = image->scene;\n      p_Var1 = image->next;\n      p_Var1->endian = EVar2;\n      p_Var1->scene = sVar3 + 1;\n      p_Var1->previous = image;\n    }\n    return;\n  }" { (if_statement "if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/image.c","AcquireNextImage",0x175,"%s",image->filename);\n    }" if (parenthesized_expression "(image->debug != MagickFalse)" ( (binary_expression "image->debug != MagickFalse" (field_expression "image->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n      LogMagickEvent(TraceEvent,"MagickCore/image.c","AcquireNextImage",0x175,"%s",image->filename);\n    }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/image.c","AcquireNextImage",0x175,"%s",image->filename);" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/image.c","AcquireNextImage",0x175,"%s",image->filename)" identifier (argument_list "(TraceEvent,"MagickCore/image.c","AcquireNextImage",0x175,"%s",image->filename)" ( identifier , (string_literal ""MagickCore/image.c"" " string_content ") , (string_literal ""AcquireNextImage"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "image->filename" identifier -> field_identifier) ))) ;) })) (expression_statement "pIVar4 = AcquireImage(image_info,exception);" (assignment_expression "pIVar4 = AcquireImage(image_info,exception)" identifier = (call_expression "AcquireImage(image_info,exception)" identifier (argument_list "(image_info,exception)" ( identifier , identifier )))) ;) (expression_statement "image->next = pIVar4;" (assignment_expression "image->next = pIVar4" (field_expression "image->next" identifier -> field_identifier) = identifier) ;) (expression_statement "pIVar4 = GetNextImageInList(image);" (assignment_expression "pIVar4 = GetNextImageInList(image)" identifier = (call_expression "GetNextImageInList(image)" identifier (argument_list "(image)" ( identifier )))) ;) (if_statement "if (pIVar4 != (Image *)0x0) {\n      CopyMagickString(pIVar4->filename,image->filename,0x1000);\n      if (image_info != (ImageInfo *)0x0) {\n        pIVar4 = GetNextImageInList(image);\n        CopyMagickString(pIVar4->filename,image_info->filename,0x1000);\n      }\n      pIVar4 = GetNextImageInList(image);\n      DestroyBlob(pIVar4);\n      p_Var1 = image->next;\n      pBVar5 = ReferenceBlob(image->blob);\n      EVar2 = image->endian;\n      p_Var1->blob = pBVar5;\n      sVar3 = image->scene;\n      p_Var1 = image->next;\n      p_Var1->endian = EVar2;\n      p_Var1->scene = sVar3 + 1;\n      p_Var1->previous = image;\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      CopyMagickString(pIVar4->filename,image->filename,0x1000);\n      if (image_info != (ImageInfo *)0x0) {\n        pIVar4 = GetNextImageInList(image);\n        CopyMagickString(pIVar4->filename,image_info->filename,0x1000);\n      }\n      pIVar4 = GetNextImageInList(image);\n      DestroyBlob(pIVar4);\n      p_Var1 = image->next;\n      pBVar5 = ReferenceBlob(image->blob);\n      EVar2 = image->endian;\n      p_Var1->blob = pBVar5;\n      sVar3 = image->scene;\n      p_Var1 = image->next;\n      p_Var1->endian = EVar2;\n      p_Var1->scene = sVar3 + 1;\n      p_Var1->previous = image;\n    }" { (expression_statement "CopyMagickString(pIVar4->filename,image->filename,0x1000);" (call_expression "CopyMagickString(pIVar4->filename,image->filename,0x1000)" identifier (argument_list "(pIVar4->filename,image->filename,0x1000)" ( (field_expression "pIVar4->filename" identifier -> field_identifier) , (field_expression "image->filename" identifier -> field_identifier) , number_literal ))) ;) (if_statement "if (image_info != (ImageInfo *)0x0) {\n        pIVar4 = GetNextImageInList(image);\n        CopyMagickString(pIVar4->filename,image_info->filename,0x1000);\n      }" if (parenthesized_expression "(image_info != (ImageInfo *)0x0)" ( (binary_expression "image_info != (ImageInfo *)0x0" identifier != (cast_expression "(ImageInfo *)0x0" ( (type_descriptor "ImageInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pIVar4 = GetNextImageInList(image);\n        CopyMagickString(pIVar4->filename,image_info->filename,0x1000);\n      }" { (expression_statement "pIVar4 = GetNextImageInList(image);" (assignment_expression "pIVar4 = GetNextImageInList(image)" identifier = (call_expression "GetNextImageInList(image)" identifier (argument_list "(image)" ( identifier )))) ;) (expression_statement "CopyMagickString(pIVar4->filename,image_info->filename,0x1000);" (call_expression "CopyMagickString(pIVar4->filename,image_info->filename,0x1000)" identifier (argument_list "(pIVar4->filename,image_info->filename,0x1000)" ( (field_expression "pIVar4->filename" identifier -> field_identifier) , (field_expression "image_info->filename" identifier -> field_identifier) , number_literal ))) ;) })) (expression_statement "pIVar4 = GetNextImageInList(image);" (assignment_expression "pIVar4 = GetNextImageInList(image)" identifier = (call_expression "GetNextImageInList(image)" identifier (argument_list "(image)" ( identifier )))) ;) (expression_statement "DestroyBlob(pIVar4);" (call_expression "DestroyBlob(pIVar4)" identifier (argument_list "(pIVar4)" ( identifier ))) ;) (expression_statement "p_Var1 = image->next;" (assignment_expression "p_Var1 = image->next" identifier = (field_expression "image->next" identifier -> field_identifier)) ;) (expression_statement "pBVar5 = ReferenceBlob(image->blob);" (assignment_expression "pBVar5 = ReferenceBlob(image->blob)" identifier = (call_expression "ReferenceBlob(image->blob)" identifier (argument_list "(image->blob)" ( (field_expression "image->blob" identifier -> field_identifier) )))) ;) (expression_statement "EVar2 = image->endian;" (assignment_expression "EVar2 = image->endian" identifier = (field_expression "image->endian" identifier -> field_identifier)) ;) (expression_statement "p_Var1->blob = pBVar5;" (assignment_expression "p_Var1->blob = pBVar5" (field_expression "p_Var1->blob" identifier -> field_identifier) = identifier) ;) (expression_statement "sVar3 = image->scene;" (assignment_expression "sVar3 = image->scene" identifier = (field_expression "image->scene" identifier -> field_identifier)) ;) (expression_statement "p_Var1 = image->next;" (assignment_expression "p_Var1 = image->next" identifier = (field_expression "image->next" identifier -> field_identifier)) ;) (expression_statement "p_Var1->endian = EVar2;" (assignment_expression "p_Var1->endian = EVar2" (field_expression "p_Var1->endian" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var1->scene = sVar3 + 1;" (assignment_expression "p_Var1->scene = sVar3 + 1" (field_expression "p_Var1->scene" identifier -> field_identifier) = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (expression_statement "p_Var1->previous = image;" (assignment_expression "p_Var1->previous = image" (field_expression "p_Var1->previous" identifier -> field_identifier) = identifier) ;) })) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/image.c"" " string_content ") , number_literal , (string_literal ""AcquireNextImage"" " string_content ") ))) ;) })))
(translation_unit "void AcquireNextImage(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  if (param_2 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }\n  if (*(int *)(param_2 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }\n    uVar2 = AcquireImage(param_1,param_3);\n    *(undefined4 *)(param_2 + 0x3340) = uVar2;\n    iVar3 = GetNextImageInList(param_2);\n    if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }\n    return;\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage");\n}\n\n" (function_definition "void AcquireNextImage(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  if (param_2 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }\n  if (*(int *)(param_2 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }\n    uVar2 = AcquireImage(param_1,param_3);\n    *(undefined4 *)(param_2 + 0x3340) = uVar2;\n    iVar3 = GetNextImageInList(param_2);\n    if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }\n    return;\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage");\n}" primitive_type (function_declarator "AcquireNextImage(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  if (param_2 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }\n  if (*(int *)(param_2 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }\n    uVar2 = AcquireImage(param_1,param_3);\n    *(undefined4 *)(param_2 + 0x3340) = uVar2;\n    iVar3 = GetNextImageInList(param_2);\n    if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }\n    return;\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if (param_2 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }" { (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage")" identifier (argument_list "("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/image.c"" " string_content ") , number_literal , (string_literal ""AcquireNextImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_2 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }\n    uVar2 = AcquireImage(param_1,param_3);\n    *(undefined4 *)(param_2 + 0x3340) = uVar2;\n    iVar3 = GetNextImageInList(param_2);\n    if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x3344) == -0x54535255)" ( (binary_expression "*(int *)(param_2 + 0x3344) == -0x54535255" (pointer_expression "*(int *)(param_2 + 0x3344)" * (cast_expression "(int *)(param_2 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3344)" ( (binary_expression "param_2 + 0x3344" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }\n    uVar2 = AcquireImage(param_1,param_3);\n    *(undefined4 *)(param_2 + 0x3340) = uVar2;\n    iVar3 = GetNextImageInList(param_2);\n    if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }\n    return;\n  }" { (if_statement "if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }" if (parenthesized_expression "(*(int *)(param_2 + 0x3328) != 0)" ( (binary_expression "*(int *)(param_2 + 0x3328) != 0" (pointer_expression "*(int *)(param_2 + 0x3328)" * (cast_expression "(int *)(param_2 + 0x3328)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3328)" ( (binary_expression "param_2 + 0x3328" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318)" identifier (argument_list "(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318)" ( number_literal , (string_literal ""MagickCore/image.c"" " string_content ") , (string_literal ""AcquireNextImage"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_2 + 0x318" identifier + number_literal) ))) ;) })) (expression_statement "uVar2 = AcquireImage(param_1,param_3);" (assignment_expression "uVar2 = AcquireImage(param_1,param_3)" identifier = (call_expression "AcquireImage(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x3340) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 0x3340) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 0x3340)" * (cast_expression "(undefined4 *)(param_2 + 0x3340)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3340)" ( (binary_expression "param_2 + 0x3340" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = GetNextImageInList(param_2);" (assignment_expression "iVar3 = GetNextImageInList(param_2)" identifier = (call_expression "GetNextImageInList(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }" { (expression_statement "CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);" (call_expression "CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000)" identifier (argument_list "(iVar3 + 0x318,param_2 + 0x318,0x1000)" ( (binary_expression "iVar3 + 0x318" identifier + number_literal) , (binary_expression "param_2 + 0x318" identifier + number_literal) , number_literal ))) ;) (if_statement "if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }" { (expression_statement "iVar3 = GetNextImageInList(param_2);" (assignment_expression "iVar3 = GetNextImageInList(param_2)" identifier = (call_expression "GetNextImageInList(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);" (call_expression "CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000)" identifier (argument_list "(iVar3 + 0x318,param_1 + 0x21f0,0x1000)" ( (binary_expression "iVar3 + 0x318" identifier + number_literal) , (binary_expression "param_1 + 0x21f0" identifier + number_literal) , number_literal ))) ;) })) (expression_statement "uVar2 = GetNextImageInList(param_2);" (assignment_expression "uVar2 = GetNextImageInList(param_2)" identifier = (call_expression "GetNextImageInList(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "DestroyBlob(uVar2);" (call_expression "DestroyBlob(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "iVar3 = *(int *)(param_2 + 0x3340);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x3340)" identifier = (pointer_expression "*(int *)(param_2 + 0x3340)" * (cast_expression "(int *)(param_2 + 0x3340)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3340)" ( (binary_expression "param_2 + 0x3340" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));" (assignment_expression "uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320))" identifier = (call_expression "ReferenceBlob(*(undefined4 *)(param_2 + 0x3320))" identifier (argument_list "(*(undefined4 *)(param_2 + 0x3320))" ( (pointer_expression "*(undefined4 *)(param_2 + 0x3320)" * (cast_expression "(undefined4 *)(param_2 + 0x3320)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3320)" ( (binary_expression "param_2 + 0x3320" identifier + number_literal) )))) )))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x234);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x234)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x234)" * (cast_expression "(undefined4 *)(param_2 + 0x234)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x234)" ( (binary_expression "param_2 + 0x234" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x3320) = uVar4;" (assignment_expression "*(undefined4 *)(iVar3 + 0x3320) = uVar4" (pointer_expression "*(undefined4 *)(iVar3 + 0x3320)" * (cast_expression "(undefined4 *)(iVar3 + 0x3320)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x3320)" ( (binary_expression "iVar3 + 0x3320" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = *(int *)(param_2 + 0x244);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x244)" identifier = (pointer_expression "*(int *)(param_2 + 0x244)" * (cast_expression "(int *)(param_2 + 0x244)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x244)" ( (binary_expression "param_2 + 0x244" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(param_2 + 0x3340);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x3340)" identifier = (pointer_expression "*(int *)(param_2 + 0x3340)" * (cast_expression "(int *)(param_2 + 0x3340)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3340)" ( (binary_expression "param_2 + 0x3340" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x234) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x234) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x234)" * (cast_expression "(undefined4 *)(iVar1 + 0x234)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x234)" ( (binary_expression "iVar1 + 0x234" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar1 + 0x244) = iVar3 + 1;" (assignment_expression "*(int *)(iVar1 + 0x244) = iVar3 + 1" (pointer_expression "*(int *)(iVar1 + 0x244)" * (cast_expression "(int *)(iVar1 + 0x244)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x244)" ( (binary_expression "iVar1 + 0x244" identifier + number_literal) )))) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar1 + 0x333c) = param_2;" (assignment_expression "*(int *)(iVar1 + 0x333c) = param_2" (pointer_expression "*(int *)(iVar1 + 0x333c)" * (cast_expression "(int *)(iVar1 + 0x333c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x333c)" ( (binary_expression "iVar1 + 0x333c" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })) (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/image.c"" " string_content ") , number_literal , (string_literal ""AcquireNextImage"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (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 , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression 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) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void AcquireNextImage(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  if (param_2 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }\n  if (*(int *)(param_2 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }\n    uVar2 = AcquireImage(param_1,param_3);\n    *(undefined4 *)(param_2 + 0x3340) = uVar2;\n    iVar3 = GetNextImageInList(param_2);\n    if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }\n    return;\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage");\n}" (primitive_type "void") (function_declarator "AcquireNextImage(int param_1,int param_2,undefined4 param_3)" (identifier "AcquireNextImage") (parameter_list "(int param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  if (param_2 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }\n  if (*(int *)(param_2 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }\n    uVar2 = AcquireImage(param_1,param_3);\n    *(undefined4 *)(param_2 + 0x3340) = uVar2;\n    iVar3 = GetNextImageInList(param_2);\n    if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }\n    return;\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage");\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") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (if_statement "if (param_2 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");\n  }" ({ "{") (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage")" (identifier "__assert_fail") (argument_list "("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage")" (( "(") (string_literal ""image != (Image *) NULL"" (" """) (string_content "image != (Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/image.c"" (" """) (string_content "MagickCore/image.c") (" """)) (, ",") (number_literal "0x172") (, ",") (string_literal ""AcquireNextImage"" (" """) (string_content "AcquireNextImage") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_2 + 0x3344) == -0x54535255) {\n    if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }\n    uVar2 = AcquireImage(param_1,param_3);\n    *(undefined4 *)(param_2 + 0x3340) = uVar2;\n    iVar3 = GetNextImageInList(param_2);\n    if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x3344) == -0x54535255)" (( "(") (binary_expression "*(int *)(param_2 + 0x3344) == -0x54535255" (pointer_expression "*(int *)(param_2 + 0x3344)" (* "*") (cast_expression "(int *)(param_2 + 0x3344)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3344)" (( "(") (binary_expression "param_2 + 0x3344" (identifier "param_2") (+ "+") (number_literal "0x3344")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }\n    uVar2 = AcquireImage(param_1,param_3);\n    *(undefined4 *)(param_2 + 0x3340) = uVar2;\n    iVar3 = GetNextImageInList(param_2);\n    if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }\n    return;\n  }" ({ "{") (if_statement "if (*(int *)(param_2 + 0x3328) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x3328) != 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x3328) != 0" (pointer_expression "*(int *)(param_2 + 0x3328)" (* "*") (cast_expression "(int *)(param_2 + 0x3328)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3328)" (( "(") (binary_expression "param_2 + 0x3328" (identifier "param_2") (+ "+") (number_literal "0x3328")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);\n    }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318);" (call_expression "LogMagickEvent(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318)" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/image.c","AcquireNextImage",0x175,&DAT_002b6e4e,\n                     param_2 + 0x318)" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/image.c"" (" """) (string_content "MagickCore/image.c") (" """)) (, ",") (string_literal ""AcquireNextImage"" (" """) (string_content "AcquireNextImage") (" """)) (, ",") (number_literal "0x175") (, ",") (pointer_expression "&DAT_002b6e4e" (& "&") (identifier "DAT_002b6e4e")) (, ",") (binary_expression "param_2 + 0x318" (identifier "param_2") (+ "+") (number_literal "0x318")) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar2 = AcquireImage(param_1,param_3);" (assignment_expression "uVar2 = AcquireImage(param_1,param_3)" (identifier "uVar2") (= "=") (call_expression "AcquireImage(param_1,param_3)" (identifier "AcquireImage") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x3340) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 0x3340) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 0x3340)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x3340)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3340)" (( "(") (binary_expression "param_2 + 0x3340" (identifier "param_2") (+ "+") (number_literal "0x3340")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "iVar3 = GetNextImageInList(param_2);" (assignment_expression "iVar3 = GetNextImageInList(param_2)" (identifier "iVar3") (= "=") (call_expression "GetNextImageInList(param_2)" (identifier "GetNextImageInList") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);\n      if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }\n      uVar2 = GetNextImageInList(param_2);\n      DestroyBlob(uVar2);\n      iVar3 = *(int *)(param_2 + 0x3340);\n      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));\n      uVar2 = *(undefined4 *)(param_2 + 0x234);\n      *(undefined4 *)(iVar3 + 0x3320) = uVar4;\n      iVar3 = *(int *)(param_2 + 0x244);\n      iVar1 = *(int *)(param_2 + 0x3340);\n      *(undefined4 *)(iVar1 + 0x234) = uVar2;\n      *(int *)(iVar1 + 0x244) = iVar3 + 1;\n      *(int *)(iVar1 + 0x333c) = param_2;\n    }" ({ "{") (expression_statement "CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);" (call_expression "CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000)" (identifier "CopyMagickString") (argument_list "(iVar3 + 0x318,param_2 + 0x318,0x1000)" (( "(") (binary_expression "iVar3 + 0x318" (identifier "iVar3") (+ "+") (number_literal "0x318")) (, ",") (binary_expression "param_2 + 0x318" (identifier "param_2") (+ "+") (number_literal "0x318")) (, ",") (number_literal "0x1000") () ")"))) (; ";")) (if_statement "if (param_1 != 0) {\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar3 = GetNextImageInList(param_2);\n        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);\n      }" ({ "{") (expression_statement "iVar3 = GetNextImageInList(param_2);" (assignment_expression "iVar3 = GetNextImageInList(param_2)" (identifier "iVar3") (= "=") (call_expression "GetNextImageInList(param_2)" (identifier "GetNextImageInList") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);" (call_expression "CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000)" (identifier "CopyMagickString") (argument_list "(iVar3 + 0x318,param_1 + 0x21f0,0x1000)" (( "(") (binary_expression "iVar3 + 0x318" (identifier "iVar3") (+ "+") (number_literal "0x318")) (, ",") (binary_expression "param_1 + 0x21f0" (identifier "param_1") (+ "+") (number_literal "0x21f0")) (, ",") (number_literal "0x1000") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar2 = GetNextImageInList(param_2);" (assignment_expression "uVar2 = GetNextImageInList(param_2)" (identifier "uVar2") (= "=") (call_expression "GetNextImageInList(param_2)" (identifier "GetNextImageInList") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "DestroyBlob(uVar2);" (call_expression "DestroyBlob(uVar2)" (identifier "DestroyBlob") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(param_2 + 0x3340);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x3340)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_2 + 0x3340)" (* "*") (cast_expression "(int *)(param_2 + 0x3340)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3340)" (( "(") (binary_expression "param_2 + 0x3340" (identifier "param_2") (+ "+") (number_literal "0x3340")) () ")"))))) (; ";")) (expression_statement "uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));" (assignment_expression "uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320))" (identifier "uVar4") (= "=") (call_expression "ReferenceBlob(*(undefined4 *)(param_2 + 0x3320))" (identifier "ReferenceBlob") (argument_list "(*(undefined4 *)(param_2 + 0x3320))" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x3320)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x3320)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3320)" (( "(") (binary_expression "param_2 + 0x3320" (identifier "param_2") (+ "+") (number_literal "0x3320")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x234);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x234)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x234)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x234)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x234)" (( "(") (binary_expression "param_2 + 0x234" (identifier "param_2") (+ "+") (number_literal "0x234")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x3320) = uVar4;" (assignment_expression "*(undefined4 *)(iVar3 + 0x3320) = uVar4" (pointer_expression "*(undefined4 *)(iVar3 + 0x3320)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x3320)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x3320)" (( "(") (binary_expression "iVar3 + 0x3320" (identifier "iVar3") (+ "+") (number_literal "0x3320")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "iVar3 = *(int *)(param_2 + 0x244);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x244)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_2 + 0x244)" (* "*") (cast_expression "(int *)(param_2 + 0x244)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x244)" (( "(") (binary_expression "param_2 + 0x244" (identifier "param_2") (+ "+") (number_literal "0x244")) () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(param_2 + 0x3340);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x3340)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_2 + 0x3340)" (* "*") (cast_expression "(int *)(param_2 + 0x3340)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3340)" (( "(") (binary_expression "param_2 + 0x3340" (identifier "param_2") (+ "+") (number_literal "0x3340")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x234) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x234) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x234)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x234)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x234)" (( "(") (binary_expression "iVar1 + 0x234" (identifier "iVar1") (+ "+") (number_literal "0x234")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(int *)(iVar1 + 0x244) = iVar3 + 1;" (assignment_expression "*(int *)(iVar1 + 0x244) = iVar3 + 1" (pointer_expression "*(int *)(iVar1 + 0x244)" (* "*") (cast_expression "(int *)(iVar1 + 0x244)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x244)" (( "(") (binary_expression "iVar1 + 0x244" (identifier "iVar1") (+ "+") (number_literal "0x244")) () ")")))) (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(iVar1 + 0x333c) = param_2;" (assignment_expression "*(int *)(iVar1 + 0x333c) = param_2" (pointer_expression "*(int *)(iVar1 + 0x333c)" (* "*") (cast_expression "(int *)(iVar1 + 0x333c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x333c)" (( "(") (binary_expression "iVar1 + 0x333c" (identifier "iVar1") (+ "+") (number_literal "0x333c")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage")" (identifier "__assert_fail") (argument_list "("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,\n                "AcquireNextImage")" (( "(") (string_literal ""image->signature == MagickCoreSignature"" (" """) (string_content "image->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/image.c"" (" """) (string_content "MagickCore/image.c") (" """)) (, ",") (number_literal "0x173") (, ",") (string_literal ""AcquireNextImage"" (" """) (string_content "AcquireNextImage") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": 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 */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

void function_1(type_1 *var_9,type_2 *var_1,type_3 *exception)

{
  type_4 *p_Var1;
  type_5 EVar2;
  size_t var_12;
  type_2 *var_7;
  type_6 *pBVar5;
  
  if (var_1 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("image != (Image *) NULL","MagickCore/image.c",0x172,"AcquireNextImage");
  }
  if (var_1->signature == 0xabacadab) {
    if (var_1->debug != var_3) {
      var_4(TraceEvent,"MagickCore/image.c","AcquireNextImage",0x175,"%s",var_1->filename);
    }
    var_7 = var_5(var_9,exception);
    var_1->next = var_7;
    var_7 = var_6(var_1);
    if (var_7 != (type_2 *)0x0) {
      var_8(var_7->filename,var_1->filename,0x1000);
      if (var_9 != (type_1 *)0x0) {
        var_7 = var_6(var_1);
        var_8(var_7->filename,var_9->filename,0x1000);
      }
      var_7 = var_6(var_1);
      var_10(var_7);
      p_Var1 = var_1->next;
      pBVar5 = var_11(var_1->blob);
      EVar2 = var_1->endian;
      p_Var1->blob = pBVar5;
      var_12 = var_1->scene;
      p_Var1 = var_1->next;
      p_Var1->endian = EVar2;
      p_Var1->scene = var_12 + 1;
      p_Var1->previous = var_1;
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_2("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,
                "AcquireNextImage");
}


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

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

void MASKED(int param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 uVar4;
  
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/image.c",0x172,"MASKED");
  }
  if (*(int *)(param_2 + 0x3344) == -0x54535255) {
    if (*(int *)(param_2 + 0x3328) != 0) {
      LogMagickEvent(0x8000,"MagickCore/image.c","MASKED",0x175,&DAT_002b6e4e,
                     param_2 + 0x318);
    }
    uVar2 = AcquireImage(param_1,param_3);
    *(undefined4 *)(param_2 + 0x3340) = uVar2;
    iVar3 = GetNextImageInList(param_2);
    if (iVar3 != 0) {
      CopyMagickString(iVar3 + 0x318,param_2 + 0x318,0x1000);
      if (param_1 != 0) {
        iVar3 = GetNextImageInList(param_2);
        CopyMagickString(iVar3 + 0x318,param_1 + 0x21f0,0x1000);
      }
      uVar2 = GetNextImageInList(param_2);
      DestroyBlob(uVar2);
      iVar3 = *(int *)(param_2 + 0x3340);
      uVar4 = ReferenceBlob(*(undefined4 *)(param_2 + 0x3320));
      uVar2 = *(undefined4 *)(param_2 + 0x234);
      *(undefined4 *)(iVar3 + 0x3320) = uVar4;
      iVar3 = *(int *)(param_2 + 0x244);
      iVar1 = *(int *)(param_2 + 0x3340);
      *(undefined4 *)(iVar1 + 0x234) = uVar2;
      *(int *)(iVar1 + 0x244) = iVar3 + 1;
      *(int *)(iVar1 + 0x333c) = param_2;
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/image.c",0x173,
                "MASKED");
}

