	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ff_h264_init_cabac_states
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
LCPI0_1:
	.long	4294967169                      ## 0xffffff81
	.long	4294967169                      ## 0xffffff81
	.long	4294967169                      ## 0xffffff81
	.long	4294967169                      ## 0xffffff81
LCPI0_2:
	.long	124                             ## 0x7c
	.long	124                             ## 0x7c
	.long	124                             ## 0x7c
	.long	124                             ## 0x7c
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_h264_init_cabac_states
	.p2align	4, 0x90
_ff_h264_init_cabac_states:             ## @ff_h264_init_cabac_states
	.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, %rbx
	movq	24(%rsi), %rax
	movq	(%rdi), %rcx
	movl	(%rcx), %ecx
	leal	(%rcx,%rcx,2), %ecx
	addl	%ecx, %ecx
	addl	$-48, %ecx
	movslq	%ecx, %rcx
	subq	%rcx, %rax
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$51, %edx
	callq	_av_clip
	movq	(%rbx), %rcx
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_cabac_context_init_I@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_cabac_context_init_PB@GOTPCREL(%rip), %rdx
	movq	8(%rbx), %rcx
	shlq	$3, %rcx
	addq	(%rdx), %rcx
LBB0_3:
	movq	(%rcx), %rcx
	movq	16(%rbx), %rdx
	leaq	8192(%rcx), %rsi
	cmpq	%rsi, %rdx
	jae	LBB0_7
## %bb.4:
	leaq	4096(%rdx), %rsi
	cmpq	%rsi, %rcx
	jae	LBB0_7
## %bb.5:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,8), %edi
	imull	%eax, %edi
	sarl	$4, %edi
	addl	4(%rcx,%rsi,8), %edi
	addl	%edi, %edi
	addl	$-127, %edi
	movl	%edi, %ebx
	sarl	$31, %ebx
	xorl	%edi, %ebx
	movl	%ebx, %edi
	andl	$1, %edi
	orl	$124, %edi
	cmpl	$125, %ebx
	cmovll	%ebx, %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	cmpq	$1024, %rsi                     ## imm = 0x400
	jne	LBB0_6
	jmp	LBB0_9
LBB0_7:
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm2                ## xmm2 = xmm0[0,0,0,0]
	xorl	%eax, %eax
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = [1,1,1,1]
	movdqa	LCPI0_1(%rip), %xmm9            ## xmm9 = [4294967169,4294967169,4294967169,4294967169]
	movdqa	LCPI0_2(%rip), %xmm5            ## xmm5 = [124,124,124,124]
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rcx,%rax,8), %xmm6
	movups	16(%rcx,%rax,8), %xmm7
	movups	32(%rcx,%rax,8), %xmm3
	movups	48(%rcx,%rax,8), %xmm4
	movaps	%xmm6, %xmm0
	shufps	$136, %xmm7, %xmm0              ## xmm0 = xmm0[0,2],xmm7[0,2]
	movaps	%xmm3, %xmm1
	shufps	$136, %xmm4, %xmm1              ## xmm1 = xmm1[0,2],xmm4[0,2]
	shufps	$221, %xmm7, %xmm6              ## xmm6 = xmm6[1,3],xmm7[1,3]
	shufps	$221, %xmm4, %xmm3              ## xmm3 = xmm3[1,3],xmm4[1,3]
	pmulld	%xmm2, %xmm0
	pmulld	%xmm2, %xmm1
	psrad	$4, %xmm0
	paddd	%xmm6, %xmm0
	psrad	$4, %xmm1
	paddd	%xmm3, %xmm1
	paddd	%xmm0, %xmm0
	paddd	%xmm1, %xmm1
	paddd	%xmm9, %xmm0
	paddd	%xmm9, %xmm1
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	movdqa	%xmm1, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm0, %xmm3
	pxor	%xmm1, %xmm4
	movdqa	%xmm3, %xmm0
	pcmpgtd	%xmm5, %xmm0
	movdqa	%xmm4, %xmm1
	pcmpgtd	%xmm5, %xmm1
	movdqa	%xmm3, %xmm6
	pand	%xmm8, %xmm6
	movdqa	%xmm4, %xmm7
	pand	%xmm8, %xmm7
	por	%xmm5, %xmm6
	por	%xmm5, %xmm7
	blendvps	%xmm0, %xmm6, %xmm3
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm7, %xmm4
	movups	%xmm3, (%rdx,%rax,4)
	movups	%xmm4, 16(%rdx,%rax,4)
	addq	$8, %rax
	cmpq	$1024, %rax                     ## imm = 0x400
	jne	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
	.comm	_cabac_context_init_I,8,3       ## @cabac_context_init_I
	.comm	_cabac_context_init_PB,8,3      ## @cabac_context_init_PB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_init_cabac_states      ; -- Begin function ff_h264_init_cabac_states
	.p2align	2
