	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_bfraction
_read_bfraction:                        ## @read_bfraction
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movq	_ff_vc1_bfraction_vlc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_VC1_BFRACTION_VLC_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$1, %ecx
	callq	_get_vlc2
	cmpl	$21, %eax
	je	LBB0_2
## %bb.1:
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	%eax, (%rbx)
	movq	_ff_vc1_bfraction_lut@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movl	8(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_vc1_bfraction_vlc,4,2       ## @ff_vc1_bfraction_vlc
	.comm	_VC1_BFRACTION_VLC_BITS,4,2     ## @VC1_BFRACTION_VLC_BITS
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bfraction invalid\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ff_vc1_bfraction_lut,8,3       ## @ff_vc1_bfraction_lut
	.no_dead_strip	_read_bfraction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_bfraction
_read_bfraction:                        ; @read_bfraction
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _ff_vc1_bfraction_vlc@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ff_vc1_bfraction_vlc@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _VC1_BFRACTION_VLC_BITS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VC1_BFRACTION_VLC_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	mov	x0, x8
	mov	w3, #1
	bl	_get_vlc2
	cmp	w0, #21
	b.eq	LBB0_3
; %bb.1:
	mov	x8, x0
	tbnz	w0, #31, LBB0_3
; %bb.2:
	mov	w0, #0
	str	w8, [x19]
Lloh6:
	adrp	x9, _ff_vc1_bfraction_lut@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ff_vc1_bfraction_lut@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w8, [x9, w8, uxtw #2]
	str	w8, [x19, #4]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19, #8]
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh14:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_vc1_bfraction_vlc,4,2       ; @ff_vc1_bfraction_vlc
	.comm	_VC1_BFRACTION_VLC_BITS,4,2     ; @VC1_BFRACTION_VLC_BITS
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bfraction invalid\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ff_vc1_bfraction_lut,8,3       ; @ff_vc1_bfraction_lut
	.no_dead_strip	_read_bfraction
.subsections_via_symbols
