	.file	"111078150.c"
	.intel_syntax noprefix
	.text
	.data
	.type	rcsid, @object
	.size	rcsid, 5
rcsid:
	.string	"$Id$"
	.globl	CONFIGDIR
	.section	.rodata
.LC0:
	.string	"/etc/hdemo"
	.section	.data.rel.local,"aw"
	.align 8
	.type	CONFIGDIR, @object
	.size	CONFIGDIR, 8
CONFIGDIR:
	.quad	.LC0
	.globl	srvaddr
	.bss
	.align 16
	.type	srvaddr, @object
	.size	srvaddr, 16
srvaddr:
	.zero	16
	.globl	reconfig
	.data
	.align 4
	.type	reconfig, @object
	.size	reconfig, 4
reconfig:
	.long	1
	.globl	nethead
	.bss
	.align 8
	.type	nethead, @object
	.size	nethead, 8
nethead:
	.zero	8
	.globl	acthead
	.align 8
	.type	acthead, @object
	.size	acthead, 8
acthead:
	.zero	8
	.globl	clihead
	.align 8
	.type	clihead, @object
	.size	clihead, 8
clihead:
	.zero	8
	.local	confdir
	.comm	confdir,8,8
	.globl	dent
	.align 8
	.type	dent, @object
	.size	dent, 8
dent:
	.zero	8
	.local	path
	.comm	path,8,8
	.section	.rodata
.LC1:
	.string	"%s/%s/%s"
.LC2:
	.string	"r"
	.text
	.globl	nextservice
	.type	nextservice, @function