_ff_h264_init_cabac_states:             ; @ff_h264_init_cabac_states
	.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	x19, x1
	ldr	x8, [x1, #24]
	ldr	x9, [x0]
	ldr	w9, [x9]
	mov	w10, #6
	mul	w9, w9, w10
	sub	w9, w9, #48
	sub	x0, x8, w9, sxtw
	mov	w1, #0
	mov	w2, #51
	bl	_av_clip
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _cabac_context_init_I@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cabac_context_init_I@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _cabac_context_init_PB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cabac_context_init_PB@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	add	x8, x8, x9, lsl #3
LBB0_3:
	ldr	x10, [x8]
	ldr	x8, [x19, #16]
	add	x9, x8, #1, lsl #12             ; =4096
	add	x11, x10, #2, lsl #12           ; =8192
	cmp	x8, x11
	ccmp	x10, x9, #2, lo
	b.lo	LBB0_6
; %bb.4:
	mov	x9, #0
	dup.4s	v0, w0
	add	x10, x10, #64
	movi.4s	v1, #1
	mvni.4s	v2, #126
	movi.4s	v3, #124
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x11, x10, #64
	ld2.4s	{ v4, v5 }, [x11]
	sub	x11, x10, #32
	ld2.4s	{ v6, v7 }, [x11]
	mov	x11, x10
	ld2.4s	{ v16, v17 }, [x11], #32
	ld2.4s	{ v18, v19 }, [x11]
	mul.4s	v20, v4, v0
	mul.4s	v21, v6, v0
	mul.4s	v22, v16, v0
	mul.4s	v23, v18, v0
	ssra.4s	v5, v20, #4
	ssra.4s	v7, v21, #4
	ssra.4s	v17, v22, #4
	ssra.4s	v19, v23, #4
	shl.4s	v4, v5, #1
	shl.4s	v5, v7, #1
	shl.4s	v6, v17, #1
	shl.4s	v7, v19, #1
	add.4s	v4, v4, v2
	add.4s	v5, v5, v2
	add.4s	v6, v6, v2
	add.4s	v7, v7, v2
	cmlt.4s	v16, v4, #0
	cmlt.4s	v17, v5, #0
	cmlt.4s	v18, v6, #0
	cmlt.4s	v19, v7, #0
	eor.16b	v4, v16, v4
	eor.16b	v5, v17, v5
	eor.16b	v6, v18, v6
	eor.16b	v7, v19, v7
	cmgt.4s	v16, v4, v3
	cmgt.4s	v17, v5, v3
	cmgt.4s	v18, v6, v3
	and.16b	v19, v4, v1
	and.16b	v20, v5, v1
	cmgt.4s	v21, v7, v3
	and.16b	v22, v6, v1
	and.16b	v23, v7, v1
	orr.4s	v19, #124
	orr.4s	v20, #124
	orr.4s	v22, #124
	orr.4s	v23, #124
	bit.16b	v4, v19, v16
	bit.16b	v5, v20, v17
	bit.16b	v6, v22, v18
	bit.16b	v7, v23, v21
	add	x11, x8, x9
	stp	q4, q5, [x11]
	stp	q6, q7, [x11, #32]
	add	x9, x9, #64
	add	x10, x10, #128
	cmp	x9, #1, lsl #12                 ; =4096
	b.ne	LBB0_5
	b	LBB0_8
LBB0_6:
	mov	x9, #0
	add	x10, x10, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w11, w12, [x10, #-4]
	mul	w11, w11, w0
	add	w11, w12, w11, asr #4
	lsl	w11, w11, #1
	sub	w11, w11, #127
	eor	w11, w11, w11, asr #31
	mov	w12, #124
	bfxil	w12, w11, #0, #1
	cmp	w11, #124
	csel	w11, w12, w11, gt
	str	w11, [x8, x9]
	add	x9, x9, #4
	add	x10, x10, #8
	cmp	x9, #1, lsl #12                 ; =4096
	b.ne	LBB0_7
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
	.comm	_cabac_context_init_I,8,3       ; @cabac_context_init_I
	.comm	_cabac_context_init_PB,8,3      ; @cabac_context_init_PB
.subsections_via_symbols
