	.file	"extr_telnet.c_telsnd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"close\n"
.LC1:
	.string	"z\n"
	.text
	.p2align 4
	.type	telsnd, @function
telsnd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 8[rsp], 0
	.p2align 4,,10
	.p2align 3
.L2:
	xor	eax, eax
	call	NETROOM@PLT
	cmp	eax, 2
	jle	.L15
.L30:
	test	r12d, r12d
	jne	.L66
	test	r13d, r13d
	jne	.L67
.L5:
	lea	rdi, ttyiring[rip]
	mov	rbx, QWORD PTR ttyiring[rip]
	call	ring_full_consecutive@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L6
	mov	r13d, 1
.L4:
	movzx	ebp, BYTE PTR [rbx]
	lea	rax, 1[rbx]
	mov	QWORD PTR [rsp], rax
	mov	edi, ebp
	call	strip@PLT
	lea	r9d, -1[r15]
	mov	r14d, eax
	mov	eax, DWORD PTR rlogin[rip]
	cmp	eax, DWORD PTR _POSIX_VDISABLE[rip]
	je	.L7
	mov	edi, DWORD PTR bol[rip]
	test	edi, edi
	je	.L8
	mov	DWORD PTR bol[rip], 0
	cmp	eax, r14d
	je	.L68
.L9:
	cmp	r14d, 10
	je	.L33
.L75:
	mov	r12d, r9d
	cmp	r14d, 13
	je	.L33
.L16:
	mov	edi, DWORD PTR globalmode[rip]
	call	MODE_LOCAL_CHARS@PLT
	test	rax, rax
	je	.L21
	mov	edi, r14d
	call	TerminalSpecialChars@PLT
	test	rax, rax
	je	.L69
.L21:
	mov	edi, DWORD PTR TELOPT_BINARY[rip]
	call	my_want_state_is_wont@PLT
	test	rax, rax
	je	.L22
	cmp	ebp, 13
	je	.L23
	cmp	ebp, 128
	je	.L64
	cmp	ebp, 10
	je	.L70
.L29:
	mov	edi, ebp
	call	NETADD@PLT
	xor	eax, eax
	call	NETROOM@PLT
	cmp	eax, 2
	jg	.L30
.L15:
	or	DWORD PTR 8[rsp], r13d
	test	r13d, r13d
	jne	.L71
.L6:
	mov	edx, DWORD PTR 8[rsp]
	xor	eax, eax
	test	edx, edx
	setne	al
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	cmp	ebp, 128
	jne	.L29
.L64:
	mov	esi, 128
	mov	edi, 128
	call	NET2ADD@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, DWORD PTR escape[rip]
	cmp	ecx, r14d
	jne	.L18
	cmp	eax, ecx
	jne	.L72
.L18:
	mov	DWORD PTR bol[rip], 0
	mov	r12d, r9d
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L66:
	mov	r15d, r12d
	mov	rbx, QWORD PTR [rsp]
	mov	r12d, r13d
	add	r13d, 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR local[rip]
	test	esi, esi
	je	.L9
	mov	DWORD PTR local[rip], 0
	cmp	r14d, 46
	je	.L11
	cmp	DWORD PTR termEofChar[rip], ebp
	je	.L11
	cmp	DWORD PTR termSuspChar[rip], r14d
	je	.L73
	cmp	DWORD PTR escape[rip], r14d
	je	.L74
	cmp	eax, r14d
	je	.L9
	mov	r14d, eax
	mov	QWORD PTR [rsp], rbx
	mov	ebp, eax
	mov	r13d, r12d
	mov	r9d, r15d
	cmp	r14d, 10
	jne	.L75
	.p2align 4,,10
	.p2align 3
.L33:
	mov	DWORD PTR bol[rip], 1
	mov	r12d, r9d
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L67:
	mov	esi, r13d
	lea	rdi, ttyiring[rip]
	call	ring_consumed@PLT
	mov	DWORD PTR 8[rsp], 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	mov	ecx, DWORD PTR crlf[rip]
	test	ecx, ecx
	jne	.L27
	xor	esi, esi
	mov	edi, 13
	call	NET2ADD@PLT
.L28:
	mov	DWORD PTR flushline[rip], 1
	mov	DWORD PTR bol[rip], 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L70:
	mov	edi, DWORD PTR globalmode[rip]
	call	MODE_LOCAL_CHARS@PLT
	test	rax, rax
	jne	.L76
.L26:
	mov	edi, 10
	call	NETADD@PLT
	mov	DWORD PTR flushline[rip], 1
	mov	DWORD PTR bol[rip], 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L72:
	test	r9d, r9d
	je	.L19
	movzx	edi, BYTE PTR 1[rbx]
	mov	DWORD PTR 12[rsp], r9d
	call	strip@PLT
	cmp	eax, DWORD PTR escape[rip]
	mov	r9d, DWORD PTR 12[rsp]
	jne	.L77
	lea	rax, 2[rbx]
	lea	r13d, 2[r12]
	mov	DWORD PTR bol[rip], 0
	mov	QWORD PTR [rsp], rax
	lea	r12d, -2[r15]
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L68:
	mov	DWORD PTR local[rip], 1
	mov	r12d, r9d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L27:
	mov	esi, 10
	mov	edi, 13
	call	NET2ADD@PLT
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L11:
	mov	DWORD PTR 12[rsp], r9d
	mov	edx, 6
	lea	rsi, .LC0[rip]
	mov	DWORD PTR bol[rip], 1
