// File: /workspace/github_c_makefile_star2_O1/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 0xe6dde
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r15
testq %r9, %r9
je 0xe6d13
movq %r9, %rdi
callq 0x101a9a
testb %al, %al
jne 0xe6de3
movq 0x8(%r15), %rcx
movq 0x8(%rcx), %rdx
addq $0x2, %rdx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq (%rcx), %rdx
jae 0xe6dcf
callq 0xe6bf8
movq %rax, %rdi
movq %r15, %rsi
callq 0xe6ae4
movq %rax, %rbp
movq 0x18(%rax), %rdi
movq 0x8(%r15), %rax
movq 0x8(%rax), %rsi
addq 0x10(%rax), %rsi
movl 0x10(%rbp), %edx
callq 0xec478
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 0xec478
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 0xec478
movb %al, (%r14)
movq 0x8(%r15), %rsi
movq 0x8(%rsi), %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
movq %rcx, %rax
mulq %rdx
shrq %rdx
leal (%rdx,%rdx,2), %eax
movl %ecx, %edx
subl %eax, %edx
movl %edx, (%rbx)
incq %rcx
movq %rcx, 0x8(%rsi)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x260b0
callq 0x260e7