	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_vt_uniwgt_4t_32w_msa
_hevc_vt_uniwgt_4t_32w_msa:             ## @hevc_vt_uniwgt_4t_32w_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	$120, %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
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r15
	movl	24(%rbp), %r14d
	movl	32(%rbp), %ebx
	movzwl	16(%rbp), %r12d
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movslq	%esi, %r13
	leaq	(,%r13,4), %rax
	subq	%rax, %r15
	movl	%r12d, %edi
	callq	___msa_fill_w
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	___msa_fill_w
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	shll	$7, %r12d
	addl	$-6, %ebx
	movl	%r12d, %edi
	callq	___msa_fill_h
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	___msa_fill_h
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	___msa_fill_h
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	___msa_srar_h
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	___msa_adds_s_h
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_LD_SH
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_SPLATI_H2_SH
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_LD_SB3
	leaq	64(%r15), %rdi
	movl	%r13d, %esi
	callq	_LD_SB3
	callq	_XORI_B6_128_SB
	callq	_ILVR_B2_SB
	callq	_ILVL_B2_SB
	callq	_ILVR_B2_SB
	callq	_ILVL_B2_SB
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$2, %ecx
	jb	LBB0_3
## %bb.1:
	sarl	%ecx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leal	(%rdx,%rdx,2), %eax
	cltq
	leaq	(%r15,%rax,4), %rsi
	leal	(%rdx,%rdx), %eax
	cltq
	movslq	-64(%rbp), %rdx                 ## 4-byte Folded Reload
	shlq	$2, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	(,%rdx,8), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_LD_SB2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	64(%rax), %rdi
	movl	%ebx, %esi
	callq	_LD_SB2
	callq	_XORI_B4_128_SB
	callq	_ILVR_B2_SB
	callq	_ILVL_B2_SB
	callq	_ILVRL_B2_SB
	callq	_ILVRL_B2_SB
	callq	_HEVC_FILT_4TAP_SH
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r13d
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %ebx
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r12d
	callq	_HEVC_FILT_4TAP_SH
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	callq	_HEVC_FILT_4TAP_SH
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r14d
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r15d
	subq	$8, %rsp
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, -144(%rbp)                ## 8-byte Spill
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	%r12, %rcx
	movq	%r12, -160(%rbp)                ## 8-byte Spill
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %r9d
	pushq	%rcx
	pushq	%rdx
	pushq	%r13
	pushq	%rdi
	movq	-120(%rbp), %r13                ## 8-byte Reload
	pushq	%r13
	callq	_HEVC_UNIW_RND_CLIP4_MAX_SATU_H
	addq	$40, %rsp
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	movl	%r12d, %r9d
	pushq	%r15
	pushq	%r14
	pushq	%rsi
	movq	%rsi, %r12
	pushq	%rdi
	movq	%rdi, %rbx
	pushq	%r13
	callq	_HEVC_UNIW_RND_CLIP4_MAX_SATU_H
	addq	$16, %rsp
	movq	-128(%rbp), %rdi                ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-160(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-144(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	pushq	%r12
	pushq	%r15
	callq	_PCKEV_B4_UB
	addq	$48, %rsp
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	$16, %ecx
	callq	_ST_UB2
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(%rbx,%rax), %rdx
	movl	$16, %ecx
	callq	_ST_UB2
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addq	-112(%rbp), %rsi                ## 8-byte Folded Reload
	addq	-96(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	decl	%ecx
	jne	LBB0_2
LBB0_3:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hevc_vt_uniwgt_4t_32w_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hevc_vt_uniwgt_4t_32w_msa
_hevc_vt_uniwgt_4t_32w_msa:             ; @hevc_vt_uniwgt_4t_32w_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	x23, x7
	mov	x26, x5
	mov	x27, x4
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	ldr	w28, [x29, #16]
	and	w24, w6, #0xffff
	sub	x25, x0, w1, sxtw #2
	mov	x0, x24
	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, w24, #7
	sub	w24, w28, #6
	bl	___msa_fill_h
	mov	x28, x0
	mov	x0, x23
	bl	___msa_fill_h
	mov	x23, x0
	mov	x0, x24
	bl	___msa_fill_h
	mov	x1, x0
	mov	x0, x28
	bl	___msa_srar_h
	mov	x1, x0
	mov	x0, x23
	bl	___msa_adds_s_h
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	mov	x0, x27
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	bl	_SPLATI_H2_SH
	mov	x0, x25
	mov	x1, x19
	bl	_LD_SB3
	add	x0, x25, #64
	str	w19, [sp, #56]                  ; 4-byte Folded Spill
	mov	x1, x19
	bl	_LD_SB3
	bl	_XORI_B6_128_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B2_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B2_SB
	cmp	w26, #2
	b.lo	LBB0_3
; %bb.1:
	asr	w10, w26, #1
	ldr	w9, [sp, #56]                   ; 4-byte Folded Reload
	lsl	w8, w9, #1
	add	w9, w8, w9
	sbfiz	x11, x8, #2, #32
	sbfiz	x8, x21, #3, #32
	stp	x8, x11, [sp, #24]              ; 16-byte Folded Spill
	sbfiz	x8, x21, #2, #32
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	add	x24, x25, w9, sxtw #2
	ldr	w26, [sp, #44]                  ; 4-byte Folded Reload
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	x20, [sp, #72]                  ; 8-byte Folded Spill
	sub	w10, w10, #1
	str	w10, [sp, #68]                  ; 4-byte Folded Spill
	mov	x0, x24
	ldr	w20, [sp, #56]                  ; 4-byte Folded Reload
	mov	x1, x20
	bl	_LD_SB2
	add	x0, x24, #64
	mov	x1, x20
	bl	_LD_SB2
	bl	_XORI_B4_128_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B2_SB
	bl	_ILVRL_B2_SB
	bl	_ILVRL_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x19, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x25, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x27, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x28, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x21, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x22, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x20, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x23, x0
	stp	w27, w28, [sp, #4]
	stp	w19, w25, [sp, #60]             ; 8-byte Folded Spill
	str	w25, [sp]
	mov	x0, x19
	mov	x1, x25
	mov	x2, x27
	mov	x3, x28
	ldp	w25, w19, [sp, #48]             ; 8-byte Folded Reload
	mov	x4, x19
	mov	x5, x26
	mov	x6, x25
	mov	x7, x0
	bl	_HEVC_UNIW_RND_CLIP4_MAX_SATU_H
	stp	w20, w23, [sp, #4]
	str	w22, [sp]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x23
	mov	x4, x19
	mov	x5, x26
	mov	x6, x25
	mov	x7, x21
	bl	_HEVC_UNIW_RND_CLIP4_MAX_SATU_H
	mov	x0, x27
	ldp	w1, w3, [sp, #60]               ; 8-byte Folded Reload
	mov	x2, x28
	mov	x4, x20
	ldr	x20, [sp, #72]                  ; 8-byte Folded Reload
	mov	x5, x21
	mov	x6, x23
	mov	x7, x22
	bl	_PCKEV_B4_UB
	mov	x2, x20
	mov	w3, #16
	bl	_ST_UB2
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x2, x20, x8
	mov	w3, #16
	bl	_ST_UB2
	ldr	w10, [sp, #68]                  ; 4-byte Folded Reload
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x24, x24, x8
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	cbnz	w10, 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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hevc_vt_uniwgt_4t_32w_msa
.subsections_via_symbols
