// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::load_dcraw_external(char const*)
CImg<T>& load_dcraw_external(const char *const filename) {
      if (!filename)
        throw CImgArgumentException(_cimg_instance
                                    "load_dcraw_external(): Specified filename is (null).",
                                    cimg_instance);
      std::fclose(cimg::fopen(filename,"rb"));            // Check if file exists.
      char command[1024] = { 0 }, filetmp[512] = { 0 };
      std::FILE *file = 0;
      const CImg<charT> s_filename = CImg<charT>::string(filename)._system_strescape();
#if cimg_OS==1
      cimg_snprintf(command,sizeof(command),"%s -w -4 -c \"%s\"",
                    cimg::dcraw_path(),s_filename.data());
      file = popen(command,"r");
      if (file) {
        const unsigned int omode = cimg::exception_mode();
        cimg::exception_mode() = 0;
        try { load_pnm(file); } catch (...) {
          pclose(file);
          cimg::exception_mode() = omode;
          throw CImgIOException(_cimg_instance
                                "load_dcraw_external(): Failed to load file '%s' with external command 'dcraw'.",
                                cimg_instance,
                                filename);
        }
        pclose(file);
        return *this;
      }
#endif
      do {
        cimg_snprintf(filetmp,sizeof(filetmp),"%s%c%s.ppm",
                      cimg::temporary_path(),cimg_file_separator,cimg::filenamerand());
        if ((file=std::fopen(filetmp,"rb"))!=0) cimg::fclose(file);
      } while (file);
      cimg_snprintf(command,sizeof(command),"%s -w -4 -c \"%s\" > \"%s\"",
                    cimg::dcraw_path(),s_filename.data(),CImg<charT>::string(filetmp)._system_strescape().data());
      cimg::system(command,cimg::dcraw_path());
      if (!(file = std::fopen(filetmp,"rb"))) {
        cimg::fclose(cimg::fopen(filename,"r"));
        throw CImgIOException(_cimg_instance
                              "load_dcraw_external(): Failed to load file '%s' with external command 'dcraw'.",
                              cimg_instance,
                              filename);

      } else cimg::fclose(file);
      load_pnm(filetmp);
      std::remove(filetmp);
      return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x658, %rsp            # imm = 0x658
movq %rdi, 0x8(%rsp)
testq %rsi, %rsi
je 0x2d138
movq %rsi, %r14
leaq 0x4830a(%rip), %rsi     # 0x7523b
movq %r14, %rdi
callq 0x2dca5
movq %rax, %rdi
callq 0x4530
leaq 0x250(%rsp), %rdi
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
callq 0x4280
leaq 0x50(%rsp), %rdi
movl $0x200, %edx            # imm = 0x200
xorl %esi, %esi
callq 0x4280
leaq 0x10(%rsp), %rbx
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x38750
movq %rbx, %rdi
callq 0x387b0
leaq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0x38b58
leaq 0x10(%rsp), %rdi
callq 0xdba4
xorl %edi, %edi
xorl %esi, %esi
callq 0x38d05
movq 0x48(%rsp), %r8
leaq 0x48fd7(%rip), %rdx     # 0x75f86
leaq 0x250(%rsp), %rbx
movl $0x400, %esi            # imm = 0x400
movq %rbx, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0x4890
leaq 0x337c3(%rip), %rsi     # 0x60793
movq %rbx, %rdi
callq 0x4160
testq %rax, %rax
je 0x2d009
movq %rax, %r15
callq 0x9eac
movl (%rax), %ebx
callq 0x9eac
andl $0x0, (%rax)
movq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x38dfa
movq %r15, %rdi
callq 0x4740
jmp 0x2d117
leaq 0x49004(%rip), %r15     # 0x76014
leaq 0x50(%rsp), %r12
pushq $0x2f
popq %rbp
leaq 0x4821c(%rip), %r13     # 0x7523b
xorl %edi, %edi
xorl %esi, %esi
callq 0x2a028
movq %rax, %rbx
callq 0x2a352
movl $0x200, %esi            # imm = 0x200
movq %r12, %rdi
movq %r15, %rdx
movq %rbx, %rcx
movl %ebp, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x4890
movq %r12, %rdi
movq %r13, %rsi
callq 0x45b0
testq %rax, %rax
je 0x2d065
movq %rax, %rdi
callq 0x2a2f8
jmp 0x2d01f
xorl %edi, %edi
xorl %esi, %esi
callq 0x38d05
movq %rax, %r15
movq 0x48(%rsp), %r12
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
pushq $0x1
popq %rdx
xorl %ecx, %ecx
callq 0x38750
leaq 0x10(%rsp), %rdi
callq 0x387b0
movq 0x18(%rax), %r9
leaq 0x48f80(%rip), %rdx     # 0x7601f
leaq 0x250(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
movq %r15, %rcx
movq %r12, %r8
xorl %eax, %eax
callq 0x4890
leaq 0x10(%rsp), %rdi
callq 0xdba4
xorl %edi, %edi
xorl %esi, %esi
callq 0x38d05
leaq 0x250(%rsp), %rdi
movq %rax, %rsi
callq 0x2e487
leaq 0x48158(%rip), %rsi     # 0x7523b
leaq 0x50(%rsp), %rdi
callq 0x45b0
testq %rax, %rax
je 0x2d1aa
movq %rax, %rdi
callq 0x2a2f8
leaq 0x50(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x2cd3a
leaq 0x50(%rsp), %rdi
callq 0x4990
leaq 0x30(%rsp), %rdi
callq 0xdba4
movq 0x8(%rsp), %rax
addq $0x658, %rsp            # imm = 0x658
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
movq 0x8(%rsp), %rbx
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0x2768a(%rip), %rax     # 0x547e8
leaq 0x28a5d(%rip), %r10     # 0x55bc2
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x47f27(%rip), %r11     # 0x7509f
leaq 0x48da4(%rip), %rsi     # 0x75f23
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0x9d52
addq $0x20, %rsp
leaq 0x62ac5(%rip), %rsi     # 0x8fc60
movq 0x62e36(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
leaq 0x335e2(%rip), %rsi     # 0x60793
movq %r14, %rdi
callq 0x2dca5
movq %rax, %rdi
callq 0x2a2f8
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r15
movq 0x8(%rsp), %rbx
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0x27601(%rip), %rax     # 0x547e8
leaq 0x289d4(%rip), %r10     # 0x55bc2
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
leaq 0x47ea2(%rip), %r11     # 0x7509f
leaq 0x48d93(%rip), %rsi     # 0x75f97
movq %r15, %rdi
xorl %eax, %eax
pushq %r14
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0x2a3de
addq $0x20, %rsp
leaq 0x62ade(%rip), %rsi     # 0x8fd00
movq 0x62daf(%rip), %rdx     # 0x8ffd8
movq %r15, %rdi
callq 0x4910
jmp 0x2d2f4
movq %rax, %rbx
movq %r15, %rdi
callq 0x4390
jmp 0x2d324
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xdba4
jmp 0x2d324
jmp 0x2d321
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
jmp 0x2d32e
movq %rax, %rdi
callq 0x41d0
movq %r15, %rdi
callq 0x4740
callq 0x9eac
movl %ebx, (%rax)
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r15
movq 0x8(%rsp), %rbx
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0x2753e(%rip), %rax     # 0x547e8
leaq 0x28911(%rip), %r10     # 0x55bc2
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
leaq 0x47ddf(%rip), %r11     # 0x7509f
leaq 0x48cd0(%rip), %rsi     # 0x75f97
movq %r15, %rdi
xorl %eax, %eax
pushq %r14
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0x2a3de
addq $0x20, %rsp
leaq 0x62a1b(%rip), %rsi     # 0x8fd00
movq 0x62cec(%rip), %rdx     # 0x8ffd8
movq %r15, %rdi
callq 0x4910
movq %rax, %rbx
movq %r15, %rdi
callq 0x4390
jmp 0x2d304
movq %rax, %rbx
callq 0x48d0
jmp 0x2d324
movq %rax, %rdi
callq 0x7f6f
jmp 0x2d321
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
jmp 0x2d329
jmp 0x2d321
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xdba4
movq %rbx, %rdi
callq 0x4950