// File: /workspace/github_cpp_makefile_star2_O1/ncbi[P]amr/seq.cpp
// Function: Seq_sp::Peptide::getPeptideOrfs(unsigned long, char, bool, bool, unsigned long) const
Vector<PeptideOrf> Peptide::getPeptideOrfs (size_t translationStart,
              	                            Strand strand,
                                            bool includeInitial,
                                            bool longestOnly,
                                            size_t len_min) const
{
  Vector<PeptideOrf> orfs;

  PeptideOrf prev;
  FFOR (size_t, i, seq. size ())
    if (isStartAa (seq [i]))
    {
      const PeptideOrf orf (translationStart, strand, this, i);
      ASSERT (! orf. empty ());
      orf. qc ();
      if (! prev. empty ())
      {
        ASSERT (prev. start < orf. start);
        if (longestOnly && prev. stop == orf. stop)
          continue;
      }
      if (orf. size () >= len_min)
   	    orfs << orf;
   	  prev = orf;
   	}

  if (includeInitial && (orfs. empty () || orfs [0]. start > 0))
  {
    const PeptideOrf orf (translationStart, strand, this, 0);
    ASSERT (! orf. empty ());
    orf. qc ();
    if (orf. size () >= len_min)
  	  orfs << orf;
  }

  return orfs;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movl %r9d, 0x74(%rsp)
movl %r8d, 0x70(%rsp)
movq %rdx, 0xb8(%rsp)
movq %rsi, %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x9(%rdi)
movq %rdi, (%rsp)
movups %xmm0, (%rdi)
movq 0x30(%rsi), %r15
movsbl %cl, %eax
movl %eax, 0xc(%rsp)
testq %r15, %r15
je 0x7a465
movq $-0x1, %rbp
xorl %ebx, %ebx
movq $-0x1, %r12
movq 0x28(%r14), %rax
movsbl (%rax,%rbx), %r13d
cmpl $0x2a, %r13d
je 0x7a459
movl %r13d, %edi
callq 0xb840
cmpb %al, %r13b
jne 0x7a459
leaq 0x120(%rsp), %rdi
movq 0xb8(%rsp), %rsi
movl 0xc(%rsp), %edx
movq %r14, %rcx
movq %rbx, %r8
callq 0x77034
callq 0xb070
movl $0x0, (%rax)
cmpq $-0x1, 0x138(%rsp)
je 0x7a516
movq %rax, %r13
leaq 0x120(%rsp), %rdi
callq 0x77f34
cmpq $-0x1, %r12
je 0x7a41e
movl $0x0, (%r13)
cmpq 0x138(%rsp), %r12
jae 0x7a5b5
cmpb $0x0, 0x74(%rsp)
je 0x7a41e
cmpq 0x148(%rsp), %rbp
je 0x7a459
movq 0x148(%rsp), %rax
subq 0x138(%rsp), %rax
cmpq 0x190(%rsp), %rax
jb 0x7a449
movq (%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x8ee3c
movq 0x138(%rsp), %r12
movq 0x148(%rsp), %rbp
incq %rbx
cmpq %rbx, %r15
jne 0x7a384
cmpb $0x0, 0x70(%rsp)
je 0x7a500
movq (%rsp), %rcx
movq (%rcx), %rax
cmpq 0x8(%rcx), %rax
je 0x7a48f
movq (%rsp), %rdi
xorl %esi, %esi
callq 0x8eea6
cmpq $0x0, 0x18(%rax)
je 0x7a500
leaq 0x120(%rsp), %rdi
movq 0xb8(%rsp), %rsi
movl 0xc(%rsp), %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x77034
callq 0xb070
movl $0x0, (%rax)
cmpq $-0x1, 0x138(%rsp)
je 0x7a654
leaq 0x120(%rsp), %rdi
callq 0x77f34
movq 0x148(%rsp), %rax
subq 0x138(%rsp), %rax
cmpq 0x190(%rsp), %rax
jb 0x7a500
leaq 0x120(%rsp), %rsi
movq (%rsp), %rdi
callq 0x8ee3c
movq (%rsp), %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xb6b0
testl %eax, %eax
jne 0x7a6f3
leaq 0xa8(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x1db2c(%rip), %rsi     # 0x98062
leaq 0x1db35(%rip), %rdx     # 0x98072
leaq 0x98(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0xdcb, %esi            # imm = 0xDCB
callq 0xe1a8
leaq 0xe0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe100
leaq 0x18c51(%rip), %rsi     # 0x931d1
leaq 0xe0(%rsp), %rdi
callq 0xbb10
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7a6fd
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x7a70a
callq 0xb6b0
testl %eax, %eax
jne 0x7a6f3
leaq 0xa8(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x1da8d(%rip), %rsi     # 0x98062
leaq 0x1da96(%rip), %rdx     # 0x98072
leaq 0x98(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0xdcf, %esi            # imm = 0xDCF
callq 0xe1a8
leaq 0xe0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe100
leaq 0x18bb2(%rip), %rsi     # 0x931d1
leaq 0xe0(%rsp), %rdi
callq 0xbb10
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7a781
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x7a78e
callq 0xb6b0
testl %eax, %eax
jne 0x7a6f3
leaq 0xa8(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x1d9ee(%rip), %rsi     # 0x98062
leaq 0x1d9f7(%rip), %rdx     # 0x98072
leaq 0x98(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0xddb, %esi            # imm = 0xDDB
callq 0xe1a8
leaq 0xe0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe100
leaq 0x18b13(%rip), %rsi     # 0x931d1
leaq 0xe0(%rsp), %rdi
callq 0xbb10
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7a8f3
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x7a900
movl $0x1, %edi
callq 0xb6d0
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x88(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1e4d2(%rip), %rsi     # 0x98c08
leaq 0x1e527(%rip), %rdx     # 0x98c64
leaq 0x78(%rsp), %rdi
callq 0xdc76
leaq 0x19163(%rip), %rsi     # 0x938b1
leaq 0x78(%rsp), %rdi
callq 0xbb10
leaq 0x40(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7a805
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x7a812
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x88(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1e44e(%rip), %rsi     # 0x98c08
leaq 0x1e4a3(%rip), %rdx     # 0x98c64
leaq 0x78(%rsp), %rdi
callq 0xdc76
leaq 0x190df(%rip), %rsi     # 0x938b1
leaq 0x78(%rsp), %rdi
callq 0xbb10
leaq 0x40(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7a87c
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x7a889
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
movq 0x8(%rax), %rsi
leaq 0x30(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x100(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xe100
leaq 0x1e41e(%rip), %rsi     # 0x98c65
leaq 0x100(%rsp), %rdi
callq 0xbb10
leaq 0x60(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7a970
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x7a97d
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
movq 0x8(%rax), %rsi
leaq 0x30(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x100(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xe100
leaq 0x1e3b7(%rip), %rsi     # 0x98c75
leaq 0x100(%rsp), %rdi
callq 0xbb10
leaq 0x60(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7a99e
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x7a9ab
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x88(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1e2dc(%rip), %rsi     # 0x98c08
leaq 0x1e331(%rip), %rdx     # 0x98c64
leaq 0x78(%rsp), %rdi
callq 0xdc76
leaq 0x18f6d(%rip), %rsi     # 0x938b1
leaq 0x78(%rsp), %rdi
callq 0xbb10
leaq 0x40(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7a9cc
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x7a9d9
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
movq 0x8(%rax), %rdx
leaq 0x50(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1151b
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
movq 0x8(%rax), %rdx
leaq 0x50(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1151b
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
movq 0x8(%rax), %rsi
leaq 0x30(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x100(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xe100
leaq 0x1e257(%rip), %rsi     # 0x98c65
leaq 0x100(%rsp), %rdi
callq 0xbb10
leaq 0x60(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7aa3c
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x7aa49
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
movq 0x8(%rax), %rdx
leaq 0x50(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1151b
jmp 0x7aa7b
jmp 0x7aa97
jmp 0x7aac1
jmp 0x7aae1
jmp 0x7ab04
jmp 0x7aa7b
jmp 0x7aa97
movq %rax, %r14
movq 0x50(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7aa9a
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7aa9a
movq %rax, %r14
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7aac4
movq 0x110(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7aac4
jmp 0x7ab27
jmp 0x7aac1
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x7aae4
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7aae4
jmp 0x7ab4f
jmp 0x7aae1
movq %rax, %r14
movq 0x78(%rsp), %rdi
cmpq %r12, %rdi
je 0x7ab07
movq 0x88(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7ab07
jmp 0x7ab7d
jmp 0x7ab04
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x7ab2a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7ab2a
jmp 0x7aba5
jmp 0x7ab27
movq %rax, %r14
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7ab52
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7ab52
jmp 0x7ab4f
movq %rax, %r14
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7ab80
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7ab80
jmp 0x7aba5
jmp 0x7aba5
jmp 0x7ab7d
jmp 0x7aba5
movq %rax, %r14
movq 0x98(%rsp), %rdi
cmpq %rbx, %rdi
je 0x7aba8
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7aba8
jmp 0x7aba5
jmp 0x7aba5
jmp 0x7aba5
movq %rax, %r14
movq (%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x7abc4
movq (%rsp), %rax
movq 0x10(%rax), %rsi
subq %rdi, %rsi
callq 0xb5a0
movq %r14, %rdi
callq 0xba60