	.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_8x8mult_msa
_common_vt_2t_and_aver_dst_8x8mult_msa: ## @common_vt_2t_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
	movl	%r9d, %r15d
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	%r8, %rdi
	callq	_LD_SH
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	___msa_splati_h
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_LD_UB
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpl	$8, %r15d
	jb	LBB0_3
## %bb.1:
	sarl	$3, %r15d
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(%r14,%rax,4), %r12
	shll	$3, %eax
	movslq	%eax, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	cltq
	shlq	$2, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,8), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_LD_UB8
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_LD4
	callq	_INSERT_D2_UB
	callq	_INSERT_D2_UB
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movl	%r14d, %esi
	callq	_LD4
	callq	_INSERT_D2_UB
	callq	_INSERT_D2_UB
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_ILVR_B4_UB
	callq	_ILVR_B4_UB
	movq	%r13, 8(%rsp)
	movq	%r13, (%rsp)
	movq	%r13, %r8
	movq	%r13, %r9
	callq	_DOTP_UB4_UH
	movl	$7, %r8d
	callq	_SRARI_H4_UH
	movl	$7, %r8d
	callq	_SAT_UH4_UH
	movl	%r14d, 8(%rsp)
	movq	%rbx, (%rsp)
	callq	_PCKEV_AVG_ST8x4_UB
	movq	%r13, 8(%rsp)
	movq	%r13, (%rsp)
	movq	%r13, %r8
	movq	%r13, %r9
	callq	_DOTP_UB4_UH
	movl	$7, %r8d
	callq	_SRARI_H4_UH
	movl	$7, %r8d
	callq	_SAT_UH4_UH
	movl	%r14d, 8(%rsp)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	callq	_PCKEV_AVG_ST8x4_UB
	addq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	addq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	decl	%r15d
	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
	.no_dead_strip	_common_vt_2t_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_vt_2t_and_aver_dst_8x8mult_msa
_common_vt_2t_and_aver_dst_8x8mult_msa: ; @common_vt_2t_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	x25, x5
	mov	x19, x3
	mov	x20, x2
	str	w1, [sp, #44]                   ; 4-byte Folded Spill
	mov	x24, x0
	mov	x0, x4
	bl	_LD_SH
	mov	w1, #0
	bl	___msa_splati_h
	mov	x22, x0
	mov	x0, x24
	bl	_LD_UB
	cmp	w25, #8
	b.lo	LBB0_3
; %bb.1:
	mov	x23, x0
	asr	w26, w25, #3
	ldr	w10, [sp, #44]                  ; 4-byte Folded Reload
	lsl	w8, w10, #3
	lsl	w9, w19, #2
	sbfiz	x27, x8, #2, #32
	sbfiz	x28, x9, #3, #32
	sbfiz	x21, x9, #2, #32
	add	x24, x24, w10, sxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w26, w26, #1
	mov	x0, x24
	ldr	w1, [sp, #44]                   ; 4-byte Folded Reload
	bl	_LD_UB8
	mov	x0, x20
	mov	x1, x19
	bl	_LD4
	bl	_INSERT_D2_UB
	bl	_INSERT_D2_UB
	add	x25, x20, x21
	mov	x0, x25
	mov	x1, x19
	bl	_LD4
	bl	_INSERT_D2_UB
	bl	_INSERT_D2_UB
	mov	x1, x23
	bl	_ILVR_B4_UB
	bl	_ILVR_B4_UB
	mov	x4, x22
	mov	x5, x22
	mov	x6, x22
	mov	x7, x22
	bl	_DOTP_UB4_UH
	mov	w4, #7
	bl	_SRARI_H4_UH
	mov	w4, #7
	bl	_SAT_UH4_UH
	mov	x6, x20
	mov	x7, x19
	bl	_PCKEV_AVG_ST8x4_UB
	mov	x4, x22
	mov	x5, x22
	mov	x6, x22
	mov	x7, x22
	bl	_DOTP_UB4_UH
	mov	w4, #7
	bl	_SRARI_H4_UH
	mov	w4, #7
	bl	_SAT_UH4_UH
	mov	x6, x25
	mov	x7, x19
	bl	_PCKEV_AVG_ST8x4_UB
	add	x24, x24, x27
	add	x20, x20, x28
	cbnz	w26, 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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_common_vt_2t_and_aver_dst_8x8mult_msa
.subsections_via_symbols
