	.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	%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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_STDIN_FILENO@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movl	(%r13), %ebx
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_3
LBB0_2:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	movl	%eax, %ebx
	movl	%eax, %esi
	testl	%eax, %eax
	js	LBB0_6
LBB0_3:
	movl	%ebx, %edi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movl	%r14d, %r8d
	callq	_prompt_tty
	movl	%eax, %r14d
	cmpl	(%r13), %ebx
	je	LBB0_5
## %bb.4:
	movl	%ebx, %edi
	callq	_close
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r12, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_prompt_notty                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_stdout,4,2                     ## @stdout
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/tty"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_stdin,4,2                      ## @stdin
	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _STDIN_FILENO@GOTPAGE
Lloh1:
	ldr	x23, [x23, _STDIN_FILENO@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_isatty
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _stdout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_fflush
	ldr	w22, [x23]
Lloh5:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	mov	x22, x0
	mov	x1, x0
	tbnz	w0, #31, LBB0_6
LBB0_3:
	mov	x0, x22
	mov	x2, x21
	mov	x3, x19
	mov	x4, x20
	bl	_prompt_tty
	mov	x19, x0
	ldr	w8, [x23]
	cmp	w22, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_close
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x21
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_prompt_notty
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_stdout,4,2                     ; @stdout
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/tty"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_stdin,4,2                      ; @stdin
	.no_dead_strip	_prompt
.subsections_via_symbols
