// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/diagbandseed.c
// Function: gt_diagbandseed_kmer_iter_new_file
static GtDiagbandseedKmerIterator *gt_diagbandseed_kmer_iter_new_file(FILE *fp,
                                   const GtKmerPosListEncodeInfo *encode_info)
{
  GtDiagbandseedKmerIterator *ki = gt_malloc(sizeof *ki);
  GtLongestCodeRunType longest_code_run;

  ki->original = NULL;
  ki->listend_uword = ki->listptr_uword = NULL;
  gt_assert(fp != NULL);
  gt_xfread(&longest_code_run,sizeof longest_code_run,1,fp);
  if (encode_info != NULL)
  {
    ki->kmerstream_uword.fp = fp;
    ki->kmerstream_uword.bufferedfilespace
      = gt_malloc(GT_FILEBUFFERSIZE *
                  sizeof *ki->kmerstream_uword.bufferedfilespace);
    ki->section.spaceGtUword = NULL;
    ki->section.allocated = longest_code_run;
  } else
  {
    ki->kmerstream_struct.fp = fp;
    ki->kmerstream_struct.bufferedfilespace
      = gt_malloc(GT_FILEBUFFERSIZE *
                  sizeof *ki->kmerstream_struct.bufferedfilespace);
    ki->section.allocated = longest_code_run + 1; /* one larger for reading
                                                     first of next run */
  }
  ki->section.spaceGtDiagbandseedKmerPos
    = gt_malloc(sizeof *ki->section.spaceGtDiagbandseedKmerPos *
                ki->section.allocated);
  ki->listptr_struct = ki->section.spaceGtDiagbandseedKmerPos;
  ki->listend_struct = ki->section.spaceGtDiagbandseedKmerPos +
                       ki->section.allocated;
  ki->section.encode_info = encode_info;
  gt_diagbandseed_kmer_iter_reset(ki);
  return ki;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movl $0x98, %edi
leaq 0x35cb5a(%rip), %rsi    # 0x571f94
movl $0x41a, %edx            # imm = 0x41A
callq 0xe80f0
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq $0x0, 0x38(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x58(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x50(%rax)
cmpq $0x0, 0x20(%rsp)
jne 0x2154b0
movq 0x426b21(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x300b8a(%rip), %rsi    # 0x516013
leaq 0x335df0(%rip), %rdx    # 0x54b280
leaq 0x35d4a7(%rip), %rcx    # 0x57293e
leaq 0x35caf6(%rip), %r8     # 0x571f94
movl $0x41f, %r9d            # imm = 0x41F
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2154b2
movq 0x20(%rsp), %rcx
leaq 0x8(%rsp), %rdi
movl $0x8, %esi
movl $0x1, %edx
callq 0x126c30
cmpq $0x0, 0x18(%rsp)
je 0x215526
movq 0x20(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x88(%rax)
movl $0x8000, %edi           # imm = 0x8000
leaq 0x35caa4(%rip), %rsi    # 0x571f94
movl $0x426, %edx            # imm = 0x426
callq 0xe80f0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x80(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x8(%rax)
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x215568
movq 0x20(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x70(%rax)
movl $0x10000, %edi          # imm = 0x10000
leaq 0x35ca54(%rip), %rsi    # 0x571f94
movl $0x42e, %edx            # imm = 0x42E
callq 0xe80f0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x68(%rax)
movq 0x8(%rsp), %rcx
addq $0x1, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rdi
shlq $0x4, %rdi
leaq 0x35ca18(%rip), %rsi    # 0x571f94
movl $0x434, %edx            # imm = 0x434
callq 0xe80f0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, (%rax)
movq 0x10(%rsp), %rax
movq (%rax), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x48(%rax)
movq 0x10(%rsp), %rax
movq (%rax), %rcx
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
shlq $0x4, %rax
addq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x40(%rax)
movq 0x18(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x10(%rsp), %rdi
callq 0x216440
movq 0x10(%rsp), %rax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)