	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc1_decode_ac_coeff
_vc1_decode_ac_coeff:                   ## @vc1_decode_ac_coeff
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	leaq	12(%rdi), %r13
	movq	_ff_vc1_ac_coeff_table@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movslq	%r8d, %r14
	movl	(%rax,%r14,4), %esi
	movq	_AC_VLC_BITS@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r13, %rdi
	movl	$3, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_29
## %bb.1:
	movq	_ff_vc1_ac_sizes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r14,4), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jne	LBB0_2
## %bb.5:
	movq	%r13, %rdi
	callq	_decode210
	cmpl	$2, %eax
	jne	LBB0_6
## %bb.17:
	movq	%r13, %rdi
	callq	_get_bits1
	movl	%eax, %ebx
	cmpl	$0, 4(%r15)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_19
## %bb.18:
	movl	8(%r15), %esi
	jmp	LBB0_26
LBB0_2:
	movq	_vc1_index_decode_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r14,8), %rcx
	movl	%eax, %edx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rcx), %ebx
	movl	4(%rcx), %r15d
	movq	_vc1_last_decode_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	(%rcx,%r14,4), %eax
	movl	$1, %r14d
	jge	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_get_bits_left
	movq	%rax, %r14
	shrq	$63, %r14
LBB0_4:
	movq	%r13, %rdi
	callq	_get_bits1
	movl	%eax, %r12d
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_28
LBB0_6:
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movl	(%rax,%r14,4), %esi
	movl	(%r12), %edx
	movq	%r13, %rdi
	movl	$3, %ecx
	callq	_get_vlc2
	movq	_ff_vc1_ac_sizes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r14,4), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jae	LBB0_30
## %bb.7:
	movq	_vc1_index_decode_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r14,8), %rcx
	movslq	%eax, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rcx), %edi
	movl	4(%rcx), %r15d
	movq	_vc1_last_decode_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r14,4), %esi
	cmpl	%esi, %eax
	setge	%cl
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.12:
	movslq	%r15d, %rdx
	cmpl	%esi, %eax
	jl	LBB0_14
## %bb.13:
	movq	_vc1_last_delta_run_table@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_30:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_29
LBB0_19:
	cmpl	$8, (%r15)
	jl	LBB0_21
## %bb.20:
	cmpq	$0, 16(%r15)
	je	LBB0_23
LBB0_21:
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_get_bits
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	jne	LBB0_25
## %bb.22:
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_get_bits
	addl	$8, %eax
	jmp	LBB0_24
LBB0_8:
	movslq	%edi, %rdx
	cmpl	%esi, %eax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jl	LBB0_11
## %bb.9:
	movq	_vc1_last_delta_level_table@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_14:
	movq	_vc1_delta_run_table@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movl	(%rax,%rdx,8), %eax
	addl	%eax, %edi
	incl	%edi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
LBB0_11:
	movq	_vc1_delta_level_table@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	addl	(%rax,%rdx,8), %r15d
LBB0_16:
	xorl	%r14d, %r14d
	movb	%cl, %r14b
	movq	%r13, %rdi
	callq	_get_bits1
	movl	%eax, %r12d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_27
LBB0_23:
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$6, %edx
	callq	_get_unary
	addl	$2, %eax
LBB0_24:
	movl	%eax, 4(%r15)
LBB0_25:
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_get_bits
	movl	%eax, %esi
	addl	$3, %esi
	movl	%esi, 8(%r15)
LBB0_26:
	movq	%r13, %rdi
	callq	_get_bits
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_get_bits1
	movl	%eax, %r12d
	movl	4(%r15), %esi
	movq	%r13, %rdi
	callq	_get_bits
	movl	%eax, %r15d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_27:
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
LBB0_28:
	movl	%r14d, (%rcx)
	movl	%ebx, (%rax)
	movl	%r12d, %eax
	negl	%eax
	xorl	%r15d, %eax
	addl	%r12d, %eax
	movl	%eax, (%rdx)
	xorl	%eax, %eax
