// File: manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::_save_raw(_IO_FILE*, char const*, bool) const
const CImg<T>& _save_raw(std::FILE *const file, const char *const filename, const bool is_multiplexed) const {
      if (!file && !filename)
        throw CImgArgumentException(_cimg_instance
                                    "save_raw(): Specified filename is (null).",
                                    cimg_instance);
      if (is_empty()) { cimg::fempty(file,filename); return *this; }

      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
      if (!is_multiplexed) cimg::fwrite(_data,size(),nfile);
      else {
        CImg<T> buf(_spectrum);
        cimg_forXYZ(*this,x,y,z) {
          cimg_forC(*this,c) buf[c] = (*this)(x,y,z,c);
          cimg::fwrite(buf._data,_spectrum,nfile);
        }
      }
      if (!file) cimg::fclose(nfile);
      return *this;
    }

// Assembly:
subq $0xd8, %rsp
movb %cl, %al
movq %rdi, 0xc8(%rsp)
movq %rsi, 0xc0(%rsp)
movq %rdx, 0xb8(%rsp)
andb $0x1, %al
movb %al, 0xb7(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x60(%rsp)
cmpq $0x0, 0xc0(%rsp)
jne 0xb0818
cmpq $0x0, 0xb8(%rsp)
jne 0xb0818
movl $0x4008, %edi           # imm = 0x4008
callq 0x5240
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x30(%rsp)
movl (%rax), %ecx
movl %ecx, 0x38(%rsp)
movl 0x4(%rax), %ecx
movl %ecx, 0x3c(%rsp)
movl 0x8(%rax), %ecx
movl %ecx, 0x40(%rsp)
movl 0xc(%rax), %ecx
movl %ecx, 0x44(%rsp)
movq 0x18(%rax), %rcx
movq %rcx, 0x48(%rsp)
movb 0x10(%rax), %dl
leaq 0x38258(%rip), %rcx     # 0xe89d2
leaq 0x19360(%rip), %rax     # 0xc9ae1
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, 0x50(%rsp)
callq 0x118f0
movq %rax, 0x58(%rsp)
jmp 0xb0799
movl 0x44(%rsp), %r9d
movl 0x40(%rsp), %r8d
movl 0x3c(%rsp), %ecx
movl 0x38(%rsp), %edx
movq 0x30(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %r10
movq 0x58(%rsp), %r11
movq %rsp, %rax
movq %r11, 0x10(%rax)
movq %r10, 0x8(%rax)
movq %rsi, (%rax)
leaq 0x3c224(%rip), %rsi     # 0xec9f8
xorl %eax, %eax
callq 0x12220
jmp 0xb07dd
movq 0x30(%rsp), %rdi
leaq 0x4f377(%rip), %rsi     # 0xffb60
leaq -0x9e390(%rip), %rdx    # 0x12460
callq 0x5920
movq 0x30(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
callq 0x53a0
jmp 0xb0a49
movq 0x60(%rsp), %rdi
callq 0x10320
testb $0x1, %al
jne 0xb0828
jmp 0xb084f
movq 0xc0(%rsp), %rdi
movq 0xb8(%rsp), %rsi
callq 0x9c310
movq 0x60(%rsp), %rax
movq %rax, 0xd0(%rsp)
jmp 0xb0a39
cmpq $0x0, 0xc0(%rsp)
je 0xb0869
movq 0xc0(%rsp), %rax
movq %rax, 0x28(%rsp)
jmp 0xb0882
movq 0xb8(%rsp), %rdi
leaq 0x38688(%rip), %rsi     # 0xe8f00
callq 0x654a0
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x98(%rsp)
testb $0x1, 0xb7(%rsp)
jne 0xb08c6
movq 0x60(%rsp), %rdi
movq 0x18(%rdi), %rax
movq %rax, 0x20(%rsp)
callq 0x117b0
movq 0x20(%rsp), %rdi
movq %rax, %rsi
movq 0x98(%rsp), %rdx
callq 0xa2680
jmp 0xb0a14
movq 0x60(%rsp), %rax
movl 0xc(%rax), %esi
leaq 0x78(%rsp), %rdi
movl $0x1, %r8d
movl %r8d, %edx
movl %r8d, %ecx
callq 0xa580
movl $0x0, 0x74(%rsp)
movq 0x60(%rsp), %rcx
movl 0x74(%rsp), %eax
cmpl 0x8(%rcx), %eax
jge 0xb0a0a
movl $0x0, 0x70(%rsp)
movq 0x60(%rsp), %rcx
movl 0x70(%rsp), %eax
cmpl 0x4(%rcx), %eax
jge 0xb09f8
movl $0x0, 0x6c(%rsp)
movq 0x60(%rsp), %rcx
movl 0x6c(%rsp), %eax
cmpl (%rcx), %eax
jge 0xb09e6
movl $0x0, 0x68(%rsp)
movq 0x60(%rsp), %rcx
movl 0x68(%rsp), %eax
cmpl 0xc(%rcx), %eax
jge 0xb0993
movq 0x60(%rsp), %rdi
movl 0x6c(%rsp), %esi
movl 0x70(%rsp), %edx
movl 0x74(%rsp), %ecx
movl 0x68(%rsp), %r8d
callq 0x73720
movsd (%rax), %xmm0
movsd %xmm0, 0x18(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x5cf30
movsd 0x18(%rsp), %xmm0
movslq 0x68(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x68(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x68(%rsp)
jmp 0xb0939
movq 0x60(%rsp), %rax
movq 0x90(%rsp), %rdi
movl 0xc(%rax), %eax
movl %eax, %esi
movq 0x98(%rsp), %rdx
callq 0xa2680
jmp 0xb09b4
jmp 0xb09b6
movl 0x6c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x6c(%rsp)
jmp 0xb0920
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
leaq 0x78(%rsp), %rdi
callq 0xa540
jmp 0xb0a49
jmp 0xb09e8
movl 0x70(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x70(%rsp)
jmp 0xb0906
jmp 0xb09fa
movl 0x74(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x74(%rsp)
jmp 0xb08ec
leaq 0x78(%rsp), %rdi
callq 0xa540
cmpq $0x0, 0xc0(%rsp)
jne 0xb0a2c
movq 0x98(%rsp), %rdi
callq 0x5c6f0
movq 0x60(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0xd0(%rsp), %rax
addq $0xd8, %rsp
retq
movq 0xa8(%rsp), %rdi
callq 0x5970
nopw %cs:(%rax,%rax)