	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_biwgt_copy_12w_msa
_hevc_biwgt_copy_12w_msa:               ## @hevc_biwgt_copy_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	$168, %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, -80(%rbp)                  ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r13
	movl	48(%rbp), %edi
	addl	40(%rbp), %edi
	movl	56(%rbp), %r14d
	movl	%r14d, %ecx
	shll	%cl, %edi
	movzwl	24(%rbp), %eax
	movl	32(%rbp), %r15d
	shll	$16, %r15d
	orl	%eax, %r15d
	callq	___msa_fill_w
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	___msa_fill_w
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	incl	%r14d
	movl	%r14d, %edi
	callq	___msa_fill_w
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	leal	(,%rbx,4), %eax
	movslq	%eax, %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	cltq
	shlq	$2, %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$-4, %eax
                                        ## implicit-def: $r15d
                                        ## implicit-def: $r14d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB4
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_LD_SH4
	leaq	32(%r12), %rdi
	movl	%ebx, %esi
	callq	_LD_SH4
	callq	_ILVR_D2_SH
	movl	$0, (%rsp)
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_ILVR_B4_SH
	movl	$6, %r8d
	callq	_SLLI_4V
	callq	_ILVL_W2_SB
	xorl	%edi, %edi
	xorl	%edx, %edx
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	callq	_ILVR_B2_SH
	shll	$6, %r14d
	shll	$6, %r15d
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, 32(%rsp)
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, 24(%rsp)
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, 16(%rsp)
	callq	_HEVC_BIW_RND_CLIP4_MAX_SATU
	movl	%r15d, 16(%rsp)
	movl	%r14d, 8(%rsp)
	movl	%ebx, (%rsp)
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r13d, %r8d
	movl	%r12d, %r9d
	callq	_HEVC_BIW_RND_CLIP2_MAX_SATU
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	_PCKEV_B3_UB
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, 8(%rsp)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, (%rsp)
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_ST_D4
	leaq	32(%rbx), %r9
	movl	%r12d, (%rsp)
	movq	-120(%rbp), %r12                ## 8-byte Reload
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$3, %r8d
	callq	_ST_W4
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movq	-128(%rbp), %r13                ## 8-byte Reload
	addq	-104(%rbp), %r13                ## 8-byte Folded Reload
	addq	-96(%rbp), %r12                 ## 8-byte Folded Reload
	addq	-88(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	incl	%eax
	jne	LBB0_1
## %bb.2:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hevc_biwgt_copy_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_biwgt_copy_12w_msa
_hevc_biwgt_copy_12w_msa:               ; @hevc_biwgt_copy_12w_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x23, x7
	str	w5, [sp, #76]                   ; 4-byte Folded Spill
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x28, x1
	mov	x24, x0
	ldp	w8, w9, [x29, #16]
	ldp	w10, w19, [x29, #24]
	add	w9, w10, w9
	lsl	w0, w9, w19
	bfi	w23, w8, #16, #16
	bl	___msa_fill_w
	mov	x25, x0
	mov	x0, x23
	bl	___msa_fill_w
	mov	x26, x0
	add	w0, w19, #1
	bl	___msa_fill_w
	mov	x27, x0
	stp	w28, w21, [sp, #68]             ; 8-byte Folded Spill
	lsl	w8, w28, #2
	lsl	w9, w21, #2
	ldr	w10, [sp, #76]                  ; 4-byte Folded Reload
	lsl	w10, w10, #2
	sbfiz	x11, x8, #2, #32
	sbfiz	x8, x9, #2, #32
	stp	x8, x11, [sp, #48]              ; 16-byte Folded Spill
	mov	w19, #-4
                                        ; implicit-def: $w28
                                        ; implicit-def: $w23
	sbfiz	x8, x10, #2, #32
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	ldr	w1, [sp, #68]                   ; 4-byte Folded Reload
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_LD_SB4
	mov	x0, x22
	ldr	w21, [sp, #72]                  ; 4-byte Folded Reload
	mov	x1, x21
	bl	_LD_SH4
	add	x0, x22, #32
	mov	x1, x21
	bl	_LD_SH4
	bl	_ILVR_D2_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	_ILVR_B4_SH
	mov	w4, #6
	bl	_SLLI_4V
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_ILVL_W2_SB
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, x23
	mov	x5, x28
	bl	_ILVR_B2_SH
	lsl	w23, w23, #6
	lsl	w28, w28, #6
	stp	w27, w25, [sp, #4]
	str	w26, [sp]
	bl	_HEVC_BIW_RND_CLIP4_MAX_SATU
	str	w28, [sp]
	mov	x0, x23
	mov	x1, x28
	mov	x4, x26
	mov	x5, x27
	mov	x6, x25
	mov	x7, x23
	bl	_HEVC_BIW_RND_CLIP2_MAX_SATU
	mov	x4, x28
	mov	x5, x23
	bl	_PCKEV_B3_UB
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	mov	x6, x20
	ldr	w21, [sp, #76]                  ; 4-byte Folded Reload
	mov	x7, x21
	bl	_ST_D4
	add	x5, x20, #32
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	mov	x6, x21
	bl	_ST_W4
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x24, x24, x8
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x22, x22, x8
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	adds	w19, w19, #1
	b.lo	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hevc_biwgt_copy_12w_msa
.subsections_via_symbols
