	.file	"514744.c"
	.intel_syntax noprefix
	.text
	.globl	version
	.section	.rodata
.LC0:
	.string	"@(#) tts 0.4"
	.section	.data.rel.local,"aw"
	.align 8
	.type	version, @object
	.size	version, 8
version:
	.quad	.LC0
	.globl	tts_lockf
	.section	.rodata
.LC1:
	.string	"/etc/tts.pid"
	.section	.data.rel.local
	.align 8
	.type	tts_lockf, @object
	.size	tts_lockf, 8
tts_lockf:
	.quad	.LC1
	.globl	tts_dir
	.section	.rodata
.LC2:
	.string	"/tmp"
	.section	.data.rel.local
	.align 8
	.type	tts_dir, @object
	.size	tts_dir, 8
tts_dir:
	.quad	.LC2
	.globl	datagram_listen_sockets
	.bss
	.align 32
	.type	datagram_listen_sockets, @object
	.size	datagram_listen_sockets, 128
datagram_listen_sockets:
	.zero	128
	.globl	dgram_sockfd
	.align 4
	.type	dgram_sockfd, @object
	.size	dgram_sockfd, 4
dgram_sockfd:
	.zero	4
	.globl	service_mnemonic
	.section	.rodata
.LC3:
	.string	"TTS"
	.section	.data.rel.local
	.align 8
	.type	service_mnemonic, @object
	.size	service_mnemonic, 8
service_mnemonic:
	.quad	.LC3
	.globl	verbose
	.bss
	.align 4
	.type	verbose, @object
	.size	verbose, 4
verbose:
	.zero	4
	.globl	mypid
	.align 4
	.type	mypid, @object
	.size	mypid, 4
mypid:
	.zero	4
	.globl	parent_still_alive
	.align 4
	.type	parent_still_alive, @object
	.size	parent_still_alive, 4
parent_still_alive:
	.zero	4
	.globl	master
	.align 4
	.type	master, @object
	.size	master, 4
master:
	.zero	4
	.globl	standalone
	.align 4
	.type	standalone, @object
	.size	standalone, 4
standalone:
	.zero	4
	.globl	my_host_name
	.align 32
	.type	my_host_name, @object
	.size	my_host_name, 64
my_host_name:
	.zero	64
	.globl	my_host_addr
	.align 8
	.type	my_host_addr, @object
	.size	my_host_addr, 8
my_host_addr:
	.zero	8
	.globl	my_loopback_addr
	.align 8
	.type	my_loopback_addr, @object
	.size	my_loopback_addr, 8
my_loopback_addr:
	.zero	8
	.globl	once
	.align 4
	.type	once, @object
	.size	once, 4
once:
	.zero	4
	.section	.rodata
	.align 8
.LC4:
	.string	"TTS: send datagram to [%s]:%d\n"
.LC5:
	.string	"DATAGRAM SENT"
.LC6:
	.string	"TTS: sendto"
.LC7:
	.string	"TTS: sent %d chars, ret=%d\n"
	.text
	.globl	send_datagram
	.type	send_datagram, @function
send_datagram:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -24[rbp], ecx
	mov	eax, DWORD PTR verbose[rip]
	cmp	eax, 1
	jle	.L2
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	edi, eax
	mov	eax, 0
	call	inet_utoa
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	eax, ax
	mov	DWORD PTR -16[rbp], eax
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR verbose[rip]
	cmp	eax, 2
	jle	.L2
	mov	eax, DWORD PTR -24[rbp]
	neg	eax
	mov	esi, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, 1
	lea	rdx, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	hex_dump@PLT
.L2:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r9d, 16
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	js	.L3
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	je	.L4
.L3:
	cmp	DWORD PTR -12[rbp], 0
	jns	.L5
	lea	rdi, .LC6[rip]
	call	perror@PLT
	jmp	.L4
.L5:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	send_datagram, .-send_datagram
	.section	.rodata
.LC8:
	.string	"tts %ld\n"
	.text
	.globl	xmit_time
	.type	xmit_time, @function
