	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_vt_biwgt_4t_24w_msa
_hevc_vt_biwgt_4t_24w_msa:              ## @hevc_vt_biwgt_4t_24w_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	$200, %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, -128(%rbp)                 ## 8-byte Spill
	movq	%r8, -136(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -120(%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, -72(%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, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	___msa_fill_w
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	incl	%r12d
	movl	%r12d, %edi
	callq	___msa_fill_w
	movl	%eax, -52(%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
	leaq	64(%r14), %rdi
	movl	%r15d, %esi
	callq	_LD_SB3
	callq	_XORI_B3_128_SB
	callq	_ILVR_B2_SB
	movl	24(%rbp), %esi
	cmpl	$4, %esi
	jb	LBB0_3
## %bb.1:
	sarl	$2, %esi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%rcx,2), %eax
	cltq
	leaq	(%r14,%rax,4), %rdi
	leal	(%rcx,%rcx), %eax
	cltq
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	addl	%ecx, %ecx
	movslq	%ecx, %rcx
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	addl	%edx, %edx
	movslq	%edx, %rdx
	leaq	-64(,%rax,4), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	leaq	-64(,%rcx,4), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	leaq	-64(,%rdx,4), %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, -140(%rbp)                ## 4-byte Spill
	movq	%rdi, %r15
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_LD_SB2
	movq	%r13, %rdi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %esi
	callq	_LD_SH2
	leaq	32(%r13), %rdi
	movl	%ebx, %esi
	callq	_LD_SH2
	callq	_XORI_B2_128_SB
	callq	_ILVR_B2_SB
	callq	_ILVL_B2_SB
	leaq	64(%r15), %rdi
	movl	%r14d, %esi
	callq	_LD_SB2
	leaq	64(%r13), %rdi
	movl	%ebx, %esi
	callq	_LD_SH2
	callq	_XORI_B2_128_SB
	callq	_ILVR_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r15
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r12
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r14
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %rbx
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rcx
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, 64(%rsp)
	movq	%r12, %rdx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, 56(%rsp)
	movq	%r14, 48(%rsp)
	movq	%r15, 40(%rsp)
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, 32(%rsp)
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, 24(%rsp)
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, 16(%rsp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_HEVC_BIW_RND_CLIP4
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	%rsi, 16(%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, 8(%rsp)
	movl	%ebx, (%rsp)
	movq	%rsi, %rbx
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_HEVC_BIW_RND_CLIP2
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	%r14, %rcx
	movq	%r15, %r8
	movq	%r14, %r9
	callq	_PCKEV_B2_SH
	movl	%ebx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	___msa_pckev_b
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-128(%rbp), %r15                ## 8-byte Reload
	movl	%r15d, %ecx
	callq	_ST_SH2
	leaq	64(%rbx), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	%r15d, %r8d
	callq	_ST_D2
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	leaq	(%r12,%rax), %rdi
	addq	$64, %rdi
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movq	%rax, %r14
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB2
	movq	-152(%rbp), %r13                ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	leaq	(%r15,%r13), %rdi
	addq	$64, %rdi
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %esi
	callq	_LD_SH2
	leaq	(%r15,%r13), %rdi
	addq	$96, %rdi
	movl	%ebx, %esi
	callq	_LD_SH2
	callq	_XORI_B2_128_SB
	callq	_ILVR_B2_SB
	callq	_ILVL_B2_SB
	leaq	(%r12,%r14), %rdi
	addq	$128, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB2
	leaq	(%r15,%r13), %rdi
	addq	$128, %rdi
	movl	%ebx, %esi
	callq	_LD_SH2
	callq	_XORI_B2_128_SB
	callq	_ILVR_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r14
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r15
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r13
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %rbx
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, 64(%rsp)
	movq	%r15, %rdx
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, 56(%rsp)
	movq	%r13, 48(%rsp)
	movq	%r14, 40(%rsp)
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, 32(%rsp)
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, 24(%rsp)
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, 16(%rsp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_HEVC_BIW_RND_CLIP4
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, 16(%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, 8(%rsp)
	movl	%r15d, (%rsp)
	movq	%rsi, %r15
	movl	%ebx, %r8d
	movl	%r12d, %r9d
	callq	_HEVC_BIW_RND_CLIP2
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%r14, %r8
	movq	%r13, %r9
	callq	_PCKEV_B2_SH
	movl	%r15d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	___msa_pckev_b
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-168(%rbp), %r15                ## 8-byte Reload
	movq	-136(%rbp), %r12                ## 8-byte Reload
	leaq	(%r12,%r15), %rdx
	addq	$64, %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rdx, %r14
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_ST_SH2
	leaq	(%r12,%r15), %rcx
	addq	$128, %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$1, %edx
	movl	%ebx, %r8d
	callq	_ST_D2
	movl	-140(%rbp), %esi                ## 4-byte Reload
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax), %rdi
	addq	$64, %rdi
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax), %r13
	addq	$64, %r13
	leaq	(%r15,%r14), %rax
	addq	$64, %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	decl	%esi
	jne	LBB0_2
LBB0_3:
	addq	$200, %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_24w_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_24w_msa
_hevc_vt_biwgt_4t_24w_msa:              ; @hevc_vt_biwgt_4t_24w_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	x28, x7
	mov	x19, x6
	stp	w3, w5, [sp, #72]               ; 8-byte Folded Spill
	mov	x22, x4
	mov	x26, x2
	mov	x21, x1
	ldrh	w23, [x29, #16]
	ldp	w8, w9, [x29, #20]
	ldp	w10, w20, [x29, #28]
	sub	x27, x0, w1, sxtw #2
	add	w9, w10, w9
	lsl	w9, w9, w20
	bfi	w23, w8, #16, #16
	add	w0, w9, w8, lsl #13
	bl	___msa_fill_w
	mov	x25, x0
	mov	x0, x23
	bl	___msa_fill_w
	str	w0, [sp, #68]                   ; 4-byte Folded Spill
	add	w0, w20, #1
	bl	___msa_fill_w
	mov	x20, x0
	mov	x0, x19
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	bl	_SPLATI_H2_SH
	mov	x0, x27
	mov	x1, x21
	bl	_LD_SB3
	bl	_XORI_B3_128_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B2_SB
	add	x0, x27, #64
	stur	w21, [x29, #-92]                ; 4-byte Folded Spill
	mov	x1, x21
	bl	_LD_SB3
	bl	_XORI_B3_128_SB
	bl	_ILVR_B2_SB
	cmp	w28, #4
	b.lo	LBB0_3
; %bb.1:
	asr	w12, w28, #2
	ldur	w9, [x29, #-92]                 ; 4-byte Folded Reload
	lsl	w8, w9, #1
	add	w9, w8, w9
	ldp	w10, w11, [sp, #72]             ; 8-byte Folded Reload
	lsl	w10, w10, #1
	lsl	w11, w11, #1
	sbfiz	x8, x8, #2, #32
	sub	x8, x8, #64
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
	sbfiz	x8, x10, #2, #32
	sub	x8, x8, #64
	str	x8, [sp, #112]                  ; 8-byte Folded Spill
	sbfiz	x8, x11, #2, #32
	sub	x8, x8, #64
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	add	x19, x27, w9, sxtw #2
	stp	w20, w25, [x29, #-88]           ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w12, w12, #1
	str	w12, [sp, #108]                 ; 4-byte Folded Spill
	mov	x0, x19
	ldur	w21, [x29, #-92]                ; 4-byte Folded Reload
	mov	x1, x21
	bl	_LD_SB2
	mov	x0, x26
	ldr	w20, [sp, #72]                  ; 4-byte Folded Reload
	mov	x1, x20
	bl	_LD_SH2
	add	x0, x26, #32
	mov	x1, x20
	bl	_LD_SH2
	bl	_XORI_B2_128_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B2_SB
	add	x0, x19, #64
	str	x0, [sp, #88]                   ; 8-byte Folded Spill
	mov	x1, x21
	bl	_LD_SB2
	add	x0, x26, #64
	str	x0, [sp, #80]                   ; 8-byte Folded Spill
	mov	x1, x20
	bl	_LD_SH2
	bl	_XORI_B2_128_SB
	bl	_ILVR_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x28, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x19, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x27, x22
	mov	x22, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x21, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x23, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x24, x0
	stp	x19, x21, [sp, #32]
	stp	x28, x22, [sp, #16]
	str	w25, [sp, #8]
	ldur	w8, [x29, #-88]                 ; 4-byte Folded Reload
	ldr	w26, [sp, #68]                  ; 4-byte Folded Reload
	stp	w26, w8, [sp]
	mov	x0, x28
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	bl	_HEVC_BIW_RND_CLIP4
	str	x24, [sp]
	mov	x0, x23
	mov	x1, x24
	mov	x4, x26
	ldur	w5, [x29, #-88]                 ; 4-byte Folded Reload
	mov	x6, x25
	mov	x7, x23
	bl	_HEVC_BIW_RND_CLIP2
	mov	x0, x19
	mov	x1, x28
	mov	x2, x21
	mov	x3, x22
	mov	x4, x28
	mov	x5, x22
	bl	_PCKEV_B2_SH
	mov	x0, x24
	mov	x1, x23
	bl	___msa_pckev_b
	mov	x19, x0
	mov	x0, x28
	mov	x1, x22
	mov	x2, x27
	ldr	w25, [sp, #76]                  ; 4-byte Folded Reload
	mov	x3, x25
	bl	_ST_SH2
	add	x3, x27, #64
	str	x3, [sp, #96]                   ; 8-byte Folded Spill
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	x4, x25
	bl	_ST_D2
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	ldr	x9, [sp, #88]                   ; 8-byte Folded Reload
	add	x19, x9, x8
	mov	x0, x19
	ldur	w22, [x29, #-92]                ; 4-byte Folded Reload
	mov	x1, x22
	bl	_LD_SB2
	ldr	x8, [sp, #112]                  ; 8-byte Folded Reload
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	add	x21, x9, x8
	mov	x0, x21
	mov	x1, x20
	bl	_LD_SH2
	add	x0, x21, #32
	mov	x1, x20
	bl	_LD_SH2
	bl	_XORI_B2_128_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B2_SB
	add	x0, x19, #64
	str	x0, [sp, #88]                   ; 8-byte Folded Spill
	mov	x1, x22
	bl	_LD_SB2
	add	x27, x21, #64
	mov	x0, x27
	mov	x1, x20
	ldur	w20, [x29, #-88]                ; 4-byte Folded Reload
	bl	_LD_SH2
	bl	_XORI_B2_128_SB
	bl	_ILVR_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x28, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x21, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x19, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x22, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x23, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x24, x0
	stp	x21, x22, [sp, #32]
	stp	x28, x19, [sp, #16]
	ldur	w8, [x29, #-84]                 ; 4-byte Folded Reload
	stp	w20, w8, [sp, #4]
	str	w26, [sp]
	mov	x0, x28
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_HEVC_BIW_RND_CLIP4
	str	x24, [sp]
	mov	x0, x23
	mov	x1, x24
	mov	x4, x26
	mov	x5, x20
	ldur	w6, [x29, #-84]                 ; 4-byte Folded Reload
	mov	x7, x23
	bl	_HEVC_BIW_RND_CLIP2
	mov	x0, x21
	mov	x1, x28
	mov	x2, x22
	mov	x3, x19
	mov	x4, x28
	mov	x5, x19
	bl	_PCKEV_B2_SH
	mov	x0, x24
	mov	x1, x23
	bl	___msa_pckev_b
	mov	x21, x0
	ldr	x23, [sp, #56]                  ; 8-byte Folded Reload
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	add	x22, x8, x23
	mov	x0, x28
	mov	x1, x19
	mov	x2, x22
	mov	x3, x25
	bl	_ST_SH2
	add	x22, x22, #64
	mov	x0, x21
	mov	w1, #0
	mov	w2, #1
	mov	x3, x22
	mov	x4, x25
	ldur	w25, [x29, #-84]                ; 4-byte Folded Reload
	bl	_ST_D2
	ldr	w12, [sp, #108]                 ; 4-byte Folded Reload
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	ldr	x9, [sp, #88]                   ; 8-byte Folded Reload
	add	x19, x9, x8
	ldr	x8, [sp, #112]                  ; 8-byte Folded Reload
	add	x26, x27, x8
	add	x22, x22, x23
	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_24w_msa
.subsections_via_symbols
