// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::load_gzip_external(char const*)
CImg<T>& load_gzip_external(const char *const filename) {
      if (!filename)
        throw CImgIOException(_cimg_instance
                              "load_gzip_external(): Specified filename is (null).",
                              cimg_instance);
      std::fclose(cimg::fopen(filename,"rb"));            // Check if file exists.
      char command[1024] = { 0 }, filetmp[512] = { 0 }, body[512] = { 0 };
      const char
        *const ext = cimg::split_filename(filename,body),
        *const ext2 = cimg::split_filename(body,0);

      std::FILE *file = 0;
      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::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::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 -c \"%s\" > \"%s\"",
                    cimg::gunzip_path(),
                    CImg<charT>::string(filename)._system_strescape().data(),
                    CImg<charT>::string(filetmp)._system_strescape().data());
      cimg::system(command);
      if (!(file = std::fopen(filetmp,"rb"))) {
        cimg::fclose(cimg::fopen(filename,"r"));
        throw CImgIOException(_cimg_instance
                              "load_gzip_external(): Failed to load file '%s' with external command 'gunzip'.",
                              cimg_instance,
                              filename);

      } else cimg::fclose(file);
      load(filetmp);
      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, (%rsp)
testq %rsi, %rsi
je 0x2db3e
movq %rsi, %r14
leaq 0x47929(%rip), %rsi     # 0x7523b
movq %r14, %rdi
callq 0x2dca5
movq %rax, %rdi
callq 0x4530
leaq 0x450(%rsp), %rdi
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
callq 0x4280
leaq 0x50(%rsp), %r12
movl $0x200, %edx            # imm = 0x200
movq %r12, %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, 0x8(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2cc28
movq %rax, %r13
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2cc28
movq %rax, %rbp
pushq $0x2f
popq %r14
movq %r13, %rdi
leaq 0x47a9e(%rip), %rsi     # 0x7542d
callq 0x2ccbe
testl %eax, %eax
je 0x2d9d3
movb (%r13), %bl
xorl %edi, %edi
xorl %esi, %esi
callq 0x2a028
movq %rax, %r15
callq 0x2a352
testb %bl, %bl
je 0x2da13
subq $0x8, %rsp
movl $0x200, %esi            # imm = 0x200
movq %r12, %rdi
leaq 0x49442(%rip), %rdx     # 0x76e06
movq %r15, %rcx
movl %r14d, %r8d
movq %rax, %r9
xorl %eax, %eax
pushq %r13
jmp 0x2da0a
movb (%rbp), %bl
xorl %edi, %edi
xorl %esi, %esi
callq 0x2a028
movq %rax, %r15
callq 0x2a352
testb %bl, %bl
je 0x2da15
subq $0x8, %rsp
movl $0x200, %esi            # imm = 0x200
movq %r12, %rdi
leaq 0x49408(%rip), %rdx     # 0x76e06
movq %r15, %rcx
movl %r14d, %r8d
movq %rax, %r9
xorl %eax, %eax
pushq %rbp
callq 0x4890
popq %rcx
popq %rdx
jmp 0x2da34
jmp 0x2da15
movl $0x200, %esi            # imm = 0x200
movq %r12, %rdi
leaq 0x475b2(%rip), %rdx     # 0x74fd6
movq %r15, %rcx
movl %r14d, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x4890
movq %r12, %rdi
leaq 0x477fd(%rip), %rsi     # 0x7523b
callq 0x45b0
testq %rax, %rax
je 0x2da55
movq %rax, %rdi
callq 0x2a2f8
jmp 0x2d985
xorl %edi, %edi
xorl %esi, %esi
callq 0x2e5e8
movq %rax, %rbx
leaq 0x30(%rsp), %r14
pushq $0x1
popq %rdx
movq %r14, %rdi
movq 0x8(%rsp), %r12
movq %r12, %rsi
xorl %ecx, %ecx
callq 0x38750
movq %r14, %rdi
callq 0x387b0
movq 0x18(%rax), %r14
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
pushq $0x1
popq %rdx
xorl %ecx, %ecx
callq 0x38750
leaq 0x10(%rsp), %rdi
callq 0x387b0
movq 0x18(%rax), %r9
leaq 0x49360(%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 0x47749(%rip), %rsi     # 0x7523b
leaq 0x50(%rsp), %rdi
callq 0x45b0
testq %rax, %rax
je 0x2db9b
movq %rax, %rdi
callq 0x2a2f8
leaq 0x50(%rsp), %rbx
movq (%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2bcee
movq %rbx, %rdi
callq 0x4990
movq %r14, %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
movq (%rsp), %rbx
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0x26c85(%rip), %rax     # 0x547e8
leaq 0x28058(%rip), %r10     # 0x55bc2
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x47522(%rip), %r11     # 0x7509f
leaq 0x49220(%rip), %rsi     # 0x76da4
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0x2a3de
addq $0x20, %rsp
jmp 0x2dc0b
leaq 0x32bf1(%rip), %rsi     # 0x60793
movq %r12, %rdi
callq 0x2dca5
movq %rax, %rdi
callq 0x2a2f8
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
movq (%rsp), %rbx
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0x26c11(%rip), %rax     # 0x547e8
leaq 0x27fe4(%rip), %r10     # 0x55bc2
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
leaq 0x474b2(%rip), %r11     # 0x7509f
leaq 0x4922e(%rip), %rsi     # 0x76e22
movq %r14, %rdi
xorl %eax, %eax
pushq %r12
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0x2a3de
addq $0x20, %rsp
leaq 0x620ee(%rip), %rsi     # 0x8fd00
movq 0x623bf(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
jmp 0x2dc23
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
jmp 0x2dc4e
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xdba4
jmp 0x2dc44
jmp 0x2dc41
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xdba4
movq %rbx, %rdi
callq 0x4950