	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_bytes_unaligned
_copy_bytes_unaligned:                  ## @copy_bytes_unaligned
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r8d
	movl	%ecx, %r10d
	andl	$7, %r10d
	movl	$-1, %r9d
	movl	%r10d, %ecx
	shll	%cl, %r9d
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.1:
	notl	%r9d
	leal	7(%r8), %eax
	testl	%r8d, %r8d
	cmovnsl	%r8d, %eax
	sarl	$3, %eax
	movslq	%eax, %r11
	movl	$8, %r8d
	subl	%r10d, %r8d
	cmpq	$4, %rdx
	jb	LBB0_2
## %bb.3:
	leaq	(%r11,%rdx), %rax
	leaq	(%rsi,%rax,4), %rax
	addq	$4, %rax
	cmpq	%rdi, %rax
	jbe	LBB0_6
## %bb.4:
	leaq	(%rdi,%rdx,4), %rax
	leaq	(%rsi,%r11,4), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_6
LBB0_2:
	xorl	%eax, %eax
LBB0_12:
	movq	%rax, %r12
	notq	%r12
	testb	$1, %dl
	je	LBB0_14
## %bb.13:
	leaq	(%rax,%r11), %r14
	movl	(%rsi,%r14,4), %r15d
	movl	%r10d, %ecx
	shll	%cl, %r15d
	movl	%r15d, (%rdi,%rax,4)
	movl	4(%rsi,%r14,4), %ebx
	movl	%r8d, %ecx
	sarl	%cl, %ebx
	andl	%r9d, %ebx
	orl	%r15d, %ebx
	movl	%ebx, (%rdi,%rax,4)
	orq	$1, %rax
LBB0_14:
	addq	%rdx, %r12
	je	LBB0_17
## %bb.15:
	leaq	(%rsi,%r11,4), %r11
	addq	$8, %r11
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	-8(%r11,%rax,4), %ebx
	movl	%r10d, %ecx
	shll	%cl, %ebx
	movl	%ebx, (%rdi,%rax,4)
	movl	-4(%r11,%rax,4), %esi
	movl	%r8d, %ecx
	sarl	%cl, %esi
	andl	%r9d, %esi
	orl	%ebx, %esi
	movl	%esi, (%rdi,%rax,4)
	movl	-4(%r11,%rax,4), %esi
	movl	%r10d, %ecx
	shll	%cl, %esi
	movl	%esi, 4(%rdi,%rax,4)
	movl	(%r11,%rax,4), %ebx
	movl	%r8d, %ecx
	sarl	%cl, %ebx
	andl	%r9d, %ebx
	orl	%esi, %ebx
	movl	%ebx, 4(%rdi,%rax,4)
	addq	$2, %rax
	cmpq	%rax, %rdx
	jne	LBB0_16
	jmp	LBB0_17
LBB0_6:
	movq	%rdx, %rax
	andq	$-4, %rax
	movd	%r10d, %xmm1
	movd	%r8d, %xmm3
	movd	%r9d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-4(%rax), %rcx
	movq	%rcx, %r14
	shrq	$2, %r14
	incq	%r14
	pmovzxdq	%xmm1, %xmm2                    ## xmm2 = xmm1[0],zero,xmm1[1],zero
	pmovzxdq	%xmm3, %xmm1                    ## xmm1 = xmm3[0],zero,xmm3[1],zero
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.7:
	movq	%r14, %rbx
	andq	$-2, %rbx
	leaq	(%rsi,%r11,4), %r15
	addq	$20, %r15
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-20(%r15,%rcx,4), %xmm3
	pslld	%xmm2, %xmm3
	movdqu	%xmm3, (%rdi,%rcx,4)
	movdqu	-16(%r15,%rcx,4), %xmm4
	psrad	%xmm1, %xmm4
	pand	%xmm0, %xmm4
	por	%xmm3, %xmm4
	movdqu	%xmm4, (%rdi,%rcx,4)
	movdqu	-4(%r15,%rcx,4), %xmm3
	pslld	%xmm2, %xmm3
	movdqu	%xmm3, 16(%rdi,%rcx,4)
	movdqu	(%r15,%rcx,4), %xmm4
	psrad	%xmm1, %xmm4
	pand	%xmm0, %xmm4
	por	%xmm3, %xmm4
	movdqu	%xmm4, 16(%rdi,%rcx,4)
	addq	$8, %rcx
	addq	$-2, %rbx
	jne	LBB0_8
## %bb.9:
	testb	$1, %r14b
	je	LBB0_11
LBB0_10:
	leaq	(%rcx,%r11), %rbx
	movdqu	(%rsi,%rbx,4), %xmm3
	pslld	%xmm2, %xmm3
	movdqu	%xmm3, (%rdi,%rcx,4)
	movdqu	4(%rsi,%rbx,4), %xmm2
	psrad	%xmm1, %xmm2
	pand	%xmm0, %xmm2
	por	%xmm3, %xmm2
	movdqu	%xmm2, (%rdi,%rcx,4)
LBB0_11:
	cmpq	%rdx, %rax
	jne	LBB0_12
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%ecx, %ecx
	testb	$1, %r14b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_copy_bytes_unaligned
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_bytes_unaligned
_copy_bytes_unaligned:                  ; @copy_bytes_unaligned
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_9
; %bb.1:
	and	w8, w3, #0x7
	mov	w9, #-1
	lsl	w9, w9, w8
	mvn	w9, w9
	add	w10, w3, #7
	cmp	w3, #0
	csel	w10, w10, w3, lt
	sbfx	x11, x10, #3, #29
	mov	w10, #8
	sub	w10, w10, w8
	cmp	x2, #8
	b.lo	LBB0_6
; %bb.2:
	add	x12, x0, x2, lsl #2
	add	x14, x1, x11, lsl #2
	add	x13, x11, x2
	add	x13, x1, x13, lsl #2
	add	x13, x13, #4
	cmp	x13, x0
	ccmp	x14, x12, #2, hi
	b.lo	LBB0_6
; %bb.3:
	and	x12, x2, #0xfffffffffffffff8
	dup.4s	v0, w8
	dup.4s	v2, w10
	dup.4s	v1, w9
	add	x13, x0, #16
	add	x14, x14, #16
	neg.4s	v2, v2
	mov	x15, x12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q3, q4, [x14, #-16]
	ushl.4s	v3, v3, v0
	ushl.4s	v4, v4, v0
	ldur	q5, [x14, #-12]
	ldur	q6, [x14, #4]
	sshl.4s	v5, v5, v2
	sshl.4s	v6, v6, v2
	and.16b	v5, v5, v1
	and.16b	v6, v6, v1
	orr.16b	v3, v5, v3
	orr.16b	v4, v6, v4
	stp	q3, q4, [x13, #-16]
	add	x13, x13, #32
	add	x14, x14, #32
	subs	x15, x15, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x12, x2
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	x12, #0
LBB0_7:
	sub	x13, x2, x12
	add	x14, x0, x12, lsl #2
	add	x11, x12, x11
	add	x11, x1, x11, lsl #2
	add	x11, x11, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x11, #-4]
	lsl	w12, w12, w8
	str	w12, [x14]
	ldr	w15, [x11], #4
	asr	w15, w15, w10
	and	w15, w15, w9
	orr	w12, w15, w12
	str	w12, [x14], #4
	subs	x13, x13, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_copy_bytes_unaligned
.subsections_via_symbols
