	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function refill2
_refill2:                               ## @refill2
	.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), %esi
	xorl	%eax, %esi
	movq	_CABAC_BITS@GOTPCREL(%rip), %r8
	movb	(%r8), %cl
	decb	%cl
	shrl	%cl, %esi
	movq	_ff_h264_norm_shift@GOTPCREL(%rip), %r9
	movq	_CABAC_MASK@GOTPCREL(%rip), %rcx
	movq	8(%rdi), %r10
	movl	(%r10), %edx
	addl	%edx, %edx
	subl	(%rcx), %edx
	movq	(%r9), %r9
	movb	$7, %cl
	subb	(%r9,%rsi,4), %cl
	shll	%cl, %edx
	addl	%eax, %edx
	movl	%edx, (%rdi)
	cmpq	16(%rdi), %r10
	jae	LBB0_2
## %bb.1:
	movl	(%r8), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rax
	leaq	(%r10,%rax,4), %rax
	movq	%rax, 8(%rdi)
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_h264_norm_shift,8,3         ## @ff_h264_norm_shift
	.comm	_CABAC_BITS,4,2                 ## @CABAC_BITS
	.comm	_CABAC_MASK,4,2                 ## @CABAC_MASK
	.no_dead_strip	_refill2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function refill2
_refill2:                               ; @refill2
	.cfi_startproc
; %bb.0:
	ldr	w10, [x0]
	sub	w8, w10, #1
	eor	w9, w8, w10
Lloh0:
	adrp	x8, _ff_h264_norm_shift@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_h264_norm_shift@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x8]
Lloh3:
	adrp	x8, _CABAC_BITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CABAC_BITS@GOTPAGEOFF]
	ldr	w12, [x8]
	sub	w12, w12, #1
	lsr	w9, w9, w12
	ldr	w9, [x11, w9, uxtw #2]
	mov	w11, #7
	sub	w11, w11, w9
Lloh5:
	adrp	x9, _CABAC_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CABAC_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x9]
	ldp	x9, x13, [x0, #8]
	ldr	w14, [x9]
	lsl	w14, w14, #1
	sub	w12, w14, w12
	lsl	w11, w12, w11
	add	w10, w11, w10
	str	w10, [x0]
	cmp	x9, x13
	b.hs	LBB0_2
; %bb.1:
	ldr	w8, [x8]
	add	w10, w8, #7
	cmp	w8, #0
	csel	w8, w10, w8, lt
	asr	w8, w8, #3
	add	x8, x9, w8, sxtw #2
	str	x8, [x0, #8]
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_h264_norm_shift,8,3         ; @ff_h264_norm_shift
	.comm	_CABAC_BITS,4,2                 ; @CABAC_BITS
	.comm	_CABAC_MASK,4,2                 ; @CABAC_MASK
	.no_dead_strip	_refill2
.subsections_via_symbols
