	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_8x8
_apply_8x8:                             ## @apply_8x8
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	movq	%rdx, -152(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rbp), %rax
	movl	(%rdi), %edx
	movl	4(%rdi), %esi
	cmpq	$0, 64(%rdi)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r9, -128(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.1:
	movslq	%r8d, %rcx
	shll	$4, %edx
	shll	$4, %esi
	movq	8(%r14), %rax
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	movq	(%rax,%rcx,8), %rax
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	xorl	%r12d, %r12d
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -176(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r14), %rdi
	movl	24(%r14), %ecx
	movl	28(%r14), %r10d
	movl	32(%r14), %eax
	movq	%r13, %rsi
	movl	%ecx, %edx
	movl	$9, %r8d
	movl	$9, %r9d
	pushq	%rax
	pushq	%r10
	pushq	%rbx
	pushq	%r12
	callq	*56(%r14)
	addq	$32, %rsp
	movq	48(%r14), %r13
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movl	-144(%rbp), %esi                ## 4-byte Reload
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %eax
	leaq	(%rbx,%rax,4), %rax
	movl	24(%r14), %edx
	imull	%edx, %ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %rdi
	movl	%esi, %eax
	movq	%r13, %rsi
	movq	16(%rbp), %rcx
	callq	*128(%rcx,%rax,8)
	movq	8(%r14), %rax
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	(%rax,%r12,2), %rcx
	movq	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movdqa	%xmm0, %xmm1
	psrld	$31, %xmm1
	paddd	%xmm0, %xmm1
	psrad	$1, %xmm1
	movdqa	-112(%rbp), %xmm0               ## 16-byte Reload
	paddd	%xmm1, %xmm0
	addq	$4, %r12
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	addl	$8, %edi
	cmpq	$16, %r12
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-176(%rbp), %rsi                ## 8-byte Reload
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, -112(%rbp)               ## 16-byte Spill
	movq	(%rax,%r12,2), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %ebx
	movl	%ebx, %eax
	andl	$3, %eax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	leal	(,%rax,4), %r13d
	movl	%ecx, %r15d
	andl	$3, %r15d
	sarl	$2, %ecx
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	andl	$8, %edi
	movl	%edi, -72(%rbp)                 ## 4-byte Spill
	orl	%edx, %edi
	addl	%ecx, %edi
	sarl	$2, %ebx
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	andl	$2147483640, %r12d              ## imm = 0x7FFFFFF8
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	addl	%r12d, %ebx
	addl	%esi, %ebx
	movl	16(%r14), %edx
	movl	$-16, %esi
	callq	_av_clip
	movl	%eax, %r12d
	cmpl	16(%r14), %eax
	movl	%r15d, %r14d
	movl	$0, %eax
	cmovel	%eax, %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %edx
	movl	%ebx, %edi
	movl	$-16, %esi
	callq	_av_clip
	movl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	20(%rax), %ebx
	movl	$0, %eax
	cmovel	%eax, %r13d
	orl	%r14d, %r13d
	movl	%r13d, -144(%rbp)               ## 4-byte Spill
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movslq	24(%r14), %rax
	movslq	%ebx, %rcx
	imulq	%rax, %rcx
	shlq	$2, %rcx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	addq	(%rax), %rcx
	movslq	%r12d, %rax
	leaq	(%rcx,%rax,4), %r13
	movl	28(%r14), %edi
	subl	%r15d, %edi
	addl	$-7, %edi
	xorl	%esi, %esi
	callq	_FFMAX
	cmpl	%eax, %r12d
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%r14), %eax
	movq	-184(%rbp), %rcx                ## 8-byte Reload
	negl	%ecx
	leal	(%rax,%rcx), %edi
	addl	$-7, %edi
	xorl	%esi, %esi
	callq	_FFMAX
	cmpl	%eax, %ebx
	jae	LBB0_4
	jmp	LBB0_5
