	.file	"128514.c"
	.intel_syntax noprefix
	.text
	.globl	sinme
	.bss
	.align 32
	.type	sinme, @object
	.size	sinme, 128
sinme:
	.zero	128
	.globl	sinhim
	.align 32
	.type	sinhim, @object
	.size	sinhim, 128
sinhim:
	.zero	128
	.globl	frominet
	.align 32
	.type	frominet, @object
	.size	frominet, 128
frominet:
	.zero	128
	.globl	domain
	.align 4
	.type	domain, @object
	.size	domain, 4
domain:
	.zero	4
	.globl	fromlen
	.align 4
	.type	fromlen, @object
	.size	fromlen, 4
fromlen:
	.zero	4
	.globl	fd
	.align 4
	.type	fd, @object
	.size	fd, 4
fd:
	.zero	4
	.globl	connfd
	.align 4
	.type	connfd, @object
	.size	connfd, 4
connfd:
	.zero	4
	.globl	port
	.data
	.align 2
	.type	port, @object
	.size	port, 2
port:
	.value	8877
	.globl	host
	.bss
	.align 8
	.type	host, @object
	.size	host, 8
host:
	.zero	8
	.globl	sPort
	.align 2
	.type	sPort, @object
	.size	sPort, 2
sPort:
	.zero	2
	.globl	server
	.data
	.align 4
	.type	server, @object
	.size	server, 4
server:
	.long	1
	.globl	initiate
	.bss
	.align 4
	.type	initiate, @object
	.size	initiate, 4
initiate:
	.zero	4
	.globl	Usage
	.data
	.align 32
	.type	Usage, @object
	.size	Usage, 289
Usage:
	.ascii	"Usage: echoS -c [-options] host "
	.string	"\n       ecohS -s [-options]\nCommon options:\n        -p ##   port number to send to or listen at (default 8877)\n        -4      set IPv4 family for socket\n        -6      set IPv6 family for socket\n        -P ##   for -c, port number for client source port\n"
	.section	.rodata
.LC0:
	.string	"46cp:P:s"
.LC1:
	.string	"badhostname"
.LC2:
	.string	"must specify address family"
.LC3:
	.string	"socket"
.LC4:
	.string	"bind"
.LC5:
	.string	"connect"
.LC6:
	.string	"accept from "
	.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
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -52[rbp], 1
	jle	.L38
	mov	edx, 8
	mov	esi, 0
	lea	rdi, sinme[rip]
	call	memset@PLT
	mov	edx, 8
	mov	esi, 0
	lea	rdi, sinhim[rip]
	call	memset@PLT
	mov	edx, 8
	mov	esi, 0
	lea	rdi, frominet[rip]
	call	memset@PLT
	jmp	.L4
.L12:
	cmp	DWORD PTR -48[rbp], 115
	je	.L5
	cmp	DWORD PTR -48[rbp], 115
	jg	.L39
	cmp	DWORD PTR -48[rbp], 112
	je	.L7
	cmp	DWORD PTR -48[rbp], 112
	jg	.L39
	cmp	DWORD PTR -48[rbp], 99
	je	.L8
	cmp	DWORD PTR -48[rbp], 99
	jg	.L39
	cmp	DWORD PTR -48[rbp], 80
	je	.L9
	cmp	DWORD PTR -48[rbp], 80
	jg	.L39
	cmp	DWORD PTR -48[rbp], 52
	je	.L10
	cmp	DWORD PTR -48[rbp], 54
	je	.L11
	jmp	.L39
.L8:
	mov	DWORD PTR server[rip], 0
	jmp	.L4
.L5:
	mov	DWORD PTR server[rip], 1
	jmp	.L4
.L10:
	mov	WORD PTR sinme[rip], 2
	jmp	.L4
.L11:
	mov	WORD PTR sinme[rip], 10
	jmp	.L4
.L7:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	WORD PTR port[rip], ax
	jmp	.L4
.L9:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	WORD PTR sPort[rip], ax
	nop
.L4:
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, .LC0[rip]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	getopt@PLT
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], -1
	jne	.L12
	mov	eax, DWORD PTR server[rip]
	test	eax, eax
	jne	.L13
	mov	DWORD PTR initiate[rip], 1
