// File: /workspace/github_cpp_makefile_star2_O1/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, %ebx
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 0x48b8f(%rip), %rax     # 0x94c70
leaq 0x48b91(%rip), %r13     # 0x94c79
movl %ebx, 0xc(%rsp)
testl %ebx, %ebx
cmovneq %rax, %r13
leaq 0x47cbc(%rip), %r14     # 0x93db5
movq 0x60ea8(%rip), %rbp     # 0xacfa8
xorl %edi, %edi
xorl %esi, %esi
callq 0x38039
movq %rax, %rbx
callq 0x384af
movl $0x200, %esi            # imm = 0x200
movq %r15, %rdi
leaq 0x47a06(%rip), %rdx     # 0x93b26
movq %rbx, %rcx
movl $0x2f, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x4880
movl $0x200, %esi            # imm = 0x200
movq %r12, %rdi
movq %r13, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x4880
movq %r12, %rdi
movq %r14, %rsi
callq 0x45c0
testq %rax, %rax
je 0x4c18b
cmpq %rax, (%rbp)
je 0x4c100
movq 0x60e23(%rip), %rcx     # 0xacf88
cmpq %rax, (%rcx)
je 0x4c100
movq %rax, %rdi
callq 0x4540
testl %eax, %eax
je 0x4c100
leaq 0x4794f(%rip), %rdi     # 0x93acc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb52
jmp 0x4c100
movl 0xc(%rsp), %ebp
xorl %edi, %edi
xorl %esi, %esi
testb %bpl, %bpl
je 0x4c211
callq 0x37d68
movq %rax, %rbx
leaq 0x40(%rsp), %r14
movq %r14, %rdi
movq 0x30(%rsp), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x4b172
movq %r14, %rdi
callq 0x4b1dc
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 0x106cc
leaq 0x10(%rsp), %rdi
callq 0x4b1dc
movq 0x18(%rax), %r9
leaq 0x48a73(%rip), %rdx     # 0x94c82
jmp 0x4c288
callq 0x37bf6
movq %rax, %rbx
leaq 0x40(%rsp), %r14
movq %r14, %rdi
movq 0x30(%rsp), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x4b172
movq %r14, %rdi
callq 0x4b1dc
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 0x106cc
leaq 0x10(%rsp), %rdi
callq 0x4b1dc
movq 0x18(%rax), %r9
leaq 0x48a23(%rip), %rdx     # 0x94cab
leaq 0x460(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
movq %rbx, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x4880
cmpb $0x0, 0x20(%rsp)
jne 0x4c2b8
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x4c2b8
callq 0x4680
cmpb $0x0, 0x50(%rsp)
jne 0x4c2ce
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x4c2ce
callq 0x4680
leaq 0x460(%rsp), %rdi
callq 0x41e0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
andq %rax, %rbx
je 0x4c333
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 %edi, %edi
xorl %esi, %esi
callq 0xc824
movl (%rax), %eax
movl %eax, 0x30(%rsp)
xorl %edi, %edi
xorl %esi, %esi
callq 0xc824
movl $0x0, (%rax)
movq 0x38(%rsp), %rdi
callq 0x38896
leaq 0x4896a(%rip), %rdx     # 0x94ccc
leaq 0x260(%rsp), %rbx
leaq 0x60(%rsp), %rcx
movl $0x200, %esi            # imm = 0x200
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4880
leaq 0x40(%rsp), %rdi
movq $0x0, 0x18(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movb $0x0, 0x10(%rdi)
movq %rbx, %rsi
callq 0x3d31a
cmpq $0x0, 0x58(%rsp)
je 0x4c416
movq 0x38(%rsp), %rdi
movl (%rdi), %ebx
movl $0x1, %esi
movl %ebx, %edx
callq 0x4c5a4
shlq $0x5, %rbx
addq 0x8(%rax), %rbx
leaq 0x40(%rsp), %rdi
movq %rbx, %rsi
callq 0xb6d4
leaq 0x260(%rsp), %rdi
callq 0x49a0
xorl %edi, %edi
xorl %esi, %esi
callq 0xc824
movl 0x30(%rsp), %ecx
movl %ecx, (%rax)
cmpb $0x0, 0x50(%rsp)
jne 0x4c3ff
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x4c3ff
callq 0x4680
movq 0x38(%rsp), %rax
addq $0x868, %rsp            # imm = 0x868
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x488b6(%rip), %rax     # 0x94cd3
leaq 0x488b9(%rip), %r15     # 0x94cdd
testb %bpl, %bpl
cmovneq %rax, %r15
xorl %r13d, %r13d
leaq 0x260(%rsp), %r12
leaq 0x10(%rsp), %rbp
xorl %r14d, %r14d
movl $0x200, %esi            # imm = 0x200
movq %r12, %rdi
movq %r15, %rdx
leaq 0x60(%rsp), %rcx
movl %r14d, %r8d
xorl %eax, %eax
callq 0x4880
movq $0x0, 0x28(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movb $0x0, 0x20(%rsp)
movq %rbp, %rdi
movq %r12, %rsi
callq 0x3d31a
cmpq $0x0, 0x28(%rsp)
je 0x4c4af
movq 0x38(%rsp), %rdi
movl (%rdi), %ebx
movl $0x1, %esi
movl %ebx, %edx
callq 0x4c5a4
shlq $0x5, %rbx
addq 0x8(%rax), %rbx
movq %rbp, %rdi
movq %rbx, %rsi
callq 0xb6d4
movq %r12, %rdi
callq 0x49a0
cmpb $0x0, 0x20(%rsp)
jne 0x4c4c5
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x4c4c5
callq 0x4680
incl %r14d
testb $0x1, %r13b
je 0x4c43e
jmp 0x4c3da
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x4c527
movq %rbx, %rdi
callq 0x41d0
movb $0x1, %r13b
callq 0x48c0
jmp 0x4c479
jmp 0x4c524
jmp 0x4c524
jmp 0x4c524
jmp 0x4c51f
jmp 0x4c51f
jmp 0x4c51f
jmp 0x4c51f
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x4c53d
movq %rbx, %rdi
callq 0x41d0
callq 0x48c0
movl 0xc(%rsp), %ebp
jmp 0x4c39d
jmp 0x4c51f
movq %rax, %rbx
jmp 0x4c53d
movq %rax, %rbx
cmpb $0x0, 0x20(%rsp)
jne 0x4c53d
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x4c53d
callq 0x4680
cmpb $0x0, 0x50(%rsp)
jne 0x4c553
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x4c553
callq 0x4680
movq %rbx, %rdi
callq 0x4950
nop