	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_getchar                    ## -- Begin function tty_getchar
	.p2align	4, 0x90
_tty_getchar:                           ## @tty_getchar
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	leaq	-12(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fileno
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_FD_SET
	movl	$1, -32(%rbp)
	movq	$0, -24(%rbp)
	leaq	-32(%rbp), %r8
	movl	$1, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	movl	$-1, %eax
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_getchar
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stdin,4,2                      ## @stdin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_getchar                    ; -- Begin function tty_getchar
	.p2align	2
_tty_getchar:                           ; @tty_getchar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	sub	x0, x29, #4
	bl	_FD_ZERO
Lloh0:
	adrp	x8, _stdin@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_fileno
	sub	x1, x29, #4
	bl	_FD_SET
	mov	w8, #1
	str	w8, [sp, #8]
	str	xzr, [sp, #16]
	sub	x1, x29, #4
	add	x4, sp, #8
	mov	w0, #1
	mov	x2, #0
	mov	x3, #0
	bl	_select
	cbz	w0, LBB0_3
; %bb.1:
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.2:
	bl	_getchar
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_stdin,4,2                      ; @stdin
.subsections_via_symbols
