	.file	"760349.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"is now closing...\n"
	.text
	.globl	sighand
	.type	sighand, @function
sighand:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 15
	jne	.L3
	lea	rsi, .LC0[rip]
	mov	edi, 5
	mov	eax, 0
	call	syslog@PLT
	call	closelog@PLT
	mov	edi, 0
	call	exit@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sighand, .-sighand
	.section	.rodata
.LC1:
	.string	"~"
.LC2:
	.string	"Clockdaemon"
	.text
	.type	d_init, @function
d_init:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L5
	mov	edi, 1
	call	exit@PLT
.L5:
	cmp	DWORD PTR -4[rbp], 0
	jle	.L6
	mov	edi, 0
	call	exit@PLT
.L6:
	call	setsid@PLT
	test	eax, eax
	jns	.L7
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rsi, sighand[rip]
	mov	edi, 17
	call	signal@PLT
	lea	rsi, sighand[rip]
	mov	edi, 1
	call	signal@PLT
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L8
	mov	edi, 1
	call	exit@PLT
.L8:
	cmp	DWORD PTR -4[rbp], 0
	jle	.L9
	mov	edi, 0
	call	exit@PLT
.L9:
	mov	edi, 0
	call	umask@PLT
	lea	rdi, .LC1[rip]
	call	chdir@PLT
	mov	edi, 4
	call	sysconf@PLT
	mov	DWORD PTR -8[rbp], eax
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
	sub	DWORD PTR -8[rbp], 1
.L10:
	cmp	DWORD PTR -8[rbp], 0
	jg	.L11
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	openlog@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	d_init, .-d_init
	.section	.rodata
.LC3:
	.string	"Clockdaemon started."
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	d_init
	lea	rsi, .LC3[rip]
	mov	edi, 5
	mov	eax, 0
	call	syslog@PLT
	mov	edi, 20
	call	sleep@PLT
	nop
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"760349.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"is now closing...\012\000"
	.text
	.align	2
	.global	sighand
	.syntax unified
	.arm
	.fpu softvfp
	.type	sighand, %function
sighand:
	@ 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]
	cmp	r3, #15
	bne	.L3
	ldr	r1, .L4
	mov	r0, #5
	bl	syslog
	bl	closelog
	mov	r0, #0
	bl	exit
.L3:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	sighand, .-sighand
	.section	.rodata
	.align	2
.LC1:
	.ascii	"~\000"
	.align	2
.LC2:
	.ascii	"Clockdaemon\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	d_init, %function
d_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L7
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L8
	mov	r0, #0
	bl	exit
.L8:
	bl	setsid
	mov	r3, r0
	cmp	r3, #0
	bge	.L9
	mov	r0, #1
	bl	exit
.L9:
	ldr	r1, .L14
	mov	r0, #17
	bl	signal
	ldr	r1, .L14
	mov	r0, #1
	bl	signal
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L10
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L11
	mov	r0, #0
	bl	exit
.L11:
	mov	r0, #0
	bl	umask
	ldr	r0, .L14+4
	bl	chdir
	mov	r0, #4
	bl	sysconf
	str	r0, [fp, #-12]
	b	.L12
.L13:
	ldr	r0, [fp, #-12]
	bl	close
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L12:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L13
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L14+8
	bl	openlog
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	sighand
	.word	.LC1
	.word	.LC2
	.size	d_init, .-d_init
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Clockdaemon started.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	d_init
	ldr	r1, .L18
	mov	r0, #5
	bl	syslog
	mov	r0, #20
	bl	sleep
	nop
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
