	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reverse_memcpy
_reverse_memcpy:                        ## @reverse_memcpy
	.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
	jle	LBB0_20
## %bb.1:
	leal	-1(%rdx), %r9d
	xorl	%r10d, %r10d
	cmpl	$7, %r9d
	jb	LBB0_13
## %bb.2:
	leaq	(,%r9,4), %rax
	movq	%rdi, %rcx
	subq	%rax, %rcx
	leaq	(%rsi,%r9,4), %rax
	addq	$4, %rax
	cmpq	%rax, %rcx
	jae	LBB0_4
## %bb.3:
	leaq	4(%rdi), %rax
	cmpq	%rsi, %rax
	ja	LBB0_13
LBB0_4:
	incq	%r9
	movq	%r9, %r10
	andq	$-8, %r10
	leaq	-8(%r10), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r8, %r11
	andq	$-2, %r11
	leaq	48(%rsi), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-48(%rax), %xmm0
	movdqu	-32(%rax), %xmm1
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, -12(%rdi,%rcx,4)
	pshufd	$27, %xmm1, %xmm0               ## xmm0 = xmm1[3,2,1,0]
	movdqu	%xmm0, -28(%rdi,%rcx,4)
	movdqu	-16(%rax), %xmm0
	movdqu	(%rax), %xmm1
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, -44(%rdi,%rcx,4)
	pshufd	$27, %xmm1, %xmm0               ## xmm0 = xmm1[3,2,1,0]
	movdqu	%xmm0, -60(%rdi,%rcx,4)
	addq	$64, %rax
	addq	$-16, %rcx
	addq	$-2, %r11
	jne	LBB0_7
## %bb.8:
	negq	%rcx
	testb	$1, %r8b
	je	LBB0_11
LBB0_10:
	leaq	(,%rcx,4), %r8
	movq	%rdi, %rax
	subq	%r8, %rax
	movdqu	(%rsi,%rcx,4), %xmm0
	movdqu	16(%rsi,%rcx,4), %xmm1
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, -12(%rax)
	pshufd	$27, %xmm1, %xmm0               ## xmm0 = xmm1[3,2,1,0]
	movdqu	%xmm0, -28(%rax)
LBB0_11:
	cmpq	%r10, %r9
	je	LBB0_20
## %bb.12:
	leaq	(,%r10,4), %rax
	leaq	(%rsi,%r10,4), %rsi
	subq	%rax, %rdi
LBB0_13:
	movl	%edx, %r9d
	subl	%r10d, %r9d
	movl	%r10d, %r8d
	notl	%r8d
	addl	%edx, %r8d
	andl	$7, %r9d
	je	LBB0_17
## %bb.14:
	negl	%r9d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %eax
	addq	$4, %rsi
	movl	%eax, (%rdi)
	addq	$-4, %rdi
	decl	%ecx
	cmpl	%ecx, %r9d
	jne	LBB0_15
## %bb.16:
	subl	%ecx, %r10d
LBB0_17:
	cmpl	$7, %r8d
	jb	LBB0_20
## %bb.18:
	subl	%edx, %r10d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %ecx
	movl	%ecx, (%rdi,%rax,4)
	movl	4(%rsi), %ecx
	movl	%ecx, -4(%rdi,%rax,4)
	movl	8(%rsi), %ecx
	movl	%ecx, -8(%rdi,%rax,4)
	movl	12(%rsi), %ecx
	movl	%ecx, -12(%rdi,%rax,4)
	movl	16(%rsi), %ecx
	movl	%ecx, -16(%rdi,%rax,4)
	movl	20(%rsi), %ecx
	movl	%ecx, -20(%rdi,%rax,4)
	movl	24(%rsi), %ecx
	movl	%ecx, -24(%rdi,%rax,4)
	movl	28(%rsi), %ecx
	movl	%ecx, -28(%rdi,%rax,4)
	addq	$-8, %rax
	addq	$32, %rsi
	cmpl	%eax, %r10d
	jne	LBB0_19
LBB0_20:
	popq	%rbp
	retq
LBB0_5:
	xorl	%ecx, %ecx
	testb	$1, %r8b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_reverse_memcpy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reverse_memcpy
_reverse_memcpy:                        ; @reverse_memcpy
	.cfi_startproc
; %bb.0:
	subs	w8, w2, #1
	b.lt	LBB0_9
; %bb.1:
	cmp	w8, #15
	b.lo	LBB0_6
; %bb.2:
	lsl	x9, x8, #2
	add	x10, x0, #4
	add	x11, x9, x1
	add	x11, x11, #4
	sub	x9, x0, x9
	cmp	x9, x11
	ccmp	x10, x1, #0, lo
	b.hi	LBB0_6
; %bb.3:
	add	x11, x8, #1
	and	x10, x11, #0x1fffffff0
	lsl	x9, x10, #2
	add	x8, x1, x9
	sub	x9, x0, x9
	add	x12, x1, #32
	sub	x13, x0, #28
	mov	x14, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	rev64.4s	v0, v0
	ext.16b	v0, v0, v0, #8
	rev64.4s	v1, v1
	ext.16b	v1, v1, v1, #8
	stp	q1, q0, [x13]
	rev64.4s	v0, v2
	ext.16b	v0, v0, v0, #8
	rev64.4s	v1, v3
	ext.16b	v1, v1, v1, #8
	stp	q1, q0, [x13, #-32]
	sub	x13, x13, #64
	sub	x14, x14, #16
	cbnz	x14, LBB0_4
; %bb.5:
	cmp	x11, x10
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	w10, #0
	mov	x8, x1
	mov	x9, x0
LBB0_7:
	sub	w10, w2, w10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8], #4
	str	w11, [x9], #-4
	subs	w10, w10, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_reverse_memcpy
.subsections_via_symbols
