// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImgList<double>::_save_yuv(_IO_FILE*, char const*, bool) const
const CImgList<T>& _save_yuv(std::FILE *const file, const char *const filename, const bool is_rgb) const {
      if (!file && !filename)
        throw CImgArgumentException(_cimglist_instance
                                    "save_yuv(): Specified filename is (null).",
                                    cimglist_instance);
      if (is_empty()) { cimg::fempty(file,filename); return *this; }
      if ((*this)[0].width()%2 || (*this)[0].height()%2)
        throw CImgInstanceException(_cimglist_instance
                                    "save_yuv(): Invalid odd instance dimensions (%u,%u) for file '%s'.",
                                    cimglist_instance,
                                    (*this)[0].width(),(*this)[0].height(),
                                    filename?filename:"(FILE*)");

      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
      cimglist_for(*this,l) {
        CImg<ucharT> YCbCr((*this)[l]);
        if (is_rgb) YCbCr.RGBtoYCbCr();
        cimg::fwrite(YCbCr._data,(unsigned long)YCbCr._width*YCbCr._height,nfile);
        cimg::fwrite(YCbCr.get_resize(YCbCr._width/2, YCbCr._height/2,1,3,3).data(0,0,0,1),
                     (unsigned long)YCbCr._width*YCbCr._height/2,nfile);
      }
      if (!file) cimg::fclose(nfile);
      return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %ecx, 0xc(%rsp)
movq %rdi, %rbx
movq %rsi, %rax
orq %rdx, %rax
je 0x4ad98
movq %rdx, %r14
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x4ad69
cmpl $0x0, (%rbx)
je 0x4ad69
testb $0x1, (%rax)
jne 0x4addc
testb $0x1, 0x4(%rax)
jne 0x4addc
movq %rsi, %r15
movq %rsi, 0x30(%rsp)
testq %rsi, %rsi
jne 0x4ac9a
leaq 0x2a34e(%rip), %rsi     # 0x74fdd
movq %r14, %rdi
callq 0x2dca5
movq %rax, %r15
xorl %r14d, %r14d
leaq 0x10(%rsp), %r12
leaq 0x38(%rsp), %r13
xorl %ebp, %ebp
movslq (%rbx), %rax
cmpq %rax, %rbp
jge 0x4ad76
movq 0x8(%rbx), %rsi
addq %r14, %rsi
movq %r12, %rdi
callq 0x4ae7e
cmpb $0x0, 0xc(%rsp)
je 0x4acd3
movq %r12, %rdi
callq 0x4b014
movq 0x28(%rsp), %rdi
movl 0x10(%rsp), %eax
movl 0x14(%rsp), %esi
imulq %rax, %rsi
movq %r15, %rdx
callq 0x46d25
movl 0x10(%rsp), %edx
movl 0x14(%rsp), %ecx
shrl %edx
shrl %ecx
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
xorps %xmm3, %xmm3
movq %r13, %rdi
movq %r12, %rsi
pushq $0x1
popq %r8
pushq $0x3
popq %r9
pushq $0x0
pushq $0x3
callq 0x12060
popq %rax
popq %rcx
movl 0x38(%rsp), %eax
movl 0x3c(%rsp), %ecx
imulq %rax, %rcx
movl 0x40(%rsp), %edi
imulq %rcx, %rdi
addq 0x50(%rsp), %rdi
movl 0x10(%rsp), %eax
movl 0x14(%rsp), %esi
imulq %rax, %rsi
shrq %rsi
movq %r15, %rdx
callq 0x46d25
movq %r13, %rdi
callq 0xb8ae
movq %r12, %rdi
callq 0xb8ae
incq %rbp
addq $0x20, %r14
jmp 0x4aca9
movq %rsi, %rdi
movq %r14, %rsi
callq 0x465c3
jmp 0x4ad86
cmpq $0x0, 0x30(%rsp)
jne 0x4ad86
movq %r15, %rdi
callq 0x2a2f8
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movq 0x8(%rbx), %r8
leaq 0x2de07(%rip), %rsi     # 0x78bbc
leaq 0x2a2e3(%rip), %r9      # 0x7509f
movq %rax, %rdi
xorl %eax, %eax
callq 0x9d52
leaq 0x44e93(%rip), %rsi     # 0x8fc60
movq 0x45204(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r15
testq %r14, %r14
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movq 0x8(%rbx), %r8
movl (%r8), %r10d
movl 0x4(%r8), %r11d
leaq 0x2a764(%rip), %rbx     # 0x75567
cmovneq %r14, %rbx
subq $0x8, %rsp
leaq 0x2ddf7(%rip), %rsi     # 0x78c09
leaq 0x2a286(%rip), %r9      # 0x7509f
movq %rax, %rdi
xorl %eax, %eax
pushq %rbx
pushq %r11
pushq %r10
callq 0x9bf8
addq $0x20, %rsp
leaq 0x44e15(%rip), %rsi     # 0x8fc48
movq 0x4519e(%rip), %rdx     # 0x8ffd8
movq %r15, %rdi
callq 0x4910
movq %rax, %rbx
movq %r15, %rdi
jmp 0x4ae50
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
jmp 0x4ae75
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0xb8ae
jmp 0x4ae6b
jmp 0x4ae68
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xb8ae
movq %rbx, %rdi
callq 0x4950
nop