	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function server_Read
_server_Read:                           ## @server_Read
	.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
	movq	%rdx, %r13
	movq	%rsi, %r14
	callq	_descriptor2server
	movl	$4, -64(%rbp)
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	js	LBB0_21
## %bb.1:
	movq	%rax, %r12
	movq	%r13, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_21
## %bb.2:
	movq	(%r12), %rdi
	leaq	-48(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	callq	_accept
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movl	%eax, %r15d
	cmpq	$0, -48(%rbp)
	je	LBB0_20
## %bb.4:
	movl	-40(%rbp), %eax
	cmpl	$130, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.7:
	movq	_LogPHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_13
LBB0_8:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_21
LBB0_9:
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_ncpaddr_setsa
	movl	-48(%rbp), %edi
	callq	_ntohs
	cmpl	$1023, %eax                     ## imm = 0x3FF
	jg	LBB0_12
## %bb.10:
	movq	_LogALERT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	-56(%rbp), %rdi
	callq	_ncpaddr_ntoa
	movq	%rax, %rbx
	movl	-48(%rbp), %edi
	callq	_ntohs
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_20
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, %edi
	movl	$22, %edx
	jmp	LBB0_19
LBB0_12:
	movq	_LogPHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	-56(%rbp), %rdi
	callq	_ncpaddr_ntoa
	movq	%rax, %rbx
	movl	-48(%rbp), %edi
	callq	_ntohs
	leaq	L_.str.3(%rip), %rsi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_log_Printf
LBB0_13:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_prompt_Create
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	%rax, %rbx
	movl	-40(%rbp), %eax
	cmpl	$130, %eax
	je	LBB0_27
## %bb.15:
	cmpl	$129, %eax
	je	LBB0_28
## %bb.16:
	cmpl	$128, %eax
	jne	LBB0_30
## %bb.17:
	leaq	L_.str.6(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	24(%rbx), %rdi
	movl	8(%r12), %esi
	movl	$7, %edx
	callq	_strncpy
	movq	24(%rbx), %rax
	movb	$0, 7(%rax)
	jmp	LBB0_30
LBB0_18:
	leaq	L_.str.5(%rip), %rsi
	movl	%r15d, %edi
	movl	$20, %edx
LBB0_19:
	callq	_write
LBB0_20:
	movl	%r15d, %edi
	callq	_close
LBB0_21:
	movq	_log_PromptListChanged@GOTPCREL(%rip), %r15
	movq	$0, (%r15)
	xorl	%eax, %eax
	callq	_log_PromptList
	testq	%rax, %rax
	je	LBB0_26
## %bb.22:
	movq	%rax, %rbx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_26
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_descriptor_IsSet
	testq	%rax, %rax
	je	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_descriptor_Read
	cmpq	$0, (%r15)
	je	LBB0_23
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	leaq	L_.str.7(%rip), %rax
	jmp	LBB0_29
LBB0_28:
	leaq	L_.str.9(%rip), %rax
LBB0_29:
	movq	%rax, 16(%rbx)
	movq	24(%rbx), %r15
	leaq	-56(%rbp), %rdi
	callq	_ncpaddr_ntoa
	movq	%rax, %r12
	movl	-48(%rbp), %edi
	callq	_ntohs
	leaq	L_.str.8(%rip), %rdx
	movq	%r15, %rdi
	movl	$8, %esi
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_snprintf
LBB0_30:
	movq	%rbx, %rdi
	callq	_prompt_TtyCommandMode
	movq	%rbx, %rdi
	callq	_prompt_Required
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_LogERROR,4,2                   ## @LogERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"server_Read: accept(): %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_LogPHASE,4,2                   ## @LogPHASE
L_.str.1:                               ## @.str.1
	.asciz	"Connected to local client.\n"

	.comm	_LogALERT,4,2                   ## @LogALERT
L_.str.2:                               ## @.str.2
	.asciz	"Rejected client connection from %s:%u(invalid port number) !\n"

L_.str.3:                               ## @.str.3
	.asciz	"Connected to client from %s:%u\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unrecognised access !\n"

L_.str.5:                               ## @.str.5
	.asciz	"Connection refused.\n"

L_.str.6:                               ## @.str.6
	.asciz	"local"

L_.str.7:                               ## @.str.7
	.asciz	"ip"

L_.str.8:                               ## @.str.8
	.asciz	"%s:%u"

L_.str.9:                               ## @.str.9
	.asciz	"ip6"

	.comm	_log_PromptListChanged,8,3      ## @log_PromptListChanged
	.no_dead_strip	_server_Read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function server_Read
_server_Read:                           ; @server_Read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x1
	bl	_descriptor2server
	mov	x22, x0
	mov	w8, #4
	str	w8, [sp, #20]
	ldr	x0, [x0]
	tbnz	x0, #63, LBB0_21
; %bb.1:
	mov	x1, x19
	bl	_FD_ISSET
	cbz	x0, LBB0_21
; %bb.2:
	ldr	x0, [x22]
	add	x1, sp, #24
	add	x2, sp, #20
	bl	_accept
	tbnz	w0, #31, LBB0_8
; %bb.3:
	mov	x21, x0
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_20
; %bb.4:
	ldr	w8, [sp, #32]
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.5:
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.7:
Lloh0:
	adrp	x8, _LogPHASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LogPHASE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_8:
Lloh5:
	adrp	x8, _LogERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_log_Printf
	b	LBB0_21
LBB0_9:
	add	x0, sp, #16
	add	x1, sp, #24
	bl	_ncpaddr_setsa
	ldr	w0, [sp, #24]
	bl	_ntohs
	cmp	w0, #1023
	b.gt	LBB0_12
; %bb.10:
Lloh13:
	adrp	x8, _LogALERT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LogALERT@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	add	x0, sp, #16
	bl	_ncpaddr_ntoa
	mov	x23, x0
	ldr	w0, [sp, #24]
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_log_Printf
	b	LBB0_20
LBB0_11:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	w2, #22
	b	LBB0_19
LBB0_12:
Lloh20:
	adrp	x8, _LogPHASE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LogPHASE@GOTPAGEOFF]
Lloh22:
	ldr	w23, [x8]
	add	x0, sp, #16
	bl	_ncpaddr_ntoa
	mov	x24, x0
	ldr	w0, [sp, #24]
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
LBB0_13:
	bl	_log_Printf
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_prompt_Create
	cbz	x0, LBB0_18
; %bb.14:
	mov	x23, x0
	ldr	w8, [sp, #32]
	cmp	w8, #130
	b.eq	LBB0_27
; %bb.15:
	cmp	w8, #129
	b.eq	LBB0_28
; %bb.16:
	cmp	w8, #128
	b.ne	LBB0_30
; %bb.17:
Lloh25:
	adrp	x8, l_.str.6@PAGE
Lloh26:
	add	x8, x8, l_.str.6@PAGEOFF
	str	x8, [x23, #16]
	ldr	x0, [x23, #24]
	ldr	w1, [x22, #8]
	mov	w2, #7
	bl	_strncpy
	ldr	x8, [x23, #24]
	strb	wzr, [x8, #7]
	b	LBB0_30
LBB0_18:
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	w2, #20
LBB0_19:
	bl	_write
LBB0_20:
	mov	x0, x21
	bl	_close
LBB0_21:
Lloh29:
	adrp	x22, _log_PromptListChanged@GOTPAGE
Lloh30:
	ldr	x22, [x22, _log_PromptListChanged@GOTPAGEOFF]
	str	xzr, [x22]
	bl	_log_PromptList
	cbz	x0, LBB0_26
; %bb.22:
	mov	x21, x0
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_26
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_descriptor_IsSet
	cbz	x0, LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_descriptor_Read
	ldr	x8, [x22]
	cbz	x8, LBB0_23
LBB0_26:
	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
	add	sp, sp, #96
	ret
LBB0_27:
Lloh31:
	adrp	x8, l_.str.7@PAGE
Lloh32:
	add	x8, x8, l_.str.7@PAGEOFF
	b	LBB0_29
LBB0_28:
Lloh33:
	adrp	x8, l_.str.9@PAGE
Lloh34:
	add	x8, x8, l_.str.9@PAGEOFF
LBB0_29:
	str	x8, [x23, #16]
	ldr	x21, [x23, #24]
	add	x0, sp, #16
	bl	_ncpaddr_ntoa
	mov	x22, x0
	ldr	w0, [sp, #24]
	bl	_ntohs
	mov	x4, x0
Lloh35:
	adrp	x2, l_.str.8@PAGE
Lloh36:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x21
	mov	w1, #8
	mov	x3, x22
	bl	_snprintf
LBB0_30:
	mov	x0, x23
	bl	_prompt_TtyCommandMode
	mov	x0, x23
	bl	_prompt_Required
	b	LBB0_21
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_LogERROR,4,2                   ; @LogERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"server_Read: accept(): %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_LogPHASE,4,2                   ; @LogPHASE
l_.str.1:                               ; @.str.1
	.asciz	"Connected to local client.\n"

	.comm	_LogALERT,4,2                   ; @LogALERT
l_.str.2:                               ; @.str.2
	.asciz	"Rejected client connection from %s:%u(invalid port number) !\n"

l_.str.3:                               ; @.str.3
	.asciz	"Connected to client from %s:%u\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unrecognised access !\n"

l_.str.5:                               ; @.str.5
	.asciz	"Connection refused.\n"

l_.str.6:                               ; @.str.6
	.asciz	"local"

l_.str.7:                               ; @.str.7
	.asciz	"ip"

l_.str.8:                               ; @.str.8
	.asciz	"%s:%u"

l_.str.9:                               ; @.str.9
	.asciz	"ip6"

	.comm	_log_PromptListChanged,8,3      ; @log_PromptListChanged
	.no_dead_strip	_server_Read
.subsections_via_symbols
