// File: /workspace/github_cpp_makefile_star2_O3/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 0x58e90
movq %rsi, %r14
cmpb $0x2d, (%rsi)
jne 0x589e3
movzbl 0x1(%r14), %eax
cmpl $0x2e, %eax
je 0x589d7
testl %eax, %eax
jne 0x589e3
movq 0x4f5ca(%rip), %rax     # 0xa7fa8
movq (%rax), %rdi
jmp 0x589f5
leaq 0x368fb(%rip), %rsi     # 0x8f2e5
movq %r14, %rdi
callq 0x45d0
movq %rax, %rdi
testq %rdi, %rdi
je 0x58f02
callq 0x4550
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 0x1073a
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x492e0
leaq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0x49890
cmpb $0x0, 0x18(%rsp)
jne 0x58a89
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x58a89
callq 0x4690
xorl %edi, %edi
xorl %esi, %esi
callq 0x3603e
movq %rax, %r15
movq %r14, %rax
movq %rax, %r12
movq %rax, %rdi
movl $0x2e, %esi
callq 0x41a0
incq %rax
cmpq %r14, %rax
jae 0x58a98
cmpq %r14, %r12
jne 0x58ac3
movq %r14, %rdi
callq 0x41e0
movq %rax, %r12
addq %r14, %r12
movq %r12, %rdi
callq 0x41e0
movl %eax, %eax
cmpq $0x3, %rax
movl $0x3, %edx
cmovbq %rax, %rdx
incq %rdx
xorl %ecx, %ecx
leaq 0x38980(%rip), %rbp     # 0x91466
movzbl (%r12,%rcx), %esi
leal -0x5b(%rsi), %edi
leal 0x20(%rsi), %r8d
cmpb $-0x1a, %dil
movzbl %r8b, %edi
cmovbl %esi, %edi
movzbl (%rcx,%rbp), %esi
leal -0x5b(%rsi), %r8d
leal 0x20(%rsi), %r9d
cmpb $-0x1a, %r8b
movzbl %r9b, %r8d
cmovbl %esi, %r8d
cmpb %r8b, %dil
jne 0x58b23
incq %rcx
cmpl %ecx, %edx
jne 0x58ae6
jmp 0x58b36
cmpq $0x3, %rax
movl $0x3, %edx
cmovbq %rax, %rdx
incl %edx
cmpl %ecx, %edx
jne 0x58b3f
leaq 0x3892d(%rip), %r8      # 0x9146a
jmp 0x58b46
leaq 0x15d22(%rip), %r8      # 0x6e868
movq 0x48(%rsp), %r9
leaq 0x38904(%rip), %rdx     # 0x91456
leaq 0x250(%rsp), %rbx
movl $0x400, %esi            # imm = 0x400
movq %rbx, %rdi
movq %r15, %rcx
xorl %eax, %eax
callq 0x4890
leaq 0x21ca0(%rip), %rsi     # 0x7a813
movq %rbx, %rdi
callq 0x4140
testq %rax, %rax
je 0x58bb7
movq %rax, %r15
xorl %edi, %edi
xorl %esi, %esi
callq 0xc7e5
movl (%rax), %ebx
xorl %edi, %edi
xorl %esi, %esi
callq 0xc7e5
movl $0x0, (%rax)
movq %r13, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x46f8a
movq %r15, %rdi
callq 0x4740
jmp 0x58e65
movq %r13, 0x28(%rsp)
leaq 0x3893e(%rip), %r15     # 0x91501
leaq 0x50(%rsp), %r12
leaq 0x36716(%rip), %r13     # 0x8f2e5
xorl %edi, %edi
xorl %esi, %esi
callq 0x36475
movq %rax, %rbx
callq 0x36803
movl $0x200, %esi            # imm = 0x200
movq %r12, %rdi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x2f, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x4890
movq %r12, %rdi
movq %r13, %rsi
callq 0x45d0
testq %rax, %rax
je 0x58c44
movq 0x4f393(%rip), %rcx     # 0xa7fa8
cmpq %rax, (%rcx)
je 0x58bcf
movq 0x4f367(%rip), %rcx     # 0xa7f88
cmpq %rax, (%rcx)
je 0x58bcf
movq %rax, %rdi
callq 0x4550
testl %eax, %eax
je 0x58bcf
leaq 0x363c3(%rip), %rdi     # 0x8effc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb10
jmp 0x58bcf
xorl %edi, %edi
xorl %esi, %esi
callq 0x3603e
movq %rax, %r15
movq %r14, %rax
movq %rax, %r12
movq %rax, %rdi
movl $0x2e, %esi
callq 0x41a0
incq %rax
cmpq %r14, %rax
jae 0x58c53
cmpq %r14, %r12
jne 0x58c7e
movq %r14, %rdi
callq 0x41e0
movq %rax, %r12
addq %r14, %r12
movq %r12, %rdi
callq 0x41e0
movl %eax, %eax
cmpq $0x3, %rax
movl $0x3, %edx
cmovbq %rax, %rdx
incq %rdx
xorl %ecx, %ecx
movzbl (%r12,%rcx), %esi
leal -0x5b(%rsi), %edi
leal 0x20(%rsi), %r8d
cmpb $-0x1a, %dil
movzbl %r8b, %edi
cmovbl %esi, %edi
movzbl (%rcx,%rbp), %esi
leal -0x5b(%rsi), %r8d
leal 0x20(%rsi), %r9d
cmpb $-0x1a, %r8b
movzbl %r9b, %r8d
cmovbl %esi, %r8d
cmpb %r8b, %dil
jne 0x58cd7
incq %rcx
cmpl %ecx, %edx
jne 0x58c9a
jmp 0x58cea
cmpq $0x3, %rax
movl $0x3, %edx
cmovbq %rax, %rdx
incl %edx
cmpl %ecx, %edx
jne 0x58cf3
leaq 0x38779(%rip), %r12     # 0x9146a
jmp 0x58cfa
leaq 0x15b6e(%rip), %r12     # 0x6e868
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 0x1073a
addq $0x10, %rsp
leaq 0x8(%rsp), %rdi
callq 0x492e0
movq %rax, %r10
subq $0x8, %rsp
leaq 0x387bd(%rip), %rdx     # 0x9150c
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 0x4890
addq $0x10, %rsp
cmpb $0x0, 0x18(%rsp)
jne 0x58d8a
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x58d8a
callq 0x4690
xorl %edi, %edi
xorl %esi, %esi
callq 0x3603e
movq 0x28(%rsp), %r13
leaq 0x250(%rsp), %rdi
callq 0x41e0
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
andq %rax, %r15
je 0x58dfe
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 0x4490
movq %r12, %rdi
callq 0x4690
leaq 0x364e0(%rip), %rsi     # 0x8f2e5
leaq 0x50(%rsp), %rdi
callq 0x45d0
testq %rax, %rax
je 0x58f40
movq 0x4f189(%rip), %rcx     # 0xa7fa8
cmpq %rax, (%rcx)
je 0x58e4c
movq 0x4f15d(%rip), %rcx     # 0xa7f88
cmpq %rax, (%rcx)
je 0x58e4c
movq %rax, %rdi
callq 0x4550
testl %eax, %eax
je 0x58e4c
leaq 0x361b9(%rip), %rdi     # 0x8effc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb10
leaq 0x50(%rsp), %rdx
movq %r13, %rdi
xorl %esi, %esi
callq 0x46f8a
leaq 0x50(%rsp), %rdi
callq 0x49b0
cmpb $0x0, 0x40(%rsp)
jne 0x58e7b
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x58e7b
callq 0x4690
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 0x159b4(%rip), %rax     # 0x6e868
leaq 0x16d87(%rip), %r10     # 0x6fc42
cmpb $0x0, 0x10(%r13)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x36250(%rip), %r11     # 0x8f11f
leaq 0x38517(%rip), %rsi     # 0x913ed
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%r13)
callq 0xc16a
addq $0x20, %rsp
leaq 0x4ed5d(%rip), %rsi     # 0xa7c50
movq 0x4f0d6(%rip), %rdx     # 0xa7fd0
movq %r14, %rdi
callq 0x4910
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r15
leaq 0x3826c(%rip), %rsi     # 0x91182
leaq 0x363c8(%rip), %rcx     # 0x8f2e5
movq %rax, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x36908
leaq 0x4edbf(%rip), %rsi     # 0xa7cf0
movq 0x4f098(%rip), %rdx     # 0xa7fd0
movq %r15, %rdi
callq 0x4910
leaq 0x218cc(%rip), %rsi     # 0x7a813
movq %r14, %rdi
callq 0x3b111
movq %rax, %rdi
callq 0x367a9
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 0x158ed(%rip), %rax     # 0x6e868
leaq 0x16cc0(%rip), %r10     # 0x6fc42
cmpb $0x0, 0x10(%r13)
cmovneq %rax, %r10
leaq 0x3618d(%rip), %r11     # 0x8f11f
leaq 0x384e3(%rip), %rsi     # 0x9147c
movq %r15, %rdi
xorl %eax, %eax
pushq %r14
pushq %r11
pushq %r10
pushq 0x18(%r13)
callq 0x36908
addq $0x20, %rsp
leaq 0x4ed38(%rip), %rsi     # 0xa7cf0
movq 0x4f011(%rip), %rdx     # 0xa7fd0
movq %r15, %rdi
callq 0x4910
jmp 0x590aa
movq %rax, %rbx
movq %r15, %rdi
callq 0x43c0
jmp 0x590e6
movq %rax, %rbx
cmpb $0x0, 0x18(%rsp)
jne 0x590e6
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x590e6
callq 0x4690
jmp 0x590e6
jmp 0x590e3
movq %rax, %rbx
movq %r15, %rdi
jmp 0x59015
movq %rax, %rbx
movq %r14, %rdi
callq 0x43c0
jmp 0x590fc
movq %rax, %rdi
callq 0x41d0
movq %r15, %rdi
callq 0x4740
xorl %edi, %edi
xorl %esi, %esi
callq 0xc7e5
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 0x1580a(%rip), %rax     # 0x6e868
leaq 0x16bdd(%rip), %r10     # 0x6fc42
cmpb $0x0, 0x10(%r13)
cmovneq %rax, %r10
leaq 0x360aa(%rip), %r11     # 0x8f11f
leaq 0x38400(%rip), %rsi     # 0x9147c
movq %r15, %rdi
xorl %eax, %eax
pushq %r14
pushq %r11
pushq %r10
pushq 0x18(%r13)
callq 0x36908
addq $0x20, %rsp
leaq 0x4ec55(%rip), %rsi     # 0xa7cf0
movq 0x4ef2e(%rip), %rdx     # 0xa7fd0
movq %r15, %rdi
callq 0x4910
movq %rax, %rbx
movq %r15, %rdi
callq 0x43c0
jmp 0x590ba
movq %rax, %rbx
callq 0x48d0
jmp 0x590e6
movq %rax, %rdi
callq 0xa02c
jmp 0x590e3
movq %rax, %rbx
cmpb $0x0, 0x18(%rsp)
jne 0x590fc
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x590fc
jmp 0x590f7
jmp 0x590e3
movq %rax, %rbx
cmpb $0x0, 0x40(%rsp)
jne 0x590fc
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x590fc
callq 0x4690
movq %rbx, %rdi
callq 0x4960