	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv34_pred_mv_b
_rv34_pred_mv_b:                        ## @rv34_pred_mv_b
	.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
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movl	16(%rdi), %r14d
	movl	20(%rdi), %ecx
	movl	24(%rdi), %eax
	imull	%ecx, %eax
	addl	%r14d, %eax
	leal	(%r14,%r14), %esi
	movl	28(%rdi), %edi
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	imull	%edi, %ecx
	leal	(%rsi,%rcx,2), %r10d
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	(%r13), %r11
	movq	40(%r13), %rsi
	testl	%edx, %edx
	jne	LBB0_1
## %bb.2:
	movq	_MB_TYPE_L0@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_MB_TYPE_L1@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	(%rsi), %rdi
	cltq
	movl	(%rdi,%rax,4), %eax
	andl	(%rcx), %eax
	xorl	%r8d, %r8d
	movslq	%edx, %r15
	movslq	%r10d, %r12
	movl	$0, %ecx
	testl	%eax, 20(%r11)
	je	LBB0_5
## %bb.4:
	movq	8(%rsi), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	-8(%rcx,%r12,8), %rcx
	movl	(%rcx), %edi
	movl	%edi, -80(%rbp)
	movl	4(%rcx), %ecx
	movl	%ecx, -76(%rbp)
	movl	$1, %ecx
LBB0_5:
	movl	8(%r11), %edi
	testl	%edi, %eax
	je	LBB0_7
## %bb.6:
	movq	%rsi, %r8
	movq	8(%rsi), %rsi
	movq	(%rsi,%r15,8), %r9
	movl	%r10d, %esi
	subl	-52(%rbp), %esi                 ## 4-byte Folded Reload
	movslq	%esi, %rsi
	movq	(%r9,%rsi,8), %rbx
	movl	(%rbx), %esi
	movl	%esi, -72(%rbp)
	movl	4(%rbx), %esi
	movl	%esi, -68(%rbp)
	movq	%r8, %rsi
	movl	$1, %r8d
LBB0_7:
	testl	%edi, %edi
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	je	LBB0_10
## %bb.8:
	testl	%eax, 16(%r11)
	je	LBB0_10
## %bb.9:
	movq	%rsi, %rbx
	movq	8(%rsi), %rax
	movq	(%rax,%r15,8), %rax
	subl	-52(%rbp), %r10d                ## 4-byte Folded Reload
	addl	$2, %r10d
	jmp	LBB0_14
LBB0_10:
	incl	%r14d
	xorl	%r9d, %r9d
	cmpl	32(%r13), %r14d
	jne	LBB0_11
## %bb.12:
	movq	%rsi, %rbx
	testl	%eax, 4(%r11)
	je	LBB0_15
## %bb.13:
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	notl	%edx
	addl	%edx, %r10d
