	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendnaws                       ## -- Begin function sendnaws
	.p2align	4, 0x90
_sendnaws:                              ## @sendnaws
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_TELOPT_NAWS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_my_state_is_wont
	testq	%rax, %rax
	je	LBB0_1
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	leaq	-56(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_TerminalWindowSize
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	_IAC@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movb	%cl, -48(%rbp)
	movq	_SB@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	movb	%dl, -47(%rbp)
	movb	(%rbx), %dl
	movb	%dl, -46(%rbp)
	movq	-64(%rbp), %rdx
	movq	%rdx, %rsi
	shrq	$8, %rsi
	movb	%sil, -45(%rbp)
	movzbl	%sil, %esi
	cmpq	%rsi, %rcx
	je	LBB0_4
## %bb.3:
	leaq	-44(%rbp), %rbx
	jmp	LBB0_5
LBB0_4:
	leaq	-43(%rbp), %rbx
	movb	%cl, -44(%rbp)
LBB0_5:
	movb	%dl, (%rbx)
	movzbl	%dl, %edx
	cmpq	%rdx, %rcx
	je	LBB0_7
## %bb.6:
	incq	%rbx
	jmp	LBB0_8
LBB0_7:
	movb	%cl, 1(%rbx)
	addq	$2, %rbx
LBB0_8:
	movq	-56(%rbp), %rdx
	movq	%rdx, %rsi
	shrq	$8, %rsi
	movb	%sil, (%rbx)
	movzbl	%sil, %esi
	cmpq	%rsi, %rcx
	je	LBB0_10
## %bb.9:
	incq	%rbx
	jmp	LBB0_11
LBB0_10:
	movb	%cl, 1(%rbx)
	addq	$2, %rbx
	movzbl	-56(%rbp), %edx
LBB0_11:
	movb	%dl, (%rbx)
	movzbl	%dl, %esi
	movq	(%rax), %rcx
	cmpq	%rsi, %rcx
	je	LBB0_13
## %bb.12:
	incq	%rbx
	jmp	LBB0_14
LBB0_13:
	movb	%dl, 1(%rbx)
	addq	$2, %rbx
	movq	(%rax), %rcx
LBB0_14:
	movb	%cl, (%rbx)
	movq	_SE@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, 1(%rbx)
	xorl	%eax, %eax
	callq	_NETROOM
	cltq
	leaq	-48(%rbp), %rcx
	negq	%rcx
	addq	%rcx, %rbx
	addq	$2, %rbx
	cmpq	%rax, %rbx
	jg	LBB0_16
## %bb.15:
	leaq	-46(%rbp), %r14
	movq	_netoring@GOTPCREL(%rip), %rdi
	leaq	-48(%rbp), %rsi
	movl	%ebx, %edx
	callq	_ring_supply_data
	addl	$-2, %ebx
	movl	$62, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_printsub
	jmp	LBB0_16
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TELOPT_NAWS,4,2                ## @TELOPT_NAWS
	.comm	_IAC,8,3                        ## @IAC
	.comm	_SB,4,2                         ## @SB
	.comm	_SE,4,2                         ## @SE
	.comm	_netoring,4,2                   ## @netoring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendnaws                       ; -- Begin function sendnaws
	.p2align	2
_sendnaws:                              ; @sendnaws
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x19, _TELOPT_NAWS@GOTPAGE
Lloh4:
	ldr	x19, [x19, _TELOPT_NAWS@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_my_state_is_wont
	cbz	x0, LBB0_3
LBB0_1:
	ldur	x8, [x29, #-24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_3:
	add	x0, sp, #16
	add	x1, sp, #8
	bl	_TerminalWindowSize
	cbz	x0, LBB0_1
; %bb.4:
Lloh8:
	adrp	x8, _IAC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IAC@GOTPAGEOFF]
	ldr	x9, [x8]
	strb	w9, [sp, #24]
Lloh10:
	adrp	x10, _SB@GOTPAGE
Lloh11:
	ldr	x10, [x10, _SB@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	add	x20, sp, #24
	strb	w10, [sp, #25]
	ldr	w10, [x19]
	strb	w10, [sp, #26]
	ldr	x10, [sp, #8]
	lsr	x11, x10, #8
	strb	w11, [sp, #27]
	cmp	x9, w11, uxtb
	b.eq	LBB0_6
; %bb.5:
	add	x11, x20, #4
	b	LBB0_7
LBB0_6:
	add	x11, x20, #5
	strb	w9, [sp, #28]
LBB0_7:
	mov	x12, x11
	strb	w10, [x12], #1
	cmp	x9, w10, uxtb
	b.ne	LBB0_9
; %bb.8:
	add	x12, x11, #2
	strb	w9, [x11, #1]
LBB0_9:
	ldr	x10, [sp, #16]
	lsr	x13, x10, #8
	mov	x11, x12
	strb	w13, [x11], #1
	cmp	x9, w13, uxtb
	b.ne	LBB0_11
; %bb.10:
	add	x11, x12, #2
	strb	w9, [x12, #1]
	ldrb	w10, [sp, #16]
LBB0_11:
	mov	x19, x11
	strb	w10, [x19], #1
	ldr	x9, [x8]
	cmp	x9, w10, uxtb
	b.ne	LBB0_13
; %bb.12:
	add	x19, x11, #2
	strb	w10, [x11, #1]
	ldr	x9, [x8]
LBB0_13:
	strb	w9, [x19]
Lloh13:
	adrp	x8, _SE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	strb	w8, [x19, #1]
	bl	_NETROOM
	add	x8, sp, #24
	sub	x8, x19, x8
	add	x19, x8, #2
	cmp	x19, w0, sxtw
	b.gt	LBB0_1
; %bb.14:
	add	x20, x20, #2
Lloh16:
	adrp	x0, _netoring@GOTPAGE
Lloh17:
	ldr	x0, [x0, _netoring@GOTPAGEOFF]
	add	x1, sp, #24
	mov	x2, x19
	bl	_ring_supply_data
	sub	w2, w19, #2
	mov	w0, #62
	mov	x1, x20
	bl	_printsub
	b	LBB0_1
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TELOPT_NAWS,4,2                ; @TELOPT_NAWS
	.comm	_IAC,8,3                        ; @IAC
	.comm	_SB,4,2                         ; @SB
	.comm	_SE,4,2                         ; @SE
	.comm	_netoring,4,2                   ; @netoring
.subsections_via_symbols
