// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImgList<double>::load_ffmpeg_external(char const*)
CImgList<T>& load_ffmpeg_external(const char *const filename) {
      if (!filename)
        throw CImgArgumentException(_cimglist_instance
                                    "load_ffmpeg_external(): Specified filename is (null).",
                                    cimglist_instance);
      std::fclose(cimg::fopen(filename,"rb"));            // Check if file exists.
      char command[1024] = { 0 }, filetmp[512] = { 0 }, filetmp2[512] = { 0 };
      std::FILE *file = 0;
      do {
        cimg_snprintf(filetmp,sizeof(filetmp),"%s%c%s",cimg::temporary_path(),cimg_file_separator,cimg::filenamerand());
        cimg_snprintf(filetmp2,sizeof(filetmp2),"%s_000001.ppm",filetmp);
        if ((file=std::fopen(filetmp2,"rb"))!=0) cimg::fclose(file);
      } while (file);
      cimg_snprintf(filetmp2,sizeof(filetmp2),"%s_%%6d.ppm",filetmp);
#if cimg_OS!=2
      cimg_snprintf(command,sizeof(command),"%s -i \"%s\" \"%s\" >/dev/null 2>&1",
                    cimg::ffmpeg_path(),
                    CImg<charT>::string(filename)._system_strescape().data(),
                    CImg<charT>::string(filetmp2)._system_strescape().data());
#else
      cimg_snprintf(command,sizeof(command),"\"%s -i \"%s\" \"%s\"\" >NUL 2>&1",
                    cimg::ffmpeg_path(),
                    CImg<charT>::string(filename)._system_strescape().data(),
                    CImg<charT>::string(filetmp2)._system_strescape().data());
#endif
      cimg::system(command,0);
      const unsigned int omode = cimg::exception_mode();
      cimg::exception_mode() = 0;
      assign();
      unsigned int i = 1;
      for (bool stop_flag = false; !stop_flag; ++i) {
        cimg_snprintf(filetmp2,sizeof(filetmp2),"%s_%.6u.ppm",filetmp,i);
        CImg<T> img;
        try { img.load_pnm(filetmp2); }
        catch (CImgException&) { stop_flag = true; }
        if (img) { img.move_to(*this); std::remove(filetmp2); }
      }
      cimg::exception_mode() = omode;
      if (is_empty())
        throw CImgIOException(_cimglist_instance
                              "load_ffmpeg_external(): Failed to open file '%s' with external command 'ffmpeg'.",
                              cimglist_instance,
                              filename);
      return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x878, %rsp            # imm = 0x878
movq %rdi, 0x18(%rsp)
testq %rsi, %rsi
je 0x42c74
leaq 0x32839(%rip), %rax     # 0x7523b
movq %rsi, 0x28(%rsp)
movq %rsi, %rdi
movq %rax, %rsi
callq 0x2dca5
movq %rax, %rdi
callq 0x4530
leaq 0x470(%rsp), %rdi
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
callq 0x4280
leaq 0x270(%rsp), %rbx
movl $0x200, %edx            # imm = 0x200
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4280
leaq 0x70(%rsp), %r14
movl $0x200, %edx            # imm = 0x200
movq %r14, %rdi
xorl %esi, %esi
callq 0x4280
leaq 0x32576(%rip), %r12     # 0x74fd6
pushq $0x2f
popq %rbp
leaq 0x34549(%rip), %r13     # 0x76fb3
xorl %edi, %edi
xorl %esi, %esi
callq 0x2a028
movq %rax, %r15
callq 0x2a352
movl $0x200, %esi            # imm = 0x200
movq %rbx, %rdi
movq %r12, %rdx
movq %r15, %rcx
movl %ebp, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x4890
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
movq %r13, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x4890
movq %r14, %rdi
leaq 0x32786(%rip), %rsi     # 0x7523b
callq 0x45b0
testq %rax, %rax
je 0x42ac9
movq %rax, %rdi
callq 0x2a2f8
jmp 0x42a6a
leaq 0x344f1(%rip), %rdx     # 0x76fc1
leaq 0x70(%rsp), %rdi
leaq 0x270(%rsp), %rcx
movl $0x200, %esi            # imm = 0x200
xorl %eax, %eax
callq 0x4890
xorl %edi, %edi
xorl %esi, %esi
callq 0x42d4f
movq %rax, %r15
leaq 0x30(%rsp), %r14
pushq $0x1
popq %rdx
movq %r14, %rdi
movq 0x28(%rsp), %rsi
xorl %ecx, %ecx
callq 0x38750
movq %r14, %rdi
callq 0x387b0
movq 0x18(%rax), %r14
leaq 0x50(%rsp), %rdi
leaq 0x70(%rsp), %rsi
pushq $0x1
popq %rbp
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x38750
leaq 0x50(%rsp), %rdi
callq 0x387b0
movq 0x18(%rax), %r9
leaq 0x3448a(%rip), %rdx     # 0x76fcd
xorl %ebx, %ebx
leaq 0x470(%rsp), %r12
movl $0x400, %esi            # imm = 0x400
movq %r12, %rdi
movq %r15, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x4890
leaq 0x50(%rsp), %rdi
callq 0xdba4
leaq 0x30(%rsp), %r15
movq %r15, %rdi
callq 0xdba4
movq %r12, %rdi
xorl %esi, %esi
callq 0x2e487
callq 0x9eac
movl (%rax), %eax
movl %eax, 0x24(%rsp)
callq 0x9eac
andl $0x0, (%rax)
movq 0x18(%rsp), %rdi
callq 0x2a65a
leaq 0x34446(%rip), %r12     # 0x76fed
leaq 0x70(%rsp), %r13
leaq 0x270(%rsp), %r14
testb $0x1, %bl
jne 0x42c42
xorl %ebx, %ebx
movl $0x200, %esi            # imm = 0x200
movq %r13, %rdi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x4890
andq $0x0, 0x48(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movb $0x0, 0x40(%rsp)
movq %r15, %rdi
movq %r13, %rsi
callq 0x2cd3a
cmpq $0x0, 0x48(%rsp)
je 0x42c15
movq %r15, %rdi
movq 0x18(%rsp), %rsi
pushq $-0x1
popq %rdx
callq 0x39770
movq %r13, %rdi
callq 0x4990
movq %r15, %rdi
callq 0x6c96
incl %ebp
jmp 0x42bb4
movq %rax, 0x10(%rsp)
cmpl $0x1, %edx
jne 0x42d3b
movq 0x10(%rsp), %rdi
callq 0x41d0
movb $0x1, %bl
callq 0x48d0
jmp 0x42bf5
callq 0x9eac
movl 0x24(%rsp), %ecx
movl %ecx, (%rax)
movq 0x18(%rsp), %r14
cmpq $0x0, 0x8(%r14)
je 0x42cb0
cmpl $0x0, (%r14)
je 0x42cb0
movq %r14, %rax
addq $0x878, %rsp            # imm = 0x878
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %rbx
movq 0x18(%rsp), %rax
movl (%rax), %edx
movl 0x4(%rax), %ecx
movq 0x8(%rax), %r8
leaq 0x342c4(%rip), %rsi     # 0x76f5a
leaq 0x32402(%rip), %r9      # 0x7509f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9d52
leaq 0x4cfb2(%rip), %rsi     # 0x8fc60
jmp 0x42cf0
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %rbx
movl (%r14), %edx
movl 0x4(%r14), %ecx
movq 0x8(%r14), %r8
movq 0x28(%rsp), %rax
movq %rax, (%rsp)
leaq 0x34321(%rip), %rsi     # 0x76ff9
leaq 0x323c0(%rip), %r9      # 0x7509f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2a3de
leaq 0x4d010(%rip), %rsi     # 0x8fd00
movq 0x4d2e1(%rip), %rdx     # 0x8ffd8
movq %rbx, %rdi
callq 0x4910
jmp 0x42d36
jmp 0x42d03
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
callq 0x4390
jmp 0x42d45
movq %rax, 0x10(%rsp)
leaq 0x50(%rsp), %rdi
callq 0xdba4
jmp 0x42d2a
jmp 0x42d25
movq %rax, 0x10(%rsp)
leaq 0x30(%rsp), %rdi
callq 0xdba4
jmp 0x42d45
movq %rax, 0x10(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x6c96
movq 0x10(%rsp), %rdi
callq 0x4950