// File: /workspace/github_cpp_makefile_star2_O2/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 $0x168, %rsp            # imm = 0x168
movl %r9d, 0x24(%rsp)
movl %r8d, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq %rsi, %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x9(%rdi)
movq %rdi, 0x10(%rsp)
movups %xmm0, (%rdi)
movq 0x30(%rsi), %r15
pushq $-0x1
popq %r12
xorl %ebx, %ebx
movsbl %cl, %eax
movl %eax, 0x1c(%rsp)
movq %r12, %rbp
cmpq %rbx, %r15
je 0x4fd4b
movq 0x28(%r14), %rax
movsbl (%rax,%rbx), %edi
callq 0x5b344
testb %al, %al
je 0x4fd43
leaq 0x130(%rsp), %rdi
movq 0x28(%rsp), %rsi
movl 0x1c(%rsp), %edx
movq %r14, %rcx
movq %rbx, %r8
callq 0x4e3a4
callq 0xc070
andl $0x0, (%rax)
cmpq $-0x1, 0x148(%rsp)
je 0x4fdf8
movq %rax, %r13
leaq 0x130(%rsp), %rdi
callq 0x4e96e
cmpq $-0x1, %rbp
je 0x4fcfb
andl $0x0, (%r13)
movq 0x148(%rsp), %rax
cmpq %rax, %rbp
jae 0x4fed2
movq 0x158(%rsp), %rcx
cmpb $0x0, 0x24(%rsp)
je 0x4fd0b
cmpq %rcx, %r12
je 0x4fd43
jmp 0x4fd0b
movq 0x148(%rsp), %rax
movq 0x158(%rsp), %rcx
movq %rcx, %rdx
subq %rax, %rdx
movq %rcx, %r12
movq %rax, %rbp
cmpq 0x1a0(%rsp), %rdx
jb 0x4fd43
movq 0x10(%rsp), %rdi
leaq 0x130(%rsp), %rsi
callq 0x5b3fc
movq 0x148(%rsp), %rbp
movq 0x158(%rsp), %r12
incq %rbx
jmp 0x4fc68
cmpb $0x0, 0x20(%rsp)
je 0x4fde1
movq 0x10(%rsp), %rcx
movq (%rcx), %rax
cmpq 0x8(%rcx), %rax
je 0x4fd77
movq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x5b424
cmpq $0x0, 0x18(%rax)
je 0x4fde1
leaq 0x130(%rsp), %rdi
movq 0x28(%rsp), %rsi
movl 0x1c(%rsp), %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x4e3a4
callq 0xc070
andl $0x0, (%rax)
movq 0x148(%rsp), %rbx
cmpq $-0x1, %rbx
je 0x4ffac
leaq 0x130(%rsp), %rdi
callq 0x4e96e
movq 0x158(%rsp), %rax
subq %rbx, %rax
cmpq 0x1a0(%rsp), %rax
jb 0x4fde1
leaq 0x130(%rsp), %rsi
movq 0x10(%rsp), %rdi
callq 0x5b3fc
movq 0x10(%rsp), %rax
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xc6d0
testl %eax, %eax
jne 0x50086
leaq 0x13206(%rip), %rsi     # 0x63012
leaq 0x90(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xdbbe
leaq 0x70(%rsp), %rdi
movl $0xdcb, %esi            # imm = 0xDCB
callq 0xe2d5
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0xe26e
leaq 0xe383(%rip), %rdx      # 0x5e1d1
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0xe24f
leaq 0x13d5f(%rip), %rsi     # 0x63bc9
leaq 0x30(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0xdbbe
leaq 0xea4c(%rip), %rdx      # 0x5e8cc
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xe24f
leaq 0xf0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0xe26e
leaq 0x13d76(%rip), %rdx     # 0x63c26
leaq 0x110(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0xe24f
leaq 0x110(%rsp), %rdi
callq 0x101d0
callq 0xc6d0
testl %eax, %eax
jne 0x50086
leaq 0x1312c(%rip), %rsi     # 0x63012
leaq 0x90(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xdbbe
leaq 0x70(%rsp), %rdi
movl $0xdcf, %esi            # imm = 0xDCF
callq 0xe2d5
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0xe26e
leaq 0xe2a9(%rip), %rdx      # 0x5e1d1
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0xe24f
leaq 0x13c85(%rip), %rsi     # 0x63bc9
leaq 0x30(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0xdbbe
leaq 0xe972(%rip), %rdx      # 0x5e8cc
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xe24f
leaq 0xf0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0xe26e
leaq 0x13cac(%rip), %rdx     # 0x63c36
leaq 0x110(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0xe24f
leaq 0x110(%rsp), %rdi
callq 0x101d0
callq 0xc6d0
testl %eax, %eax
jne 0x50086
leaq 0x13052(%rip), %rsi     # 0x63012
leaq 0x90(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xdbbe
leaq 0x70(%rsp), %rdi
movl $0xddb, %esi            # imm = 0xDDB
callq 0xe2d5
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0xe26e
leaq 0xe1cf(%rip), %rdx      # 0x5e1d1
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0xe24f
leaq 0x13bab(%rip), %rsi     # 0x63bc9
leaq 0x30(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0xdbbe
leaq 0xe898(%rip), %rdx      # 0x5e8cc
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xe24f
leaq 0xf0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0xe26e
leaq 0x13bc2(%rip), %rdx     # 0x63c26
leaq 0x110(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0xe24f
leaq 0x110(%rsp), %rdi
callq 0x101d0
pushq $0x1
popq %rdi
callq 0xc6f0
jmp 0x500a0
jmp 0x500b2
jmp 0x500c8
jmp 0x500db
jmp 0x500ec
jmp 0x50104
jmp 0x500a0
jmp 0x500b2
jmp 0x5011a
movq %rax, %r14
leaq 0x110(%rsp), %rdi
callq 0xcbe8
jmp 0x500b5
movq %rax, %r14
leaq 0xf0(%rsp), %rdi
callq 0xcbe8
jmp 0x500cb
jmp 0x500c8
jmp 0x5012b
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0xcbe8
jmp 0x500de
jmp 0x500db
jmp 0x50143
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0xcbe8
jmp 0x500ef
jmp 0x500ec
movq %rax, %r14
leaq 0xd0(%rsp), %rdi
callq 0xcbe8
jmp 0x50107
jmp 0x50104
jmp 0x50143
jmp 0x50143
movq %rax, %r14
leaq 0xb0(%rsp), %rdi
callq 0xcbe8
jmp 0x5011d
jmp 0x50143
jmp 0x5011a
movq %rax, %r14
leaq 0x70(%rsp), %rdi
callq 0xcbe8
jmp 0x5012e
jmp 0x5012b
movq %rax, %r14
leaq 0x90(%rsp), %rdi
callq 0xcbe8
jmp 0x50146
jmp 0x50143
jmp 0x50143
jmp 0x50143
movq %rax, %r14
movq 0x10(%rsp), %rdi
callq 0x5c12e
movq %r14, %rdi
callq 0xcaa0