// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-mappedstr.c
// Function: gt_kmercodeiterator_filetab_new
GtKmercodeiterator *gt_kmercodeiterator_filetab_new(
                                                const GtStrArray *filenametab,
                                                unsigned int numofchars,
                                                unsigned int kmersize,
                                                const GtUchar *symbolmap,
                                                bool plainformat,
                                                GtError *err)
{
  GtKmercodeiterator *kmercodeiterator;
  GtUchar charcode;
  bool haserr = false;
  int retval;

  gt_error_check(err);
  kmercodeiterator = gt_malloc(sizeof (*kmercodeiterator));
  kmercodeiterator->esr = NULL;
  kmercodeiterator->hasprocessedfirst = false;
  kmercodeiterator->inputexhausted = false;
  kmercodeiterator->spwp = gt_kmerstream_new(numofchars,kmersize);
  kmercodeiterator->totallength = 0;
  if (plainformat)
  {
    kmercodeiterator->fb = gt_sequence_buffer_plain_new(filenametab);
  } else
  {
    kmercodeiterator->fb = gt_sequence_buffer_new_guess_type(filenametab, err);
  }
  if (kmercodeiterator->fb == NULL)
  {
    haserr = true;
  }
  if (!haserr)
  {
    gt_sequence_buffer_set_symbolmap(kmercodeiterator->fb, symbolmap);
    for (kmercodeiterator->currentposition = 0;
         kmercodeiterator->currentposition < (GtUword) kmersize;
         kmercodeiterator->currentposition++)
    {
      retval = gt_sequence_buffer_next(kmercodeiterator->fb,&charcode,err);
      if (retval < 0)
      {
        haserr = true;
        break;
      }
      if (retval == 0)
      {
        kmercodeiterator->inputexhausted = true;
        break;
      }
      kmercodeiterator->spwp->windowwidth++;
      gt_kmerstream_updatespecialpositions(kmercodeiterator->spwp,charcode,
                                           false,0);
      kmercodeiterator->spwp->cyclicwindow[kmercodeiterator->
                                           spwp->windowwidth-1] = charcode;
    }
  }
  if (haserr)
  {
    gt_kmercodeiterator_delete(kmercodeiterator);
    return NULL;
  }
  return kmercodeiterator;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbx
movl %r8d, %r13d
movq %rcx, 0x10(%rsp)
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r12
testq %r9, %r9
je 0x19f72b
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x19f806
leaq 0x1b8ec1(%rip), %rsi    # 0x3585f3
pushq $0x58
popq %rdi
movl $0x261, %edx            # imm = 0x261
callq 0x93160
movq %rax, %r14
andq $0x0, 0x28(%rax)
andw $0x0, 0x18(%rax)
movl %r15d, %edi
movl %ebp, %esi
callq 0x19f3b9
movq %rax, 0x38(%r14)
andq $0x0, (%r14)
movq %r12, %rdi
testb %r13b, %r13b
je 0x19f76d
callq 0xaaed5
jmp 0x19f775
movq %rbx, %rsi
callq 0xa77c3
movq %rax, 0x50(%r14)
testq %rax, %rax
je 0x19f7e2
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0xa7a10
movl %ebp, %r12d
xorl %eax, %eax
leaq 0xf(%rsp), %r15
movq %rax, 0x10(%r14)
cmpq %r12, %rax
jae 0x19f7f4
movq 0x50(%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xa7be1
testl %eax, %eax
js 0x19f7e2
je 0x19f7ef
movq 0x38(%r14), %rdi
incl 0x48(%rdi)
movzbl 0xf(%rsp), %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x19f0b3
movb 0xf(%rsp), %al
movq 0x38(%r14), %rcx
movl 0x48(%rcx), %edx
decl %edx
movb %al, 0x20(%rcx,%rdx)
movq 0x10(%r14), %rax
incq %rax
jmp 0x19f795
movq %r14, %rdi
callq 0x19f83e
xorl %r14d, %r14d
jmp 0x19f7f4
movb $0x1, 0x19(%r14)
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x29875b(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1457fc(%rip), %rsi    # 0x2e5013
leaq 0x1459a1(%rip), %rdx    # 0x2e51bf
leaq 0x1b8f08(%rip), %rcx    # 0x35872d
leaq 0x1b8dc7(%rip), %r8     # 0x3585f3
movl $0x260, %r9d            # imm = 0x260
xorl %eax, %eax
callq 0x17a50
callq 0x17390