	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hpel_motion
_hpel_motion:                           ## @hpel_motion
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	24(%rbp), %r14d
	movl	16(%rbp), %r13d
	movl	%r13d, %edi
	sarl	%edi
	addl	%ecx, %edi
	movl	%r14d, %ebx
	sarl	%ebx
	addl	%r8d, %ebx
	movl	(%r15), %edx
	movl	$-16, %esi
	callq	_av_clip
	movl	%eax, %r12d
	movl	(%r15), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %edx
	andl	$1, %r13d
	movl	%ebx, %edi
	movl	$-16, %esi
	callq	_av_clip
	movl	%eax, %ebx
	movl	4(%r15), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	12(%r15), %edi
	movl	8(%r15), %eax
	imull	%ebx, %eax
	addl	%r12d, %eax
	cltq
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	subl	%r13d, %edi
	addl	$-7, %edi
	xorl	%esi, %esi
	callq	_FFMAX
	cmpl	%eax, %r12d
	jae	LBB0_3
## %bb.1:
	movl	16(%r15), %eax
	movl	%r14d, %ecx
	andl	$1, %ecx
	negl	%ecx
	leal	(%rax,%rcx), %edi
	addl	$-7, %edi
	xorl	%esi, %esi
	callq	_FFMAX
	cmpl	%eax, %ebx
	jae	LBB0_3
## %bb.2:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
LBB0_3:
	movq	24(%r15), %rdi
	movl	8(%r15), %ecx
	movl	12(%r15), %r10d
	movq	%rbx, %rax
	movl	16(%r15), %ebx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ecx, %edx
	movl	$9, %r8d
	movl	$9, %r9d
	pushq	%rbx
	movq	%rax, %rbx
	pushq	%r10
	pushq	%rax
	pushq	%r12
	callq	*32(%r15)
	addq	$32, %rsp
	movq	24(%r15), %rsi
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_4:
	xorl	%eax, %eax
	cmpl	-64(%rbp), %r12d                ## 4-byte Folded Reload
	cmovel	%eax, %r13d
	addl	%r14d, %r14d
	andl	$2, %r14d
	cmpl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	cmovel	%eax, %r14d
	orl	%r13d, %r14d
	movl	8(%r15), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %ecx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax,%r14,8)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hpel_motion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hpel_motion
_hpel_motion:                           ; @hpel_motion
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x7
	mov	x24, x6
	mov	x20, x5
	mov	x25, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x0
	ldr	w2, [x0]
	add	w0, w3, w6, asr #1
	add	w26, w4, w7, asr #1
	mov	w1, #-16
	bl	_av_clip
	mov	x23, x0
	and	w27, w24, #0x1
	ldp	w28, w2, [x22]
	mov	x0, x26
	mov	w1, #-16
	bl	_av_clip
	mov	x24, x0
	ldp	w19, w8, [x22, #4]
	madd	w8, w8, w0, w23
	add	x25, x25, w8, sxtw #2
	ldr	w8, [x22, #12]
	sub	w8, w8, w27
	sub	w0, w8, #7
	mov	w1, #0
	bl	_FFMAX
	cmp	w23, w0
	b.hs	LBB0_3
; %bb.1:
	ldr	w8, [x22, #16]
	and	w9, w21, #0x1
	sub	w8, w8, w9
	sub	w0, w8, #7
	mov	w1, #0
	bl	_FFMAX
	cmp	w24, w0
	b.hs	LBB0_3
; %bb.2:
	mov	w26, #0
	b	LBB0_4
LBB0_3:
	ldp	x0, x8, [x22, #24]
	ldp	w2, w9, [x22, #8]
	ldr	w10, [x22, #16]
	stp	w9, w10, [sp]
	mov	x1, x25
	mov	x3, x2
	mov	w4, #9
	mov	w5, #9
	mov	x6, x23
	mov	x7, x24
	blr	x8
	ldr	x25, [x22, #24]
	mov	w26, #1
LBB0_4:
	cmp	w23, w28
	csel	w8, wzr, w27, eq
	ubfiz	w9, w21, #1, #1
	cmp	w24, w19
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
	ldr	x8, [x20, w8, uxtw #3]
	ldr	w2, [x22, #8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x25
	mov	w3, #8
	blr	x8
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hpel_motion
.subsections_via_symbols
