// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x98, %rsp
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
movq %rdx, 0x80(%rsp)
movl %ecx, 0x7c(%rsp)
movq %r8, 0x70(%rsp)
movl $0x0, 0x48(%rsp)
cmpq $0x0, 0x70(%rsp)
je 0xa0240
movq 0x70(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0xa0208
jmp 0xa0240
movq 0x59bd91(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x475dfa(%rip), %rsi    # 0x516013
leaq 0x475f9f(%rip), %rdx    # 0x5161bf
leaq 0x493316(%rip), %rcx    # 0x53353d
leaq 0x49317c(%rip), %r8     # 0x5333aa
movl $0x92, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0xa0242
movq $0x0, 0x68(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x48(%rsp)
movb %al, 0x3f(%rsp)
jne 0xa0281
movq 0x68(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x88(%rsp), %rdi
callq 0x192b0
movq %rax, %rcx
movq 0x30(%rsp), %rax
cmpq %rcx, %rax
setb %al
movb %al, 0x3f(%rsp)
movb 0x3f(%rsp), %al
testb $0x1, %al
jne 0xa028e
jmp 0xa04d9
movq 0x68(%rsp), %rax
movq %rax, 0x60(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x48(%rsp)
movb %al, 0x2f(%rsp)
jne 0xa02ce
movq 0x60(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x88(%rsp), %rdi
callq 0x192b0
movq %rax, %rcx
movq 0x20(%rsp), %rax
cmpq %rcx, %rax
setb %al
movb %al, 0x2f(%rsp)
movb 0x2f(%rsp), %al
testb $0x1, %al
jne 0xa02db
jmp 0xa04c4
movq 0x90(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x88(%rsp), %rdi
callq 0x192b0
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rax, %rdx
subq 0x60(%rsp), %rdx
movl 0x7c(%rsp), %ecx
xorl %eax, %eax
movl %eax, %r8d
callq 0x9fc40
movq %rax, 0x50(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x48(%rsp)
movb %al, 0xf(%rsp)
jne 0xa036e
movq 0x50(%rsp), %rdi
leaq 0x4f(%rsp), %rsi
leaq 0x4e(%rsp), %rdx
leaq 0x4d(%rsp), %rcx
leaq 0x44(%rsp), %r8
xorl %eax, %eax
movl %eax, %r9d
callq 0x9f740
movl %eax, 0x40(%rsp)
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0xa037b
jmp 0xa04a7
jmp 0xa037d
cmpl $0x0, 0x48(%rsp)
jne 0xa03d6
movsbl 0x4f(%rsp), %eax
movq 0x80(%rsp), %rcx
movq 0x58(%rsp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je 0xa03d4
movq 0x70(%rsp), %rdi
leaq 0x48f250(%rip), %rsi    # 0x52f5fa
leaq 0x4931b1(%rip), %rdx    # 0x533562
leaq 0x493185(%rip), %rcx    # 0x53353d
leaq 0x492feb(%rip), %r8     # 0x5333aa
movl $0x9e, %r9d
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x48(%rsp) # imm = 0xFFFFFFFF
jmp 0xa03d6
jmp 0xa03d8
jmp 0xa03da
cmpl $0x0, 0x48(%rsp)
jne 0xa0434
movsbl 0x4e(%rsp), %eax
movq 0x80(%rsp), %rcx
movq 0x58(%rsp), %rdx
movsbl 0x1(%rcx,%rdx), %ecx
cmpl %ecx, %eax
je 0xa0432
movq 0x70(%rsp), %rdi
leaq 0x48f1f2(%rip), %rsi    # 0x52f5fa
leaq 0x493168(%rip), %rdx    # 0x533577
leaq 0x493127(%rip), %rcx    # 0x53353d
leaq 0x492f8d(%rip), %r8     # 0x5333aa
movl $0x9f, %r9d
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x48(%rsp) # imm = 0xFFFFFFFF
jmp 0xa0434
jmp 0xa0436
jmp 0xa0438
cmpl $0x0, 0x48(%rsp)
jne 0xa0492
movsbl 0x4d(%rsp), %eax
movq 0x80(%rsp), %rcx
movq 0x58(%rsp), %rdx
movsbl 0x2(%rcx,%rdx), %ecx
cmpl %ecx, %eax
je 0xa0490
movq 0x70(%rsp), %rdi
leaq 0x48f194(%rip), %rsi    # 0x52f5fa
leaq 0x493121(%rip), %rdx    # 0x53358e
leaq 0x4930c9(%rip), %rcx    # 0x53353d
leaq 0x492f2f(%rip), %r8     # 0x5333aa
movl $0xa0, %r9d
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x48(%rsp) # imm = 0xFFFFFFFF
jmp 0xa0492
jmp 0xa0494
movq 0x58(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x58(%rsp)
jmp 0xa032e
movq 0x50(%rsp), %rdi
callq 0x9f800
movq 0x60(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x60(%rsp)
jmp 0xa0298
jmp 0xa04c6
movq 0x68(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x68(%rsp)
jmp 0xa024b
movl 0x48(%rsp), %eax
addq $0x98, %rsp
retq
nopw %cs:(%rax,%rax)
nop