// File: /workspace/github_cpp_makefile_star2_O1/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 0x5fcfb
movq %rdx, %r15
movq %rsi, %r14
movq %rsi, 0x8(%rsp)
testq %rsi, %rsi
jne 0x5fb04
leaq 0x350cd(%rip), %rsi     # 0x94bc6
movq %r15, %rdi
callq 0x3ceb3
movq %rax, %r14
leaq 0x10(%rsp), %r12
movl $0x400, %edx            # imm = 0x400
movq %r12, %rdi
xorl %esi, %esi
callq 0x4290
testq %r15, %r15
je 0x5fb4e
movq %r15, %rax
movq %rax, %r13
movq %rax, %rdi
movl $0x2f, %esi
callq 0x41a0
incq %rax
cmpq %r15, %rax
jae 0x5fb20
leaq 0x36965(%rip), %rsi     # 0x964a4
leaq 0x10(%rsp), %rdx
movq %r13, %rdi
xorl %eax, %eax
callq 0x4530
cmpb $0x0, 0x10(%rsp)
jne 0x5fb64
movabsq $0x64656d616e6e75, %rax # imm = 0x64656D616E6E75
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x18(%rbx)
leaq 0x36997(%rip), %rax     # 0x96507
leaq 0x137c1(%rip), %r10     # 0x73338
cmoveq %rax, %r10
movl (%rbx), %ecx
testl %ecx, %ecx
cmoveq %rax, %r10
movl 0x4(%rbx), %r8d
testl %r8d, %r8d
cmoveq %rax, %r10
movl 0x8(%rbx), %r9d
testl %r9d, %r9d
cmoveq %rax, %r10
movl 0xc(%rbx), %r11d
testl %r11d, %r11d
cmoveq %rax, %r10
subq $0x8, %rsp
leaq 0x34040(%rip), %r15     # 0x93bef
leaq 0x36900(%rip), %rsi     # 0x964b6
movq %r14, %rdi
movq %r12, %rdx
xorl %eax, %eax
pushq %r10
pushq %r12
pushq %r15
pushq %r15
pushq %r11
callq 0x4740
addq $0x30, %rsp
cmpq $0x0, 0x18(%rbx)
je 0x5fc93
movdqu (%rbx), %xmm0
pxor %xmm1, %xmm1
pcmpeqd %xmm0, %xmm1
movmskps %xmm1, %eax
testb %al, %al
jne 0x5fc93
movd %xmm0, %eax
pshufd $0x55, %xmm0, %xmm1     # xmm1 = xmm0[1,1,1,1]
movd %xmm1, %ecx
imulq %rax, %rcx
pshufd $0xee, %xmm0, %xmm0     # xmm0 = xmm0[2,3,2,3]
movd %xmm0, %eax
movl 0xc(%rbx), %ebp
imulq %rax, %rbp
imulq %rcx, %rbp
decq %rbp
xorl %r15d, %r15d
leaq 0x368f2(%rip), %r12     # 0x96517
leaq 0x368de(%rip), %r13     # 0x9650a
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %xmm0
movq %r14, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x4740
cmpq %r15, %rbp
jne 0x5fc57
movl $0x4, %esi
movl $0x1, %edx
movq %r13, %rdi
jmp 0x5fc83
leal 0x1(%r15), %eax
testb $0xf, %al
je 0x5fc72
movl $0x2, %esi
movl $0x1, %edx
leaq 0x368a4(%rip), %rdi     # 0x96514
jmp 0x5fc83
movl $0x4, %esi
movl $0x1, %edx
leaq 0x3688c(%rip), %rdi     # 0x9650f
movq %r14, %rcx
callq 0x4a70
incq %r15
cmpq %rbp, %r15
jbe 0x5fc2c
cmpq $0x0, 0x8(%rsp)
je 0x5fcb0
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 0x5fceb
movq 0x4d2ec(%rip), %rax     # 0xacfa8
cmpq %r14, (%rax)
je 0x5fc9b
movq 0x4d2c0(%rip), %rax     # 0xacf88
cmpq %r14, (%rax)
je 0x5fc9b
movq %r14, %rdi
callq 0x4540
testl %eax, %eax
je 0x5fc9b
leaq 0x33dec(%rip), %rdi     # 0x93acc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb52
jmp 0x5fc9b
leaq 0x33db0(%rip), %rdi     # 0x93aa2
xorl %eax, %eax
callq 0xbb52
jmp 0x5fc9b
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 0x1361c(%rip), %rax     # 0x73338
leaq 0x149ef(%rip), %r10     # 0x74712
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x33eb9(%rip), %r11     # 0x93bef
leaq 0x3670f(%rip), %rsi     # 0x9644c
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0xc196
addq $0x20, %rsp
leaq 0x4cec7(%rip), %rsi     # 0xacc20
movq 0x4d270(%rip), %rdx     # 0xacfd0
movq %r14, %rdi
callq 0x4900
movq %rax, %rbx
movq %r14, %rdi
callq 0x43b0
movq %rbx, %rdi
callq 0x4950
nop