	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_msmpeg4_pred_dc             ## -- Begin function ff_msmpeg4_pred_dc
	.p2align	4, 0x90
_ff_msmpeg4_pred_dc:                    ## @ff_msmpeg4_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%esi, %r9d
	movq	%rdi, %r10
	xorl	%eax, %eax
	cmpl	$4, %esi
	setge	%al
	movl	(%rdi,%rax,4), %esi
	movslq	%r9d, %rdx
	movq	8(%rdi), %rax
	movq	16(%rdi), %rdi
	movslq	(%rax,%rdx,4), %rbx
	movq	(%rdi), %r8
	movq	24(%r10), %rdi
	movslq	(%rdi,%rdx,4), %r11
	leaq	(%r8,%r11,4), %rax
	movq	%rbx, %rdi
	notq	%rdi
	movl	(%rax,%rdi,4), %r12d
	shlq	$2, %rbx
	movq	%rax, %rdi
	subq	%rbx, %rdi
	movl	(%rdi), %r14d
	testb	$2, %dl
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 80(%r10)
	je	LBB0_3
## %bb.2:
	cmpl	$4, 32(%r10)
	movl	$1024, %edx                     ## imm = 0x400
	cmovll	%edx, %r14d
	cmovll	%edx, %r12d
LBB0_3:
	movl	-4(%r8,%r11,4), %r15d
	cmpl	$8, %esi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_5
## %bb.4:
	leal	4(%r15), %eax
	addl	$11, %r15d
	testl	%eax, %eax
	cmovnsl	%eax, %r15d
	sarl	$3, %r15d
	leal	4(%r12), %eax
	addl	$11, %r12d
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	sarl	$3, %r12d
	leal	4(%r14), %eax
	addl	$11, %r14d
	testl	%eax, %eax
	cmovnsl	%eax, %r14d
	sarl	$3, %r14d
	cmpl	$4, 32(%r10)
	jge	LBB0_7
LBB0_30:
	movl	%r15d, %edi
	subl	%r12d, %edi
	callq	_abs
	movq	%rax, %rbx
	subl	%r14d, %r12d
	movl	%r12d, %edi
	callq	_abs
	cmpq	%rax, %rbx
	setle	%cl
	cmovgl	%r15d, %r14d
LBB0_31:
	movl	%r14d, %r15d
	jmp	LBB0_32
LBB0_5:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	sarl	%r13d
	addl	%r13d, %r15d
	movl	%r15d, %edi
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r10, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	callq	_FASTDIV
	movl	%eax, %r15d
	addl	%r13d, %r12d
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_FASTDIV
	movl	%eax, %r12d
	addl	%r13d, %r14d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_FASTDIV
	movq	%rbx, %rsi
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movl	%eax, %r14d
	cmpl	$4, 32(%r10)
	jl	LBB0_30
LBB0_7:
	cmpq	$0, 72(%r10)
	je	LBB0_29
## %bb.8:
	cmpl	$1, %r9d
	je	LBB0_9
## %bb.10:
	cmpl	$3, %r9d
	je	LBB0_29
## %bb.11:
	cmpl	$2, %r9d
	jne	LBB0_13
## %bb.12:
	movb	$1, %cl
	jmp	LBB0_31
LBB0_29:
	movl	%r15d, %edi
	subl	%r12d, %edi
	callq	_abs
	movq	%rax, %rbx
	subl	%r14d, %r12d
	movl	%r12d, %edi
	callq	_abs
	cmpq	%rax, %rbx
	setl	%cl
	cmovll	%r14d, %r15d
	jmp	LBB0_32
LBB0_9:
	xorl	%ecx, %ecx
LBB0_32:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_33:
	movzbl	%cl, %eax
	movl	%eax, (%rdx)
	movq	%rsi, (%r13)
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	56(%r10), %rax
	movl	(%rax), %ecx
	movl	$8, %r14d
	shrq	%cl, %r14
	cmpl	$3, %r9d
	jg	LBB0_15
## %bb.14:
	movl	36(%r10), %r11d
	movl	40(%r10), %ebx
	movq	64(%r10), %rax
	movq	(%rax), %rdx
	movl	%r9d, %eax
	sarl	%eax
	leal	(%rax,%rbx,2), %eax
	movl	%r11d, %edi
	imull	%r14d, %edi
	imull	%eax, %edi
	movslq	%edi, %rax
	shlq	$2, %rax
	addq	(%rdx), %rax
	movl	%r9d, %edx
	andl	$1, %edx
	movl	44(%r10), %edi
	leal	(%rdx,%rdi,2), %edx
	jmp	LBB0_16
