// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movb %r8b, %al
movq %rdi, 0x38(%rsp)
movl %esi, 0x34(%rsp)
movl %edx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
andb $0x1, %al
movb %al, 0x27(%rsp)
movq %r9, 0x18(%rsp)
movb $0x0, 0xe(%rsp)
cmpq $0x0, 0x18(%rsp)
je 0x2cb139
movq 0x18(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x2cb101
jmp 0x2cb139
movq 0x370e98(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x24af01(%rip), %rsi    # 0x516013
leaq 0x24b0a6(%rip), %rdx    # 0x5161bf
leaq 0x2c0145(%rip), %rcx    # 0x58b265
leaq 0x2c0004(%rip), %r8     # 0x58b12b
movl $0x260, %r9d            # imm = 0x260
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2cb13b
movl $0x58, %edi
leaq 0x2bffe4(%rip), %rsi    # 0x58b12b
movl $0x261, %edx            # imm = 0x261
callq 0xe80f0
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq $0x0, 0x28(%rax)
movq 0x10(%rsp), %rax
movb $0x0, 0x18(%rax)
movq 0x10(%rsp), %rax
movb $0x0, 0x19(%rax)
movl 0x34(%rsp), %edi
movl 0x30(%rsp), %esi
callq 0x2cab30
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x38(%rax)
movq 0x10(%rsp), %rax
movq $0x0, (%rax)
testb $0x1, 0x27(%rsp)
je 0x2cb1b9
movq 0x38(%rsp), %rdi
callq 0x11a8e0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x50(%rax)
jmp 0x2cb1d4
movq 0x38(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x113d20
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x50(%rax)
movq 0x10(%rsp), %rax
cmpq $0x0, 0x50(%rax)
jne 0x2cb1e5
movb $0x1, 0xe(%rsp)
testb $0x1, 0xe(%rsp)
jne 0x2cb2c5
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0x1140e0
movq 0x10(%rsp), %rax
movq $0x0, 0x10(%rax)
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
movl 0x30(%rsp), %ecx
cmpq %rcx, %rax
jae 0x2cb2c3
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rdi
movq 0x18(%rsp), %rdx
leaq 0xf(%rsp), %rsi
callq 0x1143d0
movl %eax, 0x8(%rsp)
cmpl $0x0, 0x8(%rsp)
jge 0x2cb250
movb $0x1, 0xe(%rsp)
jmp 0x2cb2c3
cmpl $0x0, 0x8(%rsp)
jne 0x2cb262
movq 0x10(%rsp), %rax
movb $0x1, 0x19(%rax)
jmp 0x2cb2c3
movq 0x10(%rsp), %rax
movq 0x38(%rax), %rax
movl 0x48(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x48(%rax)
movq 0x10(%rsp), %rax
movq 0x38(%rax), %rdi
xorl %ecx, %ecx
movzbl 0xf(%rsp), %esi
movl %ecx, %edx
callq 0x2ca640
movb 0xf(%rsp), %dl
movq 0x10(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movq 0x38(%rcx), %rcx
movl 0x48(%rcx), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
movb %dl, 0x20(%rax,%rcx)
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x10(%rax)
jmp 0x2cb210
jmp 0x2cb2c5
testb $0x1, 0xe(%rsp)
je 0x2cb2e1
movq 0x10(%rsp), %rdi
callq 0x2cb300
movq $0x0, 0x40(%rsp)
jmp 0x2cb2eb
movq 0x10(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)