	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_vt_bi_4t_16w_msa
_hevc_vt_bi_4t_16w_msa:                 ## @hevc_vt_bi_4t_16w_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	$104, %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, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r13
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movslq	%esi, %r15
	leaq	(,%r15,4), %rax
	subq	%rax, %r14
	movl	$128, %edi
	callq	___msa_ldi_h
	movl	%eax, %ebx
	movq	16(%rbp), %rdi
	callq	_LD_SH
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_SPLATI_H2_SH
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %r15
	callq	_LD_SB3
	callq	_XORI_B3_128_SB
	callq	_ILVR_B2_SB
	callq	_ILVL_B2_SB
	movl	24(%rbp), %r8d
	cmpl	$4, %r8d
	jb	LBB0_3
## %bb.1:
	shll	$6, %ebx
	sarl	$2, %r8d
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%rcx,2), %eax
	cltq
	leaq	(%r14,%rax,4), %rdx
	leal	(%rcx,%rcx), %eax
	movslq	%eax, %rsi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %eax
	cltq
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%ecx, %ecx
	movslq	%ecx, %rcx
	leaq	(,%rsi,8), %rdi
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	shlq	$2, %rsi
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	leaq	(,%rcx,8), %rsi
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	leaq	-32(,%rax,4), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rdi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_LD_SB2
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r15, %r14
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_LD_SH2
	leaq	32(%r14), %rdi
	movl	%r15d, %esi
	callq	_LD_SH2
	callq	_XORI_B2_128_SB
	callq	_ILVR_B2_SB
	callq	_ILVL_B2_SB
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	callq	_DPADD_SB2_SH
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	callq	_DPADD_SB2_SH
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	callq	_DPADD_SB2_SH
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	callq	_DPADD_SB2_SH
	subq	$8, %rsp
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	pushq	%rbx
	pushq	%rbx
	pushq	%rbx
	pushq	%rbx
	pushq	$7
	pushq	%rbx
	pushq	%rbx
	callq	_HEVC_BI_RND_CLIP4
	addq	$64, %rsp
	movl	%ebx, %edi
	movl	%ebx, %esi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	callq	_PCKEV_B2_SH
	movl	%ebx, %edi
	movl	%ebx, %esi
	movq	%r13, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_ST_SH2
	movq	-120(%rbp), %rax                ## 8-byte Reload
	addq	%r13, %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_LD_SB2
	movq	%r13, %r12
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	leaq	(%r14,%r13), %rdi
	addq	$32, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, %esi
	callq	_LD_SH2
	leaq	(%r14,%r13), %rdi
	addq	$64, %rdi
	movl	%r15d, %esi
	callq	_LD_SH2
	callq	_XORI_B2_128_SB
	callq	_ILVR_B2_SB
	callq	_ILVL_B2_SB
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	callq	_DPADD_SB2_SH
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	callq	_DPADD_SB2_SH
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	callq	_DPADD_SB2_SH
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	callq	_DPADD_SB2_SH
	subq	$8, %rsp
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	pushq	%rbx
	pushq	%rbx
	pushq	%rbx
	pushq	%rbx
	pushq	$7
	pushq	%rbx
	pushq	%rbx
	callq	_HEVC_BI_RND_CLIP4
	addq	$64, %rsp
	movl	%ebx, %edi
	movl	%ebx, %esi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	callq	_PCKEV_B2_SH
	movl	%ebx, %edi
	movl	%ebx, %esi
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_ST_SH2
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	addq	-112(%rbp), %rdx                ## 8-byte Folded Reload
	addq	-104(%rbp), %r12                ## 8-byte Folded Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %r15
	addq	$32, %r15
	movq	%r12, %r13
	decl	%r8d
	jne	LBB0_2
