	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_my_telnet                      ## -- Begin function my_telnet
	.p2align	4, 0x90
_my_telnet:                             ## @my_telnet
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_sys_telnet_init
	movq	_telnetport@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_TELOPT_SGA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_send_do
	movq	_TELOPT_TTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_send_will
	movq	_TELOPT_NAWS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_send_will
	movq	_TELOPT_TSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_send_will
	movq	_TELOPT_LFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_send_will
	movq	_TELOPT_LINEMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_send_will
	movq	_TELOPT_NEW_ENVIRON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_send_will
	movq	_TELOPT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_send_do
	leaq	L_.str(%rip), %rdi
	callq	_env_getvalue
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_TELOPT_XDISPLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_send_will
LBB0_3:
	movq	_binary@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_tel_enter_binary
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$-1, %eax
	je	LBB0_7
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_Scheduler
	testl	%eax, %eax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	callq	_Scheduler
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_setcommandmode                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_telnetport,8,3                 ## @telnetport
	.comm	_TELOPT_SGA,4,2                 ## @TELOPT_SGA
	.comm	_TELOPT_TTYPE,4,2               ## @TELOPT_TTYPE
	.comm	_TELOPT_NAWS,4,2                ## @TELOPT_NAWS
	.comm	_TELOPT_TSPEED,4,2              ## @TELOPT_TSPEED
	.comm	_TELOPT_LFLOW,4,2               ## @TELOPT_LFLOW
	.comm	_TELOPT_LINEMODE,4,2            ## @TELOPT_LINEMODE
	.comm	_TELOPT_NEW_ENVIRON,4,2         ## @TELOPT_NEW_ENVIRON
	.comm	_TELOPT_STATUS,4,2              ## @TELOPT_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DISPLAY"

	.comm	_TELOPT_XDISPLOC,4,2            ## @TELOPT_XDISPLOC
	.comm	_binary,8,3                     ## @binary
	.comm	_MODE_TRAPSIG,4,2               ## @MODE_TRAPSIG
	.comm	_TELOPT_AUTHENTICATION,4,2      ## @TELOPT_AUTHENTICATION
	.comm	_TELOPT_ENCRYPT,4,2             ## @TELOPT_ENCRYPT
	.comm	_auth_has_failed,8,3            ## @auth_has_failed
	.comm	_autologin,8,3                  ## @autologin
	.comm	_hostname,4,2                   ## @hostname
	.comm	_intr_happened,8,3              ## @intr_happened
	.comm	_intr_waiting,4,2               ## @intr_waiting
	.comm	_wantencryption,4,2             ## @wantencryption
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_my_telnet                      ; -- Begin function my_telnet
	.p2align	2
_my_telnet:                             ; @my_telnet
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_sys_telnet_init
Lloh0:
	adrp	x8, _telnetport@GOTPAGE
Lloh1:
	ldr	x8, [x8, _telnetport@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _TELOPT_SGA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TELOPT_SGA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_send_do
Lloh6:
	adrp	x8, _TELOPT_TTYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TELOPT_TTYPE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_send_will
Lloh9:
	adrp	x8, _TELOPT_NAWS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TELOPT_NAWS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_send_will
Lloh12:
	adrp	x8, _TELOPT_TSPEED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TELOPT_TSPEED@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_send_will
Lloh15:
	adrp	x8, _TELOPT_LFLOW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TELOPT_LFLOW@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_send_will
Lloh18:
	adrp	x8, _TELOPT_LINEMODE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TELOPT_LINEMODE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_send_will
Lloh21:
	adrp	x8, _TELOPT_NEW_ENVIRON@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TELOPT_NEW_ENVIRON@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_send_will
Lloh24:
	adrp	x8, _TELOPT_STATUS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TELOPT_STATUS@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_send_do
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_env_getvalue
	cbz	x0, LBB0_3
; %bb.2:
Lloh29:
	adrp	x8, _TELOPT_XDISPLOC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TELOPT_XDISPLOC@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_send_will
LBB0_3:
Lloh32:
	adrp	x8, _binary@GOTPAGE
Lloh33:
	ldr	x8, [x8, _binary@GOTPAGEOFF]
Lloh34:
	ldr	x0, [x8]
	cbz	x0, LBB0_6
; %bb.4:
	bl	_tel_enter_binary
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmn	w0, #1
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	bl	_Scheduler
	cbnz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	bl	_Scheduler
	b	LBB0_5
LBB0_8:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_setcommandmode
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_telnetport,8,3                 ; @telnetport
	.comm	_TELOPT_SGA,4,2                 ; @TELOPT_SGA
	.comm	_TELOPT_TTYPE,4,2               ; @TELOPT_TTYPE
	.comm	_TELOPT_NAWS,4,2                ; @TELOPT_NAWS
	.comm	_TELOPT_TSPEED,4,2              ; @TELOPT_TSPEED
	.comm	_TELOPT_LFLOW,4,2               ; @TELOPT_LFLOW
	.comm	_TELOPT_LINEMODE,4,2            ; @TELOPT_LINEMODE
	.comm	_TELOPT_NEW_ENVIRON,4,2         ; @TELOPT_NEW_ENVIRON
	.comm	_TELOPT_STATUS,4,2              ; @TELOPT_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DISPLAY"

	.comm	_TELOPT_XDISPLOC,4,2            ; @TELOPT_XDISPLOC
	.comm	_binary,8,3                     ; @binary
	.comm	_MODE_TRAPSIG,4,2               ; @MODE_TRAPSIG
	.comm	_TELOPT_AUTHENTICATION,4,2      ; @TELOPT_AUTHENTICATION
	.comm	_TELOPT_ENCRYPT,4,2             ; @TELOPT_ENCRYPT
	.comm	_auth_has_failed,8,3            ; @auth_has_failed
	.comm	_autologin,8,3                  ; @autologin
	.comm	_hostname,4,2                   ; @hostname
	.comm	_intr_happened,8,3              ; @intr_happened
	.comm	_intr_waiting,4,2               ; @intr_waiting
	.comm	_wantencryption,4,2             ; @wantencryption
.subsections_via_symbols
