	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ff_vc1_pred_dc
_ff_vc1_pred_dc:                        ## @ff_vc1_pred_dc
	.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
	movl	%r9d, -64(%rbp)                 ## 4-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movq	%rdi, %rbx
	movslq	(%rdi), %rax
	movslq	4(%rdi), %rcx
	movslq	8(%rdi), %r15
	imulq	%rcx, %r15
	addq	%rax, %r15
	movq	48(%rdi), %rax
	movl	(%rax,%r15,4), %edi
	callq	_FFABS
	movq	16(%rbx), %rdx
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movslq	%eax, %rcx
	movl	(%rdx,%rcx,4), %r12d
	testl	%r12d, %r12d
	jle	LBB0_11
## %bb.1:
	decl	%r12d
	movslq	%r14d, %rax
	movq	24(%rbx), %rcx
	movq	32(%rbx), %rdx
	movslq	(%rcx,%rax,4), %rcx
	movq	(%rdx), %rdx
	movq	40(%rbx), %rsi
	movslq	(%rsi,%rax,4), %rsi
	leaq	(%rdx,%rsi,4), %rdi
	movl	-4(%rdx,%rsi,4), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rdx
	notq	%rdx
	movl	(%rdi,%rdx,4), %edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	shlq	$2, %rcx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rdx
	subq	%rcx, %rdx
	movl	(%rdx), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	andl	$-3, %eax
	movslq	%r15d, %r13
	cmpl	$1, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.3:
	movq	48(%rbx), %rax
	movl	-4(%rax,%r13,4), %edi
	callq	_FFABS
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:
	movq	16(%rbx), %rcx
	cltq
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	imull	(%rcx,%rax,4), %edx
	movq	_ff_vc1_dqscale@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	imull	(%rax,%rcx,4), %edx
	addl	$131072, %edx                   ## imm = 0x20000
	sarl	$18, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
LBB0_6:
	movl	%r14d, %eax
	andl	$-2, %eax
	cmpl	$2, %eax
	je	LBB0_12
## %bb.7:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.8:
	movq	48(%rbx), %rax
	movslq	8(%rbx), %rcx
	subq	%rcx, %r13
	movl	(%rax,%r13,4), %edi
	callq	_FFABS
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_14
## %bb.10:
	movq	16(%rbx), %rcx
	cltq
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	imull	(%rcx,%rax,4), %edx
	movq	_ff_vc1_dqscale@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	imull	(%rax,%rcx,4), %edx
	addl	$131072, %edx                   ## imm = 0x20000
	sarl	$18, %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	cmpl	$3, %r14d
	jne	LBB0_15
	jmp	LBB0_22
LBB0_11:
	xorl	%r13d, %r13d
	jmp	LBB0_29
LBB0_12:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	cmpl	$3, %r14d
	jne	LBB0_15
	jmp	LBB0_22
LBB0_13:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_14:
	cmpl	$3, %r14d
	je	LBB0_22
LBB0_15:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.16:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.17:
	xorl	%eax, %eax
	cmpl	$1, %r14d
	setne	%al
	subl	%eax, %r15d
	cmpl	$2, %r14d
	je	LBB0_19
## %bb.18:
	subl	8(%rbx), %r15d
LBB0_19:
	movq	48(%rbx), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_FFABS
	testl	%eax, %eax
	je	LBB0_22
## %bb.20:
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_22
## %bb.21:
	movq	16(%rbx), %rcx
	cltq
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	imull	(%rcx,%rax,4), %edx
	movq	_ff_vc1_dqscale@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	imull	(%rax,%rcx,4), %edx
	addl	$131072, %edx                   ## imm = 0x20000
	sarl	$18, %edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
LBB0_22:
	movq	24(%rbp), %r15
	movq	16(%rbp), %rcx
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_25
## %bb.23:
	movl	$1, %ebx
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_28
## %bb.24:
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	subl	%r14d, %edi
	callq	_abs
	movq	%rax, %r12
	subl	%r13d, %r14d
	movl	%r14d, %edi
	callq	_abs
	movq	16(%rbp), %rcx
	cmpq	%rax, %r12
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	jg	LBB0_26
	jmp	LBB0_28
LBB0_25:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_27
LBB0_26:
	xorl	%ebx, %ebx
	movl	%edi, %r13d
	jmp	LBB0_28
LBB0_27:
	xorl	%r13d, %r13d
	movl	$1, %ebx
LBB0_28:
	movl	%ebx, (%r15)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_29:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_vc1_dqscale,8,3             ## @ff_vc1_dqscale
	.no_dead_strip	_ff_vc1_pred_dc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ff_vc1_pred_dc
