// File: /workspace/github_c_makefile_star2_O2/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 $0x38, %rsp
movq %rcx, %rbx
movl %edx, 0x14(%rsp)
movq %rsi, 0x8(%rsp)
movq %rdi, 0x18(%rsp)
testq %rcx, %rcx
je 0x6a94f
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x6aad7
addq $0x2, 0x8(%rsp)
leaq 0x5(%rsp), %rbp
leaq 0x34(%rsp), %r15
xorl %r12d, %r12d
xorl %esi, %esi
testl %r12d, %r12d
jne 0x6aac5
cmpq $0x2d, %rsi
ja 0x6aac5
xorl %r12d, %r12d
movq %rsi, %rax
movq %rsi, 0x20(%rsp)
testl %r12d, %r12d
jne 0x6aab8
cmpq $0x2d, %rax
ja 0x6aab8
pushq $0x2e
popq %rdx
movq %rax, 0x28(%rsp)
subq %rax, %rdx
xorl %r12d, %r12d
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %ecx
xorl %r8d, %r8d
callq 0x6a53f
movq %rax, %r14
movq 0x8(%rsp), %r13
testl %r12d, %r12d
jne 0x6aa98
xorl %r12d, %r12d
movq %r14, %rdi
leaq 0x7(%rsp), %rsi
leaq 0x6(%rsp), %rdx
movq %rbp, %rcx
movq %r15, %r8
xorl %r9d, %r9d
callq 0x6a1c8
testl %eax, %eax
jne 0x6aa9e
movb 0x7(%rsp), %al
cmpb -0x2(%r13), %al
jne 0x6aa37
movb 0x6(%rsp), %al
cmpb -0x1(%r13), %al
jne 0x6aa5e
movb 0x5(%rsp), %al
xorl %r12d, %r12d
cmpb (%r13), %al
je 0x6aa90
movq %rbx, %rdi
leaq 0x2939d8(%rip), %rsi    # 0x2fe3f2
leaq 0x297935(%rip), %rdx    # 0x302356
leaq 0x2978dd(%rip), %rcx    # 0x302305
leaq 0x29774b(%rip), %r8     # 0x30217a
movl $0xa0, %r9d
jmp 0x6aa83
movq %rbx, %rdi
leaq 0x2939b1(%rip), %rsi    # 0x2fe3f2
leaq 0x2978e2(%rip), %rdx    # 0x30232a
leaq 0x2978b6(%rip), %rcx    # 0x302305
leaq 0x297724(%rip), %r8     # 0x30217a
movl $0x9e, %r9d
jmp 0x6aa83
movq %rbx, %rdi
leaq 0x29398a(%rip), %rsi    # 0x2fe3f2
leaq 0x2978d0(%rip), %rdx    # 0x30233f
leaq 0x29788f(%rip), %rcx    # 0x302305
leaq 0x2976fd(%rip), %r8     # 0x30217a
movl $0x9f, %r9d
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rax
movl %eax, %r12d
incq %r13
jmp 0x6a9bc
pushq $-0x1
popq %rax
movl %eax, %r12d
movq %r14, %rdi
callq 0x6a21c
movq 0x28(%rsp), %rax
incq %rax
movq 0x20(%rsp), %rsi
jmp 0x6a982
incq %rsi
incq 0x8(%rsp)
jmp 0x6a964
movl %r12d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3cd48a(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x27a52b(%rip), %rsi    # 0x2e5013
leaq 0x27a6d0(%rip), %rdx    # 0x2e51bf
leaq 0x29780f(%rip), %rcx    # 0x302305
leaq 0x29767d(%rip), %r8     # 0x30217a
movl $0x92, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop