	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function common_vt_2t_and_aver_dst_4x8_msa
_common_vt_2t_and_aver_dst_4x8_msa:     ## @common_vt_2t_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
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	%r8, %rdi
	callq	_LD_SH
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	___msa_splati_h
	movq	%rax, %r12
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_LD_SB8
	shll	$3, %ebx
	movslq	%ebx, %rax
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	callq	_LD_SB
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_LW4
	callq	_INSERT_W4_UB
	leal	(,%r15,4), %eax
	cltq
	leaq	(%r14,%rax,4), %rdi
	movl	%r15d, %esi
	callq	_LW4
	callq	_INSERT_W4_UB
	callq	_ILVR_B4_SB
	movl	%ebx, (%rsp)
	callq	_ILVR_B4_SB
	callq	_ILVR_D4_UB
	movq	%r12, 8(%rsp)
	movq	%r12, (%rsp)
	movq	%r12, %r8
	movq	%r12, %r9
	callq	_DOTP_UB4_UH
	movl	$7, %r8d
	callq	_SRARI_H4_UH
	movl	$7, %r8d
	callq	_SAT_UH4_UH
	callq	_PCKEV_B2_UB
	callq	_AVER_UB2_UB
	movl	%r15d, 40(%rsp)
	movq	%r14, 32(%rsp)
	movl	$3, 24(%rsp)
	movl	$2, 16(%rsp)
	movl	$1, 8(%rsp)
	movl	$0, (%rsp)
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	$2, %r8d
	movl	$3, %r9d
	callq	_ST_W8
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_common_vt_2t_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_vt_2t_and_aver_dst_4x8_msa
_common_vt_2t_and_aver_dst_4x8_msa:     ; @common_vt_2t_and_aver_dst_4x8_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x4
	bl	_LD_SH
	mov	w1, #0
	bl	___msa_splati_h
	mov	x23, x0
	mov	x0, x22
	mov	x1, x21
	bl	_LD_SB8
	lsl	w8, w21, #3
	add	x0, x22, w8, sxtw #2
	bl	_LD_SB
	mov	x21, x0
	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
	bl	_ILVR_B4_SB
	mov	x6, x21
	bl	_ILVR_B4_SB
	bl	_ILVR_D4_UB
	mov	x4, x23
	mov	x5, x23
	mov	x6, x23
	mov	x7, x23
	bl	_DOTP_UB4_UH
	mov	w4, #7
	bl	_SRARI_H4_UH
	mov	w4, #7
	bl	_SAT_UH4_UH
	bl	_PCKEV_B2_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, #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
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_common_vt_2t_and_aver_dst_4x8_msa
.subsections_via_symbols
