// File: /workspace/github_cpp_makefile_star2_O2/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, %r12
testq %rsi, %rsi
je 0x45de3
movq %rsi, %r14
movq %r12, %rdi
callq 0x8dc8
testb %al, %al
je 0x45bb9
xorl %edi, %edi
movq %r14, %rsi
callq 0x465c3
jmp 0x45dce
movq %r12, 0x8(%rsp)
leaq 0x450(%rsp), %rdi
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
callq 0x4280
leaq 0x50(%rsp), %r15
movl $0x200, %edx            # imm = 0x200
movq %r15, %rdi
xorl %esi, %esi
callq 0x4280
leaq 0x250(%rsp), %rbx
movl $0x200, %edx            # imm = 0x200
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4280
movq %r14, (%rsp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2cc28
movq %rax, %r12
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2cc28
movq %rax, %r13
leaq 0x2f618(%rip), %rbx     # 0x7523b
movq %r12, %rdi
leaq 0x2f800(%rip), %rsi     # 0x7542d
callq 0x2ccbe
testl %eax, %eax
je 0x45c73
movb (%r12), %r14b
xorl %edi, %edi
xorl %esi, %esi
callq 0x2a028
movq %rax, %rbp
callq 0x2a352
testb %r14b, %r14b
je 0x45cb7
subq $0x8, %rsp
movl $0x200, %esi            # imm = 0x200
movq %r15, %rdi
leaq 0x311a3(%rip), %rdx     # 0x76e06
movq %rbp, %rcx
pushq $0x2f
popq %r8
movq %rax, %r9
xorl %eax, %eax
pushq %r12
jmp 0x45cae
movb (%r13), %r14b
xorl %edi, %edi
xorl %esi, %esi
callq 0x2a028
movq %rax, %rbp
callq 0x2a352
testb %r14b, %r14b
je 0x45cb9
subq $0x8, %rsp
movl $0x200, %esi            # imm = 0x200
movq %r15, %rdi
leaq 0x31166(%rip), %rdx     # 0x76e06
movq %rbp, %rcx
pushq $0x2f
popq %r8
movq %rax, %r9
xorl %eax, %eax
pushq %r13
callq 0x4890
popq %rcx
popq %rdx
jmp 0x45cd9
jmp 0x45cb9
movl $0x200, %esi            # imm = 0x200
movq %r15, %rdi
leaq 0x32e66(%rip), %rdx     # 0x78b2e
movq %rbp, %rcx
pushq $0x2f
popq %r8
movq %rax, %r9
xorl %eax, %eax
callq 0x4890
movq %r15, %rdi
movq %rbx, %rsi
callq 0x45b0
testq %rax, %rax
je 0x45cf6
movq %rax, %rdi
callq 0x2a2f8
jmp 0x45c23
leaq 0x50(%rsp), %r14
pushq $-0x1
popq %rdx
pushq $0x6
popq %rcx
movq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x64bc
xorl %edi, %edi
xorl %esi, %esi
callq 0x49b82
movq %rax, %rbx
leaq 0x30(%rsp), %r15
pushq $0x1
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x38750
movq %r15, %rdi
callq 0x387b0
movq 0x18(%rax), %r14
leaq 0x10(%rsp), %rdi
pushq $0x1
popq %rdx
movq (%rsp), %r13
movq %r13, %rsi
xorl %ecx, %ecx
callq 0x38750
leaq 0x10(%rsp), %rdi
callq 0x387b0
movq 0x18(%rax), %r9
leaq 0x310a7(%rip), %rdx     # 0x76e10
leaq 0x450(%rsp), %r15
movl $0x400, %esi            # imm = 0x400
movq %r15, %rdi
movq %rbx, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x4890
leaq 0x10(%rsp), %rdi
callq 0xdba4
leaq 0x30(%rsp), %rdi
callq 0xdba4
movq %r15, %rdi
xorl %esi, %esi
callq 0x2e487
leaq 0x2f490(%rip), %rsi     # 0x7523b
movq %r13, %rdi
callq 0x45b0
testq %rax, %rax
je 0x45e4d
movq %rax, %rdi
callq 0x2a2f8
leaq 0x50(%rsp), %rdi
callq 0x4990
movq %r12, %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 (%r12), %edx
movl 0x4(%r12), %ecx
movl 0x8(%r12), %r8d
movl 0xc(%r12), %r9d
leaq 0xe9de(%rip), %rax      # 0x547e8
leaq 0xfdb1(%rip), %r10      # 0x55bc2
cmpb $0x0, 0x10(%r12)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x2f279(%rip), %r11     # 0x7509f
leaq 0x32c9f(%rip), %rsi     # 0x78acc
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%r12)
callq 0x9d52
addq $0x20, %rsp
leaq 0x49e15(%rip), %rsi     # 0x8fc60
jmp 0x45eb3
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
movl (%r12), %edx
movl 0x4(%r12), %ecx
movl 0x8(%r12), %r8d
movl 0xc(%r12), %r9d
leaq 0xe974(%rip), %rax      # 0x547e8
leaq 0xfd47(%rip), %r10      # 0x55bc2
cmpb $0x0, 0x10(%r12)
cmovneq %rax, %r10
leaq 0x2f213(%rip), %r11     # 0x7509f
leaq 0x32ca7(%rip), %rsi     # 0x78b3a
movq %r14, %rdi
xorl %eax, %eax
pushq %r13
pushq %r11
pushq %r10
pushq 0x18(%r12)
callq 0x2a3de
addq $0x20, %rsp
leaq 0x49e4d(%rip), %rsi     # 0x8fd00
movq 0x4a11e(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
jmp 0x45ee4
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xdba4
jmp 0x45ed8
jmp 0x45ed5
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xdba4
jmp 0x45eef
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
movq %rbx, %rdi
callq 0x4950
nop