	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tty_char_available
_tty_char_available:                    ## @tty_char_available
	.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
	leaq	-20(%rbp), %r14
	movq	%r14, %rdi
	callq	_FD_ZERO
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_FD_SET
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	(%rbx), %rdi
	incq	%rdi
	leaq	-48(%rbp), %r8
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setg	%cl
	movl	%ecx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STDIN_FILENO,8,3               ## @STDIN_FILENO
	.no_dead_strip	_tty_char_available
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tty_char_available
_tty_char_available:                    ; @tty_char_available
	.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
	sub	x0, x29, #20
	bl	_FD_ZERO
Lloh0:
	adrp	x19, _STDIN_FILENO@GOTPAGE
Lloh1:
	ldr	x19, [x19, _STDIN_FILENO@GOTPAGEOFF]
	ldr	x0, [x19]
	sub	x1, x29, #20
	bl	_FD_SET
	stp	xzr, xzr, [sp, #8]
	ldr	x8, [x19]
	add	x0, x8, #1
	sub	x1, x29, #20
	add	x4, sp, #8
	mov	x2, #0
	mov	x3, #0
	bl	_select
	cmp	x0, #0
	cset	w0, gt
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_STDIN_FILENO,8,3               ; @STDIN_FILENO
	.no_dead_strip	_tty_char_available
.subsections_via_symbols
