	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%esi, %eax
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	orl	%edi, %eax
	movq	_net@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	testl	%edi, %edi
	movl	$-1, %esi
	cmovsl	%esi, %edi
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	orl	%edx, %eax
	cmovel	%esi, %edi
	movq	_tout@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	cmovlel	%edi, %eax
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	testl	%r8d, %r8d
	cmovel	%edi, %eax
	movq	_tin@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	cmpl	%eax, %ebx
	cmovlel	%eax, %ebx
	movl	%ecx, %r14d
	testl	%ecx, %ecx
	cmovel	%eax, %ebx
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	incl	%ebx
	movq	_NFDBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_howmany
	movl	%eax, %r12d
	shll	$2, %r12d
	movq	_fdsn@GOTPCREL(%rip), %r13
	cmpl	(%r13), %r12d
	jle	LBB0_14
## %bb.1:
	movq	_ibitsp@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_free
LBB0_3:
	movq	_obitsp@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_free
LBB0_5:
	movq	_xbitsp@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_free
LBB0_7:
	movl	%r12d, (%r13)
	movl	%r12d, %edi
	callq	_malloc
	movq	_ibitsp@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_9:
	movl	(%r13), %edi
	callq	_malloc
	movq	_obitsp@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_11:
	movl	(%r13), %edi
	callq	_malloc
	movq	_xbitsp@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_13:
	movq	_ibitsp@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r13), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_obitsp@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r13), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r12), %rdi
	movl	(%r13), %edx
	xorl	%esi, %esi
	callq	_memset
LBB0_14:
	testl	%r15d, %r15d
	movq	_net@GOTPCREL(%rip), %r13
	je	LBB0_16
## %bb.15:
	movl	(%r13), %edi
	movq	_obitsp@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_FD_SET
LBB0_16:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
## %bb.17:
	movq	_tout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_obitsp@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_FD_SET
LBB0_18:
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.19:
	movq	_tin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ibitsp@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_FD_SET
LBB0_20:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.21:
	movl	(%r13), %edi
	movq	_ibitsp@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_FD_SET
LBB0_22:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_24
## %bb.23:
	movl	(%r13), %edi
	movq	_xbitsp@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_FD_SET
LBB0_24:
	movq	_ibitsp@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	_obitsp@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_xbitsp@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	xorl	%r15d, %r15d
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	leaq	_process_rings.TimeValue(%rip), %rax
	movl	$0, %r8d
	cmovneq	%rax, %r8
	movl	%ebx, %edi
	callq	_select
	testl	%eax, %eax
	js	LBB0_37
## %bb.25:
	movl	(%r13), %edi
	movq	(%r12), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movl	(%r13), %edi
	movq	(%r12), %rsi
	callq	_FD_CLR
	movq	_SYNCHing@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$1, %edi
	callq	_ttyflush
LBB0_27:
	movl	(%r13), %edi
	movq	(%r14), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_40
## %bb.28:
	movl	(%r13), %edi
	movq	(%r14), %rsi
	callq	_FD_CLR
	movq	_netiring@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_ring_empty_consecutive
	movl	%eax, %r15d
	movq	_SYNCHing@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_41
## %bb.29:
	movl	(%r13), %edi
	movq	_SIOCATMARK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	callq	_ioctl
	cmpl	$0, -60(%rbp)
	movl	(%r13), %edi
	movq	(%rbx), %rsi
	je	LBB0_42
## %bb.30:
	movq	_MSG_OOB@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	%r15d, %edx
	callq	_recv
	cmpl	$-1, %eax
	je	LBB0_43
## %bb.31:
	movl	%eax, %r13d
	cmpb	$1, _process_rings.first(%rip)
	je	LBB0_50
## %bb.32:
	testl	%r13d, %r13d
	jle	LBB0_50
## %bb.33:
	movq	_net@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rax
	movl	%r13d, %r12d
	movq	(%rbx), %rsi
	addq	%r12, %rsi
	movl	%r15d, %edx
	subl	%r13d, %edx
	movl	(%rax), %ecx
	callq	_recv
	movl	%eax, %ebx
	cmpl	%r13d, %eax
	jne	LBB0_35
## %bb.34:
	movq	_netiring@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rdi, %r12
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_47
LBB0_35:
	testl	%ebx, %ebx
	js	LBB0_46
## %bb.36:
	addl	%ebx, %r13d
	jmp	LBB0_49
