	.file	"extr_storage-engine.c_check_child_status.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"child process %d terminated: exited = %d, signaled = %d, exit code = %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"waitpid (%d): %m\n"
.LC2:
	.string	"waitpid (%d) returned %d???\n"
	.text
	.p2align 4
	.globl	check_child_status
	.type	check_child_status, @function
check_child_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR child_pid[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	edi, edi
	jne	.L15
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edx, DWORD PTR WNOHANG[rip]
	lea	rsi, 4[rsp]
	mov	DWORD PTR 4[rsp], 0
	call	waitpid@PLT
	mov	esi, DWORD PTR child_pid[rip]
	cmp	esi, eax
	je	.L17
	cmp	eax, -1
	je	.L18
	test	eax, eax
	je	.L1
	mov	edx, eax
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	kprintf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rax, QWORD PTR EINTR[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L1
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	kprintf@PLT
	mov	DWORD PTR child_pid[rip], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR 4[rsp]
	call	WIFEXITED@PLT
	test	rax, rax
	je	.L4
.L6:
	mov	edi, DWORD PTR 4[rsp]
	call	WEXITSTATUS@PLT
	mov	edi, DWORD PTR 4[rsp]
	mov	ebx, eax
	call	WIFSIGNALED@PLT
	mov	edi, DWORD PTR 4[rsp]
	mov	rbp, rax
	call	WIFEXITED@PLT
	xor	r8d, r8d
	test	rbp, rbp
	mov	r9d, ebx
	setne	r8b
	mov	edx, DWORD PTR child_pid[rip]
	xor	ecx, ecx
	test	rax, rax
	setne	cl
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	vkprintf@PLT
	mov	DWORD PTR child_pid[rip], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR 4[rsp]
	call	WIFSIGNALED@PLT
	test	rax, rax
	jne	.L6
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	check_child_status, .-check_child_status
	.comm	errno,8,8
	.comm	child_pid,4,4
	.comm	WNOHANG,4,4
	.comm	EINTR,8,8
	.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_storage-engine.c_check_child_status.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"child process %d terminated: exited = %d, signaled "
	.ascii	"= %d, exit code = %d\012\000"
	.align	2
.LC1:
	.ascii	"waitpid (%d): %m\012\000"
	.align	2
.LC2:
	.ascii	"waitpid (%d) returned %d???\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	check_child_status
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_child_status, %function
check_child_status:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r4, .L19
	ldr	r3, .L19+4
	ldr	r0, [r4]
	sub	sp, sp, #20
	cmp	r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bne	.L15
.L1:
	ldr	r3, .L19+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	mov	r5, #0
	ldr	r3, .L19+8
	add	r1, sp, #8
	ldr	r2, [r3]
	str	r5, [sp, #8]
	bl	waitpid
	ldr	r1, [r4]
	cmp	r1, r0
	beq	.L17
	cmn	r0, #1
	beq	.L18
	cmp	r0, #0
	beq	.L1
	mov	r2, r0
	ldr	r0, .L19+12
	bl	kprintf
	b	.L1
.L18:
	ldr	r2, .L19+16
	ldr	r3, .L19+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L1
	ldr	r0, .L19+24
	bl	kprintf
	str	r5, [r4]
	b	.L1
.L17:
	ldr	r0, [sp, #8]
	bl	WIFEXITED
	cmp	r0, r5
	beq	.L4
.L6:
	ldr	r0, [sp, #8]
	ldr	r7, [r4]
	bl	WIFEXITED
	mov	r6, r0
	ldr	r0, [sp, #8]
	bl	WIFSIGNALED
	mov	r5, r0
	ldr	r0, [sp, #8]
	bl	WEXITSTATUS
	subs	r5, r5, #0
	movne	r5, #1
	subs	r3, r6, #0
	movne	r3, #1
	str	r0, [sp, #4]
	mov	r2, r7
	mov	r0, #1
	ldr	r1, .L19+28
	str	r5, [sp]
	bl	vkprintf
	mov	r3, #0
	str	r3, [r4]
	b	.L1
.L4:
	ldr	r0, [sp, #8]
	bl	WIFSIGNALED
	cmp	r0, #0
	bne	.L6
	b	.L1
.L16:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	child_pid
	.word	.LC3
	.word	WNOHANG
	.word	.LC2
	.word	errno
	.word	EINTR
	.word	.LC1
	.word	.LC0
	.size	check_child_status, .-check_child_status
	.comm	errno,4,4
	.comm	child_pid,4,4
	.comm	WNOHANG,4,4
	.comm	EINTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
