	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_vt_biwgt_4t_12w_msa
_hevc_vt_biwgt_4t_12w_msa:              ## @hevc_vt_biwgt_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	$216, %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, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	movzwl	32(%rbp), %eax
	movl	40(%rbp), %edi
	movl	64(%rbp), %r12d
	movl	56(%rbp), %edx
	addl	48(%rbp), %edx
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movslq	%esi, %r15
	movl	%r12d, %ecx
	shll	%cl, %edx
	leaq	(,%r15,4), %rcx
	subq	%rcx, %r14
	movl	%edi, %ebx
	shll	$16, %ebx
	orl	%eax, %ebx
	shll	$13, %edi
	addl	%edx, %edi
	callq	___msa_fill_w
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	___msa_fill_w
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	incl	%r12d
	movl	%r12d, %edi
	callq	___msa_fill_w
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%rbp), %rdi
	callq	_LD_SH
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_SPLATI_H2_SH
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_LD_SB3
	callq	_XORI_B3_128_SB
	callq	_ILVR_B2_SB
	callq	_ILVL_B2_SB
	callq	___msa_ilvr_d
	movl	24(%rbp), %edx
	cmpl	$4, %edx
	jb	LBB0_3
## %bb.1:
	movq	%rax, %r12
	sarl	$2, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%rcx,2), %eax
	cltq
	leaq	(%r14,%rax,4), %rsi
	leal	(%rcx,%rcx), %eax
	movslq	%eax, %rcx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	movslq	%eax, %rdi
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leal	(,%rax,4), %eax
	cltq
	leaq	(,%rcx,8), %rbx
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	shlq	$2, %rdi
	movq	%rdi, -152(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movq	%r13, -176(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_LD_SB2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	addq	%rcx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_LD_SH4
	leaq	32(%r13), %rdi
	movl	%ebx, %esi
	callq	_LD_SH4
	callq	_ILVR_D2_SH
	callq	_XORI_B2_128_SB
	callq	_ILVR_B2_SB
	callq	_ILVL_B2_SB
	callq	___msa_ilvr_d
	movq	%rax, %r15
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_LD_SB2
	callq	_XORI_B2_128_SB
	callq	_ILVR_B2_SB
	callq	_ILVL_B2_SB
	callq	___msa_ilvr_d
	movq	%rax, %rbx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r14
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %rbx
	movq	%r12, 64(%rsp)
	movq	%r14, 56(%rsp)
	movq	%r13, %rsi
	movq	%r13, -168(%rbp)                ## 8-byte Spill
	movq	%r13, 48(%rsp)
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	%rdi, 40(%rsp)
	movl	-72(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, 32(%rsp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rsp)
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, 16(%rsp)
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_HEVC_BIW_RND_CLIP4
	movq	%rbx, 16(%rsp)
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	%rdi, 8(%rsp)
	movl	%r13d, (%rsp)
	movq	%rbx, %rsi
	movl	%r15d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_HEVC_BIW_RND_CLIP2
	movq	-168(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	movq	%r13, %r8
	movq	%r15, %r9
	callq	_PCKEV_B2_SH
	movq	%rbx, %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	callq	___msa_pckev_b
	movq	%rax, %r14
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movl	%r12d, 8(%rsp)
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, (%rsp)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-176(%rbp), %r13                ## 8-byte Reload
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_ST_D4
	leaq	32(%rbx), %r9
	movl	%r12d, (%rsp)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$3, %r8d
	callq	_ST_W4
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	addq	-136(%rbp), %rsi                ## 8-byte Folded Reload
	addq	-152(%rbp), %r13                ## 8-byte Folded Reload
	addq	-144(%rbp), %rbx                ## 8-byte Folded Reload
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	decl	%edx
	jne	LBB0_2
LBB0_3:
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hevc_vt_biwgt_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_biwgt_4t_12w_msa
_hevc_vt_biwgt_4t_12w_msa:              ; @hevc_vt_biwgt_4t_12w_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x19, x7
	mov	x24, x6
	stp	w3, w5, [sp, #104]              ; 8-byte Folded Spill
	mov	x20, x4
	mov	x27, x2
	mov	x26, x1
	ldrh	w25, [x29, #16]
	ldp	w8, w9, [x29, #20]
	ldp	w10, w23, [x29, #28]
	sub	x21, x0, w1, sxtw #2
	add	w9, w10, w9
	lsl	w9, w9, w23
	bfi	w25, w8, #16, #16
	add	w0, w9, w8, lsl #13
	bl	___msa_fill_w
	str	w0, [sp, #96]                   ; 4-byte Folded Spill
	mov	x0, x25
	bl	___msa_fill_w
	str	w0, [sp, #92]                   ; 4-byte Folded Spill
	add	w0, w23, #1
	bl	___msa_fill_w
	mov	x28, x0
	mov	x0, x24
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	bl	_SPLATI_H2_SH
	mov	x0, x21
	str	w26, [sp, #100]                 ; 4-byte Folded Spill
	mov	x1, x26
	bl	_LD_SB3
	bl	_XORI_B3_128_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B2_SB
	bl	___msa_ilvr_d
	cmp	w19, #4
	b.lo	LBB0_3
; %bb.1:
	mov	x24, x0
	asr	w12, w19, #2
	ldp	w9, w10, [sp, #100]             ; 8-byte Folded Reload
	lsl	w8, w9, #1
	add	w9, w8, w9
	lsl	w10, w10, #2
	ldr	w11, [sp, #108]                 ; 4-byte Folded Reload
	lsl	w11, w11, #2
	sbfiz	x13, x8, #3, #32
	sbfiz	x8, x8, #2, #32
	stp	x8, x13, [sp, #72]              ; 16-byte Folded Spill
	sbfiz	x8, x10, #2, #32
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	sbfiz	x8, x11, #2, #32
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	add	x9, x21, w9, sxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	stur	x9, [x29, #-88]                 ; 8-byte Folded Spill
	stur	x20, [x29, #-104]               ; 8-byte Folded Spill
	sub	w12, w12, #1
	stur	w12, [x29, #-92]                ; 4-byte Folded Spill
	mov	x0, x9
	ldr	w26, [sp, #100]                 ; 4-byte Folded Reload
	mov	x1, x26
	bl	_LD_SB2
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	ldur	x9, [x29, #-88]                 ; 8-byte Folded Reload
	add	x23, x9, x8
	mov	x0, x27
	ldr	w19, [sp, #104]                 ; 4-byte Folded Reload
	mov	x1, x19
	bl	_LD_SH4
	add	x0, x27, #32
	mov	x1, x19
	bl	_LD_SH4
	bl	_ILVR_D2_SH
	bl	_XORI_B2_128_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B2_SB
	bl	___msa_ilvr_d
	mov	x25, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x19, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x21, x0
	mov	x0, x24
	mov	x1, x25
	bl	_HEVC_FILT_4TAP_SH
	str	x0, [sp, #112]                  ; 8-byte Folded Spill
	mov	x0, x23
	mov	x1, x26
	bl	_LD_SB2
	bl	_XORI_B2_128_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B2_SB
	bl	___msa_ilvr_d
	mov	x22, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x23, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x26, x0
	mov	x0, x25
	mov	x1, x22
	bl	_HEVC_FILT_4TAP_SH
	mov	x25, x0
	stp	x23, x26, [sp, #32]
	stp	x19, x21, [sp, #16]
	ldr	w20, [sp, #96]                  ; 4-byte Folded Reload
	stp	w28, w20, [sp, #4]
	mov	x24, x28
	ldr	w28, [sp, #92]                  ; 4-byte Folded Reload
	str	w28, [sp]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x26
	bl	_HEVC_BIW_RND_CLIP4
	str	x25, [sp]
	ldr	x0, [sp, #112]                  ; 8-byte Folded Reload
	mov	x1, x25
	mov	x4, x28
	mov	x28, x24
	mov	x24, x22
	mov	x5, x28
	mov	x6, x20
	ldur	x20, [x29, #-104]               ; 8-byte Folded Reload
	mov	x7, x0
	mov	x22, x0
	bl	_HEVC_BIW_RND_CLIP2
	mov	x0, x21
	mov	x1, x19
	mov	x2, x26
	mov	x3, x23
	mov	x4, x19
	mov	x5, x21
	bl	_PCKEV_B2_SH
	mov	x0, x25
	mov	x1, x22
	bl	___msa_pckev_b
	mov	x23, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	mov	x6, x20
	ldr	w19, [sp, #108]                 ; 4-byte Folded Reload
	mov	x7, x19
	bl	_ST_D4
	add	x5, x20, #32
	mov	x0, x23
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	mov	x6, x19
	bl	_ST_W4
	ldur	x9, [x29, #-88]                 ; 8-byte Folded Reload
	ldur	w12, [x29, #-92]                ; 4-byte Folded Reload
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	add	x9, x9, x8
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	x27, x27, x8
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	cbnz	w12, LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hevc_vt_biwgt_4t_12w_msa
.subsections_via_symbols
