// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::_load_bmp(_IO_FILE*, char const*)
CImg<T>& _load_bmp(std::FILE *const file, const char *const filename) {
      if (!file && !filename)
        throw CImgArgumentException(_cimg_instance
                                    "load_bmp(): Specified filename is (null).",
                                    cimg_instance);

      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb");
      unsigned char header[64] = { 0 };
      cimg::fread(header,54,nfile);
      if (*header!='B' || header[1]!='M') {
        if (!file) cimg::fclose(nfile);
        throw CImgIOException(_cimg_instance
                              "load_bmp(): Invalid BMP file '%s'.",
                              cimg_instance,
                              filename?filename:"(FILE*)");
      }

      // Read header and pixel buffer
      int
        file_size = header[0x02] + (header[0x03]<<8) + (header[0x04]<<16) + (header[0x05]<<24),
        offset = header[0x0A] + (header[0x0B]<<8) + (header[0x0C]<<16) + (header[0x0D]<<24),
        header_size = header[0x0E] + (header[0x0F]<<8) + (header[0x10]<<16) + (header[0x11]<<24),
        dx = header[0x12] + (header[0x13]<<8) + (header[0x14]<<16) + (header[0x15]<<24),
        dy = header[0x16] + (header[0x17]<<8) + (header[0x18]<<16) + (header[0x19]<<24),
        compression = header[0x1E] + (header[0x1F]<<8) + (header[0x20]<<16) + (header[0x21]<<24),
        nb_colors = header[0x2E] + (header[0x2F]<<8) + (header[0x30]<<16) + (header[0x31]<<24),
        bpp = header[0x1C] + (header[0x1D]<<8);

      if (!file_size || file_size==offset) {
        std::fseek(nfile,0,SEEK_END);
        file_size = (int)std::ftell(nfile);
        std::fseek(nfile,54,SEEK_SET);
      }
      if (header_size>40) std::fseek(nfile, header_size - 40, SEEK_CUR);

      const int
        cimg_iobuffer = 12*1024*1024,
        dx_bytes = (bpp==1)?(dx/8+(dx%8?1:0)):((bpp==4)?(dx/2+(dx%2?1:0)):(dx*bpp/8)),
        align_bytes = (4-dx_bytes%4)%4,
        buf_size = cimg::min(cimg::abs(dy)*(dx_bytes + align_bytes),file_size - offset);

      CImg<intT> colormap;
      if (bpp<16) { if (!nb_colors) nb_colors = 1<<bpp; } else nb_colors = 0;
      if (nb_colors) { colormap.assign(nb_colors); cimg::fread(colormap._data,nb_colors,nfile); }
      const int xoffset = offset - 14 - header_size - 4*nb_colors;
      if (xoffset>0) std::fseek(nfile,xoffset,SEEK_CUR);

      CImg<ucharT> buffer;
      if (buf_size<cimg_iobuffer) { buffer.assign(buf_size); cimg::fread(buffer._data,buf_size,nfile); }
      else buffer.assign(dx_bytes + align_bytes);
      unsigned char *ptrs = buffer;

      // Decompress buffer (if necessary)
      if (compression) {
        if (file)
          throw CImgIOException(_cimg_instance
                                "load_bmp(): Unable to load compressed data from '(*FILE)' inputs.",
                                cimg_instance);
        else {
          if (!file) cimg::fclose(nfile);
          return load_other(filename);
        }
      }

      // Read pixel data
      assign(dx,cimg::abs(dy),1,3);
      switch (bpp) {
      case 1 : { // Monochrome
        for (int y = height()-1; y>=0; --y) {
          if (buf_size>=cimg_iobuffer) {
            cimg::fread(ptrs=buffer._data,dx_bytes,nfile);
            std::fseek(nfile,align_bytes,SEEK_CUR);
          }
          unsigned char mask = 0x80, val = 0;
          cimg_forX(*this,x) {
            if (mask==0x80) val = *(ptrs++);
            const unsigned char *col = (unsigned char*)(colormap._data + (val&mask?1:0));
            (*this)(x,y,2) = (T)*(col++);
            (*this)(x,y,1) = (T)*(col++);
            (*this)(x,y,0) = (T)*(col++);
            mask = cimg::ror(mask);
          }
          ptrs+=align_bytes;
        }
      } break;
      case 4 : { // 16 colors
        for (int y = height()-1; y>=0; --y) {
          if (buf_size>=cimg_iobuffer) {
            cimg::fread(ptrs=buffer._data,dx_bytes,nfile);
            std::fseek(nfile,align_bytes,SEEK_CUR);
          }
          unsigned char mask = 0xF0, val = 0;
          cimg_forX(*this,x) {
            if (mask==0xF0) val = *(ptrs++);
            const unsigned char color = (unsigned char)((mask<16)?(val&mask):((val&mask)>>4));
            const unsigned char *col = (unsigned char*)(colormap._data + color);
            (*this)(x,y,2) = (T)*(col++);
            (*this)(x,y,1) = (T)*(col++);
            (*this)(x,y,0) = (T)*(col++);
            mask = cimg::ror(mask,4);
          }
          ptrs+=align_bytes;
        }
      } break;
      case 8 : { //  256 colors
        for (int y = height()-1; y>=0; --y) {
          if (buf_size>=cimg_iobuffer) {
            cimg::fread(ptrs=buffer._data,dx_bytes,nfile);
            std::fseek(nfile,align_bytes,SEEK_CUR);
          }
          cimg_forX(*this,x) {
            const unsigned char *col = (unsigned char*)(colormap._data + *(ptrs++));
            (*this)(x,y,2) = (T)*(col++);
            (*this)(x,y,1) = (T)*(col++);
            (*this)(x,y,0) = (T)*(col++);
          }
          ptrs+=align_bytes;
        }
      } break;
      case 16 : { // 16 bits colors
        for (int y = height()-1; y>=0; --y) {
          if (buf_size>=cimg_iobuffer) {
            cimg::fread(ptrs=buffer._data,dx_bytes,nfile);
            std::fseek(nfile,align_bytes,SEEK_CUR);
          }
          cimg_forX(*this,x) {
            const unsigned char c1 = *(ptrs++), c2 = *(ptrs++);
            const unsigned short col = (unsigned short)(c1|(c2<<8));
            (*this)(x,y,2) = (T)(col&0x1F);
            (*this)(x,y,1) = (T)((col>>5)&0x1F);
            (*this)(x,y,0) = (T)((col>>10)&0x1F);
          }
          ptrs+=align_bytes;
        }
      } break;
      case 24 : { // 24 bits colors
        for (int y = height()-1; y>=0; --y) {
          if (buf_size>=cimg_iobuffer) {
            cimg::fread(ptrs=buffer._data,dx_bytes,nfile);
            std::fseek(nfile,align_bytes,SEEK_CUR);
          }
          cimg_forX(*this,x) {
            (*this)(x,y,2) = (T)*(ptrs++);
            (*this)(x,y,1) = (T)*(ptrs++);
            (*this)(x,y,0) = (T)*(ptrs++);
          }
          ptrs+=align_bytes;
        }
      } break;
      case 32 : { // 32 bits colors
        for (int y = height()-1; y>=0; --y) {
          if (buf_size>=cimg_iobuffer) {
            cimg::fread(ptrs=buffer._data,dx_bytes,nfile);
            std::fseek(nfile,align_bytes,SEEK_CUR);
          }
          cimg_forX(*this,x) {
            (*this)(x,y,2) = (T)*(ptrs++);
            (*this)(x,y,1) = (T)*(ptrs++);
            (*this)(x,y,0) = (T)*(ptrs++);
            ++ptrs;
          }
          ptrs+=align_bytes;
        }
      } break;
      }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, (%rsp)
movq %rsi, %rax
orq %rdx, %rax
je 0x35eb5
movq %rdx, %r14
movq %rsi, %rbx
movq %rsi, %rdx
testq %rsi, %rsi
jne 0x3554f
leaq 0x3fcf7(%rip), %rsi     # 0x7523b
movq %r14, %rdi
callq 0x2dca5
movq %rax, %rdx
movq %r14, 0x68(%rsp)
movq %rbx, 0x30(%rsp)
xorpd %xmm0, %xmm0
leaq 0x90(%rsp), %r14
movapd %xmm0, 0x30(%r14)
movapd %xmm0, 0x20(%r14)
movapd %xmm0, 0x10(%r14)
movapd %xmm0, (%r14)
pushq $0x36
popq %rsi
movq %r14, %rdi
movq %rdx, 0x10(%rsp)
callq 0x36072
cmpb $0x42, (%r14)
jne 0x35f1c
cmpb $0x4d, 0x91(%rsp)
jne 0x35f1c
movl 0x92(%rsp), %ebp
movl 0x9a(%rsp), %r13d
movl 0x9e(%rsp), %eax
movq %rax, 0x8(%rsp)
movzbl 0xa2(%rsp), %eax
movl %eax, 0x1c(%rsp)
movzwl 0xa3(%rsp), %eax
shll $0x8, %eax
movl %eax, 0x24(%rsp)
movzbl 0xa5(%rsp), %r14d
shll $0x18, %r14d
movzwl 0xa6(%rsp), %ecx
movzbl 0xa8(%rsp), %r12d
shll $0x10, %r12d
movzbl 0xa9(%rsp), %r15d
movl 0xae(%rsp), %eax
movl %eax, 0x38(%rsp)
movl 0xbe(%rsp), %eax
movl %eax, 0x3c(%rsp)
movzwl 0xac(%rsp), %eax
movl %eax, 0x20(%rsp)
testl %ebp, %ebp
je 0x35630
cmpl %r13d, %ebp
jne 0x35662
pushq $0x2
popq %rdx
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
movl %ecx, 0x18(%rsp)
callq 0x4580
movq %rbx, %rdi
callq 0x4030
movq %rax, %rbp
pushq $0x36
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x4580
movl 0x18(%rsp), %ecx
movq %rbp, %rbx
movl 0x24(%rsp), %ebp
orl %r14d, %ebp
orl %ecx, %r12d
shll $0x18, %r15d
cmpl $0x29, 0x8(%rsp)
jl 0x3568f
movq 0x8(%rsp), %rax
leal -0x28(%rax), %esi
pushq $0x1
popq %rdx
movq 0x10(%rsp), %rdi
callq 0x4580
movl 0x1c(%rsp), %esi
orl %esi, %ebp
orl %r15d, %r12d
movl 0x20(%rsp), %eax
cmpl $0x4, %eax
movl %r15d, 0x18(%rsp)
movl %ebp, 0x24(%rsp)
je 0x356c2
pushq $0x8
popq %rcx
cmpl $0x1, %eax
jne 0x356d3
movl %ebp, %eax
cltd
idivl %ecx
andl $0x7, %esi
cmpl $0x1, %esi
sbbl $-0x1, %eax
jmp 0x356d9
pushq $0x2
popq %rcx
movl %ebp, %eax
cltd
idivl %ecx
andl $0x1, %esi
addl %eax, %esi
movl %esi, %eax
jmp 0x356d9
imull %ebp, %eax
cltd
idivl %ecx
movl %eax, %ebp
negl %ebp
andl $0x3, %ebp
movl %r12d, %r14d
negl %r14d
cmovsl %r12d, %r14d
movq %rax, 0x28(%rsp)
addl %ebp, %eax
movl %eax, 0x1c(%rsp)
imull %r14d, %eax
movq %rbx, %r15
subl %r13d, %r15d
cmpl %r15d, %eax
cmovll %eax, %r15d
andq $0x0, 0x88(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x70(%rsp)
movb $0x0, 0x80(%rsp)
pushq $0x1
popq %r12
movl 0x20(%rsp), %ecx
shll %cl, %r12d
movl 0x3c(%rsp), %eax
testl %eax, %eax
cmovnel %eax, %r12d
xorl %eax, %eax
cmpl $0xf, %ecx
ja 0x3576e
leaq 0x70(%rsp), %rdi
pushq $0x1
popq %rcx
movl %r12d, %esi
movl %ecx, %edx
movl %ecx, %r8d
callq 0x36172
movq 0x88(%rsp), %rdi
movslq %r12d, %rsi
movq 0x10(%rsp), %rdx
callq 0x363e1
shll $0x2, %r12d
movl %r12d, %eax
movq 0x8(%rsp), %rcx
addl %eax, %ecx
subl %ecx, %r13d
addl $-0xe, %r13d
testl %r13d, %r13d
jle 0x35791
movl %r13d, %esi
pushq $0x1
popq %rdx
movq 0x10(%rsp), %rdi
callq 0x4580
andq $0x0, 0x58(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x40(%rsp)
movb $0x0, 0x50(%rsp)
cmpl $0xbfffff, %r15d        # imm = 0xBFFFFF
jg 0x357db
leaq 0x40(%rsp), %rdi
pushq $0x1
popq %rcx
movl %r15d, %esi
movl %ecx, %edx
movl %ecx, %r8d
callq 0xd758
movq 0x10(%rsp), %rbx
movq 0x58(%rsp), %rdi
movslq %r15d, %rsi
movq %rbx, %rdx
callq 0x36072
jmp 0x357f6
leaq 0x40(%rsp), %rdi
pushq $0x1
popq %rcx
movl 0x1c(%rsp), %esi
movl %ecx, %edx
movl %ecx, %r8d
callq 0xd758
movq 0x10(%rsp), %rbx
cmpl $0x0, 0x38(%rsp)
je 0x35828
cmpq $0x0, 0x30(%rsp)
jne 0x35fb3
movq %rbx, %rdi
callq 0x2a2f8
movq 0x68(%rsp), %rsi
movq (%rsp), %rdi
callq 0x2e0d4
movq %rax, (%rsp)
jmp 0x35e8b
movq 0x58(%rsp), %r13
pushq $0x1
popq %rcx
pushq $0x3
popq %r8
movq (%rsp), %rdi
movl 0x24(%rsp), %esi
movl %r14d, %edx
callq 0x988e
movl 0x20(%rsp), %eax
cmpw $0x20, %ax
je 0x35d7c
movzwl %ax, %eax
movq %r15, %r14
cmpl $0x4, %eax
je 0x35c5f
cmpl $0x8, %eax
je 0x3598f
cmpl $0x10, %eax
je 0x35b62
cmpl $0x18, %eax
je 0x35a82
cmpl $0x1, %eax
jne 0x35e66
movq (%rsp), %rax
movl 0x4(%rax), %r12d
movslq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movl %ebp, %r15d
leal -0x1(%r12), %ebp
testl %r12d, %r12d
jle 0x35e66
cmpl $0xc00000, %r14d        # imm = 0xC00000
jl 0x358d9
movq 0x58(%rsp), %r13
movq %r13, %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rbx
movq %rbx, %rdx
callq 0x36072
movq %rbx, %rdi
movq %r15, %rsi
pushq $0x1
popq %rdx
callq 0x4580
movl %ebp, %ebp
leaq (,%rbp,8), %r8
decq %r12
movq (%rsp), %rdx
movl (%rdx), %r9d
movl 0x4(%rdx), %eax
movq 0x88(%rsp), %rcx
movq 0x18(%rdx), %r10
xorl %edx, %edx
testl %r9d, %r9d
movl $0x0, %esi
cmovgl %r9d, %esi
leaq (%r8,%rax,8), %rdi
imulq %r9, %rdi
shlq $0x4, %rax
addq %r8, %rax
imulq %r9, %rax
imulq %rbp, %r9
leaq (%r10,%r9,8), %r8
addq %r10, %rdi
addq %r10, %rax
movb $-0x80, %r9b
xorl %r10d, %r10d
cmpq %rdx, %rsi
je 0x35985
movl %r9d, %r11d
negb %r11b
jno 0x35945
movb (%r13), %r10b
incq %r13
xorl %r11d, %r11d
testb %r9b, %r10b
setne %r11b
movzbl (%rcx,%r11,4), %ebx
cvtsi2sd %ebx, %xmm0
movsd %xmm0, (%rax,%rdx,8)
movzbl 0x1(%rcx,%r11,4), %ebx
cvtsi2sd %ebx, %xmm0
movsd %xmm0, (%rdi,%rdx,8)
movzbl 0x2(%rcx,%r11,4), %r11d
cvtsi2sd %r11d, %xmm0
movsd %xmm0, (%r8,%rdx,8)
rorb %r9b
incq %rdx
jmp 0x35931
addq %r15, %r13
decl %ebp
jmp 0x3589f
movq (%rsp), %rax
movl 0x4(%rax), %r12d
movslq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movl %ebp, %r15d
leal -0x1(%r12), %ebp
movq 0x10(%rsp), %rbx
testl %r12d, %r12d
jle 0x35e66
cmpl $0xc00000, %r14d        # imm = 0xC00000
jl 0x359e3
movq 0x58(%rsp), %r13
movq %r13, %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x36072
movq %rbx, %rdi
movq %r15, %rsi
pushq $0x1
popq %rdx
callq 0x4580
movl %ebp, %ebp
leaq (,%rbp,8), %rdi
decq %r12
movq (%rsp), %rsi
movl (%rsi), %r8d
movl 0x4(%rsi), %eax
movq 0x88(%rsp), %rcx
testl %r8d, %r8d
movl $0x0, %edx
cmovgl %r8d, %edx
movq 0x18(%rsi), %r9
leaq (%rdi,%rax,8), %rsi
imulq %r8, %rsi
shlq $0x4, %rax
addq %rdi, %rax
imulq %r8, %rax
imulq %rbp, %r8
leaq (%r9,%r8,8), %r8
addq %r9, %rsi
addq %r9, %rax
xorl %edi, %edi
cmpq %rdi, %rdx
je 0x35a75
movzbl (%r13,%rdi), %r9d
movzbl (%rcx,%r9,4), %r10d
cvtsi2sd %r10d, %xmm0
movsd %xmm0, (%rax,%rdi,8)
movzbl 0x1(%rcx,%r9,4), %r10d
cvtsi2sd %r10d, %xmm0
movsd %xmm0, (%rsi,%rdi,8)
movzbl 0x2(%rcx,%r9,4), %r9d
cvtsi2sd %r9d, %xmm0
movsd %xmm0, (%r8,%rdi,8)
incq %rdi
jmp 0x35a35
decl %ebp
addq %r15, %r13
addq %rdi, %r13
jmp 0x359ae
movq (%rsp), %rax
movl 0x4(%rax), %r12d
movslq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movl %ebp, %r15d
leal -0x1(%r12), %ebp
movq 0x10(%rsp), %rbx
testl %r12d, %r12d
jle 0x35e66
cmpl $0xc00000, %r14d        # imm = 0xC00000
jl 0x35ad6
movq 0x58(%rsp), %r13
movq %r13, %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x36072
movq %rbx, %rdi
movq %r15, %rsi
pushq $0x1
popq %rdx
callq 0x4580
movl %ebp, %ebp
leaq (,%rbp,8), %rsi
decq %r12
movq (%rsp), %rdx
movl (%rdx), %edi
movl 0x4(%rdx), %eax
testl %edi, %edi
movl $0x0, %ecx
cmovgl %edi, %ecx
movq 0x18(%rdx), %r8
leaq (%rsi,%rax,8), %rdx
imulq %rdi, %rdx
shlq $0x4, %rax
addq %rsi, %rax
imulq %rdi, %rax
imulq %rbp, %rdi
leaq (%r8,%rdi,8), %rsi
addq %r8, %rdx
addq %r8, %rax
xorl %edi, %edi
cmpq %rdi, %rcx
je 0x35b58
movzbl (%r13), %r8d
cvtsi2sd %r8d, %xmm0
movsd %xmm0, (%rax,%rdi,8)
movzbl 0x1(%r13), %r8d
cvtsi2sd %r8d, %xmm0
movsd %xmm0, (%rdx,%rdi,8)
movzbl 0x2(%r13), %r8d
addq $0x3, %r13
cvtsi2sd %r8d, %xmm0
movsd %xmm0, (%rsi,%rdi,8)
incq %rdi
jmp 0x35b1d
addq %r15, %r13
decl %ebp
jmp 0x35aa1
movq (%rsp), %rax
movl 0x4(%rax), %r12d
movslq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movl %ebp, %r15d
leal -0x1(%r12), %ebp
movq 0x10(%rsp), %rbx
testl %r12d, %r12d
jle 0x35e66
cmpl $0xc00000, %r14d        # imm = 0xC00000
jl 0x35bb6
movq 0x58(%rsp), %r13
movq %r13, %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x36072
movq %rbx, %rdi
movq %r15, %rsi
pushq $0x1
popq %rdx
callq 0x4580
movl %ebp, %ebp
leaq (,%rbp,8), %rsi
decq %r12
movq (%rsp), %rcx
movl (%rcx), %edi
movl 0x4(%rcx), %eax
movq 0x18(%rcx), %r8
testl %edi, %edi
movl $0x0, %ecx
cmovgl %edi, %ecx
addl %ecx, %ecx
leaq (%rsi,%rax,8), %rdx
imulq %rdi, %rdx
shlq $0x4, %rax
addq %rsi, %rax
imulq %rdi, %rax
imulq %rbp, %rdi
leaq (%r8,%rdi,8), %rdi
addq %r8, %rdx
addq %r8, %rax
xorl %esi, %esi
cmpq %rsi, %rcx
je 0x35c52
movzbl (%r13,%rsi), %r8d
movzbl 0x1(%r13,%rsi), %r9d
movl %r9d, %r10d
shll $0x8, %r10d
orl %r8d, %r10d
andl $0x1f, %r8d
cvtsi2sd %r8d, %xmm0
shrl $0x5, %r10d
andl $0x1f, %r10d
cvtsi2sd %r10d, %xmm1
movsd %xmm0, (%rax,%rsi,4)
movsd %xmm1, (%rdx,%rsi,4)
shrl $0x2, %r9d
andl $0x1f, %r9d
cvtsi2sd %r9d, %xmm0
movsd %xmm0, (%rdi,%rsi,4)
addq $0x2, %rsi
jmp 0x35bff
decl %ebp
addq %r15, %r13
addq %rsi, %r13
jmp 0x35b81
movq (%rsp), %rax
movl 0x4(%rax), %r12d
movslq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movl %ebp, %r15d
leal -0x1(%r12), %ebp
testl %r12d, %r12d
jle 0x35e66
cmpl $0xc00000, %r14d        # imm = 0xC00000
jl 0x35cb3
movq 0x58(%rsp), %r13
movq %r13, %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rbx
movq %rbx, %rdx
callq 0x36072
movq %rbx, %rdi
movq %r15, %rsi
pushq $0x1
popq %rdx
callq 0x4580
movl %ebp, %ebp
leaq (,%rbp,8), %r8
decq %r12
movq (%rsp), %rdx
movl (%rdx), %r9d
movl 0x4(%rdx), %eax
movq 0x88(%rsp), %rcx
movq 0x18(%rdx), %r10
xorl %edx, %edx
testl %r9d, %r9d
movl $0x0, %esi
cmovgl %r9d, %esi
leaq (%r8,%rax,8), %rdi
imulq %r9, %rdi
shlq $0x4, %rax
addq %r8, %rax
imulq %r9, %rax
imulq %rbp, %r9
leaq (%r10,%r9,8), %r8
addq %r10, %rdi
addq %r10, %rax
movb $-0x10, %r9b
xorl %r10d, %r10d
cmpq %rdx, %rsi
je 0x35d72
cmpb $-0x10, %r9b
jne 0x35d1d
movb (%r13), %r10b
incq %r13
movl %r10d, %r11d
andb %r9b, %r11b
movzbl %r11b, %ebx
shrb $0x4, %r11b
cmpb $0x10, %r9b
movzbl %r11b, %r11d
cmovbl %ebx, %r11d
movzbl %r11b, %r11d
movzbl (%rcx,%r11,4), %ebx
cvtsi2sd %ebx, %xmm0
movsd %xmm0, (%rax,%rdx,8)
movzbl 0x1(%rcx,%r11,4), %ebx
cvtsi2sd %ebx, %xmm0
movsd %xmm0, (%rdi,%rdx,8)
movzbl 0x2(%rcx,%r11,4), %r11d
cvtsi2sd %r11d, %xmm0
movsd %xmm0, (%r8,%rdx,8)
rolb $0x4, %r9b
incq %rdx
jmp 0x35d0b
addq %r15, %r13
decl %ebp
jmp 0x35c79
movq %r15, %r14
movq (%rsp), %rax
movl 0x4(%rax), %r12d
movslq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movl %ebp, %r15d
leal -0x1(%r12), %ebp
movq 0x10(%rsp), %rbx
testl %r12d, %r12d
jle 0x35e66
cmpl $0xc00000, %r14d        # imm = 0xC00000
jl 0x35dd3
movq 0x58(%rsp), %r13
movq %r13, %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x36072
movq %rbx, %rdi
movq %r15, %rsi
pushq $0x1
popq %rdx
callq 0x4580
movl %ebp, %ebp
leaq (,%rbp,8), %rsi
decq %r12
movq (%rsp), %rcx
movl (%rcx), %edi
movl 0x4(%rcx), %eax
movq 0x18(%rcx), %r8
testl %edi, %edi
movl $0x0, %ecx
cmovgl %edi, %ecx
shlq $0x2, %rcx
leaq (%rsi,%rax,8), %rdx
imulq %rdi, %rdx
shlq $0x4, %rax
addq %rsi, %rax
imulq %rdi, %rax
imulq %rbp, %rdi
leaq (%r8,%rdi,8), %rdi
addq %r8, %rdx
addq %r8, %rax
xorl %esi, %esi
cmpq %rsi, %rcx
je 0x35e59
movzbl (%r13,%rsi), %r8d
cvtsi2sd %r8d, %xmm0
movsd %xmm0, (%rax,%rsi,2)
movzbl 0x1(%r13,%rsi), %r8d
cvtsi2sd %r8d, %xmm0
movsd %xmm0, (%rdx,%rsi,2)
movzbl 0x2(%r13,%rsi), %r8d
cvtsi2sd %r8d, %xmm0
movsd %xmm0, (%rdi,%rsi,2)
addq $0x4, %rsi
jmp 0x35e1e
decl %ebp
addq %r15, %r13
addq %rsi, %r13
jmp 0x35d9e
cmpl $0x0, 0x18(%rsp)
jns 0x35e79
pushq $0x79
popq %rsi
movq (%rsp), %rdi
callq 0x364e8
cmpq $0x0, 0x30(%rsp)
jne 0x35e8b
movq 0x10(%rsp), %rdi
callq 0x2a2f8
leaq 0x40(%rsp), %rdi
callq 0xb8ae
leaq 0x70(%rsp), %rdi
callq 0x368ee
movq (%rsp), %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
movq (%rsp), %rbx
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0x1e90e(%rip), %rax     # 0x547e8
leaq 0x1fce1(%rip), %r10     # 0x55bc2
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x3f1ab(%rip), %r11     # 0x7509f
leaq 0x3f7af(%rip), %rsi     # 0x756aa
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0x9d52
addq $0x20, %rsp
leaq 0x59d49(%rip), %rsi     # 0x8fc60
jmp 0x35fa4
cmpq $0x0, 0x30(%rsp)
jne 0x35f2e
movq 0x10(%rsp), %rdi
callq 0x2a2f8
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x1e8a6(%rip), %rax     # 0x547e8
leaq 0x1fc79(%rip), %r10     # 0x55bc2
movq (%rsp), %r15
cmpb $0x0, 0x10(%r15)
cmovneq %rax, %r10
movq 0x68(%rsp), %rax
testq %rax, %rax
movl (%r15), %edx
movl 0x4(%r15), %ecx
movl 0x8(%r15), %r8d
movl 0xc(%r15), %r9d
leaq 0x3f5f3(%rip), %r11     # 0x75567
cmovneq %rax, %r11
leaq 0x3f120(%rip), %rbx     # 0x7509f
leaq 0x3f77c(%rip), %rsi     # 0x75702
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %rbx
pushq %r10
pushq 0x18(%r15)
callq 0x2a3de
addq $0x20, %rsp
leaq 0x59d5c(%rip), %rsi     # 0x8fd00
movq 0x5a02d(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
movq (%rsp), %rbx
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0x1e810(%rip), %rax     # 0x547e8
leaq 0x1fbe3(%rip), %r10     # 0x55bc2
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x3f0ad(%rip), %r11     # 0x7509f
leaq 0x3f75a(%rip), %rsi     # 0x75753
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0x2a3de
addq $0x20, %rsp
leaq 0x59ceb(%rip), %rsi     # 0x8fd00
movq 0x59fbc(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
jmp 0x36056
jmp 0x36033
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
jmp 0x3606a
jmp 0x36053
jmp 0x36053
jmp 0x36053
jmp 0x36053
jmp 0x36053
jmp 0x36053
movq %rax, %rbx
jmp 0x36060
jmp 0x36053
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0xb8ae
leaq 0x70(%rsp), %rdi
callq 0x368ee
movq %rbx, %rdi
callq 0x4950