_ff_vc1_pred_dc:                        ; @ff_vc1_pred_dc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x7
	mov	x19, x6
	mov	x23, x5
	mov	x22, x4
	mov	x26, x3
	mov	x24, x0
	ldpsw	x8, x9, [x0]
	ldrsw	x10, [x0, #8]
	madd	x28, x10, x9, x8
	ldr	x8, [x0, #48]
	ldr	w0, [x8, x28, lsl #2]
	bl	_FFABS
	ldr	x8, [x24, #16]
	ldr	w8, [x8, w0, sxtw #2]
	subs	w20, w8, #1
	b.lt	LBB0_20
; %bb.1:
	mov	x25, x0
	stp	x19, x21, [sp, #8]              ; 16-byte Folded Spill
	sbfiz	x8, x26, #2, #32
	ldp	x9, x10, [x24, #24]
	ldr	w9, [x9, x8]
	ldr	x10, [x10]
	ldr	x11, [x24, #40]
	ldrsw	x8, [x11, x8]
	add	x27, x10, x8, lsl #2
	mvn	w8, w9
	ldr	w19, [x27, w8, sxtw #2]
	ldur	w8, [x27, #-4]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	neg	w8, w9
	ldr	w21, [x27, w8, sxtw #2]
	and	w8, w26, #0xfffffffd
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.2:
	cbz	w23, LBB0_5
; %bb.3:
	ldr	x8, [x24, #48]
	add	x8, x8, x28, lsl #2
	ldur	w0, [x8, #-4]
	bl	_FFABS
	cmp	w0, #0
	ccmp	w0, w25, #4, ne
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x24, #16]
	ldr	w8, [x8, w0, sxtw #2]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	mul	w8, w8, w9
Lloh0:
	adrp	x9, _ff_vc1_dqscale@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ff_vc1_dqscale@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w9, [x9, w20, uxtw #2]
	orr	w10, wzr, #0x20000
	madd	w8, w8, w9, w10
	asr	w8, w8, #18
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
LBB0_5:
	and	w8, w26, #0xfffffffe
	cmp	w8, #2
	b.eq	LBB0_9
; %bb.6:
	cbz	w22, LBB0_9
; %bb.7:
	ldr	x8, [x24, #48]
	ldr	w9, [x24, #8]
	sub	w9, w28, w9
	ldr	w0, [x8, w9, sxtw #2]
	bl	_FFABS
	cmp	w0, #0
	ccmp	w0, w25, #4, ne
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x24, #16]
	ldr	w8, [x8, w0, sxtw #2]
	mul	w8, w8, w21
Lloh3:
	adrp	x9, _ff_vc1_dqscale@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ff_vc1_dqscale@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w9, [x9, w20, uxtw #2]
	orr	w10, wzr, #0x20000
	madd	w8, w8, w9, w10
	asr	w21, w8, #18
LBB0_9:
	cmp	w26, #3
	b.eq	LBB0_16
; %bb.10:
	cbz	w22, LBB0_16
; %bb.11:
	cbz	w23, LBB0_16
; %bb.12:
	cmp	w26, #1
	cset	w8, ne
	sub	w8, w28, w8
	cmp	w26, #2
	b.eq	LBB0_14
; %bb.13:
	ldr	w9, [x24, #8]
	sub	w8, w8, w9
LBB0_14:
	ldr	x9, [x24, #48]
	ldr	w0, [x9, w8, sxtw #2]
	bl	_FFABS
	cmp	w0, #0
	ccmp	w0, w25, #4, ne
	b.eq	LBB0_16
; %bb.15:
	ldr	x8, [x24, #16]
	ldr	w8, [x8, w0, sxtw #2]
	mul	w8, w8, w19
Lloh6:
	adrp	x9, _ff_vc1_dqscale@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ff_vc1_dqscale@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w9, [x9, w20, uxtw #2]
	orr	w10, wzr, #0x20000
	madd	w8, w8, w9, w10
	asr	w19, w8, #18
LBB0_16:
	cbz	w23, LBB0_21
; %bb.17:
	cbz	w22, LBB0_23
; %bb.18:
	sub	w0, w21, w19
	bl	_abs
	mov	x22, x0
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	sub	w0, w19, w8
	mov	x19, x8
	bl	_abs
	cmp	x22, x0
	b.gt	LBB0_22
; %bb.19:
	mov	w8, #1
	mov	x21, x19
	b	LBB0_25
LBB0_20:
	mov	w21, #0
	b	LBB0_26
LBB0_21:
	cbz	w22, LBB0_24
LBB0_22:
	mov	w8, #0
	b	LBB0_25
LBB0_23:
	mov	w8, #1
	ldr	w21, [sp, #28]                  ; 4-byte Folded Reload
	b	LBB0_25
LBB0_24:
	mov	w21, #0
	mov	w8, #1
LBB0_25:
	ldp	x9, x10, [sp, #8]               ; 16-byte Folded Reload
	str	w8, [x10]
	str	x27, [x9]
LBB0_26:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_vc1_dqscale,8,3             ; @ff_vc1_dqscale
	.no_dead_strip	_ff_vc1_pred_dc
.subsections_via_symbols
