// File: /workspace/github_cpp_makefile_star2_O1/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, %r13
testq %rsi, %rsi
je 0x3bce8
movq %rsi, %r14
cmpb $0x2d, (%rsi)
jne 0x3b9a3
movzbl 0x1(%r14), %eax
cmpl $0x2e, %eax
je 0x3b997
testl %eax, %eax
jne 0x3b9a3
movq 0x7160a(%rip), %rax     # 0xacfa8
movq (%rax), %rdi
jmp 0x3b9b5
leaq 0x5840b(%rip), %rsi     # 0x93db5
movq %r14, %rdi
callq 0x45c0
movq %rax, %rdi
testq %rdi, %rdi
je 0x3bd5a
callq 0x4540
leaq 0x250(%rsp), %rdi
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
callq 0x4290
leaq 0x50(%rsp), %rdi
movl $0x200, %edx            # imm = 0x200
xorl %esi, %esi
callq 0x4290
movq %r14, %rdi
callq 0x41e0
leal 0x1(%rax), %edx
subq $0x8, %rsp
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %ecx
movl $0x1, %r8d
movl $0x1, %r9d
pushq $0x0
callq 0x106cc
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x4b1dc
leaq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0x4b77c
cmpb $0x0, 0x10(%rsp)
jne 0x3ba49
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3ba49
callq 0x4680
xorl %edi, %edi
xorl %esi, %esi
callq 0x4b92f
movq 0x48(%rsp), %r8
leaq 0x590a2(%rip), %rdx     # 0x94b00
leaq 0x250(%rsp), %rbx
movl $0x400, %esi            # imm = 0x400
movq %rbx, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0x4880
leaq 0x43864(%rip), %rsi     # 0x7f2e3
movq %rbx, %rdi
callq 0x4140
testq %rax, %rax
je 0x3bac3
movq %rax, %r15
xorl %edi, %edi
xorl %esi, %esi
callq 0xc824
movl (%rax), %ebx
xorl %edi, %edi
xorl %esi, %esi
callq 0xc824
movl $0x0, (%rax)
movq %r13, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x48e80
movq %r15, %rdi
callq 0x4730
jmp 0x3bcbd
movq %r14, 0x20(%rsp)
movq %r13, 0x28(%rsp)
leaq 0x590ba(%rip), %r15     # 0x94b8e
leaq 0x50(%rsp), %r12
leaq 0x582d5(%rip), %r13     # 0x93db5
movq 0x714c1(%rip), %r14     # 0xacfa8
leaq 0x57fde(%rip), %rbp     # 0x93acc
xorl %edi, %edi
xorl %esi, %esi
callq 0x38039
movq %rax, %rbx
callq 0x384af
movl $0x200, %esi            # imm = 0x200
movq %r12, %rdi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x2f, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x4880
movq %r12, %rdi
movq %r13, %rsi
callq 0x45c0
testq %rax, %rax
je 0x3bb58
cmpq %rax, (%r14)
je 0x3baee
movq 0x7144f(%rip), %rcx     # 0xacf88
cmpq %rax, (%rcx)
je 0x3baee
movq %rax, %rdi
callq 0x4540
testl %eax, %eax
je 0x3baee
movq %rbp, %rdi
movl %eax, %esi
xorl %eax, %eax
callq 0xbb52
jmp 0x3baee
xorl %edi, %edi
xorl %esi, %esi
callq 0x4b92f
movq 0x28(%rsp), %r13
movq 0x20(%rsp), %rbp
movq %rax, %r15
movq 0x48(%rsp), %r12
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x41e0
leal 0x1(%rax), %edx
subq $0x8, %rsp
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
movl $0x1, %ecx
movl $0x1, %r8d
movl $0x1, %r9d
pushq $0x0
callq 0x106cc
addq $0x10, %rsp
movq %rsp, %rdi
callq 0x4b1dc
movq 0x18(%rax), %r9
leaq 0x58fdb(%rip), %rdx     # 0x94b99
leaq 0x250(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
movq %r15, %rcx
movq %r12, %r8
xorl %eax, %eax
callq 0x4880
cmpb $0x0, 0x10(%rsp)
jne 0x3bbee
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3bbee
callq 0x4680
xorl %edi, %edi
xorl %esi, %esi
callq 0x4b92f
leaq 0x250(%rsp), %rdi
callq 0x41e0
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
andq %rax, %r15
je 0x3bc5d
addl $0x10, %eax
movq %rax, %rdi
callq 0x4040
movq %rax, %r12
leaq 0x250(%rsp), %rsi
movq %rax, %rdi
movq %r15, %rdx
callq 0x4240
movabsq $0x7665642f203e3220, %rax # imm = 0x7665642F203E3220
movq %rax, (%r12,%r15)
movabsq $0x6c6c756e2f7665, %rax # imm = 0x6C6C756E2F7665
movq %rax, 0x6(%r12,%r15)
movq %r12, %rdi
callq 0x4480
movq %r12, %rdi
callq 0x4680
leaq 0x58151(%rip), %rsi     # 0x93db5
leaq 0x50(%rsp), %rdi
callq 0x45c0
testq %rax, %rax
je 0x3bd98
cmpq %rax, (%r14)
je 0x3bca4
movq 0x71305(%rip), %rcx     # 0xacf88
cmpq %rax, (%rcx)
je 0x3bca4
movq %rax, %rdi
callq 0x4540
testl %eax, %eax
je 0x3bca4
leaq 0x57e31(%rip), %rdi     # 0x93acc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb52
leaq 0x50(%rsp), %rdx
movq %r13, %rdi
xorl %esi, %esi
callq 0x48e80
leaq 0x50(%rsp), %rdi
callq 0x49a0
cmpb $0x0, 0x40(%rsp)
jne 0x3bcd3
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x3bcd3
callq 0x4680
movq %r13, %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
movl (%r13), %edx
movl 0x4(%r13), %ecx
movl 0x8(%r13), %r8d
movl 0xc(%r13), %r9d
leaq 0x3762c(%rip), %rax     # 0x73338
leaq 0x389ff(%rip), %r10     # 0x74712
cmpb $0x0, 0x10(%r13)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x57ec8(%rip), %r11     # 0x93bef
leaq 0x58d6f(%rip), %rsi     # 0x94a9d
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%r13)
callq 0xc196
addq $0x20, %rsp
leaq 0x70ed5(%rip), %rsi     # 0xacc20
movq 0x7127e(%rip), %rdx     # 0xacfd0
movq %r14, %rdi
callq 0x4900
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r15
leaq 0x59ee4(%rip), %rsi     # 0x95c52
leaq 0x58040(%rip), %rcx     # 0x93db5
movq %rax, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x385b4
leaq 0x70f67(%rip), %rsi     # 0xaccf0
movq 0x71240(%rip), %rdx     # 0xacfd0
movq %r15, %rdi
callq 0x4900
leaq 0x43544(%rip), %rsi     # 0x7f2e3
movq %rbp, %rdi
callq 0x3ceb3
movq %rax, %rdi
callq 0x3845e
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r15
movl (%r13), %edx
movl 0x4(%r13), %ecx
movl 0x8(%r13), %r8d
movl 0xc(%r13), %r9d
leaq 0x37565(%rip), %rax     # 0x73338
leaq 0x38938(%rip), %r10     # 0x74712
cmpb $0x0, 0x10(%r13)
cmovneq %rax, %r10
leaq 0x57e05(%rip), %r11     # 0x93bef
leaq 0x58d20(%rip), %rsi     # 0x94b11
movq %r15, %rdi
xorl %eax, %eax
pushq %rbp
pushq %r11
pushq %r10
pushq 0x18(%r13)
callq 0x385b4
addq $0x20, %rsp
leaq 0x70ee1(%rip), %rsi     # 0xaccf0
movq 0x711ba(%rip), %rdx     # 0xacfd0
movq %r15, %rdi
callq 0x4900
jmp 0x3bf01
movq %rax, %rbx
movq %r15, %rdi
callq 0x43b0
jmp 0x3bf3d
movq %rax, %rbx
cmpb $0x0, 0x10(%rsp)
jne 0x3bf3d
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3bf3d
callq 0x4680
jmp 0x3bf3d
jmp 0x3bf3a
movq %rax, %rbx
movq %r15, %rdi
jmp 0x3be6c
movq %rax, %rbx
movq %r14, %rdi
callq 0x43b0
jmp 0x3bf53
movq %rax, %rdi
callq 0x41d0
movq %r15, %rdi
callq 0x4730
xorl %edi, %edi
xorl %esi, %esi
callq 0xc824
movl %ebx, (%rax)
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r15
movl (%r13), %edx
movl 0x4(%r13), %ecx
movl 0x8(%r13), %r8d
movl 0xc(%r13), %r9d
leaq 0x37483(%rip), %rax     # 0x73338
leaq 0x38856(%rip), %r10     # 0x74712
cmpb $0x0, 0x10(%r13)
cmovneq %rax, %r10
leaq 0x57d23(%rip), %r11     # 0x93bef
leaq 0x58c3e(%rip), %rsi     # 0x94b11
movq %r15, %rdi
xorl %eax, %eax
pushq %r14
pushq %r11
pushq %r10
pushq 0x18(%r13)
callq 0x385b4
addq $0x20, %rsp
leaq 0x70dfe(%rip), %rsi     # 0xaccf0
movq 0x710d7(%rip), %rdx     # 0xacfd0
movq %r15, %rdi
callq 0x4900
movq %rax, %rbx
movq %r15, %rdi
callq 0x43b0
jmp 0x3bf11
movq %rax, %rbx
callq 0x48c0
jmp 0x3bf3d
movq %rax, %rdi
callq 0xa08f
jmp 0x3bf3a
movq %rax, %rbx
cmpb $0x0, 0x10(%rsp)
jne 0x3bf53
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3bf53
jmp 0x3bf4e
jmp 0x3bf3a
movq %rax, %rbx
cmpb $0x0, 0x40(%rsp)
jne 0x3bf53
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x3bf53
callq 0x4680
movq %rbx, %rdi
callq 0x4950
nop