// File: /workspace/github_cpp_makefile_star2_O3/oknenavin[P]cxon/test/../src/cxon/lang/cbor/lib/boost/dynamic_bitset.hxx
// Function: bool cxon::cbor::imp::read_bitset_<cxon::CBOR<cxon::cbor::format_traits>, unsigned char, std::allocator<unsigned char>, unsigned char const*, cxon::context<cxon::CBOR<cxon::cbor::format_traits>>>(boost::dynamic_bitset<unsigned char, std::allocator<unsigned char>>&, unsigned char const*&, unsigned char const*, cxon::context<cxon::CBOR<cxon::cbor::format_traits>>&)
inline bool read_bitset_(boost::dynamic_bitset<B, A>& t, II& i, II e, Cx& cx) {
                switch (bio::peek(i, e) & X::mjr) {
                    case X::bstr: {
                        std::size_t N;
                        if (!cbor::cnt::read_size<X>(N, i, e, cx))
                            return false;
                        if (i == e)
                            return cx/cbor::read_error::unexpected;
                        bio::byte const S = *i;
                        t.resize(t.size() + --N * 8);
                            for (++i; N != 0 && i != e; --N, ++i) {
                                bio::byte const b = *i; t <<= 8;
                                t.set(7, b & 0x80); t.set(6, b & 0x40); t.set(5, b & 0x20); t.set(4, b & 0x10);
                                t.set(3, b & 0x08); t.set(2, b & 0x04); t.set(1, b & 0x02); t.set(0, b & 0x01);
                            }
                        t.resize(t.size() - S);
                        return N == 0 || cx/cbor::read_error::unexpected;
                    }
                    default:
                        return cx/cbor::read_error::unexpected;
                }
            }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq (%rsi), %rax
cmpq %rdx, %rax
je 0x7ae1d
movb (%rax), %al
andb $-0x20, %al
cmpb $0x40, %al
jne 0x7ae1d
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
leaq 0x8(%rsp), %rdi
movq %rbx, %rcx
callq 0x3021d
movl $0x6, %ebp
testb %al, %al
je 0x7ae14
movq (%r12), %rax
movl $0x1, %ebp
cmpq %r15, %rax
je 0x7ae14
movzbl (%rax), %eax
movq %rax, 0x10(%rsp)
movq 0x8(%rsp), %rax
leaq -0x8(,%rax,8), %rsi
decq %rax
addq 0x18(%r14), %rsi
movq %rax, 0x8(%rsp)
movq %r14, %rdi
xorl %edx, %edx
callq 0x7ae42
movq (%r12), %rax
incq %rax
cmpq $0x0, 0x8(%rsp)
movq %rax, (%r12)
sete %cl
cmpq %r15, %rax
sete %dl
orb %cl, %dl
jne 0x7adf9
movb (%rax), %r13b
movl $0x8, %esi
movq %r14, %rdi
callq 0x7aedc
movq (%r14), %rax
movb (%rax), %cl
andb $0x7f, %cl
movl %r13d, %edx
andb $-0x80, %dl
orb %cl, %dl
movb %dl, (%rax)
movl %r13d, %eax
andb $0x40, %al
movq (%r14), %rcx
movb (%rcx), %dl
andb $-0x41, %dl
orb %al, %dl
movb %dl, (%rcx)
movl %r13d, %eax
andb $0x20, %al
movq (%r14), %rcx
movb (%rcx), %dl
andb $-0x21, %dl
orb %al, %dl
movb %dl, (%rcx)
movl %r13d, %eax
andb $0x10, %al
movq (%r14), %rcx
movb (%rcx), %dl
andb $-0x11, %dl
orb %al, %dl
movb %dl, (%rcx)
movl %r13d, %eax
andb $0x8, %al
movq (%r14), %rcx
movb (%rcx), %dl
andb $-0x9, %dl
orb %al, %dl
movb %dl, (%rcx)
movl %r13d, %eax
andb $0x4, %al
movq (%r14), %rcx
movb (%rcx), %dl
andb $-0x5, %dl
orb %al, %dl
movb %dl, (%rcx)
movl %r13d, %eax
andb $0x2, %al
movq (%r14), %rcx
movb (%rcx), %dl
andb $-0x3, %dl
orb %al, %dl
movb %dl, (%rcx)
andb $0x1, %r13b
movq (%r14), %rax
movb (%rax), %cl
andb $-0x2, %cl
orb %r13b, %cl
movb %cl, (%rax)
decq 0x8(%rsp)
sete %cl
movq (%r12), %rax
incq %rax
movq %rax, (%r12)
testb %cl, %cl
jne 0x7adf9
cmpq %r15, %rax
jne 0x7ad40
movq 0x18(%r14), %rsi
subq 0x10(%rsp), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x7ae42
cmpq $0x0, 0x8(%rsp)
je 0x7ae3d
callq 0x2fe02
movl %ebp, (%rbx)
jmp 0x7ae28
callq 0x2fe02
movl $0x1, (%rbx)
movq %rax, 0x8(%rbx)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %al
jmp 0x7ae2e
nop