	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exch
_exch:                                  ## @exch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.1:
	movq	%rcx, %r11
	imulq	%rsi, %r11
	leaq	(%rdi,%r11), %r8
	movq	%rdx, %r14
	imulq	%rsi, %r14
	leaq	(%rdi,%r14), %r9
	cmpq	$8, %rsi
	jb	LBB0_2
## %bb.3:
	incq	%rcx
	imulq	%rsi, %rcx
	addq	%rdi, %rcx
	cmpq	%rcx, %r9
	jae	LBB0_5
## %bb.4:
	incq	%rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	cmpq	%rdx, %r8
	jae	LBB0_5
LBB0_2:
	movq	%rsi, %r10
	movq	%r8, %rdi
	movq	%r9, %rax
LBB0_10:
	leaq	-1(%r10), %r8
	movq	%r10, %rcx
	andq	$3, %rcx
	je	LBB0_14
## %bb.11:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax,%rsi), %ebx
	movzbl	(%rdi,%rsi), %edx
	movb	%dl, (%rax,%rsi)
	movb	%bl, (%rdi,%rsi)
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_12
## %bb.13:
	subq	%rsi, %r10
	addq	%rsi, %rdi
	addq	%rsi, %rax
LBB0_14:
	cmpq	$3, %r8
	jb	LBB0_17
## %bb.15:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax,%rdx), %ecx
	movzbl	(%rdi,%rdx), %ebx
	movb	%bl, (%rax,%rdx)
	movb	%cl, (%rdi,%rdx)
	movzbl	1(%rax,%rdx), %ecx
	movzbl	1(%rdi,%rdx), %ebx
	movb	%bl, 1(%rax,%rdx)
	movb	%cl, 1(%rdi,%rdx)
	movzbl	2(%rax,%rdx), %ecx
	movzbl	2(%rdi,%rdx), %ebx
	movb	%bl, 2(%rax,%rdx)
	movb	%cl, 2(%rdi,%rdx)
	movzbl	3(%rax,%rdx), %ecx
	movzbl	3(%rdi,%rdx), %ebx
	movb	%bl, 3(%rax,%rdx)
	movb	%cl, 3(%rdi,%rdx)
	addq	$4, %rdx
	cmpq	%rdx, %r10
	jne	LBB0_16
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	cmpq	$32, %rsi
	jae	LBB0_18
## %bb.6:
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_18:
	movq	%rsi, %rdx
	andq	$-32, %rdx
	leaq	-32(%rdx), %rax
	movq	%rax, %r10
	shrq	$5, %r10
	incq	%r10
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	%r10, %rbx
	andq	$-2, %rbx
	leaq	(%r11,%rdi), %rax
	addq	$48, %rax
	addq	%r14, %rdi
	addq	$48, %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movups	-48(%rdi,%rcx), %xmm0
	movups	-32(%rdi,%rcx), %xmm1
	movups	-48(%rax,%rcx), %xmm2
	movups	-32(%rax,%rcx), %xmm3
	movups	%xmm2, -48(%rdi,%rcx)
	movups	%xmm3, -32(%rdi,%rcx)
	movups	%xmm0, -48(%rax,%rcx)
	movups	%xmm1, -32(%rax,%rcx)
	movups	-16(%rdi,%rcx), %xmm0
	movups	(%rdi,%rcx), %xmm1
	movups	-16(%rax,%rcx), %xmm2
	movups	(%rax,%rcx), %xmm3
	movups	%xmm2, -16(%rdi,%rcx)
	movups	%xmm3, (%rdi,%rcx)
	movups	%xmm0, -16(%rax,%rcx)
	movups	%xmm1, (%rax,%rcx)
	addq	$64, %rcx
	addq	$-2, %rbx
	jne	LBB0_21
## %bb.22:
	testb	$1, %r10b
	je	LBB0_24
LBB0_23:
	movups	(%r9,%rcx), %xmm0
	movups	16(%r9,%rcx), %xmm1
	movups	(%r8,%rcx), %xmm2
	movups	16(%r8,%rcx), %xmm3
	movups	%xmm2, (%r9,%rcx)
	movups	%xmm3, 16(%r9,%rcx)
	movups	%xmm0, (%r8,%rcx)
	movups	%xmm1, 16(%r8,%rcx)
LBB0_24:
	cmpq	%rsi, %rdx
	je	LBB0_17
## %bb.25:
	testb	$24, %sil
	je	LBB0_26
LBB0_7:
	movq	%rsi, %r11
	andq	$-8, %r11
	movl	%esi, %r10d
	andl	$7, %r10d
	leaq	(%r8,%r11), %rdi
	leaq	(%r9,%r11), %rax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%rdx), %rcx
	movq	(%r8,%rdx), %rbx
	movq	%rbx, (%r9,%rdx)
	movq	%rcx, (%r8,%rdx)
	addq	$8, %rdx
	cmpq	%rdx, %r11
	jne	LBB0_8
## %bb.9:
	cmpq	%rsi, %r11
	jne	LBB0_10
	jmp	LBB0_17
LBB0_19:
	xorl	%ecx, %ecx
	testb	$1, %r10b
	jne	LBB0_23
	jmp	LBB0_24
LBB0_26:
	addq	%rdx, %r9
	addq	%rdx, %r8
	andl	$31, %esi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_exch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exch
_exch:                                  ; @exch
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_16
; %bb.1:
	mul	x11, x3, x1
	add	x8, x0, x11
	mul	x12, x2, x1
	add	x9, x0, x12
	cmp	x1, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x10, x1
	b	LBB0_15
LBB0_3:
	madd	x10, x1, x2, x1
	add	x10, x0, x10
	madd	x13, x1, x3, x1
	add	x13, x0, x13
	cmp	x9, x13
	ccmp	x8, x10, #2, lo
	b.lo	LBB0_6
; %bb.4:
	cmp	x1, #32
	b.hs	LBB0_7
; %bb.5:
	mov	x13, #0
	b	LBB0_11
LBB0_6:
	mov	x10, x1
	b	LBB0_15
LBB0_7:
	and	x13, x1, #0xffffffffffffffe0
	add	x10, x12, x0
	add	x10, x10, #16
	add	x14, x11, x0
	add	x14, x14, #16
	mov	x15, x13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x10, #-16]
	ldp	q2, q3, [x14, #-16]
	stp	q2, q3, [x10, #-16]
	stp	q0, q1, [x14, #-16]
	add	x10, x10, #32
	add	x14, x14, #32
	subs	x15, x15, #32
	b.ne	LBB0_8
; %bb.9:
	cmp	x13, x1
	b.eq	LBB0_16
; %bb.10:
	tst	x1, #0x18
	b.eq	LBB0_14
LBB0_11:
	and	x14, x1, #0xfffffffffffffff8
	and	x10, x1, #0x7
	add	x8, x8, x14
	add	x9, x9, x14
	add	x12, x13, x12
	add	x12, x0, x12
	add	x11, x13, x11
	add	x11, x0, x11
	sub	x13, x13, x14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x12]
	ldr	d1, [x11]
	str	d1, [x12], #8
	str	d0, [x11], #8
	adds	x13, x13, #8
	b.ne	LBB0_12
; %bb.13:
	cmp	x14, x1
	b.ne	LBB0_15
	b	LBB0_16
LBB0_14:
	add	x9, x9, x13
	add	x8, x8, x13
	and	x10, x1, #0x1f
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x9]
	ldrb	w12, [x8]
	strb	w12, [x9], #1
	strb	w11, [x8], #1
	subs	x10, x10, #1
	b.ne	LBB0_15
LBB0_16:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_exch
.subsections_via_symbols
