// File: /workspace/github_cpp_makefile_star2_O1/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 0x86572
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 0x89254
xorps %xmm0, %xmm0
movups %xmm0, 0x29(%rsp)
movaps %xmm0, 0x20(%rsp)
movq 0x58(%r12), %r13
subq 0x50(%r12), %r13
je 0x84f9b
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 0x844a6
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
cmpq %rcx, %rax
je 0x84f66
cmpq $0x0, 0x8(%rax)
je 0x84fb7
addq $0x20, %rax
jmp 0x84f54
movq %r14, %rdi
movq %r15, %rsi
callq 0x89420
testq %rax, %rax
jne 0x85016
callq 0xa070
movl $0x0, (%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0x8954c
movq %rbp, (%rax)
incq %rbp
cmpq %r13, %rbp
jne 0x84f39
leaq 0x20(%rsp), %rdi
callq 0x32c12
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 0x2ca55
leaq 0xbb73(%rip), %rsi      # 0x90b4c
leaq 0x48(%rsp), %rdi
movq %rsp, %rdx
callq 0x2c037
movb $0x1, %bpl
leaq 0x48(%rsp), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x32a1e
xorl %ebp, %ebp
leaq 0x29a9e(%rip), %rsi     # 0xaeaa0
movq 0x2af77(%rip), %rdx     # 0xaff80
movq %r15, %rdi
callq 0xa9b0
jmp 0x85156
movl $0x10, %edi
callq 0xa2c0
movq %rax, %r15
leaq 0x98(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x8dda(%rip), %rsi      # 0x8de10
leaq 0x8dd4(%rip), %rdx      # 0x8de11
leaq 0x88(%rsp), %rdi
callq 0x2fdd8
leaq 0xc8(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x88(%rsp), %rdx
callq 0x40540
leaq 0x9280(%rip), %rsi      # 0x8e2eb
leaq 0xe8(%rsp), %rdi
leaq 0xc8(%rsp), %rdx
callq 0x2c037
leaq 0xbae1(%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 0x850b9
movups (%rcx), %xmm0
leaq 0x10(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x850c5
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 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8d23(%rip), %rsi      # 0x8de10
leaq 0x8d1d(%rip), %rdx      # 0x8de11
leaq 0x68(%rsp), %rdi
callq 0x2fdd8
leaq 0xa8(%rsp), %rdi
leaq 0x68(%rsp), %rdx
movq 0x40(%rsp), %rsi
callq 0x40540
leaq 0x48(%rsp), %rdi
movq %rsp, %rsi
leaq 0xa8(%rsp), %rdx
callq 0x2d562
movb $0x1, %r13b
leaq 0x48(%rsp), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x32a1e
xorl %r13d, %r13d
leaq 0x29959(%rip), %rsi     # 0xaeaa0
movq 0x2ae32(%rip), %rdx     # 0xaff80
movq %r15, %rdi
callq 0xa9b0
movq %rax, %r12
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8517c
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x8517c
movq %rax, %r12
movb $0x1, %r13b
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x851a5
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x851a5
movq %rax, %r12
movb $0x1, %r13b
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x851c9
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x851c9
movq %rax, %r12
movb $0x1, %r13b
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x851f4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x851f4
movq %rax, %r12
jmp 0x852d9
movq %rax, %r12
movb $0x1, %r13b
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8521d
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x8521d
movq %rax, %r12
movb $0x1, %r13b
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x85246
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x85246
movq %rax, %r12
movb $0x1, %r13b
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8526b
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x8526b
movq %rax, %r12
movb $0x1, %r13b
testb %r13b, %r13b
jne 0x852c7
jmp 0x852cf
jmp 0x85274
movq %rax, %r12
jmp 0x852cf
movq %rax, %r12
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8529f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x8529f
movq %rax, %r12
movb $0x1, %bpl
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x852c2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x852c2
movq %rax, %r12
movb $0x1, %bpl
testb %bpl, %bpl
je 0x852cf
movq %r15, %rdi
callq 0xa440
leaq 0x20(%rsp), %rdi
callq 0x32c12
movq %r14, %rdi
callq 0x87516
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x852f5
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0xa5a0
movq %r12, %rdi
callq 0xaa10
nop