	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bye
_bye:                                   ## @bye
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_connected@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_net@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	$2, %esi
	callq	_shutdown
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	(%r12), %edi
	callq	_NetClose
	movq	$0, (%r15)
	movq	_resettermname@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_tninit
LBB0_2:
	cmpl	$2, %ebx
	jne	LBB0_4
## %bb.3:
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	_toplevel@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_longjmp
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_connected,8,3                  ## @connected
	.comm	_net,4,2                        ## @net
	.comm	_resettermname,4,2              ## @resettermname
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"fromquit"

	.comm	_toplevel,4,2                   ## @toplevel
L_str:                                  ## @str
	.asciz	"Connection closed.\r"

	.no_dead_strip	_bye
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bye
_bye:                                   ; @bye
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _connected@GOTPAGE
Lloh1:
	ldr	x21, [x21, _connected@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x22, _net@GOTPAGE
Lloh3:
	ldr	x22, [x22, _net@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #2
	bl	_shutdown
Lloh4:
	adrp	x0, l_str@PAGE
Lloh5:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w0, [x22]
	bl	_NetClose
	str	xzr, [x21]
Lloh6:
	adrp	x8, _resettermname@GOTPAGE
Lloh7:
	ldr	x8, [x8, _resettermname@GOTPAGEOFF]
	mov	w9, #1
Lloh8:
	str	w9, [x8]
	bl	_tninit
LBB0_2:
	cmp	w20, #2
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _toplevel@GOTPAGE
Lloh12:
	ldr	x8, [x8, _toplevel@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_longjmp
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_connected,8,3                  ; @connected
	.comm	_net,4,2                        ; @net
	.comm	_resettermname,4,2              ; @resettermname
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"fromquit"

	.comm	_toplevel,4,2                   ; @toplevel
l_str:                                  ; @str
	.asciz	"Connection closed.\r"

	.no_dead_strip	_bye
.subsections_via_symbols