xmit_time:
.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, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -96[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR my_host_addr[rip]
	mov	al, 0
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -92[rbp], eax
	mov	edi, 10999
	call	htons@PLT
	mov	WORD PTR -94[rbp], ax
	mov	WORD PTR -96[rbp], 2
	lea	rax, -104[rbp]
	mov	rdi, rax
	call	time@PLT
	mov	rdx, QWORD PTR -104[rbp]
	lea	rax, -80[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR dgram_sockfd[rip]
	lea	rdx, -80[rbp]
	lea	rsi, -96[rbp]
	mov	edi, eax
	mov	eax, 0
	call	send_datagram
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	xmit_time, .-xmit_time
	.section	.rodata
.LC9:
	.string	"tts PLEASE\n"
	.text
	.globl	xmit_PLEASE
	.type	xmit_PLEASE, @function
xmit_PLEASE:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR my_host_addr[rip]
	mov	al, 0
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	edi, 10999
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	WORD PTR -32[rbp], 2
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR dgram_sockfd[rip]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, -32[rbp]
	mov	edi, eax
	mov	eax, 0
	call	send_datagram
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	xmit_PLEASE, .-xmit_PLEASE
	.section	.rodata
.LC10:
	.string	"TTS: dgram socket"
.LC11:
	.string	"TTS: setsockopt SO_REUSEADDR"
.LC12:
	.string	"TTS: setsockopt SO_BROADCAST"
.LC13:
	.string	"TTS: datagram socket port %d "
.LC14:
	.string	"bind"
	.align 8
.LC15:
	.string	"TTS: datagram socket established port %d (sockfd=%d)\n"
	.text
	.globl	start_datagram_listen
	.type	start_datagram_listen, @function
start_datagram_listen:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L12
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L19
.L12:
	mov	DWORD PTR -40[rbp], 1
	lea	rdx, -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L14
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L19
.L14:
	mov	DWORD PTR -40[rbp], 1
	lea	rdx, -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 6
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L15
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L19
.L15:
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -52[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	test	eax, eax
	jns	.L16
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, -1
	jmp	.L19
.L16:
	mov	DWORD PTR -40[rbp], 1
	lea	rdx, -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L17
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L19
.L17:
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L18
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	edx, eax
	movsx	rax, edx
	lea	rcx, 0[0+rax*8]
	lea	rax, datagram_listen_sockets[rip]
	mov	rsi, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 26
	add	eax, ecx
	and	eax, 63
	sub	eax, ecx
	mov	edi, 1
	mov	ecx, eax
	sal	rdi, cl
	mov	rax, rdi
	or	rsi, rax
	mov	rcx, rsi
	movsx	rax, edx
	lea	rdx, 0[0+rax*8]
	lea	rax, datagram_listen_sockets[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -36[rbp]
.L19:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	start_datagram_listen, .-start_datagram_listen
	.section	.rodata
	.align 8
.LC16:
	.string	"TTS: datagram_received on sockfd %d"
	.align 8
.LC17:
	.string	"TTS: datagram_received zero length read"
	.align 8
.LC18:
	.string	"TTS: datagram from [%s]:%d has %d bytes\n"
.LC19:
	.string	"DATAGRAM RCVD"
.LC20:
	.string	"tts "
.LC21:
	.string	"PLEASE"
.LC22:
	.string	"%ld"
	.align 8
.LC23:
	.string	"TTS: master setting time to %s"
	.align 8
.LC24:
	.string	"                        was %s\n"
.LC25:
	.string	"stime"
	.text
	.globl	datagram_received
	.type	datagram_received, @function
datagram_received:
.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, 2144
	mov	DWORD PTR -2132[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2124[rbp], 16
	lea	rax, -2080[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -2124[rbp]
	lea	rdx, -2080[rbp]
	lea	rsi, -2064[rbp]
	mov	eax, DWORD PTR -2132[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 2048
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -2120[rbp], eax
	mov	eax, DWORD PTR -2124[rbp]
	cmp	eax, 4
	jne	.L22
	mov	rax, QWORD PTR my_host_addr[rip]
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -2076[rbp], eax
.L22:
	cmp	DWORD PTR -2120[rbp], 0
	jns	.L23
	mov	edx, DWORD PTR -2132[rbp]
	lea	rax, -2064[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	perror@PLT
	jmp	.L21
.L23:
	cmp	DWORD PTR -2120[rbp], 0
	jne	.L25
	lea	rdi, .LC17[rip]
	call	puts@PLT
	jmp	.L21
.L25:
	mov	eax, DWORD PTR verbose[rip]
	cmp	eax, 2
	jle	.L26
	mov	eax, DWORD PTR -2076[rbp]
	mov	edi, eax
	mov	eax, 0
	call	inet_utoa
	mov	QWORD PTR -2096[rbp], rax
	movzx	eax, WORD PTR -2078[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	eax, ax
	mov	DWORD PTR -2116[rbp], eax
	mov	ecx, DWORD PTR -2120[rbp]
	mov	edx, DWORD PTR -2116[rbp]
	mov	rax, QWORD PTR -2096[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -2120[rbp]
	neg	eax
	mov	esi, eax
	lea	rax, -2064[rbp]
	mov	ecx, 1
	lea	rdx, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	hex_dump@PLT
.L26:
	mov	eax, DWORD PTR -2076[rbp]
	mov	edi, eax
	call	ntohl@PLT
	mov	eax, eax
	mov	QWORD PTR -2088[rbp], rax
	mov	rax, QWORD PTR my_host_addr[rip]
	cmp	QWORD PTR -2088[rbp], rax
	je	.L35
	mov	eax, DWORD PTR -2120[rbp]
	cdqe
	mov	BYTE PTR -2064[rbp+rax], 0
	lea	rax, -2064[rbp]
	mov	edx, 4
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L21
	mov	eax, DWORD PTR master[rip]
	test	eax, eax
	je	.L29
	lea	rax, -2064[rbp]
	add	rax, 4
	mov	edx, 6
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L29
	mov	eax, 0
	call	xmit_time
	jmp	.L21
.L29:
	lea	rax, -2112[rbp]
	mov	rdi, rax
	call	time@PLT
	lea	rax, -2064[rbp]
	add	rax, 4
	lea	rdx, -2104[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR verbose[rip]
	cmp	eax, 2
	jle	.L30
	lea	rax, -2104[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -2112[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
.L30:
	lea	rax, -2104[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	stime@PLT
	test	eax, eax
	je	.L31
	lea	rdi, .LC25[rip]
	call	perror@PLT
.L31:
	mov	eax, DWORD PTR once[rip]
	test	eax, eax
	je	.L21
	mov	edi, 0
	call	exit@PLT
.L35:
	nop
.L21:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	datagram_received, .-datagram_received
	.globl	demon_death_signal_to_parent
	.type	demon_death_signal_to_parent, @function
demon_death_signal_to_parent:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	edi, 2
	mov	eax, 0
	call	sleep@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.size	demon_death_signal_to_parent, .-demon_death_signal_to_parent
	.section	.rodata
.LC26:
	.string	"%u.%u.%u.%u"
	.text
	.globl	inet_utoa
	.type	inet_utoa, @function
inet_utoa:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	esi, al
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 8
	movzx	ecx, al
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 16
	movzx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 24
	movzx	eax, al
	mov	r9, rsi
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC26[rip]
	lea	rdi, txt.0[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, txt.0[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	inet_utoa, .-inet_utoa
	.section	.rodata
	.align 8
.LC27:
	.string	"TTS: CANNOT CHANGE DIRECTORY TO "
.LC28:
	.string	"RKkmsvo"
	.align 8
.LC29:
	.string	"Usage: tts [-R] [-K] [-k] [-m] [-s] [-v] [-o]\n"
.LC30:
	.string	"gethostname"
	.align 8
.LC31:
	.string	"tts cannot get address for '%s'\n"
.LC32:
	.string	"localhost"
	.align 8
.LC33:
	.string	"tts cannot get address for 'localhost'"
.LC34:
	.string	"One shot time broadcast"
.LC35:
	.string	"TTS: once socket"
.LC36:
	.string	"r"
.LC37:
	.string	"%d"
.LC38:
	.string	"sending kill(%d,%d)\n"
.LC39:
	.string	"kill"
.LC40:
	.string	"successful"
.LC41:
	.string	"TTS: IS ALREADY RUNNING"
.LC42:
	.string	"TTS is not running"
.LC43:
	.string	"TTS: fork"
.LC44:
	.string	"w"
.LC45:
	.string	"%d\n"
	.align 8
.LC46:
	.string	"<<< TTS %s >>>   starting (pid %d,verbose=%d)\n"
	.align 8
.LC47:
	.string	"TTS: COULD NOT ESTABLISH INET UDP SOCKET"
.LC48:
	.string	"TTS: SELECT on fds "
.LC49:
	.string	"%d "
.LC50:
	.string	"TTS main select"
	.align 8
.LC51:
	.string	"TTS: tts select found %d read(s)\n"
.LC52:
	.string	"TTS: EXCEPTION on sockfd %d\n"
	.align 8
.LC53:
	.string	"TTS: datagram received (sockfd=%d)\n"
	.align 8
.LC54:
	.string	"TTS: unknown data on sockfd %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 384
	mov	DWORD PTR -372[rbp], edi
	mov	QWORD PTR -384[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -356[rbp], 0
	mov	DWORD PTR -352[rbp], 0
	mov	DWORD PTR -348[rbp], 0
	lea	rax, -288[rbp]
	mov	QWORD PTR -328[rbp], rax
	mov	QWORD PTR -336[rbp], 0
	mov	rax, QWORD PTR tts_dir[rip]
	mov	rdi, rax
	mov	eax, 0
	call	chdir@PLT
	test	eax, eax
	je	.L41
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR tts_dir[rip]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L51:
	mov	eax, DWORD PTR -368[rbp]
	sub	eax, 63
	cmp	eax, 55
	ja	.L41
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L43[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L43[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L43:
	.long	.L50-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L49-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L48-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L47-.L43
	.long	.L41-.L43
	.long	.L46-.L43
	.long	.L41-.L43
	.long	.L45-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L44-.L43
	.long	.L41-.L43
	.long	.L41-.L43
	.long	.L42-.L43
	.text
.L47:
	mov	DWORD PTR -352[rbp], 15
	jmp	.L41
.L49:
	mov	DWORD PTR -352[rbp], 3
	jmp	.L41
.L44:
	mov	DWORD PTR -352[rbp], 10
	jmp	.L41
.L42:
	mov	eax, DWORD PTR verbose[rip]
	add	eax, 1
	mov	DWORD PTR verbose[rip], eax
	jmp	.L41
.L46:
	mov	DWORD PTR master[rip], 1
	jmp	.L41
.L45:
	mov	DWORD PTR once[rip], 1
	jmp	.L41
.L48:
	mov	DWORD PTR -348[rbp], 1
	jmp	.L41
.L50:
	add	DWORD PTR -356[rbp], 1
	nop
.L41:
	mov	rcx, QWORD PTR -384[rbp]
	mov	eax, DWORD PTR -372[rbp]
	lea	rdx, .LC28[rip]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	getopt@PLT
	mov	DWORD PTR -368[rbp], eax
	cmp	DWORD PTR -368[rbp], -1
	jne	.L51
	mov	rax, QWORD PTR version[rip]
	add	rax, 5
	mov	rdi, rax
	call	puts@PLT
	cmp	DWORD PTR -356[rbp], 0
	jne	.L52
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -372[rbp], eax
	je	.L53
.L52:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC29[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L53:
	mov	edi, 2
	mov	eax, 0
	call	close@PLT
	mov	esi, 2
	mov	edi, 1
	mov	eax, 0
	call	dup2@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	mov	eax, 0
	call	getpid@PLT
	mov	DWORD PTR mypid[rip], eax
	mov	esi, 64
	lea	rdi, my_host_name[rip]
	mov	eax, 0
	call	gethostname@PLT
	test	eax, eax
	je	.L54
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC30[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L54:
	lea	rdi, my_host_name[rip]
	mov	eax, 0
	call	gethostaddr@PLT
	cdqe
	mov	QWORD PTR my_host_addr[rip], rax
	mov	rax, QWORD PTR my_host_addr[rip]
	mov	edx, 4294967295
	cmp	rax, rdx
	jne	.L55
	lea	rsi, my_host_name[rip]
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L55:
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	gethostaddr@PLT
	cdqe
	mov	QWORD PTR my_loopback_addr[rip], rax
	mov	rax, QWORD PTR my_loopback_addr[rip]
	mov	edx, 4294967295
	cmp	rax, rdx
	jne	.L56
	lea	rdi, .LC33[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L56:
	mov	eax, DWORD PTR master[rip]
	test	eax, eax
	je	.L57
	mov	eax, DWORD PTR once[rip]
	test	eax, eax
	je	.L57
	lea	rdi, .LC34[rip]
	call	puts@PLT
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR dgram_sockfd[rip], eax
	mov	eax, DWORD PTR dgram_sockfd[rip]
	test	eax, eax
	jns	.L58
	lea	rdi, .LC35[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L58:
	mov	DWORD PTR -304[rbp], 1
	mov	eax, DWORD PTR dgram_sockfd[rip]
	lea	rdx, -304[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 6
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L59
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, -1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L97
	jmp	.L98
.L59:
	mov	eax, 0
	call	xmit_time
	mov	edi, 0
	call	exit@PLT
.L57:
	cmp	DWORD PTR -348[rbp], 0
	je	.L61
	mov	rax, QWORD PTR tts_lockf[rip]
	mov	rdi, rax
	mov	eax, 0
	call	unlink@PLT
.L61:
	mov	rax, QWORD PTR tts_lockf[rip]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -320[rbp], rax
	cmp	QWORD PTR -320[rbp], 0
	je	.L62
	lea	rdx, -304[rbp]
	mov	rax, QWORD PTR -320[rbp]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	test	eax, eax
	je	.L63
	mov	eax, DWORD PTR -304[rbp]
	mov	esi, 0
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	je	.L64
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	je	.L63
.L64:
	cmp	DWORD PTR -352[rbp], 0
	je	.L65
	mov	eax, DWORD PTR -304[rbp]
	mov	edx, DWORD PTR -352[rbp]
	mov	esi, eax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -304[rbp]
	mov	edx, DWORD PTR -352[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	je	.L66
	lea	rdi, .LC39[rip]
	call	perror@PLT
	jmp	.L67
.L66:
	lea	rdi, .LC40[rip]
	call	puts@PLT
	jmp	.L67
.L65:
	lea	rdi, .LC41[rip]
	call	puts@PLT
.L67:
	mov	edi, 1
	call	exit@PLT
.L63:
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L62:
	cmp	DWORD PTR -352[rbp], 0
	je	.L68
	lea	rdi, .LC42[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L68:
	mov	DWORD PTR parent_still_alive[rip], 1
	call	fork@PLT
	mov	DWORD PTR -368[rbp], eax
	cmp	DWORD PTR -368[rbp], 0
	je	.L69
	cmp	DWORD PTR -368[rbp], 0
	jns	.L70
	lea	rdi, .LC43[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L70:
	mov	edi, 0
	call	exit@PLT
.L69:
	mov	eax, 0
	call	getpid@PLT
	mov	DWORD PTR mypid[rip], eax
	mov	rax, QWORD PTR tts_lockf[rip]
	lea	rsi, .LC44[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -320[rbp], rax
	cmp	QWORD PTR -320[rbp], 0
	jne	.L71
	mov	rax, QWORD PTR tts_lockf[rip]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L71:
	mov	edx, DWORD PTR mypid[rip]
	mov	rax, QWORD PTR -320[rbp]
	lea	rsi, .LC45[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L72
	mov	edi, 2
	mov	eax, 0
	call	sleep@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	ecx, DWORD PTR verbose[rip]
	mov	edx, DWORD PTR mypid[rip]
	mov	rax, QWORD PTR version[rip]
	mov	rsi, rax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
.L72:
	mov	edi, 10999
	mov	eax, 0
	call	start_datagram_listen
	mov	DWORD PTR dgram_sockfd[rip], eax
	mov	eax, DWORD PTR dgram_sockfd[rip]
	test	eax, eax
	jns	.L73
	lea	rdi, .LC47[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L73:
	mov	DWORD PTR -368[rbp], 1
	jmp	.L74
.L75:
	mov	eax, DWORD PTR -368[rbp]
	mov	esi, 1
	mov	edi, eax
	call	signal@PLT
	add	DWORD PTR -368[rbp], 1
.L74:
	cmp	DWORD PTR -368[rbp], 64
	jle	.L75
	mov	esi, 0
	mov	edi, 15
	call	signal@PLT
	mov	rax, QWORD PTR -328[rbp]
	mov	QWORD PTR [rax], 1024
	mov	rax, QWORD PTR -328[rbp]
	mov	QWORD PTR 8[rax], 1024
	mov	rax, QWORD PTR -328[rbp]
	mov	rsi, rax
	mov	edi, 7
	call	setrlimit@PLT
	mov	eax, DWORD PTR master[rip]
	test	eax, eax
	je	.L76
	mov	eax, 0
	call	xmit_time
	jmp	.L86
.L76:
	mov	eax, 0
	call	xmit_PLEASE
.L77:
.L86:
	mov	rax, QWORD PTR datagram_listen_sockets[rip]
	mov	rdx, QWORD PTR datagram_listen_sockets[rip+8]
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], rdx
	mov	rax, QWORD PTR datagram_listen_sockets[rip+16]
	mov	rdx, QWORD PTR datagram_listen_sockets[rip+24]
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], rdx
	mov	rax, QWORD PTR datagram_listen_sockets[rip+32]
	mov	rdx, QWORD PTR datagram_listen_sockets[rip+40]
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], rdx
	mov	rax, QWORD PTR datagram_listen_sockets[rip+48]
	mov	rdx, QWORD PTR datagram_listen_sockets[rip+56]
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], rdx
	mov	rax, QWORD PTR datagram_listen_sockets[rip+64]
	mov	rdx, QWORD PTR datagram_listen_sockets[rip+72]
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], rdx
	mov	rax, QWORD PTR datagram_listen_sockets[rip+80]
	mov	rdx, QWORD PTR datagram_listen_sockets[rip+88]
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], rdx
	mov	rax, QWORD PTR datagram_listen_sockets[rip+96]
	mov	rdx, QWORD PTR datagram_listen_sockets[rip+104]
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], rdx
	mov	rax, QWORD PTR datagram_listen_sockets[rip+112]
	mov	rdx, QWORD PTR datagram_listen_sockets[rip+120]
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], rdx
	mov	rax, QWORD PTR datagram_listen_sockets[rip]
	mov	rdx, QWORD PTR datagram_listen_sockets[rip+8]
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], rdx
	mov	rax, QWORD PTR datagram_listen_sockets[rip+16]
	mov	rdx, QWORD PTR datagram_listen_sockets[rip+24]
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -120[rbp], rdx
	mov	rax, QWORD PTR datagram_listen_sockets[rip+32]
	mov	rdx, QWORD PTR datagram_listen_sockets[rip+40]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR datagram_listen_sockets[rip+48]
	mov	rdx, QWORD PTR datagram_listen_sockets[rip+56]
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR datagram_listen_sockets[rip+64]
	mov	rdx, QWORD PTR datagram_listen_sockets[rip+72]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR datagram_listen_sockets[rip+80]
	mov	rdx, QWORD PTR datagram_listen_sockets[rip+88]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR datagram_listen_sockets[rip+96]
	mov	rdx, QWORD PTR datagram_listen_sockets[rip+104]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR datagram_listen_sockets[rip+112]
	mov	rdx, QWORD PTR datagram_listen_sockets[rip+120]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	eax, DWORD PTR verbose[rip]
	cmp	eax, 8
	jle	.L78
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -364[rbp], 0
	jmp	.L79
.L81:
	mov	eax, DWORD PTR -364[rbp]
	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 -364[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L80
	mov	eax, DWORD PTR -364[rbp]
	mov	esi, eax
	lea	rdi, .LC49[rip]
	mov	eax, 0
	call	printf@PLT
.L80:
	add	DWORD PTR -364[rbp], 1
.L79:
	cmp	DWORD PTR -364[rbp], 1023
	jle	.L81
	mov	edi, 10
	call	putchar@PLT
.L78:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	QWORD PTR -304[rbp], 10
	mov	QWORD PTR -296[rbp], 0
	mov	eax, DWORD PTR master[rip]
	test	eax, eax
	je	.L82
	lea	rcx, -304[rbp]
	jmp	.L83
.L82:
	mov	ecx, 0
.L83:
	lea	rdx, -144[rbp]
	lea	rax, -272[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1024
	call	select@PLT
	mov	DWORD PTR -360[rbp], eax
	cmp	DWORD PTR -360[rbp], 0
	jns	.L84
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L85
	jmp	.L86
.L85:
	lea	rdi, .LC50[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L84:
	mov	eax, DWORD PTR verbose[rip]
	cmp	eax, 3
	jle	.L87
	mov	eax, DWORD PTR -360[rbp]
	mov	esi, eax
	lea	rdi, .LC51[rip]
	mov	eax, 0
	call	printf@PLT
.L87:
	mov	DWORD PTR -364[rbp], 0
	jmp	.L88
.L95:
	mov	eax, DWORD PTR -364[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -364[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L89
	mov	eax, DWORD PTR -364[rbp]
	mov	esi, eax
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
.L89:
	mov	eax, DWORD PTR -364[rbp]
	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 -364[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L90
	sub	DWORD PTR -360[rbp], 1
	mov	eax, DWORD PTR -364[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, datagram_listen_sockets[rip]
	mov	rsi, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -364[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L91
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L92
	mov	eax, DWORD PTR -364[rbp]
	mov	esi, eax
	lea	rdi, .LC53[rip]
	mov	eax, 0
	call	printf@PLT
.L92:
	mov	eax, DWORD PTR -364[rbp]
	mov	edi, eax
	mov	eax, 0
	call	datagram_received
	jmp	.L90
.L91:
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L93
	mov	eax, DWORD PTR -364[rbp]
	mov	esi, eax
	lea	rdi, .LC54[rip]
	mov	eax, 0
	call	printf@PLT
.L93:
	mov	eax, DWORD PTR -364[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, DWORD PTR -364[rbp]
	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 -364[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	not	rax
	and	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -272[rbp+rax*8], rdx
.L90:
	add	DWORD PTR -364[rbp], 1
.L88:
	cmp	DWORD PTR -364[rbp], 1023
	jg	.L94
	cmp	DWORD PTR -360[rbp], 0
	jne	.L95
.L94:
	lea	rax, -344[rbp]
	mov	rdi, rax
	call	time@PLT
	lea	rax, -344[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	QWORD PTR -312[rbp], rax
	mov	eax, DWORD PTR master[rip]
	test	eax, eax
	je	.L86
	mov	rax, QWORD PTR -344[rbp]
	sub	rax, QWORD PTR -336[rbp]
	cmp	rax, 1800
	jle	.L86
	mov	rax, QWORD PTR -344[rbp]
	mov	QWORD PTR -336[rbp], rax
	mov	eax, 0
	call	xmit_time
	jmp	.L86
.L98:
	call	__stack_chk_fail@PLT
.L97:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.local	txt.0
	.comm	txt.0,40,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	"514744.c"
	.text
	.global	version
	.section	.rodata
	.align	2
.LC0:
	.ascii	"@(#) tts 0.4\000"
	.data
	.align	2
	.type	version, %object
	.size	version, 4
version:
	.word	.LC0
	.global	tts_lockf
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/etc/tts.pid\000"
	.data
	.align	2
	.type	tts_lockf, %object
	.size	tts_lockf, 4
tts_lockf:
	.word	.LC1
	.global	tts_dir
	.section	.rodata
	.align	2
.LC2:
	.ascii	"/tmp\000"
	.data
	.align	2
	.type	tts_dir, %object
	.size	tts_dir, 4
tts_dir:
	.word	.LC2
	.comm	datagram_listen_sockets,128,4
	.comm	dgram_sockfd,4,4
	.global	service_mnemonic
	.section	.rodata
	.align	2
.LC3:
	.ascii	"TTS\000"
	.data
	.align	2
	.type	service_mnemonic, %object
	.size	service_mnemonic, 4
service_mnemonic:
	.word	.LC3
	.global	verbose
	.bss
	.align	2
	.type	verbose, %object
	.size	verbose, 4
verbose:
	.space	4
	.comm	mypid,4,4
	.comm	parent_still_alive,4,4
	.global	master
	.align	2
	.type	master, %object
	.size	master, 4
master:
	.space	4
	.global	standalone
	.align	2
	.type	standalone, %object
	.size	standalone, 4
standalone:
	.space	4
	.comm	my_host_name,64,4
	.comm	my_host_addr,4,4
	.comm	my_loopback_addr,4,4
	.global	once
	.align	2
	.type	once, %object
	.size	once, 4
once:
	.space	4
	.section	.rodata
	.align	2
.LC4:
	.ascii	"TTS: send datagram to [%s]:%d\012\000"
	.align	2
.LC5:
	.ascii	"DATAGRAM SENT\000"
	.align	2
.LC6:
	.ascii	"TTS: sendto\000"
	.align	2
.LC7:
	.ascii	"TTS: sent %d chars, ret=%d\012\000"
	.text
	.align	2
	.global	send_datagram
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_datagram, %function
send_datagram:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, .L7
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	mov	r0, r3
	bl	inet_utoa
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-28]
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, .L7+4
	bl	printf
	ldr	r3, .L7
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L2
	ldr	r3, [fp, #-36]
	rsb	r1, r3, #0
	mov	r3, #1
	ldr	r2, .L7+8
	ldr	r0, [fp, #-32]
	bl	hex_dump
.L2:
	ldr	r2, [fp, #-36]
	mov	r3, #16
	str	r3, [sp, #4]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	mov	r3, #0
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	sendto
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L3
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	beq	.L4
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L7+12
	bl	perror
	b	.L4
.L5:
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-36]
	ldr	r0, .L7+16
	bl	printf
.L4:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	verbose
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	send_datagram, .-send_datagram
	.section	.rodata
	.align	2
.LC8:
	.ascii	"tts %ld\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	xmit_time
	.syntax unified
	.arm
	.fpu softvfp
	.type	xmit_time, %function
xmit_time:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #92
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #96
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L11+4
	ldr	r3, [r3]
	bic	r3, r3, #255
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r0, .L11+8
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-94]	@ movhi
	mov	r3, #2
	strh	r3, [fp, #-96]	@ movhi
	sub	r3, fp, #100
	mov	r0, r3
	bl	time
	ldr	r2, [fp, #-100]
	sub	r3, fp, #80
	ldr	r1, .L11+12
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L11+16
	ldr	r4, [r3]
	sub	r3, fp, #80
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #80
	sub	r1, fp, #96
	mov	r0, r4
	bl	send_datagram
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC9
	.word	my_host_addr
	.word	10999
	.word	.LC8
	.word	dgram_sockfd
	.size	xmit_time, .-xmit_time
	.section	.rodata
	.align	2
.LC10:
	.ascii	"tts PLEASE\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	xmit_PLEASE
	.syntax unified
	.arm
	.fpu softvfp
	.type	xmit_PLEASE, %function
xmit_PLEASE:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L15+4
	str	r3, [fp, #-36]
	sub	r3, fp, #32
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L15+8
	ldr	r3, [r3]
	bic	r3, r3, #255
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r0, .L15+12
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-30]	@ movhi
	mov	r3, #2
	strh	r3, [fp, #-32]	@ movhi
	ldr	r3, .L15+16
	ldr	r4, [r3]
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r3, r0
	sub	r1, fp, #32
	ldr	r2, [fp, #-36]
	mov	r0, r4
	bl	send_datagram
	nop
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC11
	.word	.LC10
	.word	my_host_addr
	.word	10999
	.word	dgram_sockfd
	.size	xmit_PLEASE, .-xmit_PLEASE
	.section	.rodata
	.align	2
.LC12:
	.ascii	"TTS: dgram socket\000"
	.align	2
.LC13:
	.ascii	"TTS: setsockopt SO_REUSEADDR\000"
	.align	2
.LC14:
	.ascii	"TTS: setsockopt SO_BROADCAST\000"
	.align	2
.LC15:
	.ascii	"TTS: datagram socket port %d \000"
	.align	2
.LC16:
	.ascii	"bind\000"
	.align	2
.LC17:
	.ascii	"TTS: datagram socket established port %d (sockfd=%d"
	.ascii	")\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	start_datagram_listen
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_datagram_listen, %function
start_datagram_listen:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L27+4
	bl	perror
	mvn	r3, #0
	b	.L25
.L18:
	mov	r3, #1
	str	r3, [fp, #-32]
	sub	r3, fp, #32
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-28]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L27+8
	bl	perror
	mvn	r3, #0
	b	.L25
.L20:
	mov	r3, #1
	str	r3, [fp, #-32]
	sub	r3, fp, #32
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, [fp, #-28]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L21
	ldr	r0, .L27+12
	bl	perror
	mvn	r3, #0
	b	.L25
.L21:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	bind
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L22
	ldr	r1, [fp, #-40]
	ldr	r0, .L27+16
	bl	printf
	ldr	r0, .L27+20
	bl	perror
	ldr	r0, [fp, #-28]
	bl	close
	mvn	r3, #0
	b	.L25
.L22:
	mov	r3, #1
	str	r3, [fp, #-32]
	sub	r3, fp, #32
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-28]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L23
	ldr	r0, .L27+8
	bl	perror
	mvn	r3, #0
	b	.L25
.L23:
	ldr	r3, .L27+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L24
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-40]
	ldr	r0, .L27+28
	bl	printf
.L24:
	ldr	r3, [fp, #-28]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L27+32
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-28]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r3, r1, r3
	ldr	r1, .L27+32
	str	r3, [r1, r2, lsl #2]
	ldr	r3, [fp, #-28]
.L25:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC18
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	verbose
	.word	.LC17
	.word	datagram_listen_sockets
	.size	start_datagram_listen, .-start_datagram_listen
	.section	.rodata
	.align	2
.LC19:
	.ascii	"TTS: datagram_received on sockfd %d\000"
	.align	2
.LC20:
	.ascii	"TTS: datagram_received zero length read\000"
	.align	2
.LC21:
	.ascii	"TTS: datagram from [%s]:%d has %d bytes\012\000"
	.align	2
.LC22:
	.ascii	"DATAGRAM RCVD\000"
	.align	2
.LC23:
	.ascii	"tts \000"
	.align	2
.LC24:
	.ascii	"PLEASE\000"
	.align	2
.LC25:
	.ascii	"%ld\000"
	.align	2
.LC26:
	.ascii	"TTS: master setting time to %s\000"
	.align	2
.LC27:
	.ascii	"                        was %s\012\000"
	.align	2
.LC28:
	.ascii	"stime\000"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	datagram_received
	.syntax unified
	.arm
	.fpu softvfp
	.type	datagram_received, %function
datagram_received:
	@ args = 0, pretend = 0, frame = 2104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2112
	str	r0, [fp, #-2104]
	ldr	r3, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #16
	str	r3, [fp, #-2100]
	sub	r3, fp, #2064
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r1, fp, #2048
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #2096
	sub	r3, r3, #4
	str	r3, [sp, #4]
	sub	r3, fp, #2064
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #2048
	ldr	r0, [fp, #-2104]
	bl	recvfrom
	str	r0, [fp, #-2088]
	ldr	r3, [fp, #-2100]
	cmp	r3, #4
	bne	.L30
	ldr	r3, .L44+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-2068]
.L30:
	ldr	r3, [fp, #-2088]
	cmp	r3, #0
	bge	.L31
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2104]
	ldr	r1, .L44+8
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	perror
	b	.L29
.L31:
	ldr	r3, [fp, #-2088]
	cmp	r3, #0
	bne	.L33
	ldr	r0, .L44+12
	bl	puts
	b	.L29
.L33:
	ldr	r3, .L44+16
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L34
	ldr	r3, [fp, #-2068]
	mov	r0, r3
	bl	inet_utoa
	str	r0, [fp, #-2084]
	sub	r3, fp, #4
	sub	r3, r3, #2064
	sub	r3, r3, #4
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	str	r3, [fp, #-2080]
	ldr	r3, [fp, #-2088]
	ldr	r2, [fp, #-2080]
	ldr	r1, [fp, #-2084]
	ldr	r0, .L44+20
	bl	printf
	ldr	r3, [fp, #-2088]
	rsb	r1, r3, #0
	sub	r0, fp, #2048
	sub	r0, r0, #4
	sub	r0, r0, #4
	mov	r3, #1
	ldr	r2, .L44+24
	bl	hex_dump
.L34:
	ldr	r3, [fp, #-2068]
	mov	r0, r3
	bl	ntohl
	str	r0, [fp, #-2076]
	ldr	r3, .L44+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-2076]
	cmp	r2, r3
	beq	.L43
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2088]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #4
	ldr	r1, .L44+28
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	ldr	r3, .L44+32
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L37
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r2, #6
	ldr	r1, .L44+36
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	bl	xmit_time
	b	.L29
.L37:
	sub	r3, fp, #2080
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	time
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #4
	sub	r2, fp, #2080
	sub	r2, r2, #4
	sub	r2, r2, #8
	ldr	r1, .L44+40
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, .L44+16
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L38
	sub	r3, fp, #2080
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L44+44
	bl	printf
	sub	r3, fp, #2080
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L44+48
	bl	printf
.L38:
	sub	r3, fp, #2080
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	stime
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
	ldr	r0, .L44+52
	bl	perror
.L39:
	ldr	r3, .L44+56
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L29
	mov	r0, #0
	bl	exit
.L43:
	nop
.L29:
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC29
	.word	my_host_addr
	.word	.LC19
	.word	.LC20
	.word	verbose
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	master
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	once
	.size	datagram_received, .-datagram_received
	.align	2
	.global	demon_death_signal_to_parent
	.syntax unified
	.arm
	.fpu softvfp
	.type	demon_death_signal_to_parent, %function
demon_death_signal_to_parent:
	@ 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]
	mov	r0, #2
	bl	sleep
	mov	r0, #0
	bl	exit
	.size	demon_death_signal_to_parent, .-demon_death_signal_to_parent
	.section	.rodata
	.align	2
.LC30:
	.ascii	"%u.%u.%u.%u\000"
	.text
	.align	2
	.global	inet_utoa
	.syntax unified
	.arm
	.fpu softvfp
	.type	inet_utoa, %function
inet_utoa:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsr	r1, r3, #24
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #16
	and	r0, r3, #255
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #8
	and	r3, r3, #255
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, .L49
	ldr	r0, .L49+4
	bl	sprintf
	ldr	r3, .L49+4
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC30
	.word	txt.6647
	.size	inet_utoa, .-inet_utoa
	.section	.rodata
	.align	2
.LC31:
	.ascii	"TTS: CANNOT CHANGE DIRECTORY TO \000"
	.align	2
.LC32:
	.ascii	"RKkmsvo\000"
	.align	2
.LC33:
	.ascii	"Usage: tts [-R] [-K] [-k] [-m] [-s] [-v] [-o]\012\000"
	.align	2
.LC34:
	.ascii	"gethostname\000"
	.align	2
.LC35:
	.ascii	"tts cannot get address for '%s'\012\000"
	.align	2
.LC36:
	.ascii	"localhost\000"
	.align	2
.LC37:
	.ascii	"tts cannot get address for 'localhost'\000"
	.align	2
.LC38:
	.ascii	"One shot time broadcast\000"
	.align	2
.LC39:
	.ascii	"TTS: once socket\000"
	.align	2
.LC40:
	.ascii	"r\000"
	.align	2
.LC41:
	.ascii	"%d\000"
	.align	2
.LC42:
	.ascii	"sending kill(%d,%d)\012\000"
	.align	2
.LC43:
	.ascii	"kill\000"
	.align	2
.LC44:
	.ascii	"successful\000"
	.align	2
.LC45:
	.ascii	"TTS: IS ALREADY RUNNING\000"
	.align	2
.LC46:
	.ascii	"TTS is not running\000"
	.align	2
.LC47:
	.ascii	"TTS: fork\000"
	.align	2
.LC48:
	.ascii	"w\000"
	.align	2
.LC49:
	.ascii	"%d\012\000"
	.align	2
.LC50:
	.ascii	"<<< TTS %s >>>   starting (pid %d,verbose=%d)\012\000"
	.align	2
.LC51:
	.ascii	"TTS: COULD NOT ESTABLISH INET UDP SOCKET\000"
	.align	2
.LC52:
	.ascii	"TTS: SELECT on fds \000"
	.align	2
.LC53:
	.ascii	"%d \000"
	.align	2
.LC54:
	.ascii	"TTS main select\000"
	.align	2
.LC55:
	.ascii	"TTS: tts select found %d read(s)\012\000"
	.align	2
.LC56:
	.ascii	"TTS: EXCEPTION on sockfd %d\012\000"
	.align	2
.LC57:
	.ascii	"TTS: datagram received (sockfd=%d)\012\000"
	.align	2
.LC58:
	.ascii	"TTS: unknown data on sockfd %d\012\000"
	.align	2
.LC59:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 328
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #336
	str	r0, [fp, #-328]
	str	r1, [fp, #-332]
	ldr	r3, .L111
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-308]
	mov	r3, #0
	str	r3, [fp, #-304]
	mov	r3, #0
	str	r3, [fp, #-300]
	sub	r3, fp, #272
	str	r3, [fp, #-292]
	mov	r3, #0
	str	r3, [fp, #-296]
	ldr	r3, .L111+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	ldr	r0, .L111+8
	bl	printf
	ldr	r3, .L111+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r0, #1
	bl	exit
.L63:
	ldr	r3, [fp, #-320]
	sub	r3, r3, #63
	cmp	r3, #55
	ldrls	pc, [pc, r3, asl #2]
	b	.L53
.L55:
	.word	.L62
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L61
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L60
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L59
	.word	.L53
	.word	.L58
	.word	.L53
	.word	.L57
	.word	.L53
	.word	.L53
	.word	.L53
	.word	.L56
	.word	.L53
	.word	.L53
	.word	.L54
.L59:
	mov	r3, #15
	str	r3, [fp, #-304]
	b	.L53
.L61:
	mov	r3, #3
	str	r3, [fp, #-304]
	b	.L53
.L56:
	mov	r3, #10
	str	r3, [fp, #-304]
	b	.L53
.L54:
	ldr	r3, .L111+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L111+12
	str	r3, [r2]
	b	.L53
.L58:
	ldr	r3, .L111+16
	mov	r2, #1
	str	r2, [r3]
	b	.L53
.L57:
	ldr	r3, .L111+20
	mov	r2, #1
	str	r2, [r3]
	b	.L53
.L60:
	mov	r3, #1
	str	r3, [fp, #-300]
	b	.L53
.L62:
	ldr	r3, [fp, #-308]
	add	r3, r3, #1
	str	r3, [fp, #-308]
	nop
.L53:
	ldr	r2, .L111+24
	ldr	r1, [fp, #-332]
	ldr	r0, [fp, #-328]
	bl	getopt
	str	r0, [fp, #-320]
	ldr	r3, [fp, #-320]
	cmn	r3, #1
	bne	.L63
	ldr	r3, .L111+28
	ldr	r3, [r3]
	add	r3, r3, #5
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	bne	.L64
	ldr	r3, .L111+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-328]
	cmp	r2, r3
	beq	.L65
.L64:
	ldr	r3, .L111+36
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L111+40
	bl	fwrite
	mov	r0, #1
	bl	exit
.L65:
	mov	r0, #2
	bl	close
	mov	r1, #2
	mov	r0, #1
	bl	dup2
	ldr	r3, .L111+44
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	ldr	r3, .L111+36
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	bl	getpid
	mov	r3, r0
	ldr	r2, .L111+48
	str	r3, [r2]
	mov	r1, #64
	ldr	r0, .L111+52
	bl	gethostname
	mov	r3, r0
	cmp	r3, #0
	beq	.L66
	ldr	r0, .L111+56
	bl	printf
	ldr	r0, .L111+60
	bl	perror
	mov	r0, #1
	bl	exit
.L66:
	ldr	r0, .L111+52
	bl	gethostaddr
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L111+64
	str	r2, [r3]
	ldr	r3, .L111+64
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L67
	ldr	r1, .L111+52
	ldr	r0, .L111+68
	bl	printf
	mov	r0, #1
	bl	exit
.L67:
	ldr	r0, .L111+72
	bl	gethostaddr
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L111+76
	str	r2, [r3]
	ldr	r3, .L111+76
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L68
	ldr	r0, .L111+80
	bl	puts
	mov	r0, #1
	bl	exit
.L68:
	ldr	r3, .L111+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L69
	ldr	r3, .L111+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L69
	ldr	r0, .L111+84
	bl	puts
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L111+88
	str	r3, [r2]
	ldr	r3, .L111+88
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L70
	ldr	r0, .L111+92
	bl	perror
	mov	r0, #1
	bl	exit
.L70:
	mov	r3, #1
	str	r3, [fp, #-280]
	ldr	r3, .L111+88
	ldr	r0, [r3]
	sub	r3, fp, #280
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #6
	mov	r1, #1
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L71
	ldr	r0, .L111+96
	bl	perror
	mvn	r3, #0
	ldr	r2, .L111
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L109
	b	.L110
.L71:
	bl	xmit_time
	mov	r0, #0
	bl	exit
.L69:
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	beq	.L73
	ldr	r3, .L111+100
	ldr	r3, [r3]
	mov	r0, r3
	bl	unlink
.L73:
	ldr	r3, .L111+100
	ldr	r3, [r3]
	ldr	r1, .L111+104
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-288]
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	beq	.L74
	sub	r3, fp, #280
	mov	r2, r3
	ldr	r1, .L111+108
	ldr	r0, [fp, #-288]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #0
	beq	.L75
	ldr	r3, [fp, #-280]
	mov	r1, #0
	mov	r0, r3
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	beq	.L76
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L75
.L76:
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	beq	.L77
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-304]
	mov	r1, r3
	ldr	r0, .L111+112
	bl	printf
	ldr	r3, [fp, #-280]
	ldr	r1, [fp, #-304]
	mov	r0, r3
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	beq	.L78
	ldr	r0, .L111+116
	bl	perror
	b	.L79
.L78:
	ldr	r0, .L111+120
	bl	puts
	b	.L79
.L77:
	ldr	r0, .L111+124
	bl	puts
.L79:
	mov	r0, #1
	bl	exit
.L75:
	ldr	r0, [fp, #-288]
	bl	fclose
.L74:
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	beq	.L80
	ldr	r0, .L111+128
	bl	puts
	mov	r0, #0
	bl	exit
.L80:
	ldr	r3, .L111+132
	mov	r2, #1
	str	r2, [r3]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-320]
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	beq	.L81
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	bge	.L82
	ldr	r0, .L111+136
	bl	perror
	mov	r0, #1
	bl	exit
.L82:
	mov	r0, #0
	bl	exit
.L81:
	bl	getpid
	mov	r3, r0
	ldr	r2, .L111+48
	str	r3, [r2]
	ldr	r3, .L111+100
	ldr	r3, [r3]
	ldr	r1, .L111+140
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-288]
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bne	.L83
	ldr	r3, .L111+100
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r0, #1
	bl	exit
.L83:
	ldr	r3, .L111+48
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L111+144
	ldr	r0, [fp, #-288]
	bl	fprintf
	ldr	r0, [fp, #-288]
	bl	fclose
	ldr	r3, .L111+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L84
	mov	r0, #2
	bl	sleep
	mov	r0, #10
	bl	putchar
	ldr	r3, .L111+28
	ldr	r1, [r3]
	ldr	r3, .L111+48
	ldr	r2, [r3]
	ldr	r3, .L111+12
	ldr	r3, [r3]
	ldr	r0, .L111+148
	bl	printf
.L84:
	ldr	r0, .L111+152
	bl	start_datagram_listen
	mov	r3, r0
	ldr	r2, .L111+88
	str	r3, [r2]
	ldr	r3, .L111+88
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L85
	ldr	r0, .L111+156
	bl	puts
	mov	r0, #1
	bl	exit
.L85:
	mov	r3, #1
	str	r3, [fp, #-320]
	b	.L86
.L87:
	mov	r1, #1
	ldr	r0, [fp, #-320]
	bl	signal
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L86:
	ldr	r3, [fp, #-320]
	cmp	r3, #64
	ble	.L87
	mov	r1, #0
	mov	r0, #15
	bl	signal
	ldr	r3, [fp, #-292]
	mov	r2, #1024
	str	r2, [r3]
	ldr	r3, [fp, #-292]
	mov	r2, #1024
	str	r2, [r3, #4]
	ldr	r1, [fp, #-292]
	mov	r0, #7
	bl	setrlimit
	ldr	r3, .L111+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L88
	bl	xmit_time
	b	.L98
.L88:
	bl	xmit_PLEASE
.L89:
.L98:
	ldr	r2, .L111+160
	sub	r3, fp, #264
	mov	r1, r2
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	ldr	r2, .L111+160
	sub	r3, fp, #136
	mov	r1, r2
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L111+12
	ldr	r3, [r3]
	cmp	r3, #8
	ble	.L90
	ldr	r0, .L111+164
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-316]
	b	.L91
.L93:
	ldr	r3, [fp, #-316]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-260]
	ldr	r3, [fp, #-316]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L92
	ldr	r1, [fp, #-316]
	ldr	r0, .L111+168
	bl	printf
.L92:
	ldr	r3, [fp, #-316]
	add	r3, r3, #1
	str	r3, [fp, #-316]
.L91:
	ldr	r3, [fp, #-316]
	cmp	r3, #1024
	blt	.L93
	mov	r0, #10
	bl	putchar
.L90:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #10
	str	r3, [fp, #-280]
	mov	r3, #0
	str	r3, [fp, #-276]
	ldr	r3, .L111+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L94
	sub	r3, fp, #280
	b	.L95
.L94:
	mov	r3, #0
.L95:
	sub	r2, fp, #136
	sub	r1, fp, #264
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #0
	mov	r0, #1024
	bl	select
	str	r0, [fp, #-312]
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	bge	.L96
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L97
	b	.L98
.L97:
	ldr	r0, .L111+172
	bl	perror
	mov	r0, #1
	bl	exit
.L96:
	ldr	r3, .L111+12
	ldr	r3, [r3]
	cmp	r3, #3
	ble	.L99
	ldr	r1, [fp, #-312]
	ldr	r0, .L111+176
	bl	printf
.L99:
	mov	r3, #0
	str	r3, [fp, #-316]
	b	.L100
.L107:
	ldr	r3, [fp, #-316]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	ldr	r3, [fp, #-316]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L101
	ldr	r1, [fp, #-316]
	ldr	r0, .L111+180
	bl	printf
.L101:
	ldr	r3, [fp, #-316]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-260]
	ldr	r3, [fp, #-316]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L102
	ldr	r3, [fp, #-312]
	sub	r3, r3, #1
	str	r3, [fp, #-312]
	ldr	r3, [fp, #-316]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L111+160
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-316]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L103
	ldr	r3, .L111+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L104
	ldr	r1, [fp, #-316]
	ldr	r0, .L111+184
	bl	printf
.L104:
	ldr	r0, [fp, #-316]
	bl	datagram_received
	b	.L102
.L103:
	ldr	r3, .L111+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L105
	ldr	r1, [fp, #-316]
	ldr	r0, .L111+188
	bl	printf
.L105:
	ldr	r0, [fp, #-316]
	bl	close
	ldr	r3, [fp, #-316]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-260]
	ldr	r3, [fp, #-316]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	mvn	r3, r3
	and	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-260]
.L102:
	ldr	r3, [fp, #-316]
	add	r3, r3, #1
	str	r3, [fp, #-316]
.L100:
	ldr	r3, [fp, #-316]
	cmp	r3, #1024
	bge	.L106
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	bne	.L107
.L106:
	sub	r3, fp, #324
	mov	r0, r3
	bl	time
	sub	r3, fp, #324
	mov	r0, r3
	bl	localtime
	str	r0, [fp, #-284]
	ldr	r3, .L111+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L98
	ldr	r2, [fp, #-324]
	ldr	r3, [fp, #-296]
	sub	r3, r2, r3
	ldr	r2, .L111+192
	cmp	r3, r2
	ble	.L98
	ldr	r3, [fp, #-324]
	str	r3, [fp, #-296]
	bl	xmit_time
	b	.L98
.L110:
	bl	__stack_chk_fail
.L109:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L112:
	.align	2
.L111:
	.word	.LC59
	.word	tts_dir
	.word	.LC31
	.word	verbose
	.word	master
	.word	once
	.word	.LC32
	.word	version
	.word	optind
	.word	stderr
	.word	.LC33
	.word	stdout
	.word	mypid
	.word	my_host_name
	.word	.LC23
	.word	.LC34
	.word	my_host_addr
	.word	.LC35
	.word	.LC36
	.word	my_loopback_addr
	.word	.LC37
	.word	.LC38
	.word	dgram_sockfd
	.word	.LC39
	.word	.LC14
	.word	tts_lockf
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	parent_still_alive
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	10999
	.word	.LC51
	.word	datagram_listen_sockets
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	1800
	.size	main, .-main
	.local	txt.6647
	.comm	txt.6647,40,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
