// File: /workspace/github_cpp_makefile_star2_O2/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, 0x8(%rsp)
leaq 0xa8(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x310(%rsp), %rdi
xorl %edx, %edx
callq 0x1d20a
movq %rbx, 0x10(%rsp)
leaq 0x190(%rsp), %rdi
callq 0x1d260
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %r14d, %r14d
leaq 0x28(%rsp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
movb %r14b, (%rax)
movb %r14b, (%rcx)
leaq 0x310(%rsp), %r12
leaq 0x190(%rsp), %r13
leaq 0x38(%rsp), %rbp
leaq 0x18(%rsp), %rbx
leaq 0xa0(%rsp), %r15
movq %r12, %rdi
callq 0x219d4
testb %al, %al
je 0x4f352
movq %r13, %rdi
leaq 0x578(%rsp), %rsi
callq 0x1d2f2
andq $0x0, 0x40(%rsp)
movq 0x38(%rsp), %rax
movb %r14b, (%rax)
andq $0x0, 0x20(%rsp)
movq 0x18(%rsp), %rax
movb %r14b, (%rax)
movq %r13, %rdi
movq %rbp, %rsi
callq 0xb730
movq %rax, %rdi
movq %rbx, %rsi
callq 0xb730
callq 0xb060
andl $0x0, (%rax)
cmpq $0x0, 0x20(%rsp)
je 0x4f4f2
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3d7a6
movq %rax, %rdi
movq %rbp, %rsi
callq 0xb350
jmp 0x4f2d8
leaq 0x18(%rsp), %rdi
callq 0xbb68
leaq 0x38(%rsp), %rdi
callq 0xbb68
leaq 0x190(%rsp), %rdi
callq 0x1d34a
leaq 0x310(%rsp), %rdi
callq 0x1d368
cmpq $0x0, 0xc8(%rsp)
je 0x4f5e0
movq 0x8(%rsp), %rcx
movq 0x20(%rcx), %rax
addq $0x10, %rcx
movq %rcx, 0x8(%rsp)
leaq 0x320(%rsp), %r14
leaq 0xa0(%rsp), %r15
leaq 0x310(%rsp), %r12
cmpq 0x8(%rsp), %rax
je 0x4f42d
movq 0x58(%rax), %r13
movq %rax, 0x58(%rsp)
leaq 0x48(%rax), %rbx
cmpq %rbx, %r13
je 0x4f421
movq %r14, 0x310(%rsp)
andq $0x0, 0x318(%rsp)
movb $0x0, 0x320(%rsp)
leaq 0x28(%r13), %rbp
movq %r15, %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0x3d772
testb %al, %al
je 0x4f44c
movq %rbp, %rdi
movq %r12, %rsi
callq 0xb6f0
movq %r12, %rdi
callq 0xbb68
movq %r13, %rdi
callq 0xb660
movq %rax, %r13
jmp 0x4f3cd
movq 0x58(%rsp), %rdi
callq 0xb430
jmp 0x4f3b9
leaq 0xa0(%rsp), %rdi
callq 0x1be2a
addq $0x5b8, %rsp            # imm = 0x5B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0xb300
movq %rax, %r14
leaq 0x80(%rsp), %rdi
pushq $0x22
popq %rdx
movq %rbp, %rsi
callq 0x243b1
leaq 0xff11(%rip), %rsi      # 0x5f382
leaq 0x18(%rsp), %rdi
leaq 0x80(%rsp), %rdx
callq 0x1b94c
leaq 0xff0a(%rip), %rdx      # 0x5f394
leaq 0x38(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x1b92d
leaq 0x60(%rsp), %rdi
pushq $0x22
popq %rdx
movq 0x10(%rsp), %rsi
callq 0x243b1
leaq 0x190(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0x1ca3c
movb $0x1, %bpl
leaq 0x190(%rsp), %rsi
movq %r14, %rdi
callq 0xb940
xorl %ebp, %ebp
movq 0x34b0a(%rip), %rsi     # 0x83fe8
movq 0x34a7b(%rip), %rdx     # 0x83f60
movq %r14, %rdi
callq 0xb9d0
jmp 0x4f64b
callq 0xb6c0
testl %eax, %eax
jne 0x4f5d8
leaq 0xf9dc(%rip), %rsi      # 0x5eee2
leaq 0x130(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x1b7b6
leaq 0x110(%rsp), %rdi
movl $0x1c2, %esi            # imm = 0x1C2
callq 0x1caa3
leaq 0x150(%rsp), %rdi
leaq 0x130(%rsp), %rsi
leaq 0x110(%rsp), %rdx
callq 0x1ca3c
leaq 0xa695(%rip), %rdx      # 0x59be3
leaq 0x170(%rsp), %rdi
leaq 0x150(%rsp), %rsi
callq 0x1b92d
leaq 0xfdcd(%rip), %rsi      # 0x5f337
leaq 0xd0(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x1b7b6
leaq 0xc3bb(%rip), %rdx      # 0x5b93e
leaq 0xf0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x1b92d
leaq 0x60(%rsp), %rdi
leaq 0x170(%rsp), %rsi
leaq 0xf0(%rsp), %rdx
callq 0x1ca3c
leaq 0xfdb5(%rip), %rdx      # 0x5f36e
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x1b92d
leaq 0x80(%rsp), %rdi
callq 0x224fc
pushq $0x1
popq %rdi
callq 0xb6d0
pushq $0x10
popq %rdi
callq 0xb300
movq %rax, %r14
leaq 0xfc4b(%rip), %rsi      # 0x5f23d
leaq 0x190(%rsp), %rdi
movq 0x10(%rsp), %rdx
callq 0x1b8b7
leaq 0xfd22(%rip), %rdx      # 0x5f32d
leaq 0x310(%rsp), %rdi
leaq 0x190(%rsp), %rsi
callq 0x1b92d
movb $0x1, %bpl
leaq 0x310(%rsp), %rsi
movq %r14, %rdi
callq 0xb940
xorl %ebp, %ebp
movq 0x349ac(%rip), %rsi     # 0x83fe8
movq 0x3491d(%rip), %rdx     # 0x83f60
movq %r14, %rdi
callq 0xb9d0
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0xbb68
jmp 0x4f660
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0xbb68
jmp 0x4f66f
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0xbb68
jmp 0x4f681
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0xbb68
jmp 0x4f6c2
movq %rax, %rbx
leaq 0x310(%rsp), %rdi
callq 0xbb68
jmp 0x4f6a8
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x190(%rsp), %rdi
callq 0xbb68
testb %bpl, %bpl
jne 0x4f6d4
jmp 0x4f7db
movq %rax, %rbx
leaq 0x170(%rsp), %rdi
callq 0xbb68
jmp 0x4f6e4
movq %rax, %rbx
movq %r14, %rdi
callq 0xb470
jmp 0x4f7db
movq %rax, %rbx
leaq 0x150(%rsp), %rdi
callq 0xbb68
jmp 0x4f706
movq %rax, %rbx
jmp 0x4f795
movq %rax, %rbx
jmp 0x4f7db
movq %rax, %rbx
leaq 0x110(%rsp), %rdi
callq 0xbb68
jmp 0x4f718
movq %rax, %rbx
leaq 0x130(%rsp), %rdi
callq 0xbb68
jmp 0x4f774
jmp 0x4f771
movq %rax, %rbx
leaq 0x190(%rsp), %rdi
callq 0xbb68
jmp 0x4f741
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x60(%rsp), %rdi
callq 0xbb68
jmp 0x4f753
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x38(%rsp), %rdi
callq 0xbb68
jmp 0x4f765
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x18(%rsp), %rdi
callq 0xbb68
jmp 0x4f7aa
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0xbb68
leaq 0x38(%rsp), %rdi
callq 0xbb68
leaq 0x190(%rsp), %rdi
callq 0x1d34a
leaq 0x310(%rsp), %rdi
callq 0x1d368
jmp 0x4f7db
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x80(%rsp), %rdi
callq 0xbb68
testb %bpl, %bpl
jne 0x4f7c1
jmp 0x4f7ce
movq %rax, %rbx
movq %r14, %rdi
callq 0xb470
jmp 0x4f7ce
movq %rax, %rbx
leaq 0x310(%rsp), %rdi
callq 0xbb68
leaq 0xa0(%rsp), %rdi
callq 0x1be2a
movq %rbx, %rdi
callq 0xba30