	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swap_bytes
_swap_bytes:                            ## @swap_bytes
	.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
	movl	%esi, %r8d
	shrl	$31, %r8d
	addl	%esi, %r8d
	andl	$-2, %r8d
	je	LBB0_8
## %bb.1:
	movl	%esi, %eax
	subl	%r8d, %eax
	subl	%eax, %esi
	addl	$-2, %esi
	cmpl	$6, %esi
	jae	LBB0_3
## %bb.2:
	movq	%rdi, %rcx
	jmp	LBB0_6
LBB0_3:
	shrl	%esi
	incl	%esi
	movl	%esi, %edx
	andl	$-4, %edx
	leaq	(%rdi,%rdx,8), %rcx
	subl	%edx, %r8d
	subl	%edx, %r8d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rax,8), %xmm0
	movdqu	16(%rdi,%rax,8), %xmm1
	pshufd	$177, %xmm0, %xmm0              ## xmm0 = xmm0[1,0,3,2]
	movdqu	%xmm0, (%rdi,%rax,8)
	pshufd	$177, %xmm1, %xmm0              ## xmm0 = xmm1[1,0,3,2]
	movdqu	%xmm0, 16(%rdi,%rax,8)
	addq	$4, %rax
	cmpq	%rax, %rdx
	jne	LBB0_4
## %bb.5:
	cmpq	%rsi, %rdx
	je	LBB0_8
LBB0_6:
	movl	%r8d, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	rolq	$32, (%rcx,%rdx,4)
	addq	$2, %rdx
	cmpl	%edx, %eax
	jne	LBB0_7
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_swap_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swap_bytes
_swap_bytes:                            ; @swap_bytes
	.cfi_startproc
; %bb.0:
	and	w8, w1, #0x1
	cmp	w1, #0
	cneg	w8, w8, lt
	subs	w8, w1, w8
	b.eq	LBB0_7
; %bb.1:
	sub	w9, w8, #2
	cmp	w9, #14
	b.hs	LBB0_3
; %bb.2:
	mov	x9, x0
	b	LBB0_6
LBB0_3:
	lsr	w9, w9, #1
	add	w10, w9, #1
	and	x11, x10, #0xfffffff8
	add	x9, x0, x11, lsl #3
	sub	w8, w8, w11, lsl #1
	add	x12, x0, #32
	mov	x13, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x14, x12, #32
	ld2.4s	{ v0, v1 }, [x14]
	ld2.4s	{ v3, v4 }, [x12]
	mov.16b	v2, v0
	mov.16b	v5, v3
	st2.4s	{ v1, v2 }, [x14]
	st2.4s	{ v4, v5 }, [x12]
	add	x12, x12, #64
	subs	x13, x13, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x11, x10
	b.eq	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x9]
	rev64.2s	v0, v0
	str	d0, [x9], #8
	subs	w8, w8, #2
	b.ne	LBB0_6
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_swap_bytes
.subsections_via_symbols
