	.file	"64199401.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	fileHandle, @object
	.size	fileHandle, 4
fileHandle:
	.long	-1
	.section	.rodata
.LC0:
	.string	"/tmp/cbcleaner.pid"
.LC1:
	.string	"Daemon terminated\n"
	.text
	.type	endDaemon, @function
endDaemon:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR fileHandle[rip]
	cmp	eax, -1
	je	.L2
	mov	eax, DWORD PTR fileHandle[rip]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR fileHandle[rip], -1
	lea	rdi, .LC0[rip]
	call	remove@PLT
.L2:
	lea	rsi, .LC1[rip]
	mov	edi, 6
	mov	eax, 0
	call	syslog@PLT
	call	closelog@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	endDaemon, .-endDaemon
	.type	handleSignal, @function
handleSignal:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, 20
	seta	dl
	test	dl, dl
	jne	.L6
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	eax, 1081860
	test	rax, rax
	setne	al
	test	al, al
	je	.L6
	mov	eax, 0
	call	endDaemon
	mov	edi, 0
	call	exit@PLT
.L6:
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	handleSignal, .-handleSignal
	.section	.rodata
.LC2:
	.string	"Could not fork\n"
.LC3:
	.string	"Child process created: %d\n"
	.align 8
.LC4:
	.string	"Could not get a new process group\n"
	.align 8
.LC5:
	.string	"Grandchild process created: %d\n"
.LC6:
	.string	"/"
	.align 8
.LC7:
	.string	"Current directory definition failed\n"
	.align 8
.LC8:
	.string	"Could not open PID lock file %s, exiting\n"
	.align 8
.LC9:
	.string	"PID lock file %s is already locked, exiting\n"
.LC10:
	.string	"%d\n"
	.align 8
.LC11:
	.string	"Could not write into PID lock file %s, exiting\n"
	.align 8
.LC12:
	.string	"Could not lock PID lock file %s, exiting\n"
	.text
	.type	daemonize, @function
