	.file	"extr_goaccess.c_daemonize.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Daemonized GoAccess: %d\n"
.LC1:
	.string	"/"
.LC2:
	.string	"/dev/null"
	.text
	.p2align 4
	.type	daemonize, @function
daemonize:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	call	fork@PLT
	test	rax, rax
	js	.L13
	je	.L3
	mov	edi, DWORD PTR conf[rip]
	mov	rbp, rax
	mov	rsi, rax
	call	write_pid_file@PLT
	lea	rdi, .LC0[rip]
	mov	rsi, rbp
	call	printf@PLT
	mov	edi, DWORD PTR EXIT_SUCCESS[rip]
	call	exit@PLT
.L3:
	xor	edi, edi
	call	umask@PLT
	xor	eax, eax
	call	setsid@PLT
	test	rax, rax
	js	.L14
.L4:
	lea	rdi, .LC1[rip]
	call	chdir@PLT
	test	rax, rax
	js	.L15
.L5:
	mov	esi, DWORD PTR O_RDWR[rip]
	xor	edx, edx
	lea	rdi, .LC2[rip]
	call	open@PLT
	mov	ebp, eax
	cmp	eax, -1
	je	.L16
.L6:
	mov	esi, DWORD PTR STDIN_FILENO[rip]
	mov	edi, ebp
	call	dup2@PLT
	mov	esi, DWORD PTR STDOUT_FILENO[rip]
	mov	edi, ebp
	call	dup2@PLT
	mov	esi, DWORD PTR STDERR_FILENO[rip]
	mov	edi, ebp
	call	dup2@PLT
	cmp	DWORD PTR STDERR_FILENO[rip], ebp
	jl	.L17
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	edi, ebp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	close@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	movsx	rdi, eax
	call	LOG_DEBUG@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	movsx	rdi, eax
	call	LOG_DEBUG@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	movsx	rdi, eax
	call	LOG_DEBUG@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	daemonize, .-daemonize
	.comm	errno,4,4
	.comm	conf,4,4
	.comm	STDOUT_FILENO,4,4
	.comm	STDIN_FILENO,4,4
	.comm	STDERR_FILENO,4,4
	.comm	O_RDWR,4,4
	.comm	EXIT_SUCCESS,4,4
	.comm	EXIT_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_goaccess.c_daemonize.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Daemonized GoAccess: %d\012\000"
	.align	2
.LC1:
	.ascii	"/\000"
	.align	2
.LC2:
	.ascii	"/dev/null\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	daemonize, %function
daemonize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	fork
	subs	r4, r0, #0
	blt	.L10
	beq	.L3
	ldr	r3, .L14
	mov	r1, r4
	ldr	r0, [r3]
	bl	write_pid_file
	mov	r1, r4
	ldr	r0, .L14+4
	bl	printf
	ldr	r3, .L14+8
	ldr	r0, [r3]
	bl	exit
.L3:
	mov	r0, #0
	bl	umask
	bl	setsid
	cmp	r0, #0
	blt	.L11
.L4:
	ldr	r0, .L14+12
	bl	chdir
	cmp	r0, #0
	blt	.L12
.L5:
	ldr	r3, .L14+16
	mov	r2, #0
	ldr	r1, [r3]
	ldr	r0, .L14+20
	bl	open
	cmn	r0, #1
	mov	r4, r0
	beq	.L13
.L6:
	ldr	r3, .L14+24
	mov	r0, r4
	ldr	r1, [r3]
	bl	dup2
	ldr	r3, .L14+28
	ldr	r5, .L14+32
	ldr	r1, [r3]
	mov	r0, r4
	bl	dup2
	mov	r0, r4
	ldr	r1, [r5]
	bl	dup2
	ldr	r3, [r5]
	cmp	r3, r4
	popge	{r4, r5, r6, pc}
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	close
.L10:
	ldr	r3, .L14+36
	ldr	r0, [r3]
	bl	exit
	b	.L3
.L12:
	ldr	r3, .L14+40
	ldr	r0, [r3]
	bl	strerror
	bl	LOG_DEBUG
	ldr	r3, .L14+36
	ldr	r0, [r3]
	bl	exit
	b	.L5
.L11:
	ldr	r3, .L14+40
	ldr	r0, [r3]
	bl	strerror
	bl	LOG_DEBUG
	ldr	r3, .L14+36
	ldr	r0, [r3]
	bl	exit
	b	.L4
.L13:
	ldr	r3, .L14+40
	ldr	r0, [r3]
	bl	strerror
	bl	LOG_DEBUG
	ldr	r3, .L14+36
	ldr	r0, [r3]
	bl	exit
	b	.L6
.L15:
	.align	2
.L14:
	.word	conf
	.word	.LC0
	.word	EXIT_SUCCESS
	.word	.LC1
	.word	O_RDWR
	.word	.LC2
	.word	STDIN_FILENO
	.word	STDOUT_FILENO
	.word	STDERR_FILENO
	.word	EXIT_FAILURE
	.word	errno
	.size	daemonize, .-daemonize
	.comm	errno,4,4
	.comm	conf,4,4
	.comm	STDOUT_FILENO,4,4
	.comm	STDIN_FILENO,4,4
	.comm	STDERR_FILENO,4,4
	.comm	O_RDWR,4,4
	.comm	EXIT_SUCCESS,4,4
	.comm	EXIT_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
