// File: /workspace/github_cpp_makefile_star2_O3/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 0x7a0b3
movq $-0x1, %rbp
xorl %ebx, %ebx
movq $-0x1, %r12
movq 0x28(%r14), %rax
movsbl (%rax,%rbx), %r13d
cmpl $0x2a, %r13d
je 0x7a0a7
movl %r13d, %edi
callq 0xb840
cmpb %al, %r13b
jne 0x7a0a7
leaq 0x120(%rsp), %rdi
movq 0xb8(%rsp), %rsi
movl 0xc(%rsp), %edx
movq %r14, %rcx
movq %rbx, %r8
callq 0x76ed8
callq 0xb070
movl $0x0, (%rax)
cmpq $-0x1, 0x138(%rsp)
je 0x7a162
movq %rax, %r13
leaq 0x120(%rsp), %rdi
callq 0x77bdc
cmpq $-0x1, %r12
je 0x7a060
movl $0x0, (%r13)
movq 0x138(%rsp), %rax
cmpq %rax, %r12
jae 0x7a201
movq 0x148(%rsp), %rcx
cmpb $0x0, 0x74(%rsp)
je 0x7a070
cmpq %rcx, %rbp
je 0x7a0a7
jmp 0x7a070
movq 0x138(%rsp), %rax
movq 0x148(%rsp), %rcx
movq %rcx, %rdx
subq %rax, %rdx
movq %rax, %r12
movq %rcx, %rbp
cmpq 0x190(%rsp), %rdx
jb 0x7a0a7
movq (%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x8ea42
movq 0x138(%rsp), %r12
movq 0x148(%rsp), %rbp
incq %rbx
cmpq %rbx, %r15
jne 0x79fbe
cmpb $0x0, 0x70(%rsp)
je 0x7a14c
movq (%rsp), %rcx
movq (%rcx), %rax
cmpq 0x8(%rcx), %rax
je 0x7a0dd
movq (%rsp), %rdi
xorl %esi, %esi
callq 0x8eab4
cmpq $0x0, 0x18(%rax)
je 0x7a14c
leaq 0x120(%rsp), %rdi
movq 0xb8(%rsp), %rsi
movl 0xc(%rsp), %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x76ed8
callq 0xb070
movl $0x0, (%rax)
movq 0x138(%rsp), %rbx
cmpq $-0x1, %rbx
je 0x7a2a0
leaq 0x120(%rsp), %rdi
callq 0x77bdc
movq 0x148(%rsp), %rax
subq %rbx, %rax
cmpq 0x190(%rsp), %rax
jb 0x7a14c
leaq 0x120(%rsp), %rsi
movq (%rsp), %rdi
callq 0x8ea42
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 0x7a33f
leaq 0xa8(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x1ded0(%rip), %rsi     # 0x98052
leaq 0x1ded9(%rip), %rdx     # 0x98062
leaq 0x98(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0xdcb, %esi            # imm = 0xDCB
callq 0xe1b2
leaq 0xe0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe10a
leaq 0x19005(%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 0x7a349
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x7a356
callq 0xb6b0
testl %eax, %eax
jne 0x7a33f
leaq 0xa8(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x1de31(%rip), %rsi     # 0x98052
leaq 0x1de3a(%rip), %rdx     # 0x98062
leaq 0x98(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0xdcf, %esi            # imm = 0xDCF
callq 0xe1b2
leaq 0xe0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe10a
leaq 0x18f66(%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 0x7a3cd
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x7a3da
callq 0xb6b0
testl %eax, %eax
jne 0x7a33f
leaq 0xa8(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x1dd92(%rip), %rsi     # 0x98052
leaq 0x1dd9b(%rip), %rdx     # 0x98062
leaq 0x98(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0xddb, %esi            # imm = 0xDDB
callq 0xe1b2
leaq 0xe0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe10a
leaq 0x18ec7(%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 0x7a53f
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x7a54c
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 0x1e876(%rip), %rsi     # 0x98bf8
leaq 0x1e8cb(%rip), %rdx     # 0x98c54
leaq 0x78(%rsp), %rdi
callq 0xdc76
leaq 0x19517(%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 0x7a451
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x7a45e
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 0x1e7f2(%rip), %rsi     # 0x98bf8
leaq 0x1e847(%rip), %rdx     # 0x98c54
leaq 0x78(%rsp), %rdi
callq 0xdc76
leaq 0x19493(%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 0x7a4c8
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x7a4d5
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 0xe10a
leaq 0x1e7c2(%rip), %rsi     # 0x98c55
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 0x7a5bc
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x7a5c9
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 0xe10a
leaq 0x1e75b(%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 0x7a5ea
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x7a5f7
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 0x1e680(%rip), %rsi     # 0x98bf8
leaq 0x1e6d5(%rip), %rdx     # 0x98c54
leaq 0x78(%rsp), %rdi
callq 0xdc76
leaq 0x19321(%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 0x7a618
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x7a625
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 0x1155a
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 0x1155a
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 0xe10a
leaq 0x1e5fb(%rip), %rsi     # 0x98c55
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 0x7a688
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x7a695
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 0x1155a
jmp 0x7a6c7
jmp 0x7a6e3
jmp 0x7a70d
jmp 0x7a72d
jmp 0x7a750
jmp 0x7a6c7
jmp 0x7a6e3
movq %rax, %r14
movq 0x50(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7a6e6
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7a6e6
movq %rax, %r14
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a710
movq 0x110(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7a710
jmp 0x7a773
jmp 0x7a70d
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x7a730
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7a730
jmp 0x7a79b
jmp 0x7a72d
movq %rax, %r14
movq 0x78(%rsp), %rdi
cmpq %r12, %rdi
je 0x7a753
movq 0x88(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7a753
jmp 0x7a7c9
jmp 0x7a750
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x7a776
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7a776
jmp 0x7a7f1
jmp 0x7a773
movq %rax, %r14
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a79e
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7a79e
jmp 0x7a79b
movq %rax, %r14
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a7cc
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7a7cc
jmp 0x7a7f1
jmp 0x7a7f1
jmp 0x7a7c9
jmp 0x7a7f1
movq %rax, %r14
movq 0x98(%rsp), %rdi
cmpq %rbx, %rdi
je 0x7a7f4
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7a7f4
jmp 0x7a7f1
jmp 0x7a7f1
jmp 0x7a7f1
movq %rax, %r14
movq (%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x7a810
movq (%rsp), %rax
movq 0x10(%rax), %rsi
subq %rdi, %rsi
callq 0xb5a0
movq %r14, %rdi
callq 0xba60