LBB0_37:
	cmpl	$-1, %eax
	jne	LBB0_73
## %bb.38:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EINTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_73
## %bb.39:
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	movl	$5, %edi
	callq	_sleep
	jmp	LBB0_73
LBB0_40:
	xorl	%r12d, %r12d
	jmp	LBB0_61
LBB0_41:
	movl	(%r13), %edi
	movq	(%rbx), %rsi
LBB0_42:
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_recv
	movl	%eax, %r13d
	jmp	LBB0_53
LBB0_43:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movl	$-1, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_53
## %bb.44:
	movq	_net@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	(%rbx), %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_recv
	movl	%eax, %r13d
	movq	_clocks@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	8(%rax), %rcx
	jge	LBB0_50
## %bb.45:
	movl	(%r12), %edi
	callq	_stilloob
	movq	_SYNCHing@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_50
LBB0_46:
	movb	$0, _process_rings.bogus_oob(%rip)
	jmp	LBB0_48
LBB0_47:
	movb	$1, _process_rings.bogus_oob(%rip)
LBB0_48:
	movb	$1, _process_rings.first(%rip)
LBB0_49:
	movq	_netiring@GOTPCREL(%rip), %rbx
LBB0_50:
	cmpb	$1, _process_rings.bogus_oob(%rip)
	jne	LBB0_53
## %bb.51:
	testl	%r13d, %r13d
	jle	LBB0_53
## %bb.52:
	movq	_net@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	addq	(%rbx), %rsi
	subl	%r13d, %r15d
	movl	%r15d, %edx
	callq	_read
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	addl	%ecx, %r13d
LBB0_53:
	movq	_didnetreceive@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_settimer
	testl	%r13d, %r13d
	js	LBB0_56
## %bb.54:
	jne	LBB0_57
## %bb.55:
	movl	$-1, %r15d
	jmp	LBB0_73
LBB0_56:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	movl	$-1, %r15d
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_73
LBB0_57:
	movq	_netdata@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_59
## %bb.58:
	movq	(%rbx), %rsi
	movl	$60, %edi
	movl	%r13d, %edx
	callq	_Dump
LBB0_59:
	movl	$1, %r12d
	testl	%r13d, %r13d
	je	LBB0_61
## %bb.60:
	movq	_netiring@GOTPCREL(%rip), %rdi
	movl	%r13d, %esi
	callq	_ring_supplied
LBB0_61:
	movq	_tin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_68
## %bb.62:
	movq	_tin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %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_67
## %bb.63:
	je	LBB0_74
LBB0_64:
	movq	_termdata@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_66
## %bb.65:
	movq	(%r14), %rsi
	movl	$60, %edi
	movl	%ebx, %edx
	callq	_Dump
LBB0_66:
	movq	_ttyiring@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	callq	_ring_supplied
	movl	$1, %r12d
	jmp	LBB0_68
LBB0_67:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	movl	$-1, %r15d
	movl	$1, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_73
LBB0_68:
	movq	_net@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_obitsp@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_70
## %bb.69:
	movl	(%rbx), %edi
	movq	(%r14), %rsi
	callq	_FD_CLR
	xorl	%eax, %eax
	callq	_netflush
	orl	%eax, %r12d
LBB0_70:
	movq	_tout@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	(%r14), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_72
## %bb.71:
	movl	(%rbx), %edi
	movq	(%r14), %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, %r12d
LBB0_72:
	movl	%r12d, %r15d
LBB0_73:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_74:
	movq	_globalmode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MODE_LOCAL_CHARS
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_73
## %bb.75:
	movq	_tin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_73
## %bb.76:
	movq	_termEofChar@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	(%r14), %rcx
	movb	%al, (%rcx)
	movl	$1, %ebx
	jmp	LBB0_64
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_process_rings.TimeValue,8,2 ## @process_rings.TimeValue
	.comm	_net,4,2                        ## @net
	.comm	_tout,4,2                       ## @tout
	.comm	_tin,4,2                        ## @tin
	.comm	_NFDBITS,4,2                    ## @NFDBITS
	.comm	_fdsn,4,2                       ## @fdsn
	.comm	_ibitsp,8,3                     ## @ibitsp
	.comm	_obitsp,8,3                     ## @obitsp
	.comm	_xbitsp,8,3                     ## @xbitsp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
L_.str.1:                               ## @.str.1
	.asciz	"sleep(5) from telnet, after select: %s\r\n"

	.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