.L13:
	mov	eax, DWORD PTR initiate[rip]
	test	eax, eax
	je	.L14
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -52[rbp], eax
	je	.L40
	lea	rdx, sinhim[rip]
	mov	eax, 0
	mov	ecx, 16
	mov	rdi, rdx
	rep stosq
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR host[rip], rax
	mov	rax, QWORD PTR host[rip]
	lea	rdx, -40[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	getaddrinfo@PLT
	test	eax, eax
	je	.L16
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	err_sys
.L16:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rsi, rax
	lea	rdi, sinhim[rip]
	call	memcpy@PLT
	movzx	eax, WORD PTR sinhim[rip]
	movzx	eax, ax
	cmp	eax, 2
	je	.L17
	cmp	eax, 10
	je	.L18
	jmp	.L19
.L17:
	movzx	eax, WORD PTR port[rip]
	movzx	eax, ax
	lea	rbx, sinhim[rip]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR 2[rbx], ax
	lea	rax, sinme[rip]
	mov	WORD PTR 2[rax], 0
	jmp	.L19
.L18:
	movzx	eax, WORD PTR port[rip]
	movzx	eax, ax
	lea	rbx, sinhim[rip]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR 2[rbx], ax
	lea	rax, sinme[rip]
	mov	WORD PTR 2[rax], 0
	nop
.L19:
	movzx	eax, WORD PTR sinhim[rip]
	mov	WORD PTR sinme[rip], ax
	movzx	eax, WORD PTR sPort[rip]
	test	ax, ax
	jle	.L41
	movzx	eax, WORD PTR sinme[rip]
	movzx	eax, ax
	cmp	eax, 2
	je	.L21
	cmp	eax, 10
	je	.L22
	jmp	.L24
.L21:
	movzx	eax, WORD PTR sPort[rip]
	movzx	eax, ax
	lea	rbx, sinme[rip]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR 2[rbx], ax
	jmp	.L24
.L22:
	movzx	eax, WORD PTR sPort[rip]
	movzx	eax, ax
	lea	rbx, sinme[rip]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR 2[rbx], ax
	jmp	.L24
.L14:
	movzx	eax, WORD PTR sinme[rip]
	movzx	eax, ax
	cmp	eax, 2
	je	.L25
	cmp	eax, 10
	je	.L26
	jmp	.L36
.L25:
	movzx	eax, WORD PTR port[rip]
	movzx	eax, ax
	lea	rbx, sinme[rip]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR 2[rbx], ax
	jmp	.L24
.L26:
	movzx	eax, WORD PTR port[rip]
	movzx	eax, ax
	lea	rbx, sinme[rip]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR 2[rbx], ax
	jmp	.L24
.L36:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	out_sys
	jmp	.L3
.L41:
	nop
.L24:
	movzx	eax, WORD PTR sinme[rip]
	movzx	eax, ax
	mov	edx, 0
	mov	esi, 1
	mov	edi, eax
	call	Socket
	mov	DWORD PTR fd[rip], eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	out_sys
	mov	eax, DWORD PTR initiate[rip]
	test	eax, eax
	je	.L28
	movzx	eax, WORD PTR sPort[rip]
	test	ax, ax
	jle	.L29
.L28:
	mov	eax, DWORD PTR fd[rip]
	mov	edx, 128
	lea	rsi, sinme[rip]
	mov	edi, eax
	call	Bind
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	out_sys
.L29:
	mov	eax, DWORD PTR initiate[rip]
	test	eax, eax
	je	.L30
	mov	eax, DWORD PTR fd[rip]
	mov	edx, 128
	lea	rsi, sinhim[rip]
	mov	edi, eax
	call	Connect
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	out_sys
	mov	edx, DWORD PTR fd[rip]
	mov	rax, QWORD PTR stdin[rip]
	mov	esi, edx
	mov	rdi, rax
	call	Str_cli
	mov	eax, 1
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L35
	jmp	.L37
.L30:
	mov	eax, DWORD PTR fd[rip]
	mov	esi, 5
	mov	edi, eax
	call	Listen
	lea	rsi, sig_chld[rip]
	mov	edi, 17
	call	Signal
.L33:
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, fromlen[rip]
	lea	rsi, frominet[rip]
	mov	edi, eax
	call	Accept
	mov	DWORD PTR connfd[rip], eax
	mov	eax, DWORD PTR connfd[rip]
	mov	edi, eax
	call	Getpeername
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	call	concat
	mov	rdi, rax
	mov	eax, 0
	call	out_sys
	call	Fork
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jne	.L32
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	Close
	mov	eax, DWORD PTR connfd[rip]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	Str_echo
	mov	edi, 0
	call	exit@PLT
.L32:
	mov	eax, DWORD PTR connfd[rip]
	mov	edi, eax
	call	Close
	jmp	.L33
.L38:
	nop
	jmp	.L3
.L39:
	nop
	jmp	.L3
.L40:
	nop
.L3:
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, Usage[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L37:
	call	__stack_chk_fail@PLT
.L35:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	Socket
	.type	Socket, @function
Socket:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	edx, DWORD PTR -28[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L43
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	err_sys
.L43:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Socket, .-Socket
	.globl	Bind
	.type	Bind, @function
Bind:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -8[rbp], edx
	mov	edx, DWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L47
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	err_sys
.L47:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Bind, .-Bind
	.globl	Connect
	.type	Connect, @function
Connect:
.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	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -8[rbp], edx
	mov	edx, DWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L50
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	err_sys
.L50:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Connect, .-Connect
	.section	.rodata
.LC7:
	.string	"LISTENQ"
.LC8:
	.string	"listen"
	.text
	.globl	Listen
	.type	Listen, @function
Listen:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	lea	rdi, .LC7[rip]
	call	getenv@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L52
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -24[rbp], eax
.L52:
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L54
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	err_sys
.L54:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	Listen, .-Listen
	.section	.rodata
.LC9:
	.string	"accept"
	.text
	.globl	Accept
	.type	Accept, @function
Accept:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L56
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	err_sys
.L56:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	Accept, .-Accept
	.section	.rodata
.LC10:
	.string	"getpeername"
.LC11:
	.string	"%s:%u"
	.text
	.globl	Getpeername
	.type	Getpeername, @function
Getpeername:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 736
	mov	DWORD PTR -724[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -716[rbp], 128
	lea	rdx, -716[rbp]
	lea	rcx, -704[rbp]
	mov	eax, DWORD PTR -724[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getpeername@PLT
	test	eax, eax
	jns	.L59
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	err_sys
.L59:
	movzx	eax, WORD PTR -704[rbp]
	movzx	eax, ax
	cmp	eax, 2
	je	.L60
	cmp	eax, 10
	je	.L61
	jmp	.L62
.L60:
	lea	rax, -704[rbp]
	lea	rsi, 4[rax]
	movzx	eax, WORD PTR -704[rbp]
	movzx	eax, ax
	lea	rdx, -576[rbp]
	mov	ecx, 256
	mov	edi, eax
	mov	eax, 0
	call	inet_ntop@PLT
	lea	rax, -704[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	WORD PTR -718[rbp], ax
	jmp	.L62
.L61:
	lea	rax, -704[rbp]
	lea	rsi, 8[rax]
	movzx	eax, WORD PTR -704[rbp]
	movzx	eax, ax
	lea	rdx, -576[rbp]
	mov	ecx, 256
	mov	edi, eax
	mov	eax, 0
	call	inet_ntop@PLT
	lea	rax, -704[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	WORD PTR -718[rbp], ax
	nop
.L62:
	movzx	ecx, WORD PTR -718[rbp]
	lea	rdx, -576[rbp]
	lea	rax, -320[rbp]
	mov	r8d, ecx
	mov	rcx, rdx
	lea	rdx, .LC11[rip]
	mov	esi, 300
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -320[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -712[rbp], rax
	lea	rdx, -320[rbp]
	mov	rax, QWORD PTR -712[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -712[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	Getpeername, .-Getpeername
	.section	.rodata
.LC12:
	.string	"close"
	.text
	.globl	Close
	.type	Close, @function
Close:
.LFB13:
	.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	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	cmp	eax, -1
	jne	.L67
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	err_sys
.L67:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	Close, .-Close
	.section	.rodata
.LC13:
	.string	"echoS: "
.LC14:
	.string	"errno=%d\n"
	.text
	.globl	err_sys
	.type	err_sys, @function
err_sys:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L69
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L69:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	perror@PLT
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE14:
	.size	err_sys, .-err_sys
	.section	.rodata
.LC15:
	.string	"%ld %d echoS: %s\n"
	.text
	.globl	out_sys
	.type	out_sys, @function
out_sys:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L72
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L72:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -216[rbp], rax
	mov	eax, 0
	call	getpid@PLT
	mov	esi, eax
	mov	rdx, QWORD PTR -232[rbp]
	mov	rax, QWORD PTR -216[rbp]
	mov	rcx, rdx
	mov	edx, esi
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L73
	call	__stack_chk_fail@PLT
.L73:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	out_sys, .-out_sys
	.section	.rodata
.LC16:
	.string	"fgets"
	.text
	.globl	Fgets
	.type	Fgets, @function
Fgets:
.LFB16:
	.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L75
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L75
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	err_sys
.L75:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	Fgets, .-Fgets
	.section	.rodata
.LC17:
	.string	"fputs"
	.text
	.globl	Fputs
	.type	Fputs, @function
Fputs:
.LFB17:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	cmp	eax, -1
	jne	.L79
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	err_sys
.L79:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	Fputs, .-Fputs
	.globl	concat
	.type	concat, @function
concat:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	concat, .-concat
	.globl	randstring
	.type	randstring, @function
randstring:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L83
.L84:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, -1370734243
	shr	rdx, 32
	add	edx, eax
	sar	edx, 6
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 94
	sub	eax, ecx
	mov	edx, eax
	mov	eax, edx
	lea	ecx, 32[rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -12[rbp], 1
.L83:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L84
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	randstring, .-randstring
	.section	.rodata
.LC18:
	.string	"child %d terminated"
	.text
	.globl	sig_chld
	.type	sig_chld, @function
sig_chld:
.LFB20:
	.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	DWORD PTR -68[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L87
.L88:
	mov	edx, DWORD PTR -52[rbp]
	lea	rax, -48[rbp]
	mov	ecx, edx
	lea	rdx, .LC18[rip]
	mov	esi, 30
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	out_sys
.L87:
	lea	rax, -56[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, -1
	mov	eax, 0
	call	waitpid@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jg	.L88
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L90
	call	__stack_chk_fail@PLT
.L90:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	sig_chld, .-sig_chld
	.section	.rodata
.LC19:
	.string	"fork"
	.text
	.globl	Fork
	.type	Fork, @function
Fork:
.LFB21:
	.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
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L92
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	err_sys
.L92:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	Fork, .-Fork
	.section	.rodata
.LC20:
	.string	"signal"
	.text
	.globl	Signal
	.type	Signal, @function
Signal:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	signal@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L95
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	err_sys
.L95:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	Signal, .-Signal
	.section	.rodata
.LC21:
	.string	"writen"
	.text
	.globl	Writen
	.type	Writen, @function
Writen:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	writen
	mov	rdx, QWORD PTR -24[rbp]
	cmp	rax, rdx
	je	.L99
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	err_sys
.L99:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	Writen, .-Writen
	.globl	writen
	.type	writen, @function
writen:
.LFB24:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L101
.L105:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	cdqe
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jg	.L102
	cmp	QWORD PTR -16[rbp], 0
	jns	.L103
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L103
	mov	QWORD PTR -16[rbp], 0
	jmp	.L102
.L103:
	mov	rax, -1
	jmp	.L104
.L102:
	mov	rax, QWORD PTR -16[rbp]
	sub	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	add	QWORD PTR -8[rbp], rax
.L101:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L105
	mov	rax, QWORD PTR -56[rbp]
.L104:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	writen, .-writen
	.section	.rodata
.LC22:
	.string	"readline"
	.text
	.globl	Readline
	.type	Readline, @function
Readline:
.LFB25:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	readline
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jns	.L107
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	err_sys
.L107:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	Readline, .-Readline
	.globl	readline
	.type	readline, @function
readline:
.LFB26:
	.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, 80
	mov	DWORD PTR -4148[rbp], edi
	mov	QWORD PTR -4160[rbp], rsi
	mov	QWORD PTR -4168[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4160[rbp]
	mov	QWORD PTR -4128[rbp], rax
	mov	QWORD PTR -4136[rbp], 1
	jmp	.L110
.L116:
	lea	rdx, -4137[rbp]
	mov	eax, DWORD PTR -4148[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	my_read
	mov	QWORD PTR -4120[rbp], rax
	cmp	QWORD PTR -4120[rbp], 1
	jne	.L111
	mov	rax, QWORD PTR -4128[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -4128[rbp], rdx
	movzx	edx, BYTE PTR -4137[rbp]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -4137[rbp]
	cmp	al, 10
	jne	.L112
	jmp	.L113
.L111:
	cmp	QWORD PTR -4120[rbp], 0
	jne	.L114
	mov	rax, QWORD PTR -4128[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -4136[rbp]
	sub	rax, 1
	jmp	.L117
.L114:
	mov	rax, -1
	jmp	.L117
.L112:
	add	QWORD PTR -4136[rbp], 1
.L110:
	mov	rax, QWORD PTR -4136[rbp]
	cmp	QWORD PTR -4168[rbp], rax
	ja	.L116
.L113:
	mov	rax, QWORD PTR -4128[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -4136[rbp]
.L117:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L118
	call	__stack_chk_fail@PLT
.L118:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	readline, .-readline
	.globl	my_read
	.type	my_read, @function
my_read:
.LFB27:
	.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, 48
	mov	DWORD PTR -4132[rbp], edi
	mov	QWORD PTR -4144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -4124[rbp], 0
	jg	.L120
	nop
.L121:
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -4132[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -4124[rbp], eax
	cmp	DWORD PTR -4124[rbp], 0
	jns	.L122
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L123
	jmp	.L121
.L122:
	cmp	DWORD PTR -4124[rbp], 0
	jne	.L123
	mov	eax, 0
	jmp	.L125
.L123:
	lea	rax, -4112[rbp]
	mov	QWORD PTR -4120[rbp], rax
.L120:
	sub	DWORD PTR -4124[rbp], 1
	mov	rax, QWORD PTR -4120[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -4120[rbp], rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -4144[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, 1
.L125:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L126
	call	__stack_chk_fail@PLT
.L126:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	my_read, .-my_read
	.section	.rodata
.LC23:
	.string	"server ready, peer: "
.LC24:
	.string	"read"
.LC25:
	.string	"connection closed by "
.LC26:
	.string	"\n"
.LC27:
	.string	"daytime"
.LC28:
	.string	"%.24s\r\n"
.LC29:
	.string	"time"
.LC30:
	.string	"%lu\n"
.LC31:
	.string	"chargen"
.LC32:
	.string	"%s\n"
	.text
	.globl	Str_echo
	.type	Str_echo, @function
Str_echo:
.LFB28:
	.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, 1088
	mov	DWORD PTR -5172[rbp], edi
	mov	QWORD PTR -5184[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -5184[rbp]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	call	concat
	mov	rdi, rax
	mov	eax, 0
	call	out_sys
.L136:
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -5172[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	edi, eax
	call	Readline
	mov	QWORD PTR -5152[rbp], rax
	cmp	QWORD PTR -5152[rbp], 0
	jns	.L128
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	err_sys
	jmp	.L129
.L128:
	cmp	QWORD PTR -5152[rbp], 0
	jne	.L129
	mov	rax, QWORD PTR -5184[rbp]
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	call	concat
	mov	rdi, rax
	mov	eax, 0
	call	out_sys
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L137
	jmp	.L138
.L129:
	lea	rsi, .LC26[rip]
	lea	rdi, .LC27[rip]
	call	concat
	mov	rdx, rax
	lea	rax, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L131
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -5160[rbp], rax
	lea	rax, -5160[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rdx, rax
	lea	rax, -5136[rbp]
	mov	rcx, rdx
	lea	rdx, .LC28[rip]
	mov	esi, 1024
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -5136[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -5136[rbp]
	mov	eax, DWORD PTR -5172[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	jmp	.L136
.L131:
	lea	rsi, .LC26[rip]
	lea	rdi, .LC29[rip]
	call	concat
	mov	rdx, rax
	lea	rax, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L133
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -5144[rbp], rax
	mov	rdx, QWORD PTR -5144[rbp]
	lea	rax, -5136[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -5136[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -5136[rbp]
	mov	eax, DWORD PTR -5172[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	jmp	.L136
.L133:
	lea	rsi, .LC26[rip]
	lea	rdi, .LC31[rip]
	call	concat
	mov	rdx, rax
	lea	rax, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L134
.L135:
	mov	edi, 999
	call	randstring
	mov	rdx, rax
	lea	rax, -5136[rbp]
	mov	rcx, rdx
	lea	rdx, .LC32[rip]
	mov	esi, 1024
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -5136[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -5136[rbp]
	mov	eax, DWORD PTR -5172[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
	jmp	.L135
.L134:
	mov	rdx, QWORD PTR -5152[rbp]
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -5172[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	Writen
	jmp	.L136
.L138:
	call	__stack_chk_fail@PLT
.L137:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	Str_echo, .-Str_echo
	.globl	Str_cli
	.type	Str_cli, @function
Str_cli:
.LFB29:
	.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, 32
	mov	QWORD PTR -4120[rbp], rdi
	mov	DWORD PTR -4124[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L140
.L143:
	lea	rax, -4112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -4124[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	Writen
	lea	rsi, .LC26[rip]
	lea	rdi, .LC31[rip]
	call	concat
	mov	rdx, rax
	lea	rax, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L141
.L142:
	mov	eax, DWORD PTR -4124[rbp]
	mov	edi, eax
	call	Str_puts
	jmp	.L142
.L141:
	mov	eax, DWORD PTR -4124[rbp]
	mov	edi, eax
	call	Str_puts
.L140:
	mov	rdx, QWORD PTR -4120[rbp]
	lea	rax, -4112[rbp]
	mov	esi, 4096
	mov	rdi, rax
	call	Fgets
	test	rax, rax
	jne	.L143
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L144
	call	__stack_chk_fail@PLT
.L144:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	Str_cli, .-Str_cli
	.section	.rodata
.LC33:
	.string	"server terminated prematurely"
	.text
	.globl	Str_puts
	.type	Str_puts, @function
Str_puts:
.LFB30:
	.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, 32
	mov	DWORD PTR -4116[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -4116[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	edi, eax
	call	Readline
	test	rax, rax
	jne	.L146
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	err_sys
.L146:
	mov	rdx, QWORD PTR stdout[rip]
	lea	rax, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	Fputs
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L147
	call	__stack_chk_fail@PLT
.L147:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	Str_puts, .-Str_puts
	.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	"128514.c"
	.text
	.comm	sinme,128,4
	.comm	sinhim,128,4
	.comm	frominet,128,4
	.comm	domain,4,4
	.comm	fromlen,4,4
	.comm	fd,4,4
	.comm	connfd,4,4
	.global	port
	.data
	.align	1
	.type	port, %object
	.size	port, 2
port:
	.short	8877
	.comm	host,4,4
	.global	sPort
	.bss
	.align	1
	.type	sPort, %object
	.size	sPort, 2
sPort:
	.space	2
	.global	server
	.data
	.align	2
	.type	server, %object
	.size	server, 4
server:
	.word	1
	.global	initiate
	.bss
	.align	2
	.type	initiate, %object
	.size	initiate, 4
initiate:
	.space	4
	.global	Usage
	.data
	.align	2
	.type	Usage, %object
	.size	Usage, 289
Usage:
	.ascii	"Usage: echoS -c [-options] host \012       ecohS -s"
	.ascii	" [-options]\012Common options:\012        -p ##   p"
	.ascii	"ort number to send to or listen at (default 8877)\012"
	.ascii	"        -4      set IPv4 family for socket\012     "
	.ascii	"   -6      set IPv6 family for socket\012        -P"
	.ascii	" ##   for -c, port number for client source port\012"
	.ascii	"\000"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"46cp:P:s\000"
	.align	2
.LC1:
	.ascii	"badhostname\000"
	.align	2
.LC2:
	.ascii	"must specify address family\000"
	.align	2
.LC3:
	.ascii	"socket\000"
	.align	2
.LC4:
	.ascii	"bind\000"
	.align	2
.LC5:
	.ascii	"connect\000"
	.align	2
.LC6:
	.ascii	"accept from \000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	ble	.L38
	mov	r2, #4
	mov	r1, #0
	ldr	r0, .L42+4
	bl	memset
	mov	r2, #4
	mov	r1, #0
	ldr	r0, .L42+8
	bl	memset
	mov	r2, #4
	mov	r1, #0
	ldr	r0, .L42+12
	bl	memset
	b	.L4
.L12:
	ldr	r3, [fp, #-28]
	cmp	r3, #115
	beq	.L5
	ldr	r3, [fp, #-28]
	cmp	r3, #115
	bgt	.L39
	ldr	r3, [fp, #-28]
	cmp	r3, #112
	beq	.L7
	ldr	r3, [fp, #-28]
	cmp	r3, #112
	bgt	.L39
	ldr	r3, [fp, #-28]
	cmp	r3, #99
	beq	.L8
	ldr	r3, [fp, #-28]
	cmp	r3, #99
	bgt	.L39
	ldr	r3, [fp, #-28]
	cmp	r3, #80
	beq	.L9
	ldr	r3, [fp, #-28]
	cmp	r3, #80
	bgt	.L39
	ldr	r3, [fp, #-28]
	cmp	r3, #52
	beq	.L10
	ldr	r3, [fp, #-28]
	cmp	r3, #54
	beq	.L11
	b	.L39
.L8:
	ldr	r3, .L42+16
	mov	r2, #0
	str	r2, [r3]
	b	.L4
.L5:
	ldr	r3, .L42+16
	mov	r2, #1
	str	r2, [r3]
	b	.L4
.L10:
	ldr	r3, .L42+4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	b	.L4
.L11:
	ldr	r3, .L42+4
	mov	r2, #10
	strh	r2, [r3]	@ movhi
	b	.L4
.L7:
	ldr	r3, .L42+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r3, r3, #16
	ldr	r2, .L42+24
	strh	r3, [r2]	@ movhi
	b	.L4
.L9:
	ldr	r3, .L42+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r3, r3, #16
	ldr	r2, .L42+28
	strh	r3, [r2]	@ movhi
	nop
.L4:
	ldr	r2, .L42+32
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	getopt
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L12
	ldr	r3, .L42+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L42+36
	mov	r2, #1
	str	r2, [r3]
.L13:
	ldr	r3, .L42+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L42+40
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	beq	.L40
	ldr	r3, .L42+8
	mov	r0, r3
	mov	r3, #128
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, .L42+40
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L42+44
	str	r3, [r2]
	ldr	r3, .L42+44
	ldr	r0, [r3]
	sub	r3, fp, #32
	mov	r2, #0
	mov	r1, #0
	bl	getaddrinfo
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r0, .L42+48
	bl	err_sys
.L16:
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, .L42+8
	bl	memcpy
	ldr	r3, .L42+8
	ldrh	r3, [r3]
	cmp	r3, #2
	beq	.L17
	cmp	r3, #10
	beq	.L18
	b	.L19
.L17:
	ldr	r3, .L42+24
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r4, .L42+8
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [r4, #2]	@ movhi
	ldr	r3, .L42+4
	mov	r2, #0
	strh	r2, [r3, #2]	@ movhi
	b	.L19
.L18:
	ldr	r3, .L42+24
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r4, .L42+8
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [r4, #2]	@ movhi
	ldr	r3, .L42+4
	mov	r2, #0
	strh	r2, [r3, #2]	@ movhi
	nop
.L19:
	ldr	r3, .L42+8
	ldrh	r3, [r3]
	ldr	r2, .L42+4
	strh	r3, [r2]	@ movhi
	ldr	r3, .L42+28
	ldrsh	r3, [r3]
	cmp	r3, #0
	ble	.L41
	ldr	r3, .L42+4
	ldrh	r3, [r3]
	cmp	r3, #2
	beq	.L21
	cmp	r3, #10
	beq	.L22
	b	.L24
.L21:
	ldr	r3, .L42+28
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r4, .L42+4
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [r4, #2]	@ movhi
	b	.L24
.L22:
	ldr	r3, .L42+28
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r4, .L42+4
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [r4, #2]	@ movhi
	b	.L24
.L14:
	ldr	r3, .L42+4
	ldrh	r3, [r3]
	cmp	r3, #2
	beq	.L25
	cmp	r3, #10
	beq	.L26
	b	.L36
.L25:
	ldr	r3, .L42+24
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r4, .L42+4
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [r4, #2]	@ movhi
	b	.L24
.L26:
	ldr	r3, .L42+24
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r4, .L42+4
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [r4, #2]	@ movhi
	b	.L24
.L36:
	ldr	r0, .L42+52
	bl	out_sys
	b	.L3
.L41:
	nop
.L24:
	ldr	r3, .L42+4
	ldrh	r3, [r3]
	mov	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	Socket
	mov	r3, r0
	ldr	r2, .L42+56
	str	r3, [r2]
	ldr	r0, .L42+60
	bl	out_sys
	ldr	r3, .L42+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L28
	ldr	r3, .L42+28
	ldrsh	r3, [r3]
	cmp	r3, #0
	ble	.L29
.L28:
	ldr	r3, .L42+56
	ldr	r3, [r3]
	mov	r2, #128
	ldr	r1, .L42+4
	mov	r0, r3
	bl	Bind
	ldr	r0, .L42+64
	bl	out_sys
.L29:
	ldr	r3, .L42+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L30
	ldr	r3, .L42+56
	ldr	r3, [r3]
	mov	r2, #128
	ldr	r1, .L42+8
	mov	r0, r3
	bl	Connect
	ldr	r0, .L42+68
	bl	out_sys
	ldr	r3, .L42+72
	ldr	r3, [r3]
	ldr	r2, .L42+56
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	Str_cli
	mov	r3, #1
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	b	.L37
.L30:
	ldr	r3, .L42+56
	ldr	r3, [r3]
	mov	r1, #5
	mov	r0, r3
	bl	Listen
	ldr	r1, .L42+76
	mov	r0, #17
	bl	Signal
.L33:
	ldr	r3, .L42+56
	ldr	r3, [r3]
	ldr	r2, .L42+80
	ldr	r1, .L42+12
	mov	r0, r3
	bl	Accept
	mov	r3, r0
	ldr	r2, .L42+84
	str	r3, [r2]
	ldr	r3, .L42+84
	ldr	r3, [r3]
	mov	r0, r3
	bl	Getpeername
	str	r0, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, .L42+88
	bl	concat
	mov	r3, r0
	mov	r0, r3
	bl	out_sys
	bl	Fork
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L32
	ldr	r3, .L42+56
	ldr	r3, [r3]
	mov	r0, r3
	bl	Close
	ldr	r3, .L42+84
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	Str_echo
	mov	r0, #0
	bl	exit
.L32:
	ldr	r3, .L42+84
	ldr	r3, [r3]
	mov	r0, r3
	bl	Close
	b	.L33
.L38:
	nop
	b	.L3
.L39:
	nop
	b	.L3
.L40:
	nop
.L3:
	ldr	r3, .L42+92
	ldr	r3, [r3]
	ldr	r1, .L42+96
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L37:
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC7
	.word	sinme
	.word	sinhim
	.word	frominet
	.word	server
	.word	optarg
	.word	port
	.word	sPort
	.word	.LC0
	.word	initiate
	.word	optind
	.word	host
	.word	.LC1
	.word	.LC2
	.word	fd
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	stdin
	.word	sig_chld
	.word	fromlen
	.word	connfd
	.word	.LC6
	.word	stderr
	.word	Usage
	.size	main, .-main
	.align	2
	.global	Socket
	.syntax unified
	.arm
	.fpu softvfp
	.type	Socket, %function
Socket:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	socket
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L45
	ldr	r0, .L47
	bl	err_sys
.L45:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC3
	.size	Socket, .-Socket
	.align	2
	.global	Bind
	.syntax unified
	.arm
	.fpu softvfp
	.type	Bind, %function
Bind:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L51
	ldr	r0, .L52
	bl	err_sys
.L51:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC4
	.size	Bind, .-Bind
	.align	2
	.global	Connect
	.syntax unified
	.arm
	.fpu softvfp
	.type	Connect, %function
Connect:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L56
	ldr	r0, .L57
	bl	err_sys
.L56:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC5
	.size	Connect, .-Connect
	.section	.rodata
	.align	2
.LC8:
	.ascii	"LISTENQ\000"
	.align	2
.LC9:
	.ascii	"listen\000"
	.text
	.align	2
	.global	Listen
	.syntax unified
	.arm
	.fpu softvfp
	.type	Listen, %function
Listen:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, .L63
	bl	getenv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L60
	ldr	r0, [fp, #-8]
	bl	atoi
	str	r0, [fp, #-20]
.L60:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L62
	ldr	r0, .L63+4
	bl	err_sys
.L62:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L64:
	.align	2
.L63:
	.word	.LC8
	.word	.LC9
	.size	Listen, .-Listen
	.section	.rodata
	.align	2
.LC10:
	.ascii	"accept\000"
	.text
	.align	2
	.global	Accept
	.syntax unified
	.arm
	.fpu softvfp
	.type	Accept, %function
Accept:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	accept
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L66
	ldr	r0, .L68
	bl	err_sys
.L66:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC10
	.size	Accept, .-Accept
	.section	.rodata
	.align	2
.LC11:
	.ascii	"getpeername\000"
	.align	2
.LC12:
	.ascii	"%s:%u\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Getpeername
	.syntax unified
	.arm
	.fpu softvfp
	.type	Getpeername, %function
Getpeername:
	@ args = 0, pretend = 0, frame = 712
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #724
	str	r0, [fp, #-720]
	ldr	r3, .L77
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #128
	str	r3, [fp, #-708]
	sub	r2, fp, #708
	sub	r3, fp, #700
	mov	r1, r3
	ldr	r0, [fp, #-720]
	bl	getpeername
	mov	r3, r0
	cmp	r3, #0
	bge	.L71
	ldr	r0, .L77+4
	bl	err_sys
.L71:
	sub	r3, fp, #12
	sub	r3, r3, #688
	ldrh	r3, [r3]
	cmp	r3, #2
	beq	.L72
	cmp	r3, #10
	beq	.L73
	b	.L74
.L72:
	sub	r3, fp, #12
	sub	r3, r3, #688
	ldrh	r3, [r3]
	mov	r0, r3
	sub	r3, fp, #700
	add	r1, r3, #4
	sub	r2, fp, #572
	mov	r3, #256
	bl	inet_ntop
	sub	r3, fp, #700
	ldrh	r3, [r3, #2]
	sub	r2, fp, #12
	sub	r4, r2, #696
	sub	r4, r4, #2
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	strh	r3, [r4]	@ movhi
	b	.L74
.L73:
	sub	r3, fp, #12
	sub	r3, r3, #688
	ldrh	r3, [r3]
	mov	r0, r3
	sub	r3, fp, #700
	add	r1, r3, #8
	sub	r2, fp, #572
	mov	r3, #256
	bl	inet_ntop
	sub	r3, fp, #700
	ldrh	r3, [r3, #2]
	sub	r2, fp, #12
	sub	r4, r2, #696
	sub	r4, r4, #2
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	strh	r3, [r4]	@ movhi
	nop
.L74:
	sub	r3, fp, #12
	sub	r3, r3, #696
	sub	r3, r3, #2
	ldrh	r3, [r3]
	sub	r2, fp, #572
	sub	r0, fp, #316
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L77+8
	mov	r1, #300
	bl	snprintf
	sub	r3, fp, #316
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-704]
	sub	r3, fp, #316
	mov	r1, r3
	ldr	r0, [fp, #-704]
	bl	strcpy
	ldr	r3, [fp, #-704]
	ldr	r2, .L77
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L76
	bl	__stack_chk_fail
.L76:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L78:
	.align	2
.L77:
	.word	.LC13
	.word	.LC11
	.word	.LC12
	.size	Getpeername, .-Getpeername
	.section	.rodata
	.align	2
.LC14:
	.ascii	"close\000"
	.text
	.align	2
	.global	Close
	.syntax unified
	.arm
	.fpu softvfp
	.type	Close, %function
Close:
	@ 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	r0, [fp, #-8]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L81
	ldr	r0, .L82
	bl	err_sys
.L81:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L83:
	.align	2
.L82:
	.word	.LC14
	.size	Close, .-Close
	.section	.rodata
	.align	2
.LC15:
	.ascii	"echoS: \000"
	.align	2
.LC16:
	.ascii	"errno=%d\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	err_sys
	.syntax unified
	.arm
	.fpu softvfp
	.type	err_sys, %function
err_sys:
	@ args = 4, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	ldr	r3, [fp, #4]
	str	r3, [fp, #-24]
	ldr	r3, .L86
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-20]
	ldr	r3, .L86+4
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L86+8
	bl	fwrite
	ldr	r0, [fp, #-24]
	bl	perror
	ldr	r3, .L86+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L86+12
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L87:
	.align	2
.L86:
	.word	.LC17
	.word	stderr
	.word	.LC15
	.word	.LC16
	.size	err_sys, .-err_sys
	.section	.rodata
	.align	2
.LC18:
	.ascii	"%ld %d echoS: %s\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	out_sys
	.syntax unified
	.arm
	.fpu softvfp
	.type	out_sys, %function
out_sys:
	@ args = 4, pretend = 16, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, [fp, #4]
	str	r3, [fp, #-24]
	ldr	r3, .L90
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-16]
	mov	r0, #0
	bl	time
	str	r0, [fp, #-12]
	bl	getpid
	mov	r2, r0
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-12]
	ldr	r0, .L90+4
	bl	printf
	nop
	ldr	r3, .L90
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L89
	bl	__stack_chk_fail
.L89:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L91:
	.align	2
.L90:
	.word	.LC19
	.word	.LC18
	.size	out_sys, .-out_sys
	.section	.rodata
	.align	2
.LC20:
	.ascii	"fgets\000"
	.text
	.align	2
	.global	Fgets
	.syntax unified
	.arm
	.fpu softvfp
	.type	Fgets, %function
Fgets:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	fgets
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L93
	ldr	r0, [fp, #-24]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L93
	ldr	r0, .L95
	bl	err_sys
.L93:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L96:
	.align	2
.L95:
	.word	.LC20
	.size	Fgets, .-Fgets
	.section	.rodata
	.align	2
.LC21:
	.ascii	"fputs\000"
	.text
	.align	2
	.global	Fputs
	.syntax unified
	.arm
	.fpu softvfp
	.type	Fputs, %function
Fputs:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	fputs
	mov	r3, r0
	cmn	r3, #1
	bne	.L99
	ldr	r0, .L100
	bl	err_sys
.L99:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L101:
	.align	2
.L100:
	.word	.LC21
	.size	Fputs, .-Fputs
	.align	2
	.global	concat
	.syntax unified
	.arm
	.fpu softvfp
	.type	concat, %function
concat:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	strcpy
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	strcat
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	concat, .-concat
	.align	2
	.global	randstring
	.syntax unified
	.arm
	.fpu softvfp
	.type	randstring, %function
randstring:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L105
.L106:
	bl	rand
	mov	r1, r0
	ldr	r3, .L108
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	and	r2, r2, #255
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	add	r2, r2, #32
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L105:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L106
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L109:
	.align	2
.L108:
	.word	-1370734243
	.size	randstring, .-randstring
	.section	.rodata
	.align	2
.LC22:
	.ascii	"child %d terminated\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sig_chld
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig_chld, %function
sig_chld:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	ldr	r3, .L115
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L111
.L112:
	sub	r0, fp, #40
	ldr	r3, [fp, #-44]
	ldr	r2, .L115+4
	mov	r1, #30
	bl	snprintf
	sub	r3, fp, #40
	mov	r0, r3
	bl	out_sys
.L111:
	sub	r3, fp, #48
	mov	r2, #1
	mov	r1, r3
	mvn	r0, #0
	bl	waitpid
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bgt	.L112
	nop
	ldr	r3, .L115
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L114
	bl	__stack_chk_fail
.L114:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L116:
	.align	2
.L115:
	.word	.LC23
	.word	.LC22
	.size	sig_chld, .-sig_chld
	.section	.rodata
	.align	2
.LC24:
	.ascii	"fork\000"
	.text
	.align	2
	.global	Fork
	.syntax unified
	.arm
	.fpu softvfp
	.type	Fork, %function
Fork:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L118
	ldr	r0, .L120
	bl	err_sys
.L118:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L121:
	.align	2
.L120:
	.word	.LC24
	.size	Fork, .-Fork
	.section	.rodata
	.align	2
.LC25:
	.ascii	"signal\000"
	.text
	.align	2
	.global	Signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	Signal, %function
Signal:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	signal
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L123
	ldr	r0, .L125
	bl	err_sys
.L123:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L126:
	.align	2
.L125:
	.word	.LC25
	.size	Signal, .-Signal
	.section	.rodata
	.align	2
.LC26:
	.ascii	"writen\000"
	.text
	.align	2
	.global	Writen
	.syntax unified
	.arm
	.fpu softvfp
	.type	Writen, %function
Writen:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	writen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	beq	.L129
	ldr	r0, .L130
	bl	err_sys
.L129:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L131:
	.align	2
.L130:
	.word	.LC26
	.size	Writen, .-Writen
	.align	2
	.global	writen
	.syntax unified
	.arm
	.fpu softvfp
	.type	writen, %function
writen:
	@ 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]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	b	.L133
.L137:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-24]
	bl	write
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L134
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L135
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L135
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L134
.L135:
	mvn	r3, #0
	b	.L136
.L134:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
.L133:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L137
	ldr	r3, [fp, #-32]
.L136:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	writen, .-writen
	.section	.rodata
	.align	2
.LC27:
	.ascii	"readline\000"
	.text
	.align	2
	.global	Readline
	.syntax unified
	.arm
	.fpu softvfp
	.type	Readline, %function
Readline:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	readline
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L139
	ldr	r0, .L141
	bl	err_sys
.L139:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L142:
	.align	2
.L141:
	.word	.LC27
	.size	Readline, .-Readline
	.section	.rodata
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readline
	.syntax unified
	.arm
	.fpu softvfp
	.type	readline, %function
readline:
	@ args = 0, pretend = 0, frame = 4136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #44
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-28]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-32]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r2, [r3, #-36]
	ldr	r3, .L153
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	str	r3, [r2, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-16]
	b	.L144
.L150:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #17
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-28]
	bl	my_read
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #1
	bne	.L145
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-12]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldrb	r2, [r2, #-17]	@ zero_extendqisi2
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-17]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L146
	b	.L147
.L145:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L148
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	sub	r3, r3, #1
	b	.L151
.L148:
	mvn	r3, #0
	b	.L151
.L146:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r3, #1
	str	r3, [r2, #-16]
.L144:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-36]
	cmp	r2, r3
	bhi	.L150
.L147:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
.L151:
	ldr	r2, .L153
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L152
	bl	__stack_chk_fail
.L152:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L154:
	.align	2
.L153:
	.word	.LC28
	.size	readline, .-readline
	.section	.rodata
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	my_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_read, %function
my_read:
	@ args = 0, pretend = 0, frame = 4120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-24]
	ldr	r3, .L163
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bgt	.L156
	nop
.L157:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #4096
	mov	r1, r3
	ldr	r0, [r0, #-20]
	bl	read
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bge	.L158
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L159
	b	.L157
.L158:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bne	.L159
	mov	r3, #0
	b	.L161
.L159:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-8]
.L156:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #1
	str	r3, [r2, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-8]
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	strb	r2, [r3]
	mov	r3, #1
.L161:
	ldr	r2, .L163
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L162
	bl	__stack_chk_fail
.L162:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L164:
	.align	2
.L163:
	.word	.LC29
	.size	my_read, .-my_read
	.section	.rodata
	.align	2
.LC30:
	.ascii	"server ready, peer: \000"
	.align	2
.LC31:
	.ascii	"read\000"
	.align	2
.LC32:
	.ascii	"connection closed by \000"
	.align	2
.LC33:
	.ascii	"\012\000"
	.align	2
.LC34:
	.ascii	"daytime\000"
	.align	2
.LC35:
	.ascii	"%.24s\015\012\000"
	.align	2
.LC36:
	.ascii	"time\000"
	.align	2
.LC37:
	.ascii	"%lu\012\000"
	.align	2
.LC38:
	.ascii	"chargen\000"
	.align	2
.LC39:
	.ascii	"%s\012\000"
	.align	2
.LC40:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Str_echo
	.syntax unified
	.arm
	.fpu softvfp
	.type	Str_echo, %function
Str_echo:
	@ args = 0, pretend = 0, frame = 5144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #5120
	sub	sp, sp, #28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-1044]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-1048]
	ldr	r3, .L177
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-1048]
	ldr	r0, .L177+4
	bl	concat
	mov	r3, r0
	mov	r0, r3
	bl	out_sys
.L174:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #4096
	mov	r1, r3
	ldr	r0, [r0, #-1044]
	bl	Readline
	str	r0, [r4, #-1036]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1036]
	cmp	r3, #0
	bge	.L166
	ldr	r0, .L177+8
	bl	err_sys
	b	.L167
.L166:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1036]
	cmp	r3, #0
	bne	.L167
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-1048]
	ldr	r0, .L177+12
	bl	concat
	mov	r3, r0
	mov	r0, r3
	bl	out_sys
	nop
	ldr	r3, .L177
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L175
	b	.L176
.L167:
	ldr	r1, .L177+16
	ldr	r0, .L177+20
	bl	concat
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L169
	mov	r0, #0
	bl	time
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-1040]
	sub	r3, fp, #5120
	sub	r3, r3, #12
	sub	r3, r3, #16
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	sub	r0, fp, #5120
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r2, .L177+24
	mov	r1, #1024
	bl	snprintf
	sub	r3, fp, #5120
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #5120
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-1044]
	bl	write
	b	.L174
.L169:
	ldr	r1, .L177+16
	ldr	r0, .L177+28
	bl	concat
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L171
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #0
	bl	time
	str	r0, [r4, #-1032]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #5120
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-1032]
	ldr	r1, .L177+32
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #5120
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #5120
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-1044]
	bl	write
	b	.L174
.L171:
	ldr	r1, .L177+16
	ldr	r0, .L177+36
	bl	concat
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L172
.L173:
	ldr	r0, .L177+40
	bl	randstring
	mov	r3, r0
	sub	r0, fp, #5120
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r2, .L177+44
	mov	r1, #1024
	bl	snprintf
	sub	r3, fp, #5120
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #5120
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-1044]
	bl	write
	mov	r0, #1
	bl	sleep
	b	.L173
.L172:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-1036]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-1044]
	bl	Writen
	b	.L174
.L176:
	bl	__stack_chk_fail
.L175:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L178:
	.align	2
.L177:
	.word	.LC40
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	999
	.word	.LC39
	.size	Str_echo, .-Str_echo
	.section	.rodata
	.align	2
.LC41:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Str_cli
	.syntax unified
	.arm
	.fpu softvfp
	.type	Str_cli, %function
Str_cli:
	@ args = 0, pretend = 0, frame = 4112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4096
	sub	sp, sp, #16
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r0, [r3, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r1, [r3, #-16]
	ldr	r3, .L185
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L180
.L183:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #4
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-16]
	bl	Writen
	ldr	r1, .L185+4
	ldr	r0, .L185+8
	bl	concat
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L181
.L182:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r0, [r3, #-16]
	bl	Str_puts
	b	.L182
.L181:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r0, [r3, #-16]
	bl	Str_puts
.L180:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [r2, #-12]
	mov	r1, #4096
	mov	r0, r3
	bl	Fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L183
	nop
	ldr	r3, .L185
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L184
	bl	__stack_chk_fail
.L184:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L186:
	.align	2
.L185:
	.word	.LC41
	.word	.LC33
	.word	.LC38
	.size	Str_cli, .-Str_cli
	.section	.rodata
	.align	2
.LC42:
	.ascii	"server terminated prematurely\000"
	.align	2
.LC43:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Str_puts
	.syntax unified
	.arm
	.fpu softvfp
	.type	Str_puts, %function
Str_puts:
	@ args = 0, pretend = 0, frame = 4112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4096
	sub	sp, sp, #16
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r0, [r3, #-12]
	ldr	r3, .L190
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #4
	mov	r0, r2
	mov	r2, #4096
	mov	r1, r3
	ldr	r0, [r0, #-12]
	bl	Readline
	mov	r3, r0
	cmp	r3, #0
	bne	.L188
	ldr	r0, .L190+4
	bl	err_sys
.L188:
	ldr	r3, .L190+8
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	Fputs
	nop
	ldr	r3, .L190
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L189
	bl	__stack_chk_fail
.L189:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L191:
	.align	2
.L190:
	.word	.LC43
	.word	.LC42
	.word	stdout
	.size	Str_puts, .-Str_puts
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
