	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prompt                         ## -- Begin function prompt
	.p2align	4, 0x90
_prompt:                                ## @prompt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_stoprompt@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_intprompt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_SIGQUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
                                        ## kill: def $al killed $al killed $eax
	callq	_unraw
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
	movq	_promptbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_setjmp
	movq	%r13, %r15
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	xorl	%eax, %eax
                                        ## kill: def $al killed $al killed $eax
	callq	_getchar
	movq	_EOF@GOTPCREL(%rip), %rbx
	movq	%r13, %r15
	cmpl	(%rbx), %eax
	je	LBB0_6
## %bb.2:
	decq	%r14
	xorl	%r12d, %r12d
	movl	%eax, %edx
	movq	%r13, %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %r15
	movl	%edx, %ecx
	movb	%dl, (%rsi)
	cmpb	$10, %dl
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	subq	$1, %r14
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movl	%r12d, %eax
	callq	_getchar
	movl	%eax, %edx
	movq	%r15, %rsi
	cmpl	(%rbx), %eax
	jne	LBB0_3
LBB0_6:
	movb	$0, (%r15)
	xorl	%eax, %eax
                                        ## kill: def $al killed $al killed $eax
	callq	_raw
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_signal
	movq	_SIGQUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_signal
	movq	_stoprompt@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	setne	%al
	cmpq	%r13, %r15
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stoprompt,8,3                  ## @stoprompt
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_intprompt,4,2                  ## @intprompt
	.comm	_SIGQUIT,4,2                    ## @SIGQUIT
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_promptbuf,4,2                  ## @promptbuf
	.comm	_EOF,4,2                        ## @EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prompt                         ; -- Begin function prompt
	.p2align	2
_prompt:                                ; @prompt
	.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	x22, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x24, _stoprompt@GOTPAGE
Lloh1:
	ldr	x24, [x24, _stoprompt@GOTPAGEOFF]
	str	xzr, [x24]
Lloh2:
	adrp	x25, _SIGINT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SIGINT@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh4:
	adrp	x8, _intprompt@GOTPAGE
Lloh5:
	ldr	x8, [x8, _intprompt@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_signal
	mov	x20, x0
Lloh7:
	adrp	x26, _SIGQUIT@GOTPAGE
Lloh8:
	ldr	x26, [x26, _SIGQUIT@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh9:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_signal
	mov	x21, x0
	bl	_unraw
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_printf
Lloh14:
	adrp	x8, _promptbuf@GOTPAGE
Lloh15:
	ldr	x8, [x8, _promptbuf@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_setjmp
	mov	x8, x19
	cbnz	x0, LBB0_5
; %bb.1:
	bl	_getchar
Lloh17:
	adrp	x23, _EOF@GOTPAGE
Lloh18:
	ldr	x23, [x23, _EOF@GOTPAGEOFF]
	ldr	w9, [x23]
	mov	x8, x19
	cmp	w0, w9
	b.eq	LBB0_5
; %bb.2:
	sub	x22, x22, #1
	mov	x9, x0
	mov	x10, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x10
	strb	w9, [x10]
	and	w9, w9, #0xff
	cmp	w9, #10
	ccmp	x22, #0, #4, ne
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x8, #1
	bl	_getchar
	mov	x9, x0
	ldr	w11, [x23]
	sub	x22, x22, #1
	mov	x10, x27
	mov	x8, x27
	cmp	w0, w11
	b.ne	LBB0_3
LBB0_5:
	mov	x22, x8
	strb	wzr, [x8]
	bl	_raw
	ldr	w0, [x25]
	mov	x1, x20
	bl	_signal
	ldr	w0, [x26]
	mov	x1, x21
	bl	_signal
	ldr	x8, [x24]
	cmp	x22, x19
	ccmp	x8, #0, #0, ne
	cset	w0, ne
	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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_stoprompt,8,3                  ; @stoprompt
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_intprompt,4,2                  ; @intprompt
	.comm	_SIGQUIT,4,2                    ; @SIGQUIT
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_promptbuf,4,2                  ; @promptbuf
	.comm	_EOF,4,2                        ; @EOF
.subsections_via_symbols
