	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ff_mpeg4_set_one_direct_mv
_ff_mpeg4_set_one_direct_mv:            ## @ff_mpeg4_set_one_direct_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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r8d
	movq	(%rdi), %rax
	movslq	%ecx, %r11
	movslq	(%rax,%r11,4), %rax
	movl	8(%rdi), %r9d
	movl	12(%rdi), %r10d
	movq	32(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %r15
	movslq	(%r15), %rcx
	movq	_tab_bias@GOTPCREL(%rip), %r14
	movslq	(%r14), %rdx
	addq	%rcx, %rdx
	movq	_tab_size@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %edx
	jae	LBB0_3
## %bb.1:
	movq	16(%rdi), %r13
	movq	24(%rdi), %r14
	movq	(%r14), %rax
	movl	(%rax,%rdx,4), %edx
	addl	%esi, %edx
	movq	(%r13), %rax
	movq	(%rax,%r11,8), %r12
	movl	%edx, (%r12)
	testl	%esi, %esi
	je	LBB0_5
## %bb.2:
	subl	%ecx, %edx
	movq	_tab_bias@GOTPCREL(%rip), %r14
	jmp	LBB0_6
LBB0_3:
	movl	%ecx, %eax
	imull	%r10d, %eax
	cltd
	idivl	%r9d
	addl	%esi, %eax
	movq	16(%rdi), %r13
	movq	(%r13), %rdx
	movq	(%rdx,%r11,8), %r12
	movl	%eax, (%r12)
	testl	%esi, %esi
	je	LBB0_7
## %bb.4:
	subl	%ecx, %eax
	jmp	LBB0_8
LBB0_5:
	movq	8(%r14), %rax
	movq	_tab_bias@GOTPCREL(%rip), %r14
	movslq	(%r14), %rdx
	addq	%rcx, %rdx
	movl	(%rax,%rdx,4), %edx
LBB0_6:
	movq	8(%r13), %rax
	movq	(%rax,%r11,8), %rsi
	movl	%edx, (%rsi)
	jmp	LBB0_9
LBB0_7:
	movl	%r10d, %eax
	subl	%r9d, %eax
	imull	%ecx, %eax
	cltd
	idivl	%r9d
LBB0_8:
	movq	8(%r13), %rcx
	movq	(%rcx,%r11,8), %rsi
	movl	%eax, (%rsi)
LBB0_9:
	movslq	4(%r15), %rcx
	movslq	(%r14), %rdx
	addq	%rcx, %rdx
	cmpl	(%rbx), %edx
	jae	LBB0_12
## %bb.10:
	movq	24(%rdi), %rdi
	movq	(%rdi), %rax
	movl	(%rax,%rdx,4), %eax
	addl	%r8d, %eax
	movl	%eax, 4(%r12)
	testl	%r8d, %r8d
	jne	LBB0_11
## %bb.14:
	movq	8(%rdi), %rax
	movl	(%rax,%rdx,4), %eax
	jmp	LBB0_16
LBB0_12:
	movl	%ecx, %eax
	imull	%r10d, %eax
	cltd
	idivl	%r9d
	addl	%r8d, %eax
	movl	%eax, 4(%r12)
	testl	%r8d, %r8d
	je	LBB0_15
LBB0_11:
	subl	%ecx, %eax
	jmp	LBB0_16
LBB0_15:
	subl	%r9d, %r10d
	imull	%ecx, %r10d
	movl	%r10d, %eax
	cltd
	idivl	%r9d
LBB0_16:
	movl	%eax, 4(%rsi)
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tab_bias,4,2                   ## @tab_bias
	.comm	_tab_size,4,2                   ## @tab_size
	.no_dead_strip	_ff_mpeg4_set_one_direct_mv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ff_mpeg4_set_one_direct_mv
_ff_mpeg4_set_one_direct_mv:            ; @ff_mpeg4_set_one_direct_mv
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w3 killed $w3 def $x3
	ldr	x8, [x0]
	sxtw	x13, w3
	ldrsw	x10, [x8, w3, sxtw #2]
	ldp	w8, w9, [x0, #8]
	ldr	x11, [x0, #32]
	ldr	x11, [x11]
	ldr	x10, [x11, x10, lsl #3]
	ldr	w15, [x10]
Lloh0:
	adrp	x11, _tab_bias@GOTPAGE
Lloh1:
	ldr	x11, [x11, _tab_bias@GOTPAGEOFF]
	ldr	w14, [x11]
Lloh2:
	adrp	x12, _tab_size@GOTPAGE
Lloh3:
	ldr	x12, [x12, _tab_size@GOTPAGEOFF]
	ldr	w16, [x12]
	add	w14, w14, w15
	cmp	w14, w16
	b.hs	LBB0_3
; %bb.1:
	ldp	x16, x17, [x0, #16]
	ldr	x3, [x17]
	ldr	w14, [x3, w14, sxtw #2]
	add	w3, w14, w1
	ldr	x14, [x16]
	ldr	x14, [x14, x13, lsl #3]
	str	w3, [x14]
	cbz	w1, LBB0_4
; %bb.2:
	sub	w15, w3, w15
	b	LBB0_5
LBB0_3:
	mul	w16, w15, w9
	ldr	x14, [x0, #16]
	ldp	x17, x3, [x14]
	ldr	x14, [x17, x13, lsl #3]
	sdiv	w16, w16, w8
	add	w16, w16, w1
	sub	w17, w16, w15
	str	w16, [x14]
	sub	w16, w9, w8
	mul	w15, w15, w16
	sdiv	w15, w15, w8
	cmp	w1, #0
	csel	w15, w15, w17, eq
	ldr	x13, [x3, x13, lsl #3]
	b	LBB0_6
LBB0_4:
	ldr	x17, [x17, #8]
	ldr	w1, [x11]
	add	w15, w1, w15
	ldr	w15, [x17, w15, sxtw #2]
LBB0_5:
	ldr	x16, [x16, #8]
	ldr	x13, [x16, x13, lsl #3]
LBB0_6:
	str	w15, [x13]
	ldr	w10, [x10, #4]
	ldr	w11, [x11]
	ldr	w12, [x12]
	add	w11, w11, w10
	cmp	w11, w12
	b.hs	LBB0_9
; %bb.7:
	ldr	x8, [x0, #24]
	ldr	x9, [x8]
	ldr	w9, [x9, w11, sxtw #2]
	add	w9, w9, w2
	str	w9, [x14, #4]
	cbz	w2, LBB0_10
; %bb.8:
	sub	w8, w9, w10
	str	w8, [x13, #4]
	ret
LBB0_9:
	mul	w11, w10, w9
	sdiv	w11, w11, w8
	add	w11, w11, w2
	sub	w12, w11, w10
	str	w11, [x14, #4]
	sub	w9, w9, w8
	mul	w9, w10, w9
	sdiv	w8, w9, w8
	cmp	w2, #0
	csel	w8, w8, w12, eq
	str	w8, [x13, #4]
	ret
LBB0_10:
	sxtw	x9, w11
	ldr	x8, [x8, #8]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x13, #4]
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_tab_bias,4,2                   ; @tab_bias
	.comm	_tab_size,4,2                   ; @tab_size
	.no_dead_strip	_ff_mpeg4_set_one_direct_mv
.subsections_via_symbols
