	.file	"468823.c"
	.intel_syntax noprefix
	.text
	.local	progname
	.comm	progname,8,8
	.local	max_fds
	.comm	max_fds,4,4
	.data
	.align 4
	.type	servsock, @object
	.size	servsock, 4
servsock:
	.long	-1
	.local	stdin_backing
	.comm	stdin_backing,513,32
	.local	servsock_backing
	.comm	servsock_backing,513,32
	.local	flags
	.comm	flags,4,4
	.globl	logfile
	.bss
	.align 8
	.type	logfile, @object
	.size	logfile, 8
logfile:
	.zero	8
	.section	.rodata
.LC0:
	.string	""
.LC1:
	.string	"a"
.LC2:
	.string	"%s: Logfile error: %s\n"
	.align 8
.LC3:
	.string	"*** tshelper log file opened:  %s\n"
.LC4:
	.string	"0.7"
	.align 8
.LC5:
	.string	"tshelper(%s) (c) 2004 W. Campbell, J. Johnston\n"
.LC6:
	.string	"hpul:H:vs:ne"
	.align 8
.LC7:
	.string	"*** tshelper - telnet server helper for ircd/services developers"
	.align 8
.LC8:
	.string	"*** tshelper(%s) (c) 2004 W. Campbell, J. Johnston\n"
	.align 8
.LC9:
	.string	"*** Control Codes:  ^K - Insert the current timestamp"
	.align 8
.LC10:
	.string	"***                 ^E - Insert a literal blank line"
