	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prompt_TtyOldMode              ## -- Begin function prompt_TtyOldMode
	.p2align	4, 0x90
_prompt_TtyOldMode:                     ## @prompt_TtyOldMode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	12(%rdi), %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
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	12(%rbx), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	callq	_fcntl
LBB0_2:
	movq	(%rbx), %rax
	movq	_stdout@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movl	12(%rbx), %edi
	movq	_TCSADRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rbx
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_tcsetattr                      ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_stdout,8,3                     ## @stdout
	.comm	_TCSADRAIN,4,2                  ## @TCSADRAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prompt_TtyOldMode              ; -- Begin function prompt_TtyOldMode
	.p2align	2
_prompt_TtyOldMode:                     ; @prompt_TtyOldMode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, #12]
Lloh0:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_fcntl
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w0, [x19, #12]
Lloh6:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_fcntl
LBB0_2:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _stdout@GOTPAGE
Lloh10:
	ldr	x9, [x9, _stdout@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _TCSADRAIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TCSADRAIN@GOTPAGEOFF]
	ldr	w0, [x19, #12]
Lloh14:
	ldr	w1, [x8]
	add	x2, x19, #8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tcsetattr
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_stdout,8,3                     ; @stdout
	.comm	_TCSADRAIN,4,2                  ; @TCSADRAIN
.subsections_via_symbols
