// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/kmer_database.c
// Function: gt_kmer_database_print
void gt_kmer_database_print(GtKmerDatabase *kdb, GtLogger *logger, bool verbose)
{
  GtUword i,
          start,
          end;

  gt_assert(kdb != NULL && logger != NULL);

  if (!gt_logger_enabled(logger))
    return;

  gt_logger_log(logger, "DB.offset/DB.positions:");
  for (i = 0; i < kdb->nu_kmer_codes; i++) {
    start = kdb->offset[i];
    end = kdb->offset[i + 1];
    if (start < end)
      gt_logger_log(logger, GT_WU, i);
    if (verbose) {
      while (start < end) {
        gt_logger_log(logger, "\t" GT_WU, kdb->positions[start]);
        start++;
      }
    }
    else if (start < end) {
      GtUword diff = end - start;
      gt_logger_log(logger, "\t" GT_WU, diff);
    }
  }
  gt_logger_log(logger, "number of kmers: " GT_WU, kdb->offset[i]);
  if (verbose) {
    gt_logger_log(logger, "byte size of GtKmerDatabase: " GT_WU,
                  gt_kmer_database_get_used_size(kdb));
    gt_logger_log(logger, "allocated byte size for KmerDatabase: " GT_WU,
                  gt_kmer_database_get_byte_size(kdb));
    gt_logger_log(logger, "minimal occurrence: " GT_WU,
                  gt_kmer_database_get_min_nu_of_occ(kdb));
    gt_logger_log(logger, "mean occurrence: " GT_WU,
                  gt_kmer_database_get_mean_nu_of_occ(kdb));
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, 0xc(%rsp)
testq %rdi, %rdi
je 0xf5aa1
movq %rsi, %rbx
testq %rsi, %rsi
je 0xf5aa1
movq %rdi, %r14
movq %rbx, %rdi
callq 0x92c18
testb %al, %al
je 0xf5a92
leaq 0x2301ea(%rip), %rsi    # 0x325b2b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x92e71
leaq 0x266abb(%rip), %r12    # 0x35c40d
xorl %edx, %edx
movq (%r14), %rax
movq (%rax,%rdx,8), %r13
cmpq 0x28(%r14), %rdx
jae 0xf59dc
leaq 0x1(%rdx), %rcx
movq 0x8(%rax,%rdx,8), %r15
movq %r15, %rbp
subq %r13, %rbp
movq %rcx, 0x10(%rsp)
jbe 0xf59a6
movq %rbx, %rdi
leaq 0x266a8d(%rip), %rsi    # 0x35c40e
xorl %eax, %eax
callq 0x92e71
cmpb $0x0, 0xc(%rsp)
jne 0xf59b0
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x92e71
movq 0x10(%rsp), %rdx
jmp 0xf5954
movq %rcx, %rdx
cmpb $0x0, 0xc(%rsp)
je 0xf5954
movq 0x10(%rsp), %rbp
cmpq %r15, %r13
jae 0xf59d4
movq 0x10(%r14), %rax
movq (%rax,%r13,8), %rdx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x92e71
incq %r13
jmp 0xf59b5
movq %rbp, %rdx
jmp 0xf5954
leaq 0x230160(%rip), %rsi    # 0x325b43
movq %rbx, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x92e71
cmpb $0x0, 0xc(%rsp)
je 0xf5a92
movq (%r14), %rax
movq 0x28(%r14), %rcx
movq (%rax,%rcx,8), %rax
shlq $0x4, %rcx
leaq (%rcx,%rax,8), %rdx
addq $0xf, %rdx
leaq 0x23013f(%rip), %rsi    # 0x325b58
movq %rbx, %rdi
xorl %eax, %eax
callq 0x92e71
movq 0x28(%r14), %rax
movq 0x38(%r14), %rcx
shlq $0x4, %rcx
shlq $0x4, %rax
leaq (%rax,%rcx), %rdx
addq $0xf, %rdx
leaq 0x230137(%rip), %rsi    # 0x325b79
movq %rbx, %rdi
xorl %eax, %eax
callq 0x92e71
movq %r14, %rdi
callq 0xf552e
leaq 0x230148(%rip), %rsi    # 0x325ba3
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x92e71
movq %r14, %rdi
callq 0xf549d
leaq 0x230144(%rip), %rsi    # 0x325bbb
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x92e71
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3424c0(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1ef561(%rip), %rsi    # 0x2e5013
leaq 0x23003d(%rip), %rdx    # 0x325af6
leaq 0x230054(%rip), %rcx    # 0x325b14
leaq 0x22f92c(%rip), %r8     # 0x3253f3
movl $0x2d3, %r9d            # imm = 0x2D3
xorl %eax, %eax
callq 0x17a50
callq 0x17390