	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_vt_biwgt_8t_16multx2mult_msa
_hevc_vt_biwgt_8t_16multx2mult_msa:     ## @hevc_vt_biwgt_8t_16multx2mult_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	$184, %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, -112(%rbp)                 ## 8-byte Spill
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	56(%rbp), %r14d
	addl	48(%rbp), %r14d
	movl	64(%rbp), %r15d
	movl	%r15d, %ecx
	shll	%cl, %r14d
	movzwl	32(%rbp), %eax
	movl	40(%rbp), %ebx
	movl	%ebx, %r13d
	shll	$16, %r13d
	orl	%eax, %r13d
	movl	$128, %edi
	callq	___msa_ldi_w
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	___msa_fill_w
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	___msa_fill_w
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	incl	%r15d
	movl	%r15d, %edi
	callq	___msa_fill_w
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	___msa_fill_w
	movl	%eax, %r13d
	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
	movl	72(%rbp), %ebx
	cmpl	$16, %ebx
	jae	LBB0_1
LBB0_6:
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	24(%rbp), %edx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	imull	%r13d, %eax
	shll	$6, %eax
	addl	%r14d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	sarl	$4, %ebx
	leal	(%r12,%r12,2), %eax
	cltq
	leaq	(,%rax,4), %rcx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	%r9, %rdi
	subq	%rcx, %rdi
	leal	(,%r12,8), %ecx
	subl	%r12d, %ecx
	movslq	%ecx, %r8
	sarl	%edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	leal	(%r12,%r12), %edx
	movslq	%edx, %rdx
	subq	%rax, %r8
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addl	%eax, %eax
	movslq	%eax, %rcx
	leaq	(%r9,%r8,4), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-112(%rbp), %rax                ## 8-byte Reload
	addl	%eax, %eax
	cltq
	shlq	$2, %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	addq	$64, %rdi
	addq	$64, -88(%rbp)                  ## 8-byte Folded Spill
	addq	$64, -96(%rbp)                  ## 8-byte Folded Spill
	addq	$64, -80(%rbp)                  ## 8-byte Folded Spill
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	movq	%rsi, %r12
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	decl	%ebx
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movl	%r12d, %esi
	callq	_LD_SB7
	callq	_XORI_B7_128_SB
	callq	_ILVR_B4_SB
	callq	_ILVR_B2_SB
	callq	_ILVL_B4_SB
	callq	_ILVL_B2_SB
	cmpl	$2, 24(%rbp)
	movq	%r12, %rsi
	jb	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB2
	movq	%r14, %rdi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %esi
	callq	_LD_SH2
	leaq	32(%r14), %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	callq	_LD_SH2
	callq	_XORI_B2_128_SB
	callq	_ILVR_B2_SB
	callq	_ILVL_B2_SB
	callq	_DOTP_SB4_SH
	callq	_DPADD_SB4_SH
	callq	_DPADD_SB4_SH
	callq	_DPADD_SB4_SH
	movl	%ebx, 32(%rsp)
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rsp)
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rsp)
	callq	_HEVC_BIW_RND_CLIP4
	callq	_PCKEV_B2_SH
	movq	%r13, %rdx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_ST_SH2
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	addq	%rax, %r12
	addq	%rcx, %r14
	addq	%rdx, %r13
	decl	%r15d
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hevc_vt_biwgt_8t_16multx2mult_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_16multx2mult_msa
_hevc_vt_biwgt_8t_16multx2mult_msa:     ; @hevc_vt_biwgt_8t_16multx2mult_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	str	w7, [sp, #68]                   ; 4-byte Folded Spill
	mov	x28, x6
	stur	w5, [x29, #-84]                 ; 4-byte Folded Spill
	stp	x2, x4, [sp, #96]               ; 16-byte Folded Spill
	str	w3, [sp, #64]                   ; 4-byte Folded Spill
	mov	x26, x1
	mov	x22, x0
	ldp	w19, w20, [x29, #32]
	ldrh	w25, [x29, #16]
	ldp	w27, w8, [x29, #20]
	ldr	w9, [x29, #28]
	add	w8, w9, w8
	lsl	w23, w8, w19
	bfi	w25, w27, #16, #16
	mov	w0, #128
	bl	___msa_ldi_w
	mov	x21, x0
	mov	x0, x23
	bl	___msa_fill_w
	mov	x23, x0
	mov	x0, x25
	bl	___msa_fill_w
	stur	w0, [x29, #-88]                 ; 4-byte Folded Spill
	add	w0, w19, #1
	bl	___msa_fill_w
	stur	w0, [x29, #-92]                 ; 4-byte Folded Spill
	mov	x0, x27
	bl	___msa_fill_w
	mov	x27, x0
	mov	x0, x28
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	bl	_SPLATI_H4_SH
	cmp	w20, #16
	b.hs	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_2:
	mul	w8, w21, w27
	add	w8, w23, w8, lsl #6
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	asr	w13, w20, #4
	lsl	w8, w26, #1
	add	w9, w8, w26
	sub	x0, x22, w9, sxtw #2
	lsl	w10, w26, #3
	sub	w10, w10, w26
	sxtw	x10, w10
	ldp	w19, w11, [sp, #64]             ; 8-byte Folded Reload
	asr	w11, w11, #1
	str	w11, [sp, #28]                  ; 4-byte Folded Spill
	ldp	w24, w11, [sp, #60]             ; 8-byte Folded Reload
	lsl	w11, w11, #1
	ldur	w12, [x29, #-84]                ; 4-byte Folded Reload
	lsl	w12, w12, #1
	sub	x9, x10, w9, sxtw
	sbfiz	x10, x8, #2, #32
	sbfiz	x8, x11, #2, #32
	stp	x8, x10, [sp, #40]              ; 16-byte Folded Spill
	sbfiz	x8, x12, #2, #32
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	add	x8, x22, x9, lsl #2
	str	x8, [sp, #88]                   ; 8-byte Folded Spill
	ldr	x22, [sp, #48]                  ; 8-byte Folded Reload
	ldr	x27, [sp, #32]                  ; 8-byte Folded Reload
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	add	x0, x0, #64
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	add	x9, x8, #64
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	add	x8, x8, #64
	stp	x9, x8, [sp, #96]               ; 16-byte Folded Spill
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	add	x8, x8, #64
	str	x8, [sp, #88]                   ; 8-byte Folded Spill
	mov	x26, x20
	ldr	w13, [sp, #84]                  ; 4-byte Folded Reload
	cbz	w13, LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	sub	w13, w13, #1
	str	w13, [sp, #84]                  ; 4-byte Folded Spill
	str	x0, [sp, #72]                   ; 8-byte Folded Spill
	mov	x1, x26
	bl	_LD_SB7
	bl	_XORI_B7_128_SB
	bl	_ILVR_B4_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B4_SB
	bl	_ILVL_B2_SB
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	cmp	w8, #2
	mov	x20, x26
	ldr	x26, [sp, #40]                  ; 8-byte Folded Reload
	b.lo	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x23, x28, [sp, #96]             ; 16-byte Folded Reload
	ldr	x21, [sp, #88]                  ; 8-byte Folded Reload
	ldr	w25, [sp, #28]                  ; 4-byte Folded Reload
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w25, w25, #1
	mov	x0, x21
	mov	x1, x20
	bl	_LD_SB2
	mov	x0, x23
	mov	x1, x19
	bl	_LD_SH2
	add	x0, x23, #32
	mov	x1, x19
	bl	_LD_SH2
	bl	_XORI_B2_128_SB
	bl	_ILVR_B2_SB
	bl	_ILVL_B2_SB
	bl	_DOTP_SB4_SH
	bl	_DPADD_SB4_SH
	bl	_DPADD_SB4_SH
	bl	_DPADD_SB4_SH
	str	w24, [sp, #8]
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	str	w8, [sp, #4]
	ldur	w8, [x29, #-88]                 ; 4-byte Folded Reload
	str	w8, [sp]
	bl	_HEVC_BIW_RND_CLIP4
	bl	_PCKEV_B2_SH
	mov	x2, x28
	ldur	w3, [x29, #-84]                 ; 4-byte Folded Reload
	bl	_ST_SH2
	add	x21, x21, x22
	add	x23, x23, x26
	add	x28, x28, x27
	cbnz	w25, LBB0_6
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hevc_vt_biwgt_8t_16multx2mult_msa
.subsections_via_symbols
