// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/diagbandseed.c
// Function: gt_diagbandseed_write_kmers
static int gt_diagbandseed_write_kmers(const GtKmerPosList *kmerpos_list,
                                       const char *path,
                                       unsigned int spacedseedweight,
                                       unsigned int seedlength,
                                       bool verbose,
                                       GtError *err)
{
  FILE *stream;
  GtUword longest_code_run;

  if (verbose) {
    gt_assert(kmerpos_list != NULL);
    printf("# write " GT_WU " %u-mers ",kmerpos_list->nextfree, seedlength);
    if (spacedseedweight < seedlength)
    {
      printf("with weight %u ",spacedseedweight);
    }
    printf("to file %s\n",path);
  }

  stream = gt_fa_fopen(path, "wb", err);
  if (stream == NULL)
  {
    return -1;
  }
  gt_xfwrite(&kmerpos_list->longest_code_run,sizeof longest_code_run,1,stream);
  if (kmerpos_list->encode_info != NULL)
  {
    gt_xfwrite(kmerpos_list->spaceGtUword,
               sizeof *kmerpos_list->spaceGtUword,
               kmerpos_list->nextfree, stream);
  } else
  {
    gt_xfwrite(kmerpos_list->spaceGtDiagbandseedKmerPos,
               sizeof *kmerpos_list->spaceGtDiagbandseedKmerPos,
               kmerpos_list->nextfree, stream);
  }
  gt_fa_fclose(stream);
  return 0;
}

// Assembly:
subq $0x48, %rsp
movb %r8b, %al
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movl %edx, 0x2c(%rsp)
movl %ecx, 0x28(%rsp)
andb $0x1, %al
movb %al, 0x27(%rsp)
movq %r9, 0x18(%rsp)
testb $0x1, 0x27(%rsp)
je 0x20effd
jmp 0x20ef71
cmpq $0x0, 0x38(%rsp)
jne 0x20efb1
movq 0x42d020(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x307089(%rip), %rsi    # 0x516013
leaq 0x363572(%rip), %rdx    # 0x572503
leaq 0x36373d(%rip), %rcx    # 0x5726d5
leaq 0x362ff5(%rip), %r8     # 0x571f94
movl $0x1200, %r9d           # imm = 0x1200
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x20efb3
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rsi
movl 0x28(%rsp), %edx
leaq 0x36372a(%rip), %rdi    # 0x5726f1
movb $0x0, %al
callq 0x19070
movl 0x2c(%rsp), %eax
cmpl 0x28(%rsp), %eax
jae 0x20efea
movl 0x2c(%rsp), %esi
leaq 0x363723(%rip), %rdi    # 0x572706
movb $0x0, %al
callq 0x19070
movq 0x30(%rsp), %rsi
leaq 0x363720(%rip), %rdi    # 0x572716
movb $0x0, %al
callq 0x19070
movq 0x30(%rsp), %rdi
movq 0x18(%rsp), %r8
leaq 0x317b8f(%rip), %rsi    # 0x526b9d
leaq 0x362f7f(%rip), %rdx    # 0x571f94
movl $0x1209, %ecx           # imm = 0x1209
callq 0xd8df0
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x20f036
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
jmp 0x20f0b4
movq 0x38(%rsp), %rdi
addq $0x20, %rdi
movq 0x10(%rsp), %rcx
movl $0x8, %esi
movl $0x1, %edx
callq 0x126d30
movq 0x38(%rsp), %rax
cmpq $0x0, 0x28(%rax)
je 0x20f082
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rdx
movq 0x10(%rsp), %rcx
movl $0x8, %esi
callq 0x126d30
jmp 0x20f0a2
movq 0x38(%rsp), %rax
movq (%rax), %rdi
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rdx
movq 0x10(%rsp), %rcx
movl $0x10, %esi
callq 0x126d30
movq 0x10(%rsp), %rdi
callq 0xd9390
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopl (%rax)