.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	x24, x4
	mov	x23, x3
	mov	x20, x2
	mov	x25, x1
	mov	x22, x0
	orr	w8, w1, w0
Lloh0:
	adrp	x9, _net@GOTPAGE
Lloh1:
	ldr	x9, [x9, _net@GOTPAGEOFF]
	orr	w8, w8, w2
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #0
	csinv	w9, w9, wzr, ge
	cmp	w8, #0
	csinv	w8, w9, wzr, ne
Lloh3:
	adrp	x9, _tout@GOTPAGE
Lloh4:
	ldr	x9, [x9, _tout@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w8
	csel	w9, w9, w8, gt
	cmp	w4, #0
	csel	w8, w8, w9, eq
Lloh6:
	adrp	x9, _tin@GOTPAGE
Lloh7:
	ldr	x9, [x9, _tin@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, w8
	csel	w9, w9, w8, gt
	cmp	w3, #0
	csel	w8, w8, w9, eq
	add	w21, w8, #1
Lloh9:
	adrp	x8, _NFDBITS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NFDBITS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_howmany
	lsl	w26, w0, #2
Lloh12:
	adrp	x27, _fdsn@GOTPAGE
Lloh13:
	ldr	x27, [x27, _fdsn@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh14:
	adrp	x28, _xbitsp@GOTPAGE
Lloh15:
	ldr	x28, [x28, _xbitsp@GOTPAGEOFF]
	cmp	w26, w8
	b.le	LBB0_14
; %bb.1:
Lloh16:
	adrp	x8, _ibitsp@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ibitsp@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_free
LBB0_3:
Lloh19:
	adrp	x8, _obitsp@GOTPAGE
Lloh20:
	ldr	x8, [x8, _obitsp@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_free
LBB0_5:
	ldr	x0, [x28]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_free
LBB0_7:
	str	w26, [x27]
	mov	x0, x26
	bl	_malloc
Lloh22:
	adrp	x8, _ibitsp@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ibitsp@GOTPAGEOFF]
Lloh24:
	str	x0, [x8]
	cbnz	x0, LBB0_9
; %bb.8:
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_9:
	ldr	w0, [x27]
	bl	_malloc
Lloh27:
	adrp	x8, _obitsp@GOTPAGE
Lloh28:
	ldr	x8, [x8, _obitsp@GOTPAGEOFF]
Lloh29:
	str	x0, [x8]
	cbnz	x0, LBB0_11
; %bb.10:
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_11:
	ldr	w0, [x27]
	bl	_malloc
	str	x0, [x28]
	cbnz	x0, LBB0_13
; %bb.12:
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_13:
Lloh34:
	adrp	x8, _ibitsp@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ibitsp@GOTPAGEOFF]
Lloh36:
	ldr	x0, [x8]
	ldr	w2, [x27]
	mov	w1, #0
	bl	_memset
Lloh37:
	adrp	x8, _obitsp@GOTPAGE
Lloh38:
	ldr	x8, [x8, _obitsp@GOTPAGEOFF]
Lloh39:
	ldr	x0, [x8]
	ldr	w2, [x27]
	mov	w1, #0
	bl	_memset
	ldr	x0, [x28]
	ldr	w2, [x27]
	mov	w1, #0
	bl	_memset
LBB0_14:
Lloh40:
	adrp	x27, _net@GOTPAGE
Lloh41:
	ldr	x27, [x27, _net@GOTPAGEOFF]
	cbz	w25, LBB0_16
; %bb.15:
	ldr	w0, [x27]
Lloh42:
	adrp	x8, _obitsp@GOTPAGE
Lloh43:
	ldr	x8, [x8, _obitsp@GOTPAGEOFF]
Lloh44:
	ldr	x1, [x8]
	bl	_FD_SET
LBB0_16:
Lloh45:
	adrp	x26, _tout@GOTPAGE
Lloh46:
	ldr	x26, [x26, _tout@GOTPAGEOFF]
Lloh47:
	adrp	x25, _obitsp@GOTPAGE
Lloh48:
	ldr	x25, [x25, _obitsp@GOTPAGEOFF]
	cbz	w24, LBB0_18
; %bb.17:
	ldr	w0, [x26]
	ldr	x1, [x25]
	bl	_FD_SET
LBB0_18:
Lloh49:
	adrp	x24, _tin@GOTPAGE
Lloh50:
	ldr	x24, [x24, _tin@GOTPAGEOFF]
	cbz	w23, LBB0_20
; %bb.19:
	ldr	w0, [x24]
Lloh51:
	adrp	x8, _ibitsp@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ibitsp@GOTPAGEOFF]
Lloh53:
	ldr	x1, [x8]
	bl	_FD_SET
LBB0_20:
	cbz	w22, LBB0_22
; %bb.21:
	ldr	w0, [x27]
Lloh54:
	adrp	x8, _ibitsp@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ibitsp@GOTPAGEOFF]
