	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_rings                  ## -- Begin function process_rings
	.p2align	4, 0x90
_process_rings:                         ## @process_rings
	.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	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ebx
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	%edi, %r12d
	movq	_net@GOTPCREL(%rip), %rdx
	movq	_FD_SETSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_tout@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rdx)
	jge	LBB0_3
## %bb.1:
	cmpq	%rax, (%rcx)
	jge	LBB0_3
## %bb.2:
	movq	_tin@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jl	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_4:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	movq	_net@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_obits@GOTPCREL(%rip), %rsi
	callq	_FD_SET
LBB0_6:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	movq	_tout@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_obits@GOTPCREL(%rip), %rsi
	callq	_FD_SET
LBB0_8:
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.9:
	movq	_tin@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ibits@GOTPCREL(%rip), %rsi
	callq	_FD_SET
LBB0_10:
	testl	%r12d, %r12d
	movq	_net@GOTPCREL(%rip), %r13
	je	LBB0_12
## %bb.11:
	movq	(%r13), %rdi
	movq	_ibits@GOTPCREL(%rip), %rsi
	callq	_FD_SET
LBB0_12:
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.13:
	movq	(%r13), %rdi
	movq	_xbits@GOTPCREL(%rip), %rsi
	callq	_FD_SET
LBB0_14:
	movq	_FD_SETSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%ebx, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	leaq	_process_rings.TimeValue(%rip), %rax
	movl	$0, %r8d
	cmovneq	%rax, %r8
	movq	_ibits@GOTPCREL(%rip), %rsi
	movq	_obits@GOTPCREL(%rip), %rdx
	movq	_xbits@GOTPCREL(%rip), %rcx
	callq	_select
	testl	%eax, %eax
	js	LBB0_27
## %bb.15:
	movq	(%r13), %rdi
	movq	_xbits@GOTPCREL(%rip), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	(%r13), %rdi
	movq	_xbits@GOTPCREL(%rip), %rsi
	callq	_FD_CLR
	movq	_SYNCHing@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$1, %edi
	callq	_ttyflush
LBB0_17:
	movq	(%r13), %rdi
	movq	_ibits@GOTPCREL(%rip), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_30
## %bb.18:
	movq	(%r13), %rdi
	movq	_ibits@GOTPCREL(%rip), %rsi
	callq	_FD_CLR
	movq	_netiring@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_ring_empty_consecutive
	movl	%eax, %r15d
	movq	_SYNCHing@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_31
## %bb.19:
	movq	(%r13), %rdi
	movq	_SIOCATMARK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_ioctl
	cmpl	$0, -48(%rbp)
	movq	(%r13), %rdi
	movq	(%r14), %rsi
	je	LBB0_32
## %bb.20:
	movq	_MSG_OOB@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%r15d, %edx
	callq	_recv
	cmpl	$-1, %eax
	je	LBB0_33
## %bb.21:
	movl	%eax, %r12d
	cmpb	$1, _process_rings.first(%rip)
	je	LBB0_39
## %bb.22:
	testl	%r12d, %r12d
	jle	LBB0_39
## %bb.23:
	movq	_net@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r12d, %ebx
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	movl	%r15d, %edx
	subl	%r12d, %edx
	movl	(%r13), %ecx
	callq	_recv
	movl	%eax, %r13d
	cmpl	%r12d, %eax
	jne	LBB0_25
## %bb.24:
	movq	(%r14), %rdi
	addq	%rdi, %rbx
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_37
LBB0_25:
	testl	%r13d, %r13d
	js	LBB0_36
## %bb.26:
	addl	%r13d, %r12d
	jmp	LBB0_39
LBB0_27:
	cmpl	$-1, %eax
	jne	LBB0_63
## %bb.28:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_63
## %bb.29:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$5, %edi
	callq	_sleep
	jmp	LBB0_63
LBB0_30:
	xorl	%r14d, %r14d
	jmp	LBB0_51
LBB0_31:
	movq	(%r13), %rdi
	movq	(%r14), %rsi
LBB0_32:
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_recv
	movl	%eax, %r12d
	jmp	LBB0_43
LBB0_33:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movl	$-1, %r12d
	cmpq	(%rcx), %rax
	movq	_net@GOTPCREL(%rip), %r13
	jne	LBB0_43
## %bb.34:
	movq	(%r13), %rdi
	movq	(%r14), %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_recv
	movl	%eax, %r12d
	movq	_clocks@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	8(%rax), %rcx
	jge	LBB0_40
## %bb.35:
	xorl	%eax, %eax
	callq	_stilloob
	movl	%eax, (%rbx)
	jmp	LBB0_40
LBB0_36:
	movb	$0, _process_rings.bogus_oob(%rip)
	jmp	LBB0_38
LBB0_37:
	movb	$1, _process_rings.bogus_oob(%rip)
LBB0_38:
	movb	$1, _process_rings.first(%rip)
LBB0_39:
	movq	_net@GOTPCREL(%rip), %r13
LBB0_40:
	cmpb	$1, _process_rings.bogus_oob(%rip)
	jne	LBB0_43
## %bb.41:
	testl	%r12d, %r12d
	jle	LBB0_43
## %bb.42:
	movq	(%r13), %rdi
	movl	%r12d, %esi
	addq	(%r14), %rsi
	subl	%r12d, %r15d
	movl	%r15d, %edx
	callq	_read
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	addl	%ecx, %r12d
LBB0_43:
	movq	_didnetreceive@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_settimer
	testl	%r12d, %r12d
	js	LBB0_46
## %bb.44:
	jne	LBB0_47
## %bb.45:
	movl	$-1, %ebx
	jmp	LBB0_63
LBB0_46:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	movl	$-1, %ebx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_63
LBB0_47:
	movq	_netdata@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_49
## %bb.48:
	movq	(%r14), %rsi
	movl	$60, %edi
	movl	%r12d, %edx
	callq	_Dump
LBB0_49:
	movl	$1, %r14d
	testl	%r12d, %r12d
	je	LBB0_51
## %bb.50:
	movq	_netiring@GOTPCREL(%rip), %rdi
	movl	%r12d, %esi
	callq	_ring_supplied
LBB0_51:
	movq	_tin@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ibits@GOTPCREL(%rip), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_58
## %bb.52:
	movq	_tin@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ibits@GOTPCREL(%rip), %rsi
	callq	_FD_CLR
	movq	_ttyiring@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movq	%r14, %rdi
	callq	_ring_empty_consecutive
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_TerminalRead
	movl	%eax, %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	cmovnel	%ebx, %edx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %edx
	testl	%edx, %edx
	js	LBB0_57
## %bb.53:
	je	LBB0_64
LBB0_54:
	movq	_termdata@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_56
## %bb.55:
	movq	(%r14), %rsi
	movl	$60, %edi
	movl	%ebx, %edx
	callq	_Dump
LBB0_56:
	movq	_ttyiring@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	callq	_ring_supplied
	movl	$1, %r14d
	jmp	LBB0_58
LBB0_57:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	movl	$-1, %ebx
	movl	$1, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_63
LBB0_58:
	movq	(%r13), %rdi
	movq	_obits@GOTPCREL(%rip), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_60
## %bb.59:
	movq	(%r13), %rdi
	movq	_obits@GOTPCREL(%rip), %rsi
	callq	_FD_CLR
	xorl	%eax, %eax
	callq	_netflush
	orl	%eax, %r14d
LBB0_60:
	movq	_tout@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_obits@GOTPCREL(%rip), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_62
## %bb.61:
	movq	(%rbx), %rdi
	movq	_obits@GOTPCREL(%rip), %rsi
	callq	_FD_CLR
	movq	_SYNCHing@GOTPCREL(%rip), %rax
	movq	_flushout@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_ttyflush
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setg	%cl
	orl	%ecx, %r14d
LBB0_62:
	movl	%r14d, %ebx
LBB0_63:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_64:
	movq	_globalmode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MODE_LOCAL_CHARS
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_63
## %bb.65:
	movq	_tin@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_63
## %bb.66:
	movq	_termEofChar@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	(%r14), %rcx
	movb	%al, (%rcx)
	movl	$1, %ebx
	jmp	LBB0_54
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_process_rings.TimeValue,4,2 ## @process_rings.TimeValue
	.comm	_net,8,3                        ## @net
	.comm	_FD_SETSIZE,8,3                 ## @FD_SETSIZE
	.comm	_tout,8,3                       ## @tout
	.comm	_tin,8,3                        ## @tin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fd too large"

	.comm	_obits,4,2                      ## @obits
	.comm	_ibits,4,2                      ## @ibits
	.comm	_xbits,4,2                      ## @xbits
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_SYNCHing,4,2                   ## @SYNCHing
	.comm	_netiring,8,3                   ## @netiring
