	.file	"extr_vp9mvs.c_ff_vp9_fill_mv.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ff_vp9_fill_mv
	.type	ff_vp9_fill_mv, @function
ff_vp9_fill_mv:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	DWORD PTR ZEROMV[rip], edx
	je	.L57
	mov	r15, QWORD PTR 16[rdi]
	cmp	DWORD PTR NEWMV[rip], edx
	mov	ebx, edx
	mov	r13d, ecx
	mov	r9d, -1
	mov	r14, QWORD PTR 24[rdi]
	mov	r12, rdi
	mov	rax, QWORD PTR [r15]
	cmovne	r9d, ecx
	cmp	DWORD PTR NEARMV[rip], edx
	sete	r8b
	xor	ecx, ecx
	mov	edx, DWORD PTR [rax]
	movzx	r8d, r8b
	call	find_ref_mvs@PLT
	mov	edx, DWORD PTR NEWMV[rip]
	cmp	r13d, -1
	sete	r10b
	cmp	edx, ebx
	je	.L29
	test	r10b, r10b
	jne	.L29
.L4:
	cmp	QWORD PTR 8[r15], 0
	jne	.L15
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	cmp	QWORD PTR 8[r14], 0
	mov	eax, DWORD PTR 0[rbp]
	mov	ecx, DWORD PTR 4[rbp]
	je	.L6
	lea	esi, 63[rax]
	cmp	esi, 126
	jbe	.L58
.L6:
	test	cl, 1
	je	.L8
	lea	edi, -1[rcx]
	lea	esi, 1[rcx]
	test	ecx, ecx
	cmovs	edi, esi
	mov	DWORD PTR 4[rbp], edi
.L8:
	mov	r8d, eax
	and	r8d, 1
	je	.L7
	test	eax, eax
	js	.L59
	sub	eax, 1
	xor	r8d, r8d
	mov	DWORD PTR 0[rbp], eax
.L7:
	cmp	edx, ebx
	jne	.L4
	mov	edx, DWORD PTR [r14]
	mov	edi, DWORD PTR 8[r12]
	mov	BYTE PTR 8[rsp], r10b
	mov	esi, DWORD PTR ff_vp9_mv_joint_tree[rip]
	mov	DWORD PTR 4[rsp], r8d
	call	vp8_rac_get_tree@PLT
	mov	r8d, DWORD PTR 4[rsp]
	movzx	r10d, BYTE PTR 8[rsp]
	mov	edx, eax
	mov	rax, QWORD PTR [r12]
	mov	rcx, rdx
	add	DWORD PTR [rax+rdx*4], 1
	cmp	DWORD PTR MV_JOINT_V[rip], edx
	jbe	.L60
.L11:
	and	ecx, 1
	jne	.L61
.L12:
	cmp	QWORD PTR 8[r15], 0
	je	.L1
	cmp	DWORD PTR NEWMV[rip], ebx
	mov	eax, -1
	cmove	r13d, eax
.L15:
	mov	rax, QWORD PTR [r15]
	xor	r8d, r8d
	cmp	DWORD PTR NEARMV[rip], ebx
	mov	r9d, r13d
	sete	r8b
	lea	rsi, 8[rbp]
	mov	ecx, 1
	mov	rdi, r12
	mov	edx, DWORD PTR 4[rax]
	mov	BYTE PTR 4[rsp], r10b
	call	find_ref_mvs@PLT
	mov	edx, DWORD PTR NEWMV[rip]
	cmp	edx, ebx
	je	.L30
	movzx	r10d, BYTE PTR 4[rsp]
	test	r10b, r10b
	je	.L1
.L30:
	cmp	QWORD PTR 8[r14], 0
	mov	eax, DWORD PTR 8[rbp]
	mov	ecx, DWORD PTR 12[rbp]
	jne	.L62
.L18:
	test	cl, 1
	je	.L20
	lea	edi, -1[rcx]
	lea	esi, 1[rcx]
	test	ecx, ecx
	cmovs	edi, esi
	mov	DWORD PTR 12[rbp], edi
.L20:
	mov	r13d, eax
	and	r13d, 1
	je	.L19
	test	eax, eax
	js	.L63
	sub	eax, 1
	xor	r13d, r13d
	mov	DWORD PTR 8[rbp], eax
.L19:
	cmp	edx, ebx
	jne	.L1
	mov	edx, DWORD PTR [r14]
	mov	edi, DWORD PTR 8[r12]
	mov	esi, DWORD PTR ff_vp9_mv_joint_tree[rip]
	call	vp8_rac_get_tree@PLT
	mov	edx, eax
	mov	rax, QWORD PTR [r12]
	mov	rbx, rdx
	add	DWORD PTR [rax+rdx*4], 1
	cmp	DWORD PTR MV_JOINT_V[rip], edx
	jbe	.L64