Lloh56:
	ldr	x1, [x8]
	bl	_FD_SET
LBB0_22:
	cbz	w20, LBB0_24
; %bb.23:
	ldr	w0, [x27]
	ldr	x1, [x28]
	bl	_FD_SET
LBB0_24:
Lloh57:
	adrp	x22, _ibitsp@GOTPAGE
Lloh58:
	ldr	x22, [x22, _ibitsp@GOTPAGEOFF]
	ldr	x1, [x22]
	ldr	x2, [x25]
	ldr	x3, [x28]
Lloh59:
	adrp	x8, _process_rings.TimeValue@PAGE
Lloh60:
	add	x8, x8, _process_rings.TimeValue@PAGEOFF
	cmp	w19, #0
	csel	x4, xzr, x8, eq
	mov	x0, x21
	bl	_select
	tbnz	w0, #31, LBB0_37
; %bb.25:
	ldr	w0, [x27]
	ldr	x1, [x28]
	bl	_FD_ISSET
Lloh61:
	adrp	x23, _SYNCHing@GOTPAGE
Lloh62:
	ldr	x23, [x23, _SYNCHing@GOTPAGEOFF]
	cbz	x0, LBB0_27
; %bb.26:
	ldr	w0, [x27]
	ldr	x1, [x28]
	bl	_FD_CLR
	mov	w8, #1
	str	w8, [x23]
	mov	w0, #1
	bl	_ttyflush
LBB0_27:
	ldr	w0, [x27]
	ldr	x1, [x22]
	bl	_FD_ISSET
	cbz	x0, LBB0_40
; %bb.28:
	ldr	w0, [x27]
	ldr	x1, [x22]
	bl	_FD_CLR
Lloh63:
	adrp	x19, _netiring@GOTPAGE
Lloh64:
	ldr	x19, [x19, _netiring@GOTPAGEOFF]
	mov	x0, x19
	bl	_ring_empty_consecutive
	mov	x21, x0
	ldr	w8, [x23]
	cbz	w8, LBB0_41
; %bb.29:
	ldr	w0, [x27]
Lloh65:
	adrp	x8, _SIOCATMARK@GOTPAGE