.L63:
	xor	edi, edi
	xor	eax, eax
	call	command@PLT
	mov	r9d, DWORD PTR 12[rsp]
	mov	r12d, r9d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L76:
	mov	edi, 13
	call	NETADD@PLT
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L71:
	mov	esi, r13d
	lea	rdi, ttyiring[rip]
	call	ring_consumed@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L73:
	mov	DWORD PTR 12[rsp], r9d
	mov	edx, 2
	lea	rsi, .LC1[rip]
	mov	DWORD PTR bol[rip], 1
	jmp	.L63
.L69:
	or	DWORD PTR 8[rsp], r13d
	mov	DWORD PTR bol[rip], 1
	test	r13d, r13d
	je	.L6
	jmp	.L71
.L77:
	add	r13d, r9d
.L19:
	mov	rsi, QWORD PTR [rsp]
	mov	edx, r9d
	xor	edi, edi
	xor	eax, eax
	call	command@PLT
	mov	DWORD PTR bol[rip], 1
	mov	DWORD PTR flushline[rip], 1
	jmp	.L15
.L74:
	mov	rsi, QWORD PTR [rsp]
	mov	edx, r9d
	xor	edi, edi
	xor	eax, eax
	mov	DWORD PTR 12[rsp], r9d
	call	command@PLT
	mov	r9d, DWORD PTR 12[rsp]
	mov	DWORD PTR bol[rip], 1
	mov	DWORD PTR flushline[rip], 1
	add	r13d, r9d
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	telsnd, .-telsnd
	.comm	ttyiring,8,8
	.comm	termSuspChar,4,4
	.comm	termEofChar,4,4
	.comm	rlogin,4,4
	.comm	local,4,4
	.comm	kludgelinemode,8,8
	.comm	globalmode,4,4
	.comm	flushline,4,4
	.comm	escape,4,4
	.comm	echotoggle,4,4
	.comm	echoc,4,4
	.comm	dontlecho,4,4
	.comm	crlf,4,4
	.comm	bol,4,4
	.comm	_POSIX_VDISABLE,4,4
	.comm	TELOPT_BINARY,4,4
	.comm	MODE_EDIT,4,4
	.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_telsnd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"close\012\000"
	.align	2
.LC1:
	.ascii	"z\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	telsnd, %function
