// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
movq %r8, 0x18(%rsp)
movq %r9, 0x10(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0x9fa72
cmpq $0x0, 0x28(%rsp)
je 0x9fa72
cmpq $0x0, 0x20(%rsp)
je 0x9fa72
cmpq $0x0, 0x18(%rsp)
jne 0x9faaa
movq 0x59c527(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x476590(%rip), %rsi    # 0x516013
leaq 0x493a7d(%rip), %rdx    # 0x533507
leaq 0x493a8e(%rip), %rcx    # 0x53351f
leaq 0x493912(%rip), %r8     # 0x5333aa
movl $0x2c, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x9faac
jmp 0x9faae
cmpq $0x0, 0x10(%rsp)
je 0x9fafe
movq 0x10(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x9fac6
jmp 0x9fafe
movq 0x59c4d3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x47653c(%rip), %rsi    # 0x516013
leaq 0x4766e1(%rip), %rdx    # 0x5161bf
leaq 0x493a3a(%rip), %rcx    # 0x53351f
leaq 0x4938be(%rip), %r8     # 0x5333aa
movl $0x2d, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x9fb00
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
addq $0x2, %rax
movq 0x38(%rsp), %rcx
movq 0x8(%rcx), %rcx
cmpq (%rcx), %rax
jb 0x9fb2c
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
jmp 0x9fc33
callq 0x9f8b0
movq %rax, %rdi
movq 0x38(%rsp), %rsi
callq 0x9f470
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rsi
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
addq 0x8(%rax), %rsi
movq 0x8(%rsp), %rax
movl 0x10(%rax), %edx
callq 0xaa4b0
movb %al, %cl
movq 0x30(%rsp), %rax
movb %cl, (%rax)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rsi
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
addq 0x8(%rax), %rsi
addq $0x1, %rsi
movq 0x8(%rsp), %rax
movl 0x10(%rax), %edx
callq 0xaa4b0
movb %al, %cl
movq 0x28(%rsp), %rax
movb %cl, (%rax)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rsi
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
addq 0x8(%rax), %rsi
addq $0x2, %rsi
movq 0x8(%rsp), %rax
movl 0x10(%rax), %edx
callq 0xaa4b0
movb %al, %cl
movq 0x20(%rsp), %rax
movb %cl, (%rax)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movl $0x3, %ecx
xorl %edx, %edx
divq %rcx
movl %edx, %ecx
movq 0x18(%rsp), %rax
movl %ecx, (%rax)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8(%rax)
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopl (%rax)