	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dconschat_accept_socket
_dconschat_accept_socket:               ## @dconschat_accept_socket
	.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	$2088, %rsp                     ## imm = 0x828
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rsi), %rax
	movl	4(%rax), %ecx
	movl	%ecx, -2112(%rbp)
	movl	32(%rsi), %edi
	movl	(%rax), %esi
	leaq	-2112(%rbp), %rdx
	callq	_accept
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
LBB0_4:
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_fcntl
	movq	_O_NDELAY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_F_SETFL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_fcntl
	movq	%rbx, %rdi
	callq	_IS_CONSOLE
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_F_TELNET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_7
## %bb.6:
	movq	_IAC@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -2096(%rbp)
	movq	_WILL@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, -2095(%rbp)
	movq	_TELOPT_SGA@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	movb	%dl, -2094(%rbp)
	movb	%al, -2105(%rbp)
	movq	_DONT@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	movb	%dl, -2104(%rbp)
	movq	_TELOPT_LINEMODE@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	movb	%dl, -2103(%rbp)
	movb	%al, -2102(%rbp)
	movb	%cl, -2101(%rbp)
	movq	_TELOPT_ECHO@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, -2100(%rbp)
	movb	%al, -2099(%rbp)
	movq	_DO@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -2098(%rbp)
	movq	_TELOPT_BINARY@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -2097(%rbp)
	leaq	-2096(%rbp), %rsi
	movl	%r15d, %edi
	movl	$3, %edx
	callq	_write
	leaq	-2105(%rbp), %rsi
	movl	%r15d, %edi
	movl	$3, %edx
	callq	_write
	leaq	-2102(%rbp), %rsi
	movl	%r15d, %edi
	movl	$3, %edx
	callq	_write
	leaq	-2099(%rbp), %rsi
	movl	%r15d, %edi
	movl	$3, %edx
	callq	_write
	movq	$0, 16(%rbx)
LBB0_7:
	movq	%rbx, %rdi
	callq	_IS_GDB
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	%rbx, -2120(%rbp)               ## 8-byte Spill
	movq	_DCONS_GDB@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-2096(%rbp), %rdx
	movq	%r12, %rdi
	movl	$2048, %ecx                     ## imm = 0x800
	callq	_dconschat_read_dcons
	testl	%eax, %eax
	jle	LBB0_13
## %bb.9:
	leaq	-2096(%rbp), %rbx
	leaq	L_.str.2(%rip), %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movl	$2048, %ecx                     ## imm = 0x800
	callq	_dconschat_read_dcons
	testl	%eax, %eax
	jle	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_verbose@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_printf
	jmp	LBB0_12
LBB0_13:
	movq	-2120(%rbp), %rbx               ## 8-byte Reload
