	.file	"554421.c"
	.intel_syntax noprefix
	.text
	.globl	saved_ios
	.bss
	.align 32
	.type	saved_ios, @object
	.size	saved_ios, 60
saved_ios:
	.zero	60
	.globl	progname
	.align 32
	.type	progname, @object
	.size	progname, 256
progname:
	.zero	256
	.section	.rodata
.LC0:
	.string	"localhost"
.LC1:
	.string	"not attached to a terminal"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -96[rbp], 1
	mov	DWORD PTR -92[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 256
	mov	rsi, rax
	lea	rdi, progname[rip]
	call	strncpy@PLT
	cmp	DWORD PTR -100[rbp], 2
	jne	.L2
	lea	rax, .LC0[rip]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -80[rbp], rax
	jmp	.L3
.L2:
	cmp	DWORD PTR -100[rbp], 3
	jne	.L4
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -80[rbp], rax
	jmp	.L3
.L4:
	mov	edi, 1
	call	usage
.L3:
	mov	edi, 0
	call	isatty@PLT
	test	eax, eax
	jne	.L5
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L5:
	mov	eax, 0
	call	raw_term
	lea	rax, -64[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -52[rbp], 6
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -88[rbp]
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	remote_connect
	add	rsp, 48
	mov	DWORD PTR -92[rbp], eax
	mov	DWORD PTR -96[rbp], 0
	mov	eax, DWORD PTR -92[rbp]
	mov	edi, eax
	call	readwrite
	cmp	DWORD PTR -92[rbp], 0
	je	.L6
	mov	eax, DWORD PTR -92[rbp]
	mov	edi, eax
	call	close@PLT
.L6:
	mov	eax, DWORD PTR -96[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC2:
	.string	"getaddrinfo: %s"
	.text
	.globl	remote_connect
	.type	remote_connect, @function
remote_connect:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -24[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	lea	rdx, 16[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L9
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
.L14:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	js	.L17
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	je	.L18
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -32[rbp], -1
	jmp	.L11
.L17:
	nop
.L11:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L14
	jmp	.L13
.L18:
	nop
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	remote_connect, .-remote_connect
	.section	.rodata
.LC3:
	.string	"Select Error:"
.LC4:
	.string	"quit!"
	.text
	.globl	readwrite
	.type	readwrite, @function
readwrite:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 224
	mov	DWORD PTR -8404[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fileno@PLT
	mov	DWORD PTR -8396[rbp], eax
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fileno@PLT
	mov	DWORD PTR -8392[rbp], eax
	mov	DWORD PTR -8400[rbp], 0
	cmp	DWORD PTR -8404[rbp], -1
	je	.L40
	mov	eax, DWORD PTR -8404[rbp]
	add	eax, 1
	mov	DWORD PTR -8388[rbp], eax
.L37:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -8352[rbp]
	mov	rdi, rdx
#APP
# 159 "the_stack_data/554421.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -8384[rbp], edx
	mov	DWORD PTR -8380[rbp], eax
	mov	eax, DWORD PTR -8396[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -8352[rbp+rax*8]
	mov	eax, DWORD PTR -8396[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -8352[rbp+rax*8], rdx
	mov	eax, DWORD PTR -8404[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -8352[rbp+rax*8]
	mov	eax, DWORD PTR -8404[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -8352[rbp+rax*8], rdx
	mov	QWORD PTR -8368[rbp], 1
	mov	QWORD PTR -8360[rbp], 0
	lea	rdx, -8368[rbp]
	lea	rsi, -8352[rbp]
	mov	eax, DWORD PTR -8388[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	edi, eax
	call	select@PLT
	mov	DWORD PTR -8376[rbp], eax
	cmp	DWORD PTR -8376[rbp], 0
	jns	.L22
	mov	eax, DWORD PTR -8404[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC3[rip]
	call	perror@PLT
.L22:
	cmp	DWORD PTR -8376[rbp], 0
	jne	.L23
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -8404[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jns	.L41
	jmp	.L19
.L23:
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -8404[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	js	.L42
	mov	eax, DWORD PTR -8404[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -8352[rbp+rax*8]
	mov	eax, DWORD PTR -8404[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L27
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -8404[rbp]
	mov	edx, 8192
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -8376[rbp], eax
	cmp	DWORD PTR -8376[rbp], 0
	js	.L43
	cmp	DWORD PTR -8376[rbp], 0
	jne	.L29
	mov	eax, DWORD PTR -8404[rbp]
	mov	esi, 0
	mov	edi, eax
	call	shutdown@PLT
	jmp	.L19
.L29:
	mov	eax, DWORD PTR -8376[rbp]
	movsx	rcx, eax
	lea	rdx, -8208[rbp]
	mov	eax, DWORD PTR -8392[rbp]
	mov	esi, eax
	mov	rax, QWORD PTR write@GOTPCREL[rip]
	mov	rdi, rax
	call	atomicio
	mov	DWORD PTR -8372[rbp], eax
	mov	eax, DWORD PTR -8372[rbp]
	cmp	eax, DWORD PTR -8376[rbp]
	jne	.L44
.L27:
	mov	eax, DWORD PTR -8396[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -8352[rbp+rax*8]
	mov	eax, DWORD PTR -8396[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L37
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -8396[rbp]
	mov	edx, 8192
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -8376[rbp], eax
	cmp	DWORD PTR -8376[rbp], 0
	js	.L45
	cmp	DWORD PTR -8376[rbp], 0
	jne	.L31
	mov	eax, DWORD PTR -8404[rbp]
	mov	esi, 1
	mov	edi, eax
	call	shutdown@PLT
	jmp	.L37
.L31:
	cmp	DWORD PTR -8400[rbp], 0
	je	.L32
	mov	WORD PTR -8210[rbp], 126
	movzx	eax, BYTE PTR -8208[rbp]
	cmp	al, 46
	jne	.L33
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L19
.L33:
	mov	DWORD PTR -8400[rbp], 0
	movzx	eax, BYTE PTR -8208[rbp]
	cmp	al, 126
	je	.L36
	lea	rdx, -8210[rbp]
	mov	eax, DWORD PTR -8404[rbp]
	mov	ecx, 1
	mov	esi, eax
	mov	rax, QWORD PTR write@GOTPCREL[rip]
	mov	rdi, rax
	call	atomicio
	mov	DWORD PTR -8372[rbp], eax
	mov	eax, DWORD PTR -8372[rbp]
	cmp	eax, DWORD PTR -8376[rbp]
	je	.L36
	jmp	.L19
.L32:
	movzx	eax, BYTE PTR -8208[rbp]
	cmp	al, 126
	sete	al
	movzx	eax, al
	mov	DWORD PTR -8400[rbp], eax
	cmp	DWORD PTR -8400[rbp], 0
	jne	.L46
.L36:
	mov	eax, DWORD PTR -8376[rbp]
	movsx	rcx, eax
	lea	rdx, -8208[rbp]
	mov	eax, DWORD PTR -8404[rbp]
	mov	esi, eax
	mov	rax, QWORD PTR write@GOTPCREL[rip]
	mov	rdi, rax
	call	atomicio
	mov	DWORD PTR -8372[rbp], eax
	mov	eax, DWORD PTR -8372[rbp]
	cmp	eax, DWORD PTR -8376[rbp]
	jne	.L47
	jmp	.L37
.L41:
	nop
	jmp	.L37
.L46:
	nop
	jmp	.L37
.L40:
	nop
	jmp	.L19
.L42:
	nop
	jmp	.L19
.L43:
	nop
	jmp	.L19
.L44:
	nop
	jmp	.L19
.L45:
	nop
	jmp	.L19
.L47:
	nop
.L19:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	readwrite, .-readwrite
	.section	.rodata
.LC5:
	.string	"usage: %s hostname port\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, progname[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -4[rbp], 0
	je	.L50
	mov	edi, 1
	call	exit@PLT
.L50:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	usage, .-usage
	.globl	atomicio
	.type	atomicio, @function
atomicio:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -24[rbp], 0
	jmp	.L52
.L58:
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -64[rbp]
	sub	rax, rcx
	mov	rdx, rax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, [rcx+rax]
	mov	eax, DWORD PTR -44[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	edi, eax
	mov	eax, 0
	call	rcx
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	je	.L53
	cmp	QWORD PTR -8[rbp], 0
	je	.L54
	jmp	.L59
.L53:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L52
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L54
	jmp	.L52
.L54:
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L57
.L59:
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -24[rbp], rax
.L52:
	mov	rax, QWORD PTR -24[rbp]
	cmp	QWORD PTR -64[rbp], rax
	ja	.L58
	mov	rax, QWORD PTR -24[rbp]
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	atomicio, .-atomicio
	.section	.rodata
.LC6:
	.string	"tcgetagttr\n"
.LC7:
	.string	"tcsetattr\n"
	.text
	.globl	raw_term
	.type	raw_term, @function
raw_term:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -80[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	tcgetattr@PLT
	test	eax, eax
	jns	.L61
	lea	rsi, .LC6[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L61:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR saved_ios[rip], rax
	mov	QWORD PTR saved_ios[rip+8], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR saved_ios[rip+16], rax
	mov	QWORD PTR saved_ios[rip+24], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR saved_ios[rip+32], rax
	mov	QWORD PTR saved_ios[rip+40], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR saved_ios[rip+48], rax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR saved_ios[rip+56], eax
	mov	eax, DWORD PTR -80[rbp]
	and	eax, -5537
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	and	eax, -2
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	and	eax, 4
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	and	eax, -12
	mov	DWORD PTR -68[rbp], eax
	mov	BYTE PTR -57[rbp], 1
	mov	BYTE PTR -58[rbp], 0
	lea	rax, -80[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	test	eax, eax
	jns	.L62
	lea	rsi, .LC7[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L62:
	lea	rdi, restore_term[rip]
	call	atexit@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L63
	call	__stack_chk_fail@PLT
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	raw_term, .-raw_term
	.globl	restore_term
	.type	restore_term, @function
restore_term:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdx, saved_ios[rip]
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	restore_term, .-restore_term
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"554421.c"
	.text
	.comm	saved_ios,60,4
	.comm	progname,256,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"localhost\000"
	.align	2
.LC1:
	.ascii	"not attached to a terminal\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	mov	r2, #256
	mov	r1, r3
	ldr	r0, .L8+4
	bl	strncpy
	ldr	r3, [fp, #-64]
	cmp	r3, #2
	bne	.L2
	ldr	r3, .L8+8
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-56]
	b	.L3
.L2:
	ldr	r3, [fp, #-64]
	cmp	r3, #3
	bne	.L4
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-56]
	b	.L3
.L4:
	mov	r0, #1
	bl	usage
.L3:
	mov	r0, #0
	bl	isatty
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r1, .L8+12
	mov	r0, #1
	bl	errx
.L5:
	bl	raw_term
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-32]
	mov	r3, #6
	str	r3, [fp, #-28]
	mov	lr, sp
	sub	ip, fp, #32
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	sub	r3, fp, #40
	ldm	r3, {r2, r3}
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-60]
	bl	remote_connect
	str	r0, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	readwrite
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L6
	ldr	r0, [fp, #-48]
	bl	close
.L6:
	ldr	r0, [fp, #-52]
	bl	exit
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	progname
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"getaddrinfo: %s\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	remote_connect
	.syntax unified
	.arm
	.fpu softvfp
	.type	remote_connect, %function
remote_connect:
	@ args = 32, pretend = 8, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #8
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	add	r1, fp, #4
	stm	r1, {r2, r3}
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	add	r2, fp, #4
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	getaddrinfo
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L11
	ldr	r0, [fp, #-12]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L21+4
	mov	r0, #1
	bl	errx
.L11:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
.L16:
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L19
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r0, [fp, #-16]
	bl	close
	mvn	r3, #0
	str	r3, [fp, #-16]
	b	.L13
.L19:
	nop
.L13:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L16
	b	.L15
.L20:
	nop
.L15:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	freeaddrinfo
	ldr	r3, [fp, #-16]
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #8
	bx	lr
.L22:
	.align	2
.L21:
	.word	.LC4
	.word	.LC3
	.size	remote_connect, .-remote_connect
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Select Error:\000"
	.align	2
.LC6:
	.ascii	"quit!\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readwrite
	.syntax unified
	.arm
	.fpu softvfp
	.type	readwrite, %function
readwrite:
	@ args = 0, pretend = 0, frame = 8376
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8384
	sub	sp, sp, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-180]
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L54+4
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	fileno
	str	r0, [r4, #-168]
	ldr	r3, .L54+8
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	fileno
	str	r0, [r4, #-164]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-176]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-180]
	cmn	r3, #1
	beq	.L46
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-180]
	add	r3, r3, #1
	str	r3, [r2, #-160]
.L43:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8320
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [r2, #-156]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-172]
	b	.L26
.L27:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-156]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-172]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-172]
	add	r3, r3, #1
	str	r3, [r2, #-172]
.L26:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-172]
	cmp	r3, #31
	bls	.L27
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-168]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-136]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-168]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-136]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-180]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-136]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-180]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-136]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-144]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-140]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #8320
	sub	r1, r1, #12
	sub	r1, r1, #8
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #8320
	sub	r3, r3, #12
	sub	r3, r3, #16
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r0, [r0, #-160]
	bl	select
	str	r0, [r4, #-152]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-152]
	cmp	r3, #0
	bge	.L28
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-180]
	bl	close
	ldr	r0, .L54+12
	bl	perror
.L28:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-152]
	cmp	r3, #0
	bne	.L29
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [r0, #-180]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bge	.L47
	b	.L23
.L29:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [r0, #-180]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	blt	.L48
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-180]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #8192
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-136]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-180]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L33
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #8192
	mov	r1, r3
	ldr	r0, [r0, #-180]
	bl	read
	str	r0, [r4, #-152]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-152]
	cmp	r3, #0
	blt	.L49
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-152]
	cmp	r3, #0
	bne	.L35
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, #0
	ldr	r0, [r3, #-180]
	bl	shutdown
	b	.L23
.L35:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-152]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	ldr	r1, [r1, #-164]
	ldr	r0, .L54+16
	bl	atomicio
	str	r0, [r4, #-148]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-148]
	ldr	r3, [r3, #-152]
	cmp	r2, r3
	bne	.L50
.L33:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-168]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #8192
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-136]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-168]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L43
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #8192
	mov	r1, r3
	ldr	r0, [r0, #-168]
	bl	read
	str	r0, [r4, #-152]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-152]
	cmp	r3, #0
	blt	.L51
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-152]
	cmp	r3, #0
	bne	.L37
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, #1
	ldr	r0, [r3, #-180]
	bl	shutdown
	b	.L43
.L37:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-176]
	cmp	r3, #0
	beq	.L38
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #126
	strh	r2, [r3, #-8]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L39
	ldr	r0, .L54+20
	bl	puts
	b	.L23
.L39:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-176]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	cmp	r3, #126
	beq	.L42
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r2, r2, #8
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	mov	r3, #1
	ldr	r1, [r1, #-180]
	ldr	r0, .L54+16
	bl	atomicio
	str	r0, [r4, #-148]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-148]
	ldr	r3, [r3, #-152]
	cmp	r2, r3
	beq	.L42
	b	.L23
.L38:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	cmp	r3, #126
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-176]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-176]
	cmp	r3, #0
	bne	.L52
.L42:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-152]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	ldr	r1, [r1, #-180]
	ldr	r0, .L54+16
	bl	atomicio
	str	r0, [r4, #-148]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-148]
	ldr	r3, [r3, #-152]
	cmp	r2, r3
	bne	.L53
	b	.L43
.L47:
	nop
	b	.L43
.L52:
	nop
	b	.L43
.L46:
	nop
	b	.L23
.L48:
	nop
	b	.L23
.L49:
	nop
	b	.L23
.L50:
	nop
	b	.L23
.L51:
	nop
	b	.L23
.L53:
	nop
.L23:
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC7
	.word	stdin
	.word	stdout
	.word	.LC5
	.word	write
	.word	.LC6
	.size	readwrite, .-readwrite
	.section	.rodata
	.align	2
.LC8:
	.ascii	"usage: %s hostname port\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L59
	ldr	r3, [r3]
	ldr	r2, .L59+4
	ldr	r1, .L59+8
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L58
	mov	r0, #1
	bl	exit
.L58:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	stderr
	.word	progname
	.word	.LC8
	.size	usage, .-usage
	.align	2
	.global	atomicio
	.syntax unified
	.arm
	.fpu softvfp
	.type	atomicio, %function
atomicio:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L62
.L68:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	add	r1, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-36]
	sub	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r0, [fp, #-28]
	blx	r3
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L63
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L64
	b	.L69
.L63:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L62
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L64
	b	.L62
.L64:
	ldr	r3, [fp, #-8]
	b	.L67
.L69:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L62:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bhi	.L68
	ldr	r3, [fp, #-16]
.L67:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	atomicio, .-atomicio
	.section	.rodata
	.align	2
.LC9:
	.ascii	"tcgetagttr\012\000"
	.align	2
.LC10:
	.ascii	"tcsetattr\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	raw_term
	.syntax unified
	.arm
	.fpu softvfp
	.type	raw_term, %function
raw_term:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L74
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #68
	mov	r1, r3
	mov	r0, #0
	bl	tcgetattr
	mov	r3, r0
	cmp	r3, #0
	bge	.L71
	ldr	r1, .L74+4
	mov	r0, #1
	bl	errx
.L71:
	ldr	r3, .L74+8
	mov	lr, r3
	sub	ip, fp, #68
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2}
	stm	lr, {r0, r1, r2}
	ldr	r3, [fp, #-68]
	bic	r3, r3, #5504
	bic	r3, r3, #32
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-64]
	bic	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	and	r3, r3, #4
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-56]
	bic	r3, r3, #11
	str	r3, [fp, #-56]
	mov	r3, #1
	strb	r3, [fp, #-45]
	mov	r3, #0
	strb	r3, [fp, #-46]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	mov	r3, r0
	cmp	r3, #0
	bge	.L72
	ldr	r1, .L74+12
	mov	r0, #1
	bl	errx
.L72:
	ldr	r0, .L74+16
	bl	atexit
	nop
	ldr	r3, .L74
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L73
	bl	__stack_chk_fail
.L73:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC11
	.word	.LC9
	.word	saved_ios
	.word	.LC10
	.word	restore_term
	.size	raw_term, .-raw_term
	.align	2
	.global	restore_term
	.syntax unified
	.arm
	.fpu softvfp
	.type	restore_term, %function
restore_term:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r2, .L77
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	nop
	pop	{fp, pc}
.L78:
	.align	2
.L77:
	.word	saved_ios
	.size	restore_term, .-restore_term
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
