	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv34_pred_mv
_rv34_pred_mv:                          ## @rv34_pred_mv
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movl	24(%rdi), %r8d
	movl	28(%rdi), %eax
	movl	32(%rdi), %r10d
	movq	(%rdi), %rdi
	movq	_avail_indexes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%edx, %rbx
	movslq	(%rcx,%rbx,4), %rdx
	movq	_part_sizes_w@GOTPCREL(%rip), %r11
	movslq	%esi, %r14
	movl	%ebx, %ecx
	andl	$1, %ecx
	movl	%ebx, %esi
	sarl	%esi
	leal	(%rsi,%rax,2), %eax
	imull	%r10d, %eax
	leal	(%rcx,%r8,2), %r13d
	movl	$-1, %r9d
	cmpl	$3, %ebx
	je	LBB0_2
## %bb.1:
	movq	(%r11), %rcx
	movl	(%rcx,%r14,4), %r9d
LBB0_2:
	leaq	(%rdi,%rdx,4), %rbx
	addl	%eax, %r13d
	movl	-4(%rdi,%rdx,4), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.4:
	movq	40(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movslq	%r13d, %rcx
	movq	-8(%rax,%rcx,8), %rax
	movl	(%rax), %edi
	movl	4(%rax), %r11d
	cmpl	$0, -16(%rbx)
	je	LBB0_6
LBB0_9:
	movq	40(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %r8
	movl	%r13d, %eax
	subl	%r10d, %eax
	movslq	%eax, %rcx
	movq	(%r8,%rcx,8), %rcx
	movl	(%rcx), %esi
	movl	4(%rcx), %r15d
	movslq	%r9d, %rcx
	cmpl	$0, -16(%rbx,%rcx,4)
	jne	LBB0_8
## %bb.10:
	testl	%edx, %edx
	jne	LBB0_13
## %bb.11:
	cmpq	$0, 16(%r12)
	je	LBB0_12
LBB0_13:
	notl	%r10d
	addl	%r13d, %r10d
	jmp	LBB0_14
LBB0_3:
	xorl	%edi, %edi
	xorl	%r11d, %r11d
	cmpl	$0, -16(%rbx)
	jne	LBB0_9
LBB0_6:
	movslq	%r9d, %rax
	cmpl	$0, -16(%rbx,%rax,4)
	movl	%edi, %esi
	movl	%r11d, %r15d
	movl	%r11d, %eax
	movl	%edi, %edx
	je	LBB0_15
## %bb.7:
	movq	40(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %r8
	movl	%r13d, %eax
	subl	%r10d, %eax
	movl	%edi, %esi
	movl	%r11d, %r15d
LBB0_8:
	addl	%r9d, %eax
	movl	%eax, %r10d
LBB0_14:
	movslq	%r10d, %rax
	movq	(%r8,%rax,8), %rax
	movl	(%rax), %edx
	movl	4(%rax), %eax
LBB0_15:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r11d, %ebx
	callq	_mid_pred
	movl	%r15d, %esi
	movl	%eax, %r15d
	movl	%ebx, %edi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_mid_pred
	movq	_part_sizes_h@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movl	(%r8,%r14,4), %edi
	testl	%edi, %edi
	jle	LBB0_22
## %bb.16:
	movq	8(%r12), %rcx
	movslq	-44(%rbp), %rdx                 ## 4-byte Folded Reload
	movq	(%rcx,%rdx,8), %rcx
	addl	(%rcx), %r15d
	addl	8(%rcx), %eax
	movq	_part_sizes_w@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movl	(%r9,%r14,4), %ecx
	xorl	%esi, %esi
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	incl	%esi
	cmpl	%edi, %esi
	jge	LBB0_22
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	40(%r12), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	32(%r12), %ecx
	imull	%esi, %ecx
	leal	(%rbx,%r13), %edx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	movq	(%rdi,%rcx,8), %rcx
	movl	%r15d, (%rcx)
	movl	32(%r12), %ecx
	imull	%esi, %ecx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	movq	(%rdi,%rcx,8), %rcx
	movl	%eax, 4(%rcx)
	incl	%ebx
	movl	(%r9,%r14,4), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	(%r8,%r14,4), %edi
	jmp	LBB0_21
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%r11d, %eax
	movl	%edi, %edx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_avail_indexes,8,3              ## @avail_indexes
	.comm	_part_sizes_w,8,3               ## @part_sizes_w
	.comm	_part_sizes_h,8,3               ## @part_sizes_h
	.no_dead_strip	_rv34_pred_mv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv34_pred_mv
_rv34_pred_mv:                          ; @rv34_pred_mv
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	ldp	w9, w10, [x0, #24]
	ldr	w8, [x0, #32]
	lsl	w10, w10, #1
	ldr	x11, [x0]
Lloh0:
	adrp	x12, _avail_indexes@GOTPAGE
Lloh1:
	ldr	x12, [x12, _avail_indexes@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x12]
	ldrsw	x12, [x12, w2, sxtw #2]
	add	x11, x11, x12, lsl #2
Lloh3:
	adrp	x27, _part_sizes_w@GOTPAGE
Lloh4:
	ldr	x27, [x27, _part_sizes_w@GOTPAGEOFF]
	ldr	x12, [x27]
	ldr	w12, [x12, w1, sxtw #2]
	add	w10, w10, w2, asr #1
	cmp	w2, #3
	bfi	w2, w9, #1, #31
	madd	w25, w10, w8, w2
	csinv	w9, w12, wzr, ne
	ldur	w12, [x11, #-4]
	cbz	w12, LBB0_2
; %bb.1:
	ldr	x10, [x19, #40]
	ldr	x10, [x10]
	ldr	x10, [x10]
	sub	w13, w25, #1
	ldr	x10, [x10, w13, sxtw #3]
	ldp	w0, w21, [x10]
	b	LBB0_3
LBB0_2:
	mov	w0, #0
	mov	w21, #0
LBB0_3:
	sxtw	x26, w1
	ldur	w10, [x11, #-16]
	cbz	w10, LBB0_8
; %bb.4:
	ldr	x10, [x19, #40]
	ldr	x10, [x10]
	ldr	x10, [x10]
	sub	w13, w25, w8
	ldr	x14, [x10, w13, sxtw #3]
	ldp	w1, w22, [x14]
	add	x11, x11, w9, sxtw #2
	ldur	w11, [x11, #-16]
	cbnz	w11, LBB0_10
; %bb.5:
	cbnz	w12, LBB0_7
; %bb.6:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_20
LBB0_7:
	mvn	w8, w8
	add	w8, w25, w8
	b	LBB0_11
LBB0_8:
	add	x10, x11, w9, sxtw #2
	ldur	w10, [x10, #-16]
	mov	x1, x0
	mov	x22, x21
	mov	x23, x21
	mov	x2, x0
	cbz	w10, LBB0_12
; %bb.9:
	ldr	x10, [x19, #40]
	ldr	x10, [x10]
	ldr	x10, [x10]
	sub	w13, w25, w8
	mov	x1, x0
	mov	x22, x21
LBB0_10:
	add	w8, w13, w9
LBB0_11:
	ldr	x8, [x10, w8, sxtw #3]
	ldp	w2, w23, [x8]
LBB0_12:
	bl	_mid_pred
	mov	x24, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_mid_pred
Lloh5:
	adrp	x8, _part_sizes_h@GOTPAGE
Lloh6:
	ldr	x8, [x8, _part_sizes_h@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w13, [x8, x26, lsl #2]
	cmp	w13, #1
	b.lt	LBB0_19
; %bb.13:
	mov	w9, #0
	ldr	x10, [x19, #8]
	ldr	x11, [x10, w20, sxtw #3]
	ldr	w10, [x11]
	add	w10, w24, w10
	ldr	w11, [x11, #8]
	add	w11, w0, w11
	ldr	x12, [x27]
	ldr	w14, [x12, x26, lsl #2]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w9, w9, #1
	cmp	w9, w13
	b.ge	LBB0_19
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	cmp	w14, #1
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w13, #0
	ldr	x14, [x19, #40]
	ldr	x14, [x14]
	ldr	x15, [x14]
LBB0_17:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x19, #32]
	add	w16, w25, w13
	madd	w14, w9, w14, w16
	ldr	x14, [x15, w14, sxtw #3]
	str	w10, [x14]
	ldr	w14, [x19, #32]
	madd	w14, w9, w14, w16
	ldr	x14, [x15, w14, sxtw #3]
	str	w11, [x14, #4]
	add	w13, w13, #1
	ldr	w14, [x12, x26, lsl #2]
	cmp	w13, w14
	b.lt	LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w13, [x8, x26, lsl #2]
	b	LBB0_14
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	x23, x21
	mov	x2, x0
	b	LBB0_12
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_avail_indexes,8,3              ; @avail_indexes
	.comm	_part_sizes_w,8,3               ; @part_sizes_w
	.comm	_part_sizes_h,8,3               ; @part_sizes_h
	.no_dead_strip	_rv34_pred_mv
.subsections_via_symbols
