// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/tsv.cpp
// Function: Common_sp::TextTable::Key::Key(Common_sp::TextTable const&, Common_sp::StringVector const&)
TextTable::Key::Key (const TextTable &tab,
                     const StringVector &columns)
: colNums (tab. columns2nums (columns))
{
  data. rehash (tab. rows. size ());
  StringVector values;  
  FFOR (RowNum, i, tab. rows. size ())
  {
    tab. colNumsRow2values (colNums, i, values);
    for (const string& s : values)
      if (s. empty ())
        throw Error (tab, "Empty value in key, in row " + to_string (i + 1));
    if (data. find (values) != data. end ())
      throw Error (tab, "Duplicate key " + values. toString (",") + " for the key on " + columns. toString (","));
    ASSERT (i != no_index);
    data [values] = i;
  }  
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %r12
movq %rdi, %rbx
movq %rdx, 0x40(%rsp)
callq 0x864f4
leaq 0x20(%rbx), %r14
leaq 0x50(%rbx), %rax
movq %rax, 0x20(%rbx)
movq $0x1, 0x28(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rbx)
movl $0x3f800000, 0x40(%rbx) # imm = 0x3F800000
movups %xmm0, 0x48(%rbx)
movq 0x58(%r12), %rsi
subq 0x50(%r12), %rsi
sarq $0x5, %rsi
movq %r14, %rdi
callq 0x891da
xorps %xmm0, %xmm0
movups %xmm0, 0x29(%rsp)
movaps %xmm0, 0x20(%rsp)
movq 0x58(%r12), %r13
subq 0x50(%r12), %r13
je 0x84ea3
sarq $0x5, %r13
cmpq $0x1, %r13
adcq $0x0, %r13
xorl %ebp, %ebp
leaq 0x20(%rsp), %r15
movq %r12, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x843b4
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
cmpq %rcx, %rax
je 0x84e6e
cmpq $0x0, 0x8(%rax)
je 0x84ebf
addq $0x20, %rax
jmp 0x84e5c
movq %r14, %rdi
movq %r15, %rsi
callq 0x893a0
testq %rax, %rax
jne 0x84f1e
callq 0xa070
movl $0x0, (%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0x894cc
movq %rbp, (%rax)
incq %rbp
cmpq %r13, %rbp
jne 0x84e41
leaq 0x20(%rsp), %rdi
callq 0x327d2
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0xa2c0
movq %rax, %r15
incq %rbp
movq %rsp, %rdi
movq %rbp, %rsi
callq 0x2c619
leaq 0xbc6b(%rip), %rsi      # 0x90b4c
leaq 0x48(%rsp), %rdi
movq %rsp, %rdx
callq 0x2bbf7
movb $0x1, %bpl
leaq 0x48(%rsp), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x3263e
xorl %ebp, %ebp
leaq 0x29bd6(%rip), %rsi     # 0xaeae0
movq 0x2b06f(%rip), %rdx     # 0xaff80
movq %r15, %rdi
callq 0xa9b0
jmp 0x8505e
movl $0x10, %edi
callq 0xa2c0
movq %rax, %r15
leaq 0x78(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x8ebf(%rip), %rsi      # 0x8ddfa
leaq 0x8eb9(%rip), %rdx      # 0x8ddfb
leaq 0x68(%rsp), %rdi
callq 0x2fa1a
leaq 0xc8(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0x400fe
leaq 0x936b(%rip), %rsi      # 0x8e2d5
leaq 0xe8(%rsp), %rdi
leaq 0xc8(%rsp), %rdx
callq 0x2bbf7
leaq 0xbbe2(%rip), %rsi      # 0x90b68
leaq 0xe8(%rsp), %rdi
callq 0xaac0
leaq 0x10(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x84fb8
movups (%rcx), %xmm0
leaq 0x10(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x84fc4
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8e0b(%rip), %rsi      # 0x8ddfa
leaq 0x8e05(%rip), %rdx      # 0x8ddfb
leaq 0x88(%rsp), %rdi
callq 0x2fa1a
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rdx
movq 0x40(%rsp), %rsi
callq 0x400fe
leaq 0x48(%rsp), %rdi
movq %rsp, %rsi
leaq 0xa8(%rsp), %rdx
callq 0x2d152
movb $0x1, %r13b
leaq 0x48(%rsp), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x3263e
xorl %r13d, %r13d
leaq 0x29a91(%rip), %rsi     # 0xaeae0
movq 0x2af2a(%rip), %rdx     # 0xaff80
movq %r15, %rdi
callq 0xa9b0
movq %rax, %r12
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x85084
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x85084
movq %rax, %r12
movb $0x1, %r13b
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x850ad
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x850ad
movq %rax, %r12
movb $0x1, %r13b
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x850da
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x850da
movq %rax, %r12
movb $0x1, %r13b
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x85105
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x85105
movq %rax, %r12
jmp 0x85206
movq %rax, %r12
movb $0x1, %r13b
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8512e
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x8512e
movq %rax, %r12
movb $0x1, %r13b
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8514f
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x85166
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xa5a0
testb %r13b, %r13b
jne 0x851f4
jmp 0x851fc
movq %rax, %r12
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x851f4
movq 0x78(%rsp), %rsi
jmp 0x851e7
jmp 0x851f1
jmp 0x8518c
movq %rax, %r12
jmp 0x851fc
movq %rax, %r12
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x851af
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x851ca
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
testb %bpl, %bpl
jne 0x851f4
jmp 0x851fc
movq %rax, %r12
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x851f4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x851f4
movq %rax, %r12
movq %r15, %rdi
callq 0xa440
leaq 0x20(%rsp), %rdi
callq 0x327d2
movq %r14, %rdi
callq 0x8746c
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x85222
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0xa5a0
movq %r12, %rdi
callq 0xaa10