.LC11:
	.string	"%s: Connection error: %s\n"
	.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, 368
	mov	DWORD PTR -356[rbp], edi
	mov	QWORD PTR -368[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -336[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	rax, QWORD PTR -368[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR progname[rip], rax
	lea	rsi, .LC0[rip]
	mov	edi, 2
	call	setlocale@PLT
	jmp	.L2
.L14:
	movsx	eax, BYTE PTR -337[rbp]
	sub	eax, 63
	cmp	eax, 55
	ja	.L2
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L10-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L12-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L11-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L10-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L9-.L4
	.long	.L2-.L4
	.long	.L8-.L4
	.long	.L2-.L4
	.long	.L7-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L6-.L4
	.long	.L2-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
.L10:
	mov	edi, 0
	call	syntax
	jmp	.L2
.L7:
	mov	eax, DWORD PTR flags[rip]
	or	eax, 1
	mov	DWORD PTR flags[rip], eax
	jmp	.L2
.L9:
	mov	eax, DWORD PTR flags[rip]
	or	eax, 2
	mov	DWORD PTR flags[rip], eax
	mov	rax, QWORD PTR optarg[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR logfile[rip], rax
	mov	rax, QWORD PTR logfile[rip]
	test	rax, rax
	jne	.L13
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 9
	call	exit@PLT
.L13:
	mov	edi, 0
	call	time@PLT
	mov	rdi, rax
	call	local_ctime
	mov	rdx, rax
	mov	rax, QWORD PTR logfile[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L2
.L12:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -312[rbp], rax
	jmp	.L2
.L8:
	mov	eax, DWORD PTR flags[rip]
	or	eax, 4
	mov	DWORD PTR flags[rip], eax
	jmp	.L2
.L11:
	mov	eax, DWORD PTR flags[rip]
	or	eax, 8
	mov	DWORD PTR flags[rip], eax
	jmp	.L2
.L5:
	mov	eax, DWORD PTR flags[rip]
	or	eax, 16
	mov	DWORD PTR flags[rip], eax
	jmp	.L2
.L3:
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC4[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -304[rbp], rax
	nop
.L2:
	mov	rcx, QWORD PTR -368[rbp]
	mov	eax, DWORD PTR -356[rbp]
	lea	rdx, .LC6[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	BYTE PTR -337[rbp], al
	cmp	BYTE PTR -337[rbp], -1
	jne	.L14
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -356[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -368[rbp], rax
	cmp	DWORD PTR -356[rbp], 1
	jg	.L15
	mov	eax, DWORD PTR flags[rip]
	and	eax, 16
	test	eax, eax
	jne	.L15
	mov	edi, 1
	call	syntax
.L15:
	mov	rax, QWORD PTR -368[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -296[rbp], rax
	mov	eax, DWORD PTR flags[rip]
	and	eax, 16
	test	eax, eax
	je	.L16
	mov	DWORD PTR -336[rbp], 0
	jmp	.L17
.L16:
	mov	rax, QWORD PTR -368[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -336[rbp], eax
.L17:
	cmp	QWORD PTR -304[rbp], 0
	jne	.L18
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rsi, .LC4[rip]
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L18:
	mov	eax, DWORD PTR flags[rip]
	and	eax, 16
	test	eax, eax
	je	.L19
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	create_unix_socket
	mov	DWORD PTR servsock[rip], eax
	jmp	.L20
.L19:
	mov	rdx, QWORD PTR -312[rbp]
	mov	ecx, DWORD PTR -336[rbp]
	mov	rax, QWORD PTR -296[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	create_server_socket
	mov	DWORD PTR servsock[rip], eax
.L20:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -144[rbp]
	mov	rdi, rdx
#APP
# 150 "the_stack_data/468823.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -332[rbp], edx
	mov	DWORD PTR -328[rbp], eax
	mov	edx, 513
	mov	esi, 0
	lea	rdi, stdin_backing[rip]
	call	memset@PLT
	mov	edx, 513
	mov	esi, 0
	lea	rdi, servsock_backing[rip]
	call	memset@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	setlinebuf@PLT
	cmp	QWORD PTR -304[rbp], 0
	je	.L26
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	run_script_file
.L26:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -272[rbp]
	mov	rdi, rdx
#APP
# 163 "the_stack_data/468823.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -324[rbp], edx
	mov	DWORD PTR -320[rbp], eax
	mov	QWORD PTR -288[rbp], 1
	mov	QWORD PTR -280[rbp], 0
	mov	eax, DWORD PTR servsock[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -272[rbp+rax*8]
	mov	eax, DWORD PTR servsock[rip]
	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 -272[rbp+rax*8], rdx
	mov	rax, QWORD PTR -272[rbp]
	or	rax, 1
	mov	QWORD PTR -272[rbp], rax
	mov	eax, DWORD PTR max_fds[rip]
	lea	edi, 1[rax]
	lea	rsi, -288[rbp]
	lea	rcx, -144[rbp]
	lea	rdx, -144[rbp]
	lea	rax, -272[rbp]
	mov	r8, rsi
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -316[rbp], eax
	cmp	DWORD PTR -316[rbp], 0
	jle	.L22
	mov	eax, DWORD PTR servsock[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -272[rbp+rax*8]
	mov	eax, DWORD PTR servsock[rip]
	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	.L23
	mov	eax, DWORD PTR servsock[rip]
	lea	rsi, servsock_backing[rip]
	mov	edi, eax
	call	sock_process_line
.L23:
	mov	rax, QWORD PTR -272[rbp]
	and	eax, 1
	test	rax, rax
	je	.L26
	lea	rsi, stdin_backing[rip]
	mov	edi, 0
	call	sock_process_line
	jmp	.L26
.L22:
	cmp	DWORD PTR -316[rbp], 0
	je	.L26
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L26
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR servsock[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L25
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fclose@PLT
.L25:
	mov	edi, 4
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC12:
	.string	"Syntax: %s [-h|-?] [-p] [-l logfile] [-H vhost] [-v]\n         [-s scriptfile] [-n] [-e] [-u] <hostname/ip> <port>\n"
.LC13:
	.string	"-h Show this help text.\n"
	.align 8
.LC14:
	.string	"-p Do not parse PING, force the user to manage it.\n"
	.align 8
.LC15:
	.string	"-l Log all text to the given logfile.\n"
	.align 8
.LC16:
	.string	"-H Connect using the supplied vhost (bind ip).\n"
	.align 8
.LC17:
	.string	"-v Show the version and exit.\n"
	.align 8
.LC18:
	.string	"-s Use the given script file after connection to the server.\n"
	.align 8
.LC19:
	.string	"-n Use no prefixes (<== ==> S=>).\n"
.LC20:
	.string	"-e Disable local echo.\n"
	.align 8
.LC21:
	.string	"-u Interpret <hostname/ip> as a UNIX socket\n   Note: You do not need to specify port when using -u\n"
	.text
	.type	syntax, @function
syntax:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 51
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 47
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 61
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 99
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	syntax, .-syntax
	.section	.rodata
	.align 8
.LC22:
	.string	"%s: Lookup failure for hostname %s\n"
	.align 8
.LC23:
	.string	"%s: Lookup failure for vhost %s\n"
.LC24:
	.string	"%s: Bind error for vhost %s\n"
.LC25:
	.string	"%s: Connect error: %s\n"
.LC26:
	.string	"*** Connected to %s %d\n"
	.align 8
.LC27:
	.string	"%s: Unable to connect to %s %d, exiting\n"
	.text
	.type	create_server_socket, @function
create_server_socket:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -32[rbp], -1
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	gethostinfo
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L30
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -40[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L31
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fclose@PLT
.L31:
	mov	edi, 2
	call	exit@PLT
.L30:
	cmp	QWORD PTR -56[rbp], 0
	je	.L32
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gethostinfo
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L32
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -56[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L33
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fclose@PLT
.L33:
	mov	edi, 10
	call	exit@PLT
.L32:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L34
.L42:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[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	.L47
	mov	eax, DWORD PTR max_fds[rip]
	cmp	DWORD PTR -32[rbp], eax
	jle	.L37
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR max_fds[rip], eax
.L37:
	mov	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	cmp	QWORD PTR -16[rbp], 0
	je	.L38
	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	bind@PLT
	test	eax, eax
	jns	.L38
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -56[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L39
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fclose@PLT
.L39:
	mov	edi, 11
	call	exit@PLT
.L38:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[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	.L40
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -32[rbp], -1
	jmp	.L36
.L40:
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L41
.L47:
	nop
.L36:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -24[rbp], rax
.L34:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L42
.L41:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	cmp	QWORD PTR -16[rbp], 0
	je	.L43
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
.L43:
	cmp	DWORD PTR -32[rbp], -1
	jne	.L44
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	esi, DWORD PTR -44[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	r8d, esi
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L45
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fclose@PLT
.L45:
	mov	edi, 3
	call	exit@PLT
.L44:
	mov	eax, DWORD PTR -32[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	create_server_socket, .-create_server_socket
	.section	.rodata
	.align 8
.LC28:
	.string	"%s: Unable to create socket: %s, exiting\n"
	.align 8
.LC29:
	.string	"%s: Unable to connect to %s: %s, exiting\n"
	.text
	.type	create_unix_socket, @function
create_unix_socket:
.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, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -132[rbp], eax
	cmp	DWORD PTR -132[rbp], 0
	jns	.L49
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 14
	call	exit@PLT
.L49:
	lea	rax, -128[rbp]
	mov	edx, 110
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -128[rbp], 1
	mov	rax, QWORD PTR -152[rbp]
	lea	rdx, -128[rbp]
	add	rdx, 2
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	lea	rax, -128[rbp]
	add	rax, 2
	mov	rdi, rax
	call	strlen@PLT
	lea	edx, 2[rax]
	lea	rcx, -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L50
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -152[rbp]
	mov	r8, rsi
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 3
	call	exit@PLT
.L50:
	mov	eax, DWORD PTR max_fds[rip]
	cmp	DWORD PTR -132[rbp], eax
	jle	.L51
	mov	eax, DWORD PTR -132[rbp]
	mov	DWORD PTR max_fds[rip], eax
.L51:
	mov	eax, DWORD PTR -132[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	create_unix_socket, .-create_unix_socket
	.section	.rodata
.LC30:
	.string	"%d"
	.align 8
.LC31:
	.string	"%s: gethostinfo error: %s: %s\n"
	.text
	.type	gethostinfo, @function
gethostinfo:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -64[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 1
	mov	edx, DWORD PTR -92[rbp]
	lea	rax, -14[rbp]
	mov	ecx, edx
	lea	rdx, .LC30[rip]
	mov	esi, 6
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rcx, -72[rbp]
	lea	rdx, -64[rbp]
	lea	rsi, -14[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	je	.L55
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rsi, rax
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -88[rbp]
	mov	r8, rsi
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L57
.L55:
	mov	rax, QWORD PTR -72[rbp]
.L57:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	gethostinfo, .-gethostinfo
	.section	.rodata
.LC32:
	.string	"%s: EOF from server, exiting\n"
	.align 8
.LC33:
	.string	"%s: Lost connection to server: %s\n"
.LC34:
	.string	"*** EOF from user, exiting"
.LC35:
	.string	"%s: Unknown read error: %s\n"
	.text
	.type	sock_getbyte, @function
sock_getbyte:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR data_in_buffer.4[rip]
	test	eax, eax
	jne	.L60
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 512
	lea	rsi, message.3[rip]
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jg	.L61
	mov	eax, DWORD PTR servsock[rip]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L62
	cmp	DWORD PTR -4[rbp], 0
	jne	.L63
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L64
.L63:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L64:
	mov	eax, DWORD PTR servsock[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L65
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fclose@PLT
.L65:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L66
	mov	edi, 13
	call	exit@PLT
.L66:
	mov	edi, 5
	call	exit@PLT
.L62:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L67
	cmp	DWORD PTR -4[rbp], 0
	jne	.L67
	lea	rdi, .LC34[rip]
	call	puts@PLT
	mov	eax, DWORD PTR servsock[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L68
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fclose@PLT
.L68:
	mov	edi, 0
	call	exit@PLT
.L67:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR servsock[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L69
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fclose@PLT
.L69:
	mov	edi, 6
	call	exit@PLT
.L61:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, message.3[rip]
	mov	BYTE PTR [rax+rdx], 0
	lea	rax, message.3[rip]
	mov	QWORD PTR c.2[rip], rax
	mov	DWORD PTR data_in_buffer.4[rip], 1
.L60:
	mov	rax, QWORD PTR c.2[rip]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L70
	mov	DWORD PTR data_in_buffer.4[rip], 0
	mov	BYTE PTR message.3[rip], 0
	mov	rax, QWORD PTR c.2[rip]
	movzx	eax, BYTE PTR [rax]
	jmp	.L71
.L70:
	mov	rax, QWORD PTR c.2[rip]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -5[rbp], al
	mov	rax, QWORD PTR c.2[rip]
	add	rax, 1
	mov	QWORD PTR c.2[rip], rax
	movzx	eax, BYTE PTR -5[rbp]
.L71:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	sock_getbyte, .-sock_getbyte
	.section	.rodata
	.align 8
.LC36:
	.string	"%s: Read error, line too long\n"
	.text
	.type	sock_process_line, @function
sock_process_line:
.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, 560
	mov	DWORD PTR -548[rbp], edi
	mov	QWORD PTR -560[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -532[rbp], 0
	mov	rax, QWORD PTR -560[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L84
	mov	rcx, QWORD PTR -560[rbp]
	lea	rax, -528[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	BYTE PTR -16[rbp], 0
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -532[rbp], eax
	mov	eax, DWORD PTR -532[rbp]
	cdqe
	mov	BYTE PTR -528[rbp+rax], 0
	mov	rax, QWORD PTR -560[rbp]
	mov	BYTE PTR [rax], 0
.L84:
	mov	eax, DWORD PTR -548[rbp]
	mov	edi, eax
	call	sock_getbyte
	mov	BYTE PTR -533[rbp], al
	cmp	BYTE PTR -533[rbp], 0
	jne	.L74
	cmp	DWORD PTR -532[rbp], 0
	jle	.L86
	mov	eax, DWORD PTR -532[rbp]
	cdqe
	mov	BYTE PTR -528[rbp+rax], 0
	lea	rcx, -528[rbp]
	mov	rax, QWORD PTR -560[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -560[rbp]
	add	rax, 512
	mov	BYTE PTR [rax], 0
	jmp	.L86
.L74:
	cmp	BYTE PTR -533[rbp], 13
	je	.L77
	cmp	BYTE PTR -533[rbp], 10
	jne	.L78
.L77:
	cmp	DWORD PTR -532[rbp], 0
	jle	.L87
	mov	eax, DWORD PTR -532[rbp]
	cdqe
	mov	BYTE PTR -528[rbp+rax], 0
	mov	eax, DWORD PTR servsock[rip]
	cmp	DWORD PTR -548[rbp], eax
	jne	.L80
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	parse_server
	jmp	.L81
.L80:
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	parse_stdin
.L81:
	mov	DWORD PTR -532[rbp], 0
	jmp	.L87
.L78:
	mov	eax, DWORD PTR -532[rbp]
	cdqe
	movzx	edx, BYTE PTR -533[rbp]
	mov	BYTE PTR -528[rbp+rax], dl
	add	DWORD PTR -532[rbp], 1
	cmp	DWORD PTR -532[rbp], 512
	jle	.L84
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR servsock[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L83
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fclose@PLT
.L83:
	mov	edi, 7
	call	exit@PLT
.L87:
	nop
	jmp	.L84
.L86:
	nop
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L85
	call	__stack_chk_fail@PLT
.L85:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	sock_process_line, .-sock_process_line
	.section	.rodata
.LC37:
	.string	"%ld"
.LC38:
	.string	"==> "
.LC39:
	.string	"S=> "
.LC40:
	.string	"%s%s\n"
	.align 8
.LC41:
	.string	"%s: Write error to server: %s\n"
	.text
	.type	send_to_server, @function
send_to_server:
.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, 1328
	mov	DWORD PTR -1316[rbp], edi
	mov	QWORD PTR -1328[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	.L89
	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
.L89:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1272[rbp], 16
	mov	DWORD PTR -1268[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -1264[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -1256[rbp], rax
	lea	rcx, -1272[rbp]
	mov	rdx, QWORD PTR -1328[rbp]
	lea	rax, -704[rbp]
	mov	esi, 513
	mov	rdi, rax
	call	vsnprintf@PLT
	lea	rax, -704[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1296[rbp], eax
	mov	DWORD PTR -1300[rbp], 0
	mov	eax, DWORD PTR -1300[rbp]
	mov	DWORD PTR -1304[rbp], eax
	jmp	.L90
.L96:
	cmp	DWORD PTR -1300[rbp], 512
	jne	.L91
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR servsock[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L92
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fclose@PLT
.L92:
	mov	edi, 7
	call	exit@PLT
.L91:
	mov	eax, DWORD PTR -1304[rbp]
	cdqe
	movzx	eax, BYTE PTR -704[rbp+rax]
	cmp	al, 11
	jne	.L93
	mov	eax, DWORD PTR -1300[rbp]
	cdqe
	mov	BYTE PTR -1232[rbp+rax], 0
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -1280[rbp], rax
	mov	rdx, QWORD PTR -1280[rbp]
	lea	rax, -1243[rbp]
	mov	rcx, rdx
	lea	rdx, .LC37[rip]
	mov	esi, 11
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rcx, -1243[rbp]
	lea	rax, -1232[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	BYTE PTR -720[rbp], 0
	lea	rax, -1232[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1300[rbp], eax
	jmp	.L94
.L93:
	mov	eax, DWORD PTR -1304[rbp]
	cdqe
	movzx	eax, BYTE PTR -704[rbp+rax]
	cmp	al, 5
	je	.L106
	mov	eax, DWORD PTR -1304[rbp]
	cdqe
	movzx	edx, BYTE PTR -704[rbp+rax]
	mov	eax, DWORD PTR -1300[rbp]
	cdqe
	mov	BYTE PTR -1232[rbp+rax], dl
	add	DWORD PTR -1300[rbp], 1
	jmp	.L94
.L106:
	nop
.L94:
	add	DWORD PTR -1304[rbp], 1
.L90:
	mov	eax, DWORD PTR -1304[rbp]
	cmp	eax, DWORD PTR -1296[rbp]
	jl	.L96
	mov	eax, DWORD PTR -1300[rbp]
	cdqe
	mov	BYTE PTR -1232[rbp+rax], 0
	mov	eax, DWORD PTR -1300[rbp]
	mov	DWORD PTR -1296[rbp], eax
	cmp	DWORD PTR -1296[rbp], 510
	jne	.L97
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR servsock[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L98
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fclose@PLT
.L98:
	mov	edi, 7
	call	exit@PLT
.L97:
	cmp	DWORD PTR -1316[rbp], 3
	je	.L99
	mov	eax, DWORD PTR flags[rip]
	and	eax, 8
	test	eax, eax
	jne	.L99
	mov	eax, DWORD PTR flags[rip]
	and	eax, 4
	test	eax, eax
	je	.L100
	lea	rax, .LC0[rip]
	mov	QWORD PTR -1288[rbp], rax
	jmp	.L101
.L100:
	cmp	DWORD PTR -1316[rbp], 1
	jne	.L102
	lea	rax, .LC38[rip]
	mov	QWORD PTR -1288[rbp], rax
	jmp	.L101
.L102:
	lea	rax, .LC39[rip]
	mov	QWORD PTR -1288[rbp], rax
.L101:
	lea	rdx, -1232[rbp]
	mov	rax, QWORD PTR -1288[rbp]
	mov	rsi, rax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L99
	mov	rax, QWORD PTR logfile[rip]
	lea	rcx, -1232[rbp]
	mov	rdx, QWORD PTR -1288[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L99:
	lea	rax, -1232[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1232[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 2573
	mov	BYTE PTR 2[rax], 0
	mov	BYTE PTR -720[rbp], 0
	add	DWORD PTR -1296[rbp], 2
	mov	eax, DWORD PTR -1296[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR servsock[rip]
	lea	rcx, -1232[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -1292[rbp], eax
	cmp	DWORD PTR -1292[rbp], -1
	jne	.L107
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR servsock[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L104
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fclose@PLT
.L104:
	mov	edi, 8
	call	exit@PLT
.L107:
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L105
	call	__stack_chk_fail@PLT
.L105:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	send_to_server, .-send_to_server
	.section	.rodata
.LC42:
	.string	"<== "
.LC43:
	.string	"PING "
.LC44:
	.string	"PONG %s"
.LC45:
	.string	":%s PONG %s :%s"
	.text
	.type	parse_server, @function
parse_server:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L125
	mov	eax, DWORD PTR flags[rip]
	and	eax, 4
	test	eax, eax
	je	.L111
	lea	rax, .LC0[rip]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L112
.L111:
	lea	rax, .LC42[rip]
	mov	QWORD PTR -40[rbp], rax
.L112:
	mov	eax, DWORD PTR flags[rip]
	and	eax, 1
	test	eax, eax
	jne	.L113
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 5
	lea	rsi, .LC43[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L113
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 5
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	lea	rsi, .LC44[rip]
	mov	edi, 3
	mov	eax, 0
	call	send_to_server
	jmp	.L108
.L113:
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L114
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L126
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L126
.L114:
	add	QWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L116
	mov	eax, DWORD PTR flags[rip]
	and	eax, 1
	test	eax, eax
	jne	.L116
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 5
	lea	rsi, .LC43[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L116
	mov	QWORD PTR -8[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 5
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L117
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L127
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L127
.L117:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L119
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L128
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L128
.L119:
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], 0
	add	QWORD PTR -32[rbp], 1
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L121
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L129
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L129
.L121:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L123
	add	QWORD PTR -32[rbp], 1
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L123
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L130
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L130
.L123:
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC45[rip]
	mov	edi, 3
	mov	eax, 0
	call	send_to_server
	jmp	.L108
.L116:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L108
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L108
.L125:
	nop
	jmp	.L108
.L126:
	nop
	jmp	.L108
.L127:
	nop
	jmp	.L108
.L128:
	nop
	jmp	.L108
.L129:
	nop
	jmp	.L108
.L130:
	nop
.L108:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	parse_server, .-parse_server
	.section	.rodata
.LC46:
	.string	"%s"
	.text
	.type	parse_stdin, @function
parse_stdin:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	lea	rsi, .LC46[rip]
	mov	edi, 1
	mov	eax, 0
	call	send_to_server
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	parse_stdin, .-parse_stdin
	.type	local_ctime, @function
local_ctime:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rax, -24[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR gcc_sucks.1[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 32
	lea	rdi, buf.0[rip]
	call	strftime@PLT
	lea	rax, buf.0[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	local_ctime, .-local_ctime
	.section	.rodata
.LC47:
	.string	"r"
.LC48:
	.string	"%s: Script file error: %s"
	.text
	.type	run_script_file, @function
run_script_file:
.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, 560
	mov	QWORD PTR -552[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -552[rbp]
	lea	rsi, .LC47[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -544[rbp], rax
	cmp	QWORD PTR -544[rbp], 0
	jne	.L137
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC48[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR flags[rip]
	and	eax, 2
	test	eax, eax
	je	.L136
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fclose@PLT
.L136:
	mov	edi, 12
	call	exit@PLT
.L142:
	movzx	eax, BYTE PTR -528[rbp]
	cmp	al, 35
	jne	.L138
	jmp	.L137
.L138:
	lea	rax, -528[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	je	.L139
	lea	rax, -528[rbp]
	cmp	QWORD PTR -536[rbp], rax
	jne	.L140
	jmp	.L137
.L140:
	mov	rax, QWORD PTR -536[rbp]
	mov	BYTE PTR [rax], 0
	sub	QWORD PTR -536[rbp], 1
	mov	rax, QWORD PTR -536[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	jne	.L139
	mov	rax, QWORD PTR -536[rbp]
	mov	BYTE PTR [rax], 0
.L139:
	movzx	eax, BYTE PTR -528[rbp]
	test	al, al
	jne	.L141
	jmp	.L137
.L141:
	lea	rax, -528[rbp]
	mov	rdx, rax
	lea	rsi, .LC46[rip]
	mov	edi, 2
	mov	eax, 0
	call	send_to_server
.L137:
	mov	rdx, QWORD PTR -544[rbp]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L142
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L143
	call	__stack_chk_fail@PLT
.L143:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	run_script_file, .-run_script_file
	.local	data_in_buffer.4
	.comm	data_in_buffer.4,4,4
	.local	message.3
	.comm	message.3,513,32
	.section	.data.rel.local,"aw"
	.align 8
	.type	c.2, @object
	.size	c.2, 8
c.2:
	.quad	message.3
	.section	.rodata
.LC49:
	.string	"%c"
	.section	.data.rel.local
	.align 8
	.type	gcc_sucks.1, @object
	.size	gcc_sucks.1, 8
gcc_sucks.1:
	.quad	.LC49
	.local	buf.0
	.comm	buf.0,32,32
	.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	"468823.c"
	.text
	.local	progname
	.comm	progname,4,4
	.local	max_fds
	.comm	max_fds,4,4
	.data
	.align	2
	.type	servsock, %object
	.size	servsock, 4
servsock:
	.word	-1
	.local	stdin_backing
	.comm	stdin_backing,513,4
	.local	servsock_backing
	.comm	servsock_backing,513,4
	.local	flags
	.comm	flags,4,4
	.comm	logfile,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"a\000"
	.align	2
.LC2:
	.ascii	"%s: Logfile error: %s\012\000"
	.align	2
.LC3:
	.ascii	"*** tshelper log file opened:  %s\012\000"
	.align	2
.LC4:
	.ascii	"0.7\000"
	.align	2
.LC5:
	.ascii	"tshelper(%s) (c) 2004 W. Campbell, J. Johnston\012\000"
	.align	2
.LC6:
	.ascii	"hpul:H:vs:ne\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 = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #168
	str	r0, [fp, #-176]
	str	r1, [fp, #-180]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-160]
	mov	r3, #0
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-168]
	mov	r3, #0
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-180]
	ldr	r3, [r3]
	ldr	r2, .L16+4
	str	r3, [r2]
	ldr	r1, .L16+8
	mov	r0, #2
	bl	setlocale
	b	.L2
.L10:
	mov	r0, #0
	bl	syntax
	b	.L2
.L7:
	ldr	r3, .L16+12
	ldr	r3, [r3]
	orr	r3, r3, #1
	ldr	r2, .L16+12
	str	r3, [r2]
	b	.L2
.L9:
	ldr	r3, .L16+12
	ldr	r3, [r3]
	orr	r3, r3, #2
	ldr	r2, .L16+12
	str	r3, [r2]
	ldr	r3, .L16+16
	ldr	r3, [r3]
	ldr	r1, .L16+20
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L16+24
	str	r3, [r2]
	ldr	r3, .L16+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L16+28
	ldr	r4, [r3]
	ldr	r3, .L16+4
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L16+32
	mov	r0, r4
	bl	fprintf
	mov	r0, #9
	bl	exit
.L13:
	ldr	r3, .L16+24
	ldr	r4, [r3]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	local_ctime
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L16+36
	mov	r0, r4
	bl	fprintf
	b	.L2
.L12:
	ldr	r3, .L16+16
	ldr	r3, [r3]
	str	r3, [fp, #-168]
	b	.L2
.L8:
	ldr	r3, .L16+12
	ldr	r3, [r3]
	orr	r3, r3, #4
	ldr	r2, .L16+12
	str	r3, [r2]
	b	.L2
.L11:
	ldr	r3, .L16+12
	ldr	r3, [r3]
	orr	r3, r3, #8
	ldr	r2, .L16+12
	str	r3, [r2]
	b	.L2
.L5:
	ldr	r3, .L16+12
	ldr	r3, [r3]
	orr	r3, r3, #16
	ldr	r2, .L16+12
	str	r3, [r2]
	b	.L2
.L3:
	ldr	r3, .L16+28
	ldr	r3, [r3]
	ldr	r2, .L16+40
	ldr	r1, .L16+44
	mov	r0, r3
	bl	fprintf
	mov	r0, #0
	bl	exit
.L6:
	ldr	r3, .L16+16
	ldr	r3, [r3]
	str	r3, [fp, #-164]
	nop
.L2:
	ldr	r2, .L16+48
	ldr	r1, [fp, #-180]
	ldr	r0, [fp, #-176]
	bl	getopt
	mov	r3, r0
	strb	r3, [fp, #-169]
	ldrb	r3, [fp, #-169]	@ zero_extendqisi2
	sub	r3, r3, #63
	cmp	r3, #55
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L10
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L12
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L11
	.word	.L2
	.word	.L2
	.word	.L10
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L9
	.word	.L2
	.word	.L8
	.word	.L2
	.word	.L7
	.word	.L2
	.word	.L2
	.word	.L6
	.word	.L2
	.word	.L5
	.word	.L3
.L17:
	.align	2
.L16:
	.word	.LC7
	.word	progname
	.word	.LC0
	.word	flags
	.word	optarg
	.word	.LC1
	.word	logfile
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Syntax: %s [-h|-?] [-p] [-l logfile] [-H vhost] [-v"
	.ascii	"]\012         [-s scriptfile] [-n] [-e] [-u] <hostn"
	.ascii	"ame/ip> <port>\012\000"
	.align	2
.LC9:
	.ascii	"-h Show this help text.\012\000"
	.align	2
.LC10:
	.ascii	"-p Do not parse PING, force the user to manage it.\012"
	.ascii	"\000"
	.align	2
.LC11:
	.ascii	"-l Log all text to the given logfile.\012\000"
	.align	2
.LC12:
	.ascii	"-H Connect using the supplied vhost (bind ip).\012\000"
	.align	2
.LC13:
	.ascii	"-v Show the version and exit.\012\000"
	.align	2
.LC14:
	.ascii	"-s Use the given script file after connection to th"
	.ascii	"e server.\012\000"
	.align	2
.LC15:
	.ascii	"-n Use no prefixes (<== ==> S=>).\012\000"
	.align	2
.LC16:
	.ascii	"-e Disable local echo.\012\000"
	.align	2
.LC17:
	.ascii	"-u Interpret <hostname/ip> as a UNIX socket\012   N"
	.ascii	"ote: You do not need to specify port when using -u\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	syntax, %function
syntax:
	@ 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, .L19
	ldr	r3, [r3]
	ldr	r2, .L19+4
	ldr	r2, [r2]
	ldr	r1, .L19+8
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L19+12
	bl	fwrite
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r2, #51
	mov	r1, #1
	ldr	r0, .L19+16
	bl	fwrite
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L19+20
	bl	fwrite
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r2, #47
	mov	r1, #1
	ldr	r0, .L19+24
	bl	fwrite
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L19+28
	bl	fwrite
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r2, #61
	mov	r1, #1
	ldr	r0, .L19+32
	bl	fwrite
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L19+36
	bl	fwrite
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L19+40
	bl	fwrite
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r2, #99
	mov	r1, #1
	ldr	r0, .L19+44
	bl	fwrite
	ldr	r0, [fp, #-8]
	bl	exit
.L20:
	.align	2
.L19:
	.word	stderr
	.word	progname
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	syntax, .-syntax
	.section	.rodata
	.align	2
.LC18:
	.ascii	"%s: Lookup failure for hostname %s\012\000"
	.align	2
.LC19:
	.ascii	"%s: Lookup failure for vhost %s\012\000"
	.align	2
.LC20:
	.ascii	"%s: Bind error for vhost %s\012\000"
	.align	2
.LC21:
	.ascii	"%s: Connect error: %s\012\000"
	.align	2
.LC22:
	.ascii	"*** Connected to %s %d\012\000"
	.align	2
.LC23:
	.ascii	"%s: Unable to connect to %s %d, exiting\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_server_socket, %function
create_server_socket:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-28]
	mvn	r3, #0
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	gethostinfo
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L22
	ldr	r3, .L40
	ldr	r0, [r3]
	ldr	r3, .L40+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	ldr	r1, .L40+8
	bl	fprintf
	ldr	r3, .L40+12
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L23
	ldr	r3, .L40+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L23:
	mov	r0, #2
	bl	exit
.L22:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L24
	mov	r1, #0
	ldr	r0, [fp, #-48]
	bl	gethostinfo
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L40
	ldr	r0, [r3]
	ldr	r3, .L40+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r1, .L40+20
	bl	fprintf
	ldr	r3, .L40+12
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L40+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L25:
	mov	r0, #10
	bl	exit
.L24:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-32]
	b	.L26
.L34:
	ldr	r3, [fp, #-32]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	blt	.L39
	ldr	r3, .L40+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L29
	ldr	r2, .L40+24
	ldr	r3, [fp, #-24]
	str	r3, [r2]
.L29:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	setsockopt
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-24]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L30
	ldr	r3, .L40
	ldr	r0, [r3]
	ldr	r3, .L40+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r1, .L40+28
	bl	fprintf
	ldr	r3, .L40+12
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L31
	ldr	r3, .L40+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L31:
	mov	r0, #11
	bl	exit
.L30:
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-24]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	ldr	r3, .L40
	ldr	r4, [r3]
	ldr	r3, .L40+4
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L40+32
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	str	r3, [fp, #-24]
	b	.L28
.L32:
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-40]
	ldr	r0, .L40+36
	bl	printf
	b	.L33
.L39:
	nop
.L28:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-32]
.L26:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L34
.L33:
	ldr	r0, [fp, #-20]
	bl	freeaddrinfo
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L35
	ldr	r0, [fp, #-28]
	bl	freeaddrinfo
.L35:
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L36
	ldr	r3, .L40
	ldr	r0, [r3]
	ldr	r3, .L40+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	ldr	r3, [fp, #-40]
	ldr	r1, .L40+40
	bl	fprintf
	ldr	r3, .L40+12
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L37
	ldr	r3, .L40+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L37:
	mov	r0, #3
	bl	exit
.L36:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L41:
	.align	2
.L40:
	.word	stderr
	.word	progname
	.word	.LC18
	.word	flags
	.word	logfile
	.word	.LC19
	.word	max_fds
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	create_server_socket, .-create_server_socket
	.section	.rodata
	.align	2
.LC24:
	.ascii	"%s: Unable to create socket: %s, exiting\012\000"
	.align	2
.LC25:
	.ascii	"%s: Unable to connect to %s: %s, exiting\012\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_unix_socket, %function
create_unix_socket:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #136
	str	r0, [fp, #-136]
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	bge	.L43
	ldr	r3, .L48+4
	ldr	r4, [r3]
	ldr	r3, .L48+8
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L48+12
	mov	r0, r4
	bl	fprintf
	mov	r0, #14
	bl	exit
.L43:
	sub	r3, fp, #128
	mov	r2, #110
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	strh	r3, [fp, #-128]	@ movhi
	sub	r3, fp, #128
	add	r3, r3, #2
	ldr	r1, [fp, #-136]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #128
	add	r3, r3, #2
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #2
	sub	r3, fp, #128
	mov	r1, r3
	ldr	r0, [fp, #-132]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L44
	ldr	r3, .L48+4
	ldr	r4, [r3]
	ldr	r3, .L48+8
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	ldr	r3, [fp, #-136]
	mov	r2, r5
	ldr	r1, .L48+16
	mov	r0, r4
	bl	fprintf
	mov	r0, #3
	bl	exit
.L44:
	ldr	r3, .L48+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-132]
	cmp	r2, r3
	ble	.L45
	ldr	r2, .L48+20
	ldr	r3, [fp, #-132]
	str	r3, [r2]
.L45:
	ldr	r3, [fp, #-132]
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC26
	.word	stderr
	.word	progname
	.word	.LC24
	.word	.LC25
	.word	max_fds
	.size	create_unix_socket, .-create_unix_socket
	.section	.rodata
	.align	2
.LC27:
	.ascii	"%d\000"
	.align	2
.LC28:
	.ascii	"%s: gethostinfo error: %s: %s\012\000"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gethostinfo, %function
gethostinfo:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #56
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #1
	str	r3, [fp, #-48]
	sub	r0, fp, #24
	ldr	r3, [fp, #-76]
	ldr	r2, .L55+4
	mov	r1, #6
	bl	snprintf
	sub	r3, fp, #64
	sub	r2, fp, #56
	sub	r1, fp, #24
	ldr	r0, [fp, #-72]
	bl	getaddrinfo
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L51
	ldr	r3, .L55+8
	ldr	r4, [r3]
	ldr	r3, .L55+12
	ldr	r5, [r3]
	ldr	r0, [fp, #-60]
	bl	gai_strerror
	mov	r3, r0
	str	r3, [sp]
	ldr	r3, [fp, #-72]
	mov	r2, r5
	ldr	r1, .L55+16
	mov	r0, r4
	bl	fprintf
	mov	r3, #0
	b	.L53
.L51:
	ldr	r3, [fp, #-64]
.L53:
	ldr	r2, .L55
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC29
	.word	.LC27
	.word	stderr
	.word	progname
	.word	.LC28
	.size	gethostinfo, .-gethostinfo
	.section	.rodata
	.align	2
.LC30:
	.ascii	"%s: EOF from server, exiting\012\000"
	.align	2
.LC31:
	.ascii	"%s: Lost connection to server: %s\012\000"
	.align	2
.LC32:
	.ascii	"*** EOF from user, exiting\000"
	.align	2
.LC33:
	.ascii	"%s: Unknown read error: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sock_getbyte, %function
sock_getbyte:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	ldr	r3, .L70
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L58
	mov	r2, #512
	ldr	r1, .L70+4
	ldr	r0, [fp, #-24]
	bl	read
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L59
	ldr	r3, .L70+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L60
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L61
	ldr	r3, .L70+12
	ldr	r3, [r3]
	ldr	r2, .L70+16
	ldr	r2, [r2]
	ldr	r1, .L70+20
	mov	r0, r3
	bl	fprintf
	b	.L62
.L61:
	ldr	r3, .L70+12
	ldr	r4, [r3]
	ldr	r3, .L70+16
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L70+24
	mov	r0, r4
	bl	fprintf
.L62:
	ldr	r3, .L70+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L70+28
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L63
	ldr	r3, .L70+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L63:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L64
	mov	r0, #13
	bl	exit
.L64:
	mov	r0, #5
	bl	exit
.L60:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L65
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L65
	ldr	r0, .L70+36
	bl	puts
	ldr	r3, .L70+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L70+28
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L66
	ldr	r3, .L70+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L66:
	mov	r0, #0
	bl	exit
.L65:
	ldr	r3, .L70+12
	ldr	r4, [r3]
	ldr	r3, .L70+16
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L70+40
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L70+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L70+28
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L67
	ldr	r3, .L70+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L67:
	mov	r0, #6
	bl	exit
.L59:
	ldr	r2, .L70+4
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L70+44
	ldr	r2, .L70+4
	str	r2, [r3]
	ldr	r3, .L70
	mov	r2, #1
	str	r2, [r3]
.L58:
	ldr	r3, .L70+44
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L68
	ldr	r3, .L70
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L70+4
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L70+44
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L69
.L68:
	ldr	r3, .L70+44
	ldr	r3, [r3]
	ldrb	r3, [r3]
	strb	r3, [fp, #-17]
	ldr	r3, .L70+44
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L70+44
	str	r3, [r2]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
.L69:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L71:
	.align	2
.L70:
	.word	data_in_buffer.6830
	.word	message.6826
	.word	servsock
	.word	stderr
	.word	progname
	.word	.LC30
	.word	.LC31
	.word	flags
	.word	logfile
	.word	.LC32
	.word	.LC33
	.word	c.6827
	.size	sock_getbyte, .-sock_getbyte
	.section	.rodata
	.align	2
.LC34:
	.ascii	"%s: Read error, line too long\012\000"
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sock_process_line, %function
sock_process_line:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	str	r0, [fp, #-536]
	str	r1, [fp, #-540]
	ldr	r3, .L88
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-528]
	ldr	r3, [fp, #-540]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L84
	sub	r3, fp, #524
	mov	r2, #512
	ldr	r1, [fp, #-540]
	mov	r0, r3
	bl	strncpy
	mov	r3, #0
	strb	r3, [fp, #-12]
	sub	r3, fp, #524
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-528]
	sub	r2, fp, #524
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-540]
	mov	r2, #0
	strb	r2, [r3]
.L84:
	ldr	r0, [fp, #-536]
	bl	sock_getbyte
	mov	r3, r0
	strb	r3, [fp, #-529]
	ldrb	r3, [fp, #-529]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L74
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	ble	.L86
	sub	r2, fp, #524
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #524
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-540]
	bl	strncpy
	ldr	r3, [fp, #-540]
	add	r3, r3, #512
	mov	r2, #0
	strb	r2, [r3]
	b	.L86
.L74:
	ldrb	r3, [fp, #-529]	@ zero_extendqisi2
	cmp	r3, #13
	beq	.L77
	ldrb	r3, [fp, #-529]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L78
.L77:
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	ble	.L87
	sub	r2, fp, #524
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L88+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-536]
	cmp	r2, r3
	bne	.L80
	sub	r3, fp, #524
	mov	r0, r3
	bl	parse_server
	b	.L81
.L80:
	sub	r3, fp, #524
	mov	r0, r3
	bl	parse_stdin
.L81:
	mov	r3, #0
	str	r3, [fp, #-528]
	b	.L87
.L78:
	sub	r2, fp, #524
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	ldrb	r2, [fp, #-529]
	strb	r2, [r3]
	ldr	r3, [fp, #-528]
	add	r3, r3, #1
	str	r3, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmp	r3, #512
	ble	.L84
	ldr	r3, .L88+8
	ldr	r3, [r3]
	ldr	r2, .L88+12
	ldr	r2, [r2]
	ldr	r1, .L88+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L88+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L88+20
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L83
	ldr	r3, .L88+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L83:
	mov	r0, #7
	bl	exit
.L87:
	nop
	b	.L84
.L86:
	nop
	nop
	ldr	r3, .L88
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L85
	bl	__stack_chk_fail
.L85:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L89:
	.align	2
.L88:
	.word	.LC35
	.word	servsock
	.word	stderr
	.word	progname
	.word	.LC34
	.word	flags
	.word	logfile
	.size	sock_process_line, .-sock_process_line
	.section	.rodata
	.align	2
.LC36:
	.ascii	"%ld\000"
	.align	2
.LC37:
	.ascii	"==> \000"
	.align	2
.LC38:
	.ascii	"S=> \000"
	.align	2
.LC39:
	.ascii	"%s%s\012\000"
	.align	2
.LC40:
	.ascii	"\015\012\000"
	.align	2
.LC41:
	.ascii	"%s: Write error to server: %s\012\000"
	.align	2
.LC42:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_to_server, %function
send_to_server:
	@ args = 4, pretend = 12, frame = 1088
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r1, r2, r3}
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1088
	sub	sp, sp, #4
	str	r0, [fp, #-1100]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-1104]
	ldr	r3, .L109
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-1092]
	sub	r0, fp, #536
	ldr	r3, [fp, #-1092]
	ldr	r2, [fp, #-1104]
	ldr	r1, .L109+4
	bl	vsnprintf
	sub	r3, fp, #536
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-1076]
	mov	r3, #0
	str	r3, [fp, #-1084]
	ldr	r3, [fp, #-1084]
	str	r3, [fp, #-1088]
	b	.L91
.L97:
	ldr	r3, [fp, #-1084]
	cmp	r3, #512
	bne	.L92
	ldr	r3, .L109+8
	ldr	r3, [r3]
	ldr	r2, .L109+12
	ldr	r2, [r2]
	ldr	r1, .L109+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L109+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L109+24
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L93
	ldr	r3, .L109+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L93:
	mov	r0, #7
	bl	exit
.L92:
	sub	r2, fp, #536
	ldr	r3, [fp, #-1088]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #11
	bne	.L94
	sub	r3, fp, #1040
	sub	r3, r3, #12
	ldr	r2, [fp, #-1084]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	mov	r0, #0
	bl	time
	str	r0, [fp, #-1068]
	sub	r0, fp, #1056
	sub	r0, r0, #8
	ldr	r3, [fp, #-1068]
	ldr	r2, .L109+32
	mov	r1, #11
	bl	snprintf
	sub	r1, fp, #1056
	sub	r1, r1, #8
	sub	r3, fp, #1040
	sub	r3, r3, #12
	mov	r2, #512
	mov	r0, r3
	bl	strncat
	mov	r3, #0
	strb	r3, [fp, #-540]
	sub	r3, fp, #1040
	sub	r3, r3, #12
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-1084]
	b	.L95
.L94:
	sub	r2, fp, #536
	ldr	r3, [fp, #-1088]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #5
	beq	.L107
	sub	r2, fp, #536
	ldr	r3, [fp, #-1088]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r3, fp, #1040
	sub	r3, r3, #12
	ldr	r2, [fp, #-1084]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-1084]
	add	r3, r3, #1
	str	r3, [fp, #-1084]
	b	.L95
.L107:
	nop
.L95:
	ldr	r3, [fp, #-1088]
	add	r3, r3, #1
	str	r3, [fp, #-1088]
.L91:
	ldr	r2, [fp, #-1088]
	ldr	r3, [fp, #-1076]
	cmp	r2, r3
	blt	.L97
	sub	r3, fp, #1040
	sub	r3, r3, #12
	ldr	r2, [fp, #-1084]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-1084]
	str	r3, [fp, #-1076]
	ldr	r3, [fp, #-1076]
	ldr	r2, .L109+36
	cmp	r3, r2
	bne	.L98
	ldr	r3, .L109+8
	ldr	r3, [r3]
	ldr	r2, .L109+12
	ldr	r2, [r2]
	ldr	r1, .L109+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L109+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L109+24
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L99
	ldr	r3, .L109+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L99:
	mov	r0, #7
	bl	exit
.L98:
	ldr	r3, [fp, #-1100]
	cmp	r3, #3
	beq	.L100
	ldr	r3, .L109+24
	ldr	r3, [r3]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L100
	ldr	r3, .L109+24
	ldr	r3, [r3]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L101
	ldr	r3, .L109+40
	str	r3, [fp, #-1080]
	b	.L102
.L101:
	ldr	r3, [fp, #-1100]
	cmp	r3, #1
	bne	.L103
	ldr	r3, .L109+44
	str	r3, [fp, #-1080]
	b	.L102
.L103:
	ldr	r3, .L109+48
	str	r3, [fp, #-1080]
.L102:
	sub	r3, fp, #1040
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r1, [fp, #-1080]
	ldr	r0, .L109+52
	bl	printf
	ldr	r3, .L109+24
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L100
	ldr	r3, .L109+28
	ldr	r0, [r3]
	sub	r3, fp, #1040
	sub	r3, r3, #12
	ldr	r2, [fp, #-1080]
	ldr	r1, .L109+52
	bl	fprintf
.L100:
	sub	r3, fp, #1040
	sub	r3, r3, #12
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1040
	sub	r3, r3, #12
	add	r3, r3, r2
	ldr	r2, .L109+56
	mov	r0, r3
	mov	r1, r2
	mov	r3, #3
	mov	r2, r3
	bl	memcpy
	mov	r3, #0
	strb	r3, [fp, #-540]
	ldr	r3, [fp, #-1076]
	add	r3, r3, #2
	str	r3, [fp, #-1076]
	ldr	r3, .L109+20
	ldr	r0, [r3]
	ldr	r2, [fp, #-1076]
	sub	r3, fp, #1040
	sub	r3, r3, #12
	mov	r1, r3
	bl	write
	str	r0, [fp, #-1072]
	ldr	r3, [fp, #-1072]
	cmn	r3, #1
	bne	.L108
	ldr	r3, .L109+8
	ldr	r4, [r3]
	ldr	r3, .L109+12
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L109+60
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L109+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L109+24
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L105
	ldr	r3, .L109+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L105:
	mov	r0, #8
	bl	exit
.L108:
	nop
	ldr	r3, .L109
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L106
	bl	__stack_chk_fail
.L106:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, lr}
	add	sp, sp, #12
	bx	lr
.L110:
	.align	2
.L109:
	.word	.LC42
	.word	513
	.word	stderr
	.word	progname
	.word	.LC34
	.word	servsock
	.word	flags
	.word	logfile
	.word	.LC36
	.word	510
	.word	.LC0
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.size	send_to_server, .-send_to_server
	.section	.rodata
	.align	2
.LC43:
	.ascii	"<== \000"
	.align	2
.LC44:
	.ascii	"PING \000"
	.align	2
.LC45:
	.ascii	"PONG %s\000"
	.align	2
.LC46:
	.ascii	":%s PONG %s :%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_server, %function
parse_server:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L128
	ldr	r3, .L134
	ldr	r3, [r3]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L114
	ldr	r3, .L134+4
	str	r3, [fp, #-24]
	b	.L115
.L114:
	ldr	r3, .L134+8
	str	r3, [fp, #-24]
.L115:
	ldr	r3, .L134
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L116
	mov	r2, #5
	ldr	r1, .L134+12
	ldr	r0, [fp, #-32]
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L116
	ldr	r3, [fp, #-32]
	add	r3, r3, #5
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r1, .L134+16
	mov	r0, #3
	bl	send_to_server
	b	.L111
.L116:
	mov	r1, #32
	ldr	r0, [fp, #-32]
	bl	strchr
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L117
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-24]
	ldr	r0, .L134+20
	bl	printf
	ldr	r3, .L134
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L129
	ldr	r3, .L134+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	ldr	r1, .L134+20
	bl	fprintf
	b	.L129
.L117:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L119
	ldr	r3, .L134
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L119
	mov	r2, #5
	ldr	r1, .L134+12
	ldr	r0, [fp, #-12]
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L119
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r3, #5
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L120
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-24]
	ldr	r0, .L134+20
	bl	printf
	ldr	r3, .L134
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L130
	ldr	r3, .L134+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	ldr	r1, .L134+20
	bl	fprintf
	b	.L130
.L120:
	mov	r1, #32
	ldr	r0, [fp, #-8]
	bl	strchr
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L122
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-24]
	ldr	r0, .L134+20
	bl	printf
	ldr	r3, .L134
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L131
	ldr	r3, .L134+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	ldr	r1, .L134+20
	bl	fprintf
	b	.L131
.L122:
	ldr	r3, [fp, #-20]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L124
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-24]
	ldr	r0, .L134+20
	bl	printf
	ldr	r3, .L134
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L132
	ldr	r3, .L134+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	ldr	r1, .L134+20
	bl	fprintf
	b	.L132
.L124:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L126
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L126
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-24]
	ldr	r0, .L134+20
	bl	printf
	ldr	r3, .L134
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L133
	ldr	r3, .L134+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	ldr	r1, .L134+20
	bl	fprintf
	b	.L133
.L126:
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r1, .L134+28
	mov	r0, #3
	bl	send_to_server
	b	.L111
.L119:
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-24]
	ldr	r0, .L134+20
	bl	printf
	ldr	r3, .L134
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L111
	ldr	r3, .L134+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	ldr	r1, .L134+20
	bl	fprintf
	b	.L111
.L128:
	nop
	b	.L111
.L129:
	nop
	b	.L111
.L130:
	nop
	b	.L111
.L131:
	nop
	b	.L111
.L132:
	nop
	b	.L111
.L133:
	nop
.L111:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L135:
	.align	2
.L134:
	.word	flags
	.word	.LC0
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC39
	.word	logfile
	.word	.LC46
	.size	parse_server, .-parse_server
	.section	.rodata
	.align	2
.LC47:
	.ascii	"%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_stdin, %function
parse_stdin:
	@ 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	r2, [fp, #-8]
	ldr	r1, .L137
	mov	r0, #1
	bl	send_to_server
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L138:
	.align	2
.L137:
	.word	.LC47
	.size	parse_stdin, .-parse_stdin
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	local_ctime, %function
local_ctime:
	@ 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]
	sub	r3, fp, #16
	mov	r0, r3
	bl	localtime
	str	r0, [fp, #-8]
	ldr	r3, .L141
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r1, #32
	ldr	r0, .L141+4
	bl	strftime
	ldr	r3, .L141+4
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L142:
	.align	2
.L141:
	.word	gcc_sucks.6875
	.word	buf.6873
	.size	local_ctime, .-local_ctime
	.section	.rodata
	.align	2
.LC48:
	.ascii	"r\000"
	.align	2
.LC49:
	.ascii	"%s: Script file error: %s\000"
	.align	2
.LC50:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	run_script_file, %function
run_script_file:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #536
	str	r0, [fp, #-544]
	ldr	r3, .L153
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L153+4
	ldr	r0, [fp, #-544]
	bl	fopen
	str	r0, [fp, #-536]
	ldr	r3, [fp, #-536]
	cmp	r3, #0
	bne	.L146
	ldr	r3, .L153+8
	ldr	r4, [r3]
	ldr	r3, .L153+12
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L153+20
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L145
	ldr	r3, .L153+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L145:
	mov	r0, #12
	bl	exit
.L151:
	ldrb	r3, [fp, #-528]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L147
	b	.L146
.L147:
	sub	r3, fp, #528
	mov	r1, #10
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-532]
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	beq	.L148
	sub	r3, fp, #528
	ldr	r2, [fp, #-532]
	cmp	r2, r3
	bne	.L149
	b	.L146
.L149:
	ldr	r3, [fp, #-532]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-532]
	sub	r3, r3, #1
	str	r3, [fp, #-532]
	ldr	r3, [fp, #-532]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L148
	ldr	r3, [fp, #-532]
	mov	r2, #0
	strb	r2, [r3]
.L148:
	ldrb	r3, [fp, #-528]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L150
	b	.L146
.L150:
	sub	r3, fp, #528
	mov	r2, r3
	ldr	r1, .L153+28
	mov	r0, #2
	bl	send_to_server
.L146:
	sub	r3, fp, #528
	ldr	r2, [fp, #-536]
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L151
	ldr	r0, [fp, #-536]
	bl	fclose
	nop
	ldr	r3, .L153
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L152
	bl	__stack_chk_fail
.L152:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L154:
	.align	2
.L153:
	.word	.LC50
	.word	.LC48
	.word	stderr
	.word	progname
	.word	.LC49
	.word	flags
	.word	logfile
	.word	.LC47
	.size	run_script_file, .-run_script_file
	.local	data_in_buffer.6830
	.comm	data_in_buffer.6830,4,4
	.local	message.6826
	.comm	message.6826,513,4
	.data
	.align	2
	.type	c.6827, %object
	.size	c.6827, 4
c.6827:
	.word	message.6826
	.section	.rodata
	.align	2
.LC51:
	.ascii	"%c\000"
	.data
	.align	2
	.type	gcc_sucks.6875, %object
	.size	gcc_sucks.6875, 4
gcc_sucks.6875:
	.word	.LC51
	.local	buf.6873
	.comm	buf.6873,32,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
