	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvi_predict
_mvi_predict:                           ## @mvi_predict
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	cmpq	$0, 24(%rdi)
	movslq	%esi, %r8
	je	LBB0_4
## %bb.1:
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.2:
	movq	16(%r15), %rax
	movl	(%r15), %ecx
	addl	%ebx, %ecx
	decl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,8), %r13d
	movl	4(%rax,%rcx,8), %ecx
	jmp	LBB0_8
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movl	4(%r15), %eax
	decl	%eax
	cmpl	%ebx, %eax
	jne	LBB0_7
LBB0_6:
	movq	16(%r15), %rax
	movl	(%rax,%r8,8), %r13d
	movl	4(%rax,%r8,8), %ecx
	jmp	LBB0_8
LBB0_3:
	movq	_zero_mv@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	4(%rax), %ecx
	jmp	LBB0_8
LBB0_7:
	movq	16(%r15), %rax
	movl	(%r15), %ecx
	addl	%ebx, %ecx
	decl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,8), %edi
	movl	4(%rax,%rcx,8), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	(%rax,%r8,8), %esi
	movl	4(%rax,%r8,8), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	8(%rax,%r8,8), %edx
	movl	12(%rax,%r8,8), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	callq	_mid_pred
	movq	%rax, %r13
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_mid_pred
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	%rax, %rcx
LBB0_8:
	movl	8(%r15), %esi
	movl	%esi, %eax
	imull	%ebx, %eax
	negl	%eax
	notl	%ebx
	addl	4(%r15), %ebx
	imull	%esi, %ebx
	cmpl	%eax, %r13d
	cmovgl	%r13d, %eax
	cmpl	%ebx, %eax
	cmovgel	%ebx, %eax
	movl	%esi, %edx
	imull	%r12d, %edx
	negl	%edx
	notl	%r12d
	addl	12(%r15), %r12d
	imull	%esi, %r12d
	cmpl	%edx, %ecx
	cmovgl	%ecx, %edx
	cmpl	%r12d, %edx
	cmovgel	%r12d, %edx
	movq	%r14, %rcx
	shrq	$32, %rcx
	addl	%eax, %r14d
	movq	16(%r15), %rsi
	movslq	(%r15), %rdi
	addq	%r8, %rdi
	movl	%r14d, (%rsi,%rdi,8)
	addl	%edx, %ecx
	movl	%ecx, 4(%rsi,%rdi,8)
	shlq	$32, %rdx
	orq	%rdx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_zero_mv,8,2                    ## @zero_mv
	.no_dead_strip	_mvi_predict
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvi_predict
_mvi_predict:                           ; @mvi_predict
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_3
; %bb.1:
	cmp	w20, #1
	b.lt	LBB0_6
; %bb.2:
	ldr	x8, [x21, #16]
	ldr	w9, [x21]
	add	w9, w20, w9
	sub	w9, w9, #1
	add	x8, x8, w9, sxtw #3
	b	LBB0_7
LBB0_3:
	cbz	w20, LBB0_5
; %bb.4:
	ldr	w8, [x21, #4]
	sub	w8, w8, #1
	cmp	w8, w20
	b.ne	LBB0_9
LBB0_5:
	ldr	x8, [x21, #16]
	add	x8, x8, w20, sxtw #3
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _zero_mv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _zero_mv@GOTPAGEOFF]
LBB0_7:
	ldp	w23, w0, [x8]
LBB0_8:
	mvn	w8, w20
	ldp	w10, w9, [x21]
	add	w8, w9, w8
	ldp	w9, w11, [x21, #8]
	mneg	w12, w9, w20
	cmp	w23, w12
	mul	w12, w9, w20
	mul	w8, w8, w9
	csneg	w12, w23, w12, gt
	cmp	w12, w8
	csel	w8, w12, w8, lt
	mul	w12, w9, w22
	mneg	w13, w9, w22
	mvn	w14, w22
	add	w11, w11, w14
	mul	w9, w11, w9
	cmp	w0, w13
	csneg	w11, w0, w12, gt
	cmp	w11, w9
	csel	w9, w11, w9, lt
	lsr	x11, x19, #32
	add	w12, w8, w19
	ldr	x13, [x21, #16]
	add	w10, w10, w20
	add	x10, x13, w10, sxtw #3
	add	w11, w9, w11
	stp	w12, w11, [x10]
	bfi	x8, x9, #32, #32
	mov	x0, x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x8, [x21, #16]
	ldr	w9, [x21]
	add	w9, w20, w9
	sub	w9, w9, #1
	add	x9, x8, w9, sxtw #3
	ldp	w0, w24, [x9]
	add	x8, x8, w20, sxtw #3
	ldp	w1, w25, [x8]
	ldp	w2, w26, [x8, #8]
	bl	_mid_pred
	mov	x23, x0
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	bl	_mid_pred
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_zero_mv,8,2                    ; @zero_mv
	.no_dead_strip	_mvi_predict
.subsections_via_symbols
