	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function swapbytes
LCPI0_0:
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	3                               ## 0x3
	.byte	2                               ## 0x2
	.byte	5                               ## 0x5
	.byte	4                               ## 0x4
	.byte	7                               ## 0x7
	.byte	6                               ## 0x6
	.byte	9                               ## 0x9
	.byte	8                               ## 0x8
	.byte	11                              ## 0xb
	.byte	10                              ## 0xa
	.byte	13                              ## 0xd
	.byte	12                              ## 0xc
	.byte	15                              ## 0xf
	.byte	14                              ## 0xe
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_swapbytes:                             ## @swapbytes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$2, %rsi
	jb	LBB0_11
## %bb.1:
	leaq	-2(%rsi), %rax
	cmpq	$14, %rax
	jb	LBB0_10
## %bb.2:
	shrq	%rax
	incq	%rax
	movq	%rax, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rcx
	movq	%rcx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movq	%r9, %rdx
	andq	$-2, %rdx
	xorl	%ecx, %ecx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,0,3,2,5,4,7,6,9,8,11,10,13,12,15,14]
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rcx), %xmm1
	movdqu	16(%rdi,%rcx), %xmm2
	pshufb	%xmm0, %xmm1
	movdqu	%xmm1, (%rdi,%rcx)
	pshufb	%xmm0, %xmm2
	movdqu	%xmm2, 16(%rdi,%rcx)
	addq	$32, %rcx
	addq	$-2, %rdx
	jne	LBB0_5
## %bb.6:
	testb	$1, %r9b
	je	LBB0_8
LBB0_7:
	movdqu	(%rdi,%rcx), %xmm0
	pshufb	LCPI0_0(%rip), %xmm0            ## xmm0 = xmm0[1,0,3,2,5,4,7,6,9,8,11,10,13,12,15,14]
	movdqu	%xmm0, (%rdi,%rcx)
LBB0_8:
	cmpq	%r8, %rax
	je	LBB0_11
## %bb.9:
	subq	%r8, %rsi
	subq	%r8, %rsi
	leaq	(%rdi,%r8,2), %rdi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	rolw	$8, (%rdi)
	addq	$-2, %rsi
	addq	$2, %rdi
	cmpq	$1, %rsi
	ja	LBB0_10
LBB0_11:
	popq	%rbp
	retq
LBB0_3:
	xorl	%ecx, %ecx
	testb	$1, %r9b
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_swapbytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swapbytes
_swapbytes:                             ; @swapbytes
	.cfi_startproc
; %bb.0:
	subs	x9, x1, #2
	b.lo	LBB0_14
; %bb.1:
	cmp	x9, #14
	b.hs	LBB0_3
; %bb.2:
	mov	x9, x0
	b	LBB0_13
LBB0_3:
	lsr	x8, x9, #1
	add	x8, x8, #1
	cmp	x9, #62
	b.hs	LBB0_5
; %bb.4:
	mov	x10, #0
	b	LBB0_9
LBB0_5:
	and	x10, x8, #0xffffffffffffffe0
	add	x9, x0, #32
	mov	x11, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	x12, x9, #32
	ld2.16b	{ v0, v1 }, [x12]
	ld2.16b	{ v3, v4 }, [x9]
	mov.16b	v2, v0
	mov.16b	v5, v3
	st2.16b	{ v1, v2 }, [x12]
	st2.16b	{ v4, v5 }, [x9]
	add	x9, x9, #64
	subs	x11, x11, #32
	b.ne	LBB0_6
; %bb.7:
	cmp	x8, x10
	b.eq	LBB0_14
; %bb.8:
	tst	x8, #0x18
	b.eq	LBB0_12
LBB0_9:
	and	x11, x8, #0xfffffffffffffff8
	lsl	x9, x11, #1
	sub	x1, x1, x9
	add	x9, x0, x9
	add	x12, x0, x10, lsl #1
	sub	x10, x10, x11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ld2.8b	{ v0, v1 }, [x12]
	fmov	d2, d0
	st2.8b	{ v1, v2 }, [x12], #16
	adds	x10, x10, #8
	b.ne	LBB0_10
; %bb.11:
	cmp	x8, x11
	b.ne	LBB0_13
	b	LBB0_14
LBB0_12:
	lsl	x8, x10, #1
	add	x9, x0, x8
	sub	x1, x1, x8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x9]
	ldrb	w10, [x9, #1]
	strb	w10, [x9]
	strb	w8, [x9, #1]
	sub	x1, x1, #2
	add	x9, x9, #2
	cmp	x1, #1
	b.hi	LBB0_13
LBB0_14:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_swapbytes
.subsections_via_symbols
