	.file	"extr_nal-h264.c_rbsp_read_bits.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rbsp_read_bits, @function
rbsp_read_bits:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	esi, 32
	ja	.L2
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	esi, esi
	jne	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	sub	r13d, 1
	mov	ecx, r13d
	sal	eax, cl
	or	ebx, eax
	test	r13d, r13d
	je	.L4
.L3:
	mov	rdi, rbp
	call	rbsp_read_bit@PLT
	test	eax, eax
	jns	.L16
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -40
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	xor	eax, eax
	test	r12, r12
	je	.L1
	mov	DWORD PTR [r12], ebx
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	rbsp_read_bits, .-rbsp_read_bits
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_nal-h264.c_rbsp_read_bits.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rbsp_read_bits, %function
rbsp_read_bits:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #32
	bhi	.L2
	cmp	r1, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r7, r2
	moveq	r5, r1
	beq	.L4
	mov	r6, r0
	mov	r5, #0
.L3:
	mov	r0, r6
	bl	rbsp_read_bit
	cmp	r0, #0
	sub	r4, r4, #1
	poplt	{r4, r5, r6, r7, r8, pc}
	cmp	r4, #0
	orr	r5, r5, r0, lsl r4
	bne	.L3
.L4:
	cmp	r7, #0
	mov	r0, #0
	strne	r5, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L15
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L16:
	.align	2
.L15:
	.word	EINVAL
	.size	rbsp_read_bits, .-rbsp_read_bits
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
