	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_hz_uniwgt_8t_4w_msa
_hevc_hz_uniwgt_8t_4w_msa:              ## @hevc_hz_uniwgt_8t_4w_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, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	24(%rbp), %r14d
	movl	32(%rbp), %r12d
	movzwl	16(%rbp), %r15d
	movl	%r15d, %edi
	callq	___msa_fill_w
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	___msa_fill_w
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	shll	$7, %r15d
	addl	$-6, %r12d
	movl	%r15d, %edi
	callq	___msa_fill_h
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	___msa_fill_h
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	___msa_fill_h
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	___msa_srar_h
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	___msa_adds_s_h
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_LD_SH
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$3, %r8d
	callq	_SPLATI_H4_SH
	movq	_ff_hevc_mask_arr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$64, %rdi
	callq	_LD_SB
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpl	$8, %ecx
	jb	LBB0_3
## %bb.1:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	2(%rax), %rdx
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	leaq	4(%rax), %rdx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	addq	$6, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	sarl	$3, %ecx
	addq	$-12, %r13
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,8), %eax
	movslq	%eax, %rdx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,8), %eax
	cltq
	shlq	$2, %rdx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB8
	callq	_XORI_B8_128_SB
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-136(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rcx
	movq	-128(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %r8
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %r9
	callq	_VSHF_B4_SB
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movq	%r12, %r8
	movq	%r14, %r9
	callq	_VSHF_B4_SB
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movq	%r12, %r8
	movq	%r14, %r9
	callq	_VSHF_B4_SB
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movq	%r12, %r8
	movq	%r14, %r9
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movl	%eax, %r14d
	callq	_HEVC_FILT_8TAP_SH
	movl	%eax, %r12d
	callq	_HEVC_FILT_8TAP_SH
	movl	%eax, %r15d
	callq	_HEVC_FILT_8TAP_SH
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rsp)
	movl	%r14d, %edi
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	callq	_HEVC_UNIW_RND_CLIP4_MAX_SATU_H
	callq	_PCKEV_B2_UB
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 40(%rsp)
	movq	%rbx, 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
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addq	-112(%rbp), %r13                ## 8-byte Folded Reload
	addq	-104(%rbp), %rbx                ## 8-byte Folded Reload
	decl	%ecx
	jne	LBB0_2
LBB0_3:
	addq	$152, %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_8t_4w_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_8t_4w_msa
_hevc_hz_uniwgt_8t_4w_msa:              ; @hevc_hz_uniwgt_8t_4w_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x24, x7
	mov	x26, x5
	mov	x25, x4
	stp	w1, w3, [sp, #72]               ; 8-byte Folded Spill
	mov	x20, x2
	mov	x19, x0
	ldr	w27, [x29, #16]
	and	w28, w6, #0xffff
	mov	x0, x28
	bl	___msa_fill_w
	mov	x21, x0
	mov	x0, x27
	bl	___msa_fill_w
	mov	x22, x0
	lsl	w0, w28, #7
	sub	w27, w27, #6
	bl	___msa_fill_h
	mov	x28, x0
	mov	x0, x24
	bl	___msa_fill_h
	mov	x24, x0
	mov	x0, x27
	bl	___msa_fill_h
	mov	x1, x0
	mov	x0, x28
	bl	___msa_srar_h
	mov	x1, x0
	mov	x0, x24
	bl	___msa_adds_s_h
	mov	x23, x0
	mov	x0, x25
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	bl	_SPLATI_H4_SH
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
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	cmp	w26, #8
	b.lo	LBB0_3
; %bb.1:
	asr	w24, w26, #3
	ldr	x10, [sp, #64]                  ; 8-byte Folded Reload
	add	x9, x10, #2
	add	x8, x10, #4
	stp	x8, x9, [sp, #48]               ; 16-byte Folded Spill
	ldp	w8, w9, [sp, #72]               ; 8-byte Folded Reload
	lsl	w8, w8, #3
	lsl	w9, w9, #3
	add	x28, x10, #6
	sub	x19, x19, #12
	sbfiz	x10, x8, #2, #32
	sbfiz	x8, x9, #2, #32
	stp	x8, x10, [sp, #32]              ; 16-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w24, w24, #1
	mov	x0, x19
	ldr	w1, [sp, #72]                   ; 4-byte Folded Reload
	bl	_LD_SB8
	bl	_XORI_B8_128_SB
	ldp	x26, x25, [sp, #56]             ; 16-byte Folded Reload
	mov	x2, x25
	mov	x3, x26
	ldr	x27, [sp, #48]                  ; 8-byte Folded Reload
	mov	x4, x27
	mov	x5, x28
	bl	_VSHF_B4_SB
	mov	x2, x25
	mov	x3, x26
	mov	x4, x27
	mov	x5, x28
	bl	_VSHF_B4_SB
	mov	x2, x25
	mov	x3, x26
	mov	x4, x27
	mov	x5, x28
	bl	_VSHF_B4_SB
	mov	x2, x25
	mov	x3, x26
	mov	x4, x27
	mov	x5, x28
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x25, x21
	mov	x21, x0
	bl	_HEVC_FILT_8TAP_SH
	mov	x26, x22
	mov	x22, x0
	bl	_HEVC_FILT_8TAP_SH
	mov	x27, x23
	mov	x23, x0
	bl	_HEVC_FILT_8TAP_SH
	mov	x3, x0
	mov	x0, x21
	mov	x21, x25
	mov	x1, x22
	mov	x22, x26
	mov	x2, x23
	mov	x23, x27
	mov	x4, x25
	mov	x5, x27
	mov	x6, x26
	bl	_HEVC_UNIW_RND_CLIP4_MAX_SATU_H
	bl	_PCKEV_B2_UB
	ldr	w8, [sp, #76]                   ; 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, #40]                   ; 8-byte Folded Reload
	add	x19, x19, x8
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	cbnz	w24, LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	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_8t_4w_msa
.subsections_via_symbols
