// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore.xo.c
// Function: bcore_huffman_bit_buffer_s_bcml_body_from_source
er_t bcore_huffman_bit_buffer_s_bcml_body_from_source( bcore_huffman_bit_buffer_s* o, x_source* source )
{
    // bcore_huffman.x:301:1
    
    u3_t bits = x_source_get_u3(source);
    sz_t size = ( bits / 8 ) + ( ( bits % 8 ) ? 1 : 0 );
    x_array_set_size(((x_array*)(o)),size );
    o->bits = bits;
    x_source_get_data(source,((x_inst*)(o->data)), size * sizeof( u0_t ) );
    return  0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq $0x0, (%rsp)
movq (%rsi), %r15
leaq 0x132182(%rip), %rdx    # 0x19ccc8
movl (%rdx), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r15, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0x6ab9b
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x6ab9b
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x6ab9b
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x6aba4
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x6abcb
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %r12
leaq 0x132108(%rip), %rdi    # 0x19ccc8
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
movq 0x10(%r12), %rax
testq %rax, %rax
jne 0x6abe9
leaq 0xcf1ba(%rip), %rsi     # 0x139d96
movq %r12, %rdi
callq 0xeb49c
movq 0x10(%r12), %rax
movq %rsp, %r15
movl $0x8, %r13d
movl $0x8, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq *%rax
movq (%r15), %r15
movq %r15, %rbp
shrq $0x3, %rbp
movl %r15d, %eax
andl $0x7, %eax
cmpq $0x1, %rax
sbbq $-0x1, %rbp
movq (%r14), %r12
leaq 0x1311ff(%rip), %rax    # 0x19be20
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r12, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rcx
cmpq %r12, %rcx
je 0x6ac75
movq 0x10(%rax), %rcx
movl $0x18, %r13d
cmpq %r12, %rcx
je 0x6ac75
movq 0x20(%rax), %rcx
movl $0x28, %r13d
cmpq %r12, %rcx
je 0x6ac75
movq 0x30(%rax), %rcx
movl $0x38, %r13d
cmpq %r12, %rcx
jne 0x6ac7e
movq (%rax,%r13), %r13
testq %r13, %r13
jne 0x6aca5
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %r12, %rsi
callq 0xe9bc5
movq %rax, %r13
leaq 0x131186(%rip), %rdi    # 0x19be20
movq %r12, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r13, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0xec548
movq %r15, 0x8(%r14)
movq 0x10(%r14), %r14
movq (%rbx), %r12
leaq 0x132003(%rip), %rdx    # 0x19ccc8
movl (%rdx), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r12, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0x6ad1a
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x6ad1a
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x6ad1a
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x6ad23
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x6ad4a
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r12, %rsi
callq 0xe9bc5
movq %rax, %r13
leaq 0x131f89(%rip), %rdi    # 0x19ccc8
movq %r12, %rsi
movq %rax, %rdx
callq 0x115fac
movq 0x10(%r13), %rax
testq %rax, %rax
jne 0x6ad66
leaq 0xcf03c(%rip), %rsi     # 0x139d96
movq %r13, %rdi
callq 0xeb49c
movq 0x10(%r13), %rax
movq %rbx, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq *%rax
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq