	.file	"37636921.c"
	.intel_syntax noprefix
	.text
	.globl	reread
	.type	reread, @function
reread:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	reread, .-reread
	.section	.rodata
.LC0:
	.string	"got SIGTERM; exiting"
	.text
	.globl	sigterm
	.type	sigterm, @function
sigterm:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	lea	rsi, .LC0[rip]
	mov	edi, 6
	mov	eax, 0
	call	syslog@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	sigterm, .-sigterm
	.section	.rodata
.LC1:
	.string	"Re-reading configuration file"
	.text
	.globl	sighup
	.type	sighup, @function
sighup:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	lea	rsi, .LC1[rip]
	mov	edi, 6
	mov	eax, 0
	call	syslog@PLT
	call	reread
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sighup, .-sighup
	.section	.rodata
.LC2:
	.string	"daemon already running"
.LC3:
	.string	"Can't catch SIGTERM: %s"
.LC4:
	.string	"can't catch SIGHUP: %s"
	.text
	.globl	main
	.type	main, @function
main:
.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, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -168[rbp], rax
	jmp	.L6
.L5:
	add	QWORD PTR -168[rbp], 1
.L6:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	daemonize@PLT
	call	already_running@PLT
	test	eax, eax
	je	.L7
	lea	rsi, .LC2[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rax, sigterm[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -160[rbp]
	add	rax, 8
	mov	esi, 1
	mov	rdi, rax
	call	sigaddset@PLT
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 15
	call	sigaction@PLT
	test	eax, eax
	jns	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	lea	rsi, .LC3[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	lea	rax, sighup[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -160[rbp]
	add	rax, 8
	mov	esi, 15
	mov	rdi, rax
	call	sigaddset@PLT
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	sigaction@PLT
	test	eax, eax
	jns	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.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	"37636921.c"
	.text
	.align	2
	.global	reread
	.syntax unified
	.arm
	.fpu softvfp
	.type	reread, %function
reread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	reread, .-reread
	.section	.rodata
	.align	2
.LC0:
	.ascii	"got SIGTERM; exiting\000"
	.text
	.align	2
	.global	sigterm
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigterm, %function
sigterm:
	@ 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	r1, .L3
	mov	r0, #6
	bl	syslog
	mov	r0, #0
	bl	exit
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	sigterm, .-sigterm
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Re-reading configuration file\000"
	.text
	.align	2
	.global	sighup
	.syntax unified
	.arm
	.fpu softvfp
	.type	sighup, %function
sighup:
	@ 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	r1, .L6
	mov	r0, #6
	bl	syslog
	bl	reread
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.size	sighup, .-sighup
	.section	.rodata
	.align	2
.LC2:
	.ascii	"daemon already running\000"
	.align	2
.LC3:
	.ascii	"Can't catch SIGTERM: %s\000"
	.align	2
.LC4:
	.ascii	"can't catch SIGHUP: %s\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-164]
	ldr	r3, [r3]
	mov	r1, #47
	mov	r0, r3
	bl	strrchr
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-164]
	ldr	r3, [r3]
	str	r3, [fp, #-152]
	b	.L10
.L9:
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L10:
	ldr	r0, [fp, #-152]
	bl	daemonize
	bl	already_running
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r1, .L15+4
	mov	r0, #3
	bl	syslog
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, .L15+8
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r1, #1
	mov	r0, r3
	bl	sigaddset
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #15
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L15+12
	mov	r0, #3
	bl	syslog
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, .L15+16
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r1, #15
	mov	r0, r3
	bl	sigaddset
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	bge	.L13
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L15+20
	mov	r0, #3
	bl	syslog
	mov	r0, #1
	bl	exit
.L13:
	mov	r0, #0
	bl	exit
.L16:
	.align	2
.L15:
	.word	.LC5
	.word	.LC2
	.word	sigterm
	.word	.LC3
	.word	sighup
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
