	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_hz_uniwgt_4t_4x8multiple_msa
_hevc_hz_uniwgt_4t_4x8multiple_msa:     ## @hevc_hz_uniwgt_4t_4x8multiple_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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	32(%rbp), %ebx
	movzwl	16(%rbp), %r14d
	movq	_ff_hevc_mask_arr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$64, %rdi
	callq	_LD_SB
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_LD_SH
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_SPLATI_H2_SH
	movl	%r14d, %edi
	callq	___msa_fill_w
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	___msa_fill_w
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	shll	$7, %r14d
	addl	$-6, %ebx
	movl	%r14d, %edi
	callq	___msa_fill_h
	movl	%eax, %r14d
	movl	24(%rbp), %edi
	callq	___msa_fill_h
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	___msa_fill_h
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	___msa_srar_h
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	___msa_adds_s_h
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$8, %eax
	jb	LBB0_3
## %bb.1:
	movl	%eax, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$2, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	sarl	$3, %ecx
	addq	$-4, %r13
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,8), %eax
	movslq	%eax, %rdx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,8), %eax
	cltq
	shlq	$2, %rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB8
	callq	_XORI_B8_128_SB
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %r9
	callq	_VSHF_B2_SB
	movq	%rbx, %r8
	movq	%r14, %r9
	callq	_VSHF_B2_SB
	movq	%rbx, %r8
	movq	%r14, %r9
	callq	_VSHF_B2_SB
	movq	%rbx, %r8
	movq	%r14, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r12d
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r15d
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r14d
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r13d
	movl	%eax, 32(%rsp)
	movl	%r14d, 24(%rsp)
	movl	%r15d, 16(%rsp)
	movl	%r12d, 8(%rsp)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_HEVC_UNIW_RND_CLIP4_MAX_SATU_H
	movl	%r15d, %edi
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%r12d, %esi
	movl	%r13d, %edx
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movl	%r14d, %ecx
	callq	_PCKEV_B2_UB
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 40(%rsp)
	movq	%r15, 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	-96(%rbp), %r13                 ## 8-byte Folded Reload
	addq	-88(%rbp), %r15                 ## 8-byte Folded Reload
	decl	%ebx
	movl	%ebx, %ecx
	jne	LBB0_2
LBB0_3:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_hevc_mask_arr,8,3           ## @ff_hevc_mask_arr
	.no_dead_strip	_hevc_hz_uniwgt_4t_4x8multiple_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hevc_hz_uniwgt_4t_4x8multiple_msa
_hevc_hz_uniwgt_4t_4x8multiple_msa:     ; @hevc_hz_uniwgt_4t_4x8multiple_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	x25, x7
	mov	x23, x6
	mov	x26, x5
	mov	x24, x4
	stp	w1, w3, [sp, #56]               ; 8-byte Folded Spill
	mov	x20, x2
	mov	x19, x0
	ldr	w28, [x29, #16]
Lloh0:
	adrp	x8, _ff_hevc_mask_arr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_hevc_mask_arr@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, #64
	bl	_LD_SB
	mov	x22, x0
	mov	x0, x24
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	bl	_SPLATI_H2_SH
	and	w27, w23, #0xffff
	mov	x0, x27
	bl	___msa_fill_w
	str	w0, [sp, #52]                   ; 4-byte Folded Spill
	mov	x0, x28
	bl	___msa_fill_w
	str	w0, [sp, #48]                   ; 4-byte Folded Spill
	lsl	w0, w27, #7
	sub	w27, w28, #6
	bl	___msa_fill_h
	mov	x28, x0
	mov	x0, x25
	bl	___msa_fill_h
	mov	x25, x0
	mov	x0, x27
	bl	___msa_fill_h
	mov	x1, x0
	mov	x0, x28
	bl	___msa_srar_h
	mov	x1, x0
	mov	x0, x25
	bl	___msa_adds_s_h
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	cmp	w26, #8
	b.lo	LBB0_3
; %bb.1:
	asr	w24, w26, #3
	add	x26, x22, #2
	sub	x27, x19, #4
	ldp	w8, w9, [sp, #56]               ; 8-byte Folded Reload
	lsl	w8, w8, #3
	lsl	w9, w9, #3
	sbfiz	x8, x8, #2, #32
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	sbfiz	x25, x9, #2, #32
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w24, w24, #1
	mov	x0, x27
	ldr	w1, [sp, #56]                   ; 4-byte Folded Reload
	bl	_LD_SB8
	bl	_XORI_B8_128_SB
	mov	x4, x22
	mov	x5, x26
	bl	_VSHF_B2_SB
	mov	x4, x22
	mov	x5, x26
	bl	_VSHF_B2_SB
	mov	x4, x22
	mov	x5, x26
	bl	_VSHF_B2_SB
	mov	x4, x22
	mov	x5, x26
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x28, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x19, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x21, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x23, x0
	stp	w21, w0, [sp, #4]
	str	w19, [sp]
	mov	x0, x28
	mov	x1, x19
	mov	x2, x21
	mov	x3, x23
	ldp	w6, w4, [sp, #48]               ; 8-byte Folded Reload
	ldr	w5, [sp, #44]                   ; 4-byte Folded Reload
	mov	x7, x28
	bl	_HEVC_UNIW_RND_CLIP4_MAX_SATU_H
	mov	x0, x19
	mov	x1, x28
	mov	x2, x23
	mov	x3, x21
	bl	_PCKEV_B2_UB
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	str	w8, [sp, #16]
	mov	x8, #2
	movk	x8, #3, lsl #32
	stp	x8, x20, [sp]
	mov	w2, #0
	mov	w3, #1
	mov	w4, #2
	mov	w5, #3
	mov	w6, #0
	mov	w7, #1
	bl	_ST_W8
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x27, x27, x8
	add	x20, x20, x25
	cbnz	w24, LBB0_2
LBB0_3:
	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	_ff_hevc_mask_arr,8,3           ; @ff_hevc_mask_arr
	.no_dead_strip	_hevc_hz_uniwgt_4t_4x8multiple_msa
.subsections_via_symbols
