	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_bi_copy_48w_msa
_hevc_bi_copy_48w_msa:                  ## @hevc_bi_copy_48w_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	16(%rbp), %edi
	cmpl	$2, %edi
	jb	LBB0_3
## %bb.1:
	movq	%r8, %r15
	movq	%rdx, %r14
	sarl	%edi
	movslq	%esi, %rdx
	movslq	%ecx, %rcx
	movslq	%r9d, %rax
	leaq	(,%rdx,8), %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,8), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	-128(,%rax,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_LD_SB3
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r12,%rax), %rdi
	movl	$16, %esi
	callq	_LD_SB3
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_LD_SH6
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r14,%rax), %rdi
	movl	$8, %esi
	callq	_LD_SH6
	xorl	%edi, %edi
	callq	_ILVRL_B2_SH
	xorl	%edi, %edi
	callq	_ILVRL_B2_SH
	xorl	%edi, %edi
	callq	_ILVRL_B2_SH
	xorl	%edi, %edi
	callq	_ILVRL_B2_SH
	xorl	%edi, %edi
	callq	_ILVRL_B2_SH
	xorl	%edi, %edi
	callq	_ILVRL_B2_SH
	movl	$6, %r8d
	callq	_SLLI_4V
	movl	$6, %r8d
	callq	_SLLI_4V
	movl	$6, %r8d
	callq	_SLLI_4V
	movl	$7, 16(%rsp)
	callq	_HEVC_BI_RND_CLIP4_MAX_SATU
	movl	$7, 16(%rsp)
	callq	_HEVC_BI_RND_CLIP4_MAX_SATU
	movl	$7, 16(%rsp)
	callq	_HEVC_BI_RND_CLIP4_MAX_SATU
	callq	_PCKEV_B3_UB
	callq	_PCKEV_B3_UB
	movq	%r15, %rdx
	movl	$16, %ecx
	callq	_ST_UB2
	leaq	128(%r15), %rsi
	callq	_ST_UB
	leaq	(%r15,%r13), %rbx
	addq	$128, %rbx
	movq	%rbx, %rdx
	movl	$16, %ecx
	callq	_ST_UB2
	leaq	(%r15,%r13), %rsi
	addq	$256, %rsi                      ## imm = 0x100
	callq	_ST_UB
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	addq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	addq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	leaq	(%rbx,%r13), %r15
	addq	$128, %r15
	decl	%edi
	jne	LBB0_2
LBB0_3:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hevc_bi_copy_48w_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hevc_bi_copy_48w_msa
_hevc_bi_copy_48w_msa:                  ; @hevc_bi_copy_48w_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
                                        ; kill: def $w5 killed $w5 def $x5
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w6, #2
	b.lo	LBB0_3
; %bb.1:
	mov	x21, x4
	mov	x19, x2
	mov	x20, x0
	asr	w22, w6, #1
	sbfiz	x23, x1, #3, #32
	sbfiz	x24, x1, #2, #32
	sbfiz	x25, x3, #3, #32
	sbfiz	x8, x5, #2, #32
	sub	x26, x8, #128
	mov	w27, #7
	sbfiz	x28, x3, #2, #32
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w22, w22, #1
	mov	x0, x20
	mov	w1, #16
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_LD_SB3
	add	x0, x20, x24
	mov	w1, #16
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_LD_SB3
	mov	x0, x19
	mov	w1, #8
	bl	_LD_SH6
	add	x0, x19, x28
	mov	w1, #8
	bl	_LD_SH6
	mov	x0, #0
	mov	x1, #0
	bl	_ILVRL_B2_SH
	mov	x0, #0
	mov	x1, #0
	bl	_ILVRL_B2_SH
	mov	x0, #0
	mov	x1, #0
	bl	_ILVRL_B2_SH
	mov	x0, #0
	mov	x1, #0
	bl	_ILVRL_B2_SH
	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
	mov	w4, #6
	bl	_SLLI_4V
	mov	w4, #6
	bl	_SLLI_4V
	str	w27, [sp]
	bl	_HEVC_BI_RND_CLIP4_MAX_SATU
	str	w27, [sp]
	bl	_HEVC_BI_RND_CLIP4_MAX_SATU
	str	w27, [sp]
	bl	_HEVC_BI_RND_CLIP4_MAX_SATU
	bl	_PCKEV_B3_UB
	bl	_PCKEV_B3_UB
	mov	x2, x21
	mov	w3, #16
	bl	_ST_UB2
	add	x21, x21, #128
	mov	x1, x21
	bl	_ST_UB
	add	x21, x21, x26
	mov	x2, x21
	mov	w3, #16
	bl	_ST_UB2
	add	x21, x21, #128
	mov	x1, x21
	bl	_ST_UB
	add	x20, x20, x23
	add	x19, x19, x25
	add	x21, x21, x26
	cbnz	w22, 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_bi_copy_48w_msa
.subsections_via_symbols