LBB0_3:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hevc_vt_bi_4t_16w_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_bi_4t_16w_msa
_hevc_vt_bi_4t_16w_msa:                 ; @hevc_vt_bi_4t_16w_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	x26, x7
	mov	x27, x6
	str	w5, [sp, #76]                   ; 4-byte Folded Spill
	mov	x20, x4
	mov	x21, x3
	mov	x25, x2
	mov	x19, x1
	sub	x24, x0, w1, sxtw #2
	mov	w0, #128
	bl	___msa_ldi_h
	mov	x23, x0
	mov	x0, x27
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	bl	_SPLATI_H2_SH
	mov	x0, x24
	str	w19, [sp, #72]                  ; 4-byte Folded Spill
	mov	x1, x19
	bl	_LD_SB3
	bl	_XORI_B3_128_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B2_SB
	cmp	w26, #4
	b.lo	LBB0_3
; %bb.1:
	lsl	w23, w23, #6
	asr	w28, w26, #2
	ldp	w9, w11, [sp, #72]              ; 8-byte Folded Reload
	lsl	w8, w9, #1
	add	w9, w8, w9
	lsl	w10, w21, #1
	lsl	w11, w11, #1
	sbfiz	x12, x8, #3, #32
	sbfiz	x8, x8, #2, #32
	stp	x8, x12, [sp, #56]              ; 16-byte Folded Spill
	sbfiz	x8, x11, #3, #32
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	sbfiz	x8, x11, #2, #32
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	sbfiz	x8, x10, #2, #32
	sub	x8, x8, #32
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	add	x24, x24, w9, sxtw #2
	ldr	w22, [sp, #76]                  ; 4-byte Folded Reload
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w28, w28, #1
	mov	x0, x24
	ldr	w19, [sp, #72]                  ; 4-byte Folded Reload
	mov	x1, x19
	bl	_LD_SB2
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x26, x24, x8
	mov	x0, x25
	mov	x1, x21
	bl	_LD_SH2
	add	x27, x25, #32
	mov	x0, x27
	mov	x1, x21
	bl	_LD_SH2
	bl	_XORI_B2_128_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B2_SB
	mov	x4, x23
	mov	x5, x23
	bl	_DPADD_SB2_SH
	mov	x4, x23
	mov	x5, x23
	bl	_DPADD_SB2_SH
	mov	x4, x23
	mov	x5, x23
	bl	_DPADD_SB2_SH
	mov	x4, x23
	mov	x5, x23
	bl	_DPADD_SB2_SH
	stp	w23, w23, [sp, #12]
	stp	w23, w23, [sp, #4]
	mov	w8, #7
	str	w8, [sp]
	mov	x4, x23
	mov	x5, x23
	mov	x6, x23
	mov	x7, x23
	bl	_HEVC_BI_RND_CLIP4
	mov	x0, x23
	mov	x1, x23
	mov	x2, x23
	mov	x3, x23
	mov	x4, x23
	mov	x5, x23
	bl	_PCKEV_B2_SH
	mov	x0, x23
	mov	x1, x23
	mov	x2, x20
	mov	x3, x22
	bl	_ST_SH2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x25, x20, x8
	mov	x0, x26
	mov	x1, x19
	bl	_LD_SB2
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	add	x26, x27, x19
	mov	x0, x26
	mov	x1, x21
	bl	_LD_SH2
	add	x26, x26, #32
	mov	x0, x26
	mov	x1, x21
	bl	_LD_SH2
	bl	_XORI_B2_128_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B2_SB
	mov	x4, x23
	mov	x5, x23
	bl	_DPADD_SB2_SH
	mov	x4, x23
	mov	x5, x23
	bl	_DPADD_SB2_SH
	mov	x4, x23
	mov	x5, x23
	bl	_DPADD_SB2_SH
	mov	x4, x23
	mov	x5, x23
	bl	_DPADD_SB2_SH
	stp	w23, w23, [sp, #12]
	stp	w23, w23, [sp, #4]
	mov	w8, #7
	str	w8, [sp]
	mov	x4, x23
	mov	x5, x23
	mov	x6, x23
	mov	x7, x23
	bl	_HEVC_BI_RND_CLIP4
	mov	x0, x23
	mov	x1, x23
	mov	x2, x23
	mov	x3, x23
	mov	x4, x23
	mov	x5, x23
	bl	_PCKEV_B2_SH
	mov	x0, x23
	mov	x1, x23
	mov	x2, x25
	mov	x3, x22
	bl	_ST_SH2
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	x24, x24, x8
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	add	x25, x26, x19
	cbnz	w28, 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_bi_4t_16w_msa
.subsections_via_symbols
