	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stdin_event_handler            ## -- Begin function stdin_event_handler
	.p2align	4, 0x90
_stdin_event_handler:                   ## @stdin_event_handler
	.cfi_startproc
## %bb.0:
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_printf_unfiltered
	movq	_input_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_delete_file_handler
	xorl	%eax, %eax
	callq	_discard_all_continuations
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_instream@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	sete	%sil
	xorl	%edi, %edi
	popq	%rbp
	jmp	_quit_command                   ## TAILCALL
LBB0_2:
	movl	%esi, %edi
	jmp	_call_readline                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error detected on stdin\n"

	.comm	_input_fd,4,2                   ## @input_fd
	.comm	_stdin,8,3                      ## @stdin
	.comm	_instream,8,3                   ## @instream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stdin_event_handler            ; -- Begin function stdin_event_handler
	.p2align	2
_stdin_event_handler:                   ; @stdin_event_handler
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_2
; %bb.1:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf_unfiltered
Lloh2:
	adrp	x8, _input_fd@GOTPAGE
Lloh3:
	ldr	x8, [x8, _input_fd@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_delete_file_handler
	bl	_discard_all_continuations
Lloh5:
	adrp	x8, _stdin@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh7:
	adrp	x9, _instream@GOTPAGE
Lloh8:
	ldr	x9, [x9, _instream@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w1, eq
	mov	x0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_quit_command
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	mov	x0, x1
	b	_call_readline
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error detected on stdin\n"

	.comm	_input_fd,4,2                   ; @input_fd
	.comm	_stdin,8,3                      ; @stdin
	.comm	_instream,8,3                   ; @instream
.subsections_via_symbols
