	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prompt_TtyCommandMode          ## -- Begin function prompt_TtyCommandMode
	.p2align	4, 0x90
_prompt_TtyCommandMode:                 ## @prompt_TtyCommandMode
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	leaq	-32(%rbp), %r14
	movq	%r14, %rsi
	callq	_tcgetattr
	movq	_ECHO@GOTPCREL(%rip), %rax
	movq	_ISIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ICANON@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	%ecx, -32(%rbp)
	movl	12(%rbx), %eax
	movl	%eax, -24(%rbp)
	movq	_OPOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -28(%rbp)
	movl	8(%rbx), %edi
	movq	_TCSADRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_tcsetattr
	movl	8(%rbx), %edi
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_fcntl
	testl	%eax, %eax
	jle	LBB0_2
## %bb.1:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	8(%rbx), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	callq	_fcntl
LBB0_2:
	movq	$0, (%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ECHO,4,2                       ## @ECHO
	.comm	_ISIG,4,2                       ## @ISIG
	.comm	_ICANON,4,2                     ## @ICANON
	.comm	_OPOST,4,2                      ## @OPOST
	.comm	_TCSADRAIN,4,2                  ## @TCSADRAIN
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_F_SETFL,4,2                    ## @F_SETFL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prompt_TtyCommandMode          ; -- Begin function prompt_TtyCommandMode
	.p2align	2
_prompt_TtyCommandMode:                 ; @prompt_TtyCommandMode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
	mov	x1, sp
	bl	_tcgetattr
Lloh0:
	adrp	x8, _ECHO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECHO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ISIG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ISIG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _ICANON@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ICANON@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldp	w9, w10, [sp]
	orr	w8, w8, w9
	ldp	w0, w9, [x19, #8]
	str	w9, [sp, #8]
Lloh9:
	adrp	x9, _OPOST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OPOST@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w9, w10, w9
	stp	w8, w9, [sp]
Lloh12:
	adrp	x8, _TCSADRAIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TCSADRAIN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_tcsetattr
	ldr	w0, [x19, #8]
Lloh15:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_fcntl
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.1:
Lloh18:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w0, [x19, #8]
Lloh21:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_fcntl
LBB0_2:
	str	xzr, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ECHO,4,2                       ; @ECHO
	.comm	_ISIG,4,2                       ; @ISIG
	.comm	_ICANON,4,2                     ; @ICANON
	.comm	_OPOST,4,2                      ; @OPOST
	.comm	_TCSADRAIN,4,2                  ; @TCSADRAIN
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_F_SETFL,4,2                    ; @F_SETFL
.subsections_via_symbols
