	.file	"extr_telnet.c_sendnaws.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sendnaws
	.type	sendnaws, @function
sendnaws:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	sub	rsp, 48
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR TELOPT_NAWS[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	my_state_is_wont@PLT
	test	rax, rax
	je	.L18
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	lea	rsi, 8[rsp]
	mov	rdi, rsp
	call	TerminalWindowSize@PLT
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR SB[rip]
	mov	rax, QWORD PTR IAC[rip]
	lea	rsi, 20[rsp]
	mov	BYTE PTR 17[rsp], dl
	mov	edx, DWORD PTR TELOPT_NAWS[rip]
	mov	BYTE PTR 16[rsp], al
	mov	BYTE PTR 18[rsp], dl
	mov	rdx, QWORD PTR 8[rsp]
	mov	rcx, rdx
	sar	rcx, 8
	mov	BYTE PTR 19[rsp], cl
	movzx	ecx, cl
	cmp	rax, rcx
	je	.L20
.L3:
	mov	BYTE PTR [rsi], dl
	movzx	edx, dl
	lea	rdi, 1[rsi]
	cmp	rax, rdx
	je	.L21
.L5:
	mov	rdx, QWORD PTR [rsp]
	mov	rcx, rdx
	sar	rcx, 8
	mov	BYTE PTR [rdi], cl
	movzx	ecx, cl
	cmp	rax, rcx
	je	.L6
	lea	rcx, 1[rdi]
.L7:
	mov	BYTE PTR [rcx], dl
	movzx	edx, dl
	lea	rbx, 1[rcx]
	cmp	rax, rdx
	je	.L22
.L9:
	mov	BYTE PTR [rbx], al
	mov	eax, DWORD PTR SE[rip]
	add	rbx, 2
	mov	BYTE PTR -1[rbx], al
	xor	eax, eax
	call	NETROOM@PLT
	lea	rsi, 16[rsp]
	sub	rbx, rsi
	cdqe
	cmp	rax, rbx
	jl	.L1
	mov	edx, ebx
	lea	rdi, netoring[rip]
	call	ring_supply_data@PLT
	lea	edx, -2[rbx]
	lea	rsi, 18[rsp]
	mov	edi, 62
	call	printsub@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	BYTE PTR 1[rcx], al
	lea	rbx, 2[rcx]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	BYTE PTR 1[rdi], al
	lea	rcx, 2[rdi]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	mov	BYTE PTR 1[rsi], al
	lea	rdi, 2[rsi]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	mov	BYTE PTR 20[rsp], al
	lea	rsi, 21[rsp]
	jmp	.L3
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sendnaws, .-sendnaws
	.comm	netoring,4,4
	.comm	TELOPT_NAWS,4,4
	.comm	SE,4,4
	.comm	SB,4,4
	.comm	IAC,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_telnet.c_sendnaws.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sendnaws
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendnaws, %function
sendnaws:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L20
	ldr	r3, .L20+4
	sub	sp, sp, #32
	ldr	r0, [r4]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	my_state_is_wont
	cmp	r0, #0
	beq	.L18
.L1:
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #32
	@ sp needed
	pop	{r4, pc}
.L18:
	add	r1, sp, #8
	add	r0, sp, #4
	bl	TerminalWindowSize
	cmp	r0, #0
	beq	.L1
	ldr	r1, [sp, #8]
	ldr	r3, .L20+8
	ldr	r2, .L20+12
	ldr	r3, [r3]
	asr	r0, r1, #8
	ldr	ip, [r2]
	and	r2, r0, #255
	ldr	lr, [r4]
	cmp	r3, r2
	addeq	r4, sp, #17
	addne	r4, sp, #16
	and	r2, r3, #255
	strb	r0, [sp, #15]
	strb	ip, [sp, #13]
	strbeq	r2, [sp, #16]
	strb	lr, [sp, #14]
	strb	r2, [sp, #12]
	and	r0, r1, #255
	strb	r1, [r4]
	ldr	r1, [sp, #4]
	cmp	r3, r0
	asr	r0, r1, #8
	strbeq	r2, [r4, #1]
	addne	r4, r4, #1
	addeq	r4, r4, #2
	and	ip, r0, #255
	strb	r0, [r4]
	cmp	r3, ip
	and	r0, r1, #255
	strbeq	r2, [r4, #1]
	addne	r4, r4, #1
	addeq	r4, r4, #2
	cmp	r3, r0
	ldr	r3, .L20+16
	strb	r1, [r4]
	ldr	r3, [r3]
	strbeq	r2, [r4, #1]
	addne	r4, r4, #1
	addeq	r4, r4, #2
	strb	r2, [r4]
	strb	r3, [r4, #1]
	bl	NETROOM
	add	r4, r4, #2
	add	r1, sp, #12
	sub	r4, r4, r1
	cmp	r0, r4
	blt	.L1
	mov	r2, r4
	ldr	r0, .L20+20
	bl	ring_supply_data
	sub	r2, r4, #2
	add	r1, sp, #14
	mov	r0, #62
	bl	printsub
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	TELOPT_NAWS
	.word	.LC0
	.word	IAC
	.word	SB
	.word	SE
	.word	netoring
	.size	sendnaws, .-sendnaws
	.comm	netoring,4,4
	.comm	TELOPT_NAWS,4,4
	.comm	SE,4,4
	.comm	SB,4,4
	.comm	IAC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
