	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function common_hz_8t_and_aver_dst_4x8_msa
_common_hz_8t_and_aver_dst_4x8_msa:     ## @common_hz_8t_and_aver_dst_4x8_msa
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	_mc_filt_mask_arr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$64, %rdi
	callq	_LD_UB
	movq	%rax, %r12
	leaq	-12(%r14), %r15
	movq	%r13, %rdi
	callq	_LD_SH
	subq	$32, %rsp
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$3, %r8d
	callq	_SPLATI_H4_SB
	addq	$32, %rsp
	leaq	2(%r12), %r13
	leaq	4(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	6(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_LD_SB4
	callq	_XORI_B4_128_SB
	leal	(,%rbx,4), %eax
	cltq
	leaq	(%r14,%rax,4), %rax
	addq	$-12, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_LW4
	callq	_INSERT_W4_UB
	leal	(,%r15,4), %eax
	cltq
	leaq	(%rbx,%rax,4), %rdi
	movl	%r15d, %esi
	callq	_LW4
	callq	_INSERT_W4_UB
	subq	$48, %rsp
	movq	%r12, %rbx
	movq	%r12, %r8
	movq	%r13, %r9
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	pushq	%r12
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	pushq	%r14
	callq	_HORIZ_8TAP_4WID_4VECS_FILT
	addq	$64, %rsp
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB4
	callq	_XORI_B4_128_SB
	subq	$48, %rsp
	movq	%rbx, %r8
	movq	%r13, %r9
	pushq	%r12
	pushq	%r14
	callq	_HORIZ_8TAP_4WID_4VECS_FILT
	addq	$64, %rsp
	movl	$7, %r8d
	callq	_SRARI_H4_SH
	movl	$7, %r8d
	callq	_SAT_SH4_SH
	subq	$48, %rsp
	callq	_PCKEV_B4_UB
	addq	$48, %rsp
	callq	_ILVR_D2_UB
	callq	_XORI_B2_128_UB
	callq	_AVER_UB2_UB
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	$2, %r8d
	movl	$3, %r9d
	pushq	%r15
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	$3
	pushq	$2
	pushq	$1
	pushq	$0
	callq	_ST_W8
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mc_filt_mask_arr,8,3           ## @mc_filt_mask_arr
	.no_dead_strip	_common_hz_8t_and_aver_dst_4x8_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function common_hz_8t_and_aver_dst_4x8_msa
_common_hz_8t_and_aver_dst_4x8_msa:     ; @common_hz_8t_and_aver_dst_4x8_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x23, x4
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _mc_filt_mask_arr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mc_filt_mask_arr@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, #64
	bl	_LD_UB
	mov	x22, x0
	sub	x24, x24, #12
	mov	x0, x23
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	bl	_SPLATI_H4_SB
	add	x23, x22, #2
	add	x25, x22, #4
	add	x26, x22, #6
	mov	x0, x24
	mov	x1, x21
	bl	_LD_SB4
	bl	_XORI_B4_128_SB
	lsl	w8, w21, #2
	add	x24, x24, w8, sxtw #2
	mov	x0, x19
	mov	x1, x20
	bl	_LW4
	bl	_INSERT_W4_UB
	lsl	w8, w20, #2
	add	x0, x19, w8, sxtw #2
	mov	x1, x20
	bl	_LW4
	bl	_INSERT_W4_UB
	mov	x4, x22
	mov	x5, x23
	mov	x6, x25
	mov	x7, x26
	bl	_HORIZ_8TAP_4WID_4VECS_FILT
	mov	x0, x24
	mov	x1, x21
	bl	_LD_SB4
	bl	_XORI_B4_128_SB
	mov	x4, x22
	mov	x5, x23
	mov	x6, x25
	mov	x7, x26
	bl	_HORIZ_8TAP_4WID_4VECS_FILT
	mov	w4, #7
	bl	_SRARI_H4_SH
	mov	w4, #7
	bl	_SAT_SH4_SH
	bl	_PCKEV_B4_UB
	bl	_ILVR_D2_UB
	bl	_XORI_B2_128_UB
	bl	_AVER_UB2_UB
	str	w20, [sp, #16]
	mov	x8, #2
	movk	x8, #3, lsl #32
	stp	x8, x19, [sp]
	mov	w2, #0
	mov	w3, #1
	mov	w4, #2
	mov	w5, #3
	mov	w6, #0
	mov	w7, #1
	bl	_ST_W8
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mc_filt_mask_arr,8,3           ; @mc_filt_mask_arr
	.no_dead_strip	_common_hz_8t_and_aver_dst_4x8_msa
.subsections_via_symbols
