	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_init_cabac_decoder          ## -- Begin function ff_init_cabac_decoder
	.p2align	4, 0x90
_ff_init_cabac_decoder:                 ## @ff_init_cabac_decoder
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, 24(%rdi)
	movslq	%edx, %rax
	leaq	(%rsi,%rax,4), %rax
	movq	%rax, 16(%rdi)
	movl	(%rsi), %eax
	shll	$10, %eax
	movl	%eax, (%rdi)
	leaq	8(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movl	4(%rsi), %ecx
	leal	2(%rax,%rcx,4), %edx
	movl	%edx, (%rdi)
	movl	$510, 4(%rdi)                   ## imm = 0x1FE
	movq	_CABAC_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	incb	%cl
	movl	$510, %esi                      ## imm = 0x1FE
	shll	%cl, %esi
	xorl	%eax, %eax
	cmpl	%edx, %esi
	jge	LBB0_2
## %bb.1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CABAC_BITS,4,2                 ## @CABAC_BITS
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_init_cabac_decoder          ; -- Begin function ff_init_cabac_decoder
	.p2align	2
_ff_init_cabac_decoder:                 ; @ff_init_cabac_decoder
	.cfi_startproc
; %bb.0:
	str	x1, [x0, #24]
	add	x8, x1, w2, sxtw #2
	ldr	w9, [x1]
	lsl	w9, w9, #10
	str	w9, [x0]
	add	x10, x1, #8
	stp	x10, x8, [x0, #8]
	ldr	w8, [x1, #4]
	add	w8, w9, w8, lsl #2
	orr	w8, w8, #0x2
	mov	w9, #510
	stp	w8, w9, [x0]
Lloh0:
	adrp	x10, _CABAC_BITS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CABAC_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	add	w10, w10, #1
	lsl	w9, w9, w10
Lloh3:
	adrp	x10, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w8
	csel	w0, w10, wzr, lt
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CABAC_BITS,4,2                 ; @CABAC_BITS
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
.subsections_via_symbols
