// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movl %esi, 0x6c(%rsp)
movq $0x0, 0x60(%rsp)
movl $0x2d, 0x1c(%rsp)
callq 0x11aa90
testb $0x1, %al
jne 0x4d0de9
jmp 0x4d0e04
leaq 0xe8a91(%rip), %rdi     # 0x5b9881
callq 0x1213a0
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rdi
callq 0x1213f0
movq 0x70(%rsp), %rdi
callq 0xa9d50
movq %rax, 0x30(%rsp)
movq 0x70(%rsp), %rdi
callq 0xa9d00
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rdi
callq 0x1f4e30
movq %rax, 0x38(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x70(%rsp), %rdi
movl 0x6c(%rsp), %ecx
movq %rsp, %rax
leaq 0x38(%rsp), %rdx
movq %rdx, (%rax)
movq $0x0, 0x10(%rax)
movq $0x0, 0x8(%rax)
leaq 0x20b(%rip), %r9        # 0x4d1070
xorl %esi, %esi
movl $0x1, %r8d
movl %ecx, %edx
callq 0x2de9c0
movq 0x40(%rsp), %rsi
movq %rsi, %xmm0
movaps 0x47aab(%rip), %xmm3    # 0x518930
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x47aaf(%rip), %xmm2    # 0x518940
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq 0x30(%rsp), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movq 0x30(%rsp), %rdx
leaq 0xe89da(%rip), %rdi     # 0x5b98a3
movb $0x1, %al
callq 0x19070
movq 0x38(%rsp), %rdi
callq 0x1f5970
cmpq 0x30(%rsp), %rax
je 0x4d0f19
movq 0x16b0b8(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x45121(%rip), %rsi     # 0x516013
leaq 0xe89e3(%rip), %rdx     # 0x5b98dc
leaq 0xe8a24(%rip), %rcx     # 0x5b9924
leaq 0xe8a4a(%rip), %r8      # 0x5b9951
movl $0x72, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4d0f1b
cmpq $0x0, 0x60(%rsp)
je 0x4d0f3e
movq 0x60(%rsp), %rdi
movq 0x16b009(%rip), %rax    # 0x63bf38
movq (%rax), %rdx
leaq 0xa76df(%rip), %rsi     # 0x578618
callq 0x121930
movq 0x70(%rsp), %rdi
movl 0x6c(%rsp), %edx
movq 0x38(%rsp), %rax
xorl %r8d, %r8d
movl $0x2d, %ecx
leaq 0x175(%rip), %r9        # 0x4d10d0
xorl %esi, %esi
movl %r8d, %esi
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
callq 0x2de9c0
movq 0x38(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x1f5a00
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rdi
shlq $0x3, %rdi
leaq 0xe89b2(%rip), %rsi     # 0x5b9951
movl $0x82, %edx
callq 0xe80f0
movq %rax, 0x50(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x58(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x4d0fdb
movq 0x60(%rsp), %rdi
movq 0x16af6c(%rip), %rax    # 0x63bf38
movq (%rax), %rdx
leaq 0xe8996(%rip), %rsi     # 0x5b996c
callq 0x121930
movq 0x70(%rsp), %rdi
movl 0x6c(%rsp), %edx
xorl %r8d, %r8d
movl $0x2d, %ecx
leaq 0x12d(%rip), %r9        # 0x4d1120
leaq 0x38(%rsp), %rax
xorl %esi, %esi
movl %r8d, %esi
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
callq 0x2de9c0
movq 0x50(%rsp), %rdi
leaq 0xe892d(%rip), %rsi     # 0x5b9951
movl $0x92, %edx
callq 0xe88c0
movq 0x38(%rsp), %rdi
callq 0x1f5110
cmpq $0x0, 0x60(%rsp)
je 0x4d105e
movq 0x60(%rsp), %rdi
movq 0x16aeec(%rip), %rax    # 0x63bf38
movq (%rax), %rsi
callq 0x121d70
movq 0x60(%rsp), %rdi
callq 0x121f00
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)