	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function memcpy16bswap
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
	.globl	_memcpy16bswap
	.p2align	4, 0x90
_memcpy16bswap:                         ## @memcpy16bswap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	testl	%edx, %edx
	je	LBB0_19
## %bb.1:
	leal	-1(%rdx), %r10d
	cmpl	$7, %r10d
	jb	LBB0_12
## %bb.2:
	leaq	(%rsi,%r10,2), %rax
	addq	$2, %rax
	cmpq	%rdi, %rax
	jbe	LBB0_4
## %bb.3:
	leaq	(%rdi,%r10,2), %rax
	addq	$2, %rax
	cmpq	%rsi, %rax
	ja	LBB0_12
LBB0_4:
	incq	%r10
	movq	%r10, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rax
	movq	%rax, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r9, %rax
	andq	$-2, %rax
	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_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rcx,2), %xmm1
	pshufb	%xmm0, %xmm1
	movdqu	%xmm1, (%rdi,%rcx,2)
	movdqu	16(%rsi,%rcx,2), %xmm1
	pshufb	%xmm0, %xmm1
	movdqu	%xmm1, 16(%rdi,%rcx,2)
	addq	$16, %rcx
	addq	$-2, %rax
	jne	LBB0_7
## %bb.8:
	testb	$1, %r9b
	je	LBB0_10
LBB0_9:
	movdqu	(%rsi,%rcx,2), %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,2)
LBB0_10:
	cmpq	%r8, %r10
	je	LBB0_19
## %bb.11:
	leaq	(%rsi,%r8,2), %rsi
	subl	%r8d, %edx
	leaq	(%rdi,%r8,2), %rdi
LBB0_12:
	leal	-1(%rdx), %r8d
	movl	%edx, %r9d
	andl	$3, %r9d
	je	LBB0_16
## %bb.13:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movzwl	(%rsi), %ecx
	rolw	$8, %cx
	movw	%cx, (%rdi)
	addq	$2, %rdi
	addq	$2, %rsi
	incl	%eax
	cmpl	%eax, %r9d
	jne	LBB0_14
## %bb.15:
	subl	%eax, %edx
LBB0_16:
	cmpl	$3, %r8d
	jb	LBB0_19
## %bb.17:
	movl	%edx, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movzwl	(%rsi,%rcx,2), %edx
	rolw	$8, %dx
	movw	%dx, (%rdi,%rcx,2)
	movzwl	2(%rsi,%rcx,2), %edx
	rolw	$8, %dx
	movw	%dx, 2(%rdi,%rcx,2)
	movzwl	4(%rsi,%rcx,2), %edx
	rolw	$8, %dx
	movw	%dx, 4(%rdi,%rcx,2)
	movzwl	6(%rsi,%rcx,2), %edx
	rolw	$8, %dx
	movw	%dx, 6(%rdi,%rcx,2)
	addq	$4, %rcx
	cmpl	%ecx, %eax
	jne	LBB0_18
LBB0_19:
	popq	%rbp
	retq
LBB0_5:
	xorl	%ecx, %ecx
	testb	$1, %r9b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memcpy16bswap                  ; -- Begin function memcpy16bswap
	.p2align	2
_memcpy16bswap:                         ; @memcpy16bswap
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_8
; %bb.1:
	sub	w8, w2, #1
	cmp	w8, #31
	b.lo	LBB0_6
; %bb.2:
	lsl	x9, x8, #1
	add	x10, x9, x0
	add	x10, x10, #2
	add	x9, x9, x1
	add	x9, x9, #2
	cmp	x9, x0
	ccmp	x10, x1, #0, hi
	b.hi	LBB0_6
; %bb.3:
	add	x10, x8, #1
	and	x11, x10, #0x1ffffffe0
	lsl	x9, x11, #1
	add	x8, x1, x9
	sub	w2, w2, w11
	add	x9, x0, x9
	add	x12, x1, #32
	add	x13, x0, #32
	mov	x14, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x15, x12, #32
	sub	x16, x12, #16
	ld2.8b	{ v0, v1 }, [x15]
	ld2.8b	{ v2, v3 }, [x16]
	mov	x15, x12
	ld2.8b	{ v4, v5 }, [x15], #16
	ld2.8b	{ v6, v7 }, [x15]
	shll.8h	v16, v0, #8
	shll.8h	v17, v2, #8
	shll.8h	v18, v4, #8
	shll.8h	v19, v6, #8
	ushll.8h	v0, v1, #0
	ushll.8h	v1, v3, #0
	ushll.8h	v2, v5, #0
	ushll.8h	v3, v7, #0
	orr.16b	v0, v16, v0
	orr.16b	v1, v17, v1
	orr.16b	v2, v18, v2
	stp	q0, q1, [x13, #-32]
	orr.16b	v0, v19, v3
	stp	q2, q0, [x13], #64
	add	x12, x12, #64
	subs	x14, x14, #32
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x11
	b.ne	LBB0_7
	b	LBB0_8
LBB0_6:
	mov	x8, x1
	mov	x9, x0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrh	w10, [x8], #2
	rev	w10, w10
	lsr	w10, w10, #16
	strh	w10, [x9], #2
	subs	w2, w2, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
