	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_vt_biwgt_8t_12w_msa
_hevc_vt_biwgt_8t_12w_msa:              ## @hevc_vt_biwgt_8t_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	$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, -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, %r15
	movl	%esi, %r13d
	movzwl	32(%rbp), %eax
	movl	40(%rbp), %ebx
	movl	64(%rbp), %r12d
	movl	56(%rbp), %r14d
	leal	(%r13,%r13,2), %ecx
	addl	48(%rbp), %r14d
	movslq	%ecx, %rdx
	movl	%r12d, %ecx
	shll	%cl, %r14d
	shlq	$2, %rdx
	subq	%rdx, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	shll	$16, %ebx
	orl	%eax, %ebx
	movl	$128, %edi
	callq	___msa_ldi_w
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	___msa_fill_w
	movl	%eax, %r14d
	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, -44(%rbp)                 ## 4-byte Spill
	movl	40(%rbp), %edi
	callq	___msa_fill_w
	imull	-64(%rbp), %eax                 ## 4-byte Folded Reload
	shll	$6, %eax
	addl	%r14d, %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	16(%rbp), %rdi
	callq	_LD_SH
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$3, %r8d
	callq	_SPLATI_H4_SH
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_LD_SB7
	leal	(,%r13,8), %eax
	subl	%r13d, %eax
	cltq
	leaq	(%rbx,%rax,4), %rbx
	callq	_XORI_B7_128_SB
	callq	_ILVR_B4_SB
	callq	_ILVR_B2_SB
	callq	_ILVL_B4_SB
	callq	_ILVL_B2_SB
	callq	_ILVR_D3_SB
	movq	%r13, -152(%rbp)                ## 8-byte Spill
	leal	(%r13,%r13), %eax
	movslq	%eax, %rcx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %eax
	movslq	%eax, %rdx
	movslq	-56(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addl	%eax, %eax
	cltq
	shlq	$2, %rcx
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	$-8, %eax
                                        ## implicit-def: $ecx
                                        ## kill: killed $ecx
                                        ## implicit-def: $ecx
                                        ## kill: killed $ecx
                                        ## implicit-def: $rcx
                                        ## kill: killed $rcx
                                        ## implicit-def: $rcx
                                        ## kill: killed $rcx
                                        ## implicit-def: $rcx
                                        ## kill: killed $rcx
                                        ## implicit-def: $r14
                                        ## implicit-def: $rcx
                                        ## kill: killed $rcx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, -160(%rbp)                ## 8-byte Spill
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -184(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movq	-152(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB2
	movq	%r15, -168(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_LD_SH2
	leaq	32(%r15), %rdi
	movl	%ebx, %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_LD_SH2
	movl	%ebx, %esi
	callq	___msa_ilvr_d
	movq	%rax, %r15
	callq	_XORI_B2_128_SB
	callq	_ILVR_B2_SB
	callq	_ILVL_B2_SB
	callq	___msa_ilvr_d
	movq	%rax, %r13
	movq	-192(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, 16(%rsp)
	movq	%r14, %rdx
	callq	_DOTP_SB3_SH
	callq	_DPADD_SB2_SH
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	___msa_dpadd_s_h
	movq	%rax, %rbx
	callq	_DPADD_SB2_SH
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	___msa_dpadd_s_h
	movq	%rax, %rbx
	callq	_DPADD_SB2_SH
	movq	%rbx, %rdi
	movq	%r13, -176(%rbp)                ## 8-byte Spill
	movq	%r13, %rsi
	callq	___msa_dpadd_s_h
	movq	%rax, %rbx
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, (%rsp)
	movq	-128(%rbp), %r13                ## 8-byte Reload
	movl	%r13d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_HEVC_BIW_RND_CLIP2
	movq	%rbx, -192(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	movl	-80(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	movl	-84(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_ILVRL_H2_SW
	movslq	%r12d, %rsi
	movl	%r14d, %edi
	movq	%r13, %rdx
	callq	___msa_dpadd_s_w
	movl	%eax, %r12d
	movslq	%r15d, %rsi
	movl	%r14d, %edi
	movq	%r13, %rdx
	callq	___msa_dpadd_s_w
	movl	%eax, %ebx
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_SRAR_W2_SW
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %rdi
	movl	%r12d, -80(%rbp)                ## 4-byte Spill
	movslq	%r12d, %rsi
	callq	___msa_pckev_h
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_CLIP_SH_0_255
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	movq	%rbx, %r9
	callq	_PCKEV_B2_SH
	xorl	%esi, %esi
	movl	$1, %edx
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rcx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movl	%r14d, %r8d
	callq	_ST_D2
	leaq	32(%r13), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	%r14d, %r8d
	callq	_ST_W2
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movq	-184(%rbp), %rbx                ## 8-byte Reload
	addq	-144(%rbp), %rbx                ## 8-byte Folded Reload
	movq	-168(%rbp), %r15                ## 8-byte Reload
	addq	-136(%rbp), %r15                ## 8-byte Folded Reload
	addq	-120(%rbp), %r13                ## 8-byte Folded Reload
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movq	-160(%rbp), %r14                ## 8-byte Reload
	incl	%eax
	jne	LBB0_1
## %bb.2:
	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_8t_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_8t_12w_msa
_hevc_vt_biwgt_8t_12w_msa:              ; @hevc_vt_biwgt_8t_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
	stur	x6, [x29, #-88]                 ; 8-byte Folded Spill
	stp	w3, w5, [sp, #88]               ; 8-byte Folded Spill
	mov	x20, x4
	mov	x22, x2
	mov	x23, x1
	ldrh	w19, [x29, #16]
	ldp	w24, w8, [x29, #20]
	ldp	w9, w28, [x29, #28]
	lsl	w27, w1, #1
	add	w10, w27, w1
	sub	x21, x0, w10, sxtw #2
	add	w8, w9, w8
	lsl	w25, w8, w28
	bfi	w19, w24, #16, #16
	mov	w0, #128
	bl	___msa_ldi_w
	mov	x26, x0
	mov	x0, x25
	bl	___msa_fill_w
	mov	x25, x0
	mov	x0, x19
	bl	___msa_fill_w
	mov	x19, x0
	add	w0, w28, #1
	bl	___msa_fill_w
	str	w0, [sp, #80]                   ; 4-byte Folded Spill
	mov	x0, x24
	bl	___msa_fill_w
	mul	w8, w26, w0
	add	w8, w25, w8, lsl #6
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
	ldur	x0, [x29, #-88]                 ; 8-byte Folded Reload
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	bl	_SPLATI_H4_SH
	mov	x0, x21
	mov	x1, x23
	bl	_LD_SB7
	lsl	w8, w23, #3
	str	w23, [sp, #84]                  ; 4-byte Folded Spill
	sub	w8, w8, w23
	add	x26, x21, w8, sxtw #2
	bl	_XORI_B7_128_SB
	bl	_ILVR_B4_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B4_SB
	bl	_ILVL_B2_SB
	bl	_ILVR_D3_SB
	ldr	w8, [sp, #88]                   ; 4-byte Folded Reload
	lsl	w8, w8, #1
	sxtw	x11, w19
	ldr	w9, [sp, #92]                   ; 4-byte Folded Reload
	lsl	w9, w9, #1
	sbfiz	x10, x27, #2, #32
	stp	x10, x11, [sp, #56]             ; 16-byte Folded Spill
	sbfiz	x11, x8, #2, #32
	mov	w8, #-8
                                        ; implicit-def: $w25
                                        ; implicit-def: $w27
                                        ; implicit-def: $x0
                                        ; kill: killed $x0
                                        ; implicit-def: $x0
                                        ; kill: killed $x0
                                        ; implicit-def: $x0
                                        ; kill: killed $x0
                                        ; implicit-def: $x24
                                        ; implicit-def: $x10
                                        ; kill: killed $x10
	sbfiz	x9, x9, #2, #32
	stp	x9, x11, [sp, #40]              ; 16-byte Folded Spill
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	stur	w8, [x29, #-92]                 ; 4-byte Folded Spill
	ldur	x21, [x29, #-88]                ; 8-byte Folded Reload
	str	x21, [sp, #96]                  ; 8-byte Folded Spill
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	stur	x8, [x29, #-88]                 ; 8-byte Folded Spill
	mov	x0, x26
	ldr	w1, [sp, #84]                   ; 4-byte Folded Reload
	bl	_LD_SB2
	mov	x19, x22
	mov	x0, x22
	ldr	w22, [sp, #88]                  ; 4-byte Folded Reload
	mov	x1, x22
	bl	_LD_SH2
	add	x0, x19, #32
	mov	x1, x22
	ldur	x22, [x29, #-104]               ; 8-byte Folded Reload
	mov	x2, x22
	bl	_LD_SH2
	mov	x1, x22
	bl	___msa_ilvr_d
	mov	x23, x0
	bl	_XORI_B2_128_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B2_SB
	bl	___msa_ilvr_d
	mov	x28, x0
	ldr	x22, [sp, #112]                 ; 8-byte Folded Reload
	str	x22, [sp]
	mov	x2, x24
	bl	_DOTP_SB3_SH
	bl	_DPADD_SB2_SH
	mov	x0, x22
	mov	x1, x21
	bl	___msa_dpadd_s_h
	mov	x21, x0
	bl	_DPADD_SB2_SH
	mov	x0, x21
	ldur	x1, [x29, #-88]                 ; 8-byte Folded Reload
	bl	___msa_dpadd_s_h
	mov	x21, x0
	bl	_DPADD_SB2_SH
	mov	x0, x21
	str	x28, [sp, #104]                 ; 8-byte Folded Spill
	mov	x1, x28
	bl	___msa_dpadd_s_h
	mov	x21, x0
	mov	x28, x26
	ldr	x26, [sp, #64]                  ; 8-byte Folded Reload
	mov	x4, x26
	ldp	w24, w22, [sp, #76]             ; 8-byte Folded Reload
	mov	x5, x22
	mov	x6, x24
	bl	_HEVC_BIW_RND_CLIP2
	str	x21, [sp, #112]                 ; 8-byte Folded Spill
	mov	x0, x21
	stur	x23, [x29, #-104]               ; 8-byte Folded Spill
	mov	x1, x23
	mov	x2, x27
	mov	x3, x25
	bl	_ILVRL_H2_SW
	sxtw	x1, w27
	mov	x0, x24
	mov	x2, x26
	bl	___msa_dpadd_s_w
	mov	x27, x0
	sxtw	x1, w25
	mov	x0, x24
	mov	x2, x26
	mov	x26, x28
	bl	___msa_dpadd_s_w
	mov	x25, x0
	mov	x0, x27
	mov	x1, x25
	mov	x2, x22
	bl	_SRAR_W2_SW
	sxtw	x0, w25
	sxtw	x1, w27
	bl	___msa_pckev_h
	mov	x24, x0
	bl	_CLIP_SH_0_255
	mov	x2, x24
	mov	x3, x24
	mov	x5, x24
	bl	_PCKEV_B2_SH
	mov	w1, #0
	mov	w2, #1
	mov	x3, x20
	mov	x22, x20
	ldr	w20, [sp, #92]                  ; 4-byte Folded Reload
	mov	x4, x20
	bl	_ST_D2
	add	x3, x22, #32
	mov	x0, x24
	mov	w1, #0
	mov	w2, #1
	mov	x4, x20
	mov	x20, x22
	bl	_ST_W2
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x26, x28, x8
	ldp	x9, x8, [sp, #40]               ; 16-byte Folded Reload
	add	x22, x19, x8
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	add	x20, x20, x9
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	ldr	x24, [sp, #96]                  ; 8-byte Folded Reload
	adds	w8, w8, #1
	b.lo	LBB0_1
; %bb.2:
	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_8t_12w_msa
.subsections_via_symbols
