// File: /workspace/github_cpp_makefile_star2_O3/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, 0x14(%rsp)
movq %rsi, %rax
orq %rdx, %rax
je 0x6361d
movq %rdx, %r15
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
sete %dl
movl (%rdi), %eax
testl %eax, %eax
sete %r8b
orb %dl, %r8b
cmpb $0x1, %r8b
movq %rdi, 0x8(%rsp)
jne 0x632e4
movq %rsi, %rdi
movq %r15, %rsi
callq 0x5ce0e
movq 0x8(%rsp), %rdi
jmp 0x634f3
testb $0x1, (%rcx)
jne 0x63657
testb $0x1, 0x4(%rcx)
jne 0x63657
movq %rsi, %r14
movq %rsi, 0x58(%rsp)
testq %rsi, %rsi
jne 0x6331d
leaq 0x2bd52(%rip), %rsi     # 0x8f05d
movq %r15, %rdi
callq 0x3b111
movq 0x8(%rsp), %rdi
movq %rax, %r14
movl (%rdi), %eax
testl %eax, %eax
jle 0x634eb
leaq 0x18(%rsp), %r12
xorl %r15d, %r15d
movq %r15, %rsi
shlq $0x5, %rsi
addq 0x8(%rdi), %rsi
movq %r12, %rdi
callq 0x6372c
cmpb $0x0, 0x14(%rsp)
je 0x6334f
movq %r12, %rdi
callq 0x638d0
movl 0x18(%rsp), %eax
movl 0x1c(%rsp), %ebx
imulq %rax, %rbx
movq 0x30(%rsp), %r13
testq %r14, %r14
je 0x6355b
testq %r13, %r13
je 0x6355b
testq %rbx, %rbx
movq %r15, 0x60(%rsp)
je 0x633d6
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 0x4a80
addq %rax, %rbp
subq %rax, %r15
cmpq %rax, %r12
jne 0x633b8
testq %r15, %r15
jne 0x63381
testq %r15, %r15
leaq 0x18(%rsp), %r12
je 0x633d6
leaq 0x2e83c(%rip), %rdi     # 0x91c05
movq %rbp, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xbb10
movl 0x18(%rsp), %edx
movl 0x1c(%rsp), %ecx
shrl %edx
shrl %ecx
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
xorps %xmm3, %xmm3
leaq 0x38(%rsp), %rdi
movq %r12, %rsi
movl $0x1, %r8d
movl $0x3, %r9d
pushq $0x0
pushq $0x3
callq 0x15b7a
addq $0x10, %rsp
movq 0x50(%rsp), %rax
movl 0x38(%rsp), %ecx
movl 0x3c(%rsp), %edx
imulq %rcx, %rdx
movl 0x40(%rsp), %r15d
imulq %rdx, %r15
addq %rax, %r15
movl 0x18(%rsp), %ecx
movl 0x1c(%rsp), %ebx
imulq %rcx, %rbx
movq %rbx, %r13
shrq %r13
testq %rax, %rax
je 0x635bc
cmpq $0x2, %rbx
jb 0x634a6
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 0x4a80
addq %rax, %rbp
subq %rax, %rbx
cmpq %rax, %r12
jne 0x63488
testq %rbx, %rbx
jne 0x63452
testq %rbx, %rbx
leaq 0x18(%rsp), %r12
je 0x634a6
leaq 0x2e76c(%rip), %rdi     # 0x91c05
movq %rbp, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0xbb10
cmpb $0x0, 0x48(%rsp)
jne 0x634bc
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x634bc
callq 0x4690
cmpb $0x0, 0x28(%rsp)
movq 0x60(%rsp), %r15
jne 0x634d7
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x634d7
callq 0x4690
incq %r15
movq 0x8(%rsp), %rdi
movslq (%rdi), %rax
cmpq %rax, %r15
jl 0x6332d
cmpq $0x0, 0x58(%rsp)
je 0x63505
movq %rdi, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %r14, %r14
je 0x63548
movq 0x44a97(%rip), %rax     # 0xa7fa8
cmpq %r14, (%rax)
je 0x634f3
movq 0x44a6b(%rip), %rax     # 0xa7f88
cmpq %r14, (%rax)
je 0x634f3
movq %r14, %rdi
callq 0x4550
movq 0x8(%rsp), %rdi
testl %eax, %eax
je 0x634f3
leaq 0x2bac2(%rip), %rdi     # 0x8effc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb10
jmp 0x632da
leaq 0x2ba83(%rip), %rdi     # 0x8efd2
xorl %eax, %eax
callq 0xbb10
jmp 0x632da
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r12
cmpq $0x2, %rbx
leaq 0x2d3bf(%rip), %rax     # 0x90932
leaq 0xb2ee(%rip), %r8       # 0x6e868
cmovaeq %rax, %r8
subq $0x8, %rsp
leaq 0x2e62e(%rip), %rsi     # 0x91bb7
leaq 0x17277(%rip), %rcx     # 0x7a807
movq %r12, %rdi
movq %rbx, %rdx
movq %r13, %r9
xorl %eax, %eax
pushq %r14
callq 0xc16a
addq $0x10, %rsp
leaq 0x446a3(%rip), %rsi     # 0xa7c50
movq 0x44a1c(%rip), %rdx     # 0xa7fd0
movq %r12, %rdi
callq 0x4910
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r12
cmpq $0x4, %rbx
leaq 0x2d35e(%rip), %rax     # 0x90932
leaq 0xb28d(%rip), %r8       # 0x6e868
cmovaeq %rax, %r8
subq $0x8, %rsp
leaq 0x2e5cd(%rip), %rsi     # 0x91bb7
leaq 0x17216(%rip), %rcx     # 0x7a807
movq %r12, %rdi
movq %r13, %rdx
movq %r15, %r9
xorl %eax, %eax
pushq %r14
callq 0xc16a
addq $0x10, %rsp
leaq 0x44642(%rip), %rsi     # 0xa7c50
movq 0x449bb(%rip), %rdx     # 0xa7fd0
movq %r12, %rdi
callq 0x4910
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 0x2f4c9(%rip), %rsi     # 0x92b06
leaq 0x2badb(%rip), %r9      # 0x8f11f
movq %rax, %rdi
xorl %eax, %eax
callq 0xc16a
leaq 0x445fb(%rip), %rsi     # 0xa7c50
jmp 0x636b1
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 0x2bf90(%rip), %rbx     # 0x8f611
cmovneq %r15, %rbx
subq $0x8, %rsp
leaq 0x2f4c3(%rip), %rsi     # 0x92b53
leaq 0x2ba88(%rip), %r9      # 0x8f11f
movq %rax, %rdi
xorl %eax, %eax
pushq %rbx
pushq %r11
pushq %r10
callq 0xbfac
addq $0x20, %rsp
leaq 0x44587(%rip), %rsi     # 0xa7c38
movq 0x44918(%rip), %rdx     # 0xa7fd0
movq %r14, %rdi
callq 0x4910
jmp 0x636c2
movq %rax, %rbx
movq %r14, %rdi
callq 0x43c0
jmp 0x63723
jmp 0x636d1
movq %rax, %rbx
jmp 0x636e1
movq %rax, %rbx
movq %r12, %rdi
callq 0x43c0
cmpb $0x0, 0x48(%rsp)
jne 0x6370d
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x6370d
callq 0x4690
jmp 0x6370d
jmp 0x6370a
movq %rax, %rbx
movq %r12, %rdi
callq 0x43c0
jmp 0x6370d
jmp 0x6370a
movq %rax, %rbx
cmpb $0x0, 0x28(%rsp)
jne 0x63723
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x63723
callq 0x4690
movq %rbx, %rdi
callq 0x4960
nop