	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vp9_fill_mv                 ## -- Begin function ff_vp9_fill_mv
	.p2align	4, 0x90
_ff_vp9_fill_mv:                        ## @ff_vp9_fill_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
	movq	%rsi, %r14
	movq	_ZEROMV@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_1
## %bb.32:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AV_ZERO64                      ## TAILCALL
LBB0_1:
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	24(%rdi), %rbx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	_NEARMV@GOTPCREL(%rip), %rcx
	xorl	%r8d, %r8d
	cmpl	%edx, (%rcx)
	sete	%r8b
	movq	_NEWMV@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	movl	(%rax), %edx
	movl	$-1, %r9d
	cmovnel	%r12d, %r9d
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_find_ref_mvs
	cmpl	$-1, %r12d
	je	LBB0_3
## %bb.2:
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	movq	_NEWMV@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_10
LBB0_3:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.4:
	movl	(%r14), %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovsl	%eax, %ecx
	cmpl	$63, %ecx
	ja	LBB0_6
## %bb.5:
	movl	4(%r14), %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovsl	%eax, %ecx
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$64, %ecx
	jb	LBB0_10
LBB0_6:
	movl	4(%r14), %eax
	testb	$1, %al
	je	LBB0_8
## %bb.7:
	movl	%eax, %ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx,2), %eax
	decl	%eax
	movl	%eax, 4(%r14)
LBB0_8:
	movl	(%r14), %eax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testb	$1, %al
	je	LBB0_10
## %bb.9:
	movl	%eax, %ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx,2), %eax
	decl	%eax
	movl	%eax, (%r14)
LBB0_10:
	movq	_NEWMV@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_15
## %bb.11:
	movl	8(%r15), %edi
	movq	_ff_vp9_mv_joint_tree@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edx
	callq	_vp8_rac_get_tree
	movl	%eax, %ebx
	movq	(%r15), %rax
	movl	%ebx, %ecx
	incl	(%rax,%rcx,4)
	movq	_MV_JOINT_V@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jb	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_read_mv_component
	addl	%eax, 4(%r14)
LBB0_13:
	testb	$1, %bl
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	movl	$1, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_read_mv_component
	addl	%eax, (%r14)
LBB0_15:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_31
## %bb.16:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	8(%rcx), %r14
	xorl	%r8d, %r8d
	movq	_NEARMV@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	movq	(%rax), %rax
	sete	%r8b
	movq	_NEWMV@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	movl	4(%rax), %edx
	movl	$-1, %r9d
	cmovnel	%r12d, %r9d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_find_ref_mvs
	movq	_NEWMV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$-1, %r12d
	je	LBB0_18
## %bb.17:
	cmpl	%r13d, %eax
	jne	LBB0_26
LBB0_18:
	cmpq	$0, 8(%rbx)
	je	LBB0_21
## %bb.19:
	movl	(%r14), %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovsl	%ecx, %edx
	cmpl	$63, %edx
	ja	LBB0_21
## %bb.20:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	12(%rcx), %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovsl	%ecx, %edx
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$64, %edx
	jb	LBB0_26
LBB0_21:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	12(%rcx), %ecx
	testb	$1, %cl
	je	LBB0_23
## %bb.22:
	movl	%ecx, %edx
	shrl	$31, %edx
	leal	(%rcx,%rdx,2), %ecx
	decl	%ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, 12(%rdx)
LBB0_23:
	movl	(%r14), %ecx
	testb	$1, %cl
	jne	LBB0_25
## %bb.24:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_26:
	cmpl	%r13d, %eax
	jne	LBB0_31
LBB0_27:
	movl	8(%r15), %edi
	movq	_ff_vp9_mv_joint_tree@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	callq	_vp8_rac_get_tree
	movl	%eax, %ebx
	movq	(%r15), %rax
	movl	%ebx, %ecx
	incl	(%rax,%rcx,4)
	movq	_MV_JOINT_V@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jb	LBB0_29
## %bb.28:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_read_mv_component
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, 12(%rcx)
LBB0_29:
	testb	$1, %bl
	je	LBB0_31
## %bb.30:
	movq	%r15, %rdi
	movl	$1, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_read_mv_component
	addl	%eax, (%r14)
	jmp	LBB0_31
LBB0_25:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%ecx, %edx
	shrl	$31, %edx
	leal	(%rcx,%rdx,2), %ecx
	decl	%ecx
	movl	%ecx, (%r14)
	cmpl	%r13d, %eax
	je	LBB0_27
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZEROMV,4,2                     ## @ZEROMV
	.comm	_NEARMV,4,2                     ## @NEARMV
	.comm	_NEWMV,4,2                      ## @NEWMV
	.comm	_ff_vp9_mv_joint_tree,4,2       ## @ff_vp9_mv_joint_tree
	.comm	_MV_JOINT_V,4,2                 ## @MV_JOINT_V
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vp9_fill_mv                 ; -- Begin function ff_vp9_fill_mv
	.p2align	2
_ff_vp9_fill_mv:                        ; @ff_vp9_fill_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, x1
Lloh0:
	adrp	x8, _ZEROMV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZEROMV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	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
	b	_AV_ZERO64
