	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_pred_median
_mv_pred_median:                        ## @mv_pred_median
	.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	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %rcx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	8(%rsi), %r8d
	leaq	-56(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	callq	_scale_mv
	movl	8(%r12), %r8d
	leaq	-64(%rbp), %rbx
	leaq	-60(%rbp), %r13
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_scale_mv
	movl	8(%r12), %r8d
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_scale_mv
	movl	-56(%rbp), %r8d
	movl	-64(%rbp), %edx
	movl	%r8d, %ecx
	subl	%edx, %ecx
	movl	%ecx, %esi
	negl	%esi
	cmovsl	%ecx, %esi
	movl	-52(%rbp), %r9d
	movl	-60(%rbp), %edi
	movl	%r9d, %ecx
	subl	%edi, %ecx
	movl	%ecx, %r14d
	negl	%r14d
	cmovsl	%ecx, %r14d
	addl	%esi, %r14d
	movl	-48(%rbp), %ecx
	subl	%ecx, %edx
	movl	%edx, %esi
	negl	%esi
	cmovsl	%edx, %esi
	movl	-44(%rbp), %eax
	subl	%eax, %edi
	movl	%edi, %r15d
	negl	%r15d
	cmovsl	%edi, %r15d
	addl	%esi, %r15d
	subl	%r8d, %ecx
	movl	%ecx, %esi
	negl	%esi
	cmovsl	%ecx, %esi
	subl	%r9d, %eax
	movl	%eax, %edx
	negl	%edx
	cmovsl	%eax, %edx
	addl	%esi, %edx
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_mid_pred
	cmpl	%r15d, %eax
	leaq	-56(%rbp), %rcx
	cmoveq	%rcx, %rbx
	leaq	-52(%rbp), %rcx
	cmoveq	%rcx, %r13
	cmpl	%r14d, %eax
	leaq	-48(%rbp), %rax
	cmoveq	%rax, %rbx
	leaq	-44(%rbp), %rax
	cmoveq	%rax, %r13
	movl	(%rbx), %eax
	movl	%eax, (%r12)
	movl	(%r13), %eax
	movl	%eax, 4(%r12)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mv_pred_median
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_pred_median
_mv_pred_median:                        ; @mv_pred_median
	.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	x20, x4
	mov	x21, x3
	mov	x3, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w4, [x1, #8]
	add	x23, sp, #28
	add	x24, sp, #24
	add	x1, sp, #28
	add	x2, sp, #24
	bl	_scale_mv
	ldr	w4, [x19, #8]
	add	x25, sp, #20
	add	x26, sp, #16
	add	x1, sp, #20
	add	x2, sp, #16
	mov	x0, x22
	mov	x3, x21
	bl	_scale_mv
	ldr	w4, [x19, #8]
	add	x27, sp, #12
	add	x28, sp, #8
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x22
	mov	x3, x20
	bl	_scale_mv
	ldp	w11, w8, [sp, #24]
	ldp	w12, w9, [sp, #16]
	subs	w10, w8, w9
	cneg	w10, w10, mi
	subs	w13, w11, w12
	cneg	w13, w13, mi
	add	w20, w13, w10
	ldp	w13, w10, [sp, #8]
	subs	w9, w9, w10
	cneg	w9, w9, mi
	subs	w12, w12, w13
	cneg	w12, w12, mi
	add	w21, w12, w9
	subs	w8, w10, w8
	cneg	w8, w8, mi
	subs	w9, w13, w11
	cneg	w9, w9, mi
	add	w2, w9, w8
	mov	x0, x20
	mov	x1, x21
	bl	_mid_pred
	cmp	w0, w21
	csel	x8, x23, x25, eq
	csel	x9, x24, x26, eq
	cmp	w0, w20
	csel	x8, x27, x8, eq
	csel	x9, x28, x9, eq
	ldr	w8, [x8]
	ldr	w9, [x9]
	stp	w8, w9, [x19]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mv_pred_median
.subsections_via_symbols
