	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function swabshort
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
_swabshort:                             ## @swabshort
	.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 $esi killed $esi def $rsi
	movq	%rdi, %rax
	testl	%esi, %esi
	jle	LBB0_12
## %bb.1:
	leal	-1(%rsi), %r9d
	cmpl	$7, %r9d
	jb	LBB0_10
## %bb.2:
	incq	%r9
	movq	%r9, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rdx
	movq	%rdx, %rcx
	shrq	$3, %rcx
	incq	%rcx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	movq	%rcx, %rdi
	andq	$-2, %rdi
	xorl	%edx, %edx
	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	(%rax,%rdx), %xmm1
	movdqu	16(%rax,%rdx), %xmm2
	pshufb	%xmm0, %xmm1
	movdqu	%xmm1, (%rax,%rdx)
	pshufb	%xmm0, %xmm2
	movdqu	%xmm2, 16(%rax,%rdx)
	addq	$32, %rdx
	addq	$-2, %rdi
	jne	LBB0_5
## %bb.6:
	testb	$1, %cl
	je	LBB0_8
LBB0_7:
	movdqu	(%rax,%rdx), %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, (%rax,%rdx)
LBB0_8:
	leaq	(%rax,%r8,2), %rax
	cmpq	%r8, %r9
	je	LBB0_12
## %bb.9:
	subl	%r8d, %esi
LBB0_10:
	incl	%esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	rolw	$8, (%rax)
	addq	$2, %rax
	decl	%esi
	cmpl	$1, %esi
	ja	LBB0_11
LBB0_12:
	popq	%rbp
	retq
LBB0_3:
	xorl	%edx, %edx
	testb	$1, %cl
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_swabshort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swabshort
_swabshort:                             ; @swabshort
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	subs	w9, w1, #1
	b.lt	LBB0_3
; %bb.1:
	cmp	w9, #31
	b.hs	LBB0_4
; %bb.2:
	mov	x0, x8
	b	LBB0_7
LBB0_3:
	mov	x0, x8
	ret
LBB0_4:
	add	x9, x9, #1
	and	x10, x9, #0x1ffffffe0
	add	x0, x8, x10, lsl #1
	sub	w1, w1, w10
	add	x8, x8, #32
	mov	x11, x10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x12, x8, #32
	ld2.16b	{ v0, v1 }, [x12]
	ld2.16b	{ v3, v4 }, [x8]
	mov.16b	v2, v0
	mov.16b	v5, v3
	st2.16b	{ v1, v2 }, [x12]
	st2.16b	{ v4, v5 }, [x8]
	add	x8, x8, #64
	subs	x11, x11, #32
	b.ne	LBB0_5
; %bb.6:
	cmp	x9, x10
	b.eq	LBB0_9
LBB0_7:
	add	w8, w1, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x0]
	ldrb	w10, [x0, #1]
	strb	w10, [x0]
	strb	w9, [x0, #1]
	add	x0, x0, #2
	sub	w8, w8, #1
	cmp	w8, #1
	b.hi	LBB0_8
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_swabshort
.subsections_via_symbols
