	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_biwgt_copy_6w_msa
_hevc_biwgt_copy_6w_msa:                ## @hevc_biwgt_copy_6w_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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%r8, %rbx
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	16(%rbp), %r13d
	movl	48(%rbp), %eax
	addl	40(%rbp), %eax
	movl	56(%rbp), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movzwl	24(%rbp), %eax
	movl	32(%rbp), %edi
	shll	$16, %edi
	orl	%eax, %edi
	callq	___msa_fill_w
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	___msa_fill_w
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	56(%rbp), %edi
	incl	%edi
	callq	___msa_fill_w
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$4, %r13d
	jb	LBB0_3
## %bb.1:
	sarl	$2, %r13d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	movslq	%eax, %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	movslq	%eax, %rdx
	leal	(%r14,%r14), %eax
	movslq	%eax, %rsi
	leal	(,%r14,4), %eax
	cltq
	shlq	$2, %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	16(,%rsi,4), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	shlq	$2, %rsi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD4
	xorl	%edx, %edx
	callq	_INSERT_D2_SB
	xorl	%edx, %edx
	callq	_INSERT_D2_SB
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SH4
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_ILVRL_B2_SH
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_ILVRL_B2_SH
	movl	$6, %r8d
	callq	_SLLI_4V
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%rsp)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rsp)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rsp)
	callq	_HEVC_BIW_RND_CLIP4_MAX_SATU
	callq	_PCKEV_B2_UB
	xorl	%esi, %esi
	movl	$2, %edx
	movq	%rbx, %rcx
	movl	%r14d, %r8d
	callq	_ST_W2
	leaq	16(%rbx), %rcx
	movl	$2, %esi
	movl	$6, %edx
	movl	%r14d, %r8d
	callq	_ST_H2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %rcx
	xorl	%esi, %esi
	movl	$2, %edx
	movl	%r14d, %r8d
	callq	_ST_W2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %rcx
	movl	$2, %esi
	movl	$6, %edx
	movl	%r14d, %r8d
	callq	_ST_H2
	addq	-112(%rbp), %r15                ## 8-byte Folded Reload
	addq	-104(%rbp), %r12                ## 8-byte Folded Reload
	addq	-88(%rbp), %rbx                 ## 8-byte Folded Reload
	decl	%r13d
	jne	LBB0_2
LBB0_3:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hevc_biwgt_copy_6w_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hevc_biwgt_copy_6w_msa
_hevc_biwgt_copy_6w_msa:                ; @hevc_biwgt_copy_6w_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x6
	mov	x19, x5
	mov	x20, x4
	stp	w1, w3, [sp, #40]               ; 8-byte Folded Spill
	mov	x22, x2
	mov	x24, x0
	ldp	w8, w9, [x29, #16]
	ldp	w10, w21, [x29, #24]
	add	w9, w10, w9
	lsl	w26, w9, w21
	bfi	w7, w8, #16, #16
	mov	x0, x7
	bl	___msa_fill_w
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	mov	x0, x26
	bl	___msa_fill_w
	str	w0, [sp, #32]                   ; 4-byte Folded Spill
	add	w0, w21, #1
	bl	___msa_fill_w
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	cmp	w28, #4
	b.lo	LBB0_3
; %bb.1:
	asr	w21, w28, #2
	ldp	w8, w9, [sp, #40]               ; 8-byte Folded Reload
	lsl	w8, w8, #2
	lsl	w9, w9, #2
	lsl	w10, w19, #1
	lsl	w11, w19, #2
	sbfiz	x23, x8, #2, #32
	sbfiz	x25, x9, #2, #32
	sbfiz	x26, x11, #2, #32
	sbfiz	x27, x10, #2, #32
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w21, w21, #1
	mov	x0, x24
	ldr	w1, [sp, #40]                   ; 4-byte Folded Reload
	bl	_LD4
	mov	x2, #0
	bl	_INSERT_D2_SB
	mov	x2, #0
	bl	_INSERT_D2_SB
	mov	x0, x22
	ldr	w1, [sp, #44]                   ; 4-byte Folded Reload
	bl	_LD_SH4
	mov	x0, #0
	mov	x1, #0
	bl	_ILVRL_B2_SH
	mov	x0, #0
	mov	x1, #0
	bl	_ILVRL_B2_SH
	mov	w4, #6
	bl	_SLLI_4V
	ldr	w9, [sp, #32]                   ; 4-byte Folded Reload
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	stp	w8, w9, [sp, #4]
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	str	w8, [sp]
	bl	_HEVC_BIW_RND_CLIP4_MAX_SATU
	bl	_PCKEV_B2_UB
	mov	w1, #0
	mov	w2, #2
	mov	x3, x20
	mov	x4, x19
	bl	_ST_W2
	add	x3, x20, #16
	mov	w1, #2
	mov	w2, #6
	mov	x4, x19
	bl	_ST_H2
	add	x28, x20, x27
	mov	w1, #0
	mov	w2, #2
	mov	x3, x28
	mov	x4, x19
	bl	_ST_W2
	add	x3, x28, #16
	mov	w1, #2
	mov	w2, #6
	mov	x4, x19
	bl	_ST_H2
	add	x24, x24, x23
	add	x22, x22, x25
	add	x20, x20, x26
	cbnz	w21, LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hevc_biwgt_copy_6w_msa
.subsections_via_symbols