LBB0_2:
	mov	x22, x3
	mov	x21, x2
	mov	x19, x0
	ldp	x27, x25, [x0, #16]
	ldr	x8, [x27]
	ldr	w2, [x8]
Lloh3:
	adrp	x28, _NEARMV@GOTPAGE
Lloh4:
	ldr	x28, [x28, _NEARMV@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, w21
	cset	w4, eq
Lloh5:
	adrp	x26, _NEWMV@GOTPAGE
Lloh6:
	ldr	x26, [x26, _NEWMV@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, w21
	csinv	w5, w3, wzr, ne
	mov	x1, x20
	mov	w3, #0
	bl	_find_ref_mvs
	cmn	w22, #1
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x26]
                                        ; implicit-def: $w23
	cmp	w8, w21
	b.ne	LBB0_13
LBB0_4:
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	w8, [x20]
	cmp	w8, #0
	cneg	w8, w8, mi
	cmp	w8, #63
	b.hi	LBB0_8
; %bb.6:
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cneg	w8, w8, mi
	cmp	w8, #64
	b.hs	LBB0_8
; %bb.7:
	mov	w23, #1
	b	LBB0_13
LBB0_8:
	ldr	w8, [x20, #4]
	tbz	w8, #0, LBB0_10
; %bb.9:
	sub	w9, w8, #1
	cmp	w8, #0
	csinc	w8, w9, w8, ge
	str	w8, [x20, #4]
LBB0_10:
	ldr	w8, [x20]
	tbnz	w8, #0, LBB0_12
; %bb.11:
	mov	w23, #0
	b	LBB0_13
LBB0_12:
	mov	w23, #0
	sub	w9, w8, #1
	cmp	w8, #0
	csinc	w8, w9, w8, ge
	str	w8, [x20]
LBB0_13:
	ldr	w8, [x26]
	cmp	w8, w21
	b.ne	LBB0_18
; %bb.14:
	ldr	w0, [x19, #8]
Lloh7:
	adrp	x8, _ff_vp9_mv_joint_tree@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ff_vp9_mv_joint_tree@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x25]
	bl	_vp8_rac_get_tree
	mov	x24, x0
	ldr	x8, [x19]
	mov	w9, w0
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
Lloh10:
	adrp	x8, _MV_JOINT_V@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MV_JOINT_V@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lo	LBB0_16
; %bb.15:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x23
	bl	_read_mv_component
	ldr	w8, [x20, #4]
	add	w8, w8, w0
	str	w8, [x20, #4]
LBB0_16:
	tbz	w24, #0, LBB0_18
; %bb.17:
	mov	x0, x19
	mov	w1, #1
	mov	x2, x23
	bl	_read_mv_component
	ldr	w8, [x20]
	add	w8, w8, w0
	str	w8, [x20]
LBB0_18:
	ldr	x8, [x27, #8]
	cbz	x8, LBB0_35
; %bb.19:
	add	x24, x20, #8
	ldr	x8, [x27]
	ldr	w2, [x8, #4]
	ldr	w8, [x28]
	cmp	w8, w21
	cset	w4, eq
	ldr	w8, [x26]
	cmp	w8, w21
	csinv	w5, w22, wzr, ne
	mov	x0, x19
	mov	x1, x24
	mov	w3, #1
	bl	_find_ref_mvs
	ldr	w8, [x26]
	cmn	w22, #1
	b.eq	LBB0_21
; %bb.20:
	cmp	w8, w21
	b.ne	LBB0_29
LBB0_21:
	ldr	x9, [x25, #8]
	cbz	x9, LBB0_25
; %bb.22:
	ldr	w9, [x24]
	cmp	w9, #0
	cneg	w9, w9, mi
	cmp	w9, #63
	b.hi	LBB0_25
; %bb.23:
	ldr	w9, [x20, #12]
	cmp	w9, #0
	cneg	w9, w9, mi
	cmp	w9, #64
	b.hs	LBB0_25
; %bb.24:
	mov	w23, #1
	cmp	w8, w21
	b.eq	LBB0_30
	b	LBB0_35
LBB0_25:
	ldr	w9, [x20, #12]
	tbz	w9, #0, LBB0_27
; %bb.26:
	sub	w10, w9, #1
	cmp	w9, #0
	csinc	w9, w10, w9, ge
	str	w9, [x20, #12]
LBB0_27:
	ldr	w9, [x24]
	tbnz	w9, #0, LBB0_34
; %bb.28:
	mov	w23, #0
LBB0_29:
	cmp	w8, w21
	b.ne	LBB0_35
LBB0_30:
	ldr	w0, [x19, #8]
Lloh13:
	adrp	x8, _ff_vp9_mv_joint_tree@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ff_vp9_mv_joint_tree@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x25]
	bl	_vp8_rac_get_tree
	mov	x21, x0
	ldr	x8, [x19]
	mov	w9, w0
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
Lloh16:
	adrp	x8, _MV_JOINT_V@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MV_JOINT_V@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lo	LBB0_32
; %bb.31:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x23
	bl	_read_mv_component
	ldr	w8, [x20, #12]
	add	w8, w8, w0
	str	w8, [x20, #12]
LBB0_32:
	tbz	w21, #0, LBB0_35
; %bb.33:
	mov	x0, x19
	mov	w1, #1
	mov	x2, x23
	bl	_read_mv_component
	ldr	w8, [x24]
	add	w8, w8, w0
	str	w8, [x24]
	b	LBB0_35
LBB0_34:
	mov	w23, #0
	sub	w10, w9, #1
	cmp	w9, #0
	csinc	w9, w10, w9, ge
	str	w9, [x24]
	cmp	w8, w21
	b.eq	LBB0_30
LBB0_35:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ZEROMV,4,2                     ; @ZEROMV
	.comm	_NEARMV,4,2                     ; @NEARMV
	.comm	_NEWMV,4,2                      ; @NEWMV
	.comm	_ff_vp9_mv_joint_tree,4,2       ; @ff_vp9_mv_joint_tree
	.comm	_MV_JOINT_V,4,2                 ; @MV_JOINT_V
.subsections_via_symbols
