// File: /workspace/github_cpp_makefile_star2_O1/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::load_imagemagick_external(char const*)
CImg<T>& load_imagemagick_external(const char *const filename) {
      if (!filename)
        throw CImgArgumentException(_cimg_instance
                                    "load_imagemagick_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%s \"%s\" pnm:-",
                    cimg::imagemagick_path(),
                    !cimg::strcasecmp(cimg::split_filename(filename),"pdf")?" -density 400x400":"",
                    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_imagemagick_external(): Failed to load file '%s' with "
                                "external command 'convert'.",
                                cimg_instance,
                                filename);
        }
        pclose(file);
        return *this;
      }
#endif
      do {
        cimg_snprintf(filetmp,sizeof(filetmp),"%s%c%s.pnm",
                      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%s \"%s\" \"%s\"",
                    cimg::imagemagick_path(),
                    !cimg::strcasecmp(cimg::split_filename(filename),"pdf")?" -density 400x400":"",
                    s_filename.data(),CImg<charT>::string(filetmp)._system_strescape().data());
      cimg::system(command,cimg::imagemagick_path());
      if (!(file = std::fopen(filetmp,"rb"))) {
        cimg::fclose(cimg::fopen(filename,"r"));
        throw CImgIOException(_cimg_instance
                              "load_imagemagick_external(): Failed to load file '%s' with external command 'convert'.",
                              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 0x5b9f7
movq %rsi, %r14
cmpb $0x2d, (%rsi)
jne 0x5b53b
movzbl 0x1(%r14), %eax
cmpl $0x2e, %eax
je 0x5b52f
testl %eax, %eax
jne 0x5b53b
movq 0x51a72(%rip), %rax     # 0xacfa8
movq (%rax), %rdi
jmp 0x5b54d
leaq 0x38873(%rip), %rsi     # 0x93db5
movq %r14, %rdi
callq 0x45c0
movq %rax, %rdi
testq %rdi, %rdi
je 0x5ba69
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 0x10(%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, 0x18(%rsp)
jne 0x5b5e1
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x5b5e1
callq 0x4680
xorl %edi, %edi
xorl %esi, %esi
callq 0x37bf6
movq %rax, %r15
movq %r14, %rax
movq %rax, %r12
movq %rax, %rdi
movl $0x2e, %esi
callq 0x41a0
incq %rax
cmpq %r14, %rax
jae 0x5b5f0
cmpq %r14, %r12
jne 0x5b61b
movq %r14, %rdi
callq 0x41e0
movq %rax, %r12
addq %r14, %r12
movq %r12, %rdi
callq 0x41e0
cmpl $0x3, %eax
movl $0x3, %ecx
cmovbl %eax, %ecx
incl %ecx
movl %eax, %eax
cmpq $0x3, %rax
movl $0x3, %edx
cmovbq %rax, %rdx
incq %rdx
xorl %eax, %eax
leaq 0x3a8eb(%rip), %rbp     # 0x95f36
movzbl (%r12,%rax), %edi
leal -0x5b(%rdi), %esi
leal 0x20(%rdi), %r8d
cmpb $-0x1a, %sil
movzbl %r8b, %esi
cmovbl %edi, %esi
movzbl (%rax,%rbp), %r8d
leal -0x5b(%r8), %edi
leal 0x20(%r8), %r9d
cmpb $-0x1a, %dil
movzbl %r9b, %edi
cmovbl %r8d, %edi
cmpb %dil, %sil
jne 0x5b689
incq %rax
cmpl %eax, %edx
jne 0x5b64b
movl %ecx, %eax
cmpb %dil, %sil
leaq 0x3a8a7(%rip), %rdx     # 0x95f3a
leaq 0x17c9e(%rip), %r12     # 0x73338
movq %r12, %r8
cmoveq %rdx, %r8
cmpl %ecx, %eax
cmoveq %rdx, %r8
movq 0x48(%rsp), %r9
leaq 0x3a873(%rip), %rdx     # 0x95f26
leaq 0x250(%rsp), %rbx
movl $0x400, %esi            # imm = 0x400
movq %rbx, %rdi
movq %r15, %rcx
xorl %eax, %eax
callq 0x4880
leaq 0x23c0f(%rip), %rsi     # 0x7f2e3
movq %rbx, %rdi
callq 0x4140
testq %rax, %rax
je 0x5b718
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 0x5b9cc
movq %r13, 0x28(%rsp)
leaq 0x3a8ad(%rip), %r15     # 0x95fd1
leaq 0x50(%rsp), %r12
leaq 0x38685(%rip), %r13     # 0x93db5
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 0x5b7a5
movq 0x51832(%rip), %rcx     # 0xacfa8
cmpq %rax, (%rcx)
je 0x5b730
movq 0x51806(%rip), %rcx     # 0xacf88
cmpq %rax, (%rcx)
je 0x5b730
movq %rax, %rdi
callq 0x4540
testl %eax, %eax
je 0x5b730
leaq 0x38332(%rip), %rdi     # 0x93acc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb52
jmp 0x5b730
xorl %edi, %edi
xorl %esi, %esi
callq 0x37bf6
movq %rax, %r15
movq %r14, %rax
movq %rax, %r12
movq %rax, %rdi
movl $0x2e, %esi
callq 0x41a0
incq %rax
cmpq %r14, %rax
jae 0x5b7b4
cmpq %r14, %r12
jne 0x5b7df
movq %r14, %rdi
callq 0x41e0
movq %rax, %r12
addq %r14, %r12
movq %r12, %rdi
callq 0x41e0
cmpl $0x3, %eax
movl $0x3, %ecx
cmovbl %eax, %ecx
incl %ecx
movl %eax, %eax
cmpq $0x3, %rax
movl $0x3, %edx
cmovbq %rax, %rdx
incq %rdx
xorl %eax, %eax
leaq 0x3a72b(%rip), %r10     # 0x95f3a
movzbl (%r12,%rax), %edi
leal -0x5b(%rdi), %esi
leal 0x20(%rdi), %r8d
cmpb $-0x1a, %sil
movzbl %r8b, %esi
cmovbl %edi, %esi
movzbl (%rax,%rbp), %r8d
leal -0x5b(%r8), %edi
leal 0x20(%r8), %r9d
cmpb $-0x1a, %dil
movzbl %r9b, %edi
cmovbl %r8d, %edi
cmpb %dil, %sil
jne 0x5b84d
incq %rax
cmpl %eax, %edx
jne 0x5b80f
movl %ecx, %eax
cmpb %dil, %sil
leaq 0x17ae1(%rip), %r12     # 0x73338
cmoveq %r10, %r12
cmpl %ecx, %eax
cmoveq %r10, %r12
movq 0x48(%rsp), %r13
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x41e0
leal 0x1(%rax), %edx
subq $0x8, %rsp
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
movl $0x1, %ecx
movl $0x1, %r8d
movl $0x1, %r9d
pushq $0x0
callq 0x106cc
addq $0x10, %rsp
leaq 0x8(%rsp), %rdi
callq 0x4b1dc
movq %rax, %r10
subq $0x8, %rsp
leaq 0x3a726(%rip), %rdx     # 0x95fdc
leaq 0x258(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
movq %r15, %rcx
movq %r12, %r8
movq %r13, %r9
xorl %eax, %eax
pushq 0x18(%r10)
callq 0x4880
addq $0x10, %rsp
cmpb $0x0, 0x18(%rsp)
jne 0x5b8f1
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x5b8f1
callq 0x4680
xorl %edi, %edi
xorl %esi, %esi
callq 0x37bf6
movq 0x28(%rsp), %r13
leaq 0x250(%rsp), %rdi
callq 0x41e0
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
andq %rax, %r15
je 0x5b965
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 0x38449(%rip), %rsi     # 0x93db5
leaq 0x50(%rsp), %rdi
callq 0x45c0
testq %rax, %rax
je 0x5baa7
movq 0x51622(%rip), %rcx     # 0xacfa8
cmpq %rax, (%rcx)
je 0x5b9b3
movq 0x515f6(%rip), %rcx     # 0xacf88
cmpq %rax, (%rcx)
je 0x5b9b3
movq %rax, %rdi
callq 0x4540
testl %eax, %eax
je 0x5b9b3
leaq 0x38122(%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 0x5b9e2
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x5b9e2
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 0x1791d(%rip), %rax     # 0x73338
leaq 0x18cf0(%rip), %r10     # 0x74712
cmpb $0x0, 0x10(%r13)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x381b9(%rip), %r11     # 0x93bef
leaq 0x3a480(%rip), %rsi     # 0x95ebd
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%r13)
callq 0xc196
addq $0x20, %rsp
leaq 0x511c6(%rip), %rsi     # 0xacc20
movq 0x5156f(%rip), %rdx     # 0xacfd0
movq %r14, %rdi
callq 0x4900
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r15
leaq 0x3a1d5(%rip), %rsi     # 0x95c52
leaq 0x38331(%rip), %rcx     # 0x93db5
movq %rax, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x385b4
leaq 0x51258(%rip), %rsi     # 0xaccf0
movq 0x51531(%rip), %rdx     # 0xacfd0
movq %r15, %rdi
callq 0x4900
leaq 0x23835(%rip), %rsi     # 0x7f2e3
movq %r14, %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 0x18c30(%rip), %r10     # 0x74712
cmpb $0x0, 0x10(%r13)
leaq 0x1784a(%rip), %rax     # 0x73338
cmovneq %rax, %r10
leaq 0x380f6(%rip), %r11     # 0x93bef
leaq 0x3a44c(%rip), %rsi     # 0x95f4c
movq %r15, %rdi
xorl %eax, %eax
pushq %r14
pushq %r11
pushq %r10
pushq 0x18(%r13)
callq 0x385b4
addq $0x20, %rsp
leaq 0x511d1(%rip), %rsi     # 0xaccf0
movq 0x514aa(%rip), %rdx     # 0xacfd0
movq %r15, %rdi
callq 0x4900
jmp 0x5bc0a
movq %rax, %rbx
movq %r15, %rdi
callq 0x43b0
jmp 0x5bc46
movq %rax, %rbx
cmpb $0x0, 0x18(%rsp)
jne 0x5bc46
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x5bc46
callq 0x4680
jmp 0x5bc46
jmp 0x5bc43
movq %rax, %rbx
movq %r15, %rdi
jmp 0x5bb7c
movq %rax, %rbx
movq %r14, %rdi
callq 0x43b0
jmp 0x5bc5c
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 0x18b4d(%rip), %r10     # 0x74712
cmpb $0x0, 0x10(%r13)
cmovneq %r12, %r10
leaq 0x3801a(%rip), %r11     # 0x93bef
leaq 0x3a370(%rip), %rsi     # 0x95f4c
movq %rax, %rdi
xorl %eax, %eax
pushq %r14
pushq %r11
pushq %r10
pushq 0x18(%r13)
callq 0x385b4
addq $0x20, %rsp
leaq 0x510f5(%rip), %rsi     # 0xaccf0
movq 0x513ce(%rip), %rdx     # 0xacfd0
movq %r15, %rdi
callq 0x4900
movq %rax, %rbx
movq %r15, %rdi
callq 0x43b0
jmp 0x5bc1a
movq %rax, %rbx
callq 0x48c0
jmp 0x5bc46
movq %rax, %rdi
callq 0xa08f
jmp 0x5bc43
movq %rax, %rbx
cmpb $0x0, 0x18(%rsp)
jne 0x5bc5c
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x5bc5c
jmp 0x5bc57
jmp 0x5bc43
movq %rax, %rbx
cmpb $0x0, 0x40(%rsp)
jne 0x5bc5c
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x5bc5c
callq 0x4680
movq %rbx, %rdi
callq 0x4950