	.file	"441600.c"
	.intel_syntax noprefix
	.text
	.globl	config_file
	.bss
	.align 8
	.type	config_file, @object
	.size	config_file, 8
config_file:
	.zero	8
	.globl	entries
	.align 8
	.type	entries, @object
	.size	entries, 8
entries:
	.zero	8
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"cannot open file"
	.align 8
.LC2:
	.string	"Loading config file from scratch"
	.text
	.globl	load_config
	.type	load_config, @function
load_config:
.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, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -292[rbp], 0
	mov	rax, QWORD PTR config_file[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L2
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	warnx@PLT
	mov	eax, -1
	jmp	.L6
.L2:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L4
.L5:
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -280[rbp], rax
	mov	eax, DWORD PTR -292[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -292[rbp], edx
	mov	rdx, QWORD PTR -280[rbp]
	mov	DWORD PTR [rdx], eax
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -280[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rdx, QWORD PTR entries[rip]
	mov	rax, QWORD PTR -280[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -280[rbp]
	mov	QWORD PTR entries[rip], rax
.L4:
	mov	rdx, QWORD PTR -288[rbp]
	lea	rax, -272[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L5
	mov	eax, 0
.L6:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	load_config, .-load_config
	.section	.rodata
	.align 8
.LC3:
	.string	"SIGHUP received, reloading config"
	.text
	.globl	reload
	.type	reload, @function
reload:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR entries[rip]
	mov	QWORD PTR -16[rbp], rax
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L9:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L10
	mov	QWORD PTR entries[rip], 0
	call	load_config
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	reload, .-reload
	.section	.rodata
.LC4:
	.string	"usage: %s <config_file>"
	.align 8
.LC5:
	.string	"failed to load config file '%s'"
	.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
	sub	rsp, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -164[rbp], 2
	je	.L12
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L12:
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR config_file[rip], rax
	call	load_config
	test	eax, eax
	jns	.L13
	mov	rax, QWORD PTR config_file[rip]
	mov	rdx, rax
	lea	rsi, .LC5[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L13:
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -24[rbp], 0
	lea	rax, reload[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	sigaction@PLT
	nop
.L14:
	call	pause@PLT
	test	eax, eax
	jne	.L14
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.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	"441600.c"
	.text
	.global	config_file
	.bss
	.align	2
	.type	config_file, %object
	.size	config_file, 4
config_file:
	.space	4
	.global	entries
	.align	2
	.type	entries, %object
	.size	entries, 4
entries:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"cannot open file\000"
	.align	2
.LC2:
	.ascii	"Loading config file from scratch\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	load_config
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_config, %function
load_config:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-276]
	ldr	r3, .L8+4
	ldr	r3, [r3]
	ldr	r1, .L8+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L8+12
	bl	warnx
	mvn	r3, #0
	b	.L6
.L2:
	ldr	r0, .L8+16
	bl	puts
	b	.L4
.L5:
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-268]
	ldr	r3, [fp, #-276]
	add	r2, r3, #1
	str	r2, [fp, #-276]
	ldr	r2, [fp, #-268]
	str	r3, [r2]
	sub	r3, fp, #264
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-268]
	str	r2, [r3, #4]
	ldr	r3, .L8+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-268]
	str	r2, [r3, #8]
	ldr	r2, .L8+20
	ldr	r3, [fp, #-268]
	str	r3, [r2]
.L4:
	sub	r3, fp, #264
	ldr	r2, [fp, #-272]
	mov	r1, #255
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
.L6:
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC3
	.word	config_file
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	entries
	.size	load_config, .-load_config
	.section	.rodata
	.align	2
.LC4:
	.ascii	"SIGHUP received, reloading config\000"
	.text
	.align	2
	.global	reload
	.syntax unified
	.arm
	.fpu softvfp
	.type	reload, %function
reload:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r0, .L13+4
	bl	puts
	b	.L11
.L12:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	free
.L11:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L13
	mov	r2, #0
	str	r2, [r3]
	bl	load_config
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	entries
	.word	.LC4
	.size	reload, .-reload
	.section	.rodata
	.align	2
.LC5:
	.ascii	"usage: %s <config_file>\000"
	.align	2
.LC6:
	.ascii	"failed to load config file '%s'\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-152]
	cmp	r3, #2
	beq	.L16
	ldr	r3, [fp, #-156]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L21+4
	mov	r0, #1
	bl	errx
.L16:
	ldr	r3, [fp, #-156]
	ldr	r3, [r3, #4]
	ldr	r2, .L21+8
	str	r3, [r2]
	bl	load_config
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	ldr	r3, .L21+8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L21+12
	mov	r0, #1
	bl	errx
.L17:
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L21+16
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	sigaction
	nop
.L18:
	bl	pause
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC7
	.word	.LC5
	.word	config_file
	.word	.LC6
	.word	reload
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