Lloh66:
	ldr	x8, [x8, _SIOCATMARK@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ioctl
	ldr	w8, [sp, #12]
	ldr	w0, [x27]
	ldr	x1, [x19]
	cbz	w8, LBB0_42
; %bb.30:
Lloh68:
	adrp	x22, _MSG_OOB@GOTPAGE
Lloh69:
	ldr	x22, [x22, _MSG_OOB@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x2, x21
	bl	_recv
	cmn	w0, #1
	b.eq	LBB0_44
; %bb.31:
	mov	x20, x0
	adrp	x24, _process_rings.first@PAGE
	ldrb	w8, [x24, _process_rings.first@PAGEOFF]
	cmp	w8, #1
	b.eq	LBB0_52
; %bb.32:
	cmp	w20, #1
	b.lt	LBB0_52
; %bb.33:
	ldr	w0, [x27]
	ldr	x8, [x19]
	mov	w25, w20
	add	x1, x8, x25
	sub	w2, w21, w20
	ldr	w3, [x22]
	bl	_recv
	mov	x22, x0
	cmp	w0, w20
	b.ne	LBB0_35
; %bb.34:
	ldr	x0, [x19]
	add	x1, x0, x25
	mov	x2, x20
	bl	_memcmp
	cbz	x0, LBB0_49
LBB0_35:
	tbnz	w22, #31, LBB0_48
; %bb.36:
	add	w20, w22, w20
	b	LBB0_51
LBB0_37:
	cmn	w0, #1
	b.ne	LBB0_39
; %bb.38:
Lloh70:
	adrp	x8, _errno@GOTPAGE
Lloh71:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh72:
	ldr	x0, [x8]
Lloh73:
	adrp	x8, _EINTR@GOTPAGE
Lloh74:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh75:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_43
LBB0_39:
	mov	w19, #0
	b	LBB0_81
LBB0_40:
	mov	w19, #0
	b	LBB0_65
LBB0_41:
	ldr	w0, [x27]
	ldr	x1, [x19]
LBB0_42:
	mov	x2, x21
	mov	w3, #0
	bl	_recv
	mov	x20, x0
	b	LBB0_56
LBB0_43:
	bl	_strerror
	mov	x1, x0
Lloh76:
	adrp	x0, l_.str.1@PAGE
Lloh77:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mov	w0, #5
	bl	_sleep
	mov	w19, #0
	b	LBB0_81
LBB0_44:
Lloh78:
	adrp	x8, _errno@GOTPAGE
Lloh79:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh80:
	ldr	x8, [x8]
Lloh81:
	adrp	x9, _EINVAL@GOTPAGE
Lloh82:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh83:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_47
; %bb.45:
	ldr	w0, [x27]
	ldr	x1, [x19]
	mov	x2, x21
	mov	w3, #0
	bl	_recv
	mov	x20, x0
Lloh84:
	adrp	x8, _clocks@GOTPAGE
Lloh85:
	ldr	x8, [x8, _clocks@GOTPAGEOFF]
	ldp	x9, x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_53
; %bb.46:
	ldr	w0, [x27]
	bl	_stilloob
	str	w0, [x23]
	b	LBB0_53
LBB0_47:
	mov	w20, #-1
Lloh86:
	adrp	x22, _ibitsp@GOTPAGE
Lloh87:
	ldr	x22, [x22, _ibitsp@GOTPAGEOFF]
	b	LBB0_56
LBB0_48:
	adrp	x8, _process_rings.bogus_oob@PAGE
	strb	wzr, [x8, _process_rings.bogus_oob@PAGEOFF]
	mov	w8, #1
	b	LBB0_50
LBB0_49:
	mov	w8, #1
	adrp	x9, _process_rings.bogus_oob@PAGE
	strb	w8, [x9, _process_rings.bogus_oob@PAGEOFF]
LBB0_50:
	strb	w8, [x24, _process_rings.first@PAGEOFF]
LBB0_51:
Lloh88:
	adrp	x25, _obitsp@GOTPAGE
Lloh89:
	ldr	x25, [x25, _obitsp@GOTPAGEOFF]
LBB0_52:
Lloh90:
	adrp	x24, _tin@GOTPAGE
Lloh91:
	ldr	x24, [x24, _tin@GOTPAGEOFF]
LBB0_53:
Lloh92:
	adrp	x22, _ibitsp@GOTPAGE
Lloh93:
	ldr	x22, [x22, _ibitsp@GOTPAGEOFF]
	adrp	x8, _process_rings.bogus_oob@PAGE
	ldrb	w8, [x8, _process_rings.bogus_oob@PAGEOFF]
	cmp	w8, #1
	b.ne	LBB0_56
; %bb.54:
	cmp	w20, #1
	b.lt	LBB0_56
; %bb.55:
	ldr	w0, [x27]
	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_56:
Lloh94:
	adrp	x8, _didnetreceive@GOTPAGE
Lloh95:
	ldr	x8, [x8, _didnetreceive@GOTPAGEOFF]
Lloh96:
	ldr	w0, [x8]
	bl	_settimer
	tbnz	w20, #31, LBB0_58
; %bb.57:
	cbnz	w20, LBB0_60
	b	LBB0_80
LBB0_58:
Lloh97:
	adrp	x8, _errno@GOTPAGE
Lloh98:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh99:
	ldr	x8, [x8]
Lloh100:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh101:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh102:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_80
; %bb.59:
	mov	w20, #0
LBB0_60:
Lloh103:
	adrp	x8, _netdata@GOTPAGE
Lloh104:
	ldr	x8, [x8, _netdata@GOTPAGEOFF]
Lloh105:
	ldr	x8, [x8]
	cbz	x8, LBB0_62
; %bb.61:
	ldr	x1, [x19]
	mov	w0, #60
	mov	x2, x20
	bl	_Dump
LBB0_62:
	cbz	w20, LBB0_64
; %bb.63:
Lloh106:
	adrp	x0, _netiring@GOTPAGE
Lloh107:
	ldr	x0, [x0, _netiring@GOTPAGEOFF]
	mov	x1, x20
	bl	_ring_supplied
LBB0_64:
	mov	w19, #1
LBB0_65:
	ldr	w0, [x24]
	ldr	x1, [x22]
	bl	_FD_ISSET
	cbz	x0, LBB0_73
; %bb.66:
	ldr	w0, [x24]
	ldr	x1, [x22]
	bl	_FD_CLR
Lloh108:
	adrp	x19, _ttyiring@GOTPAGE
Lloh109:
	ldr	x19, [x19, _ttyiring@GOTPAGEOFF]
	ldr	x20, [x19]
	mov	x0, x19
	bl	_ring_empty_consecutive
	mov	x1, x0
	mov	x0, x20
	bl	_TerminalRead
Lloh110:
	adrp	x8, _errno@GOTPAGE
Lloh111:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh112:
	ldr	x8, [x8]
Lloh113:
	adrp	x9, _EIO@GOTPAGE
Lloh114:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh115:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w0, #0, #0, eq
	csel	w9, wzr, w0, lt
	tbnz	w9, #31, LBB0_71
; %bb.67:
	mov	x20, x0
	cbz	w9, LBB0_77
LBB0_68:
Lloh116:
	adrp	x8, _termdata@GOTPAGE
Lloh117:
	ldr	x8, [x8, _termdata@GOTPAGEOFF]
Lloh118:
	ldr	x8, [x8]
	cbz	x8, LBB0_70
; %bb.69:
	ldr	x1, [x19]
	mov	w0, #60
	mov	x2, x20
	bl	_Dump
LBB0_70:
Lloh119:
	adrp	x0, _ttyiring@GOTPAGE
Lloh120:
	ldr	x0, [x0, _ttyiring@GOTPAGEOFF]
	mov	x1, x20
	bl	_ring_supplied
	b	LBB0_72
LBB0_71:
Lloh121:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh122:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh123:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_80
LBB0_72:
	mov	w19, #1
LBB0_73:
	ldr	w0, [x27]
	ldr	x1, [x25]
	bl	_FD_ISSET
	cbz	x0, LBB0_75
; %bb.74:
	ldr	w0, [x27]
	ldr	x1, [x25]
	bl	_FD_CLR
	bl	_netflush
	orr	w19, w0, w19
LBB0_75:
	ldr	w0, [x26]
	ldr	x1, [x25]
	bl	_FD_ISSET
	cbz	x0, LBB0_81
; %bb.76:
	ldr	w0, [x26]
	ldr	x1, [x25]
	bl	_FD_CLR
	ldr	w8, [x23]
Lloh124:
	adrp	x9, _flushout@GOTPAGE
Lloh125:
	ldr	x9, [x9, _flushout@GOTPAGEOFF]
Lloh126:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_ttyflush
	cmp	x0, #0
	cset	w8, gt
	orr	w19, w19, w8
	b	LBB0_81
LBB0_77:
Lloh127:
	adrp	x8, _globalmode@GOTPAGE
Lloh128:
	ldr	x8, [x8, _globalmode@GOTPAGEOFF]
Lloh129:
	ldr	w0, [x8]
	bl	_MODE_LOCAL_CHARS
	cbz	x0, LBB0_80
; %bb.78:
	ldr	w0, [x24]
	bl	_isatty
	cbz	x0, LBB0_80
; %bb.79:
Lloh130:
	adrp	x8, _termEofChar@GOTPAGE
Lloh131:
	ldr	x8, [x8, _termEofChar@GOTPAGEOFF]
	ldrb	w8, [x8]
	ldr	x9, [x19]
	strb	w8, [x9]
	mov	w20, #1
	b	LBB0_68
LBB0_80:
	mov	w19, #-1
LBB0_81:
	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	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGot	Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGot	Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGot	Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpLdrGot	Lloh130, Lloh131
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_process_rings.TimeValue,8,2 ; @process_rings.TimeValue
	.comm	_net,4,2                        ; @net
	.comm	_tout,4,2                       ; @tout
	.comm	_tin,4,2                        ; @tin
	.comm	_NFDBITS,4,2                    ; @NFDBITS
	.comm	_fdsn,4,2                       ; @fdsn
	.comm	_ibitsp,8,3                     ; @ibitsp
	.comm	_obitsp,8,3                     ; @obitsp
	.comm	_xbitsp,8,3                     ; @xbitsp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
l_.str.1:                               ; @.str.1
	.asciz	"sleep(5) from telnet, after select: %s\r\n"

	.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
.subsections_via_symbols