LBB0_14:
	movslq	%r10d, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	(%rax), %edx
	movl	%edx, -64(%rbp)
	movl	4(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	$1, %r9d
	jmp	LBB0_15
LBB0_11:
	movq	%rsi, %rbx
LBB0_15:
	leaq	-44(%rbp), %rax
	leaq	-48(%rbp), %r10
	leaq	-80(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	pushq	%rax
	pushq	%r10
	callq	_rv34_pred_b_vector
	addq	$16, %rsp
	movq	8(%r13), %rax
	movq	(%rax,%r15,8), %rax
	movl	-48(%rbp), %edx
	addl	(%rax), %edx
	movl	%edx, -48(%rbp)
	movl	8(%rax), %eax
	addl	%eax, -44(%rbp)
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rcx
	movq	(%rcx,%r12,8), %rsi
	movl	%edx, (%rsi)
	movl	-44(%rbp), %edx
	movl	%edx, 4(%rsi)
	movl	-48(%rbp), %edx
	movq	%r12, %rsi
	orq	$1, %rsi
	movq	(%rcx,%rsi,8), %rdi
	movl	%edx, (%rdi)
	movl	-44(%rbp), %edx
	movl	%edx, 4(%rdi)
	movl	-48(%rbp), %edx
	movslq	28(%r13), %rdi
	addq	%r12, %rdi
	movq	(%rcx,%rdi,8), %rdi
	movl	%edx, (%rdi)
	movl	-44(%rbp), %edx
	movslq	28(%r13), %rdi
	addq	%r12, %rdi
	movq	(%rcx,%rdi,8), %rdi
	movl	%edx, 4(%rdi)
	movl	-48(%rbp), %edx
	movslq	28(%r13), %rdi
	addq	%rsi, %rdi
	movq	(%rcx,%rdi,8), %rdi
	movl	%edx, (%rdi)
	movl	-44(%rbp), %edx
	movslq	28(%r13), %rdi
	addq	%rsi, %rdi
	movq	(%rcx,%rdi,8), %rcx
	movl	%edx, 4(%rcx)
	movq	_RV34_MB_B_BACKWARD@GOTPCREL(%rip), %rcx
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	_RV34_MB_B_FORWARD@GOTPCREL(%rip), %rcx
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, (%rcx)
	jne	LBB0_18
LBB0_17:
	xorl	%ecx, %ecx
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	sete	%cl
	movq	(%rax,%rcx,8), %rax
	movq	(%rax,%r12,8), %rdi
	movl	28(%r13), %esi
	callq	_ZERO8x2
LBB0_18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_TYPE_L1,4,2                 ## @MB_TYPE_L1
	.comm	_MB_TYPE_L0,4,2                 ## @MB_TYPE_L0
	.comm	_RV34_MB_B_BACKWARD,4,2         ## @RV34_MB_B_BACKWARD
	.comm	_RV34_MB_B_FORWARD,4,2          ## @RV34_MB_B_FORWARD
	.no_dead_strip	_rv34_pred_mv_b
.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_b
_rv34_pred_mv_b:                        ; @rv34_pred_mv_b
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldp	w9, w10, [x0, #16]
	ldp	w11, w8, [x0, #24]
	madd	w11, w11, w10, w9
	mul	w10, w10, w8
	lsl	w10, w10, #1
	add	w22, w10, w9, lsl #1
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
	ldr	x23, [x0, #40]
Lloh0:
	adrp	x10, _MB_TYPE_L1@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MB_TYPE_L1@GOTPAGEOFF]
Lloh2:
	adrp	x12, _MB_TYPE_L0@GOTPAGE
Lloh3:
	ldr	x12, [x12, _MB_TYPE_L0@GOTPAGEOFF]
	cmp	w2, #0
	csel	x10, x12, x10, eq
	ldr	w12, [x10]
	ldr	x10, [x23]
	ldr	w11, [x10, w11, sxtw #2]
	ldr	x10, [x0]
	ldr	w13, [x10, #20]
	and	w11, w11, w12
	tst	w11, w13
	b.eq	LBB0_2
; %bb.1:
	ldr	x12, [x23, #8]
	ldr	x12, [x12, w20, sxtw #3]
	add	x12, x12, w22, sxtw #3
	ldur	x12, [x12, #-8]
	ldr	d0, [x12]
	str	d0, [sp, #24]
	mov	w3, #1
	b	LBB0_3
LBB0_2:
	mov	w3, #0
LBB0_3:
	ldr	w12, [x10, #8]
	tst	w11, w12
	b.eq	LBB0_5
; %bb.4:
	ldr	x13, [x23, #8]
	ldr	x13, [x13, w20, sxtw #3]
	sub	w14, w22, w8
	ldr	x13, [x13, w14, sxtw #3]
	ldr	d0, [x13]
	str	d0, [sp, #16]
	mov	w4, #1
	cbnz	w12, LBB0_6
	b	LBB0_8
LBB0_5:
	mov	w4, #0
	cbz	w12, LBB0_8
LBB0_6:
	ldr	w12, [x10, #16]
	tst	w11, w12
	b.eq	LBB0_8
; %bb.7:
	ldr	x9, [x23, #8]
	ldr	x9, [x9, w20, sxtw #3]
	sub	w8, w22, w8
	add	w8, w8, #2
	b	LBB0_11
LBB0_8:
	add	w9, w9, #1
	ldr	w12, [x19, #32]
	cmp	w9, w12
	b.ne	LBB0_12
; %bb.9:
	ldr	w9, [x10, #4]
	tst	w11, w9
	b.eq	LBB0_12
; %bb.10:
	ldr	x9, [x23, #8]
	ldr	x9, [x9, w20, sxtw #3]
	mvn	w8, w8
	add	w8, w22, w8
LBB0_11:
	ldr	x8, [x9, w8, sxtw #3]
	ldp	w9, w8, [x8]
	stp	w9, w8, [sp, #8]
	mov	w5, #1
	b	LBB0_13
LBB0_12:
	mov	w5, #0
LBB0_13:
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #8
	add	x6, sp, #4
	mov	x7, sp
	bl	_rv34_pred_b_vector
	ldr	x8, [x19, #8]
	sbfiz	x9, x20, #3, #32
	ldr	x8, [x8, x9]
	ldr	w10, [x8]
	ldr	w11, [sp, #4]
	add	w10, w11, w10
	ldr	w8, [x8, #8]
	ldr	w11, [sp]
	add	w11, w11, w8
	ldr	x8, [x23, #8]
	ldr	x12, [x8, x9]
	stp	w11, w10, [sp]
	sxtw	x9, w22
	ldr	x11, [x12, w22, sxtw #3]
	str	w10, [x11]
	ldr	w10, [sp]
	str	w10, [x11, #4]
	ldr	w10, [sp, #4]
	orr	x11, x9, #0x1
	ldr	x13, [x12, x11, lsl #3]
	str	w10, [x13]
	ldr	w10, [sp]
	str	w10, [x13, #4]
	ldr	w10, [x19, #28]
	add	w10, w10, w22
	ldr	x10, [x12, w10, sxtw #3]
	ldr	w13, [sp, #4]
	str	w13, [x10]
	ldr	w10, [x19, #28]
	add	w10, w10, w22
	ldr	x10, [x12, w10, sxtw #3]
	ldr	w13, [sp]
	str	w13, [x10, #4]
	ldr	w10, [x19, #28]
	add	w10, w10, w11
	ldr	x10, [x12, w10, sxtw #3]
	ldr	w13, [sp, #4]
	str	w13, [x10]
	ldr	w10, [x19, #28]
	add	w10, w10, w11
	ldr	x10, [x12, w10, sxtw #3]
	ldr	w11, [sp]
	str	w11, [x10, #4]
Lloh4:
	adrp	x10, _RV34_MB_B_BACKWARD@GOTPAGE
Lloh5:
	ldr	x10, [x10, _RV34_MB_B_BACKWARD@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	cmp	w10, w21
	b.eq	LBB0_15
; %bb.14:
Lloh7:
	adrp	x10, _RV34_MB_B_FORWARD@GOTPAGE
Lloh8:
	ldr	x10, [x10, _RV34_MB_B_FORWARD@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	cmp	w10, w21
	b.ne	LBB0_16
LBB0_15:
	cmp	w20, #0
	cset	w10, eq
	ldr	x8, [x8, w10, uxtw #3]
	ldr	x0, [x8, x9, lsl #3]
	ldr	w1, [x19, #28]
	bl	_ZERO8x2
LBB0_16:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_TYPE_L1,4,2                 ; @MB_TYPE_L1
	.comm	_MB_TYPE_L0,4,2                 ; @MB_TYPE_L0
	.comm	_RV34_MB_B_BACKWARD,4,2         ; @RV34_MB_B_BACKWARD
	.comm	_RV34_MB_B_FORWARD,4,2          ; @RV34_MB_B_FORWARD
	.no_dead_strip	_rv34_pred_mv_b
.subsections_via_symbols
