	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prompt
_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	%rbx
	subq	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorl	%eax, %eax
	callq	_r_cons_singleton
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_strdup
	movq	%rax, %r15
	movl	$1, %edi
	callq	_r_cons_show_cursor
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	cmpb	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_r_cons_singleton
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_r_cons_singleton
	movq	(%rax), %rax
	movq	%rbx, 8(%rax)
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_r_cons_singleton
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	callq	_R_FREE
LBB0_4:
	movb	$0, -1056(%rbp)
	movq	%r14, %rdi
	callq	_r_line_set_prompt
	leaq	-1056(%rbp), %rdi
	movl	$1023, %esi                     ## imm = 0x3FF
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_r_cons_fgets
	testq	%rax, %rax
	js	LBB0_7
## %bb.5:
	cmpb	$0, -1056(%rbp)
	je	LBB0_8
## %bb.6:
	leaq	-1056(%rbp), %rdi
	callq	_strdup
	movq	%rax, %rbx
	jmp	LBB0_9
LBB0_7:
	movb	$0, -1056(%rbp)
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_r_line_set_prompt
	movq	%r15, %rdi
	callq	_free
	xorl	%eax, %eax
	callq	_r_cons_singleton
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	callq	_R_FREE
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rax
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_prompt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prompt
_prompt:                                ; @prompt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #1040
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_r_cons_singleton
	ldr	x8, [x0]
	ldr	x0, [x8]
	bl	_strdup
	mov	x19, x0
	mov	w0, #1
	bl	_r_cons_show_cursor
	cbz	x21, LBB0_3
; %bb.1:
	ldrb	w8, [x21]
	cbz	w8, LBB0_3
; %bb.2:
	bl	_r_cons_singleton
	ldr	x8, [x0]
	ldr	x0, [x8, #8]
	bl	_free
	mov	x0, x21
	bl	_strdup
	mov	x21, x0
	bl	_r_cons_singleton
	ldr	x8, [x0]
	str	x21, [x8, #8]
	b	LBB0_4
LBB0_3:
	bl	_r_cons_singleton
	ldr	x8, [x0]
	ldr	x0, [x8, #8]
	bl	_R_FREE
LBB0_4:
	strb	wzr, [sp, #8]
	mov	x0, x20
	bl	_r_line_set_prompt
	add	x0, sp, #8
	mov	w1, #1023
	mov	w2, #0
	mov	x3, #0
	bl	_r_cons_fgets
	tbnz	x0, #63, LBB0_7
; %bb.5:
	ldrb	w8, [sp, #8]
	cbz	w8, LBB0_8
; %bb.6:
	add	x0, sp, #8
	bl	_strdup
	mov	x20, x0
	b	LBB0_9
LBB0_7:
	mov	x20, #0
	strb	wzr, [sp, #8]
	b	LBB0_9
LBB0_8:
	mov	x20, #0
LBB0_9:
	mov	x0, x19
	bl	_r_line_set_prompt
	mov	x0, x19
	bl	_free
	bl	_r_cons_singleton
	ldr	x8, [x0]
	ldr	x0, [x8, #8]
	bl	_R_FREE
	ldur	x8, [x29, #-40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_prompt
.subsections_via_symbols
