// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/diagbandseed.c
// Function: gt_diagbandseed_kmer_iter_reset
static void gt_diagbandseed_kmer_iter_reset(GtDiagbandseedKmerIterator *ki)
{
  gt_assert(ki != NULL);
  ki->at_list_end = false;
  if (ki->original != NULL) /* list based */
  {
    if (ki->section.encode_info != NULL)
    {
      ki->listptr_uword = ki->original->spaceGtUword;
      ki->section.spaceGtUword = ki->original->spaceGtUword;
      ki->listptr_struct = ki->section.spaceGtDiagbandseedKmerPos;
    } else
    {
      ki->listptr_struct = ki->original->spaceGtDiagbandseedKmerPos;
      ki->section.spaceGtDiagbandseedKmerPos
        = ki->original->spaceGtDiagbandseedKmerPos;
    }
    if (gt_kmerpos_list_num_entries(ki->original) == 0)
    {
      ki->at_list_end = true;
    }
  } else /* file based */
  {
    if (ki->section.encode_info != NULL)
    {
      ki->kmerstream_uword.nextread = ki->kmerstream_uword.nextfree = 0;
      fseek(ki->kmerstream_uword.fp,sizeof (GtLongestCodeRunType),SEEK_SET);
      if (gt_readnextfromstream_GtUword(&ki->buffer_uword,
                                        &ki->kmerstream_uword) != 1)
      {
        ki->at_list_end = true;
      }
    } else
    {
      ki->kmerstream_struct.nextread = ki->kmerstream_struct.nextfree = 0;
      fseek(ki->kmerstream_struct.fp,sizeof (GtLongestCodeRunType),SEEK_SET);
      if (gt_readnextfromstream_GtDiagbandseedKmerPos(ki->listptr_struct,
                                                      &ki->kmerstream_struct)
                                                      != 1)
      {
        ki->at_list_end = true;
      }
    }
  }
}

// Assembly:
pushq %rax
movq %rdi, (%rsp)
cmpq $0x0, (%rsp)
jne 0x216484
movq 0x425b4d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2ffbb6(%rip), %rsi    # 0x516013
leaq 0x35ccff(%rip), %rdx    # 0x573163
leaq 0x35cd03(%rip), %rcx    # 0x57316e
leaq 0x35bb22(%rip), %r8     # 0x571f94
movl $0x3cf, %r9d            # imm = 0x3CF
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x216486
movq (%rsp), %rax
movb $0x0, 0x30(%rax)
movq (%rsp), %rax
cmpq $0x0, 0x38(%rax)
je 0x216526
movq (%rsp), %rax
cmpq $0x0, 0x28(%rax)
je 0x2164e1
movq (%rsp), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rcx
movq (%rsp), %rax
movq %rcx, 0x58(%rax)
movq (%rsp), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rcx
movq (%rsp), %rax
movq %rcx, 0x8(%rax)
movq (%rsp), %rax
movq (%rax), %rcx
movq (%rsp), %rax
movq %rcx, 0x48(%rax)
jmp 0x216506
movq (%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax), %rcx
movq (%rsp), %rax
movq %rcx, 0x48(%rax)
movq (%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax), %rcx
movq (%rsp), %rax
movq %rcx, (%rax)
movq (%rsp), %rax
movq 0x38(%rax), %rdi
callq 0x2124a0
cmpq $0x0, %rax
jne 0x216521
movq (%rsp), %rax
movb $0x1, 0x30(%rax)
jmp 0x2165d5
movq (%rsp), %rax
cmpq $0x0, 0x28(%rax)
je 0x216585
movq (%rsp), %rax
movl $0x0, 0x78(%rax)
movq (%rsp), %rax
movl $0x0, 0x7c(%rax)
movq (%rsp), %rax
movq 0x88(%rax), %rdi
movl $0x8, %esi
xorl %edx, %edx
callq 0x197e0
movq (%rsp), %rdi
addq $0x90, %rdi
movq (%rsp), %rsi
addq $0x78, %rsi
callq 0x21a6a0
cmpl $0x1, %eax
je 0x216583
movq (%rsp), %rax
movb $0x1, 0x30(%rax)
jmp 0x2165d3
movq (%rsp), %rax
movl $0x0, 0x60(%rax)
movq (%rsp), %rax
movl $0x0, 0x64(%rax)
movq (%rsp), %rax
movq 0x70(%rax), %rdi
movl $0x8, %esi
xorl %edx, %edx
callq 0x197e0
movq (%rsp), %rax
movq 0x48(%rax), %rdi
movq (%rsp), %rsi
addq $0x60, %rsi
callq 0x21a780
cmpl $0x1, %eax
je 0x2165d1
movq (%rsp), %rax
movb $0x1, 0x30(%rax)
jmp 0x2165d3
jmp 0x2165d5
popq %rax
retq
nopw (%rax,%rax)