// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/popcount_tab.c
// Function: gt_popcount_tab_new
GtPopcountTab *gt_popcount_tab_new(unsigned int blocksize)
{
  GtPopcountTab *popcount_tab;
  GT_UNUSED GtUword idx_check;
  gt_assert(blocksize <= (unsigned) GT_INTWORDSIZE);

  popcount_tab = gt_malloc(sizeof (GtPopcountTab));
  popcount_tab->rev_blocks = NULL;
  popcount_tab->bit_sizes = NULL;
  popcount_tab->num_of_blocks = 1UL << blocksize;
  popcount_tab->blocksize = blocksize;

  popcount_tab->blocks = gt_compact_ulong_store_new(popcount_tab->num_of_blocks,
                                                    blocksize);
  popcount_tab->offsets =
    gt_compact_ulong_store_new((GtUword) blocksize + 1, blocksize);
  gt_popcount_tab_init_offset_tab(popcount_tab);
  idx_check = gt_popcount_tab_init_blocks_tab(popcount_tab->blocks, blocksize);
  gt_assert(idx_check == popcount_tab->num_of_blocks);
  return popcount_tab;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpl $0x41, %edi
jae 0x1044a5
movl %edi, %ebp
leaq 0x229b48(%rip), %rsi    # 0x32de4c
pushq $0x30
popq %rdi
movl $0x83, %edx
callq 0x93160
movq %rax, %rbx
andq $0x0, 0x18(%rax)
andq $0x0, (%rax)
pushq $0x1
popq %r14
movq %r14, %rdi
movl %ebp, %ecx
shlq %cl, %rdi
movl %ebp, %r15d
movq %rdi, 0x20(%rax)
movl %ebp, 0x28(%rax)
movl %ebp, %esi
callq 0x6ba08
movq %rax, 0x8(%rbx)
movq %r15, 0x18(%rsp)
leaq 0x1(%r15), %rdi
movl %ebp, %esi
callq 0x6ba08
movq %rax, %r12
movq %rax, 0x10(%rbx)
movl 0x28(%rbx), %r15d
movq %rbx, 0x8(%rsp)
movq 0x20(%rbx), %rax
movq %rax, 0x20(%rsp)
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6bc0a
movq %r12, %rdi
movq %r14, %rsi
movq %r14, %rdx
callq 0x6bc0a
leaq 0x1(%r15), %rdx
pushq $0x2
popq %rsi
movq %r12, %rdi
callq 0x6bc0a
movq %r15, %rbp
leaq -0x1(%r15), %rax
movq %rax, 0x10(%rsp)
pushq $0x3
popq %rbx
cmpq 0x10(%rsp), %rbx
jae 0x1043d9
leaq -0x1(%rbx), %r15
movq %rbp, %rdi
movq %r15, %rsi
callq 0x6b73d
movq %rax, %r13
movq %r12, %rdi
movq %r15, %rsi
callq 0x6bb8d
addq %rax, %r13
movq %r12, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x6bc0a
incq %rbx
jmp 0x10439f
movq %rbp, %rdx
notq %rdx
movq 0x20(%rsp), %rbx
addq %rbx, %rdx
movq %r12, %rdi
movq 0x10(%rsp), %rsi
callq 0x6bc0a
decq %rbx
movq %r12, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x6bc0a
movq 0x8(%rsp), %rax
movq 0x8(%rax), %r12
pushq $-0x1
popq %r13
movq 0x18(%rsp), %rcx
shlq %cl, %r13
notq %r13
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6bc0a
movq %r14, %rbp
cmpq 0x18(%rsp), %r14
jae 0x104479
pushq $-0x1
popq %r15
movl %r14d, %ecx
shlq %cl, %r15
notq %r15
movq %r15, %rbx
cmpq %r15, %rbx
jb 0x104474
movq %r12, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x6bc0a
cmpq $0x1, %r14
jne 0x104461
addq %rbx, %rbx
jmp 0x10446c
movq %rbx, %rdi
callq 0x10534a
movq %rax, %rbx
andq %r13, %rbx
incq %rbp
jmp 0x104443
incq %r14
jmp 0x10442c
leaq 0x1(%rbp), %rbx
movq %r12, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x6bc0a
movq 0x8(%rsp), %rax
cmpq 0x20(%rax), %rbx
jne 0x1044d3
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x333abc(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e0b5d(%rip), %rsi    # 0x2e5013
leaq 0x229954(%rip), %rdx    # 0x32de11
leaq 0x229974(%rip), %rcx    # 0x32de38
leaq 0x229981(%rip), %r8     # 0x32de4c
movl $0x81, %r9d
jmp 0x1044ff
movq 0x333a8e(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e0b2f(%rip), %rsi    # 0x2e5013
leaq 0x22997d(%rip), %rdx    # 0x32de68
leaq 0x229946(%rip), %rcx    # 0x32de38
leaq 0x229953(%rip), %r8     # 0x32de4c
movl $0x8f, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390