	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reversedirection
_reversedirection:                      ## @reversedirection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.1:
	movq	8(%rdi), %rcx
	movl	%eax, %r9d
	decl	%r9d
	je	LBB0_2
## %bb.3:
	incq	%r9
	movq	%r9, %r8
	andq	$-2, %r8
	leaq	-2(%r8), %rdx
	movq	%rdx, %rsi
	shrq	%rsi
	incq	%rsi
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.5:
	movq	%rsi, %rdx
	andq	$-2, %rdx
	xorl	%edi, %edi
	pxor	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,8), %xmm1
	movdqu	16(%rcx,%rdi,8), %xmm2
	pshufd	$232, %xmm1, %xmm3              ## xmm3 = xmm1[0,2,2,3]
	pshufd	$237, %xmm1, %xmm1              ## xmm1 = xmm1[1,3,2,3]
	pcmpeqd	%xmm0, %xmm3
	psrld	$31, %xmm3
	pcmpeqd	%xmm0, %xmm1
	psrld	$31, %xmm1
	punpckldq	%xmm1, %xmm3            ## xmm3 = xmm3[0],xmm1[0],xmm3[1],xmm1[1]
	movdqu	%xmm3, (%rcx,%rdi,8)
	pshufd	$232, %xmm2, %xmm1              ## xmm1 = xmm2[0,2,2,3]
	pshufd	$237, %xmm2, %xmm2              ## xmm2 = xmm2[1,3,2,3]
	pcmpeqd	%xmm0, %xmm1
	psrld	$31, %xmm1
	pcmpeqd	%xmm0, %xmm2
	psrld	$31, %xmm2
	punpckldq	%xmm2, %xmm1            ## xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
	movdqu	%xmm1, 16(%rcx,%rdi,8)
	addq	$4, %rdi
	addq	$-2, %rdx
	jne	LBB0_6
## %bb.7:
	testb	$1, %sil
	je	LBB0_9
LBB0_8:
	movdqu	(%rcx,%rdi,8), %xmm0
	pshufd	$232, %xmm0, %xmm1              ## xmm1 = xmm0[0,2,2,3]
	pshufd	$237, %xmm0, %xmm0              ## xmm0 = xmm0[1,3,2,3]
	pxor	%xmm2, %xmm2
	pcmpeqd	%xmm2, %xmm1
	psrld	$31, %xmm1
	pcmpeqd	%xmm2, %xmm0
	psrld	$31, %xmm0
	punpckldq	%xmm0, %xmm1            ## xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
	movdqu	%xmm1, (%rcx,%rdi,8)
LBB0_9:
	cmpq	%r8, %r9
	je	LBB0_13
## %bb.10:
	leaq	(%rcx,%r8,8), %rcx
	jmp	LBB0_11
LBB0_2:
	xorl	%r8d, %r8d
LBB0_11:
	subl	%r8d, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	xorl	%esi, %esi
	cmpl	$0, (%rcx,%rdx,8)
	sete	%sil
	movl	%esi, (%rcx,%rdx,8)
	xorl	%esi, %esi
	cmpl	$0, 4(%rcx,%rdx,8)
	sete	%sil
	movl	%esi, 4(%rcx,%rdx,8)
	incq	%rdx
	cmpl	%edx, %eax
	jne	LBB0_12
LBB0_13:
	popq	%rbp
	retq
LBB0_4:
	xorl	%edi, %edi
	testb	$1, %sil
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_reversedirection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reversedirection
_reversedirection:                      ; @reversedirection
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	subs	w8, w9, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x12, [x0, #8]
	cmp	w8, #7
	b.hs	LBB0_3
; %bb.2:
	mov	w10, #0
	mov	x8, x12
	b	LBB0_6
LBB0_3:
	add	x11, x8, #1
	and	x10, x11, #0x1fffffff8
	add	x8, x12, x10, lsl #3
	add	x12, x12, #32
	movi.4s	v0, #1
	mov	x13, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x14, x12, #32
	ld2.4s	{ v1, v2 }, [x14]
	ld2.4s	{ v3, v4 }, [x12]
	cmeq.4s	v5, v1, #0
	and.16b	v5, v5, v0
	cmeq.4s	v1, v2, #0
	and.16b	v6, v1, v0
	cmeq.4s	v1, v3, #0
	and.16b	v1, v1, v0
	cmeq.4s	v3, v4, #0
	and.16b	v2, v3, v0
	st2.4s	{ v5, v6 }, [x14]
	st2.4s	{ v1, v2 }, [x12]
	add	x12, x12, #64
	subs	x13, x13, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x11, x10
	b.eq	LBB0_8
LBB0_6:
	sub	w9, w9, w10
	movi.2s	v0, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x8]
	cmeq.2s	v1, v1, #0
	and.8b	v1, v1, v0
	str	d1, [x8], #8
	subs	w9, w9, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_reversedirection
.subsections_via_symbols