telsnd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r3
	mov	r7, r3
	sub	sp, sp, #12
	str	r3, [sp, #4]
.L2:
	bl	NETROOM
	cmp	r0, #2
	ble	.L15
.L29:
	cmp	r8, #0
	bne	.L61
	cmp	r7, #0
	bne	.L62
.L5:
	ldr	r0, .L72
	ldr	fp, [r0]
	bl	ring_full_consecutive
	subs	r10, r0, #0
	beq	.L6
	mov	r7, #1
.L4:
	mov	r6, fp
	ldrb	r5, [r6], #1	@ zero_extendqisi2
	sub	r3, r10, #1
	mov	r0, r5
	str	r3, [sp]
	bl	strip
	ldr	r3, .L72+4
	mov	r4, r0
	ldr	r2, [r3]
	ldr	r3, .L72+8
	ldr	r1, [r3]
	ldr	r3, [sp]
	cmp	r2, r1
	beq	.L7
	ldr	r9, .L72+12
	ldr	r0, [r9]
	cmp	r0, #0
	beq	.L8
	mov	r1, #0
	cmp	r2, r4
	str	r1, [r9]
	beq	.L63
.L9:
	cmp	r4, #13
	cmpne	r4, #10
	movne	r8, r3
	moveq	r2, #1
	moveq	r8, r3
	streq	r2, [r9]
.L16:
	ldr	r3, .L72+16
	ldr	r0, [r3]
	bl	MODE_LOCAL_CHARS
	cmp	r0, #0
	beq	.L20
	mov	r0, r4
	bl	TerminalSpecialChars
	cmp	r0, #0
	beq	.L64
.L20:
	ldr	r3, .L72+20
	ldr	r0, [r3]
	bl	my_want_state_is_wont
	cmp	r0, #0
	beq	.L21
	cmp	r5, #13
	beq	.L22
	cmp	r5, #128
	beq	.L59
	cmp	r5, #10
	beq	.L65
.L28:
	mov	r0, r5
	bl	NETADD
	bl	NETROOM
	cmp	r0, #2
	bgt	.L29
.L15:
	ldr	r3, [sp, #4]
	cmp	r7, #0
	orr	r3, r3, r7
	str	r3, [sp, #4]
	bne	.L66
.L6:
	ldr	r3, [sp, #4]
	subs	r0, r3, #0
	movne	r0, #1
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	cmp	r5, #128
	bne	.L28
.L59:
	mov	r1, r5
	mov	r0, r5
	bl	NET2ADD
	b	.L2
.L7:
	ldr	r9, .L72+24
	ldr	r1, [r9]
	sub	r0, r1, r0
	clz	r0, r0
	cmp	r2, r1
	lsr	r0, r0, #5
	moveq	r0, #0
	cmp	r0, #0
	bne	.L67
	ldr	r9, .L72+12
	mov	r8, r3
	str	r0, [r9]
	b	.L16
.L61:
	mov	r10, r8
	mov	fp, r6
	mov	r8, r7
	add	r7, r7, #1
	b	.L4
.L8:
	ldr	r1, .L72+28
	ldr	ip, [r1]
	cmp	ip, #0
	beq	.L9
	cmp	r4, #46
	str	r0, [r1]
	beq	.L11
	ldr	r1, .L72+32
	ldr	r1, [r1]
	cmp	r1, r5
	beq	.L11
	ldr	r1, .L72+36
	ldr	r1, [r1]
	cmp	r1, r4
	beq	.L68
	ldr	r1, .L72+24
	ldr	r1, [r1]
	cmp	r1, r4
	beq	.L69
	cmp	r2, r4
	movne	r5, r2
	movne	r6, fp
	movne	r7, r8
	movne	r3, r10
	mov	r4, r2
	b	.L9
.L62:
	mov	r1, r7
	ldr	r0, .L72
	bl	ring_consumed
	mov	r3, #1
	str	r3, [sp, #4]
	b	.L5
.L22:
	ldr	r3, .L72+40
	mov	r0, r5
	ldr	r1, [r3]
	cmp	r1, #0
	movne	r1, #10
	bl	NET2ADD
	mov	r3, #1
	ldr	r2, .L72+44
	str	r3, [r9]
	str	r3, [r2]
	b	.L2
.L65:
	ldr	r3, .L72+16
	ldr	r0, [r3]
	bl	MODE_LOCAL_CHARS
	cmp	r0, #0
	bne	.L70
.L25:
	mov	r0, #10
	bl	NETADD
	mov	r3, #1
	ldr	r2, .L72+44
	str	r3, [r9]
	str	r3, [r2]
	b	.L2
.L67:
	cmp	r3, #0
	beq	.L56
	ldrb	r0, [fp, #1]	@ zero_extendqisi2
	str	r3, [sp]
	bl	strip
	ldr	r2, [r9]
	ldr	r3, [sp]
	cmp	r0, r2
	bne	.L71
	mov	r3, #0
	ldr	r9, .L72+12
	add	r7, r8, #2
	add	r6, fp, #2
	sub	r8, r10, #2
	str	r3, [r9]
	b	.L16
.L63:
	mov	r1, #1
	ldr	r2, .L72+28
	mov	r8, r3
	str	r1, [r2]
	b	.L2
.L11:
	mov	r0, #1
	mov	r2, #6
	str	r0, [r9]
	ldr	r1, .L72+48
	mov	r0, #0
	mov	r8, r3
	bl	command
	b	.L2
.L70:
	mov	r0, #13
	bl	NETADD
	b	.L25
.L66:
	mov	r1, r7
	ldr	r0, .L72
	bl	ring_consumed
	b	.L6
.L68:
	mov	r1, #1
	mov	r2, #2
	str	r1, [r9]
	ldr	r1, .L72+52
	mov	r8, r3
	bl	command
	b	.L2
.L64:
	mov	r3, #1
	str	r3, [r9]
	b	.L15
.L69:
	mov	r1, r6
	mov	r2, r3
	mov	fp, r3
	bl	command
	mov	r2, #1
	ldr	r1, .L72+44
	add	r7, r7, fp
	str	r2, [r9]
	str	r2, [r1]
	b	.L15
.L56:
	mov	fp, r3
.L18:
	mov	r2, fp
	mov	r1, r6
	mov	r0, #0
	bl	command
	mov	r3, #1
	ldr	r1, .L72+12
	ldr	r2, .L72+44
	str	r3, [r1]
	str	r3, [r2]
	b	.L15
.L71:
	mov	fp, r3
	add	r7, r7, r3
	b	.L18
.L73:
	.align	2
.L72:
	.word	ttyiring
	.word	rlogin
	.word	_POSIX_VDISABLE
	.word	bol
	.word	globalmode
	.word	TELOPT_BINARY
	.word	escape
	.word	local
	.word	termEofChar
	.word	termSuspChar
	.word	crlf
	.word	flushline
	.word	.LC0
	.word	.LC1
	.size	telsnd, .-telsnd
	.comm	ttyiring,4,4
	.comm	termSuspChar,4,4
	.comm	termEofChar,4,4
	.comm	rlogin,4,4
	.comm	local,4,4
	.comm	kludgelinemode,4,4
	.comm	globalmode,4,4
	.comm	flushline,4,4
	.comm	escape,4,4
	.comm	echotoggle,4,4
	.comm	echoc,4,4
	.comm	dontlecho,4,4
	.comm	crlf,4,4
	.comm	bol,4,4
	.comm	_POSIX_VDISABLE,4,4
	.comm	TELOPT_BINARY,4,4
	.comm	MODE_EDIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
