// File: /workspace/github_cpp_makefile_star2_O1/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 0x5b1be
movq %rsi, %rbx
cmpb $0x2d, (%rsi)
jne 0x5ae18
movzbl 0x1(%rbx), %eax
cmpl $0x2e, %eax
je 0x5ae0c
testl %eax, %eax
jne 0x5ae18
movq 0x52195(%rip), %rax     # 0xacfa8
movq (%rax), %rdi
jmp 0x5ae2a
leaq 0x38f96(%rip), %rsi     # 0x93db5
movq %rbx, %rdi
callq 0x45c0
movq %rax, %rdi
movq %r14, 0x10(%rsp)
movq %rbx, 0x8(%rsp)
testq %rdi, %rdi
je 0x5b1f7
callq 0x4540
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 0x3aca5(%rip), %r13     # 0x95b2d
leaq 0x38f26(%rip), %rbp     # 0x93db5
movq 0x52112(%rip), %r12     # 0xacfa8
xorl %edi, %edi
xorl %esi, %esi
callq 0x38039
movq %rax, %r14
callq 0x384af
movl $0x200, %esi            # imm = 0x200
movq %rbx, %rdi
leaq 0x38c70(%rip), %rdx     # 0x93b26
movq %r14, %rcx
movl $0x2f, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x4880
movl $0x200, %esi            # imm = 0x200
movq %r15, %rdi
movq %r13, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x4880
movq %r15, %rdi
movq %rbp, %rsi
callq 0x45c0
testq %rax, %rax
je 0x5af21
cmpq %rax, (%r12)
je 0x5ae96
movq 0x5208d(%rip), %rcx     # 0xacf88
cmpq %rax, (%rcx)
je 0x5ae96
movq %rax, %rdi
callq 0x4540
testl %eax, %eax
je 0x5ae96
leaq 0x38bb9(%rip), %rdi     # 0x93acc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb52
jmp 0x5ae96
leaq 0x3ac13(%rip), %rdx     # 0x95b3b
leaq 0x60(%rsp), %rdi
leaq 0x260(%rsp), %rcx
movl $0x200, %esi            # imm = 0x200
xorl %eax, %eax
callq 0x4880
xorl %edi, %edi
xorl %esi, %esi
callq 0x5b2c5
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 0x106cc
movq %r14, %rdi
callq 0x4b1dc
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 0x106cc
leaq 0x40(%rsp), %rdi
callq 0x4b1dc
movq 0x18(%rax), %r9
leaq 0x3ab6c(%rip), %rdx     # 0x95b47
leaq 0x460(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
movq %rbx, %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x4880
cmpb $0x0, 0x50(%rsp)
jne 0x5b00b
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x5b00b
callq 0x4680
cmpb $0x0, 0x30(%rsp)
movq 0x10(%rsp), %r15
jne 0x5b026
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5b026
callq 0x4680
leaq 0x460(%rsp), %rdi
callq 0x41e0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
andq %rax, %rbx
je 0x5b08b
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 0x4480
movq %r14, %rdi
callq 0x4680
xorl %r12d, %r12d
xorl %edi, %edi
xorl %esi, %esi
callq 0xc824
movl (%rax), %eax
movl %eax, 0x1c(%rsp)
xorl %edi, %edi
xorl %esi, %esi
callq 0xc824
movl $0x0, (%rax)
movq %r15, %rdi
callq 0x38896
movl $0x1, %ebp
leaq 0x60(%rsp), %r13
leaq 0x260(%rsp), %r15
leaq 0x20(%rsp), %rbx
movl $0x200, %esi            # imm = 0x200
movq %r13, %rdi
leaq 0x3aa8d(%rip), %rdx     # 0x95b67
movq %r15, %rcx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x4880
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 0x48e80
cmpq $0x0, 0x38(%rsp)
je 0x5b142
movq 0x10(%rsp), %rdi
movl (%rdi), %r14d
movl $0x1, %esi
movl %r14d, %edx
callq 0x4c5a4
shlq $0x5, %r14
addq 0x8(%rax), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb6d4
movq %r13, %rdi
callq 0x49a0
cmpb $0x0, 0x30(%rsp)
jne 0x5b158
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5b158
callq 0x4680
incl %ebp
testb $0x1, %r12b
je 0x5b0cb
jmp 0x5b184
movq %rax, %r14
cmpl $0x1, %edx
jne 0x5b2a7
movq %r14, %rdi
callq 0x41d0
movb $0x1, %r12b
callq 0x48c0
jmp 0x5b10a
xorl %edi, %edi
xorl %esi, %esi
callq 0xc824
movl 0x1c(%rsp), %ecx
movl %ecx, (%rax)
movq 0x10(%rsp), %r14
cmpq $0x0, 0x8(%r14)
je 0x5b223
cmpl $0x0, (%r14)
je 0x5b223
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 0x3a8f7(%rip), %rsi     # 0x95ad4
leaq 0x38a0b(%rip), %r9      # 0x93bef
movq %rax, %rdi
xorl %eax, %eax
callq 0xc196
leaq 0x51a2b(%rip), %rsi     # 0xacc20
jmp 0x5b263
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %rbx
leaq 0x3aa47(%rip), %rsi     # 0x95c52
leaq 0x38ba3(%rip), %rcx     # 0x93db5
movq %rax, %rdi
movq 0x8(%rsp), %rdx
xorl %eax, %eax
callq 0x385b4
jmp 0x5b25c
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 0x3a928(%rip), %rsi     # 0x95b73
leaq 0x3899d(%rip), %r9      # 0x93bef
movq %rbx, %rdi
xorl %eax, %eax
callq 0x385b4
leaq 0x51a8d(%rip), %rsi     # 0xaccf0
movq 0x51d66(%rip), %rdx     # 0xacfd0
movq %rbx, %rdi
callq 0x4900
jmp 0x5b2a4
jmp 0x5b278
jmp 0x5b278
movq %rax, %r14
movq %rbx, %rdi
callq 0x43b0
jmp 0x5b2bd
movq %rax, %r14
cmpb $0x0, 0x50(%rsp)
jne 0x5b2a7
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x5b2a7
callq 0x4680
jmp 0x5b2a7
jmp 0x5b2a4
jmp 0x5b2a4
movq %rax, %r14
cmpb $0x0, 0x30(%rsp)
jne 0x5b2bd
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5b2bd
callq 0x4680
movq %r14, %rdi
callq 0x4950