	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_width8_msa
_copy_width8_msa:                       ## @copy_width8_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 $r8d killed $r8d def $r8
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rdx, %rbx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r15
	imull	$-1431655765, %r8d, %eax        ## imm = 0xAAAAAAAB
	addl	$715827880, %eax                ## imm = 0x2AAAAAA8
	rorl	$2, %eax
	cmpl	$357913940, %eax                ## imm = 0x15555554
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	jbe	LBB0_1
## %bb.4:
	testb	$7, %r8b
	je	LBB0_5
## %bb.8:
	testb	$3, %r8b
	je	LBB0_9
## %bb.12:
	testb	$1, %r8b
	jne	LBB0_16
## %bb.13:
	cmpl	$2, %r8d
	jb	LBB0_16
## %bb.14:
	movl	%r8d, %r13d
	shrl	$31, %r13d
	addl	%r8d, %r13d
	sarl	%r13d
	leal	(%rsi,%rsi), %eax
	cltq
	movslq	%ecx, %rcx
	shlq	$2, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_UB2
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r14d
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r12d
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_SD
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %rsi
	movl	%r12d, %edi
	callq	_SD
	addq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	addq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	decl	%r13d
	jne	LBB0_15
	jmp	LBB0_16
LBB0_1:
	leal	11(%r8), %eax
	cmpl	$23, %eax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jb	LBB0_16
## %bb.2:
	movslq	%r8d, %rax
	imulq	$715827883, %rax, %rcx          ## imm = 0x2AAAAAAB
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$33, %rcx
	addl	%eax, %ecx
	leal	(,%rsi,8), %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	movslq	%eax, %rdi
	leal	(,%rsi,4), %eax
	cltq
	shlq	$2, %rax
	leaq	(%rax,%rdx,4), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	shlq	$2, %rdi
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_UB8
	movq	-112(%rbp), %rax                ## 8-byte Reload
	addq	%r15, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r14d
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r15d
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r12d
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r13d
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movq	%rbx, %r8
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %r9d
	callq	_SD4
	movq	-104(%rbp), %r14                ## 8-byte Reload
	addq	%r14, %rbx
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	movl	-120(%rbp), %esi                ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movq	%rbx, %r8
	movl	%r15d, %r9d
	callq	_SD4
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_UB4
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r12d
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r13d
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	addq	%r14, %rbx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	movq	%rbx, %r8
	movl	%r15d, %r9d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	callq	_SD4
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	-128(%rbp), %r15                ## 8-byte Folded Reload
	addq	%r14, %rbx
	decl	%ecx
	jne	LBB0_3
	jmp	LBB0_16
LBB0_5:
	cmpl	$8, %r8d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jb	LBB0_16
## %bb.6:
	sarl	$3, %r8d
	leal	(,%rsi,8), %eax
	movslq	%eax, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	cltq
	shlq	$2, %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	leaq	(,%rax,8), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%r15, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_UB8
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r14d
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r12d
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r13d
	movl	%r14d, %edi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	movq	%rbx, %r8
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %r9d
	callq	_SD4
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leaq	(%rbx,%rax), %r8
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%r14d, %r9d
	callq	_SD4
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	addq	-120(%rbp), %r15                ## 8-byte Folded Reload
	addq	-104(%rbp), %rbx                ## 8-byte Folded Reload
	decl	%r8d
	jne	LBB0_7
	jmp	LBB0_16
LBB0_9:
	cmpl	$4, %r8d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jb	LBB0_16
