	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EmptyTerminal
_EmptyTerminal:                         ## @EmptyTerminal
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	-20(%rbp), %rdi
	callq	_FD_ZERO
	xorl	%eax, %eax
	callq	_TTYBYTES
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	callq	_TTYBYTES
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_tout@GOTPCREL(%rip), %r14
	leaq	-20(%rbp), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_ttyflush
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_FD_SET
	movq	(%r14), %rdi
	incq	%rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_select
	xorl	%eax, %eax
	callq	_TTYBYTES
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_4
LBB0_5:
	movq	_tout@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	leaq	-20(%rbp), %r14
	movq	%r14, %rsi
	callq	_FD_SET
	movq	(%rbx), %rdi
	incq	%rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_select
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tout,8,3                       ## @tout
	.no_dead_strip	_EmptyTerminal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EmptyTerminal
_EmptyTerminal:                         ; @EmptyTerminal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	add	x0, sp, #12
	bl	_FD_ZERO
	bl	_TTYBYTES
	cbz	x0, LBB0_4
; %bb.1:
	bl	_TTYBYTES
	cbz	x0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x19, _tout@GOTPAGE
Lloh1:
	ldr	x19, [x19, _tout@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	bl	_ttyflush
	ldr	x0, [x19]
	add	x1, sp, #12
	bl	_FD_SET
	ldr	x8, [x19]
	add	x0, x8, #1
	add	x2, sp, #12
	mov	x1, #0
	mov	x3, #0
	mov	x4, #0
	bl	_select
	bl	_TTYBYTES
	cbnz	x0, LBB0_3
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x19, _tout@GOTPAGE
Lloh3:
	ldr	x19, [x19, _tout@GOTPAGEOFF]
	ldr	x0, [x19]
	add	x1, sp, #12
	bl	_FD_SET
	ldr	x8, [x19]
	add	x0, x8, #1
	add	x2, sp, #12
	mov	x1, #0
	mov	x3, #0
	mov	x4, #0
	bl	_select
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_tout,8,3                       ; @tout
	.no_dead_strip	_EmptyTerminal
.subsections_via_symbols
