	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_copy_12w_msa
_hevc_copy_12w_msa:                     ## @hevc_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	cmpl	$8, %r8d
	jb	LBB0_3
## %bb.1:
	sarl	$3, %r8d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,8), %eax
	movslq	%eax, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	cltq
	shlq	$2, %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	leaq	-32(,%rax,4), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
                                        ## implicit-def: $ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB8
	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	-60(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %r8d
	movl	%ebx, %r14d
	movl	%ebx, %r9d
	callq	_ILVR_B2_SH
	movl	%r15d, %eax
	shll	$6, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r12d
	shll	$6, %r12d
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %r8
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %r9d
	callq	_ST_SH4
	leaq	32(%r13), %rax
	movl	%ebx, 8(%rsp)
	movq	%rax, (%rsp)
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_ST_D4
	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	%ebx, %r8d
	movl	%r12d, %r9d
	callq	_ILVR_B2_SH
	shll	$12, %r15d
	shll	$12, %r14d
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, %rbx
	leaq	(%r12,%r13), %r8
	addq	$32, %r8
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %r9d
	callq	_ST_SH4
	leaq	(%rbx,%r12), %rax
	addq	$64, %rax
	movl	%r13d, 8(%rsp)
	movq	%rax, (%rsp)
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	movl	%r14d, %ebx
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_ST_D4
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	addq	-104(%rbp), %rdi                ## 8-byte Folded Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%r12, %rax
	addq	$32, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	decl	%r8d
	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_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_copy_12w_msa
_hevc_copy_12w_msa:                     ; @hevc_copy_12w_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
	cmp	w4, #8
	b.lo	LBB0_3
; %bb.1:
	mov	x19, x3
	mov	x24, x2
	mov	x20, x1
	mov	x21, x0
	asr	w27, w4, #3
	lsl	w8, w1, #3
	lsl	w9, w3, #2
	sbfiz	x8, x8, #2, #32
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	sbfiz	x8, x9, #2, #32
	sub	x28, x8, #32
                                        ; implicit-def: $w22
                                        ; implicit-def: $w23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w27, w27, #1
	stp	xzr, xzr, [sp]
	mov	x0, x21
	mov	x1, x20
	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	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, x22
	mov	x5, x23
	bl	_ILVR_B2_SH
	lsl	w25, w22, #6
	lsl	w26, w23, #6
	mov	x4, x24
	mov	x5, x19
	bl	_ST_SH4
	add	x24, x24, #32
	mov	x0, x25
	mov	x1, x26
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	mov	x6, x24
	mov	x7, x19
	bl	_ST_D4
	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, x25
	mov	x5, x26
	bl	_ILVR_B2_SH
	lsl	w22, w22, #12
	lsl	w23, w23, #12
	add	x24, x24, x28
	mov	x4, x24
	mov	x5, x19
	bl	_ST_SH4
	add	x24, x24, #32
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	mov	x6, x24
	mov	x7, x19
	bl	_ST_D4
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x21, x21, x8
	add	x24, x24, x28
	cbnz	w27, 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_copy_12w_msa
.subsections_via_symbols