## %bb.10:
	leal	3(%r8), %r14d
	testl	%r8d, %r8d
	cmovnsl	%r8d, %r14d
	sarl	$2, %r14d
	leal	(,%rsi,4), %eax
	movslq	%eax, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	cltq
	shlq	$2, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_UB4
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r12d
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r13d
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	movq	%rbx, %r8
	movq	-48(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_SD4
	addq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	decl	%r14d
	jne	LBB0_11
LBB0_16:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_copy_width8_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_width8_msa
_copy_width8_msa:                       ; @copy_width8_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
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x22, x2
	mov	x27, x1
	mov	x20, x0
	mov	w8, #43691
	movk	w8, #10922, lsl #16
	smull	x8, w4, w8
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w24, w8, w9
	mov	w8, #12
	msub	w8, w24, w8, w4
	str	w1, [sp, #60]                   ; 4-byte Folded Spill
	cbz	w8, LBB0_7
; %bb.1:
	tst	w4, #0x7
	b.eq	LBB0_10
; %bb.2:
	tst	w4, #0x3
	b.eq	LBB0_13
; %bb.3:
	tbnz	w4, #0, LBB0_16
; %bb.4:
	cmp	w4, #2
	b.lo	LBB0_16
; %bb.5:
	cmp	w4, #0
	cinc	w8, w4, lt
	asr	w23, w8, #1
	lsl	w8, w27, #1
	sbfiz	x24, x8, #2, #32
	sbfiz	x25, x3, #3, #32
	sbfiz	x26, x3, #2, #32
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	w23, w23, #1
	mov	x0, x20
	mov	x1, x27
	bl	_LD_UB2
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x19, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x21, x0
	mov	x0, x19
	mov	x1, x22
	bl	_SD
	add	x1, x22, x26
	mov	x0, x21
	bl	_SD
	add	x20, x20, x24
	add	x22, x22, x25
	cbnz	w23, LBB0_6
	b	LBB0_16
LBB0_7:
	add	w8, w4, #11
	cmp	w8, #23
	str	x3, [sp, #48]                   ; 8-byte Folded Spill
	b.lo	LBB0_16
; %bb.8:
	lsl	w8, w27, #3
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	lsl	w9, w9, #2
	lsl	w10, w27, #2
	sbfiz	x8, x8, #2, #32
	sbfiz	x9, x9, #2, #32
	stp	x9, x8, [sp, #32]               ; 16-byte Folded Spill
	add	x8, x8, w10, sxtw #2
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sub	w24, w24, #1
	mov	x0, x20
	mov	x1, x27
	bl	_LD_UB8
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x8, x20, x8
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
	mov	w1, #0
	bl	___msa_copy_u_d
	str	w0, [sp, #64]                   ; 4-byte Folded Spill
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x25, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x26, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x27, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x28, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x19, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x21, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x23, x0
	mov	x1, x25
	mov	x2, x26
	mov	x3, x27
	ldp	w27, w0, [sp, #60]              ; 8-byte Folded Reload
	mov	x4, x22
	ldr	x25, [sp, #48]                  ; 8-byte Folded Reload
	mov	x5, x25
	bl	_SD4
	ldr	x26, [sp, #32]                  ; 8-byte Folded Reload
	add	x22, x22, x26
	mov	x0, x28
	mov	x1, x19
	mov	x2, x21
	mov	x3, x23
	mov	x4, x22
	mov	x5, x25
	bl	_SD4
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	mov	x1, x27
	bl	_LD_UB4
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x19, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x21, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x23, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x3, x0
	add	x22, x22, x26
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x4, x22
	mov	x5, x25
	bl	_SD4
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	add	x22, x22, x26
	cbnz	w24, LBB0_9
	b	LBB0_16
LBB0_10:
	cmp	w4, #8
	str	x3, [sp, #48]                   ; 8-byte Folded Spill
	b.lo	LBB0_16
; %bb.11:
	asr	w19, w4, #3
	lsl	w8, w27, #3
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	lsl	w9, w9, #2
	sbfiz	x8, x8, #2, #32
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	sbfiz	x10, x9, #3, #32
	sbfiz	x8, x9, #2, #32
	stp	x8, x10, [sp, #32]              ; 16-byte Folded Spill
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	sub	w19, w19, #1
	mov	x0, x20
	mov	x1, x27
	bl	_LD_UB8
	mov	w1, #0
	bl	___msa_copy_u_d
	str	w0, [sp, #72]                   ; 4-byte Folded Spill
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x21, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x23, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x24, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x25, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x26, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x27, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x28, x0
	ldr	w0, [sp, #72]                   ; 4-byte Folded Reload
	mov	x1, x21
	mov	x2, x23
	mov	x3, x24
	mov	x4, x22
	ldr	x21, [sp, #48]                  ; 8-byte Folded Reload
	mov	x5, x21
	bl	_SD4
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x4, x22, x8
	mov	x0, x25
	mov	x1, x26
	mov	x2, x27
	ldr	w27, [sp, #60]                  ; 4-byte Folded Reload
	mov	x3, x28
	mov	x5, x21
	bl	_SD4
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x22, x22, x8
	cbnz	w19, LBB0_12
	b	LBB0_16
LBB0_13:
	cmp	w4, #4
	b.lo	LBB0_16
; %bb.14:
	mov	x28, x3
	add	w8, w4, #3
	cmp	w4, #0
	csel	w8, w8, w4, lt
	asr	w24, w8, #2
	lsl	w8, w27, #2
	lsl	w9, w28, #2
	sbfiz	x25, x8, #2, #32
	sbfiz	x26, x9, #2, #32
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	sub	w24, w24, #1
	mov	x0, x20
	mov	x1, x27
	bl	_LD_UB4
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x19, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x21, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x23, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x4, x22
	mov	x5, x28
	bl	_SD4
	add	x20, x20, x25
	add	x22, x22, x26
	cbnz	w24, LBB0_15
LBB0_16:
	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	_copy_width8_msa
.subsections_via_symbols
