// File: /workspace/github_c_makefile_star2_O1/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, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq %rdi, 0x18(%rsp)
testq %rcx, %rcx
je 0xe718b
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0xe7313
addq $0x2, 0x8(%rsp)
xorl %esi, %esi
movq %rsi, %rbp
movq %rsi, 0x20(%rsp)
movl $0x2e, %edx
subq %rbp, %rdx
xorl %r13d, %r13d
movq 0x18(%rsp), %rdi
movl 0x10(%rsp), %ecx
xorl %r8d, %r8d
callq 0xe6de8
movq %rax, %r12
movq %rax, %rdi
leaq 0x7(%rsp), %rsi
leaq 0x6(%rsp), %rdx
leaq 0x5(%rsp), %rcx
leaq 0x14(%rsp), %r8
xorl %r9d, %r9d
callq 0xe6b77
movq 0x8(%rsp), %r15
testl %eax, %eax
jne 0xe72c3
movb 0x7(%rsp), %al
cmpb -0x2(%r15), %al
jne 0xe720e
movb 0x6(%rsp), %al
cmpb -0x1(%r15), %al
jne 0xe7238
movb 0x5(%rsp), %al
cmpb (%r15), %al
jne 0xe7262
xorl %r13d, %r13d
movb $0x1, %r14b
jmp 0xe7297
xorl %r14d, %r14d
movq %rbx, %rdi
leaq 0x28031f(%rip), %rsi    # 0x36753a
leaq 0x2842c1(%rip), %rdx    # 0x36b4e3
leaq 0x284295(%rip), %rcx    # 0x36b4be
leaq 0x284103(%rip), %r8     # 0x36b333
movl $0x9e, %r9d
jmp 0xe728a
xorl %r14d, %r14d
movq %rbx, %rdi
leaq 0x2802f5(%rip), %rsi    # 0x36753a
leaq 0x2842ac(%rip), %rdx    # 0x36b4f8
leaq 0x28426b(%rip), %rcx    # 0x36b4be
leaq 0x2840d9(%rip), %r8     # 0x36b333
movl $0x9f, %r9d
jmp 0xe728a
xorl %r14d, %r14d
movq %rbx, %rdi
leaq 0x2802cb(%rip), %rsi    # 0x36753a
leaq 0x284299(%rip), %rdx    # 0x36b50f
leaq 0x284241(%rip), %rcx    # 0x36b4be
leaq 0x2840af(%rip), %r8     # 0x36b333
movl $0xa0, %r9d
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
testb %r14b, %r14b
je 0xe72c3
movq %r12, %rdi
leaq 0x7(%rsp), %rsi
leaq 0x6(%rsp), %rdx
leaq 0x5(%rsp), %rcx
leaq 0x14(%rsp), %r8
xorl %r9d, %r9d
callq 0xe6b77
incq %r15
jmp 0xe71de
movq %r12, %rdi
callq 0xe6b9a
testl %r13d, %r13d
movq 0x20(%rsp), %rsi
jne 0xe72e6
leaq 0x1(%rbp), %rax
cmpq $0x2d, %rbp
movq %rax, %rbp
jb 0xe719b
testl %r13d, %r13d
jne 0xe7301
leaq 0x1(%rsi), %rax
incq 0x8(%rsp)
cmpq $0x2d, %rsi
movq %rax, %rsi
jb 0xe7193
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x261c5