// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/seq.cpp
// Function: Seq_sp::Seq::getGi() const
long /*CSeq_id::TGi*/ Seq::getGi () const
{
	const char* prefix = "gi|";
	size_t start = name. find (prefix, 0);
	size_t end;
	if (start == string::npos)
	{
		start = 0;
		end = name. find (' ');
	}
	else
	{
		ASSERT (start < getIdSize ());
		start += strlen (prefix);
	  end = name. find ('|', start);
	  ASSERT (end != string::npos);
  }
  if (end == string::npos)
  	end = name. size ();
  return str2<long> (name. substr (start, end - start));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %r15
leaq 0x8(%rdi), %rbx
leaq 0x2bbbc(%rip), %rsi     # 0x981d5
movl $0x3, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0xba30
cmpq $-0x1, %rax
je 0x6c72a
movq %rax, %r14
callq 0xb070
movq %rax, %r12
movl $0x0, (%rax)
movq %rbx, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0xb760
cmpq $-0x1, %rax
jne 0x6c65c
movq 0x10(%r15), %rax
cmpq %rax, %r14
jae 0x6c79d
addq $0x3, %r14
movq %rbx, %rdi
movl $0x7c, %esi
movq %r14, %rdx
callq 0xb760
movl $0x0, (%r12)
cmpq $-0x1, %rax
jne 0x6c749
callq 0xb6b0
testl %eax, %eax
jne 0x6c835
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2b9a7(%rip), %rsi     # 0x98052
leaq 0x2b9b0(%rip), %rdx     # 0x98062
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x114, %esi            # imm = 0x114
callq 0xe1b2
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe10a
leaq 0x26adc(%rip), %rsi     # 0x931d1
leaq 0xc8(%rsp), %rdi
callq 0xbb10
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6c8c0
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x6c8cd
xorl %r14d, %r14d
movq %rbx, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0xb760
cmpq $-0x1, %rax
jne 0x6c749
movq 0x10(%r15), %rax
xorl %r14d, %r14d
subq %r14, %rax
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %rax, %rcx
callq 0xb5d0
movq %r15, %rdi
callq 0x8e559
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c788
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq %rbx, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xb6b0
testl %eax, %eax
jne 0x6c835
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2b895(%rip), %rsi     # 0x98052
leaq 0x2b89e(%rip), %rdx     # 0x98062
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x111, %esi            # imm = 0x111
callq 0xe1b2
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe10a
leaq 0x269ca(%rip), %rsi     # 0x931d1
leaq 0xc8(%rsp), %rdi
callq 0xbb10
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6c83f
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x6c84c
movl $0x1, %edi
callq 0xb6d0
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2b964(%rip), %rsi     # 0x981d9
leaq 0x2b97c(%rip), %rdx     # 0x981f8
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x27024(%rip), %rsi     # 0x938b1
leaq 0x68(%rsp), %rdi
callq 0xbb10
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6c93a
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x6c947
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2b8e3(%rip), %rsi     # 0x981d9
leaq 0x2b8fb(%rip), %rdx     # 0x981f8
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x26fa3(%rip), %rsi     # 0x938b1
leaq 0x68(%rsp), %rdi
callq 0xbb10
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6c9aa
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x6c9b7
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rsi
leaq 0x48(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xe10a
leaq 0x2b87d(%rip), %rsi     # 0x981f9
leaq 0xe8(%rsp), %rdi
callq 0xbb10
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6ca1a
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x6ca27
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rsi
leaq 0x48(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xe10a
leaq 0x2b822(%rip), %rsi     # 0x9820e
leaq 0xe8(%rsp), %rdi
callq 0xbb10
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6ca48
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x6ca55
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1155a
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1155a
jmp 0x6ca7a
jmp 0x6ca96
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6ca99
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6ca99
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6cac1
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6cac1
jmp 0x6cabe
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x6cadf
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6cadf
jmp 0x6cadc
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x6cafd
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6cafd
jmp 0x6cafa
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x6cb1b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6cb1b
jmp 0x6cb18
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6cb43
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6cb43
jmp 0x6cb40
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6cb6b
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6cb6b
jmp 0x6cb68
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x6cba7
movq 0x98(%rsp), %rsi
jmp 0x6cb9f
jmp 0x6cb84
movq %rax, %rbx
jmp 0x6cba7
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6cba7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq %rbx, %rdi
callq 0xba60
nop