	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_vt_biwgt_8t_8w_msa
_hevc_vt_biwgt_8t_8w_msa:               ## @hevc_vt_biwgt_8t_8w_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
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %r14d
	movzwl	32(%rbp), %eax
	movl	40(%rbp), %r13d
	movl	64(%rbp), %ecx
	movl	56(%rbp), %r15d
	leal	(%rsi,%rsi,2), %edx
	addl	48(%rbp), %r15d
	movslq	%edx, %rdx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r15d
	shlq	$2, %rdx
	subq	%rdx, %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	shll	$16, %r13d
	orl	%eax, %r13d
	movl	$128, %edi
	callq	___msa_ldi_w
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	___msa_fill_w
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	callq	___msa_fill_w
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	64(%rbp), %edi
	incl	%edi
	callq	___msa_fill_w
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	40(%rbp), %edi
	callq	___msa_fill_w
	movl	%eax, %r15d
	movq	16(%rbp), %rdi
	callq	_LD_SH
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$3, %r8d
	callq	_SPLATI_H4_SH
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB7
	callq	_XORI_B7_128_SB
	callq	_ILVR_B4_SB
	callq	_ILVR_B2_SB
	cmpl	$4, %r14d
	jb	LBB0_3
## %bb.1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	imull	%r15d, %eax
	shll	$6, %eax
	addl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	sarl	$2, %r14d
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leal	(,%rcx,8), %eax
	subl	%ecx, %eax
	cltq
	leaq	(,%rax,4), %r15
	addq	%r13, %r15
	leal	(,%rcx,4), %eax
	movslq	%eax, %rcx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	movslq	%eax, %r13
	shlq	$2, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	shlq	$2, %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB4
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SH4
	callq	_XORI_B4_128_SB
	callq	_ILVR_B4_SB
	callq	_DOTP_SB4_SH
	callq	_DPADD_SB4_SH
	callq	_DPADD_SB4_SH
	callq	_DPADD_SB4_SH
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%rsp)
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rsp)
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rsp)
	callq	_HEVC_BIW_RND_CLIP4
	callq	_PCKEV_B2_SH
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 8(%rsp)
	movq	%r12, (%rsp)
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_ST_D4
	addq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	%r13, %r12
	decl	%r14d
	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
	.no_dead_strip	_hevc_vt_biwgt_8t_8w_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_biwgt_8t_8w_msa
_hevc_vt_biwgt_8t_8w_msa:               ; @hevc_vt_biwgt_8t_8w_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x7
	mov	x26, x6
	stp	w3, w5, [sp, #40]               ; 8-byte Folded Spill
	mov	x20, x4
	mov	x22, x2
	mov	x23, x1
	ldrh	w24, [x29, #16]
	ldp	w28, w8, [x29, #20]
	add	w9, w1, w1, lsl #1
	ldp	w10, w19, [x29, #28]
	sub	x27, x0, w9, sxtw #2
	add	w8, w10, w8
	lsl	w25, w8, w19
	bfi	w24, w28, #16, #16
	mov	w0, #128
	bl	___msa_ldi_w
	str	w0, [sp, #32]                   ; 4-byte Folded Spill
	mov	x0, x25
	bl	___msa_fill_w
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	mov	x0, x24
	bl	___msa_fill_w
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	add	w0, w19, #1
	bl	___msa_fill_w
	mov	x25, x0
	mov	x0, x28
	bl	___msa_fill_w
	mov	x28, x0
	mov	x0, x26
	mov	x26, x27
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	bl	_SPLATI_H4_SH
	mov	x0, x27
	mov	x1, x23
	bl	_LD_SB7
	bl	_XORI_B7_128_SB
	bl	_ILVR_B4_SB
	bl	_ILVR_B2_SB
	cmp	w21, #4
	b.lo	LBB0_3
; %bb.1:
	ldp	w9, w8, [sp, #28]               ; 8-byte Folded Reload
	mul	w8, w8, w28
	add	w28, w9, w8, lsl #6
	asr	w27, w21, #2
	lsl	w8, w23, #3
	sub	w8, w8, w23
	lsl	w9, w23, #2
	ldp	w10, w11, [sp, #40]             ; 8-byte Folded Reload
	lsl	w10, w10, #2
	lsl	w11, w11, #2
	sbfiz	x19, x9, #2, #32
	sbfiz	x21, x10, #2, #32
	sbfiz	x24, x11, #2, #32
	add	x26, x26, w8, sxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w27, w27, #1
	mov	x0, x26
	mov	x1, x23
	bl	_LD_SB4
	mov	x0, x22
	ldr	w1, [sp, #40]                   ; 4-byte Folded Reload
	bl	_LD_SH4
	bl	_XORI_B4_128_SB
	bl	_ILVR_B4_SB
	bl	_DOTP_SB4_SH
	bl	_DPADD_SB4_SH
	bl	_DPADD_SB4_SH
	bl	_DPADD_SB4_SH
	stp	w25, w28, [sp, #4]
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	str	w8, [sp]
	bl	_HEVC_BIW_RND_CLIP4
	bl	_PCKEV_B2_SH
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	mov	x6, x20
	ldr	w7, [sp, #44]                   ; 4-byte Folded Reload
	bl	_ST_D4
	add	x26, x26, x19
	add	x22, x22, x21
	add	x20, x20, x24
	cbnz	w27, LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hevc_vt_biwgt_8t_8w_msa
.subsections_via_symbols
