// File: /workspace/github_cpp_makefile_star2_O2/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 $0x118, %rsp            # imm = 0x118
movq %rsi, %r12
movq %rdi, %rbx
movq %rdx, 0x8(%rsp)
callq 0x555d4
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 0x5792a
leaq 0x10(%rsp), %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x9(%r15)
movaps %xmm0, (%r15)
movq 0x58(%r12), %r13
subq 0x50(%r12), %r13
sarq $0x5, %r13
xorl %ebp, %ebp
cmpq %r13, %rbp
je 0x548c3
movq %r12, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x541da
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rax
cmpq %rax, %rcx
je 0x54894
cmpq $0x0, 0x8(%rcx)
leaq 0x20(%rcx), %rcx
jne 0x54882
jmp 0x548df
movq %r14, %rdi
movq %r15, %rsi
callq 0x57adc
testq %rax, %rax
jne 0x54940
callq 0xb060
andl $0x0, (%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0x57bec
movq %rbp, (%rax)
incq %rbp
jmp 0x54862
leaq 0x10(%rsp), %rdi
callq 0x20bee
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0xb300
movq %rax, %r15
incq %rbp
leaq 0x38(%rsp), %rdi
movq %rbp, %rsi
callq 0x1c047
leaq 0xb1fb(%rip), %rsi      # 0x5fafc
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x1b94c
movb $0x1, %bpl
leaq 0x58(%rsp), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x20ac0
xorl %ebp, %ebp
leaq 0x2e06c(%rip), %rsi     # 0x82998
movq 0x2f63d(%rip), %rdx     # 0x83f70
movq %r15, %rdi
callq 0xb9d0
jmp 0x54a22
pushq $0x10
popq %rdi
callq 0xb300
movq %rax, %r15
leaq 0x84b3(%rip), %rsi      # 0x5ce05
leaq 0xb8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x1b7b6
leaq 0xd8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0xb8(%rsp), %rdx
callq 0x2850e
leaq 0x895b(%rip), %rsi      # 0x5d2e0
leaq 0xf8(%rsp), %rdi
leaq 0xd8(%rsp), %rdx
callq 0x1b94c
leaq 0xb177(%rip), %rdx      # 0x5fb18
leaq 0x38(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
callq 0x1b92d
leaq 0x844b(%rip), %rsi      # 0x5ce05
leaq 0x78(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x1b7b6
leaq 0x98(%rsp), %rdi
leaq 0x78(%rsp), %rdx
movq 0x8(%rsp), %rsi
callq 0x2850e
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0x1ca3c
movb $0x1, %bpl
leaq 0x58(%rsp), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x20ac0
xorl %ebp, %ebp
leaq 0x2df85(%rip), %rsi     # 0x82998
movq 0x2f556(%rip), %rdx     # 0x83f70
movq %r15, %rdi
callq 0xb9d0
movq %rax, %r12
leaq 0x58(%rsp), %rdi
callq 0xbb68
jmp 0x54a37
movq %rax, %r12
movb $0x1, %bpl
leaq 0x98(%rsp), %rdi
callq 0xbb68
jmp 0x54a4c
movq %rax, %r12
movb $0x1, %bpl
leaq 0x78(%rsp), %rdi
callq 0xbb68
jmp 0x54a5e
movq %rax, %r12
movb $0x1, %bpl
leaq 0x38(%rsp), %rdi
callq 0xbb68
jmp 0x54a75
movq %rax, %r12
jmp 0x54aed
movq %rax, %r12
movb $0x1, %bpl
leaq 0xf8(%rsp), %rdi
callq 0xbb68
jmp 0x54a8a
movq %rax, %r12
movb $0x1, %bpl
leaq 0xd8(%rsp), %rdi
callq 0xbb68
jmp 0x54a9f
movq %rax, %r12
movb $0x1, %bpl
leaq 0xb8(%rsp), %rdi
jmp 0x54acc
jmp 0x54ad8
jmp 0x54aad
movq %rax, %r12
jmp 0x54ae3
movq %rax, %r12
leaq 0x58(%rsp), %rdi
callq 0xbb68
jmp 0x54ac7
movq %rax, %r12
movb $0x1, %bpl
leaq 0x38(%rsp), %rdi
callq 0xbb68
testb %bpl, %bpl
jne 0x54adb
jmp 0x54ae3
movq %rax, %r12
movq %r15, %rdi
callq 0xb470
leaq 0x10(%rsp), %rdi
callq 0x20bee
movq %r14, %rdi
callq 0x56108
movq %rbx, %rdi
callq 0x40424
movq %r12, %rdi
callq 0xba30
nop