	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DoInteractive
_DoInteractive:                         ## @DoInteractive
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_csock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_dsock@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_MAX
	movl	%eax, %r14d
	incl	%r14d
	movq	_help_cmd@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	*(%rax)
	leaq	-52(%rbp), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_FD_ZERO
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_FD_SET
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_FD_SET
	leaq	-72(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%r14d, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r13, %r8
	callq	_select
	testq	%rax, %rax
	jg	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_PROMPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	%r12, %rdi
	callq	_FD_ZERO
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_FD_SET
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_FD_SET
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_FD_SET
	movl	%r14d, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_select
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_err
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_putchar
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_ReadSockets
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_LINE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_DoParseCommand
	movq	_CMDRTN_QUIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	leaq	-52(%rbp), %r12
	jne	LBB0_1
	jmp	LBB0_10
LBB0_8:
	movl	$10, %edi
	callq	_putchar
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
LBB0_10:
	movq	_CMDRTN_QUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_csock,4,2                      ## @csock
	.comm	_dsock,4,2                      ## @dsock
	.comm	_help_cmd,8,3                   ## @help_cmd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_PROMPT,8,3                     ## @PROMPT
	.comm	_stdout,4,2                     ## @stdout
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
L_.str.1:                               ## @.str.1
	.asciz	"select"

	.comm	_LINE_MAX,4,2                   ## @LINE_MAX
	.comm	_stdin,4,2                      ## @stdin
	.comm	_CMDRTN_QUIT,8,3                ## @CMDRTN_QUIT
	.no_dead_strip	_DoInteractive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DoInteractive
_DoInteractive:                         ; @DoInteractive
	.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, #32
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	x23, _csock@GOTPAGE
Lloh4:
	ldr	x23, [x23, _csock@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh5:
	adrp	x24, _dsock@GOTPAGE
Lloh6:
	ldr	x24, [x24, _dsock@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_MAX
	add	w19, w0, #1
Lloh7:
	adrp	x8, _help_cmd@GOTPAGE
Lloh8:
	ldr	x8, [x8, _help_cmd@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	mov	w0, #0
	mov	x1, #0
	blr	x8
Lloh10:
	adrp	x20, l_.str@PAGE
Lloh11:
	add	x20, x20, l_.str@PAGEOFF
Lloh12:
	adrp	x27, _stdout@GOTPAGE
Lloh13:
	ldr	x27, [x27, _stdout@GOTPAGEOFF]
Lloh14:
	adrp	x28, _LINE_MAX@GOTPAGE
Lloh15:
	ldr	x28, [x28, _LINE_MAX@GOTPAGEOFF]
Lloh16:
	adrp	x21, _stdin@GOTPAGE
Lloh17:
	ldr	x21, [x21, _stdin@GOTPAGEOFF]
Lloh18:
	adrp	x25, _CMDRTN_QUIT@GOTPAGE
Lloh19:
	ldr	x25, [x25, _CMDRTN_QUIT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #100
	bl	_FD_ZERO
	ldr	w0, [x23]
	sub	x1, x29, #100
	bl	_FD_SET
	ldr	w0, [x24]
	sub	x1, x29, #100
	bl	_FD_SET
	sub	x0, x29, #96
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	sub	x1, x29, #100
	sub	x4, x29, #96
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	bl	_select
	cmp	x0, #0
	b.gt	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh20:
	adrp	x8, _PROMPT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PROMPT@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [sp, #-16]!
	mov	x0, x20
	bl	_printf
	add	sp, sp, #16
	ldr	w0, [x27]
	bl	_fflush
	sub	x0, x29, #100
	bl	_FD_ZERO
	sub	x1, x29, #100
	mov	w0, #0
	bl	_FD_SET
	ldr	w0, [x23]
	sub	x1, x29, #100
	bl	_FD_SET
	ldr	w0, [x24]
	sub	x1, x29, #100
	bl	_FD_SET
	sub	x1, x29, #100
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_select
	tbz	x0, #63, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh23:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	sub	x1, x29, #100
	mov	w0, #0
	bl	_FD_ISSET
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_putchar
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	sub	x0, x29, #100
	bl	_ReadSockets
	sub	x1, x29, #100
	mov	w0, #0
	bl	_FD_ISSET
	cbz	x0, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x26, sp
	ldr	w1, [x28]
	mov	x9, x1
Lloh28:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh29:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	ldr	w2, [x21]
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_fgets
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_DoParseCommand
	ldr	x8, [x25]
	mov	sp, x26
	cmp	x0, x8
	b.ne	LBB0_1
	b	LBB0_10
LBB0_9:
	mov	w0, #10
	bl	_putchar
	mov	sp, x26
LBB0_10:
	ldr	w0, [x25]
	ldur	x8, [x29, #-88]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_csock,4,2                      ; @csock
	.comm	_dsock,4,2                      ; @dsock
	.comm	_help_cmd,8,3                   ; @help_cmd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_PROMPT,8,3                     ; @PROMPT
	.comm	_stdout,4,2                     ; @stdout
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
l_.str.1:                               ; @.str.1
	.asciz	"select"

	.comm	_LINE_MAX,4,2                   ; @LINE_MAX
	.comm	_stdin,4,2                      ; @stdin
	.comm	_CMDRTN_QUIT,8,3                ; @CMDRTN_QUIT
	.no_dead_strip	_DoInteractive
.subsections_via_symbols
