	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv34_pred_mv_rv3
_rv34_pred_mv_rv3:                      ## @rv34_pred_mv_rv3
	.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
	movq	%rdi, %r12
	movslq	16(%rdi), %rcx
	addq	%rcx, %rcx
	movslq	20(%rdi), %rdx
	movslq	24(%rdi), %rax
	imulq	%rax, %rdx
	leaq	(%rcx,%rdx,2), %r10
	movq	(%rdi), %rdx
	movq	_avail_indexes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rcx), %rcx
	movl	-4(%rdx,%rcx,4), %r9d
	testl	%r9d, %r9d
	je	LBB0_1
## %bb.2:
	movq	32(%r12), %rsi
	movq	(%rsi), %rsi
	movq	(%rsi), %rsi
	movq	-8(%rsi,%r10,8), %rsi
	movl	(%rsi), %edi
	movl	4(%rsi), %r15d
	cmpl	$0, -16(%rdx,%rcx,4)
	je	LBB0_4
LBB0_7:
	movq	32(%r12), %rsi
	movq	(%rsi), %rsi
	movq	(%rsi), %r8
	movl	%r10d, %esi
	subl	%eax, %esi
	movslq	%esi, %rsi
	movq	(%r8,%rsi,8), %rbx
	movl	(%rbx), %esi
	movl	4(%rbx), %r14d
	cmpl	$0, -8(%rdx,%rcx,4)
	jne	LBB0_6
## %bb.8:
	testl	%r9d, %r9d
	je	LBB0_9
## %bb.10:
	notl	%eax
	addl	%r10d, %eax
	movl	%eax, %ecx
	jmp	LBB0_11
LBB0_1:
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	cmpl	$0, -16(%rdx,%rcx,4)
	jne	LBB0_7
LBB0_4:
	cmpl	$0, -8(%rdx,%rcx,4)
	movl	%edi, %esi
	movl	%r15d, %r14d
	movl	%r15d, %r13d
	movl	%edi, %edx
	je	LBB0_12
## %bb.5:
	movq	32(%r12), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %r8
	movl	%edi, %esi
	movl	%r15d, %r14d
LBB0_6:
	movl	%r10d, %ecx
	subl	%eax, %ecx
	addl	$2, %ecx
LBB0_11:
	movslq	%ecx, %rax
	movq	(%r8,%rax,8), %rax
	movl	(%rax), %edx
	movl	4(%rax), %r13d