LBB0_11:
	movq	%r9, %r12
	shll	$4, %edx
	shll	$4, %esi
	leaq	16(%rax), %r9
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movslq	%r8d, %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	(%r12), %rdx
	movq	8(%r14), %rax
	movq	(%rax,%rdi,8), %rax
	movq	(%rax), %rax
	movl	(%rax), %r10d
	movl	4(%rax), %eax
	movq	%r14, %rdi
	movq	%rsi, %r13
	movq	%rbx, %rsi
	movl	%r15d, %ecx
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_hpel_motion
	addq	$16, %rsp
	movq	8(%r14), %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rax
	leaq	32(%rbx), %rsi
	movq	(%r12), %rdx
	leal	8(%r15), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	(%rax), %rdi
	movq	8(%rax), %rax
	movl	(%rax), %r10d
	movl	4(%rax), %r11d
	leal	8(%r13), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movsd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero
	movaps	%xmm0, -112(%rbp)               ## 16-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %r8d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %r9
	pushq	%r11
	pushq	%r10
	callq	_hpel_motion
	addq	$16, %rsp
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	%r14, %r15
	movq	(%rax,%r14,8), %rax
	movq	8(%rax), %rcx
	movq	16(%rax), %rax
	movq	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	paddd	-112(%rbp), %xmm0               ## 16-byte Folded Reload
	movdqa	%xmm0, -112(%rbp)               ## 16-byte Spill
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	24(%rcx), %rsi
	shlq	$5, %rsi
	addq	%rbx, %rsi
	movq	(%r12), %rdx
	movl	(%rax), %r10d
	movl	4(%rax), %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	-88(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r8d
	movq	%r13, %r9
	pushq	%rax
	pushq	%r10
	callq	_hpel_motion
	addq	$16, %rsp
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r15,8), %rax
	movq	16(%rax), %rcx
	movq	24(%rax), %rax
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movaps	%xmm0, -144(%rbp)               ## 16-byte Spill
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	24(%rcx), %rcx
	shlq	$5, %rcx
	leaq	(%rbx,%rcx), %rsi
	addq	$32, %rsi
	movq	(%r12), %rdx
	movl	(%rax), %ebx
	movl	4(%rax), %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, %r9
	pushq	%rax
	pushq	%rbx
	callq	_hpel_motion
	addq	$16, %rsp
	movq	8(%r14), %rax
	movq	(%rax,%r15,8), %rax
	movq	24(%rax), %rax
	movq	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	paddd	-144(%rbp), %xmm0               ## 16-byte Folded Reload
	paddd	-112(%rbp), %xmm0               ## 16-byte Folded Reload
LBB0_6:
	movq	_CONFIG_GRAY@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	40(%r14), %rax
	movq	_AV_CODEC_FLAG_GRAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.9:
	addq	$152, %rsp
	jmp	LBB0_10
LBB0_8:
	movq	24(%rbp), %r8
	addq	$16, %r8
	movd	%xmm0, %r9d
	subq	$16, %rsp
	pextrd	$1, %xmm0, (%rsp)
	movq	%r14, %rdi
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	movq	-160(%rbp), %rdx                ## 8-byte Reload
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	callq	_chroma_4mv_motion
	addq	$168, %rsp
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_GRAY,4,2                ## @CONFIG_GRAY
	.comm	_AV_CODEC_FLAG_GRAY,4,2         ## @AV_CODEC_FLAG_GRAY
	.no_dead_strip	_apply_8x8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_8x8
