	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function swap_copy
LCPI0_0:
	.byte	15                              ## 0xf
	.byte	14                              ## 0xe
	.byte	13                              ## 0xd
	.byte	12                              ## 0xc
	.byte	11                              ## 0xb
	.byte	10                              ## 0xa
	.byte	9                               ## 0x9
	.byte	8                               ## 0x8
	.byte	7                               ## 0x7
	.byte	6                               ## 0x6
	.byte	5                               ## 0x5
	.byte	4                               ## 0x4
	.byte	3                               ## 0x3
	.byte	2                               ## 0x2
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
LCPI0_1:
	.byte	7                               ## 0x7
	.byte	6                               ## 0x6
	.byte	5                               ## 0x5
	.byte	4                               ## 0x4
	.byte	3                               ## 0x3
	.byte	2                               ## 0x2
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_swap_copy:                             ## @swap_copy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	testq	%rdx, %rdx
	je	LBB0_25
## %bb.1:
	cmpq	$8, %rdx
	jb	LBB0_2
## %bb.3:
	leaq	(%rsi,%rdx), %rax
	cmpq	%rdi, %rax
	jbe	LBB0_6
## %bb.4:
	leaq	(%rdi,%rdx), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_6
LBB0_2:
	xorl	%ebx, %ebx
LBB0_18:
	movq	%rbx, %r8
	notq	%r8
	addq	%rdx, %r8
	movq	%rdx, %r10
	andq	$3, %r10
	je	LBB0_22
## %bb.19:
	leaq	(%rdi,%rbx), %r9
	negq	%rbx
	leaq	(%rdx,%rsi), %r11
	decq	%r11
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r11,%rbx), %eax
	movb	%al, (%r9,%rcx)
	incq	%rcx
	decq	%rbx
	cmpq	%rcx, %r10
	jne	LBB0_20
## %bb.21:
	negq	%rbx
LBB0_22:
	cmpq	$3, %r8
	jb	LBB0_25
## %bb.23:
	subq	%rbx, %rdx
	leaq	(%rbx,%rdi), %rax
	addq	$3, %rax
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rsi,%rdx), %ecx
	movb	%cl, -3(%rax)
	movzbl	-2(%rsi,%rdx), %ecx
	movb	%cl, -2(%rax)
	movzbl	-3(%rsi,%rdx), %ecx
	movb	%cl, -1(%rax)
	movzbl	-4(%rsi,%rdx), %ecx
	movb	%cl, (%rax)
	addq	$4, %rax
	addq	$-4, %rdx
	jne	LBB0_24
LBB0_25:
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	cmpq	$32, %rdx
	jae	LBB0_8
## %bb.7:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_8:
	movq	%rdx, %rbx
	andq	$-32, %rbx
	leaq	-32(%rbx), %rax
	movq	%rax, %r8
	shrq	$5, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_26
## %bb.9:
	movq	%r8, %r9
	andq	$-2, %r9
	leaq	48(%rdi), %rcx
	leaq	(%rdx,%rsi), %r11
	addq	$-16, %r11
	xorl	%r10d, %r10d
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%r11,%r10), %xmm1
	movdqu	(%r11,%r10), %xmm2
	pshufb	%xmm0, %xmm2
	pshufb	%xmm0, %xmm1
	movdqu	%xmm2, -48(%rcx)
	movdqu	%xmm1, -32(%rcx)
	movdqu	-48(%r11,%r10), %xmm1
	movdqu	-32(%r11,%r10), %xmm2
	pshufb	%xmm0, %xmm2
	pshufb	%xmm0, %xmm1
	movdqu	%xmm2, -16(%rcx)
	movdqu	%xmm1, (%rcx)
	addq	$64, %rcx
	addq	$-64, %r10
	addq	$-2, %r9
	jne	LBB0_10
## %bb.11:
	negq	%r10
	testb	$1, %r8b
	je	LBB0_13
LBB0_12:
	movq	%r10, %rax
	notq	%rax
	addq	%rdx, %rax
	movdqu	-31(%rsi,%rax), %xmm0
	movdqu	-15(%rsi,%rax), %xmm1
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]
	pshufb	%xmm2, %xmm1
	pshufb	%xmm2, %xmm0
	movdqu	%xmm1, (%rdi,%r10)
	movdqu	%xmm0, 16(%rdi,%r10)
LBB0_13:
	cmpq	%rdx, %rbx
	je	LBB0_25
## %bb.14:
	testb	$24, %dl
	je	LBB0_18
LBB0_15:
	movq	%rbx, %rcx
	movq	%rdx, %rbx
	andq	$-8, %rbx
	movq	%rdx, %rax
	subq	%rcx, %rax
	addq	%rsi, %rax
	addq	$-8, %rax
	movdqa	LCPI0_1(%rip), %xmm0            ## xmm0 = <7,6,5,4,3,2,1,0,u,u,u,u,u,u,u,u>
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	pshufb	%xmm0, %xmm1
	movq	%xmm1, (%rdi,%rcx)
	addq	$8, %rcx
	addq	$-8, %rax
	cmpq	%rcx, %rbx
	jne	LBB0_16
## %bb.17:
	cmpq	%rdx, %rbx
	je	LBB0_25
	jmp	LBB0_18
LBB0_26:
	xorl	%r10d, %r10d
	testb	$1, %r8b
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_swap_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swap_copy
_swap_copy:                             ; @swap_copy
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_7
; %bb.1:
	cmp	x2, #8
	b.lo	LBB0_4
; %bb.2:
	add	x8, x1, x2
	cmp	x8, x0
	b.ls	LBB0_8
; %bb.3:
	add	x8, x0, x2
	cmp	x8, x1
	b.ls	LBB0_8
LBB0_4:
	mov	x8, #0
LBB0_5:
	sub	x9, x2, x8
	add	x8, x0, x8
	sub	x10, x1, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x10, x9]
	strb	w11, [x8], #1
	subs	x9, x9, #1
	b.ne	LBB0_6
LBB0_7:
	ret
LBB0_8:
	and	x8, x2, #0xfffffffffffffff8
	sub	x9, x1, #8
	mov	x10, x8
	mov	x11, x0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x9, x2]
	rev64.8b	v0, v0
	str	d0, [x11], #8
	sub	x9, x9, #8
	subs	x10, x10, #8
	b.ne	LBB0_9
; %bb.10:
	cmp	x8, x2
	b.eq	LBB0_7
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_swap_copy
.subsections_via_symbols
