	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cabac_init_state
_cabac_init_state:                      ## @cabac_init_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_HEVC_CONTEXTS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_1
## %bb.3:
	movl	8(%r12), %eax
	movq	_HEVC_SLICE_I@GOTPCREL(%rip), %rcx
	movl	$2, %edx
	subl	%eax, %edx
	movl	%edx, %esi
	xorl	$3, %esi
	cmpl	(%rcx), %eax
	cmovel	%edx, %esi
	cmpq	$0, 16(%r12)
	cmovel	%edx, %esi
	movslq	%esi, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_init_values@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movl	(%rax,%rbx,4), %r14d
	movl	%r14d, %eax
	sarl	$4, %eax
	leal	(%rax,%rax,4), %r13d
	addl	$-45, %r13d
	andl	$15, %r14d
	movl	12(%r12), %edi
	xorl	%esi, %esi
	movl	$51, %edx
	callq	_av_clip
                                        ## kill: def $eax killed $eax def $rax
	imull	%r13d, %eax
	sarl	$4, %eax
	leal	(%rax,%r14,8), %eax
	addl	%eax, %eax
	addl	$-159, %eax
	movl	%eax, %ecx
	sarl	$31, %ecx
	xorl	%eax, %ecx
	movl	%ecx, %edx
	andl	$1, %edx
	orl	$124, %edx
	cmpl	$125, %ecx
	cmovll	%ecx, %edx
	movq	(%r12), %rax
	movq	(%rax), %rcx
	movl	%edx, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r15), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_4
	jmp	LBB0_2
LBB0_1:
	movq	(%r12), %rax
LBB0_2:
	movq	8(%rax), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	movups	%xmm0, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEVC_SLICE_I,4,2               ## @HEVC_SLICE_I
	.comm	_HEVC_CONTEXTS,4,2              ## @HEVC_CONTEXTS
	.comm	_init_values,8,3                ## @init_values
	.no_dead_strip	_cabac_init_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cabac_init_state
_cabac_init_state:                      ; @cabac_init_state
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x20, _HEVC_CONTEXTS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HEVC_CONTEXTS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #0
	b.le	LBB0_3
; %bb.1:
	mov	x21, #0
	ldr	x8, [x19, #16]
	ldr	w9, [x19, #8]
Lloh2:
	adrp	x10, _HEVC_SLICE_I@GOTPAGE
Lloh3:
	ldr	x10, [x10, _HEVC_SLICE_I@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	mov	w11, #2
	sub	w11, w11, w9
	cmp	w9, w10
	ccmp	x8, #0, #4, ne
	eor	w8, w11, #0x3
	csel	w8, w11, w8, eq
	sxtw	x22, w8
Lloh5:
	adrp	x23, _init_values@GOTPAGE
Lloh6:
	ldr	x23, [x23, _init_values@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, x22, lsl #3]
	lsl	x24, x21, #2
	ldr	w8, [x8, x24]
	asr	w9, w8, #4
	add	w9, w9, w9, lsl #2
	sub	w25, w9, #45
	ubfiz	w26, w8, #3, #4
	ldr	w0, [x19, #12]
	mov	w1, #0
	mov	w2, #51
	bl	_av_clip
	mul	w8, w25, w0
	add	w8, w26, w8, asr #4
	lsl	w8, w8, #1
	sub	w8, w8, #159
	eor	w8, w8, w8, asr #31
	mov	w9, #124
	bfxil	w9, w8, #0, #1
	cmp	w8, #124
	csel	w9, w9, w8, gt
	ldr	x8, [x19]
	ldr	x10, [x8]
	str	w9, [x10, x24]
	add	x21, x21, #1
	ldrsw	x9, [x20]
	cmp	x21, x9
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19]
LBB0_4:
	ldr	x8, [x8, #8]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HEVC_SLICE_I,4,2               ; @HEVC_SLICE_I
	.comm	_HEVC_CONTEXTS,4,2              ; @HEVC_CONTEXTS
	.comm	_init_values,8,3                ; @init_values
	.no_dead_strip	_cabac_init_state
.subsections_via_symbols
