	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bufswap
_bufswap:                               ## @bufswap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdx, %rdx
	je	LBB0_22
## %bb.1:
	cmpq	$8, %rdx
	jb	LBB0_2
## %bb.3:
	leaq	(%rsi,%rdx), %rax
	cmpq	%rdi, %rax
	jbe	LBB0_6
## %bb.4:
	leaq	(%rdi,%rdx), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_6
LBB0_2:
	xorl	%r10d, %r10d
LBB0_18:
	movq	%r10, %rcx
	notq	%rcx
	testb	$1, %dl
	je	LBB0_20
## %bb.19:
	movb	(%rdi,%r10), %r8b
	movb	(%rsi,%r10), %al
	movb	%al, (%rdi,%r10)
	movb	%r8b, (%rsi,%r10)
	orq	$1, %r10
LBB0_20:
	addq	%rdx, %rcx
	je	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%r10), %eax
	movzbl	(%rsi,%r10), %ecx
	movb	%cl, (%rdi,%r10)
	movb	%al, (%rsi,%r10)
	movzbl	1(%rdi,%r10), %eax
	movzbl	1(%rsi,%r10), %ecx
	movb	%cl, 1(%rdi,%r10)
	movb	%al, 1(%rsi,%r10)
	addq	$2, %r10
	cmpq	%r10, %rdx
	jne	LBB0_21
LBB0_22:
	popq	%rbp
	retq
LBB0_6:
	cmpq	$32, %rdx
	jae	LBB0_8
## %bb.7:
	xorl	%r10d, %r10d
	jmp	LBB0_15
LBB0_8:
	movq	%rdx, %r10
	andq	$-32, %r10
	leaq	-32(%r10), %rcx
	movq	%rcx, %r8
	shrq	$5, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_23
## %bb.9:
	movq	%r8, %r9
	andq	$-2, %r9
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rdi,%rcx), %xmm0
	movups	16(%rdi,%rcx), %xmm1
	movups	(%rsi,%rcx), %xmm2
	movups	16(%rsi,%rcx), %xmm3
	movups	%xmm2, (%rdi,%rcx)
	movups	%xmm3, 16(%rdi,%rcx)
	movups	%xmm0, (%rsi,%rcx)
	movups	%xmm1, 16(%rsi,%rcx)
	movups	32(%rdi,%rcx), %xmm0
	movups	48(%rdi,%rcx), %xmm1
	movups	32(%rsi,%rcx), %xmm2
	movups	48(%rsi,%rcx), %xmm3
	movups	%xmm2, 32(%rdi,%rcx)
	movups	%xmm3, 48(%rdi,%rcx)
	movups	%xmm0, 32(%rsi,%rcx)
	movups	%xmm1, 48(%rsi,%rcx)
	addq	$64, %rcx
	addq	$-2, %r9
	jne	LBB0_10
## %bb.11:
	testb	$1, %r8b
	je	LBB0_13
LBB0_12:
	movups	(%rdi,%rcx), %xmm0
	movups	16(%rdi,%rcx), %xmm1
	movups	(%rsi,%rcx), %xmm2
	movups	16(%rsi,%rcx), %xmm3
	movups	%xmm2, (%rdi,%rcx)
	movups	%xmm3, 16(%rdi,%rcx)
	movups	%xmm0, (%rsi,%rcx)
	movups	%xmm1, 16(%rsi,%rcx)
LBB0_13:
	cmpq	%rdx, %r10
	je	LBB0_22
## %bb.14:
	testb	$24, %dl
	je	LBB0_18
LBB0_15:
	movq	%r10, %rcx
	movq	%rdx, %r10
	andq	$-8, %r10
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rcx), %r8
	movq	(%rsi,%rcx), %rax
	movq	%rax, (%rdi,%rcx)
	movq	%r8, (%rsi,%rcx)
	addq	$8, %rcx
	cmpq	%rcx, %r10
	jne	LBB0_16
## %bb.17:
	cmpq	%rdx, %r10
	je	LBB0_22
	jmp	LBB0_18
LBB0_23:
	xorl	%ecx, %ecx
	testb	$1, %r8b
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bufswap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bufswap
_bufswap:                               ; @bufswap
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_7
; %bb.1:
	cmp	x2, #8
	b.lo	LBB0_4
; %bb.2:
	add	x8, x1, x2
	cmp	x8, x0
	b.ls	LBB0_8
; %bb.3:
	add	x8, x0, x2
	cmp	x8, x1
	b.ls	LBB0_8
LBB0_4:
	mov	x8, #0
LBB0_5:
	sub	x9, x2, x8
	add	x10, x1, x8
	add	x8, x0, x8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x8]
	ldrb	w12, [x10]
	strb	w12, [x8], #1
	strb	w11, [x10], #1
	subs	x9, x9, #1
	b.ne	LBB0_6
LBB0_7:
	ret
LBB0_8:
	cmp	x2, #32
	b.hs	LBB0_10
; %bb.9:
	mov	x8, #0
	b	LBB0_14
LBB0_10:
	and	x8, x2, #0xffffffffffffffe0
	add	x9, x0, #16
	add	x10, x1, #16
	mov	x11, x8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x9, #-16]
	ldp	q2, q3, [x10, #-16]
	stp	q2, q3, [x9, #-16]
	stp	q0, q1, [x10, #-16]
	add	x9, x9, #32
	add	x10, x10, #32
	subs	x11, x11, #32
	b.ne	LBB0_11
; %bb.12:
	cmp	x8, x2
	b.eq	LBB0_7
; %bb.13:
	tst	x2, #0x18
	b.eq	LBB0_5
LBB0_14:
	mov	x11, x8
	and	x8, x2, #0xfffffffffffffff8
	add	x9, x0, x11
	add	x10, x1, x11
	sub	x11, x11, x8
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x9]
	ldr	d1, [x10]
	str	d1, [x9], #8
	str	d0, [x10], #8
	adds	x11, x11, #8
	b.ne	LBB0_15
; %bb.16:
	cmp	x8, x2
	b.eq	LBB0_7
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bufswap
.subsections_via_symbols
