// File: /workspace/github_cpp_makefile_star2_O1/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, %r14
leaq 0x8(%rdi), %rbx
leaq 0x2ba54(%rip), %rsi     # 0x981e5
movl $0x3, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0xba30
cmpq $-0x1, %rax
je 0x6c8a2
movq %rax, %r15
callq 0xb070
movq %rax, %r12
movl $0x0, (%rax)
movq %rbx, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0xb760
cmpq $-0x1, %rax
jne 0x6c7d4
movq 0x10(%r14), %rax
cmpq %rax, %r15
jae 0x6c912
addq $0x3, %r15
movq %rbx, %rdi
movl $0x7c, %esi
movq %r15, %rdx
callq 0xb760
movl $0x0, (%r12)
cmpq $-0x1, %rax
jne 0x6c8b4
callq 0xb6b0
testl %eax, %eax
jne 0x6c9aa
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2b83f(%rip), %rsi     # 0x98062
leaq 0x2b848(%rip), %rdx     # 0x98072
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x114, %esi            # imm = 0x114
callq 0xe1a8
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe100
leaq 0x26964(%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 0x6ca35
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x6ca42
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0xb760
cmpq $-0x1, %rax
jne 0x6c8be
movq 0x10(%r14), %rax
subq %r15, %rax
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %rax, %rcx
callq 0xb5d0
movq %r14, %rdi
callq 0x8e979
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c8fd
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 0x6c9aa
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2b730(%rip), %rsi     # 0x98062
leaq 0x2b739(%rip), %rdx     # 0x98072
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x111, %esi            # imm = 0x111
callq 0xe1a8
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe100
leaq 0x26855(%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 0x6c9b4
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x6c9c1
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 0x2b7ff(%rip), %rsi     # 0x981e9
leaq 0x2b817(%rip), %rdx     # 0x98208
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x26eaf(%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 0x6caaf
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x6cabc
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 0x2b77e(%rip), %rsi     # 0x981e9
leaq 0x2b796(%rip), %rdx     # 0x98208
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x26e2e(%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 0x6cb1f
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x6cb2c
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 0xe100
leaq 0x2b718(%rip), %rsi     # 0x98209
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 0x6cb8f
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x6cb9c
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 0xe100
leaq 0x2b6bd(%rip), %rsi     # 0x9821e
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 0x6cbbd
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x6cbca
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 0x1151b
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 0x1151b
jmp 0x6cbef
jmp 0x6cc0b
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6cc0e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6cc0e
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6cc36
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6cc36
jmp 0x6cc33
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x6cc54
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6cc54
jmp 0x6cc51
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x6cc72
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6cc72
jmp 0x6cc6f
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x6cc90
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6cc90
jmp 0x6cc8d
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6ccb8
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6ccb8
jmp 0x6ccb5
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6cce0
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6cce0
jmp 0x6ccdd
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x6cd1c
movq 0x98(%rsp), %rsi
jmp 0x6cd14
jmp 0x6ccf9
movq %rax, %rbx
jmp 0x6cd1c
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6cd1c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq %rbx, %rdi
callq 0xba60