// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/compressed_bitsequence.c
// Function: gt_compressed_bitsequence_new
GtCompressedBitsequence *
gt_compressed_bitsequence_new(GtBitsequence *bitseq,
                              unsigned int samplerate,
                              GtUword num_of_bits)
{
  GtCompressedBitsequence *cbs;

  gt_assert(samplerate != 0);

  cbs = gt_compressed_bitsequence_new_empty();
  gt_compressed_bitsequence_init(cbs, samplerate, num_of_bits);

  gt_compressed_bitsequence_init_c_tab(cbs);
  gt_compressed_bitsequence_fill_c_tab_init_o_tab(cbs, bitseq);
  gt_compressed_bitsequence_init_s_tabs(cbs);
  gt_compressed_bitsequence_fill_tabs(cbs, bitseq);
  cbs->from_file = false;
  gt_log_log("new cbs:\n"
             "blzise: %u\n"
             "offsize: " GT_WU "\n"
             "cbits: %u\n"
             "csize: " GT_WU "\n"
             "lastblen: %u\n",
             cbs->blocksize,
             cbs->c_offsets_size,
             cbs->class_bits,
             cbs->classes_size,
             cbs->last_block_len);
  return cbs;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
testl %esi, %esi
je 0xbf379
movq %rdx, %r14
movl %esi, %ebp
callq 0xbf3b1
movq %rax, %rbx
movl %ebp, 0xec(%rax)
movl 0xd8(%rax), %edi
callq 0x1042e4
movq %rax, 0x68(%rbx)
movq %r14, 0xb0(%rbx)
movl 0xd8(%rbx), %edi
movq %r14, %rax
xorl %edx, %edx
divq %rdi
xorl %r13d, %r13d
testq %rdx, %rdx
cmovel %edi, %edx
movl %edx, 0xe0(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x98(%rbx)
setne %cl
cmpq %r14, %rdi
seta %dl
orb %cl, %dl
movzbl %dl, %ecx
addq %rax, %rcx
movq %rcx, 0xb8(%rbx)
callq 0x9580f
movl %eax, 0xdc(%rbx)
movl %eax, %eax
imulq 0xb8(%rbx), %rax
leaq -0x1(%rax), %r14
shrq $0x6, %r14
incq %r14
cmpq $0x40, %rax
pushq $0x1
popq %rax
cmovbq %rax, %r14
movq %r14, 0xa8(%rbx)
shlq $0x3, %r14
leaq 0x259882(%rip), %rdx    # 0x318836
xorl %edi, %edi
movq %r14, %rsi
movl $0x169, %ecx            # imm = 0x169
callq 0x93472
movq %rax, 0x78(%rbx)
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x17380
movl 0xd8(%rbx), %eax
movl %eax, 0x10(%rsp)
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0xb8(%rbx), %rax
cmpq %rax, %r15
jae 0xbf06e
movq %r13, %rbp
decq %rax
cmpq %rax, %r15
jne 0xbf005
movl 0xe0(%rbx), %eax
movl %eax, 0x10(%rsp)
movl 0xd8(%rbx), %esi
imulq %r15, %rsi
movq 0x20(%rsp), %rdi
movl 0x10(%rsp), %edx
callq 0xbfacc
movq %rax, %r12
movq 0x68(%rbx), %rdi
movq %rax, %rsi
callq 0x1046d2
movl %eax, %r13d
movq 0x78(%rbx), %rdi
movq 0xa8(%rbx), %rsi
movl 0xdc(%rbx), %ecx
movq %rcx, %rdx
imulq %r15, %rdx
movl %eax, %r8d
callq 0xc1074
movq 0x68(%rbx), %rdi
movl %r13d, %esi
callq 0x1047ab
movl %eax, %eax
movq %rbp, %r13
addq %rax, %r13
addq %r12, %r14
incq %r15
jmp 0xbefe4
leaq -0x1(%r13), %r12
shrq $0x6, %r12
incq %r12
cmpq $0x40, %r13
pushq $0x1
popq %rbp
cmovbq %rbp, %r12
movq %r12, 0xa0(%rbx)
movq %r13, %rdi
callq 0x9580f
movl %eax, 0xe4(%rbx)
movq %r14, %rdi
callq 0x9580f
movl %eax, 0xe8(%rbx)
shlq $0x3, %r12
leaq 0x259784(%rip), %r14    # 0x318836
xorl %r15d, %r15d
xorl %edi, %edi
movq %r12, %rsi
movq %r14, %rdx
movl $0x18b, %ecx            # imm = 0x18B
callq 0x93472
movq %rax, 0x70(%rbx)
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x17380
movq 0xb8(%rbx), %rax
movl 0xec(%rbx), %ecx
xorl %edx, %edx
divq %rcx
cmpq %rbp, %rdx
sbbq $-0x1, %rax
movq %rax, 0xc0(%rbx)
movl 0xe4(%rbx), %ecx
imulq %rax, %rcx
leaq -0x1(%rcx), %r12
movq %r12, %rdx
shrq $0x6, %rdx
incq %rdx
movl 0xe8(%rbx), %esi
imulq %rax, %rsi
leaq -0x1(%rsi), %rax
shrq $0x6, %rax
incq %rax
cmpq $0x40, %rsi
cmovbq %rbp, %rax
shrq $0x3, %r12
andq $-0x8, %r12
pushq $0x8
popq %r13
addq %r13, %r12
cmpq $0x40, %rcx
cmovbq %rbp, %rdx
movq %rdx, 0xc8(%rbx)
movq %rax, 0xd0(%rbx)
cmovbq %r13, %r12
xorl %edi, %edi
movq %r12, %rsi
movq %r14, %rdx
movl $0x156, %ecx            # imm = 0x156
callq 0x93472
movq %rax, 0x80(%rbx)
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x17380
movl 0xe8(%rbx), %eax
imulq 0xc0(%rbx), %rax
leaq -0x1(%rax), %rcx
shrq $0x6, %rcx
cmpq $0x40, %rax
leaq 0x8(,%rcx,8), %r12
cmovbq %r13, %r12
xorl %edi, %edi
movq %r12, %rsi
movq %r14, %rdx
movl $0x158, %ecx            # imm = 0x158
callq 0x93472
movq %rax, 0x88(%rbx)
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x17380
movl 0xd8(%rbx), %eax
movl %eax, 0xc(%rsp)
movq $0x0, 0x18(%rsp)
xorl %r13d, %r13d
xorl %ebp, %ebp
xorl %r12d, %r12d
movq 0xb8(%rbx), %rax
cmpq %rax, %r15
jae 0xbf2e1
decq %rax
cmpq %rax, %r15
jne 0xbf205
movl 0xe0(%rbx), %eax
movl %eax, 0xc(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0xbfb43
movl %eax, %r14d
movq 0x68(%rbx), %rdi
movl %eax, %esi
callq 0x1047ab
movq %r15, %rcx
movl %eax, %r15d
movl 0xd8(%rbx), %esi
movq %rcx, 0x10(%rsp)
imulq %rcx, %rsi
movq 0x20(%rsp), %rdi
movl 0xc(%rsp), %edx
callq 0xbfacc
movq 0x68(%rbx), %rdi
movq %rax, %rsi
callq 0x104a9d
movq 0x70(%rbx), %rdi
movq 0xa0(%rbx), %rsi
movq %rbp, %rdx
movl %r15d, %ecx
movq %rax, %r8
callq 0xc1074
movl %r14d, %eax
addq %rax, %r12
movl %r15d, %eax
addq %rax, %rbp
incl %r13d
cmpl %r13d, 0xec(%rbx)
jne 0xbf2d4
movq 0x80(%rbx), %rdi
movq 0xc8(%rbx), %rsi
movl 0xe4(%rbx), %ecx
movq %rcx, %rdx
movq 0x18(%rsp), %r14
imulq %r14, %rdx
movq %rbp, %r8
callq 0xc1074
movq 0x88(%rbx), %rdi
movq 0xd0(%rbx), %rsi
movl 0xe8(%rbx), %ecx
movq %rcx, %rdx
imulq %r14, %rdx
movq %r12, %r8
callq 0xc1074
incq %r14
movq %r14, 0x18(%rsp)
xorl %r13d, %r13d
movq 0x10(%rsp), %r15
incq %r15
jmp 0xbf1e3
testl %r13d, %r13d
je 0xbf331
movq 0x80(%rbx), %rdi
movq 0xc8(%rbx), %rsi
movl 0xe4(%rbx), %ecx
movq %rcx, %rdx
movq 0x18(%rsp), %r14
imulq %r14, %rdx
movq %rbp, %r8
callq 0xc1074
movq 0x88(%rbx), %rdi
movq 0xd0(%rbx), %rsi
movl 0xe8(%rbx), %ecx
imulq %rcx, %r14
movq %r14, %rdx
movq %r12, %r8
callq 0xc1074
movb $0x0, 0xf0(%rbx)
movl 0xd8(%rbx), %esi
movl 0xdc(%rbx), %ecx
movq 0xa0(%rbx), %rdx
movq 0xa8(%rbx), %r8
movl 0xe0(%rbx), %r9d
leaq 0x2594fc(%rip), %rdi    # 0x31885c
xorl %eax, %eax
callq 0x92a82
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x378be8(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x225c89(%rip), %rsi    # 0x2e5013
leaq 0x259477(%rip), %rdx    # 0x318808
leaq 0x259480(%rip), %rcx    # 0x318818
leaq 0x259497(%rip), %r8     # 0x318836
movl $0x1ad, %r9d            # imm = 0x1AD
xorl %eax, %eax
callq 0x17a50
callq 0x17390