LBB0_12:
	movq	%r10, -48(%rbp)                 ## 8-byte Spill
	callq	_mid_pred
	movl	%eax, %ebx
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_mid_pred
	movq	8(%r12), %rcx
	movq	(%rcx), %rcx
	addl	(%rcx), %ebx
	movq	32(%r12), %rdx
	addl	8(%rcx), %eax
	movq	(%rdx), %rcx
	movq	(%rcx), %rdx
	movslq	-48(%rbp), %rdi                 ## 4-byte Folded Reload
	movq	(%rdx,%rdi,8), %rsi
	movl	%ebx, (%rsi)
	movl	%eax, 4(%rsi)
	movq	8(%rcx), %r8
	movq	(%r8,%rdi,8), %rsi
	movl	%ebx, (%rsi)
	movl	%eax, 4(%rsi)
	movq	%rdi, %rsi
	orq	$1, %rsi
	movq	(%rdx,%rsi,8), %rcx
	movl	%ebx, (%rcx)
	movl	%eax, 4(%rcx)
	movq	(%r8,%rsi,8), %rcx
	movl	%ebx, (%rcx)
	movl	%eax, 4(%rcx)
	movslq	24(%r12), %rcx
	addq	%rdi, %rcx
	movq	(%rdx,%rcx,8), %rcx
	movl	%ebx, (%rcx)
	movslq	24(%r12), %rcx
	addq	%rdi, %rcx
	movq	(%rdx,%rcx,8), %rcx
	movl	%eax, 4(%rcx)
	movslq	24(%r12), %rcx
	addq	%rdi, %rcx
	movq	(%r8,%rcx,8), %rcx
	movl	%ebx, (%rcx)
	movslq	24(%r12), %rcx
	addq	%rdi, %rcx
	movq	(%r8,%rcx,8), %rcx
	movl	%eax, 4(%rcx)
	movslq	24(%r12), %rcx
	addq	%rsi, %rcx
	movq	(%rdx,%rcx,8), %rcx
	movl	%ebx, (%rcx)
	movslq	24(%r12), %rcx
	addq	%rsi, %rcx
	movq	(%rdx,%rcx,8), %rcx
	movl	%eax, 4(%rcx)
	movslq	24(%r12), %rcx
	addq	%rsi, %rcx
	movq	(%r8,%rcx,8), %rcx
	movl	%ebx, (%rcx)
	movslq	24(%r12), %rcx
	addq	%rsi, %rcx
	movq	(%r8,%rcx,8), %rcx
	movl	%eax, 4(%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%r15d, %r13d
	movl	%edi, %edx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_avail_indexes,8,3              ## @avail_indexes
	.no_dead_strip	_rv34_pred_mv_rv3
.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_rv3
_rv34_pred_mv_rv3:                      ; @rv34_pred_mv_rv3
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldpsw	x9, x10, [x0, #16]
	ldrsw	x8, [x0, #24]
	mul	x10, x10, x8
	lsl	x10, x10, #1
	add	x24, x10, x9, lsl #1
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _avail_indexes@GOTPAGE
Lloh1:
	ldr	x10, [x10, _avail_indexes@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldrsw	x10, [x10]
	add	x11, x9, x10, lsl #2
	ldur	w10, [x11, #-4]
	cbz	w10, LBB0_5
; %bb.1:
	ldr	x9, [x19, #32]
	ldr	x9, [x9]
	ldr	x9, [x9]
	add	x9, x9, x24, lsl #3
	ldur	x9, [x9, #-8]
	ldp	w0, w20, [x9]
	ldur	w9, [x11, #-16]
	cbz	w9, LBB0_6
LBB0_2:
	ldr	x9, [x19, #32]
	ldr	x9, [x9]
	ldr	x9, [x9]
	sub	w12, w24, w8
	ldr	x12, [x9, w12, sxtw #3]
	ldp	w1, w21, [x12]
	ldur	w11, [x11, #-8]
	cbnz	w11, LBB0_8
; %bb.3:
	cbz	w10, LBB0_11
; %bb.4:
	mvn	w8, w8
	add	w8, w24, w8
	b	LBB0_9
LBB0_5:
	mov	w20, #0
	mov	w0, #0
	ldur	w9, [x11, #-16]
	cbnz	w9, LBB0_2
LBB0_6:
	ldur	w9, [x11, #-8]
	mov	x1, x0
	mov	x21, x20
	mov	x22, x20
	mov	x2, x0
	cbz	w9, LBB0_10
; %bb.7:
	ldr	x9, [x19, #32]
	ldr	x9, [x9]
	ldr	x9, [x9]
	mov	x1, x0
	mov	x21, x20
LBB0_8:
	sub	w8, w24, w8
	add	w8, w8, #2
LBB0_9:
	ldr	x8, [x9, w8, sxtw #3]
	ldp	w2, w22, [x8]
LBB0_10:
	bl	_mid_pred
	mov	x23, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_mid_pred
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w9, [x8]
	add	w9, w23, w9
	ldr	w8, [x8, #8]
	add	w8, w0, w8
	ldr	x10, [x19, #32]
	ldr	x10, [x10]
	mov	x11, x24
	sxtw	x12, w11
	sbfiz	x11, x11, #3, #32
	ldp	x13, x10, [x10]
	ldr	x14, [x13, x11]
	stp	w9, w8, [x14]
	ldr	x11, [x10, x11]
	stp	w9, w8, [x11]
	orr	x11, x12, #0x1
	lsl	x12, x11, #3
	ldr	x14, [x13, x12]
	stp	w9, w8, [x14]
	ldr	x12, [x10, x12]
	stp	w9, w8, [x12]
	ldr	w12, [x19, #24]
	add	w12, w12, w24
	ldr	x12, [x13, w12, sxtw #3]
	str	w9, [x12]
	ldr	w12, [x19, #24]
	add	w12, w12, w24
	ldr	x12, [x13, w12, sxtw #3]
	str	w8, [x12, #4]
	ldr	w12, [x19, #24]
	add	w12, w12, w24
	ldr	x12, [x10, w12, sxtw #3]
	str	w9, [x12]
	ldr	w12, [x19, #24]
	add	w12, w12, w24
	ldr	x12, [x10, w12, sxtw #3]
	str	w8, [x12, #4]
	ldr	w12, [x19, #24]
	add	w12, w12, w11
	ldr	x12, [x13, w12, sxtw #3]
	str	w9, [x12]
	ldr	w12, [x19, #24]
	add	w12, w12, w11
	ldr	x12, [x13, w12, sxtw #3]
	str	w8, [x12, #4]
	ldr	w12, [x19, #24]
	add	w12, w12, w11
	ldr	x12, [x10, w12, sxtw #3]
	str	w9, [x12]
	ldr	w9, [x19, #24]
	add	w9, w9, w11
	ldr	x9, [x10, w9, sxtw #3]
	str	w8, [x9, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x22, x20
	mov	x2, x0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_avail_indexes,8,3              ; @avail_indexes
	.no_dead_strip	_rv34_pred_mv_rv3
.subsections_via_symbols
