// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/core/codon_iterator_encseq.c
// Function: gt_codon_iterator_encseq_next
static GtCodonIteratorStatus gt_codon_iterator_encseq_next(GtCodonIterator *ci,
                                                           char *n1,
                                                           char *n2,
                                                           char *n3,
                                                           unsigned int *frame,
                                                           GT_UNUSED GtError
                                                                           *err)
{
  GtCodonIteratorEncseq *cie;
  gt_assert(n1 && n2 && n3 && frame);
  gt_error_check(err);
  if (ci->pvt->curpos+2 >= ci->pvt->length)
    return GT_CODON_ITERATOR_END;
  cie = gt_codon_iterator_encseq_cast(ci);
  *n1 = gt_encseq_get_decoded_char(cie->encseq,
                                   ci->pvt->startpos+ci->pvt->curpos,
                                   cie->readmode);
  *n2 = gt_encseq_get_decoded_char(cie->encseq,
                                   ci->pvt->startpos+ci->pvt->curpos+1,
                                   cie->readmode);
  *n3 = gt_encseq_get_decoded_char(cie->encseq,
                                   ci->pvt->startpos+ci->pvt->curpos+2,
                                   cie->readmode);
  *frame = ci->pvt->curpos % GT_CODON_LENGTH;
  ci->pvt->curpos++;
  return GT_CODON_ITERATOR_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %xmm0
movq %rsi, %xmm1
punpcklqdq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0]
movq %r8, %xmm0
movq %rcx, %xmm2
punpcklqdq %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0]
pxor %xmm0, %xmm0
pcmpeqd %xmm0, %xmm2
pcmpeqd %xmm0, %xmm1
movdqa %xmm1, %xmm0
shufps $0xdd, %xmm2, %xmm0     # xmm0 = xmm0[1,3],xmm2[1,3]
shufps $0x88, %xmm2, %xmm1     # xmm1 = xmm1[0,2],xmm2[0,2]
andps %xmm0, %xmm1
movmskps %xmm1, %eax
testl %eax, %eax
jne 0x6a4df
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r15
testq %r9, %r9
je 0x6a420
movq %r9, %rdi
callq 0x89eb7
testb %al, %al
jne 0x6a509
movq 0x8(%r15), %rax
movq 0x8(%rax), %rcx
addq $0x2, %rcx
cmpq (%rax), %rcx
jae 0x6a4cb
callq 0x6a2a8
movq %rax, %rdi
movq %r15, %rsi
callq 0x6a040
movq %rax, %rbp
movq 0x18(%rax), %rdi
movq 0x8(%r15), %rax
movq 0x8(%rax), %rsi
addq 0x10(%rax), %rsi
movl 0x10(%rbp), %edx
callq 0x709bc
movb %al, (%r13)
movq 0x18(%rbp), %rdi
movq 0x8(%r15), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rax
leaq (%rax,%rcx), %rsi
incq %rsi
movl 0x10(%rbp), %edx
callq 0x709bc
movb %al, (%r12)
movq 0x18(%rbp), %rdi
movq 0x8(%r15), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rax
leaq (%rax,%rcx), %rsi
addq $0x2, %rsi
movl 0x10(%rbp), %edx
callq 0x709bc
movb %al, (%r14)
movq 0x8(%r15), %rdi
movq 0x8(%rdi), %rsi
xorl %ecx, %ecx
pushq $0x3
popq %r8
movq %rsi, %rax
xorl %edx, %edx
divq %r8
movl %edx, (%rbx)
incq %rsi
movq %rsi, 0x8(%rdi)
jmp 0x6a4ce
pushq $-0x1
popq %rcx
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3cda82(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x27ab23(%rip), %rsi    # 0x2e5013
leaq 0x297dd8(%rip), %rdx    # 0x3022cf
leaq 0x297de9(%rip), %rcx    # 0x3022e7
leaq 0x297c75(%rip), %r8     # 0x30217a
pushq $0x2c
jmp 0x6a531
movq 0x3cda58(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x27aaf9(%rip), %rsi    # 0x2e5013
leaq 0x27ac9e(%rip), %rdx    # 0x2e51bf
leaq 0x297dbf(%rip), %rcx    # 0x3022e7
leaq 0x297c4b(%rip), %r8     # 0x30217a
pushq $0x2d
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390