	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rbsp_read_bit
_rbsp_read_bit:                         ## @rbsp_read_bit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	leal	1(%rax), %edx
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movl	%edx, (%rdi)
	movl	%ecx, %edx
	sarl	$3, %edx
	cmpl	4(%rdi), %edx
	jge	LBB0_1
## %bb.2:
	andl	$-8, %ecx
	subl	%ecx, %eax
	movq	8(%rdi), %rcx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %ecx
	movb	$7, %dl
	subb	%al, %dl
	movzbl	%dl, %edx
	xorl	%eax, %eax
	btl	%edx, %ecx
	setb	%al
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rbsp_read_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rbsp_read_bit
_rbsp_read_bit:                         ; @rbsp_read_bit
	.cfi_startproc
; %bb.0:
	ldp	w8, w10, [x0]
	add	w9, w8, #1
	str	w9, [x0]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w9, w9, #3
	cmp	w9, w10
	b.ge	LBB0_2
; %bb.1:
	lsl	w10, w9, #3
	sub	w8, w10, w8
	add	w8, w8, #7
	ldr	x10, [x0, #8]
	ldr	w9, [x10, w9, sxtw #2]
	lsr	w8, w9, w8
	and	w0, w8, #0x1
	ret
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rbsp_read_bit
.subsections_via_symbols
