// File: /workspace/github_c_makefile_star2_O1/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 0x138c01(%rip), %rdx    # 0x1a9cc8
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 0x71120
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x71120
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x71120
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x71303
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x71150
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0x138b83(%rip), %rdi    # 0x1a9cc8
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
cmpq $0x0, 0x10(%r12)
jne 0x71167
leaq 0xd3dbf(%rip), %rsi     # 0x144f1e
movq %r12, %rdi
callq 0xf592c
movq %rsp, %r15
movl $0x8, %r13d
movl $0x8, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq *0x10(%r12)
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 0x137c7e(%rip), %rax    # 0x1a8e20
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 0x711fa
movq 0x10(%rax), %rcx
movl $0x18, %r13d
cmpq %r12, %rcx
je 0x711fa
movq 0x20(%rax), %rcx
movl $0x28, %r13d
cmpq %r12, %rcx
je 0x711fa
movq 0x30(%rax), %rcx
movl $0x38, %r13d
cmpq %r12, %rcx
jne 0x7130b
movq (%rax,%r13), %r13
testq %r13, %r13
jne 0x7122a
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %r12, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0x137c01(%rip), %rdi    # 0x1a8e20
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r13, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0xf69d8
movq %r15, 0x8(%r14)
movq 0x10(%r14), %r14
movq (%rbx), %r12
leaq 0x138a7e(%rip), %rdx    # 0x1a9cc8
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 0x7129f
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x7129f
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x7129f
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x71313
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x712cf
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r12, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0x138a04(%rip), %rdi    # 0x1a9cc8
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
cmpq $0x0, 0x10(%r13)
jne 0x712e5
leaq 0xd3c41(%rip), %rsi     # 0x144f1e
movq %r13, %rdi
callq 0xf592c
movq %rbx, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq *0x10(%r13)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r12d, %r12d
jmp 0x71124
xorl %r13d, %r13d
jmp 0x711fe
xorl %r13d, %r13d
jmp 0x712a3