
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* 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 */

Image * ReadVIDEOImage(ImageInfo *image_info,ExceptionInfo *exception)

{
  Image *pIVar1;
  MagickBooleanType MVar2;
  ImageInfo *image_info_00;
  _Image *p_Var3;
  Image *local_2c;
  
  if (image_info == (ImageInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");
  }
  if (image_info->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,
                  "ReadVIDEOImage");
  }
  if (image_info->debug != MagickFalse) {
    LogMagickEvent(TraceEvent,"coders/video.c","ReadVIDEOImage",0xaf,"%s",image_info->filename);
  }
  if (exception == (ExceptionInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");
  }
  if (exception->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,
                  "ReadVIDEOImage");
  }
  pIVar1 = AcquireImage(image_info,exception);
  MVar2 = OpenBlob(image_info,pIVar1,ReadBinaryBlobMode,exception);
  if (MVar2 == MagickFalse) {
    DestroyImageList(pIVar1);
    local_2c = (Image *)0x0;
  }
  else {
    CloseBlob(pIVar1);
    DestroyImageList(pIVar1);
    image_info_00 = CloneImageInfo(image_info);
    pIVar1 = AcquireImage(image_info,exception);
    MVar2 = InvokeDelegate(image_info_00,pIVar1,"video:decode",(char *)0x0,exception);
    local_2c = (Image *)0x0;
    if (MVar2 != MagickFalse) {
      FormatLocaleString(image_info_00->filename,0x1000,"%s.%s",image_info_00->unique,&DAT_0030ea30)
      ;
      image_info_00->magick[0] = '\0';
      local_2c = ReadImage(image_info_00,exception);
      if (local_2c != (Image *)0x0) {
        p_Var3 = local_2c;
        do {
          CopyMagickString(p_Var3->filename,pIVar1->filename,0x1000);
          CopyMagickString(p_Var3->magick,pIVar1->magick,0x1000);
          p_Var3 = p_Var3->next;
        } while (p_Var3 != (_Image *)0x0);
      }
      RelinquishUniqueFileResource(image_info_00->filename);
    }
    DestroyImageInfo(image_info_00);
    DestroyImage(pIVar1);
  }
  return local_2c;
}



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

int FUN_00287750(int param_1,int param_2)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int local_2c;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");
  }
  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,
                  "ReadVIDEOImage");
  }
  if (*(int *)(param_1 + 0x31f0) != 0) {
    LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);
  }
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");
  }
  if (*(int *)(param_2 + 0x1c) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,
                  "ReadVIDEOImage");
  }
  uVar1 = AcquireImage(param_1,param_2);
  iVar2 = OpenBlob(param_1,uVar1,2,param_2);
  if (iVar2 == 0) {
    DestroyImageList(uVar1);
    local_2c = 0;
  }
  else {
    CloseBlob(uVar1);
    DestroyImageList(uVar1);
    iVar2 = CloneImageInfo(param_1);
    iVar3 = AcquireImage(param_1,param_2);
    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);
    local_2c = 0;
    if (iVar4 != 0) {
      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);
      *(undefined1 *)(iVar2 + 0x1f0) = 0;
      local_2c = ReadImage(iVar2,param_2);
      if (local_2c != 0) {
        iVar4 = local_2c;
        do {
          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);
          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);
          iVar4 = *(int *)(iVar4 + 0x3340);
        } while (iVar4 != 0);
      }
      RelinquishUniqueFileResource(iVar2 + 0x21f0);
    }
    DestroyImageInfo(iVar2);
    DestroyImage(iVar3);
  }
  return local_2c;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x1518a7
SUB ESP,0x1c
MOV EBP,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [ESP + 0x34]
TEST EBP,EBP
JZ 0x00287986
CMP dword ptr [EBP + 0x31f4],0xabacadab
JNZ 0x00287967
MOV ECX,dword ptr [EBP + 0x31f0]
TEST ECX,ECX
JNZ 0x00287830
TEST ESI,ESI
JZ 0x00287948
CMP dword ptr [ESI + 0x1c],0xabacadab
JNZ 0x002879a5
SUB ESP,0x8
PUSH ESI
PUSH EBP
CALL 0x000313c0
ADD ESP,0x10
PUSH ESI
MOV EDI,EAX
PUSH 0x2
PUSH EAX
PUSH EBP
CALL 0x00032230
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00287930
SUB ESP,0xc
PUSH EDI
CALL 0x000311d0
MOV dword ptr [ESP],EDI
CALL 0x000317a0
MOV dword ptr [ESP],EBP
CALL 0x000324c0
MOV EDI,EAX
POP EAX
POP EDX
PUSH ESI
PUSH EBP
CALL 0x000313c0
MOV dword ptr [ESP],ESI
MOV EBP,EAX
PUSH 0x0
LEA EAX,[EBX + 0xfff35a4c]
PUSH EAX
PUSH EBP
PUSH EDI
CALL 0x00031180
ADD ESP,0x20
MOV dword ptr [ESP],0x0
TEST EAX,EAX
JNZ 0x00287870
SUB ESP,0xc
PUSH EDI
CALL 0x00031450
MOV dword ptr [ESP],EBP
CALL 0x00032dd0
ADD ESP,0x10
MOV EAX,dword ptr [ESP]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBP + 0x21f0]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xffedde4e]
PUSH EAX
LEA EAX,[EBX + 0xfff35b98]
PUSH 0xaf
PUSH EAX
LEA EAX,[EBX + 0xfff35a21]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
ADD ESP,0x20
JMP 0x00287790
LEA EDX,[EDI + 0x21f0]
SUB ESP,0xc
MOV dword ptr [ESP + 0x10],EDX
LEA EAX,[EBX + 0xfff35a30]
PUSH EAX
LEA EAX,[EDI + 0x11f0]
PUSH EAX
LEA EAX,[EBX + 0xffef16ed]
PUSH EAX
PUSH 0x1000
PUSH EDX
CALL 0x000334e0
ADD ESP,0x18
MOV byte ptr [EDI + 0x1f0],0x0
PUSH ESI
PUSH EDI
CALL 0x00032eb0
MOV dword ptr [ESP + 0x10],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00287917
LEA EDX,[EBP + 0x2318]
MOV dword ptr [ESP + 0x8],EDI
MOV EDI,EAX
LEA ECX,[EBP + 0x318]
MOV dword ptr [ESP + 0xc],EBP
MOV ESI,EDX
MOV EBP,ECX
NOP
LEA ESI,[ESI]
LEA EAX,[EDI + 0x318]
SUB ESP,0x4
PUSH 0x1000
PUSH EBP
PUSH EAX
CALL 0x00030b70
LEA EAX,[EDI + 0x2318]
ADD ESP,0xc
PUSH 0x1000
PUSH ESI
PUSH EAX
CALL 0x00030b70
MOV EDI,dword ptr [EDI + 0x3340]
ADD ESP,0x10
TEST EDI,EDI
JNZ 0x002878d8
MOV EDI,dword ptr [ESP + 0x8]
MOV EBP,dword ptr [ESP + 0xc]
SUB ESP,0xc
PUSH dword ptr [ESP + 0x10]
CALL 0x00032c90
ADD ESP,0x10
JMP 0x00287810
SUB ESP,0xc
PUSH EDI
CALL 0x000317a0
ADD ESP,0x10
MOV dword ptr [ESP],0x0
JMP 0x00287824
LEA EAX,[EBX + 0xfff35ba8]
PUSH EAX
LEA EAX,[EBX + 0xfff35a21]
PUSH 0xb1
PUSH EAX
LEA EAX,[EBX + 0xffec6a3c]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xfff35ba8]
PUSH EAX
LEA EAX,[EBX + 0xfff35a21]
PUSH 0xad
PUSH EAX
LEA EAX,[EBX + 0xffec5b28]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xfff35ba8]
PUSH EAX
LEA EAX,[EBX + 0xfff35a21]
PUSH 0xac
PUSH EAX
LEA EAX,[EBX + 0xffec5b00]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xfff35ba8]
PUSH EAX
LEA EAX,[EBX + 0xfff35a21]
PUSH 0xb2
PUSH EAX
LEA EAX,[EBX + 0xffec776c]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00287750(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_2c;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }\n  if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);\n  }\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }\n  if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }\n  uVar1 = AcquireImage(param_1,param_2);\n  iVar2 = OpenBlob(param_1,uVar1,2,param_2);\n  if (iVar2 == 0) {\n    DestroyImageList(uVar1);\n    local_2c = 0;\n  }\n  else {\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }\n  return local_2c;\n}\n\n" comment (function_definition "int FUN_00287750(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_2c;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }\n  if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);\n  }\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }\n  if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }\n  uVar1 = AcquireImage(param_1,param_2);\n  iVar2 = OpenBlob(param_1,uVar1,2,param_2);\n  if (iVar2 == 0) {\n    DestroyImageList(uVar1);\n    local_2c = 0;\n  }\n  else {\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }\n  return local_2c;\n}" primitive_type (function_declarator "FUN_00287750(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_2c;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }\n  if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);\n  }\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }\n  if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }\n  uVar1 = AcquireImage(param_1,param_2);\n  iVar2 = OpenBlob(param_1,uVar1,2,param_2);\n  if (iVar2 == 0) {\n    DestroyImageList(uVar1);\n    local_2c = 0;\n  }\n  else {\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }\n  return local_2c;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }" { comment (expression_statement "__assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");" (call_expression "__assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage")" identifier (argument_list "("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage")" ( (string_literal ""image_info != (const ImageInfo *) NULL"" " string_content ") , (string_literal ""coders/video.c"" " string_content ") , number_literal , (string_literal ""ReadVIDEOImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x31f4) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x31f4) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x31f4)" * (cast_expression "(int *)(param_1 + 0x31f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31f4)" ( (binary_expression "param_1 + 0x31f4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }" { comment (expression_statement "__assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");" (call_expression "__assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage")" identifier (argument_list "("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage")" ( (string_literal ""image_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""coders/video.c"" " string_content ") , number_literal , (string_literal ""ReadVIDEOImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x31f0) != 0)" ( (binary_expression "*(int *)(param_1 + 0x31f0) != 0" (pointer_expression "*(int *)(param_1 + 0x31f0)" * (cast_expression "(int *)(param_1 + 0x31f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31f0)" ( (binary_expression "param_1 + 0x31f0" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);\n  }" { (expression_statement "LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);" (call_expression "LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0)" identifier (argument_list "(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0)" ( number_literal , (string_literal ""coders/video.c"" " string_content ") , (string_literal ""ReadVIDEOImage"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0x21f0" identifier + number_literal) ))) ;) })) (if_statement "if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\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("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""coders/video.c"" " string_content ") , number_literal , (string_literal ""ReadVIDEOImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x1c) != -0x54535255)" ( (binary_expression "*(int *)(param_2 + 0x1c) != -0x54535255" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }" { comment (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage")" identifier (argument_list "("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage")" ( (string_literal ""exception->signature == MagickCoreSignature"" " string_content ") , (string_literal ""coders/video.c"" " string_content ") , number_literal , (string_literal ""ReadVIDEOImage"" " string_content ") ))) ;) })) (expression_statement "uVar1 = AcquireImage(param_1,param_2);" (assignment_expression "uVar1 = AcquireImage(param_1,param_2)" identifier = (call_expression "AcquireImage(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "iVar2 = OpenBlob(param_1,uVar1,2,param_2);" (assignment_expression "iVar2 = OpenBlob(param_1,uVar1,2,param_2)" identifier = (call_expression "OpenBlob(param_1,uVar1,2,param_2)" identifier (argument_list "(param_1,uVar1,2,param_2)" ( identifier , identifier , number_literal , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    DestroyImageList(uVar1);\n    local_2c = 0;\n  }\n  else {\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    DestroyImageList(uVar1);\n    local_2c = 0;\n  }" { (expression_statement "DestroyImageList(uVar1);" (call_expression "DestroyImageList(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) }) (else_clause "else {\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }" else (compound_statement "{\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }" { (expression_statement "CloseBlob(uVar1);" (call_expression "CloseBlob(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "DestroyImageList(uVar1);" (call_expression "DestroyImageList(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "iVar2 = CloneImageInfo(param_1);" (assignment_expression "iVar2 = CloneImageInfo(param_1)" identifier = (call_expression "CloneImageInfo(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar3 = AcquireImage(param_1,param_2);" (assignment_expression "iVar3 = AcquireImage(param_1,param_2)" identifier = (call_expression "AcquireImage(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);" (assignment_expression "iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2)" identifier = (call_expression "InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2)" identifier (argument_list "(iVar2,iVar3,"video:decode",0,param_2)" ( identifier , identifier , (string_literal ""video:decode"" " string_content ") , number_literal , identifier )))) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (if_statement "if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }" { (expression_statement "FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);" (call_expression "FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30)" identifier (argument_list "(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30)" ( (binary_expression "iVar2 + 0x21f0" identifier + number_literal) , number_literal , (string_literal ""%s.%s"" " string_content ") , (binary_expression "iVar2 + 0x11f0" identifier + number_literal) , (pointer_expression "&DAT_0030ea30" & identifier) ))) ;) (expression_statement "*(undefined1 *)(iVar2 + 0x1f0) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + 0x1f0) = 0" (pointer_expression "*(undefined1 *)(iVar2 + 0x1f0)" * (cast_expression "(undefined1 *)(iVar2 + 0x1f0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1f0)" ( (binary_expression "iVar2 + 0x1f0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_2c = ReadImage(iVar2,param_2);" (assignment_expression "local_2c = ReadImage(iVar2,param_2)" identifier = (call_expression "ReadImage(iVar2,param_2)" identifier (argument_list "(iVar2,param_2)" ( identifier , identifier )))) ;) (if_statement "if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }" if (parenthesized_expression "(local_2c != 0)" ( (binary_expression "local_2c != 0" identifier != number_literal) )) (compound_statement "{\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }" { (expression_statement "iVar4 = local_2c;" (assignment_expression "iVar4 = local_2c" identifier = identifier) ;) (do_statement "do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);" do (compound_statement "{\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        }" { (expression_statement "CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);" (call_expression "CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000)" identifier (argument_list "(iVar4 + 0x318,iVar3 + 0x318,0x1000)" ( (binary_expression "iVar4 + 0x318" identifier + number_literal) , (binary_expression "iVar3 + 0x318" identifier + number_literal) , number_literal ))) ;) (expression_statement "CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);" (call_expression "CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000)" identifier (argument_list "(iVar4 + 0x2318,iVar3 + 0x2318,0x1000)" ( (binary_expression "iVar4 + 0x2318" identifier + number_literal) , (binary_expression "iVar3 + 0x2318" identifier + number_literal) , number_literal ))) ;) (expression_statement "iVar4 = *(int *)(iVar4 + 0x3340);" (assignment_expression "iVar4 = *(int *)(iVar4 + 0x3340)" identifier = (pointer_expression "*(int *)(iVar4 + 0x3340)" * (cast_expression "(int *)(iVar4 + 0x3340)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x3340)" ( (binary_expression "iVar4 + 0x3340" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) ;) })) (expression_statement "RelinquishUniqueFileResource(iVar2 + 0x21f0);" (call_expression "RelinquishUniqueFileResource(iVar2 + 0x21f0)" identifier (argument_list "(iVar2 + 0x21f0)" ( (binary_expression "iVar2 + 0x21f0" identifier + number_literal) ))) ;) })) (expression_statement "DestroyImageInfo(iVar2);" (call_expression "DestroyImageInfo(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "DestroyImage(iVar3);" (call_expression "DestroyImage(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) }))) (return_statement "return local_2c;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\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\nImage * ReadVIDEOImage(ImageInfo *image_info,ExceptionInfo *exception)\n\n{\n  Image *pIVar1;\n  MagickBooleanType MVar2;\n  ImageInfo *image_info_00;\n  _Image *p_Var3;\n  Image *local_2c;\n  \n  if (image_info == (ImageInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }\n  if (image_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }\n  if (image_info->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"coders/video.c","ReadVIDEOImage",0xaf,"%s",image_info->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }\n  if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }\n  pIVar1 = AcquireImage(image_info,exception);\n  MVar2 = OpenBlob(image_info,pIVar1,ReadBinaryBlobMode,exception);\n  if (MVar2 == MagickFalse) {\n    DestroyImageList(pIVar1);\n    local_2c = (Image *)0x0;\n  }\n  else {\n    CloseBlob(pIVar1);\n    DestroyImageList(pIVar1);\n    image_info_00 = CloneImageInfo(image_info);\n    pIVar1 = AcquireImage(image_info,exception);\n    MVar2 = InvokeDelegate(image_info_00,pIVar1,"video:decode",(char *)0x0,exception);\n    local_2c = (Image *)0x0;\n    if (MVar2 != MagickFalse) {\n      FormatLocaleString(image_info_00->filename,0x1000,"%s.%s",image_info_00->unique,&DAT_0030ea30)\n      ;\n      image_info_00->magick[0] = '\0';\n      local_2c = ReadImage(image_info_00,exception);\n      if (local_2c != (Image *)0x0) {\n        p_Var3 = local_2c;\n        do {\n          CopyMagickString(p_Var3->filename,pIVar1->filename,0x1000);\n          CopyMagickString(p_Var3->magick,pIVar1->magick,0x1000);\n          p_Var3 = p_Var3->next;\n        } while (p_Var3 != (_Image *)0x0);\n      }\n      RelinquishUniqueFileResource(image_info_00->filename);\n    }\n    DestroyImageInfo(image_info_00);\n    DestroyImage(pIVar1);\n  }\n  return local_2c;\n}\n\n" comment comment comment comment comment comment comment comment (function_definition "Image * ReadVIDEOImage(ImageInfo *image_info,ExceptionInfo *exception)\n\n{\n  Image *pIVar1;\n  MagickBooleanType MVar2;\n  ImageInfo *image_info_00;\n  _Image *p_Var3;\n  Image *local_2c;\n  \n  if (image_info == (ImageInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }\n  if (image_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }\n  if (image_info->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"coders/video.c","ReadVIDEOImage",0xaf,"%s",image_info->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }\n  if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }\n  pIVar1 = AcquireImage(image_info,exception);\n  MVar2 = OpenBlob(image_info,pIVar1,ReadBinaryBlobMode,exception);\n  if (MVar2 == MagickFalse) {\n    DestroyImageList(pIVar1);\n    local_2c = (Image *)0x0;\n  }\n  else {\n    CloseBlob(pIVar1);\n    DestroyImageList(pIVar1);\n    image_info_00 = CloneImageInfo(image_info);\n    pIVar1 = AcquireImage(image_info,exception);\n    MVar2 = InvokeDelegate(image_info_00,pIVar1,"video:decode",(char *)0x0,exception);\n    local_2c = (Image *)0x0;\n    if (MVar2 != MagickFalse) {\n      FormatLocaleString(image_info_00->filename,0x1000,"%s.%s",image_info_00->unique,&DAT_0030ea30)\n      ;\n      image_info_00->magick[0] = '\0';\n      local_2c = ReadImage(image_info_00,exception);\n      if (local_2c != (Image *)0x0) {\n        p_Var3 = local_2c;\n        do {\n          CopyMagickString(p_Var3->filename,pIVar1->filename,0x1000);\n          CopyMagickString(p_Var3->magick,pIVar1->magick,0x1000);\n          p_Var3 = p_Var3->next;\n        } while (p_Var3 != (_Image *)0x0);\n      }\n      RelinquishUniqueFileResource(image_info_00->filename);\n    }\n    DestroyImageInfo(image_info_00);\n    DestroyImage(pIVar1);\n  }\n  return local_2c;\n}" type_identifier (pointer_declarator "* ReadVIDEOImage(ImageInfo *image_info,ExceptionInfo *exception)" * (function_declarator "ReadVIDEOImage(ImageInfo *image_info,ExceptionInfo *exception)" identifier (parameter_list "(ImageInfo *image_info,ExceptionInfo *exception)" ( (parameter_declaration "ImageInfo *image_info" type_identifier (pointer_declarator "*image_info" * identifier)) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) )))) (compound_statement "{\n  Image *pIVar1;\n  MagickBooleanType MVar2;\n  ImageInfo *image_info_00;\n  _Image *p_Var3;\n  Image *local_2c;\n  \n  if (image_info == (ImageInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }\n  if (image_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }\n  if (image_info->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"coders/video.c","ReadVIDEOImage",0xaf,"%s",image_info->filename);\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }\n  if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }\n  pIVar1 = AcquireImage(image_info,exception);\n  MVar2 = OpenBlob(image_info,pIVar1,ReadBinaryBlobMode,exception);\n  if (MVar2 == MagickFalse) {\n    DestroyImageList(pIVar1);\n    local_2c = (Image *)0x0;\n  }\n  else {\n    CloseBlob(pIVar1);\n    DestroyImageList(pIVar1);\n    image_info_00 = CloneImageInfo(image_info);\n    pIVar1 = AcquireImage(image_info,exception);\n    MVar2 = InvokeDelegate(image_info_00,pIVar1,"video:decode",(char *)0x0,exception);\n    local_2c = (Image *)0x0;\n    if (MVar2 != MagickFalse) {\n      FormatLocaleString(image_info_00->filename,0x1000,"%s.%s",image_info_00->unique,&DAT_0030ea30)\n      ;\n      image_info_00->magick[0] = '\0';\n      local_2c = ReadImage(image_info_00,exception);\n      if (local_2c != (Image *)0x0) {\n        p_Var3 = local_2c;\n        do {\n          CopyMagickString(p_Var3->filename,pIVar1->filename,0x1000);\n          CopyMagickString(p_Var3->magick,pIVar1->magick,0x1000);\n          p_Var3 = p_Var3->next;\n        } while (p_Var3 != (_Image *)0x0);\n      }\n      RelinquishUniqueFileResource(image_info_00->filename);\n    }\n    DestroyImageInfo(image_info_00);\n    DestroyImage(pIVar1);\n  }\n  return local_2c;\n}" { (declaration "Image *pIVar1;" type_identifier (pointer_declarator "*pIVar1" * identifier) ;) (declaration "MagickBooleanType MVar2;" type_identifier identifier ;) (declaration "ImageInfo *image_info_00;" type_identifier (pointer_declarator "*image_info_00" * identifier) ;) (declaration "_Image *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "Image *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (if_statement "if (image_info == (ImageInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\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                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }" { comment (expression_statement "__assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");" (call_expression "__assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage")" identifier (argument_list "("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage")" ( (string_literal ""image_info != (const ImageInfo *) NULL"" " string_content ") , (string_literal ""coders/video.c"" " string_content ") , number_literal , (string_literal ""ReadVIDEOImage"" " string_content ") ))) ;) })) (if_statement "if (image_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }" if (parenthesized_expression "(image_info->signature != 0xabacadab)" ( (binary_expression "image_info->signature != 0xabacadab" (field_expression "image_info->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }" { comment (expression_statement "__assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");" (call_expression "__assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage")" identifier (argument_list "("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage")" ( (string_literal ""image_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""coders/video.c"" " string_content ") , number_literal , (string_literal ""ReadVIDEOImage"" " string_content ") ))) ;) })) (if_statement "if (image_info->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"coders/video.c","ReadVIDEOImage",0xaf,"%s",image_info->filename);\n  }" if (parenthesized_expression "(image_info->debug != MagickFalse)" ( (binary_expression "image_info->debug != MagickFalse" (field_expression "image_info->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    LogMagickEvent(TraceEvent,"coders/video.c","ReadVIDEOImage",0xaf,"%s",image_info->filename);\n  }" { (expression_statement "LogMagickEvent(TraceEvent,"coders/video.c","ReadVIDEOImage",0xaf,"%s",image_info->filename);" (call_expression "LogMagickEvent(TraceEvent,"coders/video.c","ReadVIDEOImage",0xaf,"%s",image_info->filename)" identifier (argument_list "(TraceEvent,"coders/video.c","ReadVIDEOImage",0xaf,"%s",image_info->filename)" ( identifier , (string_literal ""coders/video.c"" " string_content ") , (string_literal ""ReadVIDEOImage"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "image_info->filename" identifier -> field_identifier) ))) ;) })) (if_statement "if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }" if (parenthesized_expression "(exception == (ExceptionInfo *)0x0)" ( (binary_expression "exception == (ExceptionInfo *)0x0" identifier == (cast_expression "(ExceptionInfo *)0x0" ( (type_descriptor "ExceptionInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""coders/video.c"" " string_content ") , number_literal , (string_literal ""ReadVIDEOImage"" " string_content ") ))) ;) })) (if_statement "if (exception->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }" if (parenthesized_expression "(exception->signature != 0xabacadab)" ( (binary_expression "exception->signature != 0xabacadab" (field_expression "exception->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }" { comment (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage")" identifier (argument_list "("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage")" ( (string_literal ""exception->signature == MagickCoreSignature"" " string_content ") , (string_literal ""coders/video.c"" " string_content ") , number_literal , (string_literal ""ReadVIDEOImage"" " string_content ") ))) ;) })) (expression_statement "pIVar1 = AcquireImage(image_info,exception);" (assignment_expression "pIVar1 = AcquireImage(image_info,exception)" identifier = (call_expression "AcquireImage(image_info,exception)" identifier (argument_list "(image_info,exception)" ( identifier , identifier )))) ;) (expression_statement "MVar2 = OpenBlob(image_info,pIVar1,ReadBinaryBlobMode,exception);" (assignment_expression "MVar2 = OpenBlob(image_info,pIVar1,ReadBinaryBlobMode,exception)" identifier = (call_expression "OpenBlob(image_info,pIVar1,ReadBinaryBlobMode,exception)" identifier (argument_list "(image_info,pIVar1,ReadBinaryBlobMode,exception)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (MVar2 == MagickFalse) {\n    DestroyImageList(pIVar1);\n    local_2c = (Image *)0x0;\n  }\n  else {\n    CloseBlob(pIVar1);\n    DestroyImageList(pIVar1);\n    image_info_00 = CloneImageInfo(image_info);\n    pIVar1 = AcquireImage(image_info,exception);\n    MVar2 = InvokeDelegate(image_info_00,pIVar1,"video:decode",(char *)0x0,exception);\n    local_2c = (Image *)0x0;\n    if (MVar2 != MagickFalse) {\n      FormatLocaleString(image_info_00->filename,0x1000,"%s.%s",image_info_00->unique,&DAT_0030ea30)\n      ;\n      image_info_00->magick[0] = '\0';\n      local_2c = ReadImage(image_info_00,exception);\n      if (local_2c != (Image *)0x0) {\n        p_Var3 = local_2c;\n        do {\n          CopyMagickString(p_Var3->filename,pIVar1->filename,0x1000);\n          CopyMagickString(p_Var3->magick,pIVar1->magick,0x1000);\n          p_Var3 = p_Var3->next;\n        } while (p_Var3 != (_Image *)0x0);\n      }\n      RelinquishUniqueFileResource(image_info_00->filename);\n    }\n    DestroyImageInfo(image_info_00);\n    DestroyImage(pIVar1);\n  }" if (parenthesized_expression "(MVar2 == MagickFalse)" ( (binary_expression "MVar2 == MagickFalse" identifier == identifier) )) (compound_statement "{\n    DestroyImageList(pIVar1);\n    local_2c = (Image *)0x0;\n  }" { (expression_statement "DestroyImageList(pIVar1);" (call_expression "DestroyImageList(pIVar1)" identifier (argument_list "(pIVar1)" ( identifier ))) ;) (expression_statement "local_2c = (Image *)0x0;" (assignment_expression "local_2c = (Image *)0x0" identifier = (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    CloseBlob(pIVar1);\n    DestroyImageList(pIVar1);\n    image_info_00 = CloneImageInfo(image_info);\n    pIVar1 = AcquireImage(image_info,exception);\n    MVar2 = InvokeDelegate(image_info_00,pIVar1,"video:decode",(char *)0x0,exception);\n    local_2c = (Image *)0x0;\n    if (MVar2 != MagickFalse) {\n      FormatLocaleString(image_info_00->filename,0x1000,"%s.%s",image_info_00->unique,&DAT_0030ea30)\n      ;\n      image_info_00->magick[0] = '\0';\n      local_2c = ReadImage(image_info_00,exception);\n      if (local_2c != (Image *)0x0) {\n        p_Var3 = local_2c;\n        do {\n          CopyMagickString(p_Var3->filename,pIVar1->filename,0x1000);\n          CopyMagickString(p_Var3->magick,pIVar1->magick,0x1000);\n          p_Var3 = p_Var3->next;\n        } while (p_Var3 != (_Image *)0x0);\n      }\n      RelinquishUniqueFileResource(image_info_00->filename);\n    }\n    DestroyImageInfo(image_info_00);\n    DestroyImage(pIVar1);\n  }" else (compound_statement "{\n    CloseBlob(pIVar1);\n    DestroyImageList(pIVar1);\n    image_info_00 = CloneImageInfo(image_info);\n    pIVar1 = AcquireImage(image_info,exception);\n    MVar2 = InvokeDelegate(image_info_00,pIVar1,"video:decode",(char *)0x0,exception);\n    local_2c = (Image *)0x0;\n    if (MVar2 != MagickFalse) {\n      FormatLocaleString(image_info_00->filename,0x1000,"%s.%s",image_info_00->unique,&DAT_0030ea30)\n      ;\n      image_info_00->magick[0] = '\0';\n      local_2c = ReadImage(image_info_00,exception);\n      if (local_2c != (Image *)0x0) {\n        p_Var3 = local_2c;\n        do {\n          CopyMagickString(p_Var3->filename,pIVar1->filename,0x1000);\n          CopyMagickString(p_Var3->magick,pIVar1->magick,0x1000);\n          p_Var3 = p_Var3->next;\n        } while (p_Var3 != (_Image *)0x0);\n      }\n      RelinquishUniqueFileResource(image_info_00->filename);\n    }\n    DestroyImageInfo(image_info_00);\n    DestroyImage(pIVar1);\n  }" { (expression_statement "CloseBlob(pIVar1);" (call_expression "CloseBlob(pIVar1)" identifier (argument_list "(pIVar1)" ( identifier ))) ;) (expression_statement "DestroyImageList(pIVar1);" (call_expression "DestroyImageList(pIVar1)" identifier (argument_list "(pIVar1)" ( identifier ))) ;) (expression_statement "image_info_00 = CloneImageInfo(image_info);" (assignment_expression "image_info_00 = CloneImageInfo(image_info)" identifier = (call_expression "CloneImageInfo(image_info)" identifier (argument_list "(image_info)" ( identifier )))) ;) (expression_statement "pIVar1 = AcquireImage(image_info,exception);" (assignment_expression "pIVar1 = AcquireImage(image_info,exception)" identifier = (call_expression "AcquireImage(image_info,exception)" identifier (argument_list "(image_info,exception)" ( identifier , identifier )))) ;) (expression_statement "MVar2 = InvokeDelegate(image_info_00,pIVar1,"video:decode",(char *)0x0,exception);" (assignment_expression "MVar2 = InvokeDelegate(image_info_00,pIVar1,"video:decode",(char *)0x0,exception)" identifier = (call_expression "InvokeDelegate(image_info_00,pIVar1,"video:decode",(char *)0x0,exception)" identifier (argument_list "(image_info_00,pIVar1,"video:decode",(char *)0x0,exception)" ( identifier , identifier , (string_literal ""video:decode"" " string_content ") , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier )))) ;) (expression_statement "local_2c = (Image *)0x0;" (assignment_expression "local_2c = (Image *)0x0" identifier = (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (MVar2 != MagickFalse) {\n      FormatLocaleString(image_info_00->filename,0x1000,"%s.%s",image_info_00->unique,&DAT_0030ea30)\n      ;\n      image_info_00->magick[0] = '\0';\n      local_2c = ReadImage(image_info_00,exception);\n      if (local_2c != (Image *)0x0) {\n        p_Var3 = local_2c;\n        do {\n          CopyMagickString(p_Var3->filename,pIVar1->filename,0x1000);\n          CopyMagickString(p_Var3->magick,pIVar1->magick,0x1000);\n          p_Var3 = p_Var3->next;\n        } while (p_Var3 != (_Image *)0x0);\n      }\n      RelinquishUniqueFileResource(image_info_00->filename);\n    }" if (parenthesized_expression "(MVar2 != MagickFalse)" ( (binary_expression "MVar2 != MagickFalse" identifier != identifier) )) (compound_statement "{\n      FormatLocaleString(image_info_00->filename,0x1000,"%s.%s",image_info_00->unique,&DAT_0030ea30)\n      ;\n      image_info_00->magick[0] = '\0';\n      local_2c = ReadImage(image_info_00,exception);\n      if (local_2c != (Image *)0x0) {\n        p_Var3 = local_2c;\n        do {\n          CopyMagickString(p_Var3->filename,pIVar1->filename,0x1000);\n          CopyMagickString(p_Var3->magick,pIVar1->magick,0x1000);\n          p_Var3 = p_Var3->next;\n        } while (p_Var3 != (_Image *)0x0);\n      }\n      RelinquishUniqueFileResource(image_info_00->filename);\n    }" { (expression_statement "FormatLocaleString(image_info_00->filename,0x1000,"%s.%s",image_info_00->unique,&DAT_0030ea30)\n      ;" (call_expression "FormatLocaleString(image_info_00->filename,0x1000,"%s.%s",image_info_00->unique,&DAT_0030ea30)" identifier (argument_list "(image_info_00->filename,0x1000,"%s.%s",image_info_00->unique,&DAT_0030ea30)" ( (field_expression "image_info_00->filename" identifier -> field_identifier) , number_literal , (string_literal ""%s.%s"" " string_content ") , (field_expression "image_info_00->unique" identifier -> field_identifier) , (pointer_expression "&DAT_0030ea30" & identifier) ))) ;) (expression_statement "image_info_00->magick[0] = '\0';" (assignment_expression "image_info_00->magick[0] = '\0'" (subscript_expression "image_info_00->magick[0]" (field_expression "image_info_00->magick" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_2c = ReadImage(image_info_00,exception);" (assignment_expression "local_2c = ReadImage(image_info_00,exception)" identifier = (call_expression "ReadImage(image_info_00,exception)" identifier (argument_list "(image_info_00,exception)" ( identifier , identifier )))) ;) (if_statement "if (local_2c != (Image *)0x0) {\n        p_Var3 = local_2c;\n        do {\n          CopyMagickString(p_Var3->filename,pIVar1->filename,0x1000);\n          CopyMagickString(p_Var3->magick,pIVar1->magick,0x1000);\n          p_Var3 = p_Var3->next;\n        } while (p_Var3 != (_Image *)0x0);\n      }" if (parenthesized_expression "(local_2c != (Image *)0x0)" ( (binary_expression "local_2c != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        p_Var3 = local_2c;\n        do {\n          CopyMagickString(p_Var3->filename,pIVar1->filename,0x1000);\n          CopyMagickString(p_Var3->magick,pIVar1->magick,0x1000);\n          p_Var3 = p_Var3->next;\n        } while (p_Var3 != (_Image *)0x0);\n      }" { (expression_statement "p_Var3 = local_2c;" (assignment_expression "p_Var3 = local_2c" identifier = identifier) ;) (do_statement "do {\n          CopyMagickString(p_Var3->filename,pIVar1->filename,0x1000);\n          CopyMagickString(p_Var3->magick,pIVar1->magick,0x1000);\n          p_Var3 = p_Var3->next;\n        } while (p_Var3 != (_Image *)0x0);" do (compound_statement "{\n          CopyMagickString(p_Var3->filename,pIVar1->filename,0x1000);\n          CopyMagickString(p_Var3->magick,pIVar1->magick,0x1000);\n          p_Var3 = p_Var3->next;\n        }" { (expression_statement "CopyMagickString(p_Var3->filename,pIVar1->filename,0x1000);" (call_expression "CopyMagickString(p_Var3->filename,pIVar1->filename,0x1000)" identifier (argument_list "(p_Var3->filename,pIVar1->filename,0x1000)" ( (field_expression "p_Var3->filename" identifier -> field_identifier) , (field_expression "pIVar1->filename" identifier -> field_identifier) , number_literal ))) ;) (expression_statement "CopyMagickString(p_Var3->magick,pIVar1->magick,0x1000);" (call_expression "CopyMagickString(p_Var3->magick,pIVar1->magick,0x1000)" identifier (argument_list "(p_Var3->magick,pIVar1->magick,0x1000)" ( (field_expression "p_Var3->magick" identifier -> field_identifier) , (field_expression "pIVar1->magick" identifier -> field_identifier) , number_literal ))) ;) (expression_statement "p_Var3 = p_Var3->next;" (assignment_expression "p_Var3 = p_Var3->next" identifier = (field_expression "p_Var3->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(p_Var3 != (_Image *)0x0)" ( (binary_expression "p_Var3 != (_Image *)0x0" identifier != (cast_expression "(_Image *)0x0" ( (type_descriptor "_Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "RelinquishUniqueFileResource(image_info_00->filename);" (call_expression "RelinquishUniqueFileResource(image_info_00->filename)" identifier (argument_list "(image_info_00->filename)" ( (field_expression "image_info_00->filename" identifier -> field_identifier) ))) ;) })) (expression_statement "DestroyImageInfo(image_info_00);" (call_expression "DestroyImageInfo(image_info_00)" identifier (argument_list "(image_info_00)" ( identifier ))) ;) (expression_statement "DestroyImage(pIVar1);" (call_expression "DestroyImage(pIVar1)" identifier (argument_list "(pIVar1)" ( identifier ))) ;) }))) (return_statement "return local_2c;" return identifier ;) })))
(translation_unit "int FUN_00287750(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_2c;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }\n  if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }\n  if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }\n  uVar1 = AcquireImage(param_1,param_2);\n  iVar2 = OpenBlob(param_1,uVar1,2,param_2);\n  if (iVar2 == 0) {\n    DestroyImageList(uVar1);\n    local_2c = 0;\n  }\n  else {\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }\n  return local_2c;\n}\n\n" (function_definition "int FUN_00287750(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_2c;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }\n  if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }\n  if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }\n  uVar1 = AcquireImage(param_1,param_2);\n  iVar2 = OpenBlob(param_1,uVar1,2,param_2);\n  if (iVar2 == 0) {\n    DestroyImageList(uVar1);\n    local_2c = 0;\n  }\n  else {\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }\n  return local_2c;\n}" primitive_type (function_declarator "FUN_00287750(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_2c;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }\n  if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }\n  if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }\n  uVar1 = AcquireImage(param_1,param_2);\n  iVar2 = OpenBlob(param_1,uVar1,2,param_2);\n  if (iVar2 == 0) {\n    DestroyImageList(uVar1);\n    local_2c = 0;\n  }\n  else {\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }\n  return local_2c;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }" { (expression_statement "__assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");" (call_expression "__assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage")" identifier (argument_list "("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage")" ( (string_literal ""image_info != (const ImageInfo *) NULL"" " string_content ") , (string_literal ""coders/video.c"" " string_content ") , number_literal , (string_literal ""ReadVIDEOImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x31f4) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x31f4) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x31f4)" * (cast_expression "(int *)(param_1 + 0x31f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31f4)" ( (binary_expression "param_1 + 0x31f4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }" { (expression_statement "__assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");" (call_expression "__assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage")" identifier (argument_list "("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage")" ( (string_literal ""image_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""coders/video.c"" " string_content ") , number_literal , (string_literal ""ReadVIDEOImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x31f0) != 0)" ( (binary_expression "*(int *)(param_1 + 0x31f0) != 0" (pointer_expression "*(int *)(param_1 + 0x31f0)" * (cast_expression "(int *)(param_1 + 0x31f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31f0)" ( (binary_expression "param_1 + 0x31f0" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);\n  }" { (expression_statement "LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);" (call_expression "LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0)" identifier (argument_list "(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0)" ( number_literal , (string_literal ""coders/video.c"" " string_content ") , (string_literal ""ReadVIDEOImage"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0x21f0" identifier + number_literal) ))) ;) })) (if_statement "if (param_2 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }" { (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""coders/video.c"" " string_content ") , number_literal , (string_literal ""ReadVIDEOImage"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x1c) != -0x54535255)" ( (binary_expression "*(int *)(param_2 + 0x1c) != -0x54535255" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }" { (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage")" identifier (argument_list "("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage")" ( (string_literal ""exception->signature == MagickCoreSignature"" " string_content ") , (string_literal ""coders/video.c"" " string_content ") , number_literal , (string_literal ""ReadVIDEOImage"" " string_content ") ))) ;) })) (expression_statement "uVar1 = AcquireImage(param_1,param_2);" (assignment_expression "uVar1 = AcquireImage(param_1,param_2)" identifier = (call_expression "AcquireImage(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "iVar2 = OpenBlob(param_1,uVar1,2,param_2);" (assignment_expression "iVar2 = OpenBlob(param_1,uVar1,2,param_2)" identifier = (call_expression "OpenBlob(param_1,uVar1,2,param_2)" identifier (argument_list "(param_1,uVar1,2,param_2)" ( identifier , identifier , number_literal , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    DestroyImageList(uVar1);\n    local_2c = 0;\n  }\n  else {\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    DestroyImageList(uVar1);\n    local_2c = 0;\n  }" { (expression_statement "DestroyImageList(uVar1);" (call_expression "DestroyImageList(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) }) (else_clause "else {\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }" else (compound_statement "{\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }" { (expression_statement "CloseBlob(uVar1);" (call_expression "CloseBlob(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "DestroyImageList(uVar1);" (call_expression "DestroyImageList(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "iVar2 = CloneImageInfo(param_1);" (assignment_expression "iVar2 = CloneImageInfo(param_1)" identifier = (call_expression "CloneImageInfo(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar3 = AcquireImage(param_1,param_2);" (assignment_expression "iVar3 = AcquireImage(param_1,param_2)" identifier = (call_expression "AcquireImage(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);" (assignment_expression "iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2)" identifier = (call_expression "InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2)" identifier (argument_list "(iVar2,iVar3,"video:decode",0,param_2)" ( identifier , identifier , (string_literal ""video:decode"" " string_content ") , number_literal , identifier )))) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (if_statement "if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }" { (expression_statement "FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);" (call_expression "FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30)" identifier (argument_list "(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30)" ( (binary_expression "iVar2 + 0x21f0" identifier + number_literal) , number_literal , (string_literal ""%s.%s"" " string_content ") , (binary_expression "iVar2 + 0x11f0" identifier + number_literal) , (pointer_expression "&DAT_0030ea30" & identifier) ))) ;) (expression_statement "*(undefined1 *)(iVar2 + 0x1f0) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + 0x1f0) = 0" (pointer_expression "*(undefined1 *)(iVar2 + 0x1f0)" * (cast_expression "(undefined1 *)(iVar2 + 0x1f0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1f0)" ( (binary_expression "iVar2 + 0x1f0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_2c = ReadImage(iVar2,param_2);" (assignment_expression "local_2c = ReadImage(iVar2,param_2)" identifier = (call_expression "ReadImage(iVar2,param_2)" identifier (argument_list "(iVar2,param_2)" ( identifier , identifier )))) ;) (if_statement "if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }" if (parenthesized_expression "(local_2c != 0)" ( (binary_expression "local_2c != 0" identifier != number_literal) )) (compound_statement "{\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }" { (expression_statement "iVar4 = local_2c;" (assignment_expression "iVar4 = local_2c" identifier = identifier) ;) (do_statement "do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);" do (compound_statement "{\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        }" { (expression_statement "CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);" (call_expression "CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000)" identifier (argument_list "(iVar4 + 0x318,iVar3 + 0x318,0x1000)" ( (binary_expression "iVar4 + 0x318" identifier + number_literal) , (binary_expression "iVar3 + 0x318" identifier + number_literal) , number_literal ))) ;) (expression_statement "CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);" (call_expression "CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000)" identifier (argument_list "(iVar4 + 0x2318,iVar3 + 0x2318,0x1000)" ( (binary_expression "iVar4 + 0x2318" identifier + number_literal) , (binary_expression "iVar3 + 0x2318" identifier + number_literal) , number_literal ))) ;) (expression_statement "iVar4 = *(int *)(iVar4 + 0x3340);" (assignment_expression "iVar4 = *(int *)(iVar4 + 0x3340)" identifier = (pointer_expression "*(int *)(iVar4 + 0x3340)" * (cast_expression "(int *)(iVar4 + 0x3340)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x3340)" ( (binary_expression "iVar4 + 0x3340" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) ;) })) (expression_statement "RelinquishUniqueFileResource(iVar2 + 0x21f0);" (call_expression "RelinquishUniqueFileResource(iVar2 + 0x21f0)" identifier (argument_list "(iVar2 + 0x21f0)" ( (binary_expression "iVar2 + 0x21f0" identifier + number_literal) ))) ;) })) (expression_statement "DestroyImageInfo(iVar2);" (call_expression "DestroyImageInfo(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "DestroyImage(iVar3);" (call_expression "DestroyImage(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) }))) (return_statement "return local_2c;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 { (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 { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) ))) ;) })) (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 { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (string_literal " string_content ") , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , (string_literal " string_content ") , (binary_expression IDENT + LIT) , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_00287750(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_2c;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }\n  if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }\n  if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }\n  uVar1 = AcquireImage(param_1,param_2);\n  iVar2 = OpenBlob(param_1,uVar1,2,param_2);\n  if (iVar2 == 0) {\n    DestroyImageList(uVar1);\n    local_2c = 0;\n  }\n  else {\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }\n  return local_2c;\n}" (primitive_type "int") (function_declarator "FUN_00287750(int param_1,int param_2)" (identifier "FUN_00287750") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_2c;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }\n  if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);\n  }\n  if (param_2 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }\n  if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }\n  uVar1 = AcquireImage(param_1,param_2);\n  iVar2 = OpenBlob(param_1,uVar1,2,param_2);\n  if (iVar2 == 0) {\n    DestroyImageList(uVar1);\n    local_2c = 0;\n  }\n  else {\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }\n  return local_2c;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");\n  }" ({ "{") (expression_statement "__assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");" (call_expression "__assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage")" (identifier "__assert_fail") (argument_list "("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage")" (( "(") (string_literal ""image_info != (const ImageInfo *) NULL"" (" """) (string_content "image_info != (const ImageInfo *) NULL") (" """)) (, ",") (string_literal ""coders/video.c"" (" """) (string_content "coders/video.c") (" """)) (, ",") (number_literal "0xac") (, ",") (string_literal ""ReadVIDEOImage"" (" """) (string_content "ReadVIDEOImage") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x31f4) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x31f4) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x31f4)" (* "*") (cast_expression "(int *)(param_1 + 0x31f4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x31f4)" (( "(") (binary_expression "param_1 + 0x31f4" (identifier "param_1") (+ "+") (number_literal "0x31f4")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");\n  }" ({ "{") (expression_statement "__assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage");" (call_expression "__assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage")" (identifier "__assert_fail") (argument_list "("image_info->signature == MagickCoreSignature","coders/video.c",0xad,\n                  "ReadVIDEOImage")" (( "(") (string_literal ""image_info->signature == MagickCoreSignature"" (" """) (string_content "image_info->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""coders/video.c"" (" """) (string_content "coders/video.c") (" """)) (, ",") (number_literal "0xad") (, ",") (string_literal ""ReadVIDEOImage"" (" """) (string_content "ReadVIDEOImage") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x31f0) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x31f0) != 0" (pointer_expression "*(int *)(param_1 + 0x31f0)" (* "*") (cast_expression "(int *)(param_1 + 0x31f0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x31f0)" (( "(") (binary_expression "param_1 + 0x31f0" (identifier "param_1") (+ "+") (number_literal "0x31f0")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);\n  }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);" (call_expression "LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0)" (identifier "LogMagickEvent") (argument_list "(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0)" (( "(") (number_literal "0x8000") (, ",") (string_literal ""coders/video.c"" (" """) (string_content "coders/video.c") (" """)) (, ",") (string_literal ""ReadVIDEOImage"" (" """) (string_content "ReadVIDEOImage") (" """)) (, ",") (number_literal "0xaf") (, ",") (pointer_expression "&DAT_002b6e4e" (& "&") (identifier "DAT_002b6e4e")) (, ",") (binary_expression "param_1 + 0x21f0" (identifier "param_1") (+ "+") (number_literal "0x21f0")) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\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("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");\n  }" ({ "{") (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage")" (identifier "__assert_fail") (argument_list "("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage")" (( "(") (string_literal ""exception != (ExceptionInfo *) NULL"" (" """) (string_content "exception != (ExceptionInfo *) NULL") (" """)) (, ",") (string_literal ""coders/video.c"" (" """) (string_content "coders/video.c") (" """)) (, ",") (number_literal "0xb1") (, ",") (string_literal ""ReadVIDEOImage"" (" """) (string_content "ReadVIDEOImage") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_2 + 0x1c) != -0x54535255) {\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x1c) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_2 + 0x1c) != -0x54535255" (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");\n  }" ({ "{") (expression_statement "__assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage");" (call_expression "__assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage")" (identifier "__assert_fail") (argument_list "("exception->signature == MagickCoreSignature","coders/video.c",0xb2,\n                  "ReadVIDEOImage")" (( "(") (string_literal ""exception->signature == MagickCoreSignature"" (" """) (string_content "exception->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""coders/video.c"" (" """) (string_content "coders/video.c") (" """)) (, ",") (number_literal "0xb2") (, ",") (string_literal ""ReadVIDEOImage"" (" """) (string_content "ReadVIDEOImage") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = AcquireImage(param_1,param_2);" (assignment_expression "uVar1 = AcquireImage(param_1,param_2)" (identifier "uVar1") (= "=") (call_expression "AcquireImage(param_1,param_2)" (identifier "AcquireImage") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar2 = OpenBlob(param_1,uVar1,2,param_2);" (assignment_expression "iVar2 = OpenBlob(param_1,uVar1,2,param_2)" (identifier "iVar2") (= "=") (call_expression "OpenBlob(param_1,uVar1,2,param_2)" (identifier "OpenBlob") (argument_list "(param_1,uVar1,2,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "uVar1") (, ",") (number_literal "2") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    DestroyImageList(uVar1);\n    local_2c = 0;\n  }\n  else {\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    DestroyImageList(uVar1);\n    local_2c = 0;\n  }" ({ "{") (expression_statement "DestroyImageList(uVar1);" (call_expression "DestroyImageList(uVar1)" (identifier "DestroyImageList") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }" (else "else") (compound_statement "{\n    CloseBlob(uVar1);\n    DestroyImageList(uVar1);\n    iVar2 = CloneImageInfo(param_1);\n    iVar3 = AcquireImage(param_1,param_2);\n    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);\n    local_2c = 0;\n    if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }\n    DestroyImageInfo(iVar2);\n    DestroyImage(iVar3);\n  }" ({ "{") (expression_statement "CloseBlob(uVar1);" (call_expression "CloseBlob(uVar1)" (identifier "CloseBlob") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "DestroyImageList(uVar1);" (call_expression "DestroyImageList(uVar1)" (identifier "DestroyImageList") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "iVar2 = CloneImageInfo(param_1);" (assignment_expression "iVar2 = CloneImageInfo(param_1)" (identifier "iVar2") (= "=") (call_expression "CloneImageInfo(param_1)" (identifier "CloneImageInfo") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar3 = AcquireImage(param_1,param_2);" (assignment_expression "iVar3 = AcquireImage(param_1,param_2)" (identifier "iVar3") (= "=") (call_expression "AcquireImage(param_1,param_2)" (identifier "AcquireImage") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);" (assignment_expression "iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2)" (identifier "iVar4") (= "=") (call_expression "InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2)" (identifier "InvokeDelegate") (argument_list "(iVar2,iVar3,"video:decode",0,param_2)" (( "(") (identifier "iVar2") (, ",") (identifier "iVar3") (, ",") (string_literal ""video:decode"" (" """) (string_content "video:decode") (" """)) (, ",") (number_literal "0") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar4 != 0) {\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);\n      *(undefined1 *)(iVar2 + 0x1f0) = 0;\n      local_2c = ReadImage(iVar2,param_2);\n      if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }\n      RelinquishUniqueFileResource(iVar2 + 0x21f0);\n    }" ({ "{") (expression_statement "FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);" (call_expression "FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30)" (identifier "FormatLocaleString") (argument_list "(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30)" (( "(") (binary_expression "iVar2 + 0x21f0" (identifier "iVar2") (+ "+") (number_literal "0x21f0")) (, ",") (number_literal "0x1000") (, ",") (string_literal ""%s.%s"" (" """) (string_content "%s.%s") (" """)) (, ",") (binary_expression "iVar2 + 0x11f0" (identifier "iVar2") (+ "+") (number_literal "0x11f0")) (, ",") (pointer_expression "&DAT_0030ea30" (& "&") (identifier "DAT_0030ea30")) () ")"))) (; ";")) (expression_statement "*(undefined1 *)(iVar2 + 0x1f0) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + 0x1f0) = 0" (pointer_expression "*(undefined1 *)(iVar2 + 0x1f0)" (* "*") (cast_expression "(undefined1 *)(iVar2 + 0x1f0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x1f0)" (( "(") (binary_expression "iVar2 + 0x1f0" (identifier "iVar2") (+ "+") (number_literal "0x1f0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = ReadImage(iVar2,param_2);" (assignment_expression "local_2c = ReadImage(iVar2,param_2)" (identifier "local_2c") (= "=") (call_expression "ReadImage(iVar2,param_2)" (identifier "ReadImage") (argument_list "(iVar2,param_2)" (( "(") (identifier "iVar2") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (local_2c != 0) {\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }" (if "if") (parenthesized_expression "(local_2c != 0)" (( "(") (binary_expression "local_2c != 0" (identifier "local_2c") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar4 = local_2c;\n        do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);\n      }" ({ "{") (expression_statement "iVar4 = local_2c;" (assignment_expression "iVar4 = local_2c" (identifier "iVar4") (= "=") (identifier "local_2c")) (; ";")) (do_statement "do {\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        } while (iVar4 != 0);" (do "do") (compound_statement "{\n          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);\n          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);\n          iVar4 = *(int *)(iVar4 + 0x3340);\n        }" ({ "{") (expression_statement "CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);" (call_expression "CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000)" (identifier "CopyMagickString") (argument_list "(iVar4 + 0x318,iVar3 + 0x318,0x1000)" (( "(") (binary_expression "iVar4 + 0x318" (identifier "iVar4") (+ "+") (number_literal "0x318")) (, ",") (binary_expression "iVar3 + 0x318" (identifier "iVar3") (+ "+") (number_literal "0x318")) (, ",") (number_literal "0x1000") () ")"))) (; ";")) (expression_statement "CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);" (call_expression "CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000)" (identifier "CopyMagickString") (argument_list "(iVar4 + 0x2318,iVar3 + 0x2318,0x1000)" (( "(") (binary_expression "iVar4 + 0x2318" (identifier "iVar4") (+ "+") (number_literal "0x2318")) (, ",") (binary_expression "iVar3 + 0x2318" (identifier "iVar3") (+ "+") (number_literal "0x2318")) (, ",") (number_literal "0x1000") () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar4 + 0x3340);" (assignment_expression "iVar4 = *(int *)(iVar4 + 0x3340)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar4 + 0x3340)" (* "*") (cast_expression "(int *)(iVar4 + 0x3340)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x3340)" (( "(") (binary_expression "iVar4 + 0x3340" (identifier "iVar4") (+ "+") (number_literal "0x3340")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "RelinquishUniqueFileResource(iVar2 + 0x21f0);" (call_expression "RelinquishUniqueFileResource(iVar2 + 0x21f0)" (identifier "RelinquishUniqueFileResource") (argument_list "(iVar2 + 0x21f0)" (( "(") (binary_expression "iVar2 + 0x21f0" (identifier "iVar2") (+ "+") (number_literal "0x21f0")) () ")"))) (; ";")) (} "}"))) (expression_statement "DestroyImageInfo(iVar2);" (call_expression "DestroyImageInfo(iVar2)" (identifier "DestroyImageInfo") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "DestroyImage(iVar3);" (call_expression "DestroyImage(iVar3)" (identifier "DestroyImage") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (} "}")))) (return_statement "return local_2c;" (return "return") (identifier "local_2c") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* 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 */

type_1 * function_1(type_2 *var_1,type_3 *var_5)

{
  type_1 *pIVar1;
  type_4 var_8;
  type_2 *image_info_00;
  type_5 *var_17;
  type_1 *var_15;
  
  if (var_1 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");
  }
  if (var_1->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_2("image_info->signature == MagickCoreSignature","coders/video.c",0xad,
                  "ReadVIDEOImage");
  }
  if (var_1->debug != var_3) {
    var_4(TraceEvent,"coders/video.c","ReadVIDEOImage",0xaf,"%s",var_1->filename);
  }
  if (var_5 == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");
  }
  if (var_5->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_2("exception->signature == MagickCoreSignature","coders/video.c",0xb2,
                  "ReadVIDEOImage");
  }
  pIVar1 = var_6(var_1,var_5);
  var_8 = var_7(var_1,pIVar1,ReadBinaryBlobMode,var_5);
  if (var_8 == var_3) {
    var_9(pIVar1);
    var_15 = (type_1 *)0x0;
  }
  else {
    var_10(pIVar1);
    var_9(pIVar1);
    image_info_00 = var_11(var_1);
    pIVar1 = var_6(var_1,var_5);
    var_8 = var_12(image_info_00,pIVar1,"video:decode",(char *)0x0,var_5);
    var_15 = (type_1 *)0x0;
    if (var_8 != var_3) {
      var_13(image_info_00->filename,0x1000,"%s.%s",image_info_00->unique,&DAT_0030ea30)
      ;
      image_info_00->magick[0] = '\0';
      var_15 = var_14(image_info_00,var_5);
      if (var_15 != (type_1 *)0x0) {
        var_17 = var_15;
        do {
          var_16(var_17->filename,pIVar1->filename,0x1000);
          var_16(var_17->magick,pIVar1->magick,0x1000);
          var_17 = var_17->next;
        } while (var_17 != (type_5 *)0x0);
      }
      var_18(image_info_00->filename);
    }
    var_19(image_info_00);
    var_20(pIVar1);
  }
  return var_15;
}


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

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

int MASKED(int param_1,int param_2)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int local_2c;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info != (const ImageInfo *) NULL","coders/video.c",0xac,"ReadVIDEOImage");
  }
  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info->signature == MagickCoreSignature","coders/video.c",0xad,
                  "ReadVIDEOImage");
  }
  if (*(int *)(param_1 + 0x31f0) != 0) {
    LogMagickEvent(0x8000,"coders/video.c","ReadVIDEOImage",0xaf,&DAT_002b6e4e,param_1 + 0x21f0);
  }
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","coders/video.c",0xb1,"ReadVIDEOImage");
  }
  if (*(int *)(param_2 + 0x1c) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception->signature == MagickCoreSignature","coders/video.c",0xb2,
                  "ReadVIDEOImage");
  }
  uVar1 = AcquireImage(param_1,param_2);
  iVar2 = OpenBlob(param_1,uVar1,2,param_2);
  if (iVar2 == 0) {
    DestroyImageList(uVar1);
    local_2c = 0;
  }
  else {
    CloseBlob(uVar1);
    DestroyImageList(uVar1);
    iVar2 = CloneImageInfo(param_1);
    iVar3 = AcquireImage(param_1,param_2);
    iVar4 = InvokeDelegate(iVar2,iVar3,"video:decode",0,param_2);
    local_2c = 0;
    if (iVar4 != 0) {
      FormatLocaleString(iVar2 + 0x21f0,0x1000,"%s.%s",iVar2 + 0x11f0,&DAT_0030ea30);
      *(undefined1 *)(iVar2 + 0x1f0) = 0;
      local_2c = ReadImage(iVar2,param_2);
      if (local_2c != 0) {
        iVar4 = local_2c;
        do {
          CopyMagickString(iVar4 + 0x318,iVar3 + 0x318,0x1000);
          CopyMagickString(iVar4 + 0x2318,iVar3 + 0x2318,0x1000);
          iVar4 = *(int *)(iVar4 + 0x3340);
        } while (iVar4 != 0);
      }
      RelinquishUniqueFileResource(iVar2 + 0x21f0);
    }
    DestroyImageInfo(iVar2);
    DestroyImage(iVar3);
  }
  return local_2c;
}

