// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/codon_iterator_encseq.c
// Function: gt_codon_iterator_encseq_single_test
static int gt_codon_iterator_encseq_single_test(GtEncseq *encseq,
                                                const char *testseq,
                                                const char *testseq_cmp,
                                                GtReadmode readmode,
                                                GT_UNUSED GtError *err)
{
  GtUword j, k, i;
  GtCodonIterator *ci;
  char n1, n2, n3;
  int had_err = 0;
  unsigned int frame;
  gt_error_check(err);

  for (j = 0; !had_err && j < strlen(testseq); j++) {
    for (k = j; !had_err && k < strlen(testseq); k++) {
      GtCodonIteratorStatus s;
      ci = gt_codon_iterator_encseq_new_with_readmode(encseq, j,
                                                      strlen(testseq) - k,
                                                      readmode,
                                                      NULL);
      i = j;
      while (!had_err && !(s = gt_codon_iterator_next(ci, &n1, &n2, &n3,
                                                      &frame, NULL))) {
        gt_ensure(n1 == testseq_cmp[i]);
        gt_ensure(n2 == testseq_cmp[i+1]);
        gt_ensure(n3 == testseq_cmp[i+2]);
        i++;
      }
      gt_codon_iterator_delete(ci);
    }
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %rbx
movl %edx, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdi, 0x20(%rsp)
testq %rcx, %rcx
je 0xe2ccd
movq %rbx, %rdi
callq 0xfcc32
testb %al, %al
jne 0xe2e44
movq %rbx, 0x8(%rsp)
addq $0x2, 0x10(%rsp)
xorl %esi, %esi
movq %rsi, %r12
movl $0x2e, %edx
subq %r12, %rdx
xorl %r15d, %r15d
movq 0x20(%rsp), %rdi
movq %rsi, %rbp
movl 0x18(%rsp), %ecx
xorl %r8d, %r8d
callq 0xe2914
movq %rax, %r14
movq %rax, %rdi
leaq 0x7(%rsp), %rsi
leaq 0x6(%rsp), %rdx
leaq 0x5(%rsp), %rcx
leaq 0x1c(%rsp), %r8
xorl %r9d, %r9d
callq 0xe26a3
movq 0x10(%rsp), %rbx
testl %eax, %eax
setne %r13b
jne 0xe2df6
movb 0x7(%rsp), %al
cmpb -0x2(%rbx), %al
jne 0xe2d70
movb 0x6(%rsp), %al
cmpb -0x1(%rbx), %al
jne 0xe2d99
movb 0x5(%rsp), %al
cmpb (%rbx), %al
jne 0xe2dc2
xorl %r15d, %r15d
movq %r14, %rdi
leaq 0x7(%rsp), %rsi
leaq 0x6(%rsp), %rdx
leaq 0x5(%rsp), %rcx
leaq 0x1c(%rsp), %r8
xorl %r9d, %r9d
callq 0xe26a3
incq %rbx
jmp 0xe2d23
movq 0x8(%rsp), %rdi
leaq 0x27b6c2(%rip), %rsi    # 0x35e43e
leaq 0x27f650(%rip), %rdx    # 0x3623d3
leaq 0x27f624(%rip), %rcx    # 0x3623ae
leaq 0x27f492(%rip), %r8     # 0x362223
movl $0x9e, %r9d
jmp 0xe2de9
movq 0x8(%rsp), %rdi
leaq 0x27b699(%rip), %rsi    # 0x35e43e
leaq 0x27f63c(%rip), %rdx    # 0x3623e8
leaq 0x27f5fb(%rip), %rcx    # 0x3623ae
leaq 0x27f469(%rip), %r8     # 0x362223
movl $0x9f, %r9d
jmp 0xe2de9
movq 0x8(%rsp), %rdi
leaq 0x27b670(%rip), %rsi    # 0x35e43e
leaq 0x27f62a(%rip), %rdx    # 0x3623ff
leaq 0x27f5d2(%rip), %rcx    # 0x3623ae
leaq 0x27f440(%rip), %r8     # 0x362223
movl $0xa0, %r9d
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq %r14, %rdi
callq 0xe26c6
testb $0x1, %r13b
movq %rbp, %rsi
je 0xe2e19
leaq 0x1(%r12), %rax
cmpq $0x2d, %r12
movq %rax, %r12
jb 0xe2cdd
cmpq $0x2d, %rsi
leaq 0x1(%rsi), %rsi
setb %cl
incq 0x10(%rsp)
testb %cl, %r13b
jne 0xe2cda
movl %r15d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x25cae
nopl (%rax)