	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function BUF_reverse
LCPI0_0:
	.byte	15                              ## 0xf
	.byte	14                              ## 0xe
	.byte	13                              ## 0xd
	.byte	12                              ## 0xc
	.byte	11                              ## 0xb
	.byte	10                              ## 0xa
	.byte	9                               ## 0x9
	.byte	8                               ## 0x8
	.byte	7                               ## 0x7
	.byte	6                               ## 0x6
	.byte	5                               ## 0x5
	.byte	4                               ## 0x4
	.byte	3                               ## 0x3
	.byte	2                               ## 0x2
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
LCPI0_1:
	.byte	7                               ## 0x7
	.byte	6                               ## 0x6
	.byte	5                               ## 0x5
	.byte	4                               ## 0x4
	.byte	3                               ## 0x3
	.byte	2                               ## 0x2
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_BUF_reverse
	.p2align	4, 0x90
_BUF_reverse:                           ## @BUF_reverse
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_29
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_36
## %bb.2:
	leaq	(%rdx,%rdi), %r10
	decq	%r10
	cmpq	$8, %rdx
	jb	LBB0_3
## %bb.5:
	leaq	(%rsi,%rdx), %rax
	cmpq	%rdi, %rax
	jbe	LBB0_7
## %bb.6:
	leaq	(%rdi,%rdx), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_7
LBB0_3:
	xorl	%r8d, %r8d
LBB0_4:
	movq	%r10, %r11
	movq	%rsi, %rdi
LBB0_12:
	movq	%r8, %r9
	notq	%r9
	addq	%rdx, %r9
	movq	%rdx, %rsi
	andq	$7, %rsi
	je	LBB0_16
## %bb.13:
	negq	%rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi), %r10d
	incq	%rdi
	movb	%r10b, (%r11,%rcx)
	decq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_14
## %bb.15:
	addq	%rcx, %r11
	subq	%rcx, %r8
LBB0_16:
	cmpq	$7, %r9
	jb	LBB0_36
## %bb.17:
	subq	%r8, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rcx), %eax
	movb	%al, (%r11)
	movzbl	1(%rdi,%rcx), %eax
	movb	%al, -1(%r11)
	movzbl	2(%rdi,%rcx), %eax
	movb	%al, -2(%r11)
	movzbl	3(%rdi,%rcx), %eax
	movb	%al, -3(%r11)
	movzbl	4(%rdi,%rcx), %eax
	movb	%al, -4(%r11)
	movzbl	5(%rdi,%rcx), %eax
	movb	%al, -5(%r11)
	movzbl	6(%rdi,%rcx), %eax
	movb	%al, -6(%r11)
	movzbl	7(%rdi,%rcx), %eax
	movb	%al, -7(%r11)
	addq	$8, %rcx
	addq	$-8, %r11
	cmpq	%rcx, %rdx
	jne	LBB0_18
	jmp	LBB0_36
LBB0_29:
	cmpq	$2, %rdx
	jb	LBB0_36
## %bb.30:
	leaq	(%rdi,%rdx), %rcx
	shrq	%rdx
	leaq	-1(%rdx), %rax
	movl	%edx, %esi
	andl	$3, %esi
	cmpq	$3, %rax
	jb	LBB0_33
## %bb.31:
	andq	$-4, %rdx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rcx), %r8d
	movzbl	(%rdi), %eax
	movb	%al, -1(%rcx)
	movb	%r8b, (%rdi)
	movzbl	-2(%rcx), %r8d
	movzbl	1(%rdi), %eax
	movb	%al, -2(%rcx)
	movb	%r8b, 1(%rdi)
	movzbl	-3(%rcx), %r8d
	movzbl	2(%rdi), %eax
	movb	%al, -3(%rcx)
	movb	%r8b, 2(%rdi)
	movzbl	-4(%rcx), %r8d
	movzbl	3(%rdi), %eax
	movb	%al, -4(%rcx)
	addq	$-4, %rcx
	movb	%r8b, 3(%rdi)
	addq	$4, %rdi
	addq	$-4, %rdx
	jne	LBB0_32
LBB0_33:
	testq	%rsi, %rsi
	je	LBB0_36
## %bb.34:
	decq	%rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx), %r8d
	movzbl	(%rdi,%rdx), %eax
	movb	%al, (%rcx)
	movb	%r8b, (%rdi,%rdx)
	incq	%rdx
	decq	%rcx
	cmpq	%rdx, %rsi
	jne	LBB0_35
	jmp	LBB0_36
LBB0_7:
	cmpq	$32, %rdx
	jae	LBB0_19
## %bb.8:
	xorl	%r8d, %r8d
	jmp	LBB0_9
