// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/gff.cpp
// Function: GFF_sp::Annot::load_fasta2gff_dna(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void Annot::load_fasta2gff_dna (const string &fName)
{
  map<string/*DNA GFF id*/,string/*DNA FASTA id*/> gff2fasta;  
  {
    LineInput f (fName);
  	Istringstream iss;
  	string fasta_dna, gff_dna;
    while (f. nextLine ())
    {
    	iss. reset (f. line);
    	fasta_dna. clear ();
    	gff_dna. clear ();
    	iss >> fasta_dna >> gff_dna;
    	QC_ASSERT (! gff_dna. empty ());
    	gff2fasta [gff_dna] = fasta_dna;
    }
  }
  if (gff2fasta. empty ())
  	throw runtime_error ("File " + fName + " is empty");
  
  for (auto& it : prot2loci)
  {
    Set<Locus>& loci = it. second;
    for (const Locus& locus : loci)
    {
    	string s;
    	if (! find (gff2fasta, locus. contig, s))
    	  throw runtime_error ("FASTA DNA contig " + strQuote (locus. contig) + " is not found in GFF-DNA match file " + strQuote (fName));
    	var_cast (locus). contig = std::move (s);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x5b8, %rsp            # imm = 0x5B8
movq %rsi, %rbx
movq %rdi, 0x28(%rsp)
leaq 0x128(%rsp), %rcx
movl $0x0, (%rcx)
xorl %eax, %eax
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x310(%rsp), %rdi
xorl %edx, %edx
callq 0x30bc4
movq %rbx, 0x50(%rsp)
leaq 0x32540(%rip), %rax     # 0xae618
leaq 0x588(%rsp), %rcx
movq %rax, -0x278(%rcx)
movl $0x0, -0x18(%rcx)
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x5a8(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x190(%rsp), %rdi
callq 0x2de24
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
xorl %r13d, %r13d
movq %r13, -0x8(%rax)
movb %r13b, (%rax)
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
movq %r13, -0x8(%rax)
movb %r13b, (%rax)
leaq 0x310(%rsp), %rbp
leaq 0x190(%rsp), %r15
leaq 0x8(%rsp), %rbx
leaq 0x30(%rsp), %r14
leaq 0x120(%rsp), %r12
movq %rbp, %rdi
callq 0x33b76
testb %al, %al
je 0x7c1f4
leaq 0x208(%rsp), %rdi
xorl %esi, %esi
callq 0xa990
leaq 0x1a0(%rsp), %rdi
leaq 0x578(%rsp), %rsi
callq 0xa870
movq %r13, 0x10(%rsp)
movq 0x8(%rsp), %rax
movb %r13b, (%rax)
movq %r13, 0x38(%rsp)
movq 0x30(%rsp), %rax
movb %r13b, (%rax)
movq %r15, %rdi
movq %rbx, %rsi
callq 0xa720
movq %rax, %rdi
movq %r14, %rsi
callq 0xa720
callq 0xa070
movl $0x0, (%rax)
cmpq $0x0, 0x38(%rsp)
je 0x7c4a6
movq %r12, %rdi
movq %r14, %rsi
callq 0x65c46
movq %rax, %rdi
movq %rbx, %rsi
callq 0xa320
jmp 0x7c15e
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x7c210
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7c22c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x325dd(%rip), %rsi     # 0xae810
leaq 0x190(%rsp), %rdi
callq 0xa7e0
leaq 0x208(%rsp), %rdi
callq 0xa1c0
leaq 0x323c4(%rip), %rax     # 0xae618
movq %rax, 0x310(%rsp)
movq 0x598(%rsp), %rdi
leaq 0x5a8(%rsp), %rax
cmpq %rax, %rdi
je 0x7c281
movq 0x5a8(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x578(%rsp), %rdi
leaq 0x588(%rsp), %rax
cmpq %rax, %rdi
je 0x7c2a6
movq 0x588(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x32423(%rip), %rax     # 0xae6d0
leaq 0x530(%rsp), %rbx
movq %rax, -0x220(%rbx)
movq %rbx, %rdi
callq 0x436fc
leaq 0x32465(%rip), %rax     # 0xae730
movq %rax, -0x218(%rbx)
leaq 0x418(%rsp), %rbx
leaq 0x32477(%rip), %rax     # 0xae758
movq %rax, (%rbx)
leaq 0x328(%rsp), %r14
movq %r14, %rdi
callq 0xa4b0
leaq 0x32485(%rip), %rax     # 0xae780
movq %rax, -0x10(%r14)
leaq 0x324a2(%rip), %rax     # 0xae7a8
movq %rax, (%rbx)
movq $0x0, -0x8(%r14)
movq %rbx, %rdi
callq 0xa1c0
cmpq $0x0, 0x148(%rsp)
je 0x7c5d9
movq 0x28(%rsp), %rcx
movq 0x20(%rcx), %rax
addq $0x10, %rcx
movq %rcx, 0x28(%rsp)
cmpq %rcx, %rax
je 0x7c414
leaq 0x320(%rsp), %r13
leaq 0x120(%rsp), %r14
leaq 0x310(%rsp), %r15
movq 0x58(%rax), %r12
movq %rax, 0x78(%rsp)
leaq 0x48(%rax), %rbp
cmpq %rbp, %r12
je 0x7c3ff
movq %r13, %rbx
movq %r13, 0x310(%rsp)
movq $0x0, 0x318(%rsp)
movb $0x0, 0x320(%rsp)
leaq 0x28(%r12), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x75d3c
leaq 0x128(%rsp), %rcx
cmpq %rcx, %rax
je 0x7c433
addq $0x40, %rax
movq %r15, %rdi
movq %rax, %rsi
callq 0xa320
movq %r13, %rdi
movq %r15, %rsi
callq 0xa6e0
movq 0x310(%rsp), %rdi
movq %rbx, %r13
cmpq %rbx, %rdi
je 0x7c3eb
movq 0x320(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq %r12, %rdi
callq 0xa660
movq %rax, %r12
cmpq %rbp, %rax
jne 0x7c371
movq 0x78(%rsp), %rdi
callq 0xa400
cmpq 0x28(%rsp), %rax
jne 0x7c35b
leaq 0x120(%rsp), %rdi
callq 0x2c320
addq $0x5b8, %rsp            # imm = 0x5B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0xa2c0
movq %rax, %r12
leaq 0x58(%rsp), %rdi
movq %r13, %rsi
movl $0x22, %edx
callq 0x38a3a
leaq 0x13f7d(%rip), %rsi     # 0x903d6
leaq 0x30(%rsp), %rdi
leaq 0x58(%rsp), %rdx
callq 0x2bbf7
leaq 0x13f79(%rip), %rsi     # 0x903e8
leaq 0x30(%rsp), %rdi
callq 0xaac0
leaq 0x18(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7c548
movups (%rcx), %xmm0
leaq 0x18(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x7c555
callq 0xa6b0
testl %eax, %eax
jne 0x7c5cf
leaq 0x110(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x13a70(%rip), %rsi     # 0x8ff36
leaq 0x13a79(%rip), %rdx     # 0x8ff46
leaq 0x100(%rsp), %rdi
callq 0x2fa1a
leaq 0x150(%rsp), %rdi
movl $0x1c2, %esi            # imm = 0x1C2
callq 0x2d1fa
leaq 0x170(%rsp), %rdi
leaq 0x100(%rsp), %rsi
leaq 0x150(%rsp), %rdx
callq 0x2d152
leaq 0xe6d5(%rip), %rsi      # 0x8abe5
leaq 0x170(%rsp), %rdi
callq 0xaac0
leaq 0xb0(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7c63e
movups (%rcx), %xmm0
movups %xmm0, (%r14)
jmp 0x7c651
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x80(%rsp), %rdi
movq 0x50(%rsp), %rsi
movl $0x22, %edx
callq 0x38a3a
leaq 0x190(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x80(%rsp), %rdx
callq 0x2d152
movb $0x1, %r14b
leaq 0x190(%rsp), %rsi
movq %r12, %rdi
callq 0xa930
xorl %r14d, %r14d
movq 0x33a2d(%rip), %rsi     # 0xaffe8
movq 0x3399e(%rip), %rdx     # 0xaff60
movq %r12, %rdi
callq 0xa9b0
jmp 0x7c722
movl $0x1, %edi
callq 0xa6c0
movl $0x10, %edi
callq 0xa2c0
movq %rax, %rbx
leaq 0x13ca4(%rip), %rsi     # 0x90291
leaq 0x190(%rsp), %rdi
movq 0x50(%rsp), %rdx
callq 0x2bb6f
leaq 0x13d7b(%rip), %rsi     # 0x90381
leaq 0x190(%rsp), %rdi
callq 0xaac0
leaq 0x320(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7c6cd
movups (%rcx), %xmm0
movups %xmm0, (%r14)
jmp 0x7c6e0
movq %rdx, 0xa0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb0(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0xa8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xf0(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x13d0b(%rip), %rsi     # 0x9038b
leaq 0x13d3a(%rip), %rdx     # 0x903c1
leaq 0xe0(%rsp), %rdi
callq 0x2fa1a
leaq 0x10298(%rip), %rsi     # 0x8c933
leaq 0xe0(%rsp), %rdi
callq 0xaac0
leaq 0xd0(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7c722
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x7c735
movq %rdx, 0x310(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x320(%rsp)
movq 0x8(%rax), %rdx
leaq 0x310(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bpl
movq %rbx, %rdi
callq 0xa930
xorl %ebp, %ebp
movq 0x338d5(%rip), %rsi     # 0xaffe8
movq 0x33846(%rip), %rdx     # 0xaff60
movq %rbx, %rdi
callq 0xa9b0
movq %rdx, 0xc0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd0(%rsp)
movq 0x8(%rax), %rsi
leaq 0xc0(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x80(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x2d152
leaq 0x13c52(%rip), %rsi     # 0x903c2
leaq 0x80(%rsp), %rdi
callq 0xaac0
leaq 0x68(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7c79e
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x7c7ab
movq %rdx, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
movq 0x8(%rax), %rdx
leaq 0x58(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x34fa2
movq %rax, %r15
movq 0x58(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7c7eb
movq 0x68(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x7c7eb
movq %rax, %r15
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7c811
movq 0x90(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x7c811
movq %rax, %r15
movq 0xc0(%rsp), %rdi
cmpq %r13, %rdi
je 0x7c833
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x7c833
movq %rax, %r15
movq 0xe0(%rsp), %rdi
cmpq %r12, %rdi
je 0x7c8d2
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x7c8d2
movq %rax, %r15
movq 0x310(%rsp), %rdi
cmpq %r14, %rdi
je 0x7c876
movq 0x320(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x7c89b
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0xa5a0
testb %bpl, %bpl
jne 0x7c8f4
jmp 0x7cb01
movq %rax, %r15
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x7c8f4
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x7c8f4
movq %rax, %r15
movq 0xa0(%rsp), %rdi
cmpq %r14, %rdi
je 0x7c904
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x7c904
movq %rax, %r15
movq %rbx, %rdi
callq 0xa440
jmp 0x7cb01
movq %rax, %r15
leaq 0x180(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7c93a
movq 0x180(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x7c93a
movq %rax, %r15
jmp 0x7cad2
movq %rax, %r15
jmp 0x7cb01
movq %rax, %r15
leaq 0x160(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7c960
movq 0x160(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x7c960
movq %rax, %r15
movq 0x100(%rsp), %rdi
cmpq %rbx, %rdi
je 0x7ca79
movq 0x110(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x7ca79
jmp 0x7ca76
movq %rax, %r15
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x7c9bb
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x7c9bb
movq %rax, %r15
movb $0x1, %r14b
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7c9e4
movq 0x90(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x7c9e4
movq %rax, %r15
movb $0x1, %r14b
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7ca08
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x7ca08
movq %rax, %r15
movb $0x1, %r14b
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x7ca24
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7ca3f
movq 0x68(%rsp), %rsi
incq %rsi
callq 0xa5a0
testb %r14b, %r14b
jne 0x7ca6c
jmp 0x7cae4
movq %rax, %r15
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7ca6c
movq 0x68(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x7ca6c
movq %rax, %r15
movq %r12, %rdi
callq 0xa440
jmp 0x7cae4
movq %rax, %r15
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x7ca95
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7cab1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x31d58(%rip), %rsi     # 0xae810
leaq 0x190(%rsp), %rdi
callq 0xa7e0
leaq 0x208(%rsp), %rdi
callq 0xa1c0
leaq 0x310(%rsp), %rdi
callq 0x2defc
jmp 0x7cb01
movq %rax, %r15
movq 0x310(%rsp), %rdi
cmpq %rbx, %rdi
je 0x7cb01
movq 0x320(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x120(%rsp), %rdi
callq 0x2c320
movq %r15, %rdi
callq 0xaa10