	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReverseString                  ## -- Begin function ReverseString
	.p2align	4, 0x90
_ReverseString:                         ## @ReverseString
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_strlen
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%eax, %edi
	subl	%ecx, %edi
	jle	LBB0_6
## %bb.1:
	movslq	%eax, %r8
	movslq	%ecx, %rsi
	movq	%rsi, %rax
	notq	%rax
	movq	%r8, %rcx
	testb	$1, %dil
	je	LBB0_3
## %bb.2:
	leaq	-1(%r8), %rcx
	movb	-1(%r14,%r8), %dil
	movb	(%r14), %dl
	movb	%dl, -1(%r14,%r8)
	movb	%dil, (%r14)
LBB0_3:
	addq	%r8, %rax
	je	LBB0_6
## %bb.4:
	subq	%rcx, %r8
	leaq	(%r8,%r14), %rdx
	incq	%rdx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%r14,%rcx), %eax
	movzbl	-1(%rdx), %ebx
	movb	%bl, -1(%r14,%rcx)
	movb	%al, -1(%rdx)
	movzbl	-2(%r14,%rcx), %eax
	movzbl	(%rdx), %ebx
	movb	%bl, -2(%r14,%rcx)
	leaq	-2(%rcx), %rdi
	movb	%al, (%rdx)
	addq	$2, %rdx
	movq	%rdi, %rcx
	cmpq	%rsi, %rdi
	jg	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReverseString                  ; -- Begin function ReverseString
	.p2align	2
_ReverseString:                         ; @ReverseString
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
	cmp	w0, w8
	b.le	LBB0_3
; %bb.1:
	sxtw	x10, w0
	sxtw	x8, w8
	sub	x9, x19, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x9, x10]
	ldrb	w12, [x19]
	strb	w12, [x9, x10]
	sub	x12, x10, #1
	strb	w11, [x19], #1
	mov	x10, x12
	cmp	x12, x8
	b.gt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
