	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_vt_uniwgt_4t_12w_msa
_hevc_vt_uniwgt_4t_12w_msa:             ## @hevc_vt_uniwgt_4t_12w_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
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	24(%rbp), %r12d
	movl	32(%rbp), %ebx
	movzwl	16(%rbp), %r14d
	movl	%esi, -100(%rbp)                ## 4-byte Spill
	movslq	%esi, %r13
	leaq	(,%r13,4), %rax
	subq	%rax, %r15
	movl	%r14d, %edi
	callq	___msa_fill_w
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	___msa_fill_w
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	shll	$7, %r14d
	addl	$-6, %ebx
	movl	%r14d, %edi
	callq	___msa_fill_h
	movl	%eax, %r14d
	movl	%r12d, %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, -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
	leal	(%r13,%r13,2), %eax
	cltq
	leaq	(%r15,%rax,4), %rbx
	callq	_XORI_B3_128_SB
	callq	_ILVR_B2_SB
	callq	_ILVL_B2_SB
	callq	___msa_ilvr_d
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	shll	$3, %r13d
	movslq	%r13d, %rcx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	cltq
	shlq	$2, %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	leaq	-32(,%rax,4), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	$-2, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movl	-100(%rbp), %esi                ## 4-byte Reload
	callq	_LD_SB8
	callq	_XORI_B8_128_SB
	callq	_ILVRL_B2_SB
	callq	_ILVRL_B2_SB
	callq	_ILVRL_B2_SB
	callq	_ILVRL_B2_SB
	callq	___msa_ilvr_d
	movq	%rax, %r14
	callq	___msa_ilvr_d
	movq	%rax, %rbx
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r15d
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r12d
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r13d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r14d
	movl	%r12d, %ecx
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movl	%r12d, 32(%rsp)
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	movl	%r15d, 24(%rsp)
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, 16(%rsp)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, 8(%rsp)
	movl	-72(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, (%rsp)
	movl	%r15d, %edx
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %r9d
	callq	_HEVC_UNIW_RND_CLIP4_MAX_SATU_H
	movl	%r14d, (%rsp)
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_HEVC_UNIW_RND_CLIP2_MAX_SATU_H
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	callq	_PCKEV_B3_UB
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 8(%rsp)
	movq	%rax, %r14
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, (%rsp)
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_ST_D4
	leaq	32(%rbx), %r9
	movl	%r14d, (%rsp)
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$3, %r8d
	callq	_ST_W4
	callq	_ILVRL_B2_SB
	callq	_ILVRL_B2_SB
	callq	_ILVRL_B2_SB
	callq	_ILVRL_B2_SB
	callq	___msa_ilvr_d
	movq	%rax, %r14
	callq	___msa_ilvr_d
	movq	%rax, %rbx
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r12d
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r15d
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r13d
	movq	%r14, %rdi
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r14d
	movl	%r15d, %ecx
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%r15d, 32(%rsp)
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movl	%r12d, 24(%rsp)
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, 16(%rsp)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, 8(%rsp)
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, (%rsp)
	movl	%r12d, %edx
	movl	-76(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %r8d
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_HEVC_UNIW_RND_CLIP4_MAX_SATU_H
	movl	%r14d, (%rsp)
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	%r13d, %r9d
	callq	_HEVC_UNIW_RND_CLIP2_MAX_SATU_H
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movl	%r13d, %r9d
	callq	_PCKEV_B3_UB
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	leaq	(%r15,%r13), %r14
	addq	$32, %r14
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, 8(%rsp)
	movq	%r14, (%rsp)
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_ST_D4
	leaq	(%r15,%r13), %r9
	addq	$64, %r9
	movl	%r12d, (%rsp)
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$3, %r8d
	callq	_ST_W4
	addq	-128(%rbp), %rbx                ## 8-byte Folded Reload
	leaq	(%r15,%r14), %rax
	addq	$32, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	-104(%rbp), %eax                ## 4-byte Reload
	incl	%eax
	jne	LBB0_1
## %bb.2:
	addq	$152, %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_12w_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_12w_msa
_hevc_vt_uniwgt_4t_12w_msa:             ; @hevc_vt_uniwgt_4t_12w_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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, x4
	mov	x19, x3
	mov	x27, x2
	mov	x20, x1
	ldr	w21, [x29, #16]
	and	w28, w6, #0xffff
	sub	x24, x0, w1, sxtw #2
	mov	x0, x28
	bl	___msa_fill_w
	str	w0, [sp, #48]                   ; 4-byte Folded Spill
	mov	x0, x21
	bl	___msa_fill_w
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	lsl	w0, w28, #7
	sub	w21, w21, #6
	bl	___msa_fill_h
	mov	x28, x0
	mov	x0, x23
	bl	___msa_fill_h
	mov	x23, x0
	mov	x0, x21
	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, #88]                   ; 4-byte Folded Spill
	mov	x0, x26
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	bl	_SPLATI_H2_SH
	mov	x0, x24
	mov	x1, x20
	bl	_LD_SB3
	add	w8, w20, w20, lsl #1
	add	x21, x24, w8, sxtw #2
	bl	_XORI_B3_128_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B2_SB
	bl	___msa_ilvr_d
	mov	x23, x0
	str	w20, [sp, #52]                  ; 4-byte Folded Spill
	lsl	w8, w20, #3
	stur	w19, [x29, #-84]                ; 4-byte Folded Spill
	lsl	w9, w19, #2
	sbfiz	x10, x8, #2, #32
	sbfiz	x8, x9, #2, #32
	sub	x8, x8, #32
	stp	x8, x10, [sp, #24]              ; 16-byte Folded Spill
	mov	w8, #-2
	ldr	w25, [sp, #44]                  ; 4-byte Folded Reload
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
	str	x21, [sp, #80]                  ; 8-byte Folded Spill
	mov	x0, x21
	ldr	w1, [sp, #52]                   ; 4-byte Folded Reload
	bl	_LD_SB8
	bl	_XORI_B8_128_SB
	bl	_ILVRL_B2_SB
	bl	_ILVRL_B2_SB
	bl	_ILVRL_B2_SB
	bl	_ILVRL_B2_SB
	bl	___msa_ilvr_d
	mov	x28, x0
	bl	___msa_ilvr_d
	mov	x24, x0
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	bl	_HEVC_FILT_4TAP_SH
	mov	x20, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x19, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x21, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x22, x0
	mov	x0, x23
	mov	x1, x28
	bl	_HEVC_FILT_4TAP_SH
	mov	x26, x0
	mov	x0, x28
	mov	x1, x24
	bl	_HEVC_FILT_4TAP_SH
	mov	x28, x0
	stp	w21, w22, [sp, #4]
	str	w19, [sp]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	ldr	w24, [sp, #48]                  ; 4-byte Folded Reload
	mov	x4, x24
	ldr	w23, [sp, #88]                  ; 4-byte Folded Reload
	mov	x5, x23
	mov	x6, x25
	mov	x7, x20
	bl	_HEVC_UNIW_RND_CLIP4_MAX_SATU_H
	mov	x0, x26
	mov	x1, x28
	mov	x2, x24
	mov	x3, x23
	mov	x4, x25
	mov	x5, x26
	mov	x6, x28
	bl	_HEVC_UNIW_RND_CLIP2_MAX_SATU_H
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	mov	x4, x28
	mov	x5, x26
	bl	_PCKEV_B3_UB
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	mov	x6, x27
	ldur	w19, [x29, #-84]                ; 4-byte Folded Reload
	mov	x7, x19
	bl	_ST_D4
	add	x5, x27, #32
	str	x5, [sp, #56]                   ; 8-byte Folded Spill
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	mov	x6, x19
	bl	_ST_W4
	bl	_ILVRL_B2_SB
	bl	_ILVRL_B2_SB
	bl	_ILVRL_B2_SB
	bl	_ILVRL_B2_SB
	bl	___msa_ilvr_d
	mov	x19, x0
	bl	___msa_ilvr_d
	mov	x23, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x20, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x21, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x22, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x28, x0
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
	mov	x1, x19
	bl	_HEVC_FILT_4TAP_SH
	mov	x27, x0
	mov	x0, x19
	mov	x1, x23
	bl	_HEVC_FILT_4TAP_SH
	mov	x19, x0
	stp	w22, w28, [sp, #4]
	str	w21, [sp]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x28
	mov	x4, x24
	ldr	w26, [sp, #88]                  ; 4-byte Folded Reload
	mov	x5, x26
	mov	x6, x25
	mov	x7, x20
	bl	_HEVC_UNIW_RND_CLIP4_MAX_SATU_H
	mov	x0, x27
	mov	x1, x19
	mov	x2, x24
	mov	x3, x26
	mov	x4, x25
	mov	x5, x27
	mov	x6, x19
	bl	_HEVC_UNIW_RND_CLIP2_MAX_SATU_H
	mov	x0, x21
	ldr	x21, [sp, #80]                  ; 8-byte Folded Reload
	mov	x1, x20
	mov	x2, x28
	mov	x3, x22
	mov	x4, x19
	mov	x5, x27
	bl	_PCKEV_B3_UB
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x19, x8, x20
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	mov	x6, x19
	ldur	w22, [x29, #-84]                ; 4-byte Folded Reload
	mov	x7, x22
	bl	_ST_D4
	add	x19, x19, #32
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	mov	x5, x19
	mov	x6, x22
	bl	_ST_W4
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x21, x21, x8
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	add	x27, x19, x20
	adds	w8, w8, #1
	b.lo	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hevc_vt_uniwgt_4t_12w_msa
.subsections_via_symbols
