	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_vt_bi_8t_4w_msa
_hevc_vt_bi_8t_4w_msa:                  ## @hevc_vt_bi_8t_4w_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, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	24(%rbp), %r13d
	leal	(%rsi,%rsi,2), %eax
	cltq
	shlq	$2, %rax
	subq	%rax, %r15
	movl	$128, %edi
	callq	___msa_ldi_h
	movl	%eax, %r14d
	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	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB7
	callq	_ILVR_B4_SB
	callq	_ILVR_B2_SB
	callq	_ILVR_D3_SB
	callq	_XORI_B3_128_SB
	cmpl	$8, %r13d
	jb	LBB0_3
## %bb.1:
	shll	$6, %r14d
	sarl	$3, %r13d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	(,%rcx,8), %eax
	movslq	%eax, %rdx
	subl	%ecx, %eax
	cltq
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,8), %eax
	movslq	%eax, %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,8), %eax
	cltq
	shlq	$2, %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB8
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SH8
	callq	_ILVR_D2_SH
	callq	_ILVR_D2_SH
	callq	_ILVR_B4_SB
	callq	_ILVR_B4_SB
	callq	_ILVR_D4_SB
	callq	_XORI_B4_128_SB
	movl	%r14d, 40(%rsp)
	movl	%r14d, 32(%rsp)
	movl	%r14d, 24(%rsp)
	movl	%r14d, 16(%rsp)
	callq	_DPADD_SB4_SH
	movl	%r14d, 40(%rsp)
	movl	%r14d, 32(%rsp)
	movl	%r14d, 24(%rsp)
	movl	%r14d, 16(%rsp)
	callq	_DPADD_SB4_SH
	movl	%r14d, 40(%rsp)
	movl	%r14d, 32(%rsp)
	movl	%r14d, 24(%rsp)
	movl	%r14d, 16(%rsp)
	callq	_DPADD_SB4_SH
	movl	%r14d, 40(%rsp)
	movl	%r14d, 32(%rsp)
	movl	%r14d, 24(%rsp)
	movl	%r14d, 16(%rsp)
	callq	_DPADD_SB4_SH
	movl	%r14d, 48(%rsp)
	movl	%r14d, 40(%rsp)
	movl	%r14d, 32(%rsp)
	movl	%r14d, 24(%rsp)
	movl	%r14d, 8(%rsp)
	movl	%r14d, (%rsp)
	movl	$7, 16(%rsp)
	movl	%r14d, %r8d
	movl	%r14d, %r9d
	callq	_HEVC_BI_RND_CLIP4
	movl	%r14d, %edi
	movl	%r14d, %esi
	movl	%r14d, %edx
	movl	%r14d, %ecx
	movl	%r14d, %r8d
	movl	%r14d, %r9d
	callq	_PCKEV_B2_SH
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 40(%rsp)
	movq	%r12, 32(%rsp)
	movl	$3, 24(%rsp)
	movl	$2, 16(%rsp)
	movl	$1, 8(%rsp)
	movl	$0, (%rsp)
	movl	%r14d, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	$2, %r8d
	movl	$3, %r9d
	callq	_ST_W8
	addq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	addq	-88(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	decl	%r13d
	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_8t_4w_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_8t_4w_msa
_hevc_vt_bi_8t_4w_msa:                  ; @hevc_vt_bi_8t_4w_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, #28]                   ; 4-byte Folded Spill
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	add	w8, w1, w1, lsl #1
	sub	x25, x0, w8, sxtw #2
	mov	w0, #128
	bl	___msa_ldi_h
	mov	x24, x0
	mov	x0, x27
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	bl	_SPLATI_H4_SH
	mov	x0, x25
	mov	x1, x23
	bl	_LD_SB7
	bl	_ILVR_B4_SB
	bl	_ILVR_B2_SB
	bl	_ILVR_D3_SB
	bl	_XORI_B3_128_SB
	cmp	w26, #8
	b.lo	LBB0_3
; %bb.1:
	lsl	w24, w24, #6
	asr	w26, w26, #3
	lsl	w8, w23, #3
	sub	w9, w8, w23
	lsl	w10, w21, #3
	ldr	w11, [sp, #28]                  ; 4-byte Folded Reload
	lsl	w11, w11, #3
	sbfiz	x27, x8, #2, #32
	sbfiz	x28, x10, #2, #32
	sbfiz	x19, x11, #2, #32
	add	x25, x25, w9, sxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w26, w26, #1
	mov	x0, x25
	mov	x1, x23
	bl	_LD_SB8
	mov	x0, x22
	mov	x1, x21
	bl	_LD_SH8
	bl	_ILVR_D2_SH
	bl	_ILVR_D2_SH
	bl	_ILVR_B4_SB
	bl	_ILVR_B4_SB
	bl	_ILVR_D4_SB
	bl	_XORI_B4_128_SB
	stp	w24, w24, [sp, #8]
	stp	w24, w24, [sp]
	bl	_DPADD_SB4_SH
	stp	w24, w24, [sp, #8]
	stp	w24, w24, [sp]
	bl	_DPADD_SB4_SH
	stp	w24, w24, [sp, #8]
	stp	w24, w24, [sp]
	bl	_DPADD_SB4_SH
	stp	w24, w24, [sp, #8]
	stp	w24, w24, [sp]
	bl	_DPADD_SB4_SH
	stp	w24, w24, [sp, #12]
	stp	w24, w24, [sp, #4]
	mov	w8, #7
	str	w8, [sp]
	mov	x4, x24
	mov	x5, x24
	mov	x6, x24
	mov	x7, x24
	bl	_HEVC_BI_RND_CLIP4
	mov	x0, x24
	mov	x1, x24
	mov	x2, x24
	mov	x3, x24
	mov	x4, x24
	mov	x5, x24
	bl	_PCKEV_B2_SH
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	str	w8, [sp, #16]
	mov	x8, #2
	movk	x8, #3, lsl #32
	stp	x8, x20, [sp]
	mov	x0, x24
	mov	x1, x24
	mov	w2, #0
	mov	w3, #1
	mov	w4, #2
	mov	w5, #3
	mov	w6, #0
	mov	w7, #1
	bl	_ST_W8
	add	x25, x25, x27
	add	x22, x22, x28
	add	x20, x20, x19
	cbnz	w26, LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hevc_vt_bi_8t_4w_msa
.subsections_via_symbols
