// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/seq.cpp
// Function: Seq_sp::KmerIndex::KmerIndex(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
KmerIndex::KmerIndex (const string &name_arg)
: Named (name_arg)
, f (name, ios_base::in | ios_base::out | ios_base::binary)
, canRead (true)
, kmer_size (readKmerSize (f))
, code_max (powInt (2, 2 * kmer_size))
{
  checkFile (name);

  readBin (f, items);

  f. seekg (0, ios_base::end);
  addr_new = (Addr) f. tellg ();

  QC_ASSERT (f. good ());
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %rbx
leaq 0x2e961(%rip), %r13     # 0xb7998
addq $0x10, %r13
movq %r13, (%rdi)
leaq 0x8(%rdi), %r15
leaq 0x18(%rdi), %r12
movq %r12, 0x8(%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %r15, %rdi
movq %rax, %rsi
callq 0xdd86
movq %rbx, %rdi
callq 0x8ec42
leaq 0x2faea(%rip), %rax     # 0xb8b58
movq %rax, (%rbx)
leaq 0x28(%rbx), %r14
movq %r14, %rdi
movq %r15, %rsi
movl $0x1c, %edx
callq 0xb9b0
movb $0x1, 0x238(%rbx)
leaq 0x8(%rsp), %rsi
movl $0x8, %edx
movq %r14, %rdi
callq 0xb710
movq 0x8(%rsp), %rsi
movq %rsi, 0x240(%rbx)
addq %rsi, %rsi
movl $0x2, %edi
callq 0x12584
movq %rax, 0x248(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x250(%rbx)
movq %r15, %rdi
callq 0x8ecaf
leaq 0x250(%rbx), %rsi
movl $0x8, %edx
movq %r14, %rdi
callq 0xb710
movq %r14, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0xb7b0
movq %r14, %rdi
callq 0xba20
movq %rax, 0x258(%rbx)
callq 0xb070
movl $0x0, (%rax)
movq 0x28(%rbx), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x48(%rbx,%rax)
jne 0x8912e
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xb6b0
testl %eax, %eax
jne 0x891ca
leaq 0x98(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0xef04(%rip), %rsi      # 0x98052
leaq 0xef0d(%rip), %rdx      # 0x98062
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x12d4, %esi           # imm = 0x12D4
callq 0xe1b2
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe10a
leaq 0xa039(%rip), %rsi      # 0x931d1
leaq 0xc8(%rsp), %rdi
callq 0xbb10
leaq 0x38(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x891d4
movups (%rcx), %xmm0
leaq 0x38(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x891e1
movl $0x1, %edi
callq 0xb6d0
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10589(%rip), %rsi     # 0x99792
leaq 0x105ae(%rip), %rdx     # 0x997be
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0xa690(%rip), %rsi      # 0x938b1
leaq 0x68(%rsp), %rdi
callq 0xbb10
leaq 0x58(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x89250
movups (%rcx), %xmm0
leaq 0x58(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x8925d
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rsi
leaq 0x48(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xe10a
leaq 0xbc12(%rip), %rsi      # 0x94ea4
leaq 0xe8(%rsp), %rdi
callq 0xbb10
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x892c4
movups (%rcx), %xmm0
leaq 0x18(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x892d1
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1155a
movq %rax, %r15
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x89316
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x89316
movq %rax, %r15
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8933c
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8933c
movq %rax, %r15
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x8935d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8935d
movq %rax, %r15
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x8937e
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8937e
movq %rax, %r15
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x8939f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8939f
movq %rax, %r15
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x893c5
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x893c5
movq %rax, %r15
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x893eb
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x893eb
movq %rax, %r15
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8941b
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8941b
jmp 0x89418
jmp 0x89418
movq %rax, %r15
jmp 0x89423
movq %rax, %r15
jmp 0x8942a
movq %rax, %r15
movq %r14, %rdi
callq 0xb100
movb $0x0, 0x307ce(%rip)     # 0xb9bf8
movq %r13, (%rbx)
movq 0x8(%rbx), %rdi
cmpq %r12, %rdi
je 0x89442
movq (%r12), %rsi
incq %rsi
callq 0xb5a0
movq %r15, %rdi
callq 0xba60