nextservice:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 192
	mov	QWORD PTR -4280[rbp], rdi
	mov	QWORD PTR -4288[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -4280[rbp], 0
	je	.L6
	mov	rax, QWORD PTR confdir[rip]
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR confdir[rip]
	mov	rdi, rax
	call	closedir@PLT
.L3:
	mov	rax, QWORD PTR path[rip]
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR path[rip]
	mov	rdi, rax
	call	free@PLT
.L4:
	mov	rax, QWORD PTR -4280[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR confdir[rip], rax
	mov	rax, QWORD PTR -4280[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR path[rip], rax
.L6:
	mov	rax, QWORD PTR confdir[rip]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR dent[rip], rax
	mov	rax, QWORD PTR dent[rip]
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR dent[rip]
	movzx	eax, BYTE PTR 19[rax]
	cmp	al, 46
	je	.L6
.L5:
	mov	rax, QWORD PTR dent[rip]
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR confdir[rip]
	mov	rdi, rax
	call	closedir@PLT
	mov	rax, QWORD PTR path[rip]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR path[rip], 0
	mov	QWORD PTR confdir[rip], 0
	mov	QWORD PTR dent[rip], 0
	mov	eax, 0
	jmp	.L9
.L7:
	mov	rax, QWORD PTR dent[rip]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR path[rip]
	mov	rsi, QWORD PTR -4288[rbp]
	lea	rax, -4112[rbp]
	mov	r8, rsi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -4256[rbp]
	lea	rax, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	je	.L6
	lea	rax, -4112[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4272[rbp], rax
	cmp	QWORD PTR -4272[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -4208[rbp]
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -4264[rbp], rax
	mov	rax, QWORD PTR -4208[rbp]
	mov	rsi, rax
	mov	rdx, QWORD PTR -4272[rbp]
	mov	rax, QWORD PTR -4264[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -4208[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -4264[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -4272[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -4264[rbp]
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nextservice, .-nextservice
	.section	.rodata
.LC3:
	.string	"%s/%s"
	.text
	.globl	svcattrib
	.type	svcattrib, @function
svcattrib:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 192
	mov	QWORD PTR -4280[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR dent[rip]
	test	rax, rax
	jne	.L12
	mov	eax, 0
	jmp	.L17
.L12:
	cmp	QWORD PTR -4280[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR dent[rip]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR path[rip]
	lea	rax, -4112[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -4112[rbp]
	mov	rdi, rax
	call	strdup@PLT
	jmp	.L17
.L14:
	mov	rax, QWORD PTR dent[rip]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR path[rip]
	mov	rsi, QWORD PTR -4280[rbp]
	lea	rax, -4112[rbp]
	mov	r8, rsi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -4256[rbp]
	lea	rax, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L15
	mov	eax, 0
	jmp	.L17
.L15:
	lea	rax, -4112[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4272[rbp], rax
	cmp	QWORD PTR -4272[rbp], 0
	jne	.L16
	mov	eax, 0
	jmp	.L17
.L16:
	mov	rax, QWORD PTR -4208[rbp]
	add	rax, 1
	mov	rsi, rax
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -4264[rbp], rax
	mov	rax, QWORD PTR -4208[rbp]
	mov	rsi, rax
	mov	rdx, QWORD PTR -4272[rbp]
	mov	rax, QWORD PTR -4264[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -4272[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -4264[rbp]
.L17:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	svcattrib, .-svcattrib
	.globl	addtobuffer
	.type	addtobuffer, @function
addtobuffer:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L20
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, 4096
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	BYTE PTR [rax], 0
	jmp	.L21
.L20:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	cmp	rdx, rax
	jbe	.L21
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ebx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, ebx
	add	eax, 4096
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
.L21:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	addtobuffer, .-addtobuffer
	.section	.rodata
.LC4:
	.string	"client_"
.LC5:
	.string	"[%s]\n"
.LC6:
	.string	""
	.text
	.globl	clientdata
	.type	clientdata, @function
clientdata:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 224
	mov	QWORD PTR -8408[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -8384[rbp], 0
	mov	DWORD PTR -8392[rbp], 0
	mov	rax, QWORD PTR -8408[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -8376[rbp], rax
	jmp	.L23
.L29:
	mov	rax, QWORD PTR -8368[rbp]
	add	rax, 19
	mov	edx, 7
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L24
	jmp	.L23
.L24:
	mov	rax, QWORD PTR -8368[rbp]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR -8408[rbp]
	lea	rax, -8208[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -8352[rbp]
	lea	rax, -8208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L25
	jmp	.L23
.L25:
	lea	rax, -8208[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8360[rbp], rax
	cmp	QWORD PTR -8360[rbp], 0
	jne	.L26
	jmp	.L23
.L26:
	mov	rax, QWORD PTR -8368[rbp]
	add	rax, 19
	lea	rdx, 7[rax]
	lea	rax, -4112[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -4112[rbp]
	lea	rcx, -8392[rbp]
	lea	rax, -8384[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	addtobuffer
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -8388[rbp]
	cdqe
	lea	rdx, -4112[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rdx, -4112[rbp]
	lea	rcx, -8392[rbp]
	lea	rax, -8384[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	addtobuffer
.L27:
	mov	rdx, QWORD PTR -8360[rbp]
	lea	rax, -4112[rbp]
	mov	rcx, rdx
	mov	edx, 4095
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -8388[rbp], eax
	cmp	DWORD PTR -8388[rbp], 0
	jg	.L28
	mov	rax, QWORD PTR -8360[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L23:
	mov	rax, QWORD PTR -8376[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -8368[rbp], rax
	cmp	QWORD PTR -8368[rbp], 0
	jne	.L29
	mov	rax, QWORD PTR -8376[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	rax, QWORD PTR -8384[rbp]
	test	rax, rax
	jne	.L30
	lea	rdi, .LC6[rip]
	call	strdup@PLT
	mov	QWORD PTR -8384[rbp], rax
.L30:
	mov	rax, QWORD PTR -8384[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	clientdata, .-clientdata
	.globl	timeafter
	.type	timeafter, @function
timeafter:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rdx, rax
	jle	.L34
	mov	eax, 1
	jmp	.L35
.L34:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rdx, rax
	jge	.L36
	mov	eax, 0
	jmp	.L35
.L36:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	setge	al
	movzx	eax, al
.L35:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	timeafter, .-timeafter
	.section	.rodata
.LC7:
	.string	"listen"
.LC8:
	.string	"response"
.LC9:
	.string	"delay"
	.text
	.globl	setuplisteners
	.type	setuplisteners, @function
setuplisteners:
.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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR nethead[rip]
	mov	QWORD PTR -80[rbp], rax
	jmp	.L38
.L41:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L39
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
.L39:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L40
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
.L40:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
.L38:
	cmp	QWORD PTR -80[rbp], 0
	jne	.L41
	mov	QWORD PTR nethead[rip], 0
	mov	rax, QWORD PTR CONFIGDIR[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	nextservice
	mov	QWORD PTR -72[rbp], rax
	jmp	.L42
.L49:
	mov	QWORD PTR -64[rbp], 0
	mov	DWORD PTR -88[rbp], -1
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, 58
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L43
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR [rax], 0
	add	QWORD PTR -56[rbp], 1
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -88[rbp], eax
.L43:
	cmp	QWORD PTR -64[rbp], 0
	je	.L44
	cmp	DWORD PTR -88[rbp], 0
	jle	.L44
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -32[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	inet_aton@PLT
	mov	eax, DWORD PTR -88[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	WORD PTR -32[rbp], 2
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], -1
	je	.L44
	mov	DWORD PTR -92[rbp], 1
	lea	rdx, -92[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	eax, DWORD PTR -84[rbp]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	je	.L44
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	je	.L44
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -84[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC8[rip]
	call	svcattrib
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L45
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	jmp	.L46
.L45:
	mov	edx, 0
.L46:
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 16[rax], edx
	lea	rdi, .LC9[rip]
	call	svcattrib
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L47
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	atoi@PLT
	jmp	.L48
.L47:
	mov	eax, 0
.L48:
	mov	rdx, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rdx], eax
	mov	rdx, QWORD PTR nethead[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR nethead[rip], rax
.L44:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rsi, .LC7[rip]
	mov	edi, 0
	call	nextservice
	mov	QWORD PTR -72[rbp], rax
.L42:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L49
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	setuplisteners, .-setuplisteners
	.section	.rodata
.LC10:
	.string	"client"
.LC11:
	.string	"uptime"
.LC12:
	.string	"minload"
.LC14:
	.string	"maxload"
	.text
	.globl	setupclients
	.type	setupclients, @function
setupclients:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	rax, QWORD PTR clihead[rip]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L52
.L56:
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L53
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
.L53:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L54
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	free@PLT
.L54:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	je	.L55
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rdi, rax
	call	free@PLT
.L55:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
.L52:
	cmp	QWORD PTR -56[rbp], 0
	jne	.L56
	mov	QWORD PTR clihead[rip], 0
	mov	rax, QWORD PTR CONFIGDIR[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	nextservice
	mov	QWORD PTR -48[rbp], rax
	jmp	.L57
.L67:
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 58
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L58
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L59
.L60:
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], 44
.L59:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, 46
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L60
	lea	rdi, .LC11[rip]
	call	svcattrib
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L61
	mov	edi, 0
	call	time@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	atoi@PLT
	imul	eax, eax, 60
	cdqe
	sub	rbx, rax
	mov	rdx, rbx
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 24[rax], rdx
	jmp	.L62
.L61:
	mov	edi, 0
	call	time@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 24[rdx], rax
.L62:
	lea	rdi, .LC12[rip]
	call	svcattrib
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L63
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 32[rdx], rax
	jmp	.L64
.L63:
	mov	rax, QWORD PTR -32[rbp]
	movsd	xmm0, QWORD PTR .LC13[rip]
	movsd	QWORD PTR 32[rax], xmm0
.L64:
	lea	rdi, .LC14[rip]
	call	svcattrib
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L65
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 40[rdx], rax
	jmp	.L66
.L65:
	mov	rax, QWORD PTR -32[rbp]
	movsd	xmm0, QWORD PTR .LC15[rip]
	movsd	QWORD PTR 40[rax], xmm0
.L66:
	mov	edi, 0
	call	svcattrib
	mov	rdi, rax
	call	clientdata
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 48[rdx], rax
	mov	rdx, QWORD PTR clihead[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR clihead[rip], rax
.L58:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rsi, .LC10[rip]
	mov	edi, 0
	call	nextservice
	mov	QWORD PTR -48[rbp], rax
.L57:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L67
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	setupclients, .-setupclients
	.globl	do_select
	.type	do_select, @function
do_select:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 408
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdx, -4440[rbp]
	lea	rax, -4416[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gettimeofday@PLT
.L77:
	lea	rdx, -4440[rbp]
	lea	rax, -4432[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -4384[rbp]
	mov	rdi, rdx
#APP
# 315 "the_stack_data/111078150.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -4500[rbp], edx
	mov	DWORD PTR -4496[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -4256[rbp]
	mov	rdi, rdx
#APP
# 315 "the_stack_data/111078150.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -4492[rbp], edx
	mov	DWORD PTR -4488[rbp], eax
	mov	DWORD PTR -4508[rbp], -1
	mov	rax, QWORD PTR nethead[rip]
	mov	QWORD PTR -4480[rbp], rax
	jmp	.L69
.L71:
	mov	rax, QWORD PTR -4480[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L70
	mov	rax, QWORD PTR -4480[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -4384[rbp+rax*8]
	mov	rax, QWORD PTR -4480[rbp]
	mov	eax, DWORD PTR [rax]
	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 -4384[rbp+rax*8], rdx
	mov	rax, QWORD PTR -4480[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4508[rbp], eax
	jge	.L70
	mov	rax, QWORD PTR -4480[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4508[rbp], eax
.L70:
	mov	rax, QWORD PTR -4480[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -4480[rbp], rax
.L69:
	cmp	QWORD PTR -4480[rbp], 0
	jne	.L71
	mov	rax, QWORD PTR acthead[rip]
	mov	QWORD PTR -4472[rbp], rax
	jmp	.L72
.L75:
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L73
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR 48[rax]
	test	eax, eax
	jne	.L74
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -4384[rbp+rax*8]
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	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 -4384[rbp+rax*8], rdx
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4508[rbp], eax
	jge	.L74
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4508[rbp], eax
.L74:
	mov	rax, QWORD PTR -4472[rbp]
	lea	rdx, 16[rax]
	lea	rax, -4432[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	timeafter
	test	eax, eax
	je	.L73
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -4256[rbp+rax*8]
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	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 -4256[rbp+rax*8], rdx
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4508[rbp], eax
	jge	.L73
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4508[rbp], eax
.L73:
	mov	rax, QWORD PTR -4472[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -4472[rbp], rax
.L72:
	cmp	QWORD PTR -4472[rbp], 0
	jne	.L75
	mov	QWORD PTR -4400[rbp], 0
	mov	QWORD PTR -4392[rbp], 100000
	mov	eax, DWORD PTR -4508[rbp]
	lea	edi, 1[rax]
	lea	rcx, -4400[rbp]
	lea	rdx, -4256[rbp]
	lea	rax, -4384[rbp]
	mov	r8, rcx
	mov	ecx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -4504[rbp], eax
	cmp	DWORD PTR -4504[rbp], 0
	jne	.L76
	mov	rax, QWORD PTR -4432[rbp]
	mov	rdx, QWORD PTR -4416[rbp]
	sub	rax, rdx
	cmp	rax, 9
	jle	.L77
.L76:
	cmp	DWORD PTR -4504[rbp], 0
	jle	.L101
	lea	rdx, -4440[rbp]
	lea	rax, -4432[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR acthead[rip]
	mov	QWORD PTR -4472[rbp], rax
	mov	QWORD PTR -4464[rbp], 0
	jmp	.L80
.L91:
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L81
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR 48[rax]
	test	eax, eax
	jne	.L81
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -4384[rbp+rax*8]
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	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	.L81
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	lea	rcx, -4128[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -4504[rbp], eax
	cmp	DWORD PTR -4504[rbp], 0
	jg	.L81
	mov	rax, QWORD PTR -4472[rbp]
	mov	DWORD PTR 48[rax], 1
.L81:
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L82
	mov	rax, QWORD PTR -4472[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L82
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -4256[rbp+rax*8]
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	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	.L82
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR 52[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -4472[rbp]
	mov	rcx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4504[rbp], eax
	cmp	DWORD PTR -4504[rbp], 0
	jle	.L84
	mov	rax, QWORD PTR -4472[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	eax, DWORD PTR -4504[rbp]
	cdqe
	add	rdx, rax
	mov	rax, QWORD PTR -4472[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR 52[rax]
	sub	eax, DWORD PTR -4504[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -4472[rbp]
	mov	DWORD PTR 52[rax], edx
	jmp	.L84
.L82:
	mov	DWORD PTR -4504[rbp], 0
.L84:
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR 52[rax]
	test	eax, eax
	je	.L85
	cmp	DWORD PTR -4504[rbp], 0
	jns	.L86
.L85:
	mov	rax, QWORD PTR -4472[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L87
	mov	rax, QWORD PTR -4472[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	free@PLT
.L87:
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -4472[rbp]
	mov	DWORD PTR [rax], 0
.L86:
	mov	rax, QWORD PTR -4472[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L88
	mov	rax, QWORD PTR -4472[rbp]
	mov	QWORD PTR -4464[rbp], rax
	mov	rax, QWORD PTR -4472[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -4472[rbp], rax
	jmp	.L80
.L88:
	mov	rax, QWORD PTR -4472[rbp]
	mov	QWORD PTR -4448[rbp], rax
	mov	rax, QWORD PTR -4472[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -4472[rbp], rax
	cmp	QWORD PTR -4464[rbp], 0
	je	.L89
	mov	rax, QWORD PTR -4464[rbp]
	mov	rdx, QWORD PTR -4472[rbp]
	mov	QWORD PTR 56[rax], rdx
	jmp	.L90
.L89:
	mov	rax, QWORD PTR -4472[rbp]
	mov	QWORD PTR acthead[rip], rax
.L90:
	mov	rax, QWORD PTR -4448[rbp]
	mov	rdi, rax
	call	free@PLT
.L80:
	cmp	QWORD PTR -4472[rbp], 0
	jne	.L91
	mov	rax, QWORD PTR nethead[rip]
	mov	QWORD PTR -4480[rbp], rax
	jmp	.L92
.L99:
	mov	rax, QWORD PTR -4480[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L93
	mov	rax, QWORD PTR -4480[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -4384[rbp+rax*8]
	mov	rax, QWORD PTR -4480[rbp]
	mov	eax, DWORD PTR [rax]
	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	.L93
	jmp	.L94
.L98:
	mov	eax, DWORD PTR -4484[rbp]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -4456[rbp], rax
	mov	rax, QWORD PTR -4456[rbp]
	mov	edx, DWORD PTR -4484[rbp]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR -4432[rbp]
	mov	rax, QWORD PTR -4480[rbp]
	mov	eax, DWORD PTR 4[rax]
	cdqe
	add	rdx, rax
	mov	rax, QWORD PTR -4456[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rbx, QWORD PTR -4424[rbp]
	call	random@PLT
	mov	rcx, rax
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000000
	mov	rax, rcx
	sub	rax, rdx
	lea	rdx, [rbx+rax]
	mov	rax, QWORD PTR -4456[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -4456[rbp]
	mov	rax, QWORD PTR 24[rax]
	cmp	rax, 1000000
	jle	.L95
	mov	rax, QWORD PTR -4456[rbp]
	mov	rax, QWORD PTR 24[rax]
	lea	rdx, -1000000[rax]
	mov	rax, QWORD PTR -4456[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -4456[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -4456[rbp]
	mov	QWORD PTR 16[rax], rdx
.L95:
	mov	rax, QWORD PTR -4456[rbp]
	mov	rdx, QWORD PTR -4480[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -4480[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L96
	mov	rax, QWORD PTR -4480[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -4456[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -4456[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -4456[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -4480[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -4456[rbp]
	mov	DWORD PTR 52[rax], edx
	jmp	.L97
.L96:
	mov	rax, QWORD PTR -4456[rbp]
	mov	QWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -4456[rbp]
	mov	QWORD PTR 40[rax], 0
	mov	rax, QWORD PTR -4456[rbp]
	mov	DWORD PTR 52[rax], 0
.L97:
	mov	rax, QWORD PTR -4456[rbp]
	mov	DWORD PTR 48[rax], 0
	mov	rdx, QWORD PTR acthead[rip]
	mov	rax, QWORD PTR -4456[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	rax, QWORD PTR -4456[rbp]
	mov	QWORD PTR acthead[rip], rax
.L94:
	mov	rax, QWORD PTR -4480[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -4484[rbp], eax
	cmp	DWORD PTR -4484[rbp], 0
	jg	.L98
.L93:
	mov	rax, QWORD PTR -4480[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -4480[rbp], rax
.L92:
	cmp	QWORD PTR -4480[rbp], 0
	jne	.L99
	jmp	.L68
.L101:
	nop
.L68:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L100
	call	__stack_chk_fail@PLT
.L100:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	do_select, .-do_select
	.section	.rodata
	.align 8
.LC17:
	.string	"client %s.%s\n[date]\n%s[uptime]\n %02d:%02d:%02d up %d days, %d:%02d, 1 users, load average: 0.21, %5.2f, 0.25\n\n%s\n"
	.text
	.globl	do_clients
	.type	do_clients, @function
do_clients:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 96
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR clihead[rip]
	mov	QWORD PTR -80[rbp], rax
	jmp	.L103
.L105:
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -80[rbp], rax
.L103:
	cmp	QWORD PTR -80[rbp], 0
	je	.L104
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 59[rax]
	mov	rax, QWORD PTR -88[rbp]
	cmp	rdx, rax
	jge	.L105
.L104:
	cmp	QWORD PTR -80[rbp], 0
	je	.L112
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR [rax], rdx
	lea	rax, -88[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, rdx
	sub	rax, rcx
	mov	QWORD PTR -64[rbp], rax
	mov	rcx, QWORD PTR -64[rbp]
	movabs	rdx, 1749024623285053783
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 13
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	DWORD PTR -104[rbp], eax
	mov	rsi, QWORD PTR -64[rbp]
	movabs	rdx, 1749024623285053783
	mov	rax, rsi
	imul	rdx
	mov	rax, rdx
	sar	rax, 13
	mov	rdx, rsi
	sar	rdx, 63
	sub	rax, rdx
	mov	rcx, rax
	imul	rax, rcx, 86400
	sub	rsi, rax
	mov	rcx, rsi
	movabs	rdx, 5247073869855161349
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 10
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	DWORD PTR -100[rbp], eax
	mov	rsi, QWORD PTR -64[rbp]
	movabs	rdx, 5247073869855161349
	mov	rax, rsi
	imul	rdx
	mov	rax, rdx
	sar	rax, 10
	mov	rdx, rsi
	sar	rdx, 63
	sub	rax, rdx
	mov	rcx, rax
	imul	rax, rcx, 3600
	sub	rsi, rax
	mov	rcx, rsi
	movabs	rdx, -8608480567731124087
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 5
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	DWORD PTR -96[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	movsd	xmm3, QWORD PTR 32[rax]
	movsd	QWORD PTR -120[rbp], xmm3
	call	random@PLT
	mov	rcx, rax
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000
	mov	rax, rcx
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC16[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	mov	rax, QWORD PTR -80[rbp]
	movsd	xmm0, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -80[rbp]
	movsd	xmm2, QWORD PTR 32[rax]
	subsd	xmm0, xmm2
	mulsd	xmm0, xmm1
	addsd	xmm0, QWORD PTR -120[rbp]
	movsd	QWORD PTR -56[rbp], xmm0
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 4096
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -80[rbp]
	mov	r13, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	r12d, DWORD PTR [rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	ebx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	r14d, DWORD PTR 8[rax]
	lea	rax, -88[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	r8, rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rcx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rsi, QWORD PTR -56[rbp]
	push	r13
	mov	edi, DWORD PTR -96[rbp]
	push	rdi
	mov	edi, DWORD PTR -100[rbp]
	push	rdi
	mov	edi, DWORD PTR -104[rbp]
	push	rdi
	push	r12
	push	rbx
	movq	xmm0, rsi
	mov	r9d, r14d
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 1
	call	sprintf@PLT
	add	rsp, 48
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 52[rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 48[rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, 16
	lea	rsi, srvaddr[rip]
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	je	.L108
	cmp	DWORD PTR -92[rbp], -1
	jne	.L109
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 115
	jne	.L109
.L108:
	mov	rdx, QWORD PTR acthead[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR acthead[rip], rax
	jmp	.L102
.L109:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L102
.L112:
	nop
.L102:
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L111
	call	__stack_chk_fail@PLT
.L111:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	do_clients, .-do_clients
	.globl	sigmisc_handler
	.type	sigmisc_handler, @function
sigmisc_handler:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 1
	jne	.L115
	mov	DWORD PTR reconfig[rip], 1
.L115:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	sigmisc_handler, .-sigmisc_handler
	.section	.rodata
.LC18:
	.string	"127.0.0.1"
.LC19:
	.string	"--confdir="
.LC20:
	.string	"--srvip="
.LC21:
	.string	"(Re)loading config"
	.text
	.globl	main
	.type	main, @function
main:
.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, 208
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -184[rbp], 0
	mov	edx, 16
	mov	esi, 0
	lea	rdi, srvaddr[rip]
	call	memset@PLT
	mov	edi, 1984
	call	htons@PLT
	mov	WORD PTR srvaddr[rip+2], ax
	mov	WORD PTR srvaddr[rip], 2
	lea	rsi, srvaddr[rip+4]
	lea	rdi, .LC18[rip]
	call	inet_aton@PLT
	mov	DWORD PTR -188[rbp], 1
	jmp	.L117
.L120:
	mov	eax, DWORD PTR -188[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L118
	mov	eax, DWORD PTR -188[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 61
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 1
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR CONFIGDIR[rip], rax
	jmp	.L119
.L118:
	mov	eax, DWORD PTR -188[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 8
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L119
	mov	eax, DWORD PTR -188[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 61
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 1
	lea	rsi, srvaddr[rip+4]
	mov	rdi, rax
	call	inet_aton@PLT
.L119:
	add	DWORD PTR -188[rbp], 1
.L117:
	mov	eax, DWORD PTR -188[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jl	.L120
	lea	rax, -160[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, sigmisc_handler[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	sigaction@PLT
.L123:
	mov	eax, DWORD PTR reconfig[rip]
	test	eax, eax
	jne	.L121
	mov	edi, 0
	call	time@PLT
	mov	rdx, QWORD PTR -184[rbp]
	add	rdx, 60
	cmp	rax, rdx
	jle	.L122
.L121:
	lea	rdi, .LC21[rip]
	call	puts@PLT
	call	setuplisteners
	call	setupclients
	mov	DWORD PTR reconfig[rip], 0
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -184[rbp], rax
.L122:
	call	do_clients
	call	do_select
	jmp	.L123
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC13:
	.long	-1717986918
	.long	1070176665
	.align 8
.LC15:
	.long	0
	.long	1072693248
	.align 8
.LC16:
	.long	0
	.long	1083129856
	.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	"111078150.c"
	.text
	.data
	.align	2
	.type	rcsid, %object
	.size	rcsid, 5
rcsid:
	.ascii	"$Id$\000"
	.global	CONFIGDIR
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/etc/hdemo\000"
	.data
	.align	2
	.type	CONFIGDIR, %object
	.size	CONFIGDIR, 4
CONFIGDIR:
	.word	.LC0
	.comm	srvaddr,16,4
	.global	reconfig
	.align	2
	.type	reconfig, %object
	.size	reconfig, 4
reconfig:
	.word	1
	.global	nethead
	.bss
	.align	2
	.type	nethead, %object
	.size	nethead, 4
nethead:
	.space	4
	.global	acthead
	.align	2
	.type	acthead, %object
	.size	acthead, 4
acthead:
	.space	4
	.global	clihead
	.align	2
	.type	clihead, %object
	.size	clihead, 4
clihead:
	.space	4
	.local	confdir
	.comm	confdir,4,4
	.global	dent
	.align	2
	.type	dent, %object
	.size	dent, 4
dent:
	.space	4
	.local	path
	.comm	path,4,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%s/%s/%s\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	nextservice
	.syntax unified
	.arm
	.fpu softvfp
	.type	nextservice, %function
nextservice:
	@ args = 0, pretend = 0, frame = 4208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4160
	sub	sp, sp, #60
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-108]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-112]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L11+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	closedir
.L3:
	ldr	r3, .L11+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L11+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-108]
	bl	opendir
	mov	r3, r0
	ldr	r2, .L11+4
	str	r3, [r2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-108]
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L11+8
	str	r2, [r3]
.L6:
	ldr	r3, .L11+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	readdir
	mov	r3, r0
	ldr	r2, .L11+12
	str	r3, [r2]
	ldr	r3, .L11+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L11+12
	ldr	r3, [r3]
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L6
.L5:
	ldr	r3, .L11+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L11+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	closedir
	ldr	r3, .L11+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L11+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L11+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L11+12
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	b	.L9
.L7:
	ldr	r3, .L11+8
	ldr	r2, [r3]
	ldr	r3, .L11+12
	ldr	r3, [r3]
	add	r1, r3, #11
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L11+16
	bl	sprintf
	sub	r2, fp, #4160
	sub	r2, r2, #12
	sub	r2, r2, #32
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	beq	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L11+20
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-104]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmp	r3, #0
	beq	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	add	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, r2
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-100]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	ldr	r3, [r3, #-104]
	mov	r2, r1
	mov	r1, #1
	ldr	r0, [r0, #-100]
	bl	fread
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-104]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	confdir
	.word	path
	.word	dent
	.word	.LC1
	.word	.LC2
	.size	nextservice, .-nextservice
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%s/%s\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	svcattrib
	.syntax unified
	.arm
	.fpu softvfp
	.type	svcattrib, %function
svcattrib:
	@ args = 0, pretend = 0, frame = 4208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4160
	sub	sp, sp, #60
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-108]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L21+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	mov	r3, #0
	b	.L19
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L21+8
	ldr	r2, [r3]
	ldr	r3, .L21+4
	ldr	r3, [r3]
	add	r3, r3, #11
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r1, .L21+12
	bl	sprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	b	.L19
.L16:
	ldr	r3, .L21+8
	ldr	r2, [r3]
	ldr	r3, .L21+4
	ldr	r3, [r3]
	add	r1, r3, #11
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L21+16
	bl	sprintf
	sub	r2, fp, #4160
	sub	r2, r2, #12
	sub	r2, r2, #32
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L17
	mov	r3, #0
	b	.L19
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L21+20
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-104]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmp	r3, #0
	bne	.L18
	mov	r3, #0
	b	.L19
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	add	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r1, r2
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [r4, #-100]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	ldr	r3, [r3, #-104]
	mov	r2, r1
	mov	r1, #1
	ldr	r0, [r0, #-100]
	bl	fread
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-104]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
.L19:
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC5
	.word	dent
	.word	path
	.word	.LC4
	.word	.LC1
	.word	.LC2
	.size	svcattrib, .-svcattrib
	.align	2
	.global	addtobuffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	addtobuffer, %function
addtobuffer:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #4096
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, #0
	strb	r2, [r3]
	b	.L25
.L24:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	ldr	r2, [r2]
	cmp	r3, r2
	bls	.L25
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r4, r3
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #4096
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L25:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strcat
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	addtobuffer, .-addtobuffer
	.section	.rodata
	.align	2
.LC6:
	.ascii	"client_\000"
	.align	2
.LC7:
	.ascii	"[%s]\012\000"
	.align	2
.LC8:
	.ascii	"\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	clientdata
	.syntax unified
	.arm
	.fpu softvfp
	.type	clientdata, %function
clientdata:
	@ args = 0, pretend = 0, frame = 8320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8320
	sub	sp, sp, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-124]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-120]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-116]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-124]
	bl	opendir
	str	r0, [r4, #-112]
	b	.L27
.L33:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	add	r3, r3, #11
	mov	r2, #7
	ldr	r1, .L37+4
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	b	.L27
.L28:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	add	r3, r3, #11
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r2, [r2, #-124]
	ldr	r1, .L37+8
	bl	sprintf
	sub	r2, fp, #8256
	sub	r2, r2, #12
	sub	r2, r2, #32
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L29
	b	.L27
.L29:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L37+12
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-104]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmp	r3, #0
	bne	.L30
	b	.L27
.L30:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	add	r3, r3, #11
	add	r2, r3, #7
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L37+16
	mov	r0, r3
	bl	sprintf
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r1, fp, #8256
	sub	r1, r1, #12
	sub	r1, r1, #52
	sub	r3, fp, #8256
	sub	r3, r3, #12
	sub	r3, r3, #56
	mov	r0, r3
	bl	addtobuffer
	b	.L31
.L32:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-100]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r1, fp, #8256
	sub	r1, r1, #12
	sub	r1, r1, #52
	sub	r3, fp, #8256
	sub	r3, r3, #12
	sub	r3, r3, #56
	mov	r0, r3
	bl	addtobuffer
.L31:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-104]
	ldr	r2, .L37+20
	mov	r1, #1
	bl	fread
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-100]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	cmp	r3, #0
	bgt	.L32
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-104]
	bl	fclose
.L27:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-112]
	bl	readdir
	str	r0, [r4, #-108]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	cmp	r3, #0
	bne	.L33
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-112]
	bl	closedir
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	cmp	r3, #0
	bne	.L34
	ldr	r0, .L37+24
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r2, [r3, #-120]
.L34:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC9
	.word	.LC6
	.word	.LC4
	.word	.LC2
	.word	.LC7
	.word	4095
	.word	.LC8
	.size	clientdata, .-clientdata
	.align	2
	.global	timeafter
	.syntax unified
	.arm
	.fpu softvfp
	.type	timeafter, %function
timeafter:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L40
	mov	r3, #1
	b	.L41
.L40:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L42
	mov	r3, #0
	b	.L41
.L42:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	movge	r3, #1
	movlt	r3, #0
	and	r3, r3, #255
.L41:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	timeafter, .-timeafter
	.section	.rodata
	.align	2
.LC10:
	.ascii	"listen\000"
	.align	2
.LC11:
	.ascii	"response\000"
	.align	2
.LC12:
	.ascii	"delay\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	setuplisteners
	.syntax unified
	.arm
	.fpu softvfp
	.type	setuplisteners, %function
setuplisteners:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L57+4
	ldr	r3, [r3]
	str	r3, [fp, #-56]
	b	.L44
.L47:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L45
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
.L45:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
.L46:
	ldr	r0, [fp, #-28]
	bl	free
.L44:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L47
	ldr	r3, .L57+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L57+8
	ldr	r3, [r3]
	ldr	r1, .L57+12
	mov	r0, r3
	bl	nextservice
	str	r0, [fp, #-52]
	b	.L48
.L55:
	mov	r3, #0
	str	r3, [fp, #-48]
	mvn	r3, #0
	str	r3, [fp, #-44]
	mov	r1, #58
	ldr	r0, [fp, #-52]
	bl	strchr
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-40]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r0, [fp, #-40]
	bl	atoi
	str	r0, [fp, #-44]
.L49:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	ble	.L50
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #24
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	inet_aton
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	beq	.L50
	mov	r3, #1
	str	r3, [fp, #-60]
	sub	r3, fp, #60
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-36]
	bl	setsockopt
	mov	r2, #2048
	mov	r1, #4
	ldr	r0, [fp, #-36]
	bl	fcntl
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	beq	.L50
	mov	r1, #10
	ldr	r0, [fp, #-36]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	beq	.L50
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	str	r2, [r3]
	ldr	r0, .L57+16
	bl	svcattrib
	mov	r2, r0
	ldr	r3, [fp, #-32]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	b	.L52
.L51:
	mov	r2, #0
.L52:
	ldr	r3, [fp, #-32]
	str	r2, [r3, #12]
	ldr	r0, .L57+20
	bl	svcattrib
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L53
	ldr	r0, [fp, #-40]
	bl	atoi
	mov	r3, r0
	b	.L54
.L53:
	mov	r3, #0
.L54:
	ldr	r2, [fp, #-32]
	str	r3, [r2, #4]
	ldr	r3, .L57+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
	ldr	r2, .L57+4
	ldr	r3, [fp, #-32]
	str	r3, [r2]
.L50:
	ldr	r0, [fp, #-52]
	bl	free
	ldr	r1, .L57+12
	mov	r0, #0
	bl	nextservice
	str	r0, [fp, #-52]
.L48:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L55
	nop
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC13
	.word	nethead
	.word	CONFIGDIR
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	setuplisteners, .-setuplisteners
	.section	.rodata
	.align	2
.LC14:
	.ascii	"client\000"
	.align	2
.LC15:
	.ascii	"uptime\000"
	.align	2
.LC16:
	.ascii	"minload\000"
	.align	2
.LC17:
	.ascii	"maxload\000"
	.text
	.align	2
	.global	setupclients
	.syntax unified
	.arm
	.fpu softvfp
	.type	setupclients, %function
setupclients:
	@ 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, .L76
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	b	.L60
.L64:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L61
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
.L61:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L62
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
.L62:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	cmp	r3, #0
	beq	.L63
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	mov	r0, r3
	bl	free
.L63:
	ldr	r0, [fp, #-16]
	bl	free
.L60:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L64
	ldr	r3, .L76
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L76+4
	ldr	r3, [r3]
	ldr	r1, .L76+8
	mov	r0, r3
	bl	nextservice
	str	r0, [fp, #-28]
	b	.L65
.L75:
	mov	r1, #58
	ldr	r0, [fp, #-28]
	bl	strchr
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L66
	mov	r0, #40
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-28]
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #8]
	b	.L67
.L68:
	ldr	r3, [fp, #-24]
	mov	r2, #44
	strb	r2, [r3]
.L67:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	mov	r1, #46
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L68
	ldr	r0, .L76+12
	bl	svcattrib
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L69
	mov	r0, #0
	bl	time
	mov	r4, r0
	ldr	r0, [fp, #-24]
	bl	atoi
	mov	r2, r0
	mov	r3, r2
	lsl	r2, r2, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r4, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #12]
	b	.L70
.L69:
	mov	r0, #0
	bl	time
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3, #12]
.L70:
	ldr	r0, .L76+16
	bl	svcattrib
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L71
	ldr	r0, [fp, #-24]
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-20]
	str	r2, [r1, #16]
	str	r3, [r1, #20]
	b	.L72
.L71:
	ldr	r1, [fp, #-20]
	ldr	r2, .L76+20
	ldr	r3, .L76+24
	str	r2, [r1, #16]
	str	r3, [r1, #20]
.L72:
	ldr	r0, .L76+28
	bl	svcattrib
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L73
	ldr	r0, [fp, #-24]
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-20]
	str	r2, [r1, #24]
	str	r3, [r1, #28]
	b	.L74
.L73:
	ldr	r1, [fp, #-20]
	mov	r2, #0
	ldr	r3, .L76+32
	str	r2, [r1, #24]
	str	r3, [r1, #28]
.L74:
	mov	r0, #0
	bl	svcattrib
	mov	r3, r0
	mov	r0, r3
	bl	clientdata
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3, #32]
	ldr	r3, .L76
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #36]
	ldr	r2, .L76
	ldr	r3, [fp, #-20]
	str	r3, [r2]
.L66:
	ldr	r0, [fp, #-28]
	bl	free
	ldr	r1, .L76+8
	mov	r0, #0
	bl	nextservice
	str	r0, [fp, #-28]
.L65:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L75
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L77:
	.align	2
.L76:
	.word	clihead
	.word	CONFIGDIR
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	-1717986918
	.word	1070176665
	.word	.LC17
	.word	1072693248
	.size	setupclients, .-setupclients
	.section	.rodata
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_select
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_select, %function
do_select:
	@ args = 0, pretend = 0, frame = 4440
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4416
	sub	sp, sp, #36
	ldr	r3, .L116
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r2, fp, #4352
	sub	r2, r2, #12
	sub	r2, r2, #20
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #28
	mov	r1, r2
	mov	r0, r3
	bl	gettimeofday
.L91:
	sub	r2, fp, #4352
	sub	r2, r2, #12
	sub	r2, r2, #20
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r1, r2
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-312]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-320]
	b	.L79
.L80:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-312]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-320]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-320]
	add	r3, r3, #1
	str	r3, [r2, #-320]
.L79:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-320]
	cmp	r3, #31
	bls	.L80
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-308]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-316]
	b	.L81
.L82:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-308]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-316]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-316]
	add	r3, r3, #1
	str	r3, [r2, #-316]
.L81:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-316]
	cmp	r3, #31
	bls	.L82
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-340]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L116+4
	ldr	r3, [r3]
	str	r3, [r2, #-332]
	b	.L83
.L85:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L84
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-260]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	ldr	r3, [r3]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-260]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-340]
	cmp	r2, r3
	bge	.L84
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	ldr	r3, [r3]
	str	r3, [r2, #-340]
.L84:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	ldr	r3, [r3, #16]
	str	r3, [r2, #-332]
.L83:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	cmp	r3, #0
	bne	.L85
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L116+8
	ldr	r3, [r3]
	str	r3, [r2, #-328]
	b	.L86
.L89:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L87
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L88
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-260]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-260]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-340]
	cmp	r2, r3
	bge	.L88
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	str	r3, [r2, #-340]
.L88:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	add	r2, r3, #8
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r1, r3
	mov	r0, r2
	bl	timeafter
	mov	r3, r0
	cmp	r3, #0
	beq	.L87
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-132]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-340]
	cmp	r2, r3
	bge	.L87
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	str	r3, [r2, #-340]
.L87:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3, #32]
	str	r3, [r2, #-328]
.L86:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	cmp	r3, #0
	bne	.L89
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-268]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L116+12
	str	r3, [r2, #-264]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-340]
	add	r0, r3, #1
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #4224
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r1, fp, #4352
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #0
	bl	select
	str	r0, [r4, #-336]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	cmp	r3, #0
	bne	.L90
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-292]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-284]
	sub	r3, r2, r3
	cmp	r3, #9
	ble	.L91
.L90:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	cmp	r3, #0
	ble	.L115
	sub	r2, fp, #4352
	sub	r2, r2, #12
	sub	r2, r2, #20
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r1, r2
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L116+8
	ldr	r3, [r3]
	str	r3, [r2, #-328]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-324]
	b	.L94
.L105:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L95
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L95
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-260]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	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	.L95
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r1, r3
	bl	read
	str	r0, [r4, #-336]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	cmp	r3, #0
	bgt	.L95
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	mov	r2, #1
	str	r2, [r3, #24]
.L95:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L96
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L96
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	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	.L96
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r1, [r3, #20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3, #28]
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	bl	write
	str	r0, [r4, #-336]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	cmp	r3, #0
	ble	.L98
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r2, [r3, #20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	add	r2, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	str	r2, [r3, #20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r2, [r3, #28]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	sub	r2, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	str	r2, [r3, #28]
	b	.L98
.L96:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-336]
.L98:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L99
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	cmp	r3, #0
	bge	.L100
.L99:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L101
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	free
.L101:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	mov	r2, #0
	str	r2, [r3]
.L100:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L102
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	str	r3, [r2, #-324]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3, #32]
	str	r3, [r2, #-328]
	b	.L94
.L102:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	str	r3, [r2, #-296]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	ldr	r3, [r3, #32]
	str	r3, [r2, #-328]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	cmp	r3, #0
	beq	.L103
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-328]
	str	r2, [r3, #32]
	b	.L104
.L103:
	ldr	r2, .L116+8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	str	r3, [r2]
.L104:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-296]
	bl	free
.L94:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	cmp	r3, #0
	bne	.L105
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L116+4
	ldr	r3, [r3]
	str	r3, [r2, #-332]
	b	.L106
.L113:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L107
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-260]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	ldr	r3, [r3]
	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	.L107
	b	.L108
.L112:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #2048
	mov	r1, #4
	ldr	r0, [r3, #-304]
	bl	fcntl
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #36
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-300]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-304]
	str	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-292]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	ldr	r3, [r3, #4]
	add	r2, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	str	r2, [r3, #8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r4, [r3, #-288]
	bl	random
	ldr	r3, .L116+16
	smull	r2, r3, r0, r3
	asr	r2, r3, #18
	asr	r3, r0, #31
	sub	r1, r2, r3
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	sub	r1, r0, r3
	add	r2, r4, r1
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	str	r2, [r3, #12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	ldr	r3, [r3, #12]
	ldr	r2, .L116+20
	cmp	r3, r2
	ble	.L109
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	ldr	r3, [r3, #12]
	sub	r3, r3, #999424
	sub	r3, r3, #576
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-300]
	str	r3, [r2, #12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	ldr	r3, [r3, #8]
	add	r2, r3, #1
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	str	r2, [r3, #8]
.L109:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-332]
	str	r2, [r3, #4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L110
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	str	r2, [r3, #16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	ldr	r2, [r3, #16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	str	r2, [r3, #20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	ldr	r2, [r3, #12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	str	r2, [r3, #28]
	b	.L111
.L110:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	mov	r2, #0
	str	r2, [r3, #16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	mov	r2, #0
	str	r2, [r3, #20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	mov	r2, #0
	str	r2, [r3, #28]
.L111:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, .L116+8
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	str	r2, [r3, #32]
	ldr	r2, .L116+8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	str	r3, [r2]
.L108:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	accept
	str	r0, [r4, #-304]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-304]
	cmp	r3, #0
	bgt	.L112
.L107:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	ldr	r3, [r3, #16]
	str	r3, [r2, #-332]
.L106:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	cmp	r3, #0
	bne	.L113
	b	.L78
.L115:
	nop
.L78:
	ldr	r3, .L116
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L114
	bl	__stack_chk_fail
.L114:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L117:
	.align	2
.L116:
	.word	.LC18
	.word	nethead
	.word	acthead
	.word	100000
	.word	1125899907
	.word	1000000
	.size	do_select, .-do_select
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dsub
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.section	.rodata
	.align	2
.LC19:
	.ascii	"client %s.%s\012[date]\012%s[uptime]\012 %02d:%02d:"
	.ascii	"%02d up %d days, %d:%02d, 1 users, load average: 0."
	.ascii	"21, %5.2f, 0.25\012\012%s\012\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_clients
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_clients, %function
do_clients:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #104
	ldr	r3, .L129
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-72]
	ldr	r3, .L129+4
	ldr	r3, [r3]
	str	r3, [fp, #-68]
	b	.L119
.L121:
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #36]
	str	r3, [fp, #-68]
.L119:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L120
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	add	r2, r3, #59
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bge	.L121
.L120:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L128
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-68]
	str	r2, [r3]
	sub	r3, fp, #72
	mov	r0, r3
	bl	localtime
	str	r0, [fp, #-64]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #12]
	sub	r3, r2, r3
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	ldr	r2, .L129+8
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #16
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r1, [fp, #-60]
	ldr	r3, .L129+8
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #16
	asr	r3, r1, #31
	sub	r3, r2, r3
	mov	r2, r3
	lsl	r2, r2, #1
	add	r2, r2, r3
	lsl	r0, r2, #4
	sub	r0, r0, r2
	lsl	r3, r0, #4
	sub	r3, r3, r0
	lsl	r3, r3, #7
	sub	r3, r1, r3
	ldr	r2, .L129+12
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #11
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-52]
	ldr	r1, [fp, #-60]
	ldr	r3, .L129+12
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #11
	asr	r3, r1, #31
	sub	r3, r2, r3
	mov	r2, r3
	lsl	r2, r2, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	sub	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r1, r3
	ldr	r2, .L129+16
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-68]
	add	r5, r3, #16
	ldmia	r5, {r4-r5}
	bl	random
	mov	r1, r0
	ldr	r3, .L129+20
	smull	r2, r3, r1, r3
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	mov	r0, r2
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L129+24
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-68]
	add	r1, r3, #24
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-68]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r0, #36
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r2, r0
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r2, #2048
	mov	r1, #4
	mov	r0, r3
	bl	fcntl
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-44]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-44]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-44]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #32]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #4096
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-44]
	ldr	r4, [r3, #16]
	ldr	r3, [fp, #-68]
	ldr	r5, [r3, #4]
	ldr	r3, [fp, #-68]
	ldr	r6, [r3, #8]
	sub	r3, fp, #72
	mov	r0, r3
	bl	ctime
	mov	lr, r0
	ldr	r3, [fp, #-64]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-64]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-64]
	ldr	ip, [r3]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #32]
	str	r3, [sp, #40]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [sp, #32]
	str	r3, [sp, #36]
	ldr	r3, [fp, #-48]
	str	r3, [sp, #24]
	ldr	r3, [fp, #-52]
	str	r3, [sp, #20]
	ldr	r3, [fp, #-56]
	str	r3, [sp, #16]
	str	ip, [sp, #12]
	str	r0, [sp, #8]
	str	r1, [sp, #4]
	str	lr, [sp]
	mov	r3, r6
	mov	r2, r5
	ldr	r1, .L129+28
	mov	r0, r4
	bl	sprintf
	ldr	r3, [fp, #-44]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-44]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-44]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r2, #16
	ldr	r1, .L129+32
	mov	r0, r3
	bl	connect
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L124
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L125
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #115
	bne	.L125
.L124:
	ldr	r3, .L129+36
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	str	r2, [r3, #32]
	ldr	r2, .L129+36
	ldr	r3, [fp, #-44]
	str	r3, [r2]
	b	.L118
.L125:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-44]
	bl	free
	b	.L118
.L128:
	nop
.L118:
	ldr	r3, .L129
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L127
	bl	__stack_chk_fail
.L127:
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L130:
	.align	2
.L129:
	.word	.LC20
	.word	clihead
	.word	-1037155065
	.word	-1851608123
	.word	-2004318071
	.word	274877907
	.word	1083129856
	.word	.LC19
	.word	srvaddr
	.word	acthead
	.size	do_clients, .-do_clients
	.align	2
	.global	sigmisc_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigmisc_handler, %function
sigmisc_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L133
	ldr	r3, .L134
	mov	r2, #1
	str	r2, [r3]
.L133:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L135:
	.align	2
.L134:
	.word	reconfig
	.size	sigmisc_handler, .-sigmisc_handler
	.section	.rodata
	.align	2
.LC21:
	.ascii	"127.0.0.1\000"
	.align	2
.LC22:
	.ascii	"--confdir=\000"
	.align	2
.LC23:
	.ascii	"--srvip=\000"
	.align	2
.LC24:
	.ascii	"(Re)loading config\000"
	.align	2
.LC25:
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	ldr	r3, .L145
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-160]
	mov	r2, #16
	mov	r1, #0
	ldr	r0, .L145+4
	bl	memset
	mov	r0, #1984
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L145+4
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, .L145+4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r1, .L145+8
	ldr	r0, .L145+12
	bl	inet_aton
	mov	r3, #1
	str	r3, [fp, #-164]
	b	.L137
.L140:
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-172]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #10
	ldr	r1, .L145+16
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L138
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-172]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #61
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L145+20
	str	r2, [r3]
	b	.L139
.L138:
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-172]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #8
	ldr	r1, .L145+24
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L139
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-172]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #61
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	ldr	r1, .L145+8
	mov	r0, r3
	bl	inet_aton
.L139:
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
.L137:
	ldr	r2, [fp, #-164]
	ldr	r3, [fp, #-168]
	cmp	r2, r3
	blt	.L140
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L145+28
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	sigaction
.L143:
	ldr	r3, .L145+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L141
	mov	r0, #0
	bl	time
	mov	r2, r0
	ldr	r3, [fp, #-160]
	add	r3, r3, #60
	cmp	r2, r3
	ble	.L142
.L141:
	ldr	r0, .L145+36
	bl	puts
	bl	setuplisteners
	bl	setupclients
	ldr	r3, .L145+32
	mov	r2, #0
	str	r2, [r3]
	mov	r0, #0
	bl	time
	str	r0, [fp, #-160]
.L142:
	bl	do_clients
	bl	do_select
	b	.L143
.L146:
	.align	2
.L145:
	.word	.LC25
	.word	srvaddr
	.word	srvaddr+4
	.word	.LC21
	.word	.LC22
	.word	CONFIGDIR
	.word	.LC23
	.word	sigmisc_handler
	.word	reconfig
	.word	.LC24
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
