	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_copy_8w_msa
_hevc_copy_8w_msa:                      ## @hevc_copy_8w_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r12
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	cmpl	$6, %r8d
	je	LBB0_5
## %bb.1:
	movl	%r8d, %r13d
	cmpl	$4, %r8d
	je	LBB0_4
## %bb.2:
	cmpl	$2, %r13d
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB2
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_ILVR_B2_SH
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ST_SH2                         ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB6
	movl	$0, (%rsp)
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_ILVR_B4_SH
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_ILVR_B2_SH
	movl	$6, %r8d
	callq	_SLLI_4V
	movl	%r14d, 8(%rsp)
	movq	%r12, (%rsp)
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ST_SH6
	jmp	LBB0_10
LBB0_4:
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB4
	movl	$0, (%rsp)
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_ILVR_B4_SH
	movl	$6, %r8d
	callq	_SLLI_4V
	movq	%r12, %r8
	movl	%r14d, %r9d
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ST_SH4                         ## TAILCALL
LBB0_6:
	testb	$7, %r13b
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_10
## %bb.7:
	cmpl	$8, %r13d
	jb	LBB0_10
## %bb.8:
	sarl	$3, %r13d
	leal	(,%rsi,8), %eax
	movslq	%eax, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,8), %eax
	movslq	%eax, %r15
	shlq	$2, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	shlq	$2, %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%rsi, %r14
	callq	_LD_SB8
	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	_ILVR_B4_SH
	movl	$6, %r8d
	callq	_SLLI_4V
	movl	$6, %r8d
	callq	_SLLI_4V
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 24(%rsp)
	movq	%r12, 16(%rsp)
	callq	_ST_SH8
	movq	%r14, %rsi
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	%r15, %r12
	decl	%r13d
	jne	LBB0_9
LBB0_10:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hevc_copy_8w_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hevc_copy_8w_msa
_hevc_copy_8w_msa:                      ; @hevc_copy_8w_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	cmp	w4, #6
	b.eq	LBB0_4
; %bb.1:
	cmp	w4, #4
	b.eq	LBB0_5
; %bb.2:
	cmp	w4, #2
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x22
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	bl	_LD_SB2
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_ILVR_B2_SH
	mov	w0, #0
	mov	w1, #0
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ST_SH2
LBB0_4:
	mov	x0, x22
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_LD_SB6
	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
	bl	_ILVR_B2_SH
	mov	w4, #6
	bl	_SLLI_4V
	mov	w4, #0
	mov	w5, #0
	mov	x6, x20
	mov	x7, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ST_SH6
LBB0_5:
	mov	x0, x22
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_LD_SB4
	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	x4, x20
	mov	x5, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ST_SH4
LBB0_6:
	tst	w4, #0x7
	b.ne	LBB0_10
; %bb.7:
	cmp	w4, #8
	b.lo	LBB0_10
; %bb.8:
	asr	w23, w4, #3
	lsl	w8, w21, #3
	lsl	w9, w19, #3
	sbfiz	x24, x8, #2, #32
	sbfiz	x25, x9, #2, #32
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sub	w23, w23, #1
	stp	xzr, xzr, [sp]
	mov	x0, x22
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_LD_SB8
	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	_ILVR_B4_SH
	mov	w4, #6
	bl	_SLLI_4V
	mov	w4, #6
	bl	_SLLI_4V
	str	w19, [sp, #8]
	str	x20, [sp]
	bl	_ST_SH8
	add	x22, x22, x24
	add	x20, x20, x25
	cbnz	w23, LBB0_9
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hevc_copy_8w_msa
.subsections_via_symbols