daemonize:
.LFB2:
	.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, 328
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	call	fork@PLT
	mov	DWORD PTR -324[rbp], eax
	cmp	DWORD PTR -324[rbp], 0
	jns	.L8
	lea	rsi, .LC2[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, 0
	call	endDaemon
	mov	edi, 1
	call	exit@PLT
.L8:
	cmp	DWORD PTR -324[rbp], 0
	jle	.L9
	mov	eax, DWORD PTR -324[rbp]
	mov	edx, eax
	lea	rsi, .LC3[rip]
	mov	edi, 5
	mov	eax, 0
	call	syslog@PLT
	mov	edi, 0
	call	exit@PLT
.L9:
	call	setsid@PLT
	test	eax, eax
	jns	.L10
	lea	rsi, .LC4[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, 0
	call	endDaemon
	mov	edi, 1
	call	exit@PLT
.L10:
	lea	rax, -320[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -320[rbp]
	mov	esi, 22
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -320[rbp]
	mov	esi, 21
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -320[rbp]
	mov	esi, 17
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -320[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -320[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	lea	rax, handleSignal[rip]
	mov	QWORD PTR -192[rbp], rax
	lea	rax, -192[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -56[rbp], 0
	lea	rax, -192[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 20
	call	sigaction@PLT
	lea	rax, -192[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 9
	call	sigaction@PLT
	lea	rax, -192[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	lea	rax, -192[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 15
	call	sigaction@PLT
	call	fork@PLT
	mov	DWORD PTR -324[rbp], eax
	cmp	DWORD PTR -324[rbp], 0
	jns	.L11
	lea	rsi, .LC2[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, 0
	call	endDaemon
	mov	edi, 1
	call	exit@PLT
.L11:
	cmp	DWORD PTR -324[rbp], 0
	jle	.L12
	mov	eax, DWORD PTR -324[rbp]
	mov	edx, eax
	lea	rsi, .LC5[rip]
	mov	edi, 5
	mov	eax, 0
	call	syslog@PLT
	mov	edi, 0
	call	exit@PLT
.L12:
	mov	edi, 23
	call	umask@PLT
	lea	rdi, .LC6[rip]
	call	chdir@PLT
	cmp	eax, -1
	jne	.L13
	lea	rsi, .LC7[rip]
	mov	edi, 4
	mov	eax, 0
	call	syslog@PLT
.L13:
	mov	edi, 4
	call	sysconf@PLT
	mov	DWORD PTR fileHandle[rip], eax
	jmp	.L14
.L15:
	mov	eax, DWORD PTR fileHandle[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR fileHandle[rip]
	sub	eax, 1
	mov	DWORD PTR fileHandle[rip], eax
.L14:
	mov	eax, DWORD PTR fileHandle[rip]
	test	eax, eax
	jns	.L15
	mov	edi, 0
	call	close@PLT
	mov	edi, 1
	call	close@PLT
	mov	edi, 2
	call	close@PLT
	mov	edx, 384
	mov	esi, 66
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fileHandle[rip], eax
	mov	eax, DWORD PTR fileHandle[rip]
	cmp	eax, -1
	jne	.L16
	lea	rdx, .LC0[rip]
	lea	rsi, .LC8[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	mov	eax, DWORD PTR fileHandle[rip]
	mov	edx, 0
	mov	esi, 3
	mov	edi, eax
	call	lockf@PLT
	cmp	eax, -1
	jne	.L17
	lea	rdx, .LC0[rip]
	lea	rsi, .LC9[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	lea	rax, -34[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	call	getpid@PLT
	mov	edx, eax
	lea	rax, -34[rbp]
	mov	ecx, edx
	lea	rdx, .LC10[rip]
	mov	esi, 10
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -34[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	lea	rax, -34[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR fileHandle[rip]
	lea	rcx, -34[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rbx, rax
	je	.L18
	lea	rdx, .LC0[rip]
	lea	rsi, .LC11[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	mov	eax, DWORD PTR fileHandle[rip]
	mov	edx, 0
	mov	esi, 2
	mov	edi, eax
	call	lockf@PLT
	cmp	eax, -1
	jne	.L21
	lea	rdx, .LC0[rip]
	lea	rsi, .LC12[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	daemonize, .-daemonize
	.section	.rodata
.LC13:
	.string	"Cannot open default display\n"
.LC14:
	.string	"CLIPBOARD"
.LC15:
	.string	"PRIMARY"
.LC16:
	.string	"SECONDARY"
.LC17:
	.string	"Clipboards cleared\n"
	.text
	.type	clearClipboards, @function
clearClipboards:
.LFB3:
	.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 -16[rbp], 0
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L23
	lea	rsi, .LC13[rip]
	mov	edi, 4
	mov	eax, 0
	call	syslog@PLT
	mov	eax, 1
	jmp	.L24
.L23:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XSetSelectionOwner@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XSetSelectionOwner@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XSetSelectionOwner@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	XSync@PLT
	lea	rsi, .LC17[rip]
	mov	edi, 6
	mov	eax, 0
	call	syslog@PLT
	mov	eax, 0
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	clearClipboards, .-clearClipboards
	.section	.rodata
.LC18:
	.string	"no"
.LC19:
	.string	"cbcleaner"
	.align 8
.LC20:
	.string	"Daemon is starting (interval set to %lu seconds)\n"
.LC21:
	.string	"Daemon started\n"
	.align 8
.LC22:
	.string	"notify-send -i dialog-information \"Clipboards are now cleared\" \"cbcleaner\""
	.align 8
.LC23:
	.string	"Failed to notify about clipboards clearance\n"
	.align 8
.LC24:
	.string	"notify-send -i dialog-warning \"Clipboards will be cleared in 30s\" \"cbcleaner\""
	.align 8
.LC25:
	.string	"Failed to warn about clipboards clearance\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	BYTE PTR -13[rbp], 1
	cmp	DWORD PTR -20[rbp], 3
	jne	.L26
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L26
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L26
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 2
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L26
	mov	BYTE PTR -13[rbp], 0
.L26:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L27
	mov	QWORD PTR -8[rbp], 90
.L27:
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	openlog@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	lea	rsi, .LC20[rip]
	mov	edi, 6
	mov	eax, 0
	call	syslog@PLT
	mov	eax, 0
	call	daemonize
	lea	rsi, .LC21[rip]
	mov	edi, 6
	mov	eax, 0
	call	syslog@PLT
.L30:
	mov	eax, 0
	call	clearClipboards
	mov	DWORD PTR -12[rbp], eax
	cmp	BYTE PTR -13[rbp], 0
	je	.L28
	lea	rdi, .LC22[rip]
	call	system@PLT
	test	eax, eax
	je	.L28
	lea	rsi, .LC23[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, 0
	call	endDaemon
.L28:
	mov	rax, QWORD PTR -8[rbp]
	mov	edi, eax
	call	sleep@PLT
	cmp	BYTE PTR -13[rbp], 0
	je	.L29
	lea	rdi, .LC24[rip]
	call	system@PLT
	test	eax, eax
	je	.L29
	lea	rsi, .LC25[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, 0
	call	endDaemon
.L29:
	mov	edi, 30
	call	sleep@PLT
	jmp	.L30
	.cfi_endproc
.LFE4:
	.size	main, .-main
	.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	"64199401.c"
	.text
	.data
	.align	2
	.type	fileHandle, %object
	.size	fileHandle, 4
fileHandle:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/tmp/cbcleaner.pid\000"
	.align	2
.LC1:
	.ascii	"Daemon terminated\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	endDaemon, %function
endDaemon:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L3
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L2
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r0, .L3+4
	bl	remove
.L2:
	ldr	r1, .L3+8
	mov	r0, #6
	bl	syslog
	bl	closelog
	nop
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	fileHandle
	.word	.LC0
	.word	.LC1
	.size	endDaemon, .-endDaemon
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handleSignal, %function
handleSignal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #2
	cmp	r3, #18
	ldrls	pc, [pc, r3, asl #2]
	b	.L10
.L8:
	.word	.L7
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L7
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L7
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L7
.L7:
	bl	endDaemon
	mov	r0, #0
	bl	exit
.L10:
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	handleSignal, .-handleSignal
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Could not fork\012\000"
	.align	2
.LC3:
	.ascii	"Child process created: %d\012\000"
	.align	2
.LC4:
	.ascii	"Could not get a new process group\012\000"
	.align	2
.LC5:
	.ascii	"Grandchild process created: %d\012\000"
	.align	2
.LC6:
	.ascii	"/\000"
	.align	2
.LC7:
	.ascii	"Current directory definition failed\012\000"
	.align	2
.LC8:
	.ascii	"Could not open PID lock file %s, exiting\012\000"
	.align	2
.LC9:
	.ascii	"PID lock file %s is already locked, exiting\012\000"
	.align	2
.LC10:
	.ascii	"%d\012\000"
	.align	2
.LC11:
	.ascii	"Could not write into PID lock file %s, exiting\012\000"
	.align	2
.LC12:
	.ascii	"Could not lock PID lock file %s, exiting\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	daemonize, %function
daemonize:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #288
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bge	.L12
	ldr	r1, .L26+4
	mov	r0, #3
	bl	syslog
	bl	endDaemon
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	ble	.L13
	ldr	r2, [fp, #-300]
	ldr	r1, .L26+8
	mov	r0, #5
	bl	syslog
	mov	r0, #0
	bl	exit
.L13:
	bl	setsid
	mov	r3, r0
	cmp	r3, #0
	bge	.L14
	ldr	r1, .L26+12
	mov	r0, #3
	bl	syslog
	bl	endDaemon
	mov	r0, #1
	bl	exit
.L14:
	sub	r3, fp, #296
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #296
	mov	r1, #22
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #296
	mov	r1, #21
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #296
	mov	r1, #17
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #296
	mov	r1, #1
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #296
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	ldr	r3, .L26+16
	str	r3, [fp, #-168]
	sub	r3, fp, #168
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #0
	str	r3, [fp, #-36]
	sub	r3, fp, #168
	mov	r2, #0
	mov	r1, r3
	mov	r0, #20
	bl	sigaction
	sub	r3, fp, #168
	mov	r2, #0
	mov	r1, r3
	mov	r0, #9
	bl	sigaction
	sub	r3, fp, #168
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	sub	r3, fp, #168
	mov	r2, #0
	mov	r1, r3
	mov	r0, #15
	bl	sigaction
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bge	.L15
	ldr	r1, .L26+4
	mov	r0, #3
	bl	syslog
	bl	endDaemon
	mov	r0, #1
	bl	exit
.L15:
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	ble	.L16
	ldr	r2, [fp, #-300]
	ldr	r1, .L26+20
	mov	r0, #5
	bl	syslog
	mov	r0, #0
	bl	exit
.L16:
	mov	r0, #23
	bl	umask
	ldr	r0, .L26+24
	bl	chdir
	mov	r3, r0
	cmn	r3, #1
	bne	.L17
	ldr	r1, .L26+28
	mov	r0, #4
	bl	syslog
.L17:
	mov	r0, #4
	bl	sysconf
	mov	r3, r0
	ldr	r2, .L26+32
	str	r3, [r2]
	b	.L18
.L19:
	ldr	r3, .L26+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L26+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L26+32
	str	r3, [r2]
.L18:
	ldr	r3, .L26+32
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L19
	mov	r0, #0
	bl	close
	mov	r0, #1
	bl	close
	mov	r0, #2
	bl	close
	mov	r2, #384
	mov	r1, #66
	ldr	r0, .L26+36
	bl	open
	mov	r3, r0
	ldr	r2, .L26+32
	str	r3, [r2]
	ldr	r3, .L26+32
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L20
	ldr	r2, .L26+36
	ldr	r1, .L26+40
	mov	r0, #3
	bl	syslog
	mov	r0, #1
	bl	exit
.L20:
	ldr	r3, .L26+32
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #3
	mov	r0, r3
	bl	lockf
	mov	r3, r0
	cmn	r3, #1
	bne	.L21
	ldr	r2, .L26+36
	ldr	r1, .L26+44
	mov	r0, #3
	bl	syslog
	mov	r0, #1
	bl	exit
.L21:
	sub	r3, fp, #28
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	memset
	bl	getpid
	mov	r3, r0
	sub	r0, fp, #28
	ldr	r2, .L26+48
	mov	r1, #10
	bl	snprintf
	sub	r3, fp, #28
	mov	r0, r3
	bl	strlen
	mov	r4, r0
	ldr	r3, .L26+32
	ldr	r5, [r3]
	sub	r3, fp, #28
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #28
	mov	r1, r3
	mov	r0, r5
	bl	write
	mov	r3, r0
	cmp	r4, r3
	beq	.L22
	ldr	r2, .L26+36
	ldr	r1, .L26+52
	mov	r0, #3
	bl	syslog
	mov	r0, #1
	bl	exit
.L22:
	ldr	r3, .L26+32
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #2
	mov	r0, r3
	bl	lockf
	mov	r3, r0
	cmn	r3, #1
	bne	.L25
	ldr	r2, .L26+36
	ldr	r1, .L26+56
	mov	r0, #3
	bl	syslog
	mov	r0, #1
	bl	exit
.L25:
	nop
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC13
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	handleSignal
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	fileHandle
	.word	.LC0
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	daemonize, .-daemonize
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Cannot open default display\012\000"
	.align	2
.LC15:
	.ascii	"CLIPBOARD\000"
	.align	2
.LC16:
	.ascii	"PRIMARY\000"
	.align	2
.LC17:
	.ascii	"SECONDARY\000"
	.align	2
.LC18:
	.ascii	"Clipboards cleared\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clearClipboards, %function
clearClipboards:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r0, #0
	bl	XOpenDisplay
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L29
	ldr	r1, .L31
	mov	r0, #4
	bl	syslog
	mov	r3, #1
	b	.L30
.L29:
	mov	r2, #0
	ldr	r1, .L31+4
	ldr	r0, [fp, #-12]
	bl	XInternAtom
	str	r0, [fp, #-8]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	XSetSelectionOwner
	mov	r2, #0
	ldr	r1, .L31+8
	ldr	r0, [fp, #-12]
	bl	XInternAtom
	str	r0, [fp, #-8]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	XSetSelectionOwner
	mov	r2, #0
	ldr	r1, .L31+12
	ldr	r0, [fp, #-12]
	bl	XInternAtom
	str	r0, [fp, #-8]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	XSetSelectionOwner
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	XSync
	ldr	r1, .L31+16
	mov	r0, #6
	bl	syslog
	mov	r3, #0
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	clearClipboards, .-clearClipboards
	.section	.rodata
	.align	2
.LC19:
	.ascii	"no\000"
	.align	2
.LC20:
	.ascii	"cbcleaner\000"
	.align	2
.LC21:
	.ascii	"Daemon is starting (interval set to %lu seconds)\012"
	.ascii	"\000"
	.align	2
.LC22:
	.ascii	"Daemon started\012\000"
	.align	2
.LC23:
	.ascii	"notify-send -i dialog-information \"Clipboards are "
	.ascii	"now cleared\" \"cbcleaner\"\000"
	.align	2
.LC24:
	.ascii	"Failed to notify about clipboards clearance\012\000"
	.align	2
.LC25:
	.ascii	"notify-send -i dialog-warning \"Clipboards will be "
	.ascii	"cleared in 30s\" \"cbcleaner\"\000"
	.align	2
.LC26:
	.ascii	"Failed to warn about clipboards clearance\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #1
	strb	r3, [fp, #-13]
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	bne	.L34
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L39
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	mov	r3, #0
	strb	r3, [fp, #-13]
.L34:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L35
	mov	r3, #90
	str	r3, [fp, #-12]
.L35:
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L39+4
	bl	openlog
	ldr	r2, [fp, #-12]
	ldr	r1, .L39+8
	mov	r0, #6
	bl	syslog
	bl	daemonize
	ldr	r1, .L39+12
	mov	r0, #6
	bl	syslog
.L38:
	bl	clearClipboards
	str	r0, [fp, #-8]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L36
	ldr	r0, .L39+16
	bl	system
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r1, .L39+20
	mov	r0, #3
	bl	syslog
	bl	endDaemon
.L36:
	ldr	r0, [fp, #-12]
	bl	sleep
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L37
	ldr	r0, .L39+24
	bl	system
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
	ldr	r1, .L39+28
	mov	r0, #3
	bl	syslog
	bl	endDaemon
.L37:
	mov	r0, #30
	bl	sleep
	b	.L38
.L40:
	.align	2
.L39:
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