LBB0_15:
	movl	48(%r10), %r11d
	movq	64(%r10), %rax
	movq	(%rax), %r8
	leal	-3(%r9), %edi
	movl	40(%r10), %ebx
	movl	44(%r10), %edx
	movl	%r11d, %eax
	imull	%r14d, %eax
	imull	%ebx, %eax
	cltq
	shlq	$2, %rax
	addq	(%r8,%rdi,8), %rax
	movl	%edx, %edi
LBB0_16:
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	imull	%r14d, %edx
	movslq	%edx, %rdx
	leaq	(%rax,%rdx,4), %r12
	testl	%edi, %edi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	%r11d, -72(%rbp)                ## 4-byte Spill
	je	LBB0_17
## %bb.18:
	movq	%r14, %rax
	shlq	$2, %rax
	movq	%r12, %rdi
	subq	%rax, %rdi
	leal	(,%rsi,8), %edx
	addl	%ecx, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edx
	movl	%r11d, %esi
	movl	%r14d, %ecx
	movq	%r10, %rbx
	callq	_get_dc
	movq	%rbx, %r10
	movl	%eax, %r15d
	movl	40(%rbx), %ebx
	testl	%ebx, %ebx
	je	LBB0_20
LBB0_21:
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %eax
	imull	%r14d, %eax
	cltq
	shlq	$2, %rax
	subq	%rax, %r12
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	shll	$3, %edx
	movq	56(%r10), %rax
	movb	(%rax), %cl
	addb	%cl, %cl
	sarl	%cl, %edx
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r14d, %ecx
	movq	%r10, %rbx
	callq	_get_dc
	movq	%rbx, %r10
	jmp	LBB0_22
LBB0_17:
	movl	%esi, %eax
	sarl	%eax
	addl	$1024, %eax                     ## imm = 0x400
	cltd
	idivl	%esi
	movl	%eax, %r15d
	testl	%ebx, %ebx
	jne	LBB0_21
LBB0_20:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %eax
	sarl	%eax
	addl	$1024, %eax                     ## imm = 0x400
	cltd
	idivl	%ecx
LBB0_22:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	52(%r10), %ecx
	testl	%ecx, %ecx
	je	LBB0_23
## %bb.24:
	cmpl	$2, %ecx
	je	LBB0_27
## %bb.25:
	cmpl	$1, %ecx
	jne	LBB0_28
## %bb.26:
	testl	%ebx, %ebx
	sete	%cl
	cmovel	%eax, %r15d
	jmp	LBB0_33
LBB0_23:
	xorl	%ecx, %ecx
	jmp	LBB0_33
LBB0_27:
	testl	%ebx, %ebx
	setne	%cl
	cmovel	%r15d, %eax
	movl	%eax, %r15d
	jmp	LBB0_33
LBB0_28:
	movb	$1, %cl
	movl	%eax, %r15d
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_msmpeg4_pred_dc             ; -- Begin function ff_msmpeg4_pred_dc
	.p2align	2
