// File: /workspace/github_cpp_makefile_star2_O3/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 $0x868, %rsp            # imm = 0x868
movq %rdi, %r14
testq %rsi, %rsi
je 0x5866b
movq %rsi, %rbx
cmpb $0x2d, (%rsi)
jne 0x582c6
movzbl 0x1(%rbx), %eax
cmpl $0x2e, %eax
je 0x582ba
testl %eax, %eax
jne 0x582c6
movq 0x4fce7(%rip), %rax     # 0xa7fa8
movq (%rax), %rdi
jmp 0x582d8
leaq 0x37018(%rip), %rsi     # 0x8f2e5
movq %rbx, %rdi
callq 0x45d0
movq %rax, %rdi
movq %r14, 0x10(%rsp)
movq %rbx, 0x8(%rsp)
testq %rdi, %rdi
je 0x586a4
callq 0x4550
leaq 0x460(%rsp), %rdi
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
callq 0x4290
leaq 0x260(%rsp), %rbx
movl $0x200, %edx            # imm = 0x200
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4290
leaq 0x60(%rsp), %r15
movl $0x200, %edx            # imm = 0x200
movq %r15, %rdi
xorl %esi, %esi
callq 0x4290
leaq 0x38d27(%rip), %r13     # 0x9105d
leaq 0x36fa8(%rip), %rbp     # 0x8f2e5
movq 0x4fc64(%rip), %r12     # 0xa7fa8
xorl %edi, %edi
xorl %esi, %esi
callq 0x36475
movq %rax, %r14
callq 0x36803
movl $0x200, %esi            # imm = 0x200
movq %rbx, %rdi
leaq 0x36cf2(%rip), %rdx     # 0x8f056
movq %r14, %rcx
movl $0x2f, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x4890
movl $0x200, %esi            # imm = 0x200
movq %r15, %rdi
movq %r13, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x4890
movq %r15, %rdi
movq %rbp, %rsi
callq 0x45d0
testq %rax, %rax
je 0x583cf
cmpq %rax, (%r12)
je 0x58344
movq 0x4fbdf(%rip), %rcx     # 0xa7f88
cmpq %rax, (%rcx)
je 0x58344
movq %rax, %rdi
callq 0x4550
testl %eax, %eax
je 0x58344
leaq 0x36c3b(%rip), %rdi     # 0x8effc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb10
jmp 0x58344
leaq 0x38c95(%rip), %rdx     # 0x9106b
leaq 0x60(%rsp), %rdi
leaq 0x260(%rsp), %rcx
movl $0x200, %esi            # imm = 0x200
xorl %eax, %eax
callq 0x4890
xorl %edi, %edi
xorl %esi, %esi
callq 0x58772
movq %rax, %rbx
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x41e0
leal 0x1(%rax), %edx
movl $0x0, (%rsp)
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %ecx
movl $0x1, %r8d
movl $0x1, %r9d
callq 0x1073a
movq %r14, %rdi
callq 0x492e0
movq 0x18(%rax), %r15
leaq 0x60(%rsp), %r14
movq %r14, %rdi
callq 0x41e0
leal 0x1(%rax), %edx
movl $0x0, (%rsp)
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
movl $0x1, %r8d
movl $0x1, %r9d
callq 0x1073a
leaq 0x40(%rsp), %rdi
callq 0x492e0
movq 0x18(%rax), %r9
leaq 0x38bee(%rip), %rdx     # 0x91077
leaq 0x460(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
movq %rbx, %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x4890
cmpb $0x0, 0x50(%rsp)
jne 0x584b9
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x584b9
callq 0x4690
cmpb $0x0, 0x30(%rsp)
movq 0x10(%rsp), %r15
jne 0x584d4
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x584d4
callq 0x4690
leaq 0x460(%rsp), %rdi
callq 0x41e0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
andq %rax, %rbx
je 0x58539
addl $0x10, %eax
movq %rax, %rdi
callq 0x4040
movq %rax, %r14
leaq 0x460(%rsp), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x4240
movabsq $0x7665642f203e3220, %rax # imm = 0x7665642F203E3220
movq %rax, (%r14,%rbx)
movabsq $0x6c6c756e2f7665, %rax # imm = 0x6C6C756E2F7665
movq %rax, 0x6(%r14,%rbx)
movq %r14, %rdi
callq 0x4490
movq %r14, %rdi
callq 0x4690
xorl %edi, %edi
xorl %esi, %esi
callq 0xc7e5
movl (%rax), %eax
movl %eax, 0x1c(%rsp)
xorl %edi, %edi
xorl %esi, %esi
callq 0xc7e5
movl $0x0, (%rax)
movq %r15, %rdi
callq 0x36bea
movl $0x1, %ebp
leaq 0x60(%rsp), %r13
leaq 0x260(%rsp), %r15
leaq 0x20(%rsp), %rbx
xorl %r12d, %r12d
movl $0x200, %esi            # imm = 0x200
movq %r13, %rdi
leaq 0x38b0f(%rip), %rdx     # 0x91097
movq %r15, %rcx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x4890
movq $0x0, 0x38(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movb $0x0, 0x30(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x46f8a
cmpq $0x0, 0x38(%rsp)
je 0x585f0
movq 0x10(%rsp), %rdi
movl (%rdi), %r14d
movl $0x1, %esi
movl %r14d, %edx
callq 0x4a72e
shlq $0x5, %r14
addq 0x8(%rax), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb678
movq %r13, %rdi
callq 0x49b0
cmpb $0x0, 0x30(%rsp)
jne 0x58606
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x58606
callq 0x4690
incl %ebp
testb %r12b, %r12b
je 0x58576
jmp 0x58631
movq %rax, %r14
cmpl $0x1, %edx
jne 0x58754
movq %r14, %rdi
callq 0x41d0
movb $0x1, %r12b
callq 0x48d0
jmp 0x585b8
xorl %edi, %edi
xorl %esi, %esi
callq 0xc7e5
movl 0x1c(%rsp), %ecx
movl %ecx, (%rax)
movq 0x10(%rsp), %r14
cmpq $0x0, 0x8(%r14)
je 0x586d0
cmpl $0x0, (%r14)
je 0x586d0
movq %r14, %rax
addq $0x868, %rsp            # imm = 0x868
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %rbx
movl (%r14), %edx
movl 0x4(%r14), %ecx
movq 0x8(%r14), %r8
leaq 0x3897a(%rip), %rsi     # 0x91004
leaq 0x36a8e(%rip), %r9      # 0x8f11f
movq %rax, %rdi
xorl %eax, %eax
callq 0xc16a
leaq 0x4f5ae(%rip), %rsi     # 0xa7c50
jmp 0x58710
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %rbx
leaq 0x38aca(%rip), %rsi     # 0x91182
leaq 0x36c26(%rip), %rcx     # 0x8f2e5
movq %rax, %rdi
movq 0x8(%rsp), %rdx
xorl %eax, %eax
callq 0x36908
jmp 0x58709
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %rbx
movl (%r14), %edx
movl 0x4(%r14), %ecx
movq 0x8(%r14), %r8
movq 0x8(%rsp), %rax
movq %rax, (%rsp)
leaq 0x389ab(%rip), %rsi     # 0x910a3
leaq 0x36a20(%rip), %r9      # 0x8f11f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x36908
leaq 0x4f5e0(%rip), %rsi     # 0xa7cf0
movq 0x4f8b9(%rip), %rdx     # 0xa7fd0
movq %rbx, %rdi
callq 0x4910
jmp 0x58751
jmp 0x58725
jmp 0x58725
movq %rax, %r14
movq %rbx, %rdi
callq 0x43c0
jmp 0x5876a
movq %rax, %r14
cmpb $0x0, 0x50(%rsp)
jne 0x58754
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x58754
callq 0x4690
jmp 0x58754
jmp 0x58751
jmp 0x58751
movq %rax, %r14
cmpb $0x0, 0x30(%rsp)
jne 0x5876a
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5876a
callq 0x4690
movq %r14, %rdi
callq 0x4960