	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swapfunc
_swapfunc:                              ## @swapfunc
	.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
	cmpq	$8, %rdx
	jb	LBB0_1
## %bb.2:
	leaq	(%rsi,%rdx), %rax
	cmpq	%rdi, %rax
	jbe	LBB0_4
## %bb.3:
	leaq	(%rdi,%rdx), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_4
LBB0_1:
	movq	%rsi, %rax
	movq	%rdx, %r8
	movq	%rdi, %rcx
LBB0_9:
	leaq	-1(%r8), %r9
	movq	%r8, %rdi
	andq	$3, %rdi
	je	LBB0_13
## %bb.10:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx,%rsi), %ebx
	movzbl	(%rax,%rsi), %edx
	movb	%dl, (%rcx,%rsi)
	movb	%bl, (%rax,%rsi)
	incq	%rsi
	cmpq	%rsi, %rdi
	jne	LBB0_11
## %bb.12:
	addq	%rsi, %rax
	subq	%rsi, %r8
	addq	%rsi, %rcx
LBB0_13:
	cmpq	$3, %r9
	jb	LBB0_16
## %bb.14:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx,%rdx), %esi
	movzbl	(%rax,%rdx), %ebx
	movb	%bl, (%rcx,%rdx)
	movb	%sil, (%rax,%rdx)
	movzbl	1(%rcx,%rdx), %esi
	movzbl	1(%rax,%rdx), %ebx
	movb	%bl, 1(%rcx,%rdx)
	movb	%sil, 1(%rax,%rdx)
	movzbl	2(%rcx,%rdx), %esi
	movzbl	2(%rax,%rdx), %ebx
	movb	%bl, 2(%rcx,%rdx)
	movb	%sil, 2(%rax,%rdx)
	movzbl	3(%rcx,%rdx), %esi
	movzbl	3(%rax,%rdx), %ebx
	movb	%bl, 3(%rcx,%rdx)
	movb	%sil, 3(%rax,%rdx)
	addq	$4, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_15
LBB0_16:
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	cmpq	$32, %rdx
	jae	LBB0_17
## %bb.5:
	xorl	%r9d, %r9d
	jmp	LBB0_6
LBB0_17:
	movq	%rdx, %r9
	andq	$-32, %r9
	leaq	-32(%r9), %rax
	movq	%rax, %r8
	shrq	$5, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	%r8, %rcx
	andq	$-2, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rdi,%rax), %xmm0
	movups	16(%rdi,%rax), %xmm1
	movups	(%rsi,%rax), %xmm2
	movups	16(%rsi,%rax), %xmm3
	movups	%xmm2, (%rdi,%rax)
	movups	%xmm3, 16(%rdi,%rax)
	movups	%xmm0, (%rsi,%rax)
	movups	%xmm1, 16(%rsi,%rax)
	movups	32(%rdi,%rax), %xmm0
	movups	48(%rdi,%rax), %xmm1
	movups	32(%rsi,%rax), %xmm2
	movups	48(%rsi,%rax), %xmm3
	movups	%xmm2, 32(%rdi,%rax)
	movups	%xmm3, 48(%rdi,%rax)
	movups	%xmm0, 32(%rsi,%rax)
	movups	%xmm1, 48(%rsi,%rax)
	addq	$64, %rax
	addq	$-2, %rcx
	jne	LBB0_20
## %bb.21:
	testb	$1, %r8b
	je	LBB0_23
LBB0_22:
	movups	(%rdi,%rax), %xmm0
	movups	16(%rdi,%rax), %xmm1
	movups	(%rsi,%rax), %xmm2
	movups	16(%rsi,%rax), %xmm3
	movups	%xmm2, (%rdi,%rax)
	movups	%xmm3, 16(%rdi,%rax)
	movups	%xmm0, (%rsi,%rax)
	movups	%xmm1, 16(%rsi,%rax)
LBB0_23:
	cmpq	%rdx, %r9
	je	LBB0_16
## %bb.24:
	testb	$24, %dl
	je	LBB0_25
LBB0_6:
	movq	%rdx, %r10
	andq	$-8, %r10
	leaq	(%rsi,%r10), %rax
	movl	%edx, %r8d
	andl	$7, %r8d
	leaq	(%rdi,%r10), %rcx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%r9), %r11
	movq	(%rsi,%r9), %rbx
	movq	%rbx, (%rdi,%r9)
	movq	%r11, (%rsi,%r9)
	addq	$8, %r9
	cmpq	%r9, %r10
	jne	LBB0_7
## %bb.8:
	cmpq	%rdx, %r10
	jne	LBB0_9
	jmp	LBB0_16
LBB0_18:
	xorl	%eax, %eax
	testb	$1, %r8b
	jne	LBB0_22
	jmp	LBB0_23
LBB0_25:
	addq	%r9, %rdi
	andl	$31, %edx
	addq	%r9, %rsi
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_swapfunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swapfunc
_swapfunc:                              ; @swapfunc
	.cfi_startproc
; %bb.0:
	cmp	x2, #8
	b.lo	LBB0_3
; %bb.1:
	add	x8, x1, x2
	cmp	x8, x0
	b.ls	LBB0_6
; %bb.2:
	add	x8, x0, x2
	cmp	x8, x1
	b.ls	LBB0_6
LBB0_3:
	mov	x8, x1
	mov	x9, x2
	mov	x10, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x10]
	ldrb	w12, [x8]
	strb	w12, [x10], #1
	strb	w11, [x8], #1
	subs	x9, x9, #1
	b.ne	LBB0_4
LBB0_5:
	ret
LBB0_6:
	cmp	x2, #32
	b.hs	LBB0_8
; %bb.7:
	mov	x11, #0
	b	LBB0_12
LBB0_8:
	and	x11, x2, #0xffffffffffffffe0
	add	x8, x0, #16
	add	x9, x1, #16
	mov	x10, x11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x8, #-16]
	ldp	q2, q3, [x9, #-16]
	stp	q2, q3, [x8, #-16]
	stp	q0, q1, [x9, #-16]
	add	x8, x8, #32
	add	x9, x9, #32
	subs	x10, x10, #32
	b.ne	LBB0_9
; %bb.10:
	cmp	x11, x2
	b.eq	LBB0_5
; %bb.11:
	tst	x2, #0x18
	b.eq	LBB0_15
LBB0_12:
	and	x12, x2, #0xfffffffffffffff8
	add	x8, x1, x12
	and	x9, x2, #0x7
	add	x10, x0, x12
	add	x13, x0, x11
	add	x14, x1, x11
	sub	x11, x11, x12
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x13]
	ldr	d1, [x14]
	str	d1, [x13], #8
	str	d0, [x14], #8
	adds	x11, x11, #8
	b.ne	LBB0_13
; %bb.14:
	cmp	x12, x2
	b.ne	LBB0_4
	b	LBB0_5
LBB0_15:
	add	x10, x0, x11
	and	x9, x2, #0x1f
	add	x8, x1, x11
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_swapfunc
.subsections_via_symbols
