	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function input_available_p
_input_available_p:                     ## @input_available_p
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_tty_flush_to_ldisc
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movl	$1, %eax
	cmpq	$0, 8(%rbx)
	jne	LBB0_4
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	testl	%r14d, %r14d
	movl	$1, %eax
	cmovel	%eax, %r14d
	cmpl	%r14d, (%rbx)
	jl	LBB0_3
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_input_available_p
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function input_available_p
_input_available_p:                     ; @input_available_p
	.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, x1
	mov	x20, x0
	bl	_tty_flush_to_ldisc
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
LBB0_2:
	mov	w0, #1
	b	LBB0_5
LBB0_3:
	ldr	w8, [x20]
	cmp	w19, #0
	csinc	w9, w19, wzr, ne
	cmp	w8, w9
	b.ge	LBB0_2
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_input_available_p
.subsections_via_symbols