.L23:
	and	ebx, 1
	je	.L1
	mov	edx, r13d
	mov	esi, 1
	mov	rdi, r12
	call	read_mv_component@PLT
	add	DWORD PTR 8[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L57:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rsi
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	AV_ZERO64@PLT
	.p2align 4,,10
	.p2align 3
.L58:
	.cfi_restore_state
	lea	esi, 63[rcx]
	mov	r8d, 1
	cmp	esi, 126
	jbe	.L7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L62:
	lea	esi, 63[rax]
	cmp	esi, 126
	ja	.L18
	lea	esi, 63[rcx]
	mov	r13d, 1
	cmp	esi, 126
	jbe	.L19
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L59:
	add	eax, 1
	xor	r8d, r8d
	mov	DWORD PTR 0[rbp], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L61:
	mov	edx, r8d
	mov	esi, 1
	mov	rdi, r12
	mov	BYTE PTR 4[rsp], r10b
	call	read_mv_component@PLT
	movzx	r10d, BYTE PTR 4[rsp]
	add	DWORD PTR 0[rbp], eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L60:
	mov	DWORD PTR 8[rsp], edx
	xor	esi, esi
	mov	edx, r8d
	mov	rdi, r12
	mov	BYTE PTR 15[rsp], r10b
	call	read_mv_component@PLT
	movzx	r10d, BYTE PTR 15[rsp]
	add	DWORD PTR 4[rbp], eax
	mov	ecx, DWORD PTR 8[rsp]
	mov	r8d, DWORD PTR 4[rsp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L63:
	add	eax, 1
	xor	r13d, r13d
	mov	DWORD PTR 8[rbp], eax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L64:
	mov	edx, r13d
	xor	esi, esi
	mov	rdi, r12
	call	read_mv_component@PLT
	add	DWORD PTR 12[rbp], eax
	jmp	.L23
	.cfi_endproc
.LFE0:
	.size	ff_vp9_fill_mv, .-ff_vp9_fill_mv
	.comm	ff_vp9_mv_joint_tree,4,4
	.comm	ZEROMV,4,4
	.comm	NEWMV,4,4
	.comm	NEARMV,4,4
	.comm	MV_JOINT_V,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_vp9mvs.c_ff_vp9_fill_mv.c"
	.text
	.align	2
	.global	ff_vp9_fill_mv
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_vp9_fill_mv, %function
ff_vp9_fill_mv:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	ldr	r2, .L64
	mov	r5, r3
	ldr	r3, [r2]
	mov	r6, r1
	cmp	r3, r4
	sub	sp, sp, #28
	beq	.L58
	ldr	r10, .L64+4
	ldr	r8, .L64+8
	ldr	ip, [r10]
	ldr	r3, [r8]
	sub	ip, ip, r4
	cmp	r3, r4
	clz	ip, ip
	movne	lr, r5
	mvneq	lr, #0
	ldr	r9, [r0, #8]
	lsr	ip, ip, #5
	ldr	r2, [r9]
	mov	r3, #0
	ldr	r2, [r2]
	stm	sp, {ip, lr}
	mov	r7, r0
	ldr	fp, [r0, #12]
	bl	find_ref_mvs
	ldr	r2, [r8]
	cmn	r5, #1
	movne	r3, #0
	moveq	r3, #1
	cmn	r5, #1
	cmpne	r2, r4
	str	r3, [sp, #12]
	bne	.L4
	ldr	r1, [fp, #4]
	ldr	r3, [r6]
	cmp	r1, #0
	ldr	r1, [r6, #4]
	beq	.L5
	add	r0, r3, #63
	cmp	r0, #126
	bhi	.L5
	add	r0, r1, #63
	cmp	r0, #126
	movls	r3, #1
	strls	r3, [sp, #16]
	bhi	.L5
.L6:
	cmp	r2, r4
	beq	.L59
.L4:
	ldr	r3, [r9, #4]
	cmp	r3, #0
	bne	.L22
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	ldr	r3, [r10]
	ldr	r2, [r9]
	sub	r3, r3, r4
	clz	r3, r3
	ldr	r2, [r2, #4]
	lsr	r3, r3, #5
	add	r1, r6, #8
.L14:
	stm	sp, {r3, r5}
	mov	r0, r7
	mov	r3, #1
	bl	find_ref_mvs
	ldr	r2, [r8]
	ldr	r3, [sp, #12]
	cmp	r2, r4
	orreq	r3, r3, #1
	cmp	r3, #0
	beq	.L1
	ldr	r1, [fp, #4]
	ldr	r3, [r6, #8]
	cmp	r1, #0
	ldr	r1, [r6, #12]
	bne	.L60
.L16:
	tst	r1, #1
	beq	.L18
	cmp	r1, #0
	addlt	r1, r1, #1
	subge	r1, r1, #1
	str	r1, [r6, #12]
.L18:
	ands	r5, r3, #1
	beq	.L17
	mov	r5, #0
	cmp	r3, #0
	addlt	r3, r3, #1
	subge	r3, r3, #1
	str	r3, [r6, #8]
.L17:
	cmp	r2, r4
	bne	.L1
	ldr	r3, .L64+12
	ldr	r2, [fp]
	ldr	r1, [r3]
	ldr	r0, [r7, #4]
	bl	vp8_rac_get_tree
	ldr	r2, [r7]
	ldr	r1, .L64+16
	ldr	r3, [r2, r0, lsl #2]
	mov	r4, r0
	add	r3, r3, #1
	str	r3, [r2, r0, lsl #2]
	ldr	r3, [r1]
	cmp	r3, r0
	bls	.L61
.L21:
	tst	r4, #1
	beq	.L1
	mov	r2, r5
	mov	r0, r7
	mov	r1, #1
	bl	read_mv_component
	ldr	r3, [r6, #8]
	add	r3, r3, r0
	str	r3, [r6, #8]
	b	.L1
.L5:
	tst	r1, #1
	beq	.L7
	cmp	r1, #0
	addlt	r1, r1, #1
	subge	r1, r1, #1
	str	r1, [r6, #4]
.L7:
	ands	r1, r3, #1
	str	r1, [sp, #16]
	beq	.L6
	cmp	r3, #0
	addlt	r3, r3, #1
	subge	r3, r3, #1
	str	r3, [r6]
	mov	r3, #0
	cmp	r2, r4
	str	r3, [sp, #16]
	bne	.L4
	b	.L59
.L58:
	mov	r0, r1
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	AV_ZERO64
.L59:
	ldr	r3, .L64+12
	ldr	r2, [fp]
	ldr	r1, [r3]
	ldr	r0, [r7, #4]
	bl	vp8_rac_get_tree
	mov	r3, r0
	ldr	r1, [r7]
	ldr	r0, .L64+16
	ldr	r2, [r1, r3, lsl #2]
	add	r2, r2, #1
	str	r2, [r1, r3, lsl #2]
	ldr	r2, [r0]
	cmp	r2, r3
	bls	.L62
.L10:
	tst	r3, #1
	bne	.L63
.L11:
	ldr	r3, [r9, #4]
	cmp	r3, #0
	beq	.L1
	ldr	r3, [r10]
	ldr	r2, [r8]
	sub	r3, r3, r4
	clz	r3, r3
	cmp	r2, r4
	ldr	r2, [r9]
	mvneq	r5, #0
	ldr	r2, [r2, #4]
	lsr	r3, r3, #5
	add	r1, r6, #8
	b	.L14
.L60:
	add	r0, r3, #63
	cmp	r0, #126
	bhi	.L16
	add	r0, r1, #63
	cmp	r0, #126
	movls	r5, #1
	bls	.L17
	b	.L16
.L63:
	mov	r1, #1
	mov	r0, r7
	ldr	r2, [sp, #16]
	bl	read_mv_component
	ldr	r3, [r6]
	add	r3, r3, r0
	str	r3, [r6]
	b	.L11
.L62:
	ldr	r2, [sp, #16]
	mov	r1, #0
	mov	r0, r7
	str	r3, [sp, #20]
	bl	read_mv_component
	ldr	r2, [r6, #4]
	ldr	r3, [sp, #20]
	add	r2, r2, r0
	str	r2, [r6, #4]
	b	.L10
.L61:
	mov	r2, r5
	mov	r1, #0
	mov	r0, r7
	bl	read_mv_component
	ldr	r3, [r6, #12]
	add	r3, r3, r0
	str	r3, [r6, #12]
	b	.L21
.L65:
	.align	2
.L64:
	.word	ZEROMV
	.word	NEARMV
	.word	NEWMV
	.word	ff_vp9_mv_joint_tree
	.word	MV_JOINT_V
	.size	ff_vp9_fill_mv, .-ff_vp9_fill_mv
	.comm	ff_vp9_mv_joint_tree,4,4
	.comm	ZEROMV,4,4
	.comm	NEWMV,4,4
	.comm	NEARMV,4,4
	.comm	MV_JOINT_V,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
