// File: /workspace/github_cpp_makefile_star2_O1/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 $0x68, %rsp
movl %ecx, 0xc(%rsp)
movq %rsi, %rax
orq %rdx, %rax
je 0x6633a
movq %rdx, %r15
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x66242
cmpl $0x0, (%rdi)
je 0x66242
testb $0x1, (%rax)
jne 0x66374
testb $0x1, 0x4(%rax)
jne 0x66374
movq %rsi, %r14
movq %rsi, 0x50(%rsp)
testq %rsi, %rsi
jne 0x66025
leaq 0x2db19(%rip), %rsi     # 0x93b2d
movq %rdi, %rbx
movq %r15, %rdi
callq 0x3ceb3
movq %rbx, %rdi
movq %rax, %r14
cmpl $0x0, (%rdi)
jle 0x661f9
leaq 0x10(%rsp), %r12
xorl %r15d, %r15d
movq %rdi, 0x58(%rsp)
movq %r15, %rsi
shlq $0x5, %rsi
addq 0x8(%rdi), %rsi
movq %r12, %rdi
callq 0x66448
cmpb $0x0, 0xc(%rsp)
je 0x6605d
movq %r12, %rdi
callq 0x665ec
movl 0x10(%rsp), %eax
movl 0x14(%rsp), %ebx
imulq %rax, %rbx
movq 0x28(%rsp), %r13
testq %r14, %r14
je 0x66278
testq %r13, %r13
je 0x66278
testq %rbx, %rbx
movq %r15, 0x60(%rsp)
je 0x660e4
movq %rbx, %r15
xorl %ebp, %ebp
movl $0x3f00000, %eax        # imm = 0x3F00000
cmpq %rax, %r15
movl $0x3f00000, %r12d       # imm = 0x3F00000
cmovbq %r15, %r12
leaq (%r13,%rbp), %rdi
movl $0x1, %esi
movq %r12, %rdx
movq %r14, %rcx
callq 0x4a70
addq %rax, %rbp
subq %rax, %r15
cmpq %rax, %r12
jne 0x660c6
testq %r15, %r15
jne 0x6608f
testq %r15, %r15
leaq 0x10(%rsp), %r12
je 0x660e4
leaq 0x305fe(%rip), %rdi     # 0x966d5
movq %rbp, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xbb52
movl 0x10(%rsp), %edx
movl 0x14(%rsp), %ecx
shrl %edx
shrl %ecx
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
xorps %xmm3, %xmm3
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
movl $0x1, %r8d
movl $0x3, %r9d
pushq $0x0
pushq $0x3
callq 0x15aca
addq $0x10, %rsp
movq 0x48(%rsp), %rax
movl 0x30(%rsp), %ecx
movl 0x34(%rsp), %edx
imulq %rcx, %rdx
movl 0x38(%rsp), %r15d
imulq %rdx, %r15
addq %rax, %r15
movl 0x10(%rsp), %ecx
movl 0x14(%rsp), %ebx
imulq %rcx, %rbx
movq %rbx, %r13
shrq %r13
testq %rax, %rax
je 0x662d9
cmpq $0x2, %rbx
jb 0x661b4
movq %r13, %rbx
xorl %ebp, %ebp
movl $0x3f00000, %eax        # imm = 0x3F00000
cmpq %rax, %rbx
movl $0x3f00000, %r12d       # imm = 0x3F00000
cmovbq %rbx, %r12
leaq (%r15,%rbp), %rdi
movl $0x1, %esi
movq %r12, %rdx
movq %r14, %rcx
callq 0x4a70
addq %rax, %rbp
subq %rax, %rbx
cmpq %rax, %r12
jne 0x66196
testq %rbx, %rbx
jne 0x66160
testq %rbx, %rbx
leaq 0x10(%rsp), %r12
je 0x661b4
leaq 0x3052e(%rip), %rdi     # 0x966d5
movq %rbp, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0xbb52
cmpb $0x0, 0x40(%rsp)
jne 0x661ca
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x661ca
callq 0x4680
cmpb $0x0, 0x20(%rsp)
movq 0x60(%rsp), %r15
jne 0x661e5
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x661e5
callq 0x4680
incq %r15
movq 0x58(%rsp), %rdi
movslq (%rdi), %rax
cmpq %rax, %r15
jl 0x6603b
cmpq $0x0, 0x50(%rsp)
jne 0x66253
testq %r14, %r14
je 0x66265
movq 0x46d9b(%rip), %rax     # 0xacfa8
cmpq %r14, (%rax)
je 0x66253
movq 0x46d6f(%rip), %rax     # 0xacf88
cmpq %r14, (%rax)
je 0x66253
movq %rdi, %rbx
movq %r14, %rdi
callq 0x4540
movq %rbx, %rdi
testl %eax, %eax
je 0x66253
leaq 0x2d895(%rip), %rdi     # 0x93acc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb52
jmp 0x66250
movq %rdi, %rbx
movq %rsi, %rdi
movq %r15, %rsi
callq 0x5f9f0
movq %rbx, %rdi
movq %rdi, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %rbx
leaq 0x2d833(%rip), %rdi     # 0x93aa2
xorl %eax, %eax
callq 0xbb52
jmp 0x66250
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r12
cmpq $0x2, %rbx
leaq 0x2f172(%rip), %rax     # 0x95402
leaq 0xd0a1(%rip), %r8       # 0x73338
cmovaeq %rax, %r8
subq $0x8, %rsp
leaq 0x303e1(%rip), %rsi     # 0x96687
leaq 0x1902a(%rip), %rcx     # 0x7f2d7
movq %r12, %rdi
movq %rbx, %rdx
movq %r13, %r9
xorl %eax, %eax
pushq %r14
callq 0xc196
addq $0x10, %rsp
leaq 0x46956(%rip), %rsi     # 0xacc20
movq 0x46cff(%rip), %rdx     # 0xacfd0
movq %r12, %rdi
callq 0x4900
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r12
cmpq $0x4, %rbx
leaq 0x2f111(%rip), %rax     # 0x95402
leaq 0xd040(%rip), %r8       # 0x73338
cmovaeq %rax, %r8
subq $0x8, %rsp
leaq 0x30380(%rip), %rsi     # 0x96687
leaq 0x18fc9(%rip), %rcx     # 0x7f2d7
movq %r12, %rdi
movq %r13, %rdx
movq %r15, %r9
xorl %eax, %eax
pushq %r14
callq 0xc196
addq $0x10, %rsp
leaq 0x468f5(%rip), %rsi     # 0xacc20
movq 0x46c9e(%rip), %rdx     # 0xacfd0
movq %r12, %rdi
callq 0x4900
movq %rdi, %rbx
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movq 0x8(%rbx), %r8
leaq 0x31372(%rip), %rsi     # 0x976cc
leaq 0x2d88e(%rip), %r9      # 0x93bef
movq %rax, %rdi
xorl %eax, %eax
callq 0xc196
leaq 0x468ae(%rip), %rsi     # 0xacc20
jmp 0x663ce
movq %rdi, %rbx
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
testq %r15, %r15
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movq 0x8(%rbx), %r8
movl (%r8), %r10d
movl 0x4(%r8), %r11d
leaq 0x2dd43(%rip), %rbx     # 0x940e1
cmovneq %r15, %rbx
subq $0x8, %rsp
leaq 0x3136c(%rip), %rsi     # 0x97719
leaq 0x2d83b(%rip), %r9      # 0x93bef
movq %rax, %rdi
xorl %eax, %eax
pushq %rbx
pushq %r11
pushq %r10
callq 0xbfd8
addq $0x20, %rsp
leaq 0x4683a(%rip), %rsi     # 0xacc08
movq 0x46bfb(%rip), %rdx     # 0xacfd0
movq %r14, %rdi
callq 0x4900
jmp 0x663df
movq %rax, %rbx
movq %r14, %rdi
callq 0x43b0
jmp 0x66440
jmp 0x663ee
movq %rax, %rbx
jmp 0x663fe
movq %rax, %rbx
movq %r12, %rdi
callq 0x43b0
cmpb $0x0, 0x40(%rsp)
jne 0x6642a
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x6642a
callq 0x4680
jmp 0x6642a
jmp 0x66427
movq %rax, %rbx
movq %r12, %rdi
callq 0x43b0
jmp 0x6642a
jmp 0x66427
movq %rax, %rbx
cmpb $0x0, 0x20(%rsp)
jne 0x66440
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x66440
callq 0x4680
movq %rbx, %rdi
callq 0x4950