	.file	"98574798.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Dream> "
.LC1:
	.string	"quit"
.LC2:
	.string	"%s command not found"
	.align 8
.LC3:
	.string	"background process reaped: %d\n"
.LC4:
	.string	"Foreground Process Reaped:%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 2032
	mov	DWORD PTR -6116[rbp], edi
	mov	QWORD PTR -6128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -6108[rbp], 0
	lea	rsi, signal_handler[rip]
	mov	edi, 17
	call	signal@PLT
.L11:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -96[rbp]
	mov	esi, 80
	mov	rdi, rax
	call	fgets@PLT
	lea	rdx, -4096[rbp]
	lea	rcx, -6096[rbp]
	lea	rax, -96[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	parse_line
	mov	DWORD PTR -6104[rbp], eax
	cmp	DWORD PTR -6104[rbp], -1
	je	.L14
	mov	rax, QWORD PTR -4096[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	jmp	.L13
.L4:
	call	fork@PLT
	mov	DWORD PTR -6108[rbp], eax
	cmp	DWORD PTR -6108[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -4096[rbp]
	lea	rdx, -4096[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	test	eax, eax
	jns	.L11
	mov	rax, QWORD PTR -4096[rbp]
	lea	rdx, -4096[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execv@PLT
	test	eax, eax
	jns	.L11
	mov	rax, QWORD PTR -4096[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L6:
	mov	DWORD PTR -6100[rbp], 0
	cmp	DWORD PTR -6104[rbp], 1
	jne	.L11
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -6100[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	lea	rax, -6112[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	wait@PLT
	mov	DWORD PTR -6100[rbp], eax
	mov	eax, DWORD PTR -6100[rbp]
	cmp	eax, DWORD PTR -6108[rbp]
	je	.L9
	cmp	DWORD PTR -6100[rbp], -1
	jne	.L10
.L9:
	mov	eax, DWORD PTR -6108[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L14:
	nop
	jmp	.L11
.L13:
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	" \n\t"
.LC6:
	.string	"&"
	.text
	.globl	parse_line
	.type	parse_line, @function
parse_line:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L16
	mov	eax, -1
	jmp	.L17
.L16:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rcx, [rax+rdx]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	add	DWORD PTR -16[rbp], 1
	lea	rsi, .LC5[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -8[rbp], rax
.L18:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L19
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L21
.L20:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	DWORD PTR -12[rbp], 1
.L21:
	mov	eax, DWORD PTR -12[rbp]
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	parse_line, .-parse_line
	.section	.rodata
.LC7:
	.string	"Background Process Reaped:%d\n"
	.text
	.globl	signal_handler
	.type	signal_handler, @function
signal_handler:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	lea	rax, -16[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, -1
	mov	eax, 0
	call	waitpid@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jg	.L24
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	signal_handler, .-signal_handler
	.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	"98574798.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Dream> \000"
	.align	2
.LC1:
	.ascii	"quit\000"
	.align	2
.LC2:
	.ascii	"%s command not found\000"
	.align	2
.LC3:
	.ascii	"background process reaped: %d\012\000"
	.align	2
.LC4:
	.ascii	"Foreground Process Reaped:%d\012\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 = 4112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #20
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-16]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	ldr	r1, .L15+4
	mov	r0, #17
	bl	signal
.L11:
	ldr	r0, .L15+8
	bl	printf
	ldr	r3, .L15+12
	ldr	r2, [r3]
	sub	r3, fp, #96
	mov	r1, #80
	mov	r0, r3
	bl	fgets
	sub	r2, fp, #2080
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #4080
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r0, fp, #96
	mov	r1, r3
	bl	parse_line
	sub	r3, fp, #4096
	sub	r3, r3, #8
	str	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #8
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L14
	ldr	r3, [fp, #-2096]
	ldr	r1, .L15+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	b	.L13
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	bl	fork
	mov	r3, r0
	str	r3, [r4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2080
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	execvp
	mov	r3, r0
	cmp	r3, #0
	bge	.L11
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2080
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	execv
	mov	r3, r0
	cmp	r3, #0
	bge	.L11
	ldr	r3, [fp, #-2096]
	mov	r1, r3
	ldr	r0, .L15+20
	bl	printf
	mov	r0, #0
	bl	exit
.L6:
	mov	r3, #0
	sub	r2, fp, #4096
	sub	r2, r2, #4
	str	r3, [r2]
	sub	r3, fp, #4096
	sub	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L11
	b	.L8
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r1, [r3]
	ldr	r0, .L15+24
	bl	printf
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	wait
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L9
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L10
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3]
	ldr	r0, .L15+28
	bl	printf
	b	.L11
.L14:
	nop
	b	.L11
.L13:
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC5
	.word	signal_handler
	.word	.LC0
	.word	stdin
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	" \012\011\000"
	.align	2
.LC7:
	.ascii	"&\000"
	.text
	.align	2
	.global	parse_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_line, %function
parse_line:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r1, .L24
	ldr	r0, [fp, #-24]
	bl	strtok
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L18
	mvn	r3, #0
	b	.L19
.L18:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L20
.L21:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r2, r3, r2
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldr	r1, [fp, #-28]
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r1, .L24
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-16]
.L20:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L24+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L23
.L22:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-8]
.L23:
	ldr	r3, [fp, #-8]
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC6
	.word	.LC7
	.size	parse_line, .-parse_line
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Background Process Reaped:%d\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	signal_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_handler, %function
signal_handler:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L27
.L28:
	ldr	r1, [fp, #-12]
	ldr	r0, .L30+4
	bl	printf
.L27:
	sub	r3, fp, #16
	mov	r2, #1
	mov	r1, r3
	mvn	r0, #0
	bl	waitpid
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L28
	nop
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC9
	.word	.LC8
	.size	signal_handler, .-signal_handler
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