LBB0_19:
	movq	%rdx, %r8
	andq	$-32, %r8
	leaq	-32(%r8), %rax
	movq	%rax, %r9
	shrq	$5, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	%r9, %rax
	andq	$-2, %rax
	leaq	48(%rsi), %rcx
	leaq	(%rdx,%rdi), %r11
	addq	$-16, %r11
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-48(%rcx), %xmm1
	movdqu	-32(%rcx), %xmm2
	pshufb	%xmm0, %xmm1
	movdqu	%xmm1, (%r11,%rdi)
	pshufb	%xmm0, %xmm2
	movdqu	%xmm2, -16(%r11,%rdi)
	movdqu	-16(%rcx), %xmm1
	movdqu	(%rcx), %xmm2
	pshufb	%xmm0, %xmm1
	movdqu	%xmm1, -32(%r11,%rdi)
	pshufb	%xmm0, %xmm2
	movdqu	%xmm2, -48(%r11,%rdi)
	addq	$64, %rcx
	addq	$-64, %rdi
	addq	$-2, %rax
	jne	LBB0_22
## %bb.23:
	negq	%rdi
	testb	$1, %r9b
	je	LBB0_26
LBB0_25:
	movq	%r10, %rax
	subq	%rdi, %rax
	movdqu	(%rsi,%rdi), %xmm0
	movdqu	16(%rsi,%rdi), %xmm1
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]
	pshufb	%xmm2, %xmm0
	movdqu	%xmm0, -15(%rax)
	pshufb	%xmm2, %xmm1
	movdqu	%xmm1, -31(%rax)
LBB0_26:
	cmpq	%rdx, %r8
	je	LBB0_36
## %bb.27:
	testb	$24, %dl
	je	LBB0_28
LBB0_9:
	movq	%r8, %rcx
	movq	%rdx, %r8
	andq	$-8, %r8
	movq	%r8, %r9
	negq	%r9
	movq	%r10, %r11
	subq	%r8, %r11
	leaq	(%rsi,%r8), %rdi
	addq	%rcx, %rsi
	negq	%rcx
	movdqa	LCPI0_1(%rip), %xmm0            ## xmm0 = <7,6,5,4,3,2,1,0,u,u,u,u,u,u,u,u>
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %xmm1                   ## xmm1 = mem[0],zero
	pshufb	%xmm0, %xmm1
	movq	%xmm1, -7(%r10,%rcx)
	addq	$8, %rsi
	addq	$-8, %rcx
	cmpq	%rcx, %r9
	jne	LBB0_10
## %bb.11:
	cmpq	%rdx, %r8
	jne	LBB0_12
LBB0_36:
	popq	%rbp
	retq
LBB0_20:
	xorl	%edi, %edi
	testb	$1, %r9b
	jne	LBB0_25
	jmp	LBB0_26
LBB0_28:
	addq	%r8, %rsi
	subq	%r8, %r10
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BUF_reverse                    ; -- Begin function BUF_reverse
	.p2align	2
_BUF_reverse:                           ; @BUF_reverse
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_8
; %bb.1:
	cbz	x2, LBB0_11
; %bb.2:
	add	x8, x2, x0
	sub	x8, x8, #1
	cmp	x2, #8
	b.lo	LBB0_5
; %bb.3:
	add	x9, x1, x2
	cmp	x9, x0
	b.ls	LBB0_12
; %bb.4:
	add	x9, x0, x2
	cmp	x9, x1
	b.ls	LBB0_12
LBB0_5:
	mov	x10, #0
	mov	x9, x1
LBB0_6:
	sub	x10, x2, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x9], #1
	strb	w11, [x8], #-1
	subs	x10, x10, #1
	b.ne	LBB0_7
	b	LBB0_11
LBB0_8:
	cmp	x2, #2
	b.lo	LBB0_11
; %bb.9:
	lsr	x8, x2, #1
	add	x9, x2, x0
	sub	x9, x9, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9]
	ldrb	w11, [x0]
	strb	w11, [x9], #-1
	strb	w10, [x0], #1
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	ret
LBB0_12:
	and	x10, x2, #0xfffffffffffffff8
	sub	x8, x8, x10
	add	x9, x1, x10
	add	x11, x1, #4
	add	x12, x2, x0
	sub	x12, x12, #4
	mov	x13, x10
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldurb	w14, [x11, #-3]
	ldurb	w15, [x11, #-4]
	ldurb	w16, [x11, #-1]
	ldurb	w17, [x11, #-2]
	ldrb	w0, [x11, #1]
	ldrb	w1, [x11]
	ldrb	w3, [x11, #3]
	ldrb	w4, [x11, #2]
	strb	w15, [x12, #3]
	strb	w14, [x12, #2]
	strb	w17, [x12, #1]
	strb	w16, [x12]
	sturb	w1, [x12, #-1]
	sturb	w0, [x12, #-2]
	add	x11, x11, #8
	sturb	w4, [x12, #-3]
	sturb	w3, [x12, #-4]
	sub	x12, x12, #8
	sub	x13, x13, #8
	cbnz	x13, LBB0_13
; %bb.14:
	cmp	x10, x2
	b.ne	LBB0_6
	b	LBB0_11
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
