	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matchPrompt                    ## -- Begin function matchPrompt
	.p2align	4, 0x90
_matchPrompt:                           ## @matchPrompt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%r12, %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	xorl	%ebx, %ebx
	movl	$1, %r14d
	leaq	L_.str.1(%rip), %r15
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	%r13b, %r13b
	movzbl	%r13b, %r13d
	cmovel	%r14d, %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	%r12, %rdi
	callq	_strlen
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%rbx), %eax
	cmpb	$27, %al
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%r13b, %r13b
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$1, %r13b
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_strchr
	testq	%rax, %rax
	sete	%r13b
	jmp	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r12,%rbx), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_strncat
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_21
## %bb.10:
	movslq	%r15d, %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addq	%rax, %rbx
	negq	%rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movabsq	$4294976513, %r12               ## imm = 0x100002401
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	cmpl	%r13d, %r15d
	jle	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movslq	%r13d, %rax
	movq	%rbx, %rcx
	subq	%rax, %rcx
	addq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rcx,%rdx), %esi
	cmpq	$32, %rsi
	ja	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	btq	%rsi, %r12
	jae	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	decq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r15d, %r13d
	jmp	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	subl	%edx, %r13d
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	leaq	L_.str(%rip), %rdi
	movslq	%r13d, %rax
	movq	%rbx, %rcx
	subq	%rax, %rcx
	movb	(%rcx), %al
	cmpb	(%r14,%rdi), %al
	je	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r14
	callq	_strlen
	cltq
	cmpq	%rax, %r14
	jl	LBB0_12
LBB0_21:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movl	$1, %eax
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	":>%$#"

L_.str.1:                               ## @.str.1
	.asciz	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matchPrompt                    ; -- Begin function matchPrompt
	.p2align	2
_matchPrompt:                           ; @matchPrompt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_strlen
	add	w0, w0, #1
	bl	_malloc
	mov	x19, x0
	mov	x0, x20
	bl	_strlen
	add	w2, w0, #1
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	mov	x0, x20
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x22, #0
	mov	w23, #0
Lloh0:
	adrp	x21, l_.str.1@PAGE
Lloh1:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	tst	w23, #0xff
	csinc	w23, w23, wzr, ne
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	mov	x0, x20
	bl	_strlen
	cmp	x22, w0, sxtw
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x20, x22
	ldrb	w8, [x1]
	cmp	w8, #27
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ands	w9, w23, #0xff
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #1
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtb	w1, w8
	mov	x0, x21
	bl	_strchr
	cmp	x0, #0
	cset	w23, eq
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w2, #1
	bl	_strncat
	mov	w23, #0
	b	LBB0_3
LBB0_9:
	mov	x0, x19
	bl	_strlen
	mov	x20, x0
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.10:
	mov	x22, #0
	mov	w23, #0
	sxtw	x24, w20
	add	x25, x19, x24
	mov	w26, #1
	mov	x27, #9217
	movk	x27, #1, lsl #32
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	cmp	w20, w23
	b.le	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	x8, x24, w23, sxtw
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x19, x8]
	cmp	w9, #32
	lsl	x9, x26, x9
	and	x9, x9, x27
	ccmp	x9, #0, #4, ls
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	w23, w23, #1
	subs	x8, x8, #1
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x23, x20
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	x8, x25, w23, sxtw
	ldrb	w8, [x8]
	ldrb	w9, [x21, x22]
	cmp	w8, w9
	b.eq	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #1
	mov	x0, x21
	bl	_strlen
	cmp	x22, w0, sxtw
	b.lt	LBB0_11
LBB0_18:
	mov	x0, x19
	bl	_free
	mov	w0, #0
	b	LBB0_20
LBB0_19:
	mov	x0, x19
	bl	_free
	mov	w0, #1
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	":>%$#"

l_.str.1:                               ; @.str.1
	.asciz	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"

.subsections_via_symbols