.zerofill __DATA,__bss,_process_rings.bogus_oob,1,2 ## @process_rings.bogus_oob
.zerofill __DATA,__bss,_process_rings.first,1,2 ## @process_rings.first
	.comm	_SIOCATMARK,4,2                 ## @SIOCATMARK
	.comm	_MSG_OOB,4,2                    ## @MSG_OOB
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_clocks,16,3                    ## @clocks
	.comm	_didnetreceive,4,2              ## @didnetreceive
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.comm	_netdata,8,3                    ## @netdata
	.comm	_ttyiring,8,3                   ## @ttyiring
	.comm	_EIO,8,3                        ## @EIO
	.comm	_globalmode,4,2                 ## @globalmode
	.comm	_termEofChar,1,0                ## @termEofChar
	.comm	_termdata,8,3                   ## @termdata
	.comm	_flushout,4,2                   ## @flushout
L_str:                                  ## @str
	.asciz	"sleep(5) from telnet, after select\r"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_rings                  ; -- Begin function process_rings
	.p2align	2
_process_rings:                         ; @process_rings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x23, x4
	mov	x22, x3
	mov	x20, x2
	mov	x24, x1
	mov	x21, x0
Lloh0:
	adrp	x26, _net@GOTPAGE
Lloh1:
	ldr	x26, [x26, _net@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh2:
	adrp	x28, _FD_SETSIZE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _FD_SETSIZE@GOTPAGEOFF]
	ldr	x9, [x28]
Lloh4:
	adrp	x25, _tout@GOTPAGE
Lloh5:
	ldr	x25, [x25, _tout@GOTPAGEOFF]
	ldr	x10, [x25]
Lloh6:
	adrp	x27, _tin@GOTPAGE
Lloh7:
	ldr	x27, [x27, _tin@GOTPAGEOFF]
	ldr	x11, [x27]
	cmp	x8, x9
	ccmp	x10, x9, #0, lt
	ccmp	x11, x9, #0, lt
	b.lt	LBB0_2
; %bb.1:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
	cbz	w24, LBB0_4
; %bb.3:
	ldr	x0, [x26]
Lloh10:
	adrp	x1, _obits@GOTPAGE
Lloh11:
	ldr	x1, [x1, _obits@GOTPAGEOFF]
	bl	_FD_SET
LBB0_4:
	cbz	w23, LBB0_6
; %bb.5:
	ldr	x0, [x25]
Lloh12:
	adrp	x1, _obits@GOTPAGE
Lloh13:
	ldr	x1, [x1, _obits@GOTPAGEOFF]
	bl	_FD_SET
LBB0_6:
	cbz	w22, LBB0_8
; %bb.7:
	ldr	x0, [x27]
Lloh14:
	adrp	x1, _ibits@GOTPAGE
Lloh15:
	ldr	x1, [x1, _ibits@GOTPAGEOFF]
	bl	_FD_SET
LBB0_8:
	cbz	w21, LBB0_10
; %bb.9:
	ldr	x0, [x26]
Lloh16:
	adrp	x1, _ibits@GOTPAGE
Lloh17:
	ldr	x1, [x1, _ibits@GOTPAGEOFF]
	bl	_FD_SET
LBB0_10:
	cbz	w20, LBB0_12
; %bb.11:
	ldr	x0, [x26]
Lloh18:
	adrp	x1, _xbits@GOTPAGE
Lloh19:
	ldr	x1, [x1, _xbits@GOTPAGEOFF]
	bl	_FD_SET
LBB0_12:
	ldr	x0, [x28]
Lloh20:
	adrp	x8, _process_rings.TimeValue@PAGE
Lloh21:
	add	x8, x8, _process_rings.TimeValue@PAGEOFF
	cmp	w19, #0
	csel	x4, xzr, x8, eq
Lloh22:
	adrp	x1, _ibits@GOTPAGE
Lloh23:
	ldr	x1, [x1, _ibits@GOTPAGEOFF]
Lloh24:
	adrp	x2, _obits@GOTPAGE
Lloh25:
	ldr	x2, [x2, _obits@GOTPAGEOFF]
Lloh26:
	adrp	x3, _xbits@GOTPAGE
Lloh27:
	ldr	x3, [x3, _xbits@GOTPAGEOFF]
	bl	_select
	tbnz	w0, #31, LBB0_25
; %bb.13:
	ldr	x0, [x26]
