	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proto
_proto:                                 ## @proto
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	$4, -56(%rbp)
	leaq	-96(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	%r12d, %edi
	callq	_getsockname
	testq	%rax, %rax
	js	LBB0_7
## %bb.1:
	movl	$4, -56(%rbp)
	leaq	-88(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	%r12d, %edi
	callq	_getpeername
	testq	%rax, %rax
	js	LBB0_16
## %bb.2:
	cmpl	$-1, %r13d
	je	LBB0_18
## %bb.3:
	movl	$4, -56(%rbp)
	leaq	-80(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	%r13d, %edi
	callq	_getsockname
	testq	%rax, %rax
	js	LBB0_20
## %bb.4:
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movl	$1, %r15d
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_listen
	testq	%rax, %rax
	js	LBB0_22
## %bb.5:
	leaq	-80(%rbp), %rdi
	callq	_socket_get_port
	movl	%eax, %edi
	callq	_ntohs
	leaq	L_.str.4(%rip), %rdx
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	callq	_snprintf
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %ebx
	incl	%ebx
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_net_write
	cmpl	%ebx, %eax
	jne	LBB0_23
## %bb.6:
	movq	_FD_SETSIZE@GOTPCREL(%rip), %r15
	leaq	-60(%rbp), %rbx
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_42
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	cmpl	%r13d, %eax
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r12d, %eax
	jg	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_errx
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_FD_SET
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_FD_SET
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_max
	leaq	1(%rax), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_select
	testl	%eax, %eax
	js	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	jne	LBB0_25
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_9
## %bb.15:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	movl	%r13d, %edi
	callq	_close
	movl	$-1, %r13d
	jmp	LBB0_26
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
LBB0_17:
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_30
LBB0_18:
	leaq	L_.str.10(%rip), %rsi
	movl	%r12d, %edi
	movl	$2, %edx
	callq	_net_write
	movl	$-1, %r13d
	cmpl	$2, %eax
	je	LBB0_27
## %bb.19:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_21
LBB0_20:
	leaq	L_.str.2(%rip), %rdi
LBB0_21:
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_30
LBB0_22:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_31
LBB0_23:
	leaq	L_.str.5(%rip), %rdi
LBB0_24:
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_28
LBB0_25:
	movl	%r13d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_accept
	movl	%r13d, %edi
	movl	%eax, %r13d
	callq	_close
	testl	%r13d, %r13d
	js	LBB0_44
LBB0_26:
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
LBB0_27:
	movq	24(%rbp), %rax
	leaq	-96(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	movl	%r12d, %edi
	movq	%rbx, %rcx
	movq	-120(%rbp), %r8                 ## 8-byte Reload
	movq	-128(%rbp), %r9                 ## 8-byte Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	16(%rbp)
	callq	*%rax
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_33
LBB0_28:
	movl	%r13d, %edi
LBB0_29:
	callq	_close
LBB0_30:
	movl	$1, %r15d
LBB0_31:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_52
## %bb.32:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	movl	%r13d, -72(%rbp)                ## 4-byte Spill
	movq	%r15, %r13
	leaq	-49(%rbp), %rsi
	movl	$1, %r15d
	movl	%r12d, %edi
	movl	$1, %edx
	callq	_net_read
	testl	%eax, %eax
	js	LBB0_40
## %bb.34:
	je	LBB0_43
## %bb.35:
	cmpb	$0, -49(%rbp)
	je	LBB0_45
## %bb.36:
	leaq	L_.str.13(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_warnx
	movl	%r12d, %edi
	movq	%r13, %rbx
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_read
	testl	%eax, %eax
	jle	LBB0_39
## %bb.37:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %r15
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_read
	testl	%eax, %eax
	jg	LBB0_38
LBB0_39:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.14(%rip), %rsi
	movl	$1, %r15d
	movl	$1, %edx
	callq	_write
	jmp	LBB0_41
LBB0_40:
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
LBB0_41:
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_close
	jmp	LBB0_31
LBB0_42:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_24
LBB0_43:
	leaq	L_.str.12(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_warnx
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_29
LBB0_44:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_21
LBB0_45:
	movq	_sock_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_51
## %bb.46:
	movl	$1, -60(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_SO_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-60(%rbp), %rcx
	movl	%r12d, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	jns	LBB0_48
## %bb.47:
	leaq	L_.str.15(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
LBB0_48:
	cmpl	$-1, %ebx
	je	LBB0_51
## %bb.49:
	movl	(%r14), %esi
	movl	(%r15), %edx
	leaq	-60(%rbp), %rcx
	movl	%ebx, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	jns	LBB0_51
## %bb.50:
	leaq	L_.str.16(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
LBB0_51:
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_rsh_loop
	movl	%eax, %r15d
	jmp	LBB0_31
LBB0_52:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getsockname(%s)"

L_.str.1:                               ## @.str.1
	.asciz	"getpeername(%s)"

L_.str.2:                               ## @.str.2
	.asciz	"getsockname"

L_.str.3:                               ## @.str.3
	.asciz	"listen"

L_.str.4:                               ## @.str.4
	.asciz	"%u"

L_.str.5:                               ## @.str.5
	.asciz	"write"

	.comm	_FD_SETSIZE,4,2                 ## @FD_SETSIZE
L_.str.6:                               ## @.str.6
	.asciz	"fd too large"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
L_.str.7:                               ## @.str.7
	.asciz	"select"

L_.str.8:                               ## @.str.8
	.asciz	"accept"

L_.str.9:                               ## @.str.9
	.asciz	"socket closed"

L_.str.10:                              ## @.str.10
	.asciz	"0"

L_.str.11:                              ## @.str.11
	.asciz	"read"

L_.str.12:                              ## @.str.12
	.asciz	"unexpected EOF from %s"

L_.str.13:                              ## @.str.13
	.asciz	"Error from rshd at %s:"

	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
L_.str.14:                              ## @.str.14
	.asciz	"\n"

	.comm	_sock_debug,8,3                 ## @sock_debug
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_DEBUG,4,2                   ## @SO_DEBUG
L_.str.15:                              ## @.str.15
	.asciz	"setsockopt remote"

L_.str.16:                              ## @.str.16
	.asciz	"setsockopt stderr"

	.no_dead_strip	_proto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proto
_proto:                                 ; @proto
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #48
	stur	x7, [x29, #-128]                ; 8-byte Folded Spill
	mov	x25, x6
	mov	x24, x5
	mov	x27, x4
	mov	x26, x3
	mov	x22, x2
	mov	x28, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	mov	w23, #4
	stur	w23, [x29, #-116]
	sub	x1, x29, #96
	sub	x2, x29, #116
	bl	_getsockname
	tbnz	x0, #63, LBB0_7
; %bb.1:
	stur	w23, [x29, #-116]
	sub	x1, x29, #104
	sub	x2, x29, #116
	mov	x0, x19
	bl	_getpeername
	tbnz	x0, #63, LBB0_15
; %bb.2:
	cmn	w28, #1
	b.eq	LBB0_17
; %bb.3:
	mov	w8, #4
	stur	w8, [x29, #-116]
	sub	x1, x29, #112
	sub	x2, x29, #116
	mov	x0, x28
	bl	_getsockname
	tbnz	x0, #63, LBB0_21
; %bb.4:
	mov	x0, x28
	mov	w1, #1
	bl	_listen
	tbnz	x0, #63, LBB0_23
; %bb.5:
	sub	x0, x29, #112
	bl	_socket_get_port
	bl	_ntohs
	mov	x3, x0
Lloh8:
	adrp	x2, l_.str.4@PAGE
Lloh9:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	bl	_snprintf
	mov	x0, x21
	bl	_strlen
	add	w23, w0, #1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_net_write
	cmp	w0, w23
	b.ne	LBB0_25
; %bb.6:
Lloh10:
	adrp	x23, _FD_SETSIZE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _FD_SETSIZE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	str	x22, [sp, #-16]!
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_16
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _EINTR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_41
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	cmp	w8, w28
	ccmp	w8, w19, #4, gt
	b.gt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #1
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_errx
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	sub	x0, x29, #120
	bl	_FD_ZERO
	sub	x1, x29, #120
	mov	x0, x28
	bl	_FD_SET
	sub	x1, x29, #120
	mov	x0, x19
	bl	_FD_SET
	mov	x0, x28
	mov	x1, x19
	bl	_max
	add	x0, x0, #1
	sub	x1, x29, #120
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_select
	tbnz	w0, #31, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	x1, x29, #120
	mov	x0, x28
	bl	_FD_ISSET
	cbnz	x0, LBB0_38
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	x1, x29, #120
	mov	x0, x19
	bl	_FD_ISSET
	cbz	x0, LBB0_9
; %bb.14:
Lloh22:
	adrp	x0, l_.str.9@PAGE
Lloh23:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_warnx
	mov	x0, x28
	bl	_close
	b	LBB0_18
LBB0_15:
	str	x22, [sp, #-16]!
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_16:
	bl	_warn
	add	sp, sp, #16
	b	LBB0_28
LBB0_17:
Lloh26:
	adrp	x1, l_.str.10@PAGE
Lloh27:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	mov	w2, #2
	bl	_net_write
	cmp	w0, #2
	b.ne	LBB0_22
LBB0_18:
	mov	w23, #-1
LBB0_19:
	sub	x1, x29, #96
	sub	x2, x29, #104
	mov	x0, x19
	mov	x3, x22
	mov	x4, x27
	mov	x5, x26
	mov	x6, x25
	mov	x7, x24
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	blr	x8
	cbz	w0, LBB0_31
LBB0_20:
	mov	x0, x23
	b	LBB0_27
LBB0_21:
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_24
LBB0_22:
Lloh30:
	adrp	x0, l_.str.5@PAGE
Lloh31:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_24
LBB0_23:
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_24:
	bl	_warn
	b	LBB0_28
LBB0_25:
Lloh34:
	adrp	x0, l_.str.5@PAGE
Lloh35:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_26:
	bl	_warn
	mov	x0, x28
LBB0_27:
	bl	_close
LBB0_28:
	mov	w19, #1
LBB0_29:
	ldur	x8, [x29, #-88]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_50
; %bb.30:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_31:
	sub	x1, x29, #89
	mov	x0, x19
	mov	w2, #1
	bl	_net_read
	tbnz	w0, #31, LBB0_40
; %bb.32:
	cbz	w0, LBB0_42
; %bb.33:
	ldurb	w8, [x29, #-89]
	cbz	w8, LBB0_43
; %bb.34:
	str	x22, [sp, #-16]!
Lloh39:
	adrp	x0, l_.str.13@PAGE
Lloh40:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_warnx
	add	sp, sp, #16
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_read
Lloh41:
	adrp	x22, _STDOUT_FILENO@GOTPAGE
Lloh42:
	ldr	x22, [x22, _STDOUT_FILENO@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_37
; %bb.35:
	mov	x2, x0
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x21
	bl	_write
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_read
	mov	x2, x0
	cmp	w0, #0
	b.gt	LBB0_36
LBB0_37:
	ldr	w0, [x22]
Lloh43:
	adrp	x1, l_.str.14@PAGE
Lloh44:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	w19, #1
	mov	w2, #1
	bl	_write
	mov	x0, x23
	bl	_close
	b	LBB0_29
LBB0_38:
	mov	x0, x28
	mov	x1, #0
	mov	x2, #0
	bl	_accept
	mov	x23, x0
	mov	x0, x28
	bl	_close
	tbz	w23, #31, LBB0_19
; %bb.39:
Lloh45:
	adrp	x0, l_.str.8@PAGE
Lloh46:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_24
LBB0_40:
Lloh47:
	adrp	x0, l_.str.11@PAGE
Lloh48:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_warn
	b	LBB0_20
LBB0_41:
Lloh49:
	adrp	x0, l_.str.7@PAGE
Lloh50:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_26
LBB0_42:
	str	x22, [sp, #-16]!
Lloh51:
	adrp	x0, l_.str.12@PAGE
Lloh52:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_warnx
	add	sp, sp, #16
	b	LBB0_20
LBB0_43:
Lloh53:
	adrp	x8, _sock_debug@GOTPAGE
Lloh54:
	ldr	x8, [x8, _sock_debug@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	cbz	x8, LBB0_49
; %bb.44:
	mov	w8, #1
	stur	w8, [x29, #-120]
Lloh56:
	adrp	x20, _SOL_SOCKET@GOTPAGE
Lloh57:
	ldr	x20, [x20, _SOL_SOCKET@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh58:
	adrp	x21, _SO_DEBUG@GOTPAGE
Lloh59:
	ldr	x21, [x21, _SO_DEBUG@GOTPAGEOFF]
	ldr	w2, [x21]
	sub	x3, x29, #120
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	tbz	x0, #63, LBB0_46
; %bb.45:
Lloh60:
	adrp	x0, l_.str.15@PAGE
Lloh61:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_warn
LBB0_46:
	cmn	w23, #1
	b.eq	LBB0_49
; %bb.47:
	ldr	w1, [x20]
	ldr	w2, [x21]
	sub	x3, x29, #120
	mov	x0, x23
	mov	w4, #4
	bl	_setsockopt
	tbz	x0, #63, LBB0_49
; %bb.48:
Lloh62:
	adrp	x0, l_.str.16@PAGE
Lloh63:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_warn
LBB0_49:
	mov	x0, x19
	mov	x1, x23
	bl	_rsh_loop
	mov	x19, x0
	b	LBB0_29
LBB0_50:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getsockname(%s)"

l_.str.1:                               ; @.str.1
	.asciz	"getpeername(%s)"

l_.str.2:                               ; @.str.2
	.asciz	"getsockname"

l_.str.3:                               ; @.str.3
	.asciz	"listen"

l_.str.4:                               ; @.str.4
	.asciz	"%u"

l_.str.5:                               ; @.str.5
	.asciz	"write"

	.comm	_FD_SETSIZE,4,2                 ; @FD_SETSIZE
l_.str.6:                               ; @.str.6
	.asciz	"fd too large"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
l_.str.7:                               ; @.str.7
	.asciz	"select"

l_.str.8:                               ; @.str.8
	.asciz	"accept"

l_.str.9:                               ; @.str.9
	.asciz	"socket closed"

l_.str.10:                              ; @.str.10
	.asciz	"0"

l_.str.11:                              ; @.str.11
	.asciz	"read"

l_.str.12:                              ; @.str.12
	.asciz	"unexpected EOF from %s"

l_.str.13:                              ; @.str.13
	.asciz	"Error from rshd at %s:"

	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
l_.str.14:                              ; @.str.14
	.asciz	"\n"

	.comm	_sock_debug,8,3                 ; @sock_debug
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_DEBUG,4,2                   ; @SO_DEBUG
l_.str.15:                              ; @.str.15
	.asciz	"setsockopt remote"

l_.str.16:                              ; @.str.16
	.asciz	"setsockopt stderr"

	.no_dead_strip	_proto
.subsections_via_symbols
