	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function common_hv_2ht_2vt_and_aver_dst_8x8mult_msa
_common_hv_2ht_2vt_and_aver_dst_8x8mult_msa: ## @common_hv_2ht_2vt_and_aver_dst_8x8mult_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movl	16(%rbp), %r13d
	movq	_mc_filt_mask_arr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_LD_SB
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_LD_SH
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	___msa_splati_h
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %r12d
	callq	_LD_SH
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	___msa_splati_h
	movq	%rax, %r14
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_LD_SB
	movl	%eax, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %r15
	movl	$7, %r8d
	callq	_HORIZ_2TAP_FILT_UH
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	cmpl	$4, %r13d
	jb	LBB0_3
## %bb.1:
	sarl	$2, %r13d
	movslq	-60(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	shll	$2, %eax
	movslq	%eax, %rdx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	cltq
	shlq	$2, %rdx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	%r13d, -84(%rbp)                ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_LD_SB4
	movl	%r12d, %edx
	movq	%r15, %rcx
	movl	$7, %r8d
	callq	_HORIZ_2TAP_FILT_UH
	movq	%rax, %r13
	movl	%r13d, %edi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	___msa_ilvev_b
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	___msa_dotp_u_h
	movq	%rax, %r14
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movl	%r12d, %edx
	movq	%r15, %rcx
	movl	$7, %r8d
	callq	_HORIZ_2TAP_FILT_UH
	movq	%rax, %r12
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	___msa_ilvev_b
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	___msa_dotp_u_h
	movq	%rax, %rbx
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$7, %edx
	callq	_SRARI_H2_UH
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$7, %edx
	callq	_SAT_UH2_UH
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %rcx
	movl	$7, %r8d
	callq	_HORIZ_2TAP_FILT_UH
	movq	%rax, %r13
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	___msa_ilvev_b
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	___msa_dotp_u_h
	movq	%rax, %r14
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	$7, %r8d
	callq	_HORIZ_2TAP_FILT_UH
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	___msa_ilvev_b
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	___msa_dotp_u_h
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$7, %edx
	callq	_SRARI_H2_UH
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$7, %edx
	callq	_SAT_UH2_UH
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_LD4
	callq	_INSERT_D2_UB
	callq	_INSERT_D2_UB
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	%r14, %rdx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, %rcx
	pushq	%r13
	movl	-84(%rbp), %r13d                ## 4-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	callq	_PCKEV_AVG_ST8x4_UB
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	addq	$16, %rsp
	addq	-128(%rbp), %rcx                ## 8-byte Folded Reload
	addq	-120(%rbp), %rbx                ## 8-byte Folded Reload
	decl	%r13d
	jne	LBB0_2
LBB0_3:
	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_hv_2ht_2vt_and_aver_dst_8x8mult_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function common_hv_2ht_2vt_and_aver_dst_8x8mult_msa
_common_hv_2ht_2vt_and_aver_dst_8x8mult_msa: ; @common_hv_2ht_2vt_and_aver_dst_8x8mult_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x27, x6
	mov	x24, x5
	mov	x23, x4
	stp	w1, w3, [sp, #24]               ; 8-byte Folded Spill
	mov	x22, x2
	mov	x25, x0
Lloh0:
	adrp	x8, _mc_filt_mask_arr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mc_filt_mask_arr@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_LD_SB
	mov	x1, x0
	mov	x0, x23
	mov	x23, x1
	bl	_LD_SH
	mov	w1, #0
	bl	___msa_splati_h
	mov	x1, x0
	mov	x0, x24
	mov	x24, x1
	bl	_LD_SH
	mov	w1, #0
	bl	___msa_splati_h
	mov	x19, x0
	mov	x0, x25
	bl	_LD_SB
	mov	x1, x0
	mov	x2, x23
	mov	x3, x24
	mov	w4, #7
	bl	_HORIZ_2TAP_FILT_UH
	cmp	w27, #4
	b.lo	LBB0_3
; %bb.1:
	mov	x26, x0
	asr	w11, w27, #2
	ldp	w10, w9, [sp, #24]              ; 8-byte Folded Reload
	lsl	w8, w10, #2
	lsl	w9, w9, #2
	sbfiz	x8, x8, #2, #32
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	sbfiz	x8, x9, #2, #32
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	add	x25, x25, w10, sxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w11, w11, #1
	str	w11, [sp, #44]                  ; 4-byte Folded Spill
	mov	x0, x25
	ldr	w1, [sp, #24]                   ; 4-byte Folded Reload
	bl	_LD_SB4
	mov	x2, x23
	mov	x3, x24
	mov	w4, #7
	bl	_HORIZ_2TAP_FILT_UH
	mov	x28, x0
	mov	x1, x26
	bl	___msa_ilvev_b
	mov	x1, x19
	bl	___msa_dotp_u_h
	mov	x21, x0
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	mov	x2, x23
	mov	x3, x24
	mov	w4, #7
	bl	_HORIZ_2TAP_FILT_UH
	mov	x26, x0
	mov	x1, x28
	bl	___msa_ilvev_b
	mov	x1, x19
	bl	___msa_dotp_u_h
	mov	x28, x0
	mov	x0, x21
	mov	x1, x28
	mov	w2, #7
	bl	_SRARI_H2_UH
	mov	x0, x21
	mov	x1, x28
	mov	w2, #7
	bl	_SAT_UH2_UH
	mov	x2, x23
	mov	x3, x24
	mov	w4, #7
	bl	_HORIZ_2TAP_FILT_UH
	mov	x21, x0
	mov	x1, x26
	bl	___msa_ilvev_b
	mov	x1, x19
	bl	___msa_dotp_u_h
	mov	x20, x19
	mov	x19, x0
	mov	x2, x23
	mov	x3, x24
	mov	w4, #7
	bl	_HORIZ_2TAP_FILT_UH
	mov	x26, x0
	mov	x1, x21
	bl	___msa_ilvev_b
	mov	x1, x20
	bl	___msa_dotp_u_h
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #7
	bl	_SRARI_H2_UH
	mov	x0, x19
	mov	x1, x21
	mov	w2, #7
	bl	_SAT_UH2_UH
	mov	x0, x22
	mov	x27, x24
	mov	x24, x23
	ldr	w23, [sp, #28]                  ; 4-byte Folded Reload
	mov	x1, x23
	bl	_LD4
	bl	_INSERT_D2_UB
	bl	_INSERT_D2_UB
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	mov	x1, x28
	mov	x2, x19
	mov	x19, x20
	mov	x3, x21
	mov	x6, x22
	mov	x7, x23
	mov	x23, x24
	mov	x24, x27
	bl	_PCKEV_AVG_ST8x4_UB
	ldr	w11, [sp, #44]                  ; 4-byte Folded Reload
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x25, x25, x8
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x22, x22, x8
	cbnz	w11, LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	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_hv_2ht_2vt_and_aver_dst_8x8mult_msa
.subsections_via_symbols