LBB0_29:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_vc1_ac_coeff_table,8,3      ## @ff_vc1_ac_coeff_table
	.comm	_AC_VLC_BITS,4,2                ## @AC_VLC_BITS
	.comm	_ff_vc1_ac_sizes,8,3            ## @ff_vc1_ac_sizes
	.comm	_vc1_index_decode_table,8,3     ## @vc1_index_decode_table
	.comm	_vc1_last_decode_table,8,3      ## @vc1_last_decode_table
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_vc1_last_delta_level_table,8,3 ## @vc1_last_delta_level_table
	.comm	_vc1_delta_level_table,8,3      ## @vc1_delta_level_table
	.comm	_vc1_last_delta_run_table,8,3   ## @vc1_last_delta_run_table
	.comm	_vc1_delta_run_table,8,3        ## @vc1_delta_run_table
	.no_dead_strip	_vc1_decode_ac_coeff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc1_decode_ac_coeff
_vc1_decode_ac_coeff:                   ; @vc1_decode_ac_coeff
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x25, x0
	add	x22, x0, #12
Lloh0:
	adrp	x24, _ff_vc1_ac_coeff_table@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ff_vc1_ac_coeff_table@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w1, [x8, w4, sxtw #2]
Lloh2:
	adrp	x28, _AC_VLC_BITS@GOTPAGE
Lloh3:
	ldr	x28, [x28, _AC_VLC_BITS@GOTPAGEOFF]
	ldr	w2, [x28]
	mov	x0, x22
	mov	w3, #3
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_29
; %bb.1:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	x21, x20
	mov	x20, x19
Lloh4:
	adrp	x19, _ff_vc1_ac_sizes@GOTPAGE
Lloh5:
	ldr	x19, [x19, _ff_vc1_ac_sizes@GOTPAGEOFF]
	sxtw	x27, w23
	ldr	x8, [x19]
	ldr	w8, [x8, x27, lsl #2]
	sub	w8, w8, #1
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x22
	bl	_decode210
	cmp	w0, #2
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x22
	bl	_get_bits1
	mov	x23, x0
	ldr	w8, [x25, #4]
	cbz	w8, LBB0_13
; %bb.4:
	ldr	w1, [x25, #8]
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_27
LBB0_5:
Lloh6:
	adrp	x8, _vc1_index_decode_table@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vc1_index_decode_table@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x8, x27, lsl #3]
	ldr	x8, [x8, w0, uxtw #3]
	ldp	w24, w25, [x8]
Lloh9:
	adrp	x8, _vc1_last_decode_table@GOTPAGE
Lloh10:
	ldr	x8, [x8, _vc1_last_decode_table@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w8, [x8, x27, lsl #2]
	cmp	w0, w8
	b.ge	LBB0_11
; %bb.6:
	mov	x0, x22
	bl	_get_bits_left
	lsr	x23, x0, #63
	b	LBB0_23
LBB0_7:
	mov	x26, x0
	ldr	x8, [x24]
	lsl	x23, x27, #2
	ldr	w1, [x8, x23]
	ldr	w2, [x28]
	mov	x0, x22
	mov	w3, #3
	bl	_get_vlc2
	ldr	x8, [x19]
	ldr	w8, [x8, x23]
	sub	w8, w8, #1
	cmp	w0, w8
	b.hs	LBB0_12
; %bb.8:
Lloh12:
	adrp	x8, _vc1_index_decode_table@GOTPAGE
Lloh13:
	ldr	x8, [x8, _vc1_index_decode_table@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x8, [x8, x27, lsl #3]
	ldr	x8, [x8, w0, sxtw #3]
Lloh15:
	adrp	x9, _vc1_last_decode_table@GOTPAGE
Lloh16:
	ldr	x9, [x9, _vc1_last_decode_table@GOTPAGEOFF]
	ldp	w24, w25, [x8]
Lloh17:
	ldr	x8, [x9]
	ldr	w8, [x8, x27, lsl #2]
	cmp	w0, w8
	cset	w23, ge
	cbz	w26, LBB0_17
; %bb.9:
	sxtw	x8, w25
	b.lt	LBB0_19
; %bb.10:
Lloh18:
	adrp	x9, _vc1_last_delta_run_table@GOTPAGE
Lloh19:
	ldr	x9, [x9, _vc1_last_delta_run_table@GOTPAGEOFF]
	b	LBB0_20
LBB0_11:
	mov	w23, #1
	b	LBB0_23
LBB0_12:
Lloh20:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	b	LBB0_29
LBB0_13:
	ldr	w8, [x25]
	cmp	w8, #8
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	b.lt	LBB0_15
; %bb.14:
	ldr	x8, [x25, #16]
	cbz	x8, LBB0_24
LBB0_15:
	mov	x0, x22
	mov	w1, #3
	bl	_get_bits
	str	w0, [x25, #4]
	cbnz	w0, LBB0_26
; %bb.16:
	mov	x0, x22
	mov	w1, #2
	bl	_get_bits
	add	w8, w0, #8
	b	LBB0_25
LBB0_17:
	sxtw	x8, w24
	b.lt	LBB0_21
; %bb.18:
Lloh23:
	adrp	x9, _vc1_last_delta_level_table@GOTPAGE
Lloh24:
	ldr	x9, [x9, _vc1_last_delta_level_table@GOTPAGEOFF]
	b	LBB0_22
LBB0_19:
Lloh25:
	adrp	x9, _vc1_delta_run_table@GOTPAGE
Lloh26:
	ldr	x9, [x9, _vc1_delta_run_table@GOTPAGEOFF]
LBB0_20:
	ldr	x9, [x9]
	ldr	x9, [x9, x27, lsl #3]
	ldr	x8, [x9, x8, lsl #3]
	add	w8, w24, w8
	add	w24, w8, #1
	b	LBB0_23
LBB0_21:
Lloh27:
	adrp	x9, _vc1_delta_level_table@GOTPAGE
Lloh28:
	ldr	x9, [x9, _vc1_delta_level_table@GOTPAGEOFF]
LBB0_22:
	ldr	x9, [x9]
	ldr	x9, [x9, x27, lsl #3]
	ldr	x8, [x9, x8, lsl #3]
	add	w25, w25, w8
LBB0_23:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x22
	bl	_get_bits1
	mov	x26, x0
	b	LBB0_28
LBB0_24:
	mov	x0, x22
	mov	w1, #1
	mov	w2, #6
	bl	_get_unary
	add	w8, w0, #2
LBB0_25:
	str	w8, [x25, #4]
LBB0_26:
	mov	x0, x22
	mov	w1, #2
	bl	_get_bits
	add	w1, w0, #3
	str	w1, [x25, #8]
LBB0_27:
	mov	x0, x22
	bl	_get_bits
	mov	x24, x0
	mov	x0, x22
	bl	_get_bits1
	mov	x26, x0
	ldr	w1, [x25, #4]
	mov	x0, x22
	bl	_get_bits
	mov	x25, x0
LBB0_28:
	mov	w0, #0
	str	w23, [x19]
	str	w24, [x21]
	neg	w8, w26
	eor	w8, w25, w8
	add	w8, w8, w26
	str	w8, [x20]
LBB0_29:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_vc1_ac_coeff_table,8,3      ; @ff_vc1_ac_coeff_table
	.comm	_AC_VLC_BITS,4,2                ; @AC_VLC_BITS
	.comm	_ff_vc1_ac_sizes,8,3            ; @ff_vc1_ac_sizes
	.comm	_vc1_index_decode_table,8,3     ; @vc1_index_decode_table
	.comm	_vc1_last_decode_table,8,3      ; @vc1_last_decode_table
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_vc1_last_delta_level_table,8,3 ; @vc1_last_delta_level_table
	.comm	_vc1_delta_level_table,8,3      ; @vc1_delta_level_table
	.comm	_vc1_last_delta_run_table,8,3   ; @vc1_last_delta_run_table
	.comm	_vc1_delta_run_table,8,3        ; @vc1_delta_run_table
	.no_dead_strip	_vc1_decode_ac_coeff
.subsections_via_symbols
