// File: /workspace/github_cpp_makefile_star2_O3/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::_save_cpp(_IO_FILE*, char const*) const
const CImg<T>& _save_cpp(std::FILE *const file, const char *const filename) const {
      if (!file && !filename)
        throw CImgArgumentException(_cimg_instance
                                    "save_cpp(): Specified filename is (null).",
                                    cimg_instance);
      std::FILE *const nfile = file?file:cimg::fopen(filename,"w");
      char varname[1024] = { 0 };
      if (filename) std::sscanf(cimg::basename(filename),"%1023[a-zA-Z0-9_]",varname);
      if (!*varname) cimg_snprintf(varname,sizeof(varname),"unnamed");
      std::fprintf(nfile,
                   "/* Define image '%s' of size %ux%ux%ux%u and type '%s' */\n"
                   "%s data_%s[] = { %s\n  ",
                   varname,_width,_height,_depth,_spectrum,pixel_type(),pixel_type(),varname,
                   is_empty()?"};":"");
      if (!is_empty()) for (unsigned long off = 0, siz = size()-1; off<=siz; ++off) {
        std::fprintf(nfile,cimg::type<T>::format(),cimg::type<T>::format((*this)[off]));
        if (off==siz) std::fprintf(nfile," };\n");
        else if (!((off+1)%16)) std::fprintf(nfile,",\n  ");
        else std::fprintf(nfile,", ");
      }
      if (!file) cimg::fclose(nfile);
      return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp            # imm = 0x418
movq %rdi, %rbx
movq %rsi, %rax
orq %rdx, %rax
je 0x5d124
movq %rdx, %r15
movq %rsi, %r14
movq %rsi, 0x8(%rsp)
testq %rsi, %rsi
jne 0x5cf18
leaq 0x331e9(%rip), %rsi     # 0x900f6
movq %r15, %rdi
callq 0x3b111
movq %rax, %r14
leaq 0x10(%rsp), %r12
movl $0x400, %edx            # imm = 0x400
movq %r12, %rdi
xorl %esi, %esi
callq 0x4290
testq %r15, %r15
je 0x5cf6b
movq %r15, %rax
movq %rax, %r13
movq %rax, %rdi
movl $0x2f, %esi
callq 0x41a0
incq %rax
cmpq %r15, %rax
jae 0x5cf34
leaq 0x34a81(%rip), %rsi     # 0x919d4
leaq 0x10(%rsp), %r15
movq %r13, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4540
cmpb $0x0, (%r15)
jne 0x5cf7a
movabsq $0x64656d616e6e75, %rax # imm = 0x64656D616E6E75
movq %rax, 0x10(%rsp)
movl 0x8(%rbx), %r9d
testl %r9d, %r9d
leaq 0x34aaf(%rip), %rax     # 0x91a37
leaq 0x118d9(%rip), %r10     # 0x6e868
cmoveq %rax, %r10
movl 0x4(%rbx), %r8d
testl %r8d, %r8d
cmoveq %rax, %r10
movl (%rbx), %ecx
testl %ecx, %ecx
cmoveq %rax, %r10
cmpq $0x0, 0x18(%rbx)
cmoveq %rax, %r10
movl 0xc(%rbx), %r11d
testl %r11d, %r11d
cmoveq %rax, %r10
subq $0x8, %rsp
leaq 0x3215a(%rip), %r15     # 0x8f11f
leaq 0x34a1a(%rip), %rsi     # 0x919e6
movq %r14, %rdi
movq %r12, %rdx
xorl %eax, %eax
pushq %r10
pushq %r12
pushq %r15
pushq %r15
pushq %r11
callq 0x4750
addq $0x30, %rsp
cmpq $0x0, 0x18(%rbx)
sete %dl
movl (%rbx), %ecx
movl 0x4(%rbx), %eax
testl %ecx, %ecx
sete %sil
orb %dl, %sil
testl %eax, %eax
sete %dil
movl 0x8(%rbx), %edx
testl %edx, %edx
sete %r8b
orb %dil, %r8b
orb %sil, %r8b
movl 0xc(%rbx), %esi
testl %esi, %esi
sete %dil
orb %r8b, %dil
jne 0x5d0bc
movl %ecx, %ecx
movl %eax, %eax
imulq %rcx, %rax
movl %edx, %ecx
movl %esi, %ebp
imulq %rcx, %rbp
imulq %rax, %rbp
decq %rbp
xorl %r15d, %r15d
leaq 0x34a02(%rip), %r12     # 0x91a47
leaq 0x349ee(%rip), %r13     # 0x91a3a
movq 0x18(%rbx), %rax
movsd (%rax,%r15,8), %xmm0
movq %r14, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x4750
cmpq %rbp, %r15
jne 0x5d082
movl $0x4, %esi
movl $0x1, %edx
movq %r13, %rdi
movq %r14, %rcx
callq 0x4a80
incq %r15
jmp 0x5d0b7
incq %r15
testb $0xf, %r15b
je 0x5d09e
movl $0x2, %esi
movl $0x1, %edx
leaq 0x349a8(%rip), %rdi     # 0x91a44
jmp 0x5d0af
movl $0x4, %esi
movl $0x1, %edx
leaq 0x34990(%rip), %rdi     # 0x91a3f
movq %r14, %rcx
callq 0x4a80
cmpq %rbp, %r15
jbe 0x5d04c
cmpq $0x0, 0x8(%rsp)
je 0x5d0d9
movq %rbx, %rax
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %r14, %r14
je 0x5d114
movq 0x4aec3(%rip), %rax     # 0xa7fa8
cmpq %r14, (%rax)
je 0x5d0c4
movq 0x4ae97(%rip), %rax     # 0xa7f88
cmpq %r14, (%rax)
je 0x5d0c4
movq %r14, %rdi
callq 0x4550
testl %eax, %eax
je 0x5d0c4
leaq 0x31ef3(%rip), %rdi     # 0x8effc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb10
jmp 0x5d0c4
leaq 0x31eb7(%rip), %rdi     # 0x8efd2
xorl %eax, %eax
callq 0xbb10
jmp 0x5d0c4
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0x11723(%rip), %rax     # 0x6e868
leaq 0x12af6(%rip), %r10     # 0x6fc42
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x31fc0(%rip), %r11     # 0x8f11f
leaq 0x34816(%rip), %rsi     # 0x9197c
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0xc16a
addq $0x20, %rsp
leaq 0x4aace(%rip), %rsi     # 0xa7c50
movq 0x4ae47(%rip), %rdx     # 0xa7fd0
movq %r14, %rdi
callq 0x4910
movq %rax, %rbx
movq %r14, %rdi
callq 0x43c0
movq %rbx, %rdi
callq 0x4960