// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/hashfirstcodes.c
// Function: hashfirstcodes_getencseqkmers_twobitencoding
void hashfirstcodes_getencseqkmers_twobitencoding(const GtEncseq *encseq,
                                                  unsigned int kmersize)
{
  GtTimer *timer = NULL;
  GtHashfirstcodes hashfirstcodes;
  GtUword numofsequences, psum;
  GT_UNUSED GtUword totallength;
  /*GT_UNUSED GtUword countsum;*/
  const unsigned int spmopt = 45U;

  if (gt_showtime_enabled())
  {
    timer = gt_timer_new_with_progress_description("insert first codes into "
                                                   "hashtable");
    gt_timer_start(timer);
  }
  numofsequences = gt_encseq_num_of_sequences(encseq);
  totallength = gt_encseq_total_length(encseq);
  hashfirstcodes.table = gt_uint64hashtable_new((size_t) numofsequences);
  hashfirstcodes.differentcodes = 0;
  getencseqkmers_twobitencoding(encseq,
                                GT_READMODE_FORWARD,
                                kmersize,
                                kmersize,
                                true,
                                gt_hashfirstcodes,
                                &hashfirstcodes,
                                NULL,
                                NULL);
  printf("# number of different codes="GT_WU" (%.4f) in "GT_WU" sequences\n",
          hashfirstcodes.differentcodes,
          (double) hashfirstcodes.differentcodes/numofsequences,
          numofsequences);
  /*countsum = gt_uint64hashtable_countsum_get(hashfirstcodes.table);*/
  gt_assert(gt_uint64hashtable_countsum_get(hashfirstcodes.table)
               == numofsequences);
  if (timer != NULL)
  {
    gt_timer_show_progress(timer, "accumulate counts",stdout);
  }
  getencseqkmers_twobitencoding(encseq,
                                GT_READMODE_FORWARD,
                                kmersize,
                                spmopt,
                                false,
                                gt_hashremainingcodes,
                                hashfirstcodes.table,
                                NULL,
                                NULL);
  psum = gt_uint64hashtable_partialsums(hashfirstcodes.table,timer);
  hashfirstcodes.suftab = gt_malloc((size_t) psum *
                                    sizeof (*hashfirstcodes.suftab));
  hashfirstcodes.finalpsum = psum;
  if (timer != NULL)
  {
    gt_timer_show_progress(timer, "insert suffixes into suffix table",
                                        stdout);
  }
  getencseqkmers_twobitencoding(encseq,
                                GT_READMODE_FORWARD,
                                kmersize,
                                spmopt,
                                false,
                                gt_insertallcodeswithhashtable,
                                &hashfirstcodes,
                                NULL,
                                NULL);
  gt_free(hashfirstcodes.suftab);
  gt_uint64hashtable_delete(hashfirstcodes.table);
  if (timer != NULL)
  {
    gt_timer_show_progress_final(timer, stdout);
    gt_timer_delete(timer);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movl %esi, %ebp
movq %rdi, %r14
callq 0x119160
testb %al, %al
je 0x31f29b
leaq 0xc4cfa(%rip), %rdi     # 0x3e3f83
callq 0x11c986
movq %rax, %rbx
movq %rax, %rdi
callq 0x11c9e3
jmp 0x31f29d
xorl %ebx, %ebx
movq %r14, %rdi
callq 0xe7bac
movq %rax, %r15
movq %r14, %rdi
callq 0xe7b9c
movq %r15, %rdi
callq 0x18357c
leaq 0x18(%rsp), %r12
movq %rax, (%r12)
movq $0x0, 0x8(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsp)
movq %r12, (%rsp)
leaq 0x1d8(%rip), %r9        # 0x31f4b5
movq %r14, %rdi
xorl %esi, %esi
movl %ebp, %edx
movl %ebp, %ecx
movl $0x1, %r8d
callq 0x1f73f9
movq 0x8(%r12), %rsi
movq %rsi, %xmm1
movq 0x285dd(%rip), %xmm2    # 0x3478e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x285e1(%rip), %xmm3    # 0x3478f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %r15, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0xc4c62(%rip), %rdi     # 0x3e3fa5
movq %r15, %rdx
movb $0x1, %al
callq 0x17070
movq (%r12), %rdi
callq 0x18399c
cmpq %r15, %rax
jne 0x31f4b0
testq %rbx, %rbx
je 0x31f37d
movq 0x199b6d(%rip), %rax    # 0x4b8ed8
movq (%rax), %rdx
leaq 0x86adb(%rip), %rsi     # 0x3a5e50
movq %rbx, %rdi
callq 0x11cc90
movq 0x18(%rsp), %rax
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rsp)
movq %rax, (%rsp)
leaq 0x13c(%rip), %r9        # 0x31f4d3
movq %r14, %rdi
xorl %esi, %esi
movl %ebp, %edx
movl $0x2d, %ecx
xorl %r8d, %r8d
callq 0x1f73f9
movq 0x18(%rsp), %rdi
movq %rbx, %rsi
callq 0x1839c3
movq %rax, %r15
leaq (,%rax,8), %rdi
leaq 0xc4c89(%rip), %rsi     # 0x3e4053
movl $0x82, %edx
callq 0x104226
movq %rax, 0x30(%rsp)
movq %r15, 0x38(%rsp)
testq %rbx, %rbx
je 0x31f45a
movq 0x199aee(%rip), %r15    # 0x4b8ed8
movq (%r15), %rdx
leaq 0xc4c7a(%rip), %rsi     # 0x3e406e
movq %rbx, %rdi
callq 0x11cc90
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rsp)
movq %r12, (%rsp)
leaq 0xd1(%rip), %r9         # 0x31f4e2
movq %r14, %rdi
xorl %esi, %esi
movl %ebp, %edx
movl $0x2d, %ecx
xorl %r8d, %r8d
callq 0x1f73f9
movq 0x30(%rsp), %rdi
leaq 0xc4c22(%rip), %rsi     # 0x3e4053
movl $0x92, %edx
callq 0x1045eb
movq 0x18(%rsp), %rdi
callq 0x183693
movq (%r15), %rsi
movq %rbx, %rdi
callq 0x11cf39
movq %rbx, %rdi
callq 0x11d054
jmp 0x31f4a3
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rsp)
movq %r12, (%rsp)
leaq 0x73(%rip), %r9         # 0x31f4e2
movq %r14, %rdi
xorl %esi, %esi
movl %ebp, %edx
movl $0x2d, %ecx
xorl %r8d, %r8d
callq 0x1f73f9
movq 0x30(%rsp), %rdi
leaq 0xc4bc4(%rip), %rsi     # 0x3e4053
movl $0x92, %edx
callq 0x1045eb
movq 0x18(%rsp), %rdi
callq 0x183693
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x9385e