// File: /workspace/github_cpp_makefile_star2_O2/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 0x467f0
movq %rdx, %r14
movq %rsi, %r15
movq %rsi, 0x8(%rsp)
testq %rsi, %rsi
jne 0x46686
leaq 0x2f9d1(%rip), %rsi     # 0x7604c
movq %r14, %rdi
callq 0x2dca5
movq %rax, %r15
leaq 0x10(%rsp), %rdi
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
callq 0x4280
testq %r14, %r14
je 0x466c3
movq %r14, %rdi
callq 0x46870
leaq 0x3127f(%rip), %rsi     # 0x7792a
leaq 0x10(%rsp), %r14
movq %rax, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4510
cmpb $0x0, (%r14)
jne 0x466d2
movabsq $0x64656d616e6e75, %rax # imm = 0x64656D616E6E75
movq %rax, 0x10(%rsp)
movl (%rbx), %ebp
movl 0x4(%rbx), %r14d
movl 0x8(%rbx), %r13d
movl 0xc(%rbx), %r12d
movq %rbx, %rdi
callq 0x8dc8
leaq 0x3129e(%rip), %rcx     # 0x7798d
leaq 0xe0f2(%rip), %r10      # 0x547e8
testb %al, %al
cmovneq %rcx, %r10
subq $0x8, %rsp
leaq 0x2e998(%rip), %r11     # 0x7509f
leaq 0x3122e(%rip), %rsi     # 0x7793c
movq %r15, %rdi
leaq 0x18(%rsp), %rdx
movl %ebp, %ecx
movl %r14d, %r8d
movl %r13d, %r9d
xorl %eax, %eax
pushq %r10
pushq %rdx
pushq %r11
pushq %r11
pushq %r12
callq 0x4750
addq $0x30, %rsp
movq %rbx, %rdi
callq 0x8dc8
testb %al, %al
je 0x46763
cmpq $0x0, 0x8(%rsp)
jne 0x4674e
movq %r15, %rdi
callq 0x2a2f8
movq %rbx, %rax
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl (%rbx), %eax
movl 0x4(%rbx), %ecx
imulq %rax, %rcx
movl 0x8(%rbx), %eax
movl 0xc(%rbx), %r13d
imulq %rax, %r13
imulq %rcx, %r13
decq %r13
xorl %ebp, %ebp
leaq 0x31216(%rip), %r12     # 0x7799d
pushq $0x1
popq %r14
cmpq %r13, %rbp
ja 0x4673e
movq 0x18(%rbx), %rax
movsd (%rax,%rbp,8), %xmm0
movq %r15, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x4750
cmpq %r13, %rbp
jne 0x467c5
leaq 0x311de(%rip), %rdi     # 0x77990
pushq $0x4
popq %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x4a50
incq %rbp
jmp 0x4678b
incq %rbp
testb $0xf, %bpl
je 0x467d9
leaq 0x311c5(%rip), %rdi     # 0x7799a
pushq $0x2
jmp 0x467e2
leaq 0x311b5(%rip), %rdi     # 0x77995
pushq $0x4
popq %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x4a50
jmp 0x4678b
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 0xdfd7(%rip), %rax      # 0x547e8
leaq 0xf3aa(%rip), %r10      # 0x55bc2
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x2e874(%rip), %r11     # 0x7509f
leaq 0x310a0(%rip), %rsi     # 0x778d2
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0x9d52
addq $0x20, %rsp
leaq 0x49412(%rip), %rsi     # 0x8fc60
movq 0x49783(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
movq %rbx, %rdi
callq 0x4950