Lloh28:
	adrp	x1, _xbits@GOTPAGE
Lloh29:
	ldr	x1, [x1, _xbits@GOTPAGEOFF]
	bl	_FD_ISSET
Lloh30:
	adrp	x23, _SYNCHing@GOTPAGE
Lloh31:
	ldr	x23, [x23, _SYNCHing@GOTPAGEOFF]
	cbz	x0, LBB0_15
; %bb.14:
	ldr	x0, [x26]
Lloh32:
	adrp	x1, _xbits@GOTPAGE
Lloh33:
	ldr	x1, [x1, _xbits@GOTPAGEOFF]
	bl	_FD_CLR
	mov	w8, #1
	str	w8, [x23]
	mov	w0, #1
	bl	_ttyflush
LBB0_15:
	ldr	x0, [x26]
Lloh34:
	adrp	x1, _ibits@GOTPAGE
Lloh35:
	ldr	x1, [x1, _ibits@GOTPAGEOFF]
	bl	_FD_ISSET
	cbz	x0, LBB0_28
; %bb.16:
	ldr	x0, [x26]
Lloh36:
	adrp	x1, _ibits@GOTPAGE
Lloh37:
	ldr	x1, [x1, _ibits@GOTPAGEOFF]
	bl	_FD_CLR
Lloh38:
	adrp	x19, _netiring@GOTPAGE
Lloh39:
	ldr	x19, [x19, _netiring@GOTPAGEOFF]
	mov	x0, x19
	bl	_ring_empty_consecutive
	mov	x21, x0
	ldr	w8, [x23]
	cbz	w8, LBB0_29
; %bb.17:
	ldr	x0, [x26]
