	.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_64w_msa
_common_hz_8t_and_aver_dst_64w_msa:     ## @common_hz_8t_and_aver_dst_64w_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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movq	%r8, %r12
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_mc_filt_mask_arr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_LD_UB
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_LD_SH
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$3, %r8d
	callq	_SPLATI_H4_SB
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	2(%rax), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	leaq	4(%rax), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	addq	$6, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	addq	$-12, %r15
	movslq	%r14d, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %r12                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movb	$1, %al
	xorl	%ecx, %ecx
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rdi
	leaq	(,%rcx,4), %rbx
	callq	_LD_SB
	movl	%eax, %r14d
	movq	%rbx, %rcx
	orq	$64, %rcx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rdi
	callq	_LD_SB
	movl	%eax, %r15d
	orq	$96, %rbx
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%rbx, %rdi
	callq	_LD_SB
	movl	%eax, %ebx
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	$8, %edx
	callq	___msa_sldi_b
	movl	%eax, %r13d
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_XORI_B4_128_SB
	movl	%r14d, %edi
	movl	%r14d, %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rcx
	movq	%r12, %r8
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %r9
	callq	_VSHF_B4_SH
	movl	%r13d, %edi
	movl	%r13d, %esi
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	movq	%r15, %r9
	callq	_VSHF_B4_SH
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, %esi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	movq	%r15, %r9
	callq	_VSHF_B4_SH
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, %esi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	movq	%r15, %r9
	callq	_VSHF_B4_SH
	callq	_DOTP_SB4_SH
	callq	_DOTP_SB4_SH
	callq	_DPADD_SB4_SH
	callq	_DPADD_SB4_SH
	callq	_ADDS_SH4_SH
	movl	$7, %r8d
	callq	_SRARI_H4_SH
	movl	$7, %r8d
	callq	_SAT_SH4_SH
	movq	-128(%rbp), %rax                ## 8-byte Reload
	leaq	(,%rax,4), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_LD_UB2
	movq	%rbx, %rcx
	callq	_PCKEV_XORI128_AVG_ST_UB
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	addq	%r13, %rcx
	callq	_PCKEV_XORI128_AVG_ST_UB
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	$32, %ecx
	testb	$1, -64(%rbp)                   ## 1-byte Folded Reload
	movl	$0, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r15,%rax,4), %r15
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r13,%rax,4), %r13
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	decl	%ebx
	jne	LBB0_2
LBB0_5:
	addq	$152, %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_64w_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_64w_msa
_common_hz_8t_and_aver_dst_64w_msa:     ; @common_hz_8t_and_aver_dst_64w_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x5
	mov	x22, x4
	mov	x25, x3
	mov	x28, x2
	mov	x26, x1
	mov	x27, x0
Lloh0:
	adrp	x8, _mc_filt_mask_arr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mc_filt_mask_arr@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_LD_UB
	mov	x21, x0
	mov	x0, x22
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	bl	_SPLATI_H4_SB
	cbz	w19, LBB0_5
; %bb.1:
	add	x22, x21, #2
	add	x23, x21, #4
	add	x24, x21, #6
	sub	x20, x27, #12
	sxtw	x9, w26
	sxtw	x8, w25
	stp	x8, x9, [sp, #16]               ; 16-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	str	w19, [sp, #36]                  ; 4-byte Folded Spill
	mov	x8, #0
	mov	w9, #1
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w9, [sp, #60]                   ; 4-byte Folded Spill
	lsl	x19, x8, #2
	str	x19, [sp, #40]                  ; 8-byte Folded Spill
	add	x0, x20, x19
	bl	_LD_SB
	mov	x25, x0
	orr	x8, x19, #0x40
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	add	x0, x20, x8
	bl	_LD_SB
	mov	x26, x0
	orr	x8, x19, #0x60
	add	x0, x20, x8
	bl	_LD_SB
	mov	x27, x0
	mov	x0, x26
	mov	x1, x25
	mov	w2, #8
	bl	___msa_sldi_b
	mov	x19, x28
	mov	x28, x0
	mov	x0, x25
	mov	x1, x28
	mov	x2, x26
	mov	x3, x27
	bl	_XORI_B4_128_SB
	mov	x0, x25
	mov	x1, x25
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	bl	_VSHF_B4_SH
	mov	x0, x28
	mov	x1, x28
	mov	x28, x19
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	bl	_VSHF_B4_SH
	mov	x0, x26
	mov	x1, x26
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	bl	_VSHF_B4_SH
	mov	x0, x27
	mov	x1, x27
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	bl	_VSHF_B4_SH
	bl	_DOTP_SB4_SH
	bl	_DOTP_SB4_SH
	bl	_DPADD_SB4_SH
	bl	_DPADD_SB4_SH
	bl	_ADDS_SH4_SH
	mov	w4, #7
	bl	_SRARI_H4_SH
	mov	w4, #7
	bl	_SAT_SH4_SH
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x25, x19, x8
	mov	x0, x25
	mov	w1, #16
	bl	_LD_UB2
	mov	x3, x25
	bl	_PCKEV_XORI128_AVG_ST_UB
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x3, x19, x8
	bl	_PCKEV_XORI128_AVG_ST_UB
	mov	w9, #0
	mov	w8, #32
	ldr	w10, [sp, #60]                  ; 4-byte Folded Reload
	tbnz	w10, #0, LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x20, x20, x8, lsl #2
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x28, x28, x8, lsl #2
	ldr	w19, [sp, #36]                  ; 4-byte Folded Reload
	subs	w19, w19, #1
	b.ne	LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	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_64w_msa
.subsections_via_symbols
