	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rshd_loop
_rshd_loop:                             ## @rshd_loop
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	%edi, %r14d
	movq	_FD_SETSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r9d, %eax
	jle	LBB0_3
## %bb.1:
	cmpl	%r14d, %eax
	jle	LBB0_3
## %bb.2:
	cmpl	%ebx, %eax
	jg	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_4:
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	callq	_FD_ZERO
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_FD_SET
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_FD_SET
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_FD_SET
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_max
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_max
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_RSHD_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSH_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_max
	movl	%eax, %edi
	callq	_malloc
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_syslog_and_die
LBB0_6:
	incl	-64(%rbp)                       ## 4-byte Folded Spill
	movl	$2, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	-68(%rbp), %r12
	jmp	LBB0_7
LBB0_25:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_syslog_and_die
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %eax
	movl	%eax, -68(%rbp)
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_select
	testl	%eax, %eax
	jns	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EINTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_syslog_and_die
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_RSHD_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ivec_in@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_do_read
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_net_write
	jmp	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_syslog_and_die
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r14d, %edi
	callq	_close
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_close
	movl	%r14d, %edi
	leaq	-48(%rbp), %rsi
	callq	_FD_CLR
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_RSH_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_read
	testl	%eax, %eax
	js	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=1
	je	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_ivec_out@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_do_write
	jmp	LBB0_23
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_syslog_and_die
	jmp	LBB0_23
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %edi
	callq	_close
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_close
	movl	%ebx, %edi
	leaq	-48(%rbp), %rsi
	callq	_FD_CLR
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	je	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_7
## %bb.24:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_RSH_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_read
	testl	%eax, %eax
	js	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_7 Depth=1
	je	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_ivec_out@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	4(%rcx), %ecx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_do_write
	jmp	LBB0_7
LBB0_27:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, %edi
	callq	_close
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_close
	movl	%r15d, %edi
	leaq	-48(%rbp), %rsi
	callq	_FD_CLR
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jne	LBB0_7
LBB0_21:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_FD_SETSIZE,4,2                 ## @FD_SETSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fd too large"

	.comm	_RSHD_BUFSIZ,4,2                ## @RSHD_BUFSIZ
	.comm	_RSH_BUFSIZ,4,2                 ## @RSH_BUFSIZ
L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

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

	.comm	_ivec_in,8,3                    ## @ivec_in
L_.str.3:                               ## @.str.3
	.asciz	"read: %s"

	.comm	_ivec_out,8,3                   ## @ivec_out
	.comm	_AUTH_KRB5,8,3                  ## @AUTH_KRB5
	.comm	_auth_method,8,3                ## @auth_method
	.comm	_protocol_version,4,2           ## @protocol_version
	.no_dead_strip	_rshd_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rshd_loop
_rshd_loop:                             ; @rshd_loop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	w4, w1, [sp, #12]               ; 8-byte Folded Spill
	mov	x21, x3
	str	w2, [sp, #20]                   ; 4-byte Folded Spill
	mov	x24, x0
Lloh0:
	adrp	x8, _FD_SETSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FD_SETSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w5
	ccmp	w8, w0, #4, gt
	ccmp	w8, w3, #4, gt
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
	add	x0, sp, #28
	bl	_FD_ZERO
	add	x1, sp, #28
	mov	x0, x24
	bl	_FD_SET
	add	x1, sp, #28
	mov	x0, x21
	bl	_FD_SET
	add	x1, sp, #28
	mov	x0, x19
	bl	_FD_SET
	mov	x0, x21
	mov	x1, x19
	bl	_max
	mov	x1, x0
	mov	x0, x24
	bl	_max
	add	w25, w0, #1
Lloh5:
	adrp	x8, _RSHD_BUFSIZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RSHD_BUFSIZ@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x27, _RSH_BUFSIZ@GOTPAGE
Lloh9:
	ldr	x27, [x27, _RSH_BUFSIZ@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_max
	bl	_malloc
	mov	x26, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_syslog_and_die
LBB0_4:
	mov	w22, #2
Lloh12:
	adrp	x20, _errno@GOTPAGE
Lloh13:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
Lloh14:
	adrp	x23, _ivec_in@GOTPAGE
Lloh15:
	ldr	x23, [x23, _ivec_in@GOTPAGEOFF]
Lloh16:
	adrp	x28, l_.str.3@PAGE
Lloh17:
	add	x28, x28, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x28
	bl	_syslog_and_die
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #28]
	str	w8, [sp, #24]
	add	x1, sp, #24
	mov	x0, x25
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_select
	tbz	w0, #31, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20]
Lloh18:
	adrp	x8, _EINTR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_syslog_and_die
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #24
	mov	x0, x24
	bl	_FD_ISSET
	cbz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh23:
	adrp	x8, _RSHD_BUFSIZ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RSHD_BUFSIZ@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	ldr	x8, [x23]
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x26
	bl	_do_read
	tbnz	w0, #31, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x0
	cbz	w0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [sp, #16]                   ; 4-byte Folded Reload
	mov	x1, x26
	bl	_net_write
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x28
	bl	_syslog_and_die
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	bl	_close
	ldr	w0, [sp, #16]                   ; 4-byte Folded Reload
	bl	_close
	add	x1, sp, #28
	mov	x0, x24
	bl	_FD_CLR
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #24
	mov	x0, x21
	bl	_FD_ISSET
	cbz	x0, LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x27]
	mov	x0, x21
	mov	x1, x26
	bl	_read
	tbnz	w0, #31, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x0
	cbz	w0, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh26:
	adrp	x8, _ivec_out@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ivec_out@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	w3, [x8]
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	mov	x1, x26
	bl	_do_write
	b	LBB0_22
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x28
	bl	_syslog_and_die
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_close
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	bl	_close
	add	x1, sp, #28
	mov	x0, x21
	bl	_FD_CLR
	cmp	w22, #1
	b.eq	LBB0_28
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w22, #1
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #24
	mov	x0, x19
	bl	_FD_ISSET
	cbz	x0, LBB0_6
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x26
	bl	_read
	tbnz	w0, #31, LBB0_5
; %bb.24:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x0
	cbz	w0, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh29:
	adrp	x8, _ivec_out@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ivec_out@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	w3, [x8, #4]
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	mov	x1, x26
	bl	_do_write
	b	LBB0_6
LBB0_26:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_close
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_close
	add	x1, sp, #28
	mov	x0, x19
	bl	_FD_CLR
	cmp	w22, #1
	b.eq	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w22, #1
	b	LBB0_6
LBB0_28:
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_FD_SETSIZE,4,2                 ; @FD_SETSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fd too large"

	.comm	_RSHD_BUFSIZ,4,2                ; @RSHD_BUFSIZ
	.comm	_RSH_BUFSIZ,4,2                 ; @RSH_BUFSIZ
l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

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

	.comm	_ivec_in,8,3                    ; @ivec_in
l_.str.3:                               ; @.str.3
	.asciz	"read: %s"

	.comm	_ivec_out,8,3                   ; @ivec_out
	.comm	_AUTH_KRB5,8,3                  ; @AUTH_KRB5
	.comm	_auth_method,8,3                ; @auth_method
	.comm	_protocol_version,4,2           ; @protocol_version
	.no_dead_strip	_rshd_loop
.subsections_via_symbols
