	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Scheduler                      ## -- Begin function Scheduler
	.p2align	4, 0x90
_Scheduler:                             ## @Scheduler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_netoring@GOTPCREL(%rip), %rdi
	callq	_ring_full_count
	xorl	%r12d, %r12d
	movl	$0, %r15d
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_flushline@GOTPCREL(%rip), %rax
	movl	$1, %r15d
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	_TELOPT_LINEMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_my_want_state_is_wont
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_TELOPT_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_my_want_state_is_will
	xorl	%r15d, %r15d
	testq	%rax, %rax
	setne	%r15b
LBB0_4:
	movq	_ttyoring@GOTPCREL(%rip), %rdi
	callq	_ring_full_count
	movl	%eax, %r13d
	movq	_ttyiring@GOTPCREL(%rip), %rdi
	callq	_ring_empty_count
	movl	%eax, %ebx
	movq	_ISend@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_netiring@GOTPCREL(%rip), %rdi
	callq	_ring_empty_count
	xorl	%r12d, %r12d
	testl	%eax, %eax
	setne	%r12b
LBB0_6:
	movq	_SYNCHing@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	$0, (%rax)
	sete	%dl
	movq	_scheduler_lockout_tty@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	cmovnel	%ecx, %ebx
	cmovnel	%ecx, %r13d
	xorl	%r9d, %r9d
	testl	%r14d, %r14d
	sete	%r9b
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	callq	_process_rings
	movl	%eax, %ebx
	movq	_ttyiring@GOTPCREL(%rip), %rdi
	callq	_ring_full_count
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_telsnd
	orl	%eax, %ebx
LBB0_8:
	movq	_netiring@GOTPCREL(%rip), %rdi
	callq	_ring_full_count
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_telrcv
	orl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_netoring,4,2                   ## @netoring
	.comm	_flushline,8,3                  ## @flushline
	.comm	_TELOPT_LINEMODE,4,2            ## @TELOPT_LINEMODE
	.comm	_TELOPT_BINARY,4,2              ## @TELOPT_BINARY
	.comm	_ttyoring,4,2                   ## @ttyoring
	.comm	_ttyiring,4,2                   ## @ttyiring
	.comm	_ISend,4,2                      ## @ISend
	.comm	_netiring,4,2                   ## @netiring
	.comm	_SYNCHing,4,2                   ## @SYNCHing
	.comm	_scheduler_lockout_tty,8,3      ## @scheduler_lockout_tty
	.comm	_TELOPT_SGA,4,2                 ## @TELOPT_SGA
	.comm	_kludgelinemode,4,2             ## @kludgelinemode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Scheduler                      ; -- Begin function Scheduler
	.p2align	2
_Scheduler:                             ; @Scheduler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x0, _netoring@GOTPAGE
Lloh1:
	ldr	x0, [x0, _netoring@GOTPAGEOFF]
	bl	_ring_full_count
	cbz	w0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _flushline@GOTPAGE
Lloh3:
	ldr	x8, [x8, _flushline@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _TELOPT_LINEMODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TELOPT_LINEMODE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_my_want_state_is_wont
	cbz	x0, LBB0_5
LBB0_3:
	mov	w20, #1
	b	LBB0_6
LBB0_4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _TELOPT_BINARY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TELOPT_BINARY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_my_want_state_is_will
	cmp	x0, #0
	cset	w20, ne
LBB0_6:
Lloh11:
	adrp	x0, _ttyoring@GOTPAGE
Lloh12:
	ldr	x0, [x0, _ttyoring@GOTPAGEOFF]
	bl	_ring_full_count
	mov	x21, x0
Lloh13:
	adrp	x0, _ttyiring@GOTPAGE
Lloh14:
	ldr	x0, [x0, _ttyiring@GOTPAGEOFF]
	bl	_ring_empty_count
	mov	x22, x0
Lloh15:
	adrp	x8, _ISend@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ISend@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x0, _netiring@GOTPAGE
Lloh19:
	ldr	x0, [x0, _netiring@GOTPAGEOFF]
	bl	_ring_empty_count
	cmp	w0, #0
	cset	w0, ne
LBB0_9:
Lloh20:
	adrp	x8, _SYNCHing@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SYNCHing@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w2, eq
Lloh23:
	adrp	x8, _scheduler_lockout_tty@GOTPAGE
Lloh24:
	ldr	x8, [x8, _scheduler_lockout_tty@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	w3, w22, wzr, eq
	csel	w4, w21, wzr, eq
	cmp	w19, #0
	cset	w5, eq
	mov	x1, x20
	bl	_process_rings
	mov	x19, x0
Lloh26:
	adrp	x0, _ttyiring@GOTPAGE
Lloh27:
	ldr	x0, [x0, _ttyiring@GOTPAGEOFF]
	bl	_ring_full_count
	cbz	w0, LBB0_11
; %bb.10:
	bl	_telsnd
	orr	w19, w0, w19
LBB0_11:
Lloh28:
	adrp	x0, _netiring@GOTPAGE
Lloh29:
	ldr	x0, [x0, _netiring@GOTPAGEOFF]
	bl	_ring_full_count
	cbz	w0, LBB0_13
; %bb.12:
	bl	_telrcv
	orr	w19, w0, w19
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_netoring,4,2                   ; @netoring
	.comm	_flushline,8,3                  ; @flushline
	.comm	_TELOPT_LINEMODE,4,2            ; @TELOPT_LINEMODE
	.comm	_TELOPT_BINARY,4,2              ; @TELOPT_BINARY
	.comm	_ttyoring,4,2                   ; @ttyoring
	.comm	_ttyiring,4,2                   ; @ttyiring
	.comm	_ISend,4,2                      ; @ISend
	.comm	_netiring,4,2                   ; @netiring
	.comm	_SYNCHing,4,2                   ; @SYNCHing
	.comm	_scheduler_lockout_tty,8,3      ; @scheduler_lockout_tty
	.comm	_TELOPT_SGA,4,2                 ; @TELOPT_SGA
	.comm	_kludgelinemode,4,2             ; @kludgelinemode
.subsections_via_symbols