LBB0_14:
	movl	%r15d, 8(%rbx)
	movl	%r15d, 4(%rbx)
	movq	_EVFILT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EV_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_NOTE_LOWAT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, (%rsp)
	leaq	-2096(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$1, %r9d
	callq	_EV_SET
	movl	8(%r12), %edi
	addq	$4, %r12
	movq	%rbx, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%r12, %r9
	callq	_kevent
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	addq	$2088, %rsp                     ## imm = 0x828
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"accept"

	.comm	_verbose,8,3                    ## @verbose
L_.str.1:                               ## @.str.1
	.asciz	"port%d accepted\n"

	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_O_NDELAY,4,2                   ## @O_NDELAY
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_F_TELNET,4,2                   ## @F_TELNET
	.comm	_IAC,1,0                        ## @IAC
	.comm	_WILL,1,0                       ## @WILL
	.comm	_TELOPT_SGA,1,0                 ## @TELOPT_SGA
	.comm	_DONT,1,0                       ## @DONT
	.comm	_TELOPT_LINEMODE,1,0            ## @TELOPT_LINEMODE
	.comm	_TELOPT_ECHO,1,0                ## @TELOPT_ECHO
	.comm	_DO,1,0                         ## @DO
	.comm	_TELOPT_BINARY,1,0              ## @TELOPT_BINARY
	.comm	_DCONS_GDB,4,2                  ## @DCONS_GDB
L_.str.2:                               ## @.str.2
	.asciz	"discard %d chars on GDB port\n"

	.comm	_EVFILT_READ,4,2                ## @EVFILT_READ
	.comm	_EV_ADD,4,2                     ## @EV_ADD
	.comm	_NOTE_LOWAT,4,2                 ## @NOTE_LOWAT
	.no_dead_strip	_dconschat_accept_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dconschat_accept_socket
_dconschat_accept_socket:               ; @dconschat_accept_socket
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #2080
	mov	x20, 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, #-72]
	ldr	x8, [x1, #24]
	ldr	w9, [x8, #4]
	str	w9, [sp, #20]
	ldr	w0, [x1, #32]
	ldr	w1, [x8]
	add	x2, sp, #20
	bl	_accept
	mov	x21, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
Lloh5:
	adrp	x23, _verbose@GOTPAGE
Lloh6:
	ldr	x23, [x23, _verbose@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x20]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_4:
Lloh9:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_fcntl
Lloh12:
	adrp	x8, _O_NDELAY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _O_NDELAY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w2, w8, w0
Lloh15:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_fcntl
	mov	x0, x20
	bl	_IS_CONSOLE
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w8, [x19]
Lloh18:
	adrp	x9, _F_TELNET@GOTPAGE
Lloh19:
	ldr	x9, [x9, _F_TELNET@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh21:
	adrp	x8, _IAC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IAC@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #24]
Lloh23:
	adrp	x9, _WILL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _WILL@GOTPAGEOFF]
	ldrb	w9, [x9]
	strb	w9, [sp, #25]
Lloh25:
	adrp	x10, _TELOPT_SGA@GOTPAGE
Lloh26:
	ldr	x10, [x10, _TELOPT_SGA@GOTPAGEOFF]
	ldrb	w10, [x10]
	strb	w10, [sp, #26]
Lloh27:
	adrp	x10, _DONT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _DONT@GOTPAGEOFF]
	ldrb	w10, [x10]
	strb	w10, [sp, #18]
Lloh29:
	adrp	x10, _TELOPT_LINEMODE@GOTPAGE
Lloh30:
	ldr	x10, [x10, _TELOPT_LINEMODE@GOTPAGEOFF]
	strb	w8, [sp, #17]
	ldrb	w10, [x10]
	strb	w10, [sp, #19]
	strb	w8, [sp, #14]
Lloh31:
	adrp	x10, _TELOPT_ECHO@GOTPAGE
Lloh32:
	ldr	x10, [x10, _TELOPT_ECHO@GOTPAGEOFF]
	strb	w9, [sp, #15]
	ldrb	w9, [x10]
	strb	w9, [sp, #16]
	strb	w8, [sp, #11]
Lloh33:
	adrp	x8, _DO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DO@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #12]
Lloh35:
	adrp	x8, _TELOPT_BINARY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TELOPT_BINARY@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #13]
	add	x1, sp, #24
	mov	x0, x21
	mov	w2, #3
	bl	_write
	add	x1, sp, #17
	mov	x0, x21
	mov	w2, #3
	bl	_write
	add	x1, sp, #14
	mov	x0, x21
	mov	w2, #3
	bl	_write
	add	x1, sp, #11
	mov	x0, x21
	mov	w2, #3
	bl	_write
	str	xzr, [x20, #16]
LBB0_7:
	mov	x0, x20
	bl	_IS_GDB
	cbz	x0, LBB0_13
; %bb.8:
Lloh37:
	adrp	x24, _DCONS_GDB@GOTPAGE
Lloh38:
	ldr	x24, [x24, _DCONS_GDB@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #2048
	bl	_dconschat_read_dcons
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x1, x0
Lloh39:
	adrp	x22, l_.str.2@PAGE
Lloh40:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x24]
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #2048
	bl	_dconschat_read_dcons
	mov	x1, x0
	cmp	w0, #0
	b.le	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	bl	_printf
	b	LBB0_10
LBB0_13:
	stp	w21, w21, [x20, #4]
Lloh41:
	adrp	x8, _EVFILT_READ@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EVFILT_READ@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
Lloh44:
	adrp	x8, _EV_ADD@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EV_ADD@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x8]
Lloh47:
	adrp	x8, _NOTE_LOWAT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _NOTE_LOWAT@GOTPAGEOFF]
Lloh49:
	ldr	w4, [x8]
	add	x0, sp, #24
	mov	x1, x21
	mov	w5, #1
	mov	x6, x20
	bl	_EV_SET
	ldr	w0, [x19, #8]
	add	x5, x19, #4
	add	x1, sp, #24
	mov	w2, #1
	mov	x3, #0
	mov	w4, #0
	bl	_kevent
	ldur	x8, [x29, #-72]
Lloh50:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh51:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	w0, #0
	add	sp, sp, #2080
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"accept"

	.comm	_verbose,8,3                    ; @verbose
l_.str.1:                               ; @.str.1
	.asciz	"port%d accepted\n"

	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_O_NDELAY,4,2                   ; @O_NDELAY
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_F_TELNET,4,2                   ; @F_TELNET
	.comm	_IAC,1,0                        ; @IAC
	.comm	_WILL,1,0                       ; @WILL
	.comm	_TELOPT_SGA,1,0                 ; @TELOPT_SGA
	.comm	_DONT,1,0                       ; @DONT
	.comm	_TELOPT_LINEMODE,1,0            ; @TELOPT_LINEMODE
	.comm	_TELOPT_ECHO,1,0                ; @TELOPT_ECHO
	.comm	_DO,1,0                         ; @DO
	.comm	_TELOPT_BINARY,1,0              ; @TELOPT_BINARY
	.comm	_DCONS_GDB,4,2                  ; @DCONS_GDB
l_.str.2:                               ; @.str.2
	.asciz	"discard %d chars on GDB port\n"

	.comm	_EVFILT_READ,4,2                ; @EVFILT_READ
	.comm	_EV_ADD,4,2                     ; @EV_ADD
	.comm	_NOTE_LOWAT,4,2                 ; @NOTE_LOWAT
	.no_dead_strip	_dconschat_accept_socket
.subsections_via_symbols
