	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kickoff_telnetd                ## -- Begin function kickoff_telnetd
	.p2align	4, 0x90
_kickoff_telnetd:                       ## @kickoff_telnetd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_Cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_SetConsoleCtrlHandler
	xorl	%eax, %eax
	callq	_StartSocketInterface
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_ErrorExit
LBB0_2:
	xorl	%eax, %eax
	callq	_CreateSocket
	movq	_bShutdown@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_WaitForConnect
	cmpl	$0, (%rbx)
	je	LBB0_3
LBB0_5:
	xorl	%eax, %eax
	callq	_WSACleanup
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Cleanup,4,2                    ## @Cleanup
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Unable to start socket interface\n"

	.comm	_bShutdown,4,2                  ## @bShutdown
L_str:                                  ## @str
	.asciz	"Attempting to start Simple TelnetD"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kickoff_telnetd                ; -- Begin function kickoff_telnetd
	.p2align	2
_kickoff_telnetd:                       ; @kickoff_telnetd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x8, _Cleanup@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Cleanup@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_SetConsoleCtrlHandler
	bl	_StartSocketInterface
	cbnz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ErrorExit
LBB0_2:
	bl	_CreateSocket
Lloh7:
	adrp	x19, _bShutdown@GOTPAGE
Lloh8:
	ldr	x19, [x19, _bShutdown@GOTPAGEOFF]
	ldr	w8, [x19]
	cbnz	w8, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_WaitForConnect
	ldr	w8, [x19]
	cbz	w8, LBB0_3
LBB0_4:
	bl	_WSACleanup
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_Cleanup,4,2                    ; @Cleanup
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Unable to start socket interface\n"

	.comm	_bShutdown,4,2                  ; @bShutdown
l_str:                                  ; @str
	.asciz	"Attempting to start Simple TelnetD"

.subsections_via_symbols
