// File: /workspace/github_cpp_makefile_star2_O3/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImgList<double>::_load_gif_external(char const*, bool)
CImgList<T>& _load_gif_external(const char *const filename, const bool use_graphicsmagick=false) {
      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());
        if (use_graphicsmagick) cimg_snprintf(filetmp2,sizeof(filetmp2),"%s.png.0",filetmp);
        else cimg_snprintf(filetmp2,sizeof(filetmp2),"%s-0.png",filetmp);
        if ((file=std::fopen(filetmp2,"rb"))!=0) cimg::fclose(file);
      } while (file);
#if cimg_OS!=2
      if (use_graphicsmagick) cimg_snprintf(command,sizeof(command),"%s convert \"%s\" \"%s.png\" >/dev/null 2>&1",
                                            cimg::graphicsmagick_path(),
                                            CImg<charT>::string(filename)._system_strescape().data(),
                                            CImg<charT>::string(filetmp)._system_strescape().data());
      else cimg_snprintf(command,sizeof(command),"%s \"%s\" \"%s.png\" >/dev/null 2>&1",
                         cimg::imagemagick_path(),
                         CImg<charT>::string(filename)._system_strescape().data(),
                         CImg<charT>::string(filetmp)._system_strescape().data());
#else
      if (use_graphicsmagick) cimg_snprintf(command,sizeof(command),"\"%s convert \"%s\" \"%s.png\"\" >NUL 2>&1",
                                            cimg::graphicsmagick_path(),
                                            CImg<charT>::string(filename)._system_strescape().data(),
                                            CImg<charT>::string(filetmp)._system_strescape().data());
      else cimg_snprintf(command,sizeof(command),"\"%s \"%s\" \"%s.png\"\" >NUL 2>&1",
                         cimg::imagemagick_path(),
                         CImg<charT>::string(filename)._system_strescape().data(),
                         CImg<charT>::string(filetmp)._system_strescape().data());
#endif
      cimg::system(command,0);
      const unsigned int omode = cimg::exception_mode();
      cimg::exception_mode() = 0;
      assign();

      // Try to read a single frame gif.
      cimg_snprintf(filetmp2,sizeof(filetmp2),"%s.png",filetmp);
      CImg<T> img;
      try { img.load_png(filetmp2); }
      catch (CImgException&) { }
      if (img) { img.move_to(*this); std::remove(filetmp2); }
      else { // Try to read animated gif.
        unsigned int i = 0;
        for (bool stop_flag = false; !stop_flag; ++i) {
          if (use_graphicsmagick) cimg_snprintf(filetmp2,sizeof(filetmp2),"%s.png.%u",filetmp,i);
          else cimg_snprintf(filetmp2,sizeof(filetmp2),"%s-%u.png",filetmp,i);
          CImg<T> img;
          try { img.load_png(filetmp2); }
          catch (CImgException&) { stop_flag = true; }
          if (img) { img.move_to(*this); std::remove(filetmp2); }
        }
      }
      cimg::exception_mode() = omode;
      return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x868, %rsp            # imm = 0x868
movl %edx, 0xc(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdi, 0x38(%rsp)
leaq 0x460(%rsp), %rdi
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
callq 0x4290
leaq 0x60(%rsp), %r15
movl $0x200, %edx            # imm = 0x200
movq %r15, %rdi
xorl %esi, %esi
callq 0x4290
leaq 0x260(%rsp), %r12
movl $0x200, %edx            # imm = 0x200
movq %r12, %rdi
xorl %esi, %esi
callq 0x4290
leaq 0x44e11(%rip), %r13     # 0x8f056
leaq 0x45099(%rip), %rbx     # 0x8f2e5
movq 0x5dd55(%rip), %rbp     # 0xa7fa8
xorl %edi, %edi
xorl %esi, %esi
callq 0x36475
movq %rax, %r14
callq 0x36803
movl $0x200, %esi            # imm = 0x200
movq %r15, %rdi
movq %r13, %rdx
movq %r14, %rcx
movl $0x2f, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x4890
cmpb $0x0, 0xc(%rsp)
je 0x4a2b4
movl $0x200, %esi            # imm = 0x200
movq %r12, %rdi
leaq 0x45f08(%rip), %rdx     # 0x901a0
movq %r15, %rcx
xorl %eax, %eax
callq 0x4890
movq %r12, %rdi
movq %rbx, %rsi
callq 0x45d0
testq %rax, %rax
jne 0x4a2e1
jmp 0x4a320
movl $0x200, %esi            # imm = 0x200
movq %r12, %rdi
leaq 0x45ee6(%rip), %rdx     # 0x901a9
movq %r15, %rcx
xorl %eax, %eax
callq 0x4890
movq %r12, %rdi
movq %rbx, %rsi
callq 0x45d0
testq %rax, %rax
je 0x4a39d
cmpq %rax, (%rbp)
je 0x4a253
movq 0x5dc96(%rip), %rcx     # 0xa7f88
cmpq %rax, (%rcx)
je 0x4a253
movq %rax, %rdi
callq 0x4550
testl %eax, %eax
je 0x4a253
leaq 0x44cea(%rip), %rdi     # 0x8effc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb10
jmp 0x4a253
xorl %edi, %edi
xorl %esi, %esi
callq 0x361ac
movq %rax, %rbx
leaq 0x40(%rsp), %r14
movq %r14, %rdi
movq 0x30(%rsp), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x49276
movq %r14, %rdi
callq 0x492e0
movq 0x18(%rax), %r14
leaq 0x60(%rsp), %r15
movq %r15, %rdi
callq 0x41e0
leal 0x1(%rax), %edx
movl $0x0, (%rsp)
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
movl $0x1, %ecx
movl $0x1, %r8d
movl $0x1, %r9d
callq 0x1073a
leaq 0x10(%rsp), %rdi
callq 0x492e0
movq 0x18(%rax), %r9
leaq 0x45e17(%rip), %rdx     # 0x901b2
jmp 0x4a418
xorl %edi, %edi
xorl %esi, %esi
callq 0x3603e
movq %rax, %rbx
leaq 0x40(%rsp), %r14
movq %r14, %rdi
movq 0x30(%rsp), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x49276
movq %r14, %rdi
callq 0x492e0
movq 0x18(%rax), %r14
leaq 0x60(%rsp), %r15
movq %r15, %rdi
callq 0x41e0
leal 0x1(%rax), %edx
movl $0x0, (%rsp)
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
movl $0x1, %ecx
movl $0x1, %r8d
movl $0x1, %r9d
callq 0x1073a
leaq 0x10(%rsp), %rdi
callq 0x492e0
movq 0x18(%rax), %r9
leaq 0x45dc3(%rip), %rdx     # 0x901db
leaq 0x460(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
movq %rbx, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x4890
cmpb $0x0, 0x20(%rsp)
jne 0x4a448
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x4a448
callq 0x4690
cmpb $0x0, 0x50(%rsp)
jne 0x4a45e
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x4a45e
callq 0x4690
leaq 0x460(%rsp), %rdi
callq 0x41e0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
andq %rax, %rbx
je 0x4a4c3
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, 0x30(%rsp)
xorl %edi, %edi
xorl %esi, %esi
callq 0xc7e5
movl $0x0, (%rax)
movq 0x38(%rsp), %rdi
callq 0x36bea
leaq 0x45d0a(%rip), %rdx     # 0x901fc
leaq 0x260(%rsp), %rbx
leaq 0x60(%rsp), %rcx
movl $0x200, %esi            # imm = 0x200
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4890
leaq 0x40(%rsp), %rdi
movq $0x0, 0x18(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movb $0x0, 0x10(%rdi)
movq %rbx, %rsi
callq 0x3b580
cmpq $0x0, 0x58(%rsp)
je 0x4a5a6
movq 0x38(%rsp), %rdi
movl (%rdi), %ebx
movl $0x1, %esi
movl %ebx, %edx
callq 0x4a72e
shlq $0x5, %rbx
addq 0x8(%rax), %rbx
leaq 0x40(%rsp), %rdi
movq %rbx, %rsi
callq 0xb678
leaq 0x260(%rsp), %rdi
callq 0x49b0
xorl %edi, %edi
xorl %esi, %esi
callq 0xc7e5
movl 0x30(%rsp), %ecx
movl %ecx, (%rax)
cmpb $0x0, 0x50(%rsp)
jne 0x4a58f
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x4a58f
callq 0x4690
movq 0x38(%rsp), %rax
addq $0x868, %rsp            # imm = 0x868
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x45c56(%rip), %rax     # 0x90203
leaq 0x45c59(%rip), %r15     # 0x9020d
cmpb $0x0, 0xc(%rsp)
cmovneq %rax, %r15
xorl %ebp, %ebp
leaq 0x260(%rsp), %r12
leaq 0x10(%rsp), %r14
xorl %r13d, %r13d
movl $0x200, %esi            # imm = 0x200
movq %r12, %rdi
movq %r15, %rdx
leaq 0x60(%rsp), %rcx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x4890
movq $0x0, 0x28(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movb $0x0, 0x20(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x3b580
cmpq $0x0, 0x28(%rsp)
je 0x4a640
movq 0x38(%rsp), %rdi
movl (%rdi), %ebx
movl $0x1, %esi
movl %ebx, %edx
callq 0x4a72e
shlq $0x5, %rbx
addq 0x8(%rax), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xb678
movq %r12, %rdi
callq 0x49b0
cmpb $0x0, 0x20(%rsp)
jne 0x4a656
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x4a656
callq 0x4690
incl %ebp
testb %r13b, %r13b
je 0x4a5cc
jmp 0x4a56a
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x4a6b2
movq %rbx, %rdi
callq 0x41d0
movb $0x1, %r13b
callq 0x48d0
jmp 0x4a60a
jmp 0x4a6af
jmp 0x4a6af
jmp 0x4a6af
jmp 0x4a6aa
jmp 0x4a6aa
jmp 0x4a6aa
jmp 0x4a6aa
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x4a6c8
movq %rbx, %rdi
callq 0x41d0
callq 0x48d0
jmp 0x4a52d
jmp 0x4a6aa
movq %rax, %rbx
jmp 0x4a6c8
movq %rax, %rbx
cmpb $0x0, 0x20(%rsp)
jne 0x4a6c8
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x4a6c8
callq 0x4690
cmpb $0x0, 0x50(%rsp)
jne 0x4a6de
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x4a6de
callq 0x4690
movq %rbx, %rdi
callq 0x4960