	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_cavs_mv                     ## -- Begin function ff_cavs_mv
	.p2align	4, 0x90
_ff_cavs_mv:                            ## @ff_cavs_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r10d
	movl	%ecx, %r15d
	movl	%edx, %eax
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movl	%esi, %r12d
	shlq	$4, %r12
	leal	-1(%rsi), %edx
	shlq	$4, %rdx
	leal	-4(%rsi), %r11d
	shlq	$4, %r11
	movl	%eax, %eax
	shlq	$4, %rax
	movl	%r9d, (%r14,%r12)
	movq	16(%rdi), %rcx
	movslq	%r9d, %rbx
	movl	(%rcx,%rbx,4), %ecx
	movl	%ecx, 12(%r14,%r12)
	movq	_MV_BWD_X3@GOTPCREL(%rip), %rcx
	leal	-5(%rsi), %edi
	shlq	$4, %rdi
	addq	%r14, %rdi
	cmpl	%esi, (%rcx)
	leaq	(%r14,%rax), %r8
	movq	_MV_FWD_X3@GOTPCREL(%rip), %rcx
	cmoveq	%rdi, %r8
	cmpl	%esi, (%rcx)
	leaq	(%r14,%r12), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movslq	(%r14,%rax), %rax
	movq	_NOT_AVAIL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	cmoveq	%rdi, %r8
	cmpq	%rax, %rbx
	leaq	(%r14,%r11), %rcx
	cmoveq	%rdi, %r8
	movq	_MV_PRED_PSKIP@GOTPCREL(%rip), %rdi
	movslq	(%r14,%rdx), %rax
	cmpl	%r15d, (%rdi)
	jne	LBB0_7
## %bb.1:
	movq	_un_mv@GOTPCREL(%rip), %rsi
	cmpq	%rax, %rbx
	je	LBB0_23
## %bb.2:
	movl	%r10d, -44(%rbp)                ## 4-byte Spill
	movslq	(%rcx), %r10
	cmpq	%r10, %rbx
	jne	LBB0_4
## %bb.3:
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	jmp	LBB0_23
LBB0_4:
	movq	%rdi, %rbx
	movl	4(%r14,%rdx), %edi
	orl	%eax, %edi
	orl	8(%r14,%rdx), %edi
	je	LBB0_5
## %bb.6:
	orl	4(%r14,%r11), %r10d
	orl	8(%r14,%r11), %r10d
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	movq	%rbx, %rdi
	je	LBB0_23
LBB0_7:
	movq	%rdi, %rbx
	addq	%r14, %rdx
	movl	(%rcx), %esi
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:
	testl	%esi, %esi
	jns	LBB0_15
## %bb.9:
	cmpl	$0, (%r8)
	jns	LBB0_15
	jmp	LBB0_10
LBB0_11:
	movl	(%r8), %edi
	testl	%esi, %esi
	js	LBB0_14
## %bb.12:
	testl	%edi, %edi
	jns	LBB0_15
	jmp	LBB0_13
LBB0_14:
	testl	%edi, %edi
	jns	LBB0_21
LBB0_15:
	movq	_MV_PRED_LEFT@GOTPCREL(%rip), %rdi
	cmpl	%r15d, (%rdi)
	jne	LBB0_17
## %bb.16:
	cmpl	%r9d, %eax
	jne	LBB0_17
LBB0_10:
	movq	%rdx, %rsi
	jmp	LBB0_22
LBB0_17:
	movq	_MV_PRED_TOP@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_19
## %bb.18:
	cmpl	%r9d, %esi
	jne	LBB0_19
LBB0_13:
	movq	%rcx, %rsi
	jmp	LBB0_22
LBB0_19:
	movq	_MV_PRED_TOPRIGHT@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_24
## %bb.20:
	cmpl	%r9d, (%r8)
	jne	LBB0_24
LBB0_21:
	movq	%r8, %rsi
	jmp	LBB0_22
LBB0_24:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r10d, -44(%rbp)                ## 4-byte Spill
	callq	_mv_pred_median
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	movq	%rbx, %rdi
	cmpl	%r15d, (%rdi)
	ja	LBB0_26
	jmp	LBB0_27
LBB0_5:
	movl	-44(%rbp), %r10d                ## 4-byte Reload
LBB0_22:
	movq	%rbx, %rdi
LBB0_23:
	movl	4(%rsi), %eax
	movl	%eax, 4(%r14,%r12)
	movl	8(%rsi), %eax
	movl	%eax, 8(%r14,%r12)
	cmpl	%r15d, (%rdi)
	jbe	LBB0_27
LBB0_26:
	addq	$4, %r13
	movq	%r13, %rdi
	movl	%r10d, %r15d
	callq	_get_se_golomb
	movl	%eax, %ebx
	addl	4(%r14,%r12), %ebx
	movq	%r13, %rdi
	callq	_get_se_golomb
	movl	%r15d, %r10d
	movl	%ebx, 4(%r14,%r12)
	addl	%eax, 8(%r14,%r12)
LBB0_27:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r10d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_mvs                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NOT_AVAIL,8,3                  ## @NOT_AVAIL
	.comm	_MV_FWD_X3,4,2                  ## @MV_FWD_X3
	.comm	_MV_BWD_X3,4,2                  ## @MV_BWD_X3
	.comm	_MV_PRED_PSKIP,4,2              ## @MV_PRED_PSKIP
	.comm	_un_mv,16,2                     ## @un_mv
	.comm	_MV_PRED_LEFT,4,2               ## @MV_PRED_LEFT
	.comm	_MV_PRED_TOP,4,2                ## @MV_PRED_TOP
	.comm	_MV_PRED_TOPRIGHT,4,2           ## @MV_PRED_TOPRIGHT
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_cavs_mv                     ; -- Begin function ff_cavs_mv
	.p2align	2
_ff_cavs_mv:                            ; @ff_cavs_mv
	.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, x4
	mov	x22, x3
	mov	x8, x2
	mov	x21, x0
	mov	w23, w1
	ldp	x24, x11, [x0, #8]
	add	x20, x24, w1, uxtw #4
	sub	w10, w1, #1
	add	x2, x24, w10, uxtw #4
	sub	w9, w1, #4
	add	x3, x24, w9, uxtw #4
	add	x8, x24, w8, uxtw #4
	str	w5, [x20]
	ldr	w11, [x11, w5, sxtw #2]
	str	w11, [x20, #12]
	ldrsw	x12, [x8]
Lloh0:
	adrp	x11, _NOT_AVAIL@GOTPAGE
Lloh1:
	ldr	x11, [x11, _NOT_AVAIL@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
Lloh3:
	adrp	x13, _MV_FWD_X3@GOTPAGE
Lloh4:
	ldr	x13, [x13, _MV_FWD_X3@GOTPAGEOFF]
Lloh5:
	ldr	w13, [x13]
Lloh6:
	adrp	x14, _MV_BWD_X3@GOTPAGE
Lloh7:
	ldr	x14, [x14, _MV_BWD_X3@GOTPAGEOFF]
Lloh8:
	ldr	w14, [x14]
	sub	w15, w1, #5
	cmp	w14, w1
	ccmp	w13, w1, #4, ne
	ccmp	x11, x12, #4, ne
	add	x12, x24, w15, uxtw #4
	csel	x4, x12, x8, eq
Lloh9:
	adrp	x25, _MV_PRED_PSKIP@GOTPAGE
Lloh10:
	ldr	x25, [x25, _MV_PRED_PSKIP@GOTPAGEOFF]
	ldr	w12, [x25]
	ldrsw	x8, [x2]
	cmp	w12, w22
	b.ne	LBB0_5
; %bb.1:
	cmp	x11, x8
	b.eq	LBB0_8
; %bb.2:
	ldrsw	x12, [x3]
	cmp	x11, x12
	b.eq	LBB0_8
; %bb.3:
	add	x10, x24, x10, lsl #4
	ldp	w11, w10, [x10, #4]
	orr	w11, w11, w8
	orr	w10, w11, w10
	cbz	w10, LBB0_8
; %bb.4:
	add	x9, x24, x9, lsl #4
	ldp	w10, w9, [x9, #4]
	orr	w10, w10, w12
	orr	w9, w10, w9
	cbz	w9, LBB0_8
LBB0_5:
	ldr	w9, [x3]
	tbnz	w8, #31, LBB0_9
; %bb.6:
	tbz	w9, #31, LBB0_12
; %bb.7:
	ldr	w10, [x4]
	tbz	w10, #31, LBB0_12
	b	LBB0_16
LBB0_8:
Lloh11:
	adrp	x4, _un_mv@GOTPAGE
Lloh12:
	ldr	x4, [x4, _un_mv@GOTPAGEOFF]
	b	LBB0_17
LBB0_9:
	ldr	w10, [x4]
	tbnz	w9, #31, LBB0_11
; %bb.10:
	tbz	w10, #31, LBB0_12
	b	LBB0_15
LBB0_11:
	tbz	w10, #31, LBB0_17
LBB0_12:
Lloh13:
	adrp	x10, _MV_PRED_LEFT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MV_PRED_LEFT@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	cmp	w10, w22
	ccmp	w8, w5, #0, eq
	b.eq	LBB0_16
; %bb.13:
Lloh16:
	adrp	x8, _MV_PRED_TOP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MV_PRED_TOP@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_21
; %bb.14:
	cmp	w9, w5
	b.ne	LBB0_21
LBB0_15:
	mov	x4, x3
	b	LBB0_17
LBB0_16:
	mov	x4, x2
LBB0_17:
	add	x8, x24, x23, lsl #4
	ldur	d0, [x4, #4]
	stur	d0, [x8, #4]
LBB0_18:
	ldr	w8, [x25]
	cmp	w8, w22
	b.ls	LBB0_20
; %bb.19:
	add	x21, x21, #4
	mov	x0, x21
	bl	_get_se_golomb
	add	x22, x24, x23, lsl #4
	ldr	w8, [x22, #4]
	add	w23, w8, w0
	mov	x0, x21
	bl	_get_se_golomb
	ldr	w8, [x22, #8]
	add	w8, w8, w0
	stp	w23, w8, [x22, #4]
LBB0_20:
	mov	x0, x20
	mov	x1, x19
	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
	b	_set_mvs
LBB0_21:
Lloh19:
	adrp	x8, _MV_PRED_TOPRIGHT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MV_PRED_TOPRIGHT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_23
; %bb.22:
	ldr	w8, [x4]
	cmp	w8, w5
	b.eq	LBB0_17
LBB0_23:
	mov	x0, x21
	mov	x1, x20
	bl	_mv_pred_median
	b	LBB0_18
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_NOT_AVAIL,8,3                  ; @NOT_AVAIL
	.comm	_MV_FWD_X3,4,2                  ; @MV_FWD_X3
	.comm	_MV_BWD_X3,4,2                  ; @MV_BWD_X3
	.comm	_MV_PRED_PSKIP,4,2              ; @MV_PRED_PSKIP
	.comm	_un_mv,16,2                     ; @un_mv
	.comm	_MV_PRED_LEFT,4,2               ; @MV_PRED_LEFT
	.comm	_MV_PRED_TOP,4,2                ; @MV_PRED_TOP
	.comm	_MV_PRED_TOPRIGHT,4,2           ; @MV_PRED_TOPRIGHT
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
.subsections_via_symbols