Lloh40:
	adrp	x8, _SIOCATMARK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SIOCATMARK@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ioctl
	ldr	w8, [sp, #12]
	ldr	x0, [x26]
	ldr	x1, [x19]
	cbz	w8, LBB0_30
; %bb.18:
Lloh43:
	adrp	x22, _MSG_OOB@GOTPAGE
Lloh44:
	ldr	x22, [x22, _MSG_OOB@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x2, x21
	bl	_recv
	cmn	w0, #1
	b.eq	LBB0_32
; %bb.19:
	mov	x20, x0
	adrp	x24, _process_rings.first@PAGE
	ldrb	w8, [x24, _process_rings.first@PAGEOFF]
	cmp	w8, #1
	b.eq	LBB0_39
; %bb.20:
	cmp	w20, #1
	b.lt	LBB0_39
; %bb.21:
	ldr	x0, [x26]
	ldr	x8, [x19]
	mov	w28, w20
	add	x1, x8, x28
	sub	w2, w21, w20
	ldr	w3, [x22]
	bl	_recv
	mov	x22, x0
	cmp	w0, w20
	b.ne	LBB0_23
; %bb.22:
	ldr	x0, [x19]
	add	x1, x0, x28
	mov	x2, x20
	bl	_memcmp
	cbz	x0, LBB0_37
LBB0_23:
	tbnz	w22, #31, LBB0_36
; %bb.24:
	add	w20, w22, w20
	b	LBB0_39
LBB0_25:
	cmn	w0, #1
	b.ne	LBB0_27
; %bb.26:
Lloh45:
	adrp	x8, _errno@GOTPAGE
Lloh46:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
Lloh48:
	adrp	x9, _EINTR@GOTPAGE
Lloh49:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_31
LBB0_27:
	mov	w19, #0
	b	LBB0_67
LBB0_28:
	mov	w19, #0
	b	LBB0_51
LBB0_29:
	ldr	x0, [x26]
	ldr	x1, [x19]
LBB0_30:
	mov	x2, x21
	mov	w3, #0
	bl	_recv
	mov	x20, x0
	b	LBB0_42
LBB0_31:
Lloh51:
	adrp	x0, l_str@PAGE
Lloh52:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #5
	bl	_sleep
	mov	w19, #0
	b	LBB0_67
LBB0_32:
Lloh53:
	adrp	x8, _errno@GOTPAGE
Lloh54:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
Lloh56:
	adrp	x9, _EINVAL@GOTPAGE
Lloh57:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_35
; %bb.33:
	ldr	x0, [x26]
	ldr	x1, [x19]
	mov	x2, x21
	mov	w3, #0
	bl	_recv
	mov	x20, x0
Lloh59:
	adrp	x8, _clocks@GOTPAGE
Lloh60:
	ldr	x8, [x8, _clocks@GOTPAGEOFF]
	ldp	x9, x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_39
; %bb.34:
	bl	_stilloob
	str	w0, [x23]
	b	LBB0_39
LBB0_35:
	mov	w20, #-1
	b	LBB0_42
LBB0_36:
	adrp	x8, _process_rings.bogus_oob@PAGE
	strb	wzr, [x8, _process_rings.bogus_oob@PAGEOFF]
	mov	w8, #1
	b	LBB0_38
LBB0_37:
	mov	w8, #1
	adrp	x9, _process_rings.bogus_oob@PAGE
	strb	w8, [x9, _process_rings.bogus_oob@PAGEOFF]
LBB0_38:
	strb	w8, [x24, _process_rings.first@PAGEOFF]
LBB0_39:
	adrp	x8, _process_rings.bogus_oob@PAGE
	ldrb	w8, [x8, _process_rings.bogus_oob@PAGEOFF]
	cmp	w8, #1
	b.ne	LBB0_42
; %bb.40:
	cmp	w20, #1
	b.lt	LBB0_42
; %bb.41:
	ldr	x0, [x26]
	ldr	x8, [x19]
	add	x1, x8, w20, uxtw
	sub	w2, w21, w20
	bl	_read
	cmp	w0, #0
	csel	w8, w0, wzr, gt
	add	w20, w8, w20
LBB0_42:
Lloh61:
	adrp	x8, _didnetreceive@GOTPAGE
Lloh62:
	ldr	x8, [x8, _didnetreceive@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
	bl	_settimer
	tbnz	w20, #31, LBB0_44
; %bb.43:
	cbnz	w20, LBB0_46
	b	LBB0_66
LBB0_44:
Lloh64:
	adrp	x8, _errno@GOTPAGE
Lloh65:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh66:
	ldr	x8, [x8]
Lloh67:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh68:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh69:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_66
; %bb.45:
	mov	w20, #0
LBB0_46:
Lloh70:
	adrp	x8, _netdata@GOTPAGE
Lloh71:
	ldr	x8, [x8, _netdata@GOTPAGEOFF]
Lloh72:
	ldr	x8, [x8]
	cbz	x8, LBB0_48
; %bb.47:
	ldr	x1, [x19]
	mov	w0, #60
	mov	x2, x20
	bl	_Dump
LBB0_48:
	cbz	w20, LBB0_50
; %bb.49:
Lloh73:
	adrp	x0, _netiring@GOTPAGE
Lloh74:
	ldr	x0, [x0, _netiring@GOTPAGEOFF]
	mov	x1, x20
	bl	_ring_supplied
LBB0_50:
	mov	w19, #1
LBB0_51:
	ldr	x0, [x27]
Lloh75:
	adrp	x1, _ibits@GOTPAGE
Lloh76:
	ldr	x1, [x1, _ibits@GOTPAGEOFF]
	bl	_FD_ISSET
	cbz	x0, LBB0_59
; %bb.52:
	ldr	x0, [x27]
Lloh77:
	adrp	x1, _ibits@GOTPAGE
Lloh78:
	ldr	x1, [x1, _ibits@GOTPAGEOFF]
	bl	_FD_CLR
Lloh79:
	adrp	x19, _ttyiring@GOTPAGE
Lloh80:
	ldr	x19, [x19, _ttyiring@GOTPAGEOFF]
	ldr	x20, [x19]
	mov	x0, x19
	bl	_ring_empty_consecutive
	mov	x1, x0
	mov	x0, x20
	bl	_TerminalRead
Lloh81:
	adrp	x8, _errno@GOTPAGE
Lloh82:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh83:
	ldr	x8, [x8]
Lloh84:
	adrp	x9, _EIO@GOTPAGE
Lloh85:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh86:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w0, #0, #0, eq
	csel	w9, wzr, w0, lt
	tbnz	w9, #31, LBB0_57
; %bb.53:
	mov	x20, x0
	cbz	w9, LBB0_63
LBB0_54:
Lloh87:
	adrp	x8, _termdata@GOTPAGE
Lloh88:
	ldr	x8, [x8, _termdata@GOTPAGEOFF]
Lloh89:
	ldr	x8, [x8]
	cbz	x8, LBB0_56
; %bb.55:
	ldr	x1, [x19]
	mov	w0, #60
	mov	x2, x20
	bl	_Dump
LBB0_56:
Lloh90:
	adrp	x0, _ttyiring@GOTPAGE
Lloh91:
	ldr	x0, [x0, _ttyiring@GOTPAGEOFF]
	mov	x1, x20
	bl	_ring_supplied
	b	LBB0_58
LBB0_57:
Lloh92:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh93:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh94:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_66
LBB0_58:
	mov	w19, #1
LBB0_59:
	ldr	x0, [x26]
Lloh95:
	adrp	x1, _obits@GOTPAGE
Lloh96:
	ldr	x1, [x1, _obits@GOTPAGEOFF]
	bl	_FD_ISSET
	cbz	x0, LBB0_61
; %bb.60:
	ldr	x0, [x26]
Lloh97:
	adrp	x1, _obits@GOTPAGE
Lloh98:
	ldr	x1, [x1, _obits@GOTPAGEOFF]
	bl	_FD_CLR
	bl	_netflush
	orr	w19, w0, w19
LBB0_61:
	ldr	x0, [x25]
Lloh99:
	adrp	x1, _obits@GOTPAGE
Lloh100:
	ldr	x1, [x1, _obits@GOTPAGEOFF]
	bl	_FD_ISSET
	cbz	x0, LBB0_67
; %bb.62:
	ldr	x0, [x25]
Lloh101:
	adrp	x1, _obits@GOTPAGE
Lloh102:
	ldr	x1, [x1, _obits@GOTPAGEOFF]
	bl	_FD_CLR
	ldr	w8, [x23]
Lloh103:
	adrp	x9, _flushout@GOTPAGE
Lloh104:
	ldr	x9, [x9, _flushout@GOTPAGEOFF]
Lloh105:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_ttyflush
	cmp	x0, #0
	cset	w8, gt
	orr	w19, w19, w8
	b	LBB0_67
LBB0_63:
Lloh106:
	adrp	x8, _globalmode@GOTPAGE
Lloh107:
	ldr	x8, [x8, _globalmode@GOTPAGEOFF]
Lloh108:
	ldr	w0, [x8]
	bl	_MODE_LOCAL_CHARS
	cbz	x0, LBB0_66
; %bb.64:
	ldr	x0, [x27]
	bl	_isatty
	cbz	x0, LBB0_66
; %bb.65:
Lloh109:
	adrp	x8, _termEofChar@GOTPAGE
Lloh110:
	ldr	x8, [x8, _termEofChar@GOTPAGEOFF]
	ldrb	w8, [x8]
	ldr	x9, [x19]
	strb	w8, [x9]
	mov	w20, #1
	b	LBB0_54
LBB0_66:
	mov	w19, #-1
LBB0_67:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGot	Lloh97, Lloh98
	.loh AdrpLdrGot	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGot	Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGot	Lloh109, Lloh110
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_process_rings.TimeValue,4,2 ; @process_rings.TimeValue
	.comm	_net,8,3                        ; @net
	.comm	_FD_SETSIZE,8,3                 ; @FD_SETSIZE
	.comm	_tout,8,3                       ; @tout
	.comm	_tin,8,3                        ; @tin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fd too large"

	.comm	_obits,4,2                      ; @obits
	.comm	_ibits,4,2                      ; @ibits
	.comm	_xbits,4,2                      ; @xbits
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_SYNCHing,4,2                   ; @SYNCHing
	.comm	_netiring,8,3                   ; @netiring
.zerofill __DATA,__bss,_process_rings.bogus_oob,1,2 ; @process_rings.bogus_oob
.zerofill __DATA,__bss,_process_rings.first,1,2 ; @process_rings.first
	.comm	_SIOCATMARK,4,2                 ; @SIOCATMARK
	.comm	_MSG_OOB,4,2                    ; @MSG_OOB
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_clocks,16,3                    ; @clocks
	.comm	_didnetreceive,4,2              ; @didnetreceive
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.comm	_netdata,8,3                    ; @netdata
	.comm	_ttyiring,8,3                   ; @ttyiring
	.comm	_EIO,8,3                        ; @EIO
	.comm	_globalmode,4,2                 ; @globalmode
	.comm	_termEofChar,1,0                ; @termEofChar
	.comm	_termdata,8,3                   ; @termdata
	.comm	_flushout,4,2                   ; @flushout
l_str:                                  ; @str
	.asciz	"sleep(5) from telnet, after select\r"

.subsections_via_symbols