_apply_8x8:                             ; @apply_8x8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	d9, d8, [sp, #96]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	stp	x6, x5, [sp, #56]               ; 16-byte Folded Spill
                                        ; kill: def $w4 killed $w4 def $x4
	stp	x2, x3, [sp, #16]               ; 16-byte Folded Spill
	mov	x28, x1
	mov	x23, x0
	ldp	w26, w24, [x0]
	ldr	x8, [x0, #64]
	str	x7, [sp, #8]                    ; 8-byte Folded Spill
	cbz	x8, LBB0_6
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	sxtw	x8, w4
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	lsl	w9, w26, #4
	lsl	w8, w24, #4
	stp	w8, w9, [sp, #40]               ; 8-byte Folded Spill
	ldr	x8, [x23, #8]
	ldr	x8, [x8, w4, sxtw #3]
	movi.2d	v0, #0000000000000000
	str	x28, [sp, #32]                  ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x0, x8, [x23, #48]
	ldp	w2, w9, [x23, #24]
	ldr	w10, [x23, #32]
	stp	w9, w10, [sp]
	mov	x1, x27
	mov	x3, x2
	mov	w4, #9
	mov	w5, #9
	mov	x6, x26
	mov	x7, x28
	blr	x8
	ldr	x27, [x23, #48]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x28, [sp, #32]                  ; 8-byte Folded Reload
	ldp	w8, w9, [sp, #72]               ; 8-byte Folded Reload
	orr	w8, w20, w8
	add	x9, x28, w9, uxtw #2
	ldr	w2, [x23, #24]
	mul	w10, w2, w24
	add	x0, x9, w10, sxtw #2
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	add	x8, x9, w8, uxtw #3
	ldr	x8, [x8, #128]
	mov	x1, x27
	blr	x8
	ldr	x8, [x23, #8]
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x8, x21]
	ldr	d0, [x9]
	usra.2s	v0, v0, #31
	ldr	q1, [sp, #80]                   ; 16-byte Folded Reload
	ssra.2s	v1, v0, #1
	mov.16b	v0, v1
	add	x22, x22, #4
	add	x21, x21, #8
	cmp	x22, #16
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	q0, [sp, #80]                   ; 16-byte Folded Spill
	ldr	x8, [x8, x21]
	ldp	w9, w8, [x8]
	and	w25, w8, #0x3
	lsl	w27, w25, #2
	and	w19, w9, #0x3
	and	w11, w21, #0x8
	ldr	w10, [sp, #44]                  ; 4-byte Folded Reload
	str	w11, [sp, #76]                  ; 4-byte Folded Spill
	orr	w10, w11, w10
	add	w0, w10, w9, asr #2
	and	w24, w22, #0x7ffffff8
	ldr	w9, [sp, #40]                   ; 4-byte Folded Reload
	add	w9, w24, w9
	add	w20, w9, w8, asr #2
	ldr	w2, [x23, #16]
	mov	w1, #-16
	bl	_av_clip
	mov	x26, x0
	ldp	w8, w2, [x23, #16]
	cmp	w0, w8
	csel	w8, wzr, w19, eq
	str	w8, [sp, #72]                   ; 4-byte Folded Spill
	mov	x0, x20
	mov	w1, #-16
	bl	_av_clip
	mov	x28, x0
	ldp	w8, w9, [x23, #20]
	cmp	w0, w8
	csel	w20, wzr, w27, eq
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	mul	w9, w9, w0
	add	x8, x8, w9, sxtw #2
	add	x27, x8, w26, sxtw #2
	ldr	w8, [x23, #28]
	sub	w8, w8, w19
	sub	w0, w8, #7
	mov	w1, #0
	bl	_FFMAX
	cmp	w26, w0
	b.hs	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23, #32]
	sub	w8, w8, w25
	sub	w0, w8, #7
	mov	w1, #0
	bl	_FFMAX
	cmp	w28, w0
	b.hs	LBB0_2
	b	LBB0_3
LBB0_6:
	lsl	w3, w26, #4
	str	w3, [sp, #80]                   ; 4-byte Folded Spill
	lsl	w27, w24, #4
	add	x25, x7, #16
	ldr	x2, [x5]
	ldr	x8, [x23, #8]
                                        ; kill: def $w4 killed $w4 killed $x4 def $x4
	sbfiz	x19, x4, #3, #32
	ldr	x8, [x8, x19]
	ldr	x8, [x8]
	ldp	w6, w7, [x8]
	mov	x0, x23
	mov	x1, x28
	mov	x4, x27
	mov	x22, x5
	mov	x5, x25
	bl	_hpel_motion
	ldr	x8, [x23, #8]
	ldr	x8, [x8, x19]
	add	x1, x28, #32
	ldr	x2, [x22]
	mov	w20, #8
	mov	w21, #8
	bfi	w21, w26, #4, #28
	ldp	x9, x8, [x8]
	ldp	w6, w7, [x8]
	bfi	w20, w24, #4, #28
	ldr	d8, [x9]
	mov	x0, x23
	mov	x24, x1
	mov	x3, x21
	mov	x4, x27
	mov	x5, x25
	bl	_hpel_motion
	ldr	x8, [x23, #8]
	ldr	x8, [x8, x19]
	ldp	x9, x8, [x8, #8]
	ldr	d0, [x9]
	add.2s	v8, v0, v8
	ldrsw	x9, [x23, #24]
	add	x1, x28, x9, lsl #5
	ldr	x2, [x22]
	ldp	w6, w7, [x8]
	mov	x0, x23
	ldr	w3, [sp, #80]                   ; 4-byte Folded Reload
	mov	x4, x20
	mov	x5, x25
	bl	_hpel_motion
	ldr	x8, [x23, #8]
	ldr	x8, [x8, x19]
	ldp	x9, x8, [x8, #16]
	ldr	d0, [x9]
	add.2s	v8, v0, v8
	ldrsw	x9, [x23, #24]
	add	x1, x24, x9, lsl #5
	ldr	x2, [x22]
	ldp	w6, w7, [x8]
	mov	x0, x23
	mov	x3, x21
	mov	x4, x20
	mov	x5, x25
	bl	_hpel_motion
	ldr	x8, [x23, #8]
	ldr	x8, [x8, x19]
	ldr	x8, [x8, #24]
	ldr	d0, [x8]
	add.2s	v0, v0, v8
LBB0_7:
Lloh0:
	adrp	x8, _CONFIG_GRAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_GRAY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.8:
	ldr	x8, [x23, #40]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AV_CODEC_FLAG_GRAY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_FLAG_GRAY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #96]               ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_10:
	ldp	x8, x1, [sp, #8]                ; 16-byte Folded Reload
	add	x4, x8, #16
	fmov	w5, s0
	mov.s	w6, v0[1]
	mov	x0, x23
	ldr	x2, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x3, [sp, #64]                   ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #96]               ; 16-byte Folded Reload
	add	sp, sp, #208
	b	_chroma_4mv_motion
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_GRAY,4,2                ; @CONFIG_GRAY
	.comm	_AV_CODEC_FLAG_GRAY,4,2         ; @AV_CODEC_FLAG_GRAY
	.no_dead_strip	_apply_8x8
.subsections_via_symbols
