	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prompt_TtyInit                 ## -- Begin function prompt_TtyInit
	.p2align	4, 0x90
_prompt_TtyInit:                        ## @prompt_TtyInit
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	%rdi, %rax
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %r14d
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_fcntl
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_F_SETFL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_fcntl
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	movups	40(%rbx), %xmm0
	movups	56(%rbx), %xmm1
	movaps	%xmm1, -32(%rbp)
	movaps	%xmm0, -48(%rbp)
	jmp	LBB0_7
LBB0_6:
	leaq	-48(%rbp), %rsi
	movl	%r14d, %edi
	callq	_tcgetattr
LBB0_7:
	movq	_ECHO@GOTPCREL(%rip), %rax
	movq	_ISIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ICANON@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, -48(%rbp)
	movq	_OPOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -28(%rbp)
	movq	$0, -24(%rbp)
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movq	-40(%rbp), %rax
	jmp	LBB0_10
LBB0_9:
	movq	__POSIX_VDISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-40(%rbp), %rax
	movq	_VINTR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
LBB0_10:
	movq	_VMIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, (%rax,%rcx,4)
	movq	_VTIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$0, (%rax,%rcx,4)
	movq	_CS8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -32(%rbp)
	movq	_TCSANOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movl	%r14d, %edi
	callq	_tcsetattr
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.11:
	movaps	-48(%rbp), %xmm0
	movaps	-32(%rbp), %xmm1
	movups	%xmm1, 24(%rbx)
	movups	%xmm0, 8(%rbx)
LBB0_12:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_ECHO,4,2                       ## @ECHO
	.comm	_ISIG,4,2                       ## @ISIG
	.comm	_ICANON,4,2                     ## @ICANON
	.comm	_OPOST,4,2                      ## @OPOST
	.comm	__POSIX_VDISABLE,4,2            ## @_POSIX_VDISABLE
	.comm	_VINTR,8,3                      ## @VINTR
	.comm	_VMIN,8,3                       ## @VMIN
	.comm	_VTIME,8,3                      ## @VTIME
	.comm	_CS8,4,2                        ## @CS8
	.comm	_TCSANOW,4,2                    ## @TCSANOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prompt_TtyInit                 ; -- Begin function prompt_TtyInit
	.p2align	2
_prompt_TtyInit:                        ; @prompt_TtyInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x0, eq
	ldr	w20, [x8]
Lloh2:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_fcntl
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w2, w8, w0
Lloh8:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_fcntl
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	ldur	q0, [x19, #40]
	ldur	q1, [x19, #56]
	stp	q0, q1, [sp]
	b	LBB0_5
LBB0_4:
	mov	x1, sp
	mov	x0, x20
	bl	_tcgetattr
LBB0_5:
Lloh11:
	adrp	x8, _ECHO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ECHO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _ISIG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ISIG@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _ICANON@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ICANON@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _OPOST@GOTPAGE
Lloh21:
	ldr	x9, [x9, _OPOST@GOTPAGEOFF]
	ldr	w10, [sp]
	ldr	w11, [sp, #20]
	bic	w8, w10, w8
Lloh22:
	ldr	w9, [x9]
	bic	w9, w11, w9
	str	xzr, [sp, #24]
	str	w8, [sp]
	str	w9, [sp, #20]
	cbz	x19, LBB0_7
; %bb.6:
	ldr	x8, [sp, #8]
	b	LBB0_8
LBB0_7:
Lloh23:
	adrp	x8, __POSIX_VDISABLE@GOTPAGE
Lloh24:
	ldr	x8, [x8, __POSIX_VDISABLE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x8]
	ldr	x8, [sp, #8]
Lloh26:
	adrp	x10, _VINTR@GOTPAGE
Lloh27:
	ldr	x10, [x10, _VINTR@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	str	w9, [x8, x10, lsl #2]
LBB0_8:
Lloh29:
	adrp	x9, _VMIN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _VMIN@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	mov	w10, #1
	str	w10, [x8, x9, lsl #2]
Lloh32:
	adrp	x9, _VTIME@GOTPAGE
Lloh33:
	ldr	x9, [x9, _VTIME@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	str	wzr, [x8, x9, lsl #2]
Lloh35:
	adrp	x8, _CS8@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CS8@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	w9, [sp, #16]
	orr	w8, w9, w8
	str	w8, [sp, #16]
Lloh38:
	adrp	x8, _TCSANOW@GOTPAGE
Lloh39:
	ldr	x8, [x8, _TCSANOW@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	bl	_tcsetattr
	cbz	x19, LBB0_10
; %bb.9:
	ldp	q0, q1, [sp]
	stur	q0, [x19, #8]
	stur	q1, [x19, #24]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_ECHO,4,2                       ; @ECHO
	.comm	_ISIG,4,2                       ; @ISIG
	.comm	_ICANON,4,2                     ; @ICANON
	.comm	_OPOST,4,2                      ; @OPOST
	.comm	__POSIX_VDISABLE,4,2            ; @_POSIX_VDISABLE
	.comm	_VINTR,8,3                      ; @VINTR
	.comm	_VMIN,8,3                       ; @VMIN
	.comm	_VTIME,8,3                      ; @VTIME
	.comm	_CS8,4,2                        ; @CS8
	.comm	_TCSANOW,4,2                    ; @TCSANOW
.subsections_via_symbols
