// File: /workspace/github_cpp_makefile_star2_O1/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::_save_pnm(_IO_FILE*, char const*, unsigned int) const
const CImg<T>& _save_pnm(std::FILE *const file, const char *const filename,
                             const unsigned int bytes_per_pixel=0) const {
      if (!file && !filename)
        throw CImgArgumentException(_cimg_instance
                                    "save_pnm(): Specified filename is (null).",
                                    cimg_instance);
      if (is_empty()) { cimg::fempty(file,filename); return *this; }

      double stmin, stmax = (double)max_min(stmin);
      if (_depth>1)
        cimg::warn(_cimg_instance
                   "save_pnm(): Instance is volumetric, only the first slice will be saved in file '%s'.",
                   cimg_instance,
                   filename?filename:"(FILE*)");
      if (_spectrum>3)
        cimg::warn(_cimg_instance
                   "save_pnm(): Instance is multispectral, only the three first channels will be saved in file '%s'.",
                   cimg_instance,
                   filename?filename:"(FILE*)");
      if (stmin<0 || (bytes_per_pixel==1 && stmax>=256) || stmax>=65536)
        cimg::warn(_cimg_instance
                   "save_pnm(): Instance has pixel values in [%g,%g], probable type overflow in file '%s'.",
                   cimg_instance,
                   stmin,stmax,filename?filename:"(FILE*)");

      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
      const T
        *ptr_r = data(0,0,0,0),
        *ptr_g = (_spectrum>=2)?data(0,0,0,1):0,
        *ptr_b = (_spectrum>=3)?data(0,0,0,2):0;
      const unsigned long buf_size = cimg::min(1024*1024UL,_width*_height*(_spectrum==1?1UL:3UL));

      std::fprintf(nfile,"P%c\n%u %u\n%u\n",
                   (_spectrum==1?'5':'6'),_width,_height,stmax<256?255:(stmax<4096?4095:65535));

      switch (_spectrum) {
      case 1 : { // Scalar image
        if (bytes_per_pixel==1 || (!bytes_per_pixel && stmax<256)) { // Binary PGM 8 bits
          CImg<ucharT> buf(buf_size);
          for (long to_write = (long)_width*_height; to_write>0; ) {
            const unsigned long N = cimg::min((unsigned long)to_write,buf_size);
            unsigned char *ptrd = buf._data;
            for (unsigned long i = N; i>0; --i) *(ptrd++) = (unsigned char)*(ptr_r++);
            cimg::fwrite(buf._data,N,nfile);
            to_write-=N;
          }
        } else { // Binary PGM 16 bits
          CImg<ushortT> buf(buf_size);
          for (long to_write = (long)_width*_height; to_write>0; ) {
            const unsigned long N = cimg::min((unsigned long)to_write,buf_size);
            unsigned short *ptrd = buf._data;
            for (unsigned long i = N; i>0; --i) *(ptrd++) = (unsigned short)*(ptr_r++);
            if (!cimg::endianness()) cimg::invert_endianness(buf._data,buf_size);
            cimg::fwrite(buf._data,N,nfile);
            to_write-=N;
          }
        }
      } break;
      case 2 : { // RG image
        if (bytes_per_pixel==1 || (!bytes_per_pixel && stmax<256)) { // Binary PPM 8 bits
          CImg<ucharT> buf(buf_size);
          for (long to_write = (long)_width*_height; to_write>0; ) {
            const unsigned long N = cimg::min((unsigned long)to_write,buf_size/3);
            unsigned char *ptrd = buf._data;
            for (unsigned long i = N; i>0; --i) {
              *(ptrd++) = (unsigned char)*(ptr_r++);
              *(ptrd++) = (unsigned char)*(ptr_g++);
              *(ptrd++) = 0;
            }
            cimg::fwrite(buf._data,3*N,nfile);
            to_write-=N;
          }
        } else {             // Binary PPM 16 bits
          CImg<ushortT> buf(buf_size);
          for (long to_write = (long)_width*_height; to_write>0; ) {
            const unsigned long N = cimg::min((unsigned long)to_write,buf_size/3);
            unsigned short *ptrd = buf._data;
            for (unsigned long i = N; i>0; --i) {
              *(ptrd++) = (unsigned short)*(ptr_r++);
              *(ptrd++) = (unsigned short)*(ptr_g++);
              *(ptrd++) = 0;
            }
            if (!cimg::endianness()) cimg::invert_endianness(buf._data,buf_size);
            cimg::fwrite(buf._data,3*N,nfile);
            to_write-=N;
          }
        }
      } break;
      default : { // RGB image
        if (bytes_per_pixel==1 || (!bytes_per_pixel && stmax<256)) { // Binary PPM 8 bits
          CImg<ucharT> buf(buf_size);
          for (long to_write = (long)_width*_height; to_write>0; ) {
            const unsigned long N = cimg::min((unsigned long)to_write,buf_size/3);
            unsigned char *ptrd = buf._data;
            for (unsigned long i = N; i>0; --i) {
              *(ptrd++) = (unsigned char)*(ptr_r++);
              *(ptrd++) = (unsigned char)*(ptr_g++);
              *(ptrd++) = (unsigned char)*(ptr_b++);
            }
            cimg::fwrite(buf._data,3*N,nfile);
            to_write-=N;
          }
        } else {             // Binary PPM 16 bits
          CImg<ushortT> buf(buf_size);
          for (long to_write = (long)_width*_height; to_write>0; ) {
            const unsigned long N = cimg::min((unsigned long)to_write,buf_size/3);
            unsigned short *ptrd = buf._data;
            for (unsigned long i = N; i>0; --i) {
              *(ptrd++) = (unsigned short)*(ptr_r++);
              *(ptrd++) = (unsigned short)*(ptr_g++);
              *(ptrd++) = (unsigned short)*(ptr_b++);
            }
            if (!cimg::endianness()) cimg::invert_endianness(buf._data,buf_size);
            cimg::fwrite(buf._data,3*N,nfile);
            to_write-=N;
          }
        }
      }
      }
      if (!file) cimg::fclose(nfile);
      return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %r15
movq %rsi, 0x60(%rsp)
movq %rsi, %rax
orq %rdx, %rax
je 0x6197b
movq %rdx, %r12
cmpq $0x0, 0x18(%r15)
je 0x60ff4
movdqu (%r15), %xmm0
pxor %xmm1, %xmm1
pcmpeqd %xmm0, %xmm1
movmskps %xmm1, %eax
testb %al, %al
jne 0x60ff4
movl %ecx, %ebx
leaq 0x70(%rsp), %rsi
movq %r15, %rdi
callq 0x61ac4
movsd (%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movl 0x8(%r15), %ecx
cmpl $0x2, %ecx
jb 0x60f21
leaq 0x12467(%rip), %rax     # 0x73338
leaq 0x1383a(%rip), %r10     # 0x74712
cmpb $0x0, 0x10(%r15)
cmovneq %rax, %r10
testq %r12, %r12
movl (%r15), %esi
movl 0x4(%r15), %edx
movl 0xc(%r15), %r8d
movq 0x18(%r15), %r9
leaq 0x331e7(%rip), %r11     # 0x940e1
cmovneq %r12, %r11
subq $0x8, %rsp
leaq 0x32ce6(%rip), %r14     # 0x93bef
leaq 0x35c16(%rip), %rdi     # 0x96b26
xorl %eax, %eax
pushq %r11
pushq %r14
pushq %r10
callq 0xbb52
addq $0x20, %rsp
movl 0xc(%r15), %r8d
cmpl $0x4, %r8d
jb 0x60f82
leaq 0x12406(%rip), %rax     # 0x73338
leaq 0x137d9(%rip), %r10     # 0x74712
cmpb $0x0, 0x10(%r15)
cmovneq %rax, %r10
testq %r12, %r12
movl (%r15), %esi
movl 0x4(%r15), %edx
movl 0x8(%r15), %ecx
movq 0x18(%r15), %r9
leaq 0x33186(%rip), %r11     # 0x940e1
cmovneq %r12, %r11
subq $0x8, %rsp
leaq 0x32c85(%rip), %r14     # 0x93bef
leaq 0x35c38(%rip), %rdi     # 0x96ba9
xorl %eax, %eax
pushq %r11
pushq %r14
pushq %r10
callq 0xbb52
addq $0x20, %rsp
movsd 0x70(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x61006
leaq 0x123a0(%rip), %rax     # 0x73338
cmpb $0x0, 0x10(%r15)
leaq 0x1376e(%rip), %r10     # 0x74712
cmovneq %rax, %r10
testq %r12, %r12
movl (%r15), %esi
movl 0x4(%r15), %edx
movl 0x8(%r15), %ecx
movl 0xc(%r15), %r8d
movq 0x18(%r15), %r9
leaq 0x3311c(%rip), %r11     # 0x940e1
cmovneq %r12, %r11
subq $0x8, %rsp
leaq 0x32c1b(%rip), %r14     # 0x93bef
leaq 0x35c5d(%rip), %rdi     # 0x96c38
movsd 0x10(%rsp), %xmm1
movb $0x2, %al
pushq %r11
pushq %r14
pushq %r10
callq 0xbb52
addq $0x20, %rsp
jmp 0x61039
movq 0x60(%rsp), %rdi
movq %r12, %rsi
callq 0x5f9f0
jmp 0x617f1
cmpl $0x1, %ebx
sete %al
movsd 0x8(%rsp), %xmm1
ucomisd 0x1007e(%rip), %xmm1    # 0x71098
setae %cl
testb %cl, %al
jne 0x60f91
movsd 0x8(%rsp), %xmm1
ucomisd 0x1006d(%rip), %xmm1    # 0x710a0
jae 0x60f91
movq 0x60(%rsp), %rcx
movq %rcx, %rax
testq %rcx, %rcx
jne 0x61055
leaq 0x32ae0(%rip), %rsi     # 0x93b2d
movq %r12, %rdi
callq 0x3ceb3
movq %rax, 0x10(%rsp)
movq 0x18(%r15), %r12
movl (%r15), %ecx
movl 0x4(%r15), %r8d
movl 0x8(%r15), %esi
movl 0xc(%r15), %eax
movq %r8, %rdx
imulq %rcx, %rdx
imulq %rsi, %rdx
xorl %edi, %edi
leaq (%r12,%rdx,8), %rsi
cmpl $0x2, %eax
cmovbq %rdi, %rsi
movq %rsi, 0x18(%rsp)
jbe 0x61096
shlq $0x4, %rdx
addq %r12, %rdx
movq %rdx, %rdi
movq %rdi, 0x50(%rsp)
movl %r8d, %esi
imull %ecx, %esi
xorl %edx, %edx
cmpl $0x1, %eax
setne %dl
leaq 0x1(,%rdx,2), %rax
movq %rsi, 0x28(%rsp)
imulq %rsi, %rax
movl $0x100000, %r13d        # imm = 0x100000
cmpq %r13, %rax
movq %rax, 0x20(%rsp)
cmovbq %rax, %r13
addl $0x35, %edx
movsd 0xffd1(%rip), %xmm0     # 0x710a8
movsd 0x8(%rsp), %xmm1
ucomisd %xmm1, %xmm0
movl $0xfff, %eax            # imm = 0xFFF
movl $0xffff, %esi           # imm = 0xFFFF
cmoval %eax, %esi
movsd 0xffa2(%rip), %xmm0     # 0x71098
ucomisd %xmm1, %xmm0
seta %bpl
movl $0xff, %r9d
cmovbel %esi, %r9d
leaq 0x35bae(%rip), %rsi     # 0x96cbd
movq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x4740
movl 0xc(%r15), %ecx
cmpl $0x1, %ebx
sete %dl
testl %ebx, %ebx
sete %al
andb %bpl, %al
orb %dl, %al
cmpl $0x2, %ecx
movq %r13, 0x8(%rsp)
je 0x6126e
cmpl $0x1, %ecx
movq 0x18(%rsp), %rbx
jne 0x613d5
testb %al, %al
movq 0x10(%rsp), %rbp
je 0x6154b
leaq 0x30(%rsp), %rdi
movl %r13d, %esi
movl $0x1, %edx
movl $0x1, %ecx
movl $0x1, %r8d
callq 0xe57e
movl (%r15), %eax
movq %r15, 0x58(%rsp)
movl 0x4(%r15), %ebx
imulq %rax, %rbx
testq %rbx, %rbx
je 0x61250
cmpq %r13, %rbx
movq %r13, %r15
cmovbq %rbx, %r15
cmpl $0x0, 0x28(%rsp)
je 0x611bb
movq 0x48(%rsp), %rax
xorl %ecx, %ecx
cvttsd2si (%r12), %edx
addq $0x8, %r12
movb %dl, (%rax,%rcx)
incq %rcx
cmpq %rcx, %r15
jne 0x611a6
movq 0x48(%rsp), %rbp
cmpq $0x0, 0x10(%rsp)
je 0x6184e
testq %rbp, %rbp
je 0x6184e
cmpl $0x0, 0x28(%rsp)
je 0x61242
movq %rbx, 0x20(%rsp)
movq %r15, %r13
xorl %r14d, %r14d
movl $0x3f00000, %eax        # imm = 0x3F00000
cmpq %rax, %r13
movl $0x3f00000, %ebx        # imm = 0x3F00000
cmovbq %r13, %rbx
leaq (%rbp,%r14), %rdi
movl $0x1, %esi
movq %rbx, %rdx
movq 0x10(%rsp), %rcx
callq 0x4a70
addq %rax, %r14
subq %rax, %r13
cmpq %rax, %rbx
jne 0x6121f
testq %r13, %r13
jne 0x611e7
testq %r13, %r13
movq 0x8(%rsp), %r13
movq 0x20(%rsp), %rbx
je 0x61242
leaq 0x354a0(%rip), %rdi     # 0x966d5
movq %r14, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0xbb52
subq %r15, %rbx
movq 0x10(%rsp), %rbp
jg 0x6118e
cmpb $0x0, 0x40(%rsp)
jne 0x61541
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x61541
jmp 0x6153c
testb %al, %al
je 0x615f4
leaq 0x30(%rsp), %rdi
movl %r13d, %esi
movl $0x1, %edx
movl $0x1, %ecx
movl $0x1, %r8d
callq 0xe57e
movl (%r15), %eax
movq %r15, 0x58(%rsp)
movl 0x4(%r15), %esi
imulq %rax, %rsi
testq %rsi, %rsi
movq 0x10(%rsp), %rbp
movq 0x18(%rsp), %rbx
je 0x613b7
movabsq $0x5555555555555556, %rcx # imm = 0x5555555555555556
movq %r13, %rax
mulq %rcx
movq %rdx, 0x8(%rsp)
movq 0x8(%rsp), %r15
cmpq %r15, %rsi
movq %rsi, 0x28(%rsp)
cmovbq %rsi, %r15
cmpq $0x3, 0x20(%rsp)
jb 0x61319
movq 0x48(%rsp), %rcx
xorl %eax, %eax
xorl %edx, %edx
cvttsd2si (%r12,%rdx,8), %esi
movb %sil, (%rcx)
cvttsd2si (%rbx,%rdx,8), %esi
movb %sil, 0x1(%rcx)
movb $0x0, 0x2(%rcx)
addq $0x3, %rcx
incq %rdx
addq $-0x8, %rax
cmpq %rdx, %r15
jne 0x612ed
subq %rax, %r12
subq %rax, %rbx
movq 0x48(%rsp), %r13
leaq (%r15,%r15,2), %rax
testq %rbp, %rbp
je 0x618b1
testq %r13, %r13
je 0x618b1
cmpq $0x3, 0x20(%rsp)
jb 0x613a9
movq %rbx, 0x18(%rsp)
movq %rax, 0x50(%rsp)
movq %rax, %rbp
xorl %r14d, %r14d
movl $0x3f00000, %eax        # imm = 0x3F00000
cmpq %rax, %rbp
movl $0x3f00000, %ebx        # imm = 0x3F00000
cmovbq %rbp, %rbx
leaq (%r13,%r14), %rdi
movl $0x1, %esi
movq %rbx, %rdx
movq 0x10(%rsp), %rcx
callq 0x4a70
addq %rax, %r14
subq %rax, %rbp
cmpq %rax, %rbx
jne 0x61384
testq %rbp, %rbp
jne 0x6134c
testq %rbp, %rbp
movq 0x10(%rsp), %rbp
movq 0x18(%rsp), %rbx
movq 0x50(%rsp), %rdx
je 0x613a9
leaq 0x35336(%rip), %rdi     # 0x966d5
movq %r14, %rsi
xorl %eax, %eax
callq 0xbb52
movq 0x28(%rsp), %rsi
subq %r15, %rsi
jg 0x612cb
cmpb $0x0, 0x40(%rsp)
jne 0x61541
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x61541
jmp 0x6153c
testb %al, %al
movq 0x10(%rsp), %rbp
je 0x616ec
leaq 0x30(%rsp), %rdi
movl %r13d, %esi
movl $0x1, %edx
movl $0x1, %ecx
movl $0x1, %r8d
callq 0xe57e
movl (%r15), %eax
movq %r15, 0x58(%rsp)
movl 0x4(%r15), %esi
imulq %rax, %rsi
testq %rsi, %rsi
je 0x6152b
movabsq $0x5555555555555556, %rcx # imm = 0x5555555555555556
movq %r13, %rax
mulq %rcx
movq %rdx, 0x8(%rsp)
movq 0x8(%rsp), %r15
cmpq %r15, %rsi
movq %rsi, 0x28(%rsp)
cmovbq %rsi, %r15
cmpq $0x3, 0x20(%rsp)
jb 0x6148d
movq 0x48(%rsp), %rcx
xorl %eax, %eax
xorl %edx, %edx
movq 0x50(%rsp), %rdi
cvttsd2si (%r12,%rdx,8), %esi
movb %sil, (%rcx)
cvttsd2si (%rbx,%rdx,8), %esi
movb %sil, 0x1(%rcx)
cvttsd2si (%rdi,%rdx,8), %esi
movb %sil, 0x2(%rcx)
addq $0x3, %rcx
incq %rdx
addq $-0x8, %rax
cmpq %rdx, %r15
jne 0x61454
subq %rax, %r12
subq %rax, %rbx
subq %rax, %rdi
movq %rdi, 0x50(%rsp)
movq 0x48(%rsp), %r13
leaq (%r15,%r15,2), %rax
testq %rbp, %rbp
je 0x61916
testq %r13, %r13
je 0x61916
cmpq $0x3, 0x20(%rsp)
jb 0x6151d
movq %rbx, 0x18(%rsp)
movq %rax, 0x68(%rsp)
movq %rax, %rbp
xorl %r14d, %r14d
movl $0x3f00000, %eax        # imm = 0x3F00000
cmpq %rax, %rbp
movl $0x3f00000, %ebx        # imm = 0x3F00000
cmovbq %rbp, %rbx
leaq (%r13,%r14), %rdi
movl $0x1, %esi
movq %rbx, %rdx
movq 0x10(%rsp), %rcx
callq 0x4a70
addq %rax, %r14
subq %rax, %rbp
cmpq %rax, %rbx
jne 0x614f8
testq %rbp, %rbp
jne 0x614c0
testq %rbp, %rbp
movq 0x10(%rsp), %rbp
movq 0x18(%rsp), %rbx
movq 0x68(%rsp), %rdx
je 0x6151d
leaq 0x351c2(%rip), %rdi     # 0x966d5
movq %r14, %rsi
xorl %eax, %eax
callq 0xbb52
movq 0x28(%rsp), %rsi
subq %r15, %rsi
jg 0x6142d
cmpb $0x0, 0x40(%rsp)
jne 0x61541
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x61541
callq 0x4680
movq 0x58(%rsp), %r15
jmp 0x617e9
leaq 0x30(%rsp), %rdi
movl %r13d, %esi
movl $0x1, %edx
movl $0x1, %ecx
movl $0x1, %r8d
callq 0x4e8e4
movl (%r15), %eax
movl 0x4(%r15), %ebx
imulq %rax, %rbx
testq %rbx, %rbx
je 0x615d6
cmpq %r13, %rbx
cmovbq %rbx, %r13
movq 0x48(%rsp), %rdi
cmpl $0x0, 0x28(%rsp)
je 0x615a3
xorl %eax, %eax
cvttsd2si (%r12), %ecx
addq $0x8, %r12
movw %cx, (%rdi,%rax,2)
incq %rax
cmpq %rax, %r13
jne 0x6158d
cmpl $0x0, 0x28(%rsp)
je 0x615c1
movq 0x8(%rsp), %rax
leaq (%rdi,%rax,2), %rax
rolw $0x8, -0x2(%rax)
addq $-0x2, %rax
cmpq %rdi, %rax
ja 0x615b3
movq %r13, %rsi
movq %rbp, %rdx
callq 0x61bdf
subq %r13, %rbx
movq 0x8(%rsp), %r13
jg 0x61578
cmpb $0x0, 0x40(%rsp)
jne 0x617e9
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x617e9
jmp 0x617e4
leaq 0x30(%rsp), %rdi
movl %r13d, %esi
movl $0x1, %edx
movl $0x1, %ecx
movl $0x1, %r8d
callq 0x4e8e4
movl (%r15), %eax
movl 0x4(%r15), %ebx
imulq %rax, %rbx
testq %rbx, %rbx
movq 0x10(%rsp), %rbp
je 0x616ce
movabsq $0x5555555555555556, %rcx # imm = 0x5555555555555556
movq 0x8(%rsp), %rax
mulq %rcx
movq %rdx, %r13
cmpq %r13, %rbx
movq %r13, %r14
cmovbq %rbx, %r14
movq 0x48(%rsp), %rdi
cmpq $0x3, 0x20(%rsp)
jb 0x6169b
xorl %eax, %eax
xorl %ecx, %ecx
movq %rdi, %rdx
movq 0x18(%rsp), %rsi
movsd (%r12,%rcx,8), %xmm0
movhpd (%rsi,%rcx,8), %xmm0    # xmm0 = xmm0[0],mem[0]
cvttpd2dq %xmm0, %xmm0
pshuflw $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3,4,5,6,7]
movd %xmm0, (%rdx)
movw $0x0, 0x4(%rdx)
addq $0x6, %rdx
incq %rcx
addq $-0x8, %rax
cmpq %rcx, %r14
jne 0x61662
subq %rax, %r12
subq %rax, %rsi
movq %rsi, 0x18(%rsp)
cmpl $0x0, 0x28(%rsp)
je 0x616b9
movq 0x8(%rsp), %rax
leaq (%rdi,%rax,2), %rax
rolw $0x8, -0x2(%rax)
addq $-0x2, %rax
cmpq %rdi, %rax
ja 0x616ab
leaq (%r14,%r14,2), %rsi
movq %rbp, %rdx
callq 0x61bdf
subq %r14, %rbx
jg 0x6163f
cmpb $0x0, 0x40(%rsp)
jne 0x617e9
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x617e9
jmp 0x617e4
leaq 0x30(%rsp), %rdi
movl %r13d, %esi
movl $0x1, %edx
movl $0x1, %ecx
movl $0x1, %r8d
callq 0x4e8e4
movl (%r15), %eax
movl 0x4(%r15), %ebx
imulq %rax, %rbx
testq %rbx, %rbx
je 0x617d3
movabsq $0x5555555555555556, %rcx # imm = 0x5555555555555556
movq 0x8(%rsp), %rax
mulq %rcx
movq %rdx, %r13
cmpq %r13, %rbx
movq %r13, %r14
cmovbq %rbx, %r14
movq 0x48(%rsp), %rdi
cmpq $0x3, 0x20(%rsp)
jb 0x617a0
xorl %eax, %eax
xorl %ecx, %ecx
movq %rdi, %rdx
movq 0x18(%rsp), %r8
movq 0x50(%rsp), %r9
movsd (%r12,%rcx,8), %xmm0
movhpd (%r8,%rcx,8), %xmm0     # xmm0 = xmm0[0],mem[0]
cvttpd2dq %xmm0, %xmm0
pshuflw $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3,4,5,6,7]
movd %xmm0, (%rdx)
cvttsd2si (%r9,%rcx,8), %esi
movw %si, 0x4(%rdx)
incq %rcx
addq $-0x8, %rax
addq $0x6, %rdx
cmpq %rcx, %r14
jne 0x6175a
subq %rax, %r12
subq %rax, %r8
movq %r8, 0x18(%rsp)
subq %rax, %r9
movq %r9, 0x50(%rsp)
cmpl $0x0, 0x28(%rsp)
je 0x617be
movq 0x8(%rsp), %rax
leaq (%rdi,%rax,2), %rax
rolw $0x8, -0x2(%rax)
addq $-0x2, %rax
cmpq %rdi, %rax
ja 0x617b0
leaq (%r14,%r14,2), %rsi
movq %rbp, %rdx
callq 0x61bdf
subq %r14, %rbx
jg 0x61732
cmpb $0x0, 0x40(%rsp)
jne 0x617e9
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x617e9
callq 0x4680
cmpq $0x0, 0x60(%rsp)
je 0x61803
movq %r15, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %rbp, %rbp
je 0x6183e
movq 0x4b799(%rip), %rax     # 0xacfa8
cmpq %rbp, (%rax)
je 0x617f1
movq 0x4b76d(%rip), %rax     # 0xacf88
cmpq %rbp, (%rax)
je 0x617f1
movq %rbp, %rdi
callq 0x4540
testl %eax, %eax
je 0x617f1
leaq 0x32299(%rip), %rdi     # 0x93acc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb52
jmp 0x617f1
leaq 0x3225d(%rip), %rdi     # 0x93aa2
xorl %eax, %eax
callq 0xbb52
jmp 0x617f1
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
cmpq $0x2, %r15
leaq 0x33b9c(%rip), %rax     # 0x95402
leaq 0x11acb(%rip), %r8      # 0x73338
cmovaeq %rax, %r8
subq $0x8, %rsp
leaq 0x34e0b(%rip), %rsi     # 0x96687
leaq 0x1da54(%rip), %rcx     # 0x7f2d7
movq %r14, %rdi
movq %r15, %rdx
movq %rbp, %r9
xorl %eax, %eax
pushq 0x18(%rsp)
callq 0xc196
addq $0x10, %rsp
leaq 0x4b37e(%rip), %rsi     # 0xacc20
movq 0x4b727(%rip), %rdx     # 0xacfd0
movq %r14, %rdi
callq 0x4900
movl $0x4008, %edi           # imm = 0x4008
movq %rax, %rbx
callq 0x4210
movq %rax, %r14
cmpq $0x3, 0x20(%rsp)
leaq 0x11a6a(%rip), %rax     # 0x73338
leaq 0x33b2d(%rip), %r8      # 0x95402
cmovbq %rax, %r8
subq $0x8, %rsp
leaq 0x34da3(%rip), %rsi     # 0x96687
leaq 0x1d9ec(%rip), %rcx     # 0x7f2d7
movq %r14, %rdi
movq %rbx, %rdx
movq %r13, %r9
xorl %eax, %eax
pushq %rbp
callq 0xc196
addq $0x10, %rsp
leaq 0x4b319(%rip), %rsi     # 0xacc20
movq 0x4b6c2(%rip), %rdx     # 0xacfd0
movq %r14, %rdi
callq 0x4900
movl $0x4008, %edi           # imm = 0x4008
movq %rax, %rbx
callq 0x4210
movq %rax, %r14
cmpq $0x3, 0x20(%rsp)
leaq 0x11a05(%rip), %rax     # 0x73338
leaq 0x33ac8(%rip), %r8      # 0x95402
cmovbq %rax, %r8
subq $0x8, %rsp
leaq 0x34d3e(%rip), %rsi     # 0x96687
leaq 0x1d987(%rip), %rcx     # 0x7f2d7
movq %r14, %rdi
movq %rbx, %rdx
movq %r13, %r9
xorl %eax, %eax
pushq %rbp
callq 0xc196
addq $0x10, %rsp
leaq 0x4b2b4(%rip), %rsi     # 0xacc20
movq 0x4b65d(%rip), %rdx     # 0xacfd0
movq %r14, %rdi
callq 0x4900
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
movl (%r15), %edx
movl 0x4(%r15), %ecx
movl 0x8(%r15), %r8d
movl 0xc(%r15), %r9d
leaq 0x1199a(%rip), %rax     # 0x73338
leaq 0x12d6d(%rip), %r10     # 0x74712
cmpb $0x0, 0x10(%r15)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x32236(%rip), %r11     # 0x93bef
leaq 0x3510e(%rip), %rsi     # 0x96ace
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%r15)
callq 0xc196
addq $0x20, %rsp
leaq 0x4b243(%rip), %rsi     # 0xacc20
movq 0x4b5ec(%rip), %rdx     # 0xacfd0
movq %r14, %rdi
callq 0x4900
movq %rax, %rbx
movq %r14, %rdi
callq 0x43b0
jmp 0x61abb
jmp 0x61a02
jmp 0x61a30
jmp 0x61a53
movq %rax, %rbx
jmp 0x61a12
movq %rax, %rbx
movq %r14, %rdi
callq 0x43b0
cmpb $0x0, 0x40(%rsp)
jne 0x61abb
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x61abb
jmp 0x61ab6
movq %rax, %rbx
jmp 0x61a40
movq %rax, %rbx
movq %r14, %rdi
callq 0x43b0
cmpb $0x0, 0x40(%rsp)
jne 0x61abb
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x61abb
jmp 0x61ab6
movq %rax, %rbx
jmp 0x61a63
movq %rax, %rbx
movq %r14, %rdi
callq 0x43b0
cmpb $0x0, 0x40(%rsp)
jne 0x61abb
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x61abb
jmp 0x61ab6
movq %rax, %rbx
cmpb $0x0, 0x40(%rsp)
jne 0x61abb
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x61abb
jmp 0x61ab6
movq %rax, %rbx
cmpb $0x0, 0x40(%rsp)
jne 0x61abb
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x61abb
jmp 0x61ab6
movq %rax, %rbx
cmpb $0x0, 0x40(%rsp)
jne 0x61abb
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x61abb
callq 0x4680
movq %rbx, %rdi
callq 0x4950
nop