	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temporal_luma_motion_vector
_temporal_luma_motion_vector:           ## @temporal_luma_motion_vector
	.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
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
	movq	16(%rdi), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	cmpq	$0, 8(%r12)
	je	LBB0_3
## %bb.4:
	movl	%r8d, %ebx
	movl	%ecx, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %r8
	leal	(%rbx,%rdx), %r13d
	movb	4(%r8), %cl
	movl	%edx, %edi
	sarl	%cl, %edi
	movl	%r13d, %eax
	sarl	%cl, %eax
	cmpl	%eax, %edi
	jne	LBB0_10
## %bb.5:
	cmpl	8(%r8), %r13d
	jge	LBB0_10
## %bb.6:
	leal	(%r14,%rsi), %edi
	cmpl	12(%r8), %edi
	jge	LBB0_10
## %bb.7:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	andl	$-16, %edi
	andl	$-16, %r13d
	movq	(%r15), %rcx
	movq	_FF_THREAD_FRAME@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.8:
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	leaq	4(%r12), %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_ff_thread_await_progress
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	8(%r15), %r8
LBB0_9:
	movb	16(%r8), %cl
	sarl	%cl, %edi
	sarl	%cl, %r13d
	movl	%r13d, %esi
	callq	_TAB_MVF
	movq	_DERIVE_TEMPORAL_COLOCATED_MVS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_13
LBB0_10:
	sarl	%r14d
	addl	%esi, %r14d
	sarl	%ebx
	addl	%edx, %ebx
	andl	$-16, %r14d
	andl	$-16, %ebx
	movq	(%r15), %rax
	movq	_FF_THREAD_FRAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	addq	$4, %r12
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_ff_thread_await_progress
LBB0_12:
	movq	8(%r15), %rax
	movb	16(%rax), %cl
	sarl	%cl, %r14d
	sarl	%cl, %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_TAB_MVF
	movq	_DERIVE_TEMPORAL_COLOCATED_MVS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_13
LBB0_1:
	movq	16(%rbp), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	jmp	LBB0_13
LBB0_3:
	xorl	%r13d, %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_THREAD_FRAME,8,3            ## @FF_THREAD_FRAME
	.comm	_DERIVE_TEMPORAL_COLOCATED_MVS,4,2 ## @DERIVE_TEMPORAL_COLOCATED_MVS
	.no_dead_strip	_temporal_luma_motion_vector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function temporal_luma_motion_vector
_temporal_luma_motion_vector:           ; @temporal_luma_motion_vector
	.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
	ldr	x8, [x0, #16]
	ldr	x26, [x8]
	cbz	x26, LBB0_11
; %bb.1:
	ldr	x8, [x26, #8]
	cbz	x8, LBB0_12
; %bb.2:
	mov	x20, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	add	w9, w4, w2
	ldr	w10, [x8, #4]
	asr	w11, w2, w10
	asr	w10, w9, w10
Lloh0:
	adrp	x27, _FF_THREAD_FRAME@GOTPAGE
Lloh1:
	ldr	x27, [x27, _FF_THREAD_FRAME@GOTPAGEOFF]
Lloh2:
	adrp	x25, _DERIVE_TEMPORAL_COLOCATED_MVS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DERIVE_TEMPORAL_COLOCATED_MVS@GOTPAGEOFF]
	cmp	w11, w10
	b.ne	LBB0_8
; %bb.3:
	ldr	w10, [x8, #8]
	cmp	w9, w10
	b.ge	LBB0_8
; %bb.4:
	ldr	w11, [x8, #12]
	add	w10, w22, w23
	cmp	w10, w11
	b.ge	LBB0_8
; %bb.5:
	and	w28, w10, #0xfffffff0
	and	w24, w9, #0xfffffff0
	ldr	x9, [x19]
	ldr	x10, [x27]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.6:
	add	x0, x26, #4
	mov	x1, x24
	mov	w2, #0
	bl	_ff_thread_await_progress
	ldr	x8, [x19, #8]
LBB0_7:
	ldr	w8, [x8, #16]
	asr	w0, w28, w8
	asr	w1, w24, w8
	bl	_TAB_MVF
	ldr	w0, [x25]
	cbnz	w0, LBB0_13
LBB0_8:
	add	w8, w23, w22, asr #1
	add	w9, w21, w20, asr #1
	and	w21, w8, #0xfffffff0
	and	w20, w9, #0xfffffff0
	ldr	x8, [x19]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	add	x0, x26, #4
	mov	x1, x20
	mov	w2, #0
	bl	_ff_thread_await_progress
LBB0_10:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #16]
	asr	w0, w21, w8
	asr	w1, w20, w8
	bl	_TAB_MVF
	ldr	w0, [x25]
	b	LBB0_13
LBB0_11:
	mov	x0, x6
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_12:
	mov	w0, #0
LBB0_13:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_THREAD_FRAME,8,3            ; @FF_THREAD_FRAME
	.comm	_DERIVE_TEMPORAL_COLOCATED_MVS,4,2 ; @DERIVE_TEMPORAL_COLOCATED_MVS
	.no_dead_strip	_temporal_luma_motion_vector
.subsections_via_symbols