_ff_msmpeg4_pred_dc:                    ; @ff_msmpeg4_pred_dc
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	cmp	w1, #3
	cset	w8, gt
	ldr	w23, [x0, w8, uxtw #2]
	sbfiz	x8, x21, #2, #32
	ldp	x9, x10, [x0, #8]
	ldr	w9, [x9, x8]
	ldr	x10, [x10]
	ldr	x11, [x0, #24]
	ldrsw	x8, [x11, x8]
	add	x27, x10, x8, lsl #2
	mvn	w8, w9
	ldr	w26, [x27, w8, sxtw #2]
	neg	w8, w9
	ldr	w25, [x27, w8, sxtw #2]
	tbnz	w1, #1, LBB0_3
; %bb.1:
	ldr	x8, [x22, #80]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x22, #32]
	mov	w9, #1024
	cmp	w8, #4
	csel	w25, w9, w25, lt
	csel	w26, w9, w26, lt
LBB0_3:
	ldur	w8, [x27, #-4]
	cmp	w23, #8
	b.ne	LBB0_5
; %bb.4:
	add	w9, w8, #4
	add	w8, w8, #11
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w24, w8, #3
	add	w8, w26, #4
	add	w9, w26, #11
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w26, w8, #3
	add	w8, w25, #4
	add	w9, w25, #11
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w25, w8, #3
	b	LBB0_6
LBB0_5:
	asr	w28, w23, #1
	add	w0, w8, w28
	mov	x1, x23
	bl	_FASTDIV
	mov	x24, x0
	add	w0, w26, w28
	mov	x1, x23
	bl	_FASTDIV
	mov	x26, x0
	add	w0, w25, w28
	mov	x1, x23
	bl	_FASTDIV
	mov	x25, x0
LBB0_6:
	ldr	w8, [x22, #32]
	cmp	w8, #4
	b.lt	LBB0_12
; %bb.7:
	ldr	x8, [x22, #72]
	cbz	x8, LBB0_13
; %bb.8:
	cmp	w21, #1
	b.eq	LBB0_14
; %bb.9:
	cmp	w21, #3
	b.eq	LBB0_13
; %bb.10:
	cmp	w21, #2
	b.ne	LBB0_15
; %bb.11:
	mov	w8, #1
	mov	x24, x25
	b	LBB0_24
LBB0_12:
	sub	w0, w24, w26
	bl	_abs
	mov	x21, x0
	sub	w0, w26, w25
	bl	_abs
	cmp	x21, x0
	cset	w8, le
	csel	w24, w24, w25, gt
	b	LBB0_24
LBB0_13:
	sub	w0, w24, w26
	bl	_abs
	mov	x21, x0
	sub	w0, w26, w25
	bl	_abs
	cmp	x21, x0
	cset	w8, lt
	csel	w24, w25, w24, lt
	b	LBB0_24
LBB0_14:
	mov	w8, #0
	b	LBB0_24
LBB0_15:
	ldr	x8, [x22, #56]
	ldr	w8, [x8]
	mov	w9, #8
	lsr	x24, x9, x8
	subs	w9, w21, #3
	b.gt	LBB0_17
; %bb.16:
	ldr	x9, [x22, #64]
	ldr	x9, [x9]
	ldr	x10, [x9]
	ldp	w1, w9, [x22, #36]
	lsl	w11, w9, #1
	add	w11, w11, w21, asr #1
	mul	w12, w1, w24
	mul	w11, w12, w11
	add	x10, x10, w11, sxtw #2
	ldr	w12, [x22, #44]
	mov	x11, x21
	bfi	w11, w12, #1, #31
	b	LBB0_18
LBB0_17:
	ldp	w11, w1, [x22, #44]
	ldr	x10, [x22, #64]
	ldr	x10, [x10]
	ldr	x10, [x10, w9, uxtw #3]
	mul	w12, w1, w24
	ldr	w9, [x22, #40]
	mul	w12, w12, w9
	add	x10, x10, w12, sxtw #2
	mov	x12, x11
LBB0_18:
	mul	w11, w11, w24
	add	x25, x10, w11, sxtw #2
	lsl	w28, w23, #3
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	cbz	w12, LBB0_21
; %bb.19:
	sub	x0, x25, x24, lsl #2
	lsl	w8, w8, #1
	asr	w2, w28, w8
	mov	x3, x24
	bl	_get_dc
	mov	x26, x0
	ldr	w9, [x22, #40]
	cbz	w9, LBB0_22
LBB0_20:
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mul	w8, w1, w24
	sub	x0, x25, w8, sxtw #2
	ldr	x8, [x22, #56]
	ldr	w8, [x8]
	lsl	w8, w8, #1
	asr	w2, w28, w8
	mov	x3, x24
	bl	_get_dc
	b	LBB0_23
LBB0_21:
	asr	w8, w23, #1
	add	w8, w8, #1024
	sdiv	w26, w8, w23
	cbnz	w9, LBB0_20
LBB0_22:
	asr	w8, w23, #1
	add	w8, w8, #1024
	sdiv	w0, w8, w23
LBB0_23:
	ldr	w8, [x22, #52]
	cmp	w21, #0
	csel	w9, w26, w0, eq
	cset	w10, ne
	mov	w11, #1
	cmp	w21, #0
	csel	w12, w0, w26, eq
	cset	w13, eq
	cmp	w8, #1
	csel	w11, w11, w13, ne
	csel	w12, w0, w12, ne
	cmp	w8, #2
	csel	w10, w10, w11, eq
	csel	w9, w9, w12, eq
	cmp	w8, #0
	csel	w8, wzr, w10, eq
	csel	w24, w26, w9, eq
LBB0_24:
	str	w8, [x20]
	str	x27, [x19]
	mov	x0, x24
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
