	.file	"extr_syslogd.c_waitdaemon.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" (core dumped)"
.LC1:
	.string	""
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"child pid %d exited with return code %d"
	.align 8
.LC3:
	.string	"child pid %d exited on signal %d%s"
	.section	.rodata.str1.1
.LC4:
	.string	"/"
	.text
	.p2align 4
	.type	waitdaemon, @function
waitdaemon:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	fork@PLT
	mov	ebp, eax
	cmp	eax, -1
	je	.L1
	test	eax, eax
	je	.L3
	mov	esi, DWORD PTR timedout[rip]
	mov	edi, DWORD PTR SIGALRM[rip]
	lea	r14, .LC0[rip]
	lea	r13, .LC1[rip]
	call	signal@PLT
	mov	edi, r12d
	lea	r12, 4[rsp]
	call	alarm@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L35:
	mov	edi, DWORD PTR 4[rsp]
	call	WEXITSTATUS@PLT
	mov	edi, 1
	mov	edx, ebx
	lea	rsi, .LC2[rip]
	mov	ecx, eax
	xor	eax, eax
	call	errx@PLT
	mov	edi, DWORD PTR 4[rsp]
	call	WIFSIGNALED@PLT
	test	eax, eax
	jne	.L34
.L6:
	cmp	ebp, ebx
	je	.L9
.L4:
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r12
	call	wait3@PLT
	mov	ebx, eax
	cmp	eax, -1
	je	.L9
	mov	edi, DWORD PTR 4[rsp]
	call	WIFEXITED@PLT
	test	eax, eax
	jne	.L35
	mov	edi, DWORD PTR 4[rsp]
	call	WIFSIGNALED@PLT
	test	eax, eax
	je	.L6
.L34:
	mov	edi, DWORD PTR 4[rsp]
	mov	r15, r13
	call	WCOREDUMP@PLT
	mov	edi, DWORD PTR 4[rsp]
	test	eax, eax
	cmovne	r15, r14
	call	WTERMSIG@PLT
	mov	edx, ebx
	mov	edi, 1
	mov	ecx, eax
	mov	r8, r15
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	errx@PLT
	cmp	ebp, ebx
	jne	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	xor	edi, edi
	call	exit@PLT
.L3:
	xor	eax, eax
	call	setsid@PLT
	cmp	eax, -1
	je	.L1
	lea	rdi, .LC4[rip]
	call	chdir@PLT
	mov	esi, DWORD PTR O_RDWR[rip]
	mov	edi, DWORD PTR _PATH_DEVNULL[rip]
	xor	edx, edx
	call	open@PLT
	mov	ebp, eax
	cmp	eax, -1
	jne	.L36
.L11:
	xor	eax, eax
	call	getppid@PLT
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L37
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	mov	esi, DWORD PTR STDIN_FILENO[rip]
	mov	edi, eax
	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
	jge	.L11
	mov	edi, ebp
	call	close@PLT
	xor	eax, eax
	call	getppid@PLT
	jmp	.L1
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	waitdaemon, .-waitdaemon
	.comm	timedout,4,4
	.comm	_PATH_DEVNULL,4,4
	.comm	STDOUT_FILENO,4,4
	.comm	STDIN_FILENO,4,4
	.comm	STDERR_FILENO,4,4
	.comm	SIGALRM,4,4
	.comm	O_RDWR,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_syslogd.c_waitdaemon.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	" (core dumped)\000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"child pid %d exited with return code %d\000"
	.align	2
.LC3:
	.ascii	"child pid %d exited on signal %d%s\000"
	.align	2
.LC4:
	.ascii	"/\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	waitdaemon, %function
waitdaemon:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L38
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r0
	bl	fork
	cmn	r0, #1
	mov	r5, r0
	beq	.L1
	cmp	r0, #0
	beq	.L3
	ldr	r2, .L38+4
	ldr	r3, .L38+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	signal
	mov	r0, r4
	bl	alarm
	ldr	r9, .L38+12
	ldr	r8, .L38+16
	ldr	r7, .L38+20
	ldr	r6, .L38+24
	b	.L4
.L35:
	ldr	r0, [sp, #8]
	bl	WEXITSTATUS
	mov	r2, r4
	mov	r3, r0
	mov	r1, r9
	mov	r0, #1
	bl	errx
	ldr	r0, [sp, #8]
	bl	WIFSIGNALED
	cmp	r0, #0
	bne	.L34
.L6:
	cmp	r5, r4
	beq	.L9
.L4:
	mov	r2, #0
	add	r0, sp, #8
	mov	r1, r2
	bl	wait3
	cmn	r0, #1
	mov	r4, r0
	beq	.L9
	ldr	r0, [sp, #8]
	bl	WIFEXITED
	cmp	r0, #0
	bne	.L35
	ldr	r0, [sp, #8]
	bl	WIFSIGNALED
	cmp	r0, #0
	beq	.L6
.L34:
	ldr	r0, [sp, #8]
	bl	WTERMSIG
	mov	r10, r0
	ldr	r0, [sp, #8]
	bl	WCOREDUMP
	cmp	r0, #0
	movne	r2, r8
	moveq	r2, r7
	mov	r3, r10
	str	r2, [sp]
	mov	r1, r6
	mov	r2, r4
	mov	r0, #1
	bl	errx
	cmp	r5, r4
	bne	.L4
.L9:
	mov	r0, #0
	bl	exit
.L3:
	bl	setsid
	cmn	r0, #1
	mov	r5, r0
	beq	.L1
	ldr	r0, .L38+28
	bl	chdir
	ldr	r2, .L38+32
	ldr	r3, .L38+36
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r2, #0
	bl	open
	cmn	r0, #1
	mov	r4, r0
	bne	.L36
.L11:
	bl	getppid
	mov	r5, r0
.L1:
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L36:
	ldr	r3, .L38+40
	ldr	r5, .L38+44
	ldr	r1, [r3]
	bl	dup2
	ldr	r3, .L38+48
	mov	r0, r4
	ldr	r1, [r3]
	bl	dup2
	mov	r0, r4
	ldr	r1, [r5]
	bl	dup2
	ldr	r3, [r5]
	cmp	r3, r4
	bge	.L11
	mov	r0, r4
	bl	close
	bl	getppid
	mov	r5, r0
	b	.L1
.L37:
	bl	__stack_chk_fail
.L39:
	.align	2
.L38:
	.word	.LC5
	.word	timedout
	.word	SIGALRM
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	.LC4
	.word	O_RDWR
	.word	_PATH_DEVNULL
	.word	STDIN_FILENO
	.word	STDERR_FILENO
	.word	STDOUT_FILENO
	.size	waitdaemon, .-waitdaemon
	.comm	timedout,4,4
	.comm	_PATH_DEVNULL,4,4
	.comm	STDOUT_FILENO,4,4
	.comm	STDIN_FILENO,4,4
	.comm	STDERR_FILENO,4,4
	.comm	SIGALRM,4,4
	.comm	O_RDWR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
