// File: /workspace/github_cpp_makefile_star2_O3/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::save_gzip_external(char const*) const
const CImg<T>& save_gzip_external(const char *const filename) const {
      if (!filename)
        throw CImgArgumentException(_cimg_instance
                                    "save_gzip_external(): Specified filename is (null).",
                                    cimg_instance);
      if (is_empty()) { cimg::fempty(0,filename); return *this; }

      char command[1024] = { 0 }, filetmp[512] = { 0 }, body[512] = { 0 };
      const char
        *ext = cimg::split_filename(filename,body),
        *ext2 = cimg::split_filename(body,0);
      std::FILE *file;
      do {
        if (!cimg::strcasecmp(ext,"gz")) {
          if (*ext2) cimg_snprintf(filetmp,sizeof(filetmp),"%s%c%s.%s",
                                   cimg::temporary_path(),cimg_file_separator,cimg::filenamerand(),ext2);
          else cimg_snprintf(filetmp,sizeof(filetmp),"%s%c%s.cimg",
                             cimg::temporary_path(),cimg_file_separator,cimg::filenamerand());
        } else {
          if (*ext) cimg_snprintf(filetmp,sizeof(filetmp),"%s%c%s.%s",
                                  cimg::temporary_path(),cimg_file_separator,cimg::filenamerand(),ext);
          else cimg_snprintf(filetmp,sizeof(filetmp),"%s%c%s.cimg",
                             cimg::temporary_path(),cimg_file_separator,cimg::filenamerand());
        }
        if ((file=std::fopen(filetmp,"rb"))!=0) cimg::fclose(file);
      } while (file);
      save(filetmp);
      cimg_snprintf(command,sizeof(command),"%s -c \"%s\" > \"%s\"",
                    cimg::gzip_path(),
                    CImg<charT>::string(filetmp)._system_strescape().data(),
                    CImg<charT>::string(filename)._system_strescape().data());
      cimg::system(command);
      file = std::fopen(filename,"rb");
      if (!file)
        throw CImgIOException(_cimg_instance
                              "save_gzip_external(): Failed to save file '%s' with external command 'gzip'.",
                              cimg_instance,
                              filename);

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x858, %rsp            # imm = 0x858
movq %rdi, %r13
testq %rsi, %rsi
je 0x5c479
movq %rsi, %r14
cmpq $0x0, 0x18(%r13)
je 0x5c05e
movdqu (%r13), %xmm0
pxor %xmm1, %xmm1
pcmpeqd %xmm0, %xmm1
movmskps %xmm1, %eax
testb %al, %al
jne 0x5c05e
leaq 0x450(%rsp), %rdi
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
callq 0x4290
leaq 0x250(%rsp), %rdi
movl $0x200, %edx            # imm = 0x200
xorl %esi, %esi
callq 0x4290
leaq 0x50(%rsp), %rbx
movl $0x200, %edx            # imm = 0x200
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4290
movq %r14, %rax
movq %rax, %r15
movq %rax, %rdi
movl $0x2e, %esi
callq 0x41a0
incq %rax
cmpq %r14, %rax
jae 0x5c019
cmpq %r14, %r15
je 0x5c0ca
movl %r14d, %r12d
notl %r12d
addl %r15d, %r12d
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x4440
movb $0x0, 0x50(%rsp,%r12)
jmp 0x5c0e5
leaq 0x32ff8(%rip), %rsi     # 0x8f05d
movq %r14, %rdi
callq 0x3b111
testq %rax, %rax
je 0x5c0b7
movq 0x4bf2f(%rip), %rcx     # 0xa7fa8
cmpq %rax, (%rcx)
je 0x5c464
movq 0x4beff(%rip), %rcx     # 0xa7f88
cmpq %rax, (%rcx)
je 0x5c464
movq %rax, %rdi
callq 0x4550
testl %eax, %eax
je 0x5c464
leaq 0x32f53(%rip), %rdi     # 0x8effc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb10
jmp 0x5c464
leaq 0x32f14(%rip), %rdi     # 0x8efd2
xorl %eax, %eax
callq 0xbb10
jmp 0x5c464
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
callq 0x44e0
movq %r14, %rdi
callq 0x41e0
movq %rax, %r15
addq %r14, %r15
movq %rbx, %rax
movq %rax, %r12
movq %rax, %rdi
movl $0x2e, %esi
callq 0x41a0
incq %rax
cmpq %rbx, %rax
jae 0x5c0e8
movq %r14, (%rsp)
movq %r13, 0x8(%rsp)
leaq 0x50(%rsp), %rax
cmpq %rax, %r12
jne 0x5c125
leaq 0x50(%rsp), %rdi
callq 0x41e0
leaq (%rsp,%rax), %r12
addq $0x50, %r12
leaq 0x333ab(%rip), %r13     # 0x8f4d7
leaq 0x250(%rsp), %rbp
movq %r15, %rdi
callq 0x41e0
movl %eax, %eax
cmpq $0x2, %rax
movl $0x2, %edx
cmovbq %rax, %rdx
incq %rdx
xorl %ecx, %ecx
movzbl (%r15,%rcx), %esi
leal -0x5b(%rsi), %edi
leal 0x20(%rsi), %r8d
cmpb $-0x1a, %dil
movzbl %r8b, %edi
cmovbl %esi, %edi
movzbl (%rcx,%r13), %esi
leal -0x5b(%rsi), %r8d
leal 0x20(%rsi), %r9d
cmpb $-0x1a, %r8b
movzbl %r9b, %r8d
cmovbl %esi, %r8d
cmpb %r8b, %dil
jne 0x5c18e
incq %rcx
cmpl %ecx, %edx
jne 0x5c150
jmp 0x5c1a1
cmpq $0x2, %rax
movl $0x2, %edx
cmovaeq %rdx, %rax
incl %eax
cmpl %ecx, %eax
jne 0x5c1e2
movb (%r12), %r14b
xorl %edi, %edi
xorl %esi, %esi
callq 0x36475
movq %rax, %rbx
callq 0x36803
testb %r14b, %r14b
je 0x5c1e0
subq $0x8, %rsp
movl $0x200, %esi            # imm = 0x200
movq %rbp, %rdi
leaq 0x34ce2(%rip), %rdx     # 0x90eb0
movq %rbx, %rcx
movl $0x2f, %r8d
movq %rax, %r9
xorl %eax, %eax
pushq %r12
jmp 0x5c21e
jmp 0x5c229
movb (%r15), %r14b
xorl %edi, %edi
xorl %esi, %esi
callq 0x36475
movq %rax, %rbx
callq 0x36803
testb %r14b, %r14b
je 0x5c229
subq $0x8, %rsp
movl $0x200, %esi            # imm = 0x200
movq %rbp, %rdi
leaq 0x34ca2(%rip), %rdx     # 0x90eb0
movq %rbx, %rcx
movl $0x2f, %r8d
movq %rax, %r9
xorl %eax, %eax
pushq %r15
callq 0x4890
addq $0x10, %rsp
jmp 0x5c24b
movl $0x200, %esi            # imm = 0x200
movq %rbp, %rdi
leaq 0x36840(%rip), %rdx     # 0x92a78
movq %rbx, %rcx
movl $0x2f, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x4890
movq %rbp, %rdi
leaq 0x33090(%rip), %rsi     # 0x8f2e5
callq 0x45d0
testq %rax, %rax
je 0x5c2a4
movq 0x4bd42(%rip), %rcx     # 0xa7fa8
cmpq %rax, (%rcx)
je 0x5c134
movq 0x4bd12(%rip), %rcx     # 0xa7f88
cmpq %rax, (%rcx)
je 0x5c134
movq %rax, %rdi
callq 0x4550
testl %eax, %eax
je 0x5c134
leaq 0x32d66(%rip), %rdi     # 0x8effc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb10
jmp 0x5c134
leaq 0x250(%rsp), %r15
movq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x6, %ecx
callq 0x7a3a
xorl %edi, %edi
xorl %esi, %esi
callq 0x61a73
movq %rax, %rbx
movq %r15, %rdi
callq 0x41e0
leal 0x1(%rax), %edx
subq $0x8, %rsp
leaq 0x38(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movl $0x1, %ecx
movl $0x1, %r8d
movl $0x1, %r9d
pushq $0x0
callq 0x1073a
addq $0x10, %rsp
movq %r12, %rdi
callq 0x492e0
movq 0x18(%rax), %r15
movq (%rsp), %r14
movq %r14, %rdi
callq 0x41e0
leal 0x1(%rax), %edx
subq $0x8, %rsp
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
movl $0x1, %r8d
movl $0x1, %r9d
pushq $0x0
callq 0x1073a
addq $0x10, %rsp
leaq 0x10(%rsp), %rdi
callq 0x492e0
movq 0x18(%rax), %r9
leaq 0x34b5a(%rip), %rdx     # 0x90eba
leaq 0x450(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
movq %rbx, %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x4890
cmpb $0x0, 0x20(%rsp)
jne 0x5c390
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x5c390
callq 0x4690
cmpb $0x0, 0x40(%rsp)
jne 0x5c3a6
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x5c3a6
callq 0x4690
leaq 0x450(%rsp), %rdi
callq 0x41e0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
andq %rax, %rbx
je 0x5c40b
addl $0x10, %eax
movq %rax, %rdi
callq 0x4040
movq %rax, %r15
leaq 0x450(%rsp), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x4240
movabsq $0x7665642f203e3220, %rax # imm = 0x7665642F203E3220
movq %rax, (%r15,%rbx)
movabsq $0x6c6c756e2f7665, %rax # imm = 0x6C6C756E2F7665
movq %rax, 0x6(%r15,%rbx)
movq %r15, %rdi
callq 0x4490
movq %r15, %rdi
callq 0x4690
leaq 0x32ed3(%rip), %rsi     # 0x8f2e5
movq %r14, %rdi
callq 0x45d0
testq %rax, %rax
je 0x5c4eb
movq 0x4bb7e(%rip), %rcx     # 0xa7fa8
cmpq %rax, (%rcx)
je 0x5c457
movq 0x4bb52(%rip), %rcx     # 0xa7f88
cmpq %rax, (%rcx)
je 0x5c457
movq %rax, %rdi
callq 0x4550
testl %eax, %eax
je 0x5c457
leaq 0x32bae(%rip), %rdi     # 0x8effc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb10
leaq 0x250(%rsp), %rdi
callq 0x49b0
movq %r13, %rax
addq $0x858, %rsp            # imm = 0x858
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 0x123cb(%rip), %rax     # 0x6e868
leaq 0x1379e(%rip), %r10     # 0x6fc42
cmpb $0x0, 0x10(%r13)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x32c67(%rip), %r11     # 0x8f11f
leaq 0x36557(%rip), %rsi     # 0x92a16
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%r13)
callq 0xc16a
addq $0x20, %rsp
leaq 0x4b774(%rip), %rsi     # 0xa7c50
movq 0x4baed(%rip), %rdx     # 0xa7fd0
movq %r14, %rdi
callq 0x4910
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 0x12359(%rip), %rax     # 0x6e868
leaq 0x1372c(%rip), %r10     # 0x6fc42
cmpb $0x0, 0x10(%r13)
cmovneq %rax, %r10
leaq 0x32bf9(%rip), %r11     # 0x8f11f
leaq 0x36557(%rip), %rsi     # 0x92a84
movq %r15, %rdi
xorl %eax, %eax
pushq %r14
pushq %r11
pushq %r10
pushq 0x18(%r13)
callq 0x36908
addq $0x20, %rsp
leaq 0x4b7a4(%rip), %rsi     # 0xa7cf0
movq 0x4ba7d(%rip), %rdx     # 0xa7fd0
movq %r15, %rdi
callq 0x4910
movq %rax, %rbx
movq %r15, %rdi
jmp 0x5c5a1
movq %rax, %rbx
cmpb $0x0, 0x20(%rsp)
jne 0x5c583
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x5c583
callq 0x4690
jmp 0x5c583
jmp 0x5c580
movq %rax, %rbx
cmpb $0x0, 0x40(%rsp)
jne 0x5c5a6
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x5c5a6
callq 0x4690
jmp 0x5c5a6
movq %rax, %rbx
movq %r14, %rdi
callq 0x43c0
movq %rbx, %rdi
callq 0x4960