	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_biwgt_copy_64w_msa
_hevc_biwgt_copy_64w_msa:               ## @hevc_biwgt_copy_64w_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -64(%rbp)                 ## 4-byte Spill
	movq	%r8, %r13
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movl	16(%rbp), %ebx
	movl	48(%rbp), %edi
	addl	40(%rbp), %edi
	movl	56(%rbp), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movzwl	24(%rbp), %eax
	movl	32(%rbp), %r15d
	shll	$16, %r15d
	orl	%eax, %r15d
	callq	___msa_fill_w
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	___msa_fill_w
	movl	%eax, %r15d
	movl	56(%rbp), %edi
	incl	%edi
	callq	___msa_fill_w
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movslq	-56(%rbp), %rcx                 ## 4-byte Folded Reload
	movslq	-64(%rbp), %rdx                 ## 4-byte Folded Reload
	shlq	$2, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_LD_SB4
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_LD_SH8
	movl	$0, (%rsp)
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_ILVR_B4_SH
	movl	$0, (%rsp)
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_ILVL_B4_SH
	movl	$6, %r8d
	callq	_SLLI_4V
	movl	$6, %r8d
	callq	_SLLI_4V
	movq	%r13, %r14
	movl	%r15d, %r13d
	movl	-72(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, 32(%rsp)
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, 24(%rsp)
	movl	%r13d, 16(%rsp)
	callq	_HEVC_BIW_RND_CLIP4_MAX_SATU
	movl	%r12d, 32(%rsp)
	movl	%r13d, %eax
	movq	%r14, %r13
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r15d, 24(%rsp)
	movl	%eax, %r15d
	movl	%eax, 16(%rsp)
	callq	_HEVC_BIW_RND_CLIP4_MAX_SATU
	callq	_PCKEV_B2_UB
	callq	_PCKEV_B2_UB
	movq	%r13, %r8
	movl	$16, %r9d
	callq	_ST_UB4
	addq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	addq	-88(%rbp), %r12                 ## 8-byte Folded Reload
	addq	-80(%rbp), %r13                 ## 8-byte Folded Reload
	decl	%ebx
	jne	LBB0_2
LBB0_3:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hevc_biwgt_copy_64w_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_64w_msa
_hevc_biwgt_copy_64w_msa:               ; @hevc_biwgt_copy_64w_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	x24, x7
	mov	x19, x6
	mov	x26, x5
	mov	x20, x4
	mov	x27, x3
	mov	x21, x2
	mov	x28, x1
	mov	x22, x0
	ldp	w8, w9, [x29, #16]
	ldp	w10, w25, [x29, #24]
	add	w9, w10, w9
	lsl	w0, w9, w25
	bfi	w24, w8, #16, #16
	bl	___msa_fill_w
	mov	x23, x0
	mov	x0, x24
	bl	___msa_fill_w
	mov	x24, x0
	add	w0, w25, #1
	bl	___msa_fill_w
	cbz	w19, LBB0_3
; %bb.1:
	mov	x25, x0
	sbfiz	x28, x28, #2, #32
	sbfiz	x27, x27, #2, #32
	sbfiz	x26, x26, #2, #32
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w19, w19, #1
	mov	x0, x22
	mov	w1, #16
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_LD_SB4
	mov	x0, x21
	mov	w1, #8
	bl	_LD_SH8
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_ILVR_B4_SH
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_ILVL_B4_SH
	mov	w4, #6
	bl	_SLLI_4V
	mov	w4, #6
	bl	_SLLI_4V
	stp	w25, w23, [sp, #4]
	str	w24, [sp]
	bl	_HEVC_BIW_RND_CLIP4_MAX_SATU
	stp	w25, w23, [sp, #4]
	str	w24, [sp]
	bl	_HEVC_BIW_RND_CLIP4_MAX_SATU
	bl	_PCKEV_B2_UB
	bl	_PCKEV_B2_UB
	mov	x4, x20
	mov	w5, #16
	bl	_ST_UB4
	add	x22, x22, x28
	add	x21, x21, x27
	add	x20, x20, x26
	cbnz	w19, 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_biwgt_copy_64w_msa
.subsections_via_symbols
