	.file	"651262.c"
	.intel_syntax noprefix
	.text
	.globl	foregroundPid
	.bss
	.align 4
	.type	foregroundPid, @object
	.size	foregroundPid, 4
foregroundPid:
	.zero	4
	.globl	curSize
	.align 4
	.type	curSize, @object
	.size	curSize, 4
curSize:
	.zero	4
	.globl	is_empty
	.align 4
	.type	is_empty, @object
	.size	is_empty, 4
is_empty:
	.zero	4
	.globl	jobs
	.align 8
	.type	jobs, @object
	.size	jobs, 8
jobs:
	.zero	8
	.globl	prev
	.align 8
	.type	prev, @object
	.size	prev, 8
prev:
	.zero	8
	.section	.rodata
.LC0:
	.string	"\n"
.LC1:
	.string	" "
	.text
	.globl	parseCmd
	.type	parseCmd, @function
parseCmd:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 81
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 81
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 81
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L2
.L7:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L3
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	add	rdx, 20
	mov	QWORD PTR 8[rax+rdx*8], 0
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 62
	je	.L5
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 60
	je	.L5
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 124
	je	.L5
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 38
	jne	.L6
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 62[rdx]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax+rcx*8], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	add	rdx, 20
	mov	QWORD PTR 8[rax+rdx*8], 0
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 20[rdx]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax+rcx*8], rdx
.L4:
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -8[rbp], rax
	add	DWORD PTR -12[rbp], 1
.L2:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	add	rdx, 20
	mov	QWORD PTR 8[rax+rdx*8], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	parseCmd, .-parseCmd
	.globl	findSymbol
	.type	findSymbol, @function
findSymbol:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	DWORD PTR -4[rbp], 0
	jmp	.L9
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	add	rdx, 62
	mov	rax, QWORD PTR [rax+rdx*8]
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	add	rdx, 62
	mov	rax, QWORD PTR [rax+rdx*8]
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -28[rbp], al
	jne	.L10
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L11
.L10:
	add	DWORD PTR -4[rbp], 1
.L9:
	cmp	DWORD PTR -4[rbp], 40
	jle	.L12
	mov	eax, -1
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	findSymbol, .-findSymbol
	.globl	sigtstpHandler
	.type	sigtstpHandler, @function
sigtstpHandler:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	lea	rsi, sigtstpHandler[rip]
	mov	edi, 20
	call	signal@PLT
	mov	eax, DWORD PTR foregroundPid[rip]
	test	eax, eax
	jle	.L15
	mov	eax, DWORD PTR foregroundPid[rip]
	mov	esi, 20
	mov	edi, eax
	call	kill@PLT
	mov	eax, DWORD PTR curSize[rip]
	add	eax, 1
	mov	DWORD PTR curSize[rip], eax
	mov	eax, DWORD PTR curSize[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR jobs[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR jobs[rip], rax
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR curSize[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rdx, rax
	mov	rax, QWORD PTR prev[rip]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR curSize[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 836[rax], 1
.L15:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sigtstpHandler, .-sigtstpHandler
	.section	.rodata
.LC2:
	.string	"fork"
.LC3:
	.string	"dup2"
.LC4:
	.string	"execvp"
.LC5:
	.string	"setpgid"
	.text
	.type	execute_cmd, @function
execute_cmd:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 152
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -152[rbp], rdi
	mov	DWORD PTR -156[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	fork@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], -1
	je	.L17
	cmp	DWORD PTR -116[rbp], 0
	je	.L18
	jmp	.L42
.L17:
	lea	rdi, .LC2[rip]
	call	perror@PLT
	jmp	.L20
.L18:
	mov	rax, QWORD PTR -152[rbp]
	mov	esi, 60
	mov	rdi, rax
	call	findSymbol
	cmp	eax, -1
	je	.L21
	mov	rax, QWORD PTR -152[rbp]
	mov	esi, 60
	mov	rdi, rax
	call	findSymbol
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -152[rbp]
	movsx	rdx, edx
	add	rdx, 20
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -112[rbp], eax
	mov	eax, DWORD PTR -112[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	test	eax, eax
	je	.L21
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	mov	rax, QWORD PTR -152[rbp]
	mov	esi, 62
	mov	rdi, rax
	call	findSymbol
	cmp	eax, -1
	je	.L22
	mov	rax, QWORD PTR -152[rbp]
	mov	esi, 62
	mov	rdi, rax
	call	findSymbol
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -152[rbp]
	movsx	rdx, edx
	add	rdx, 20
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	edx, 432
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -108[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	cmp	eax, 1
	je	.L22
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	rax, QWORD PTR -152[rbp]
	mov	esi, 124
	mov	rdi, rax
	call	findSymbol
	cmp	eax, -1
	je	.L23
	cmp	DWORD PTR -156[rbp], 0
	jne	.L23
	mov	rax, QWORD PTR -152[rbp]
	mov	esi, 124
	mov	rdi, rax
	call	findSymbol
	mov	DWORD PTR -104[rbp], eax
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 3
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -96[rbp], rdx
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], 0
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L24:
	cmp	rsp, rdx
	je	.L25
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L24
.L25:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L26
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L26:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -120[rbp], 0
	jmp	.L27
.L28:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR -120[rbp]
	movsx	rdx, edx
	add	rdx, 20
	mov	rcx, QWORD PTR 8[rax+rdx*8]
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -120[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	add	DWORD PTR -120[rbp], 1
.L27:
	mov	eax, DWORD PTR -120[rbp]
	cmp	eax, DWORD PTR -104[rbp]
	jl	.L28
	mov	eax, DWORD PTR -104[rbp]
	add	eax, 1
	mov	DWORD PTR -124[rbp], eax
	jmp	.L29
.L30:
	add	DWORD PTR -124[rbp], 1
.L29:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR -124[rbp]
	movsx	rdx, edx
	add	rdx, 20
	mov	rax, QWORD PTR 8[rax+rdx*8]
	test	rax, rax
	jne	.L30
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 3
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -80[rbp], rdx
	mov	r14, rax
	mov	r15d, 0
	mov	r12, rax
	mov	r13d, 0
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L31:
	cmp	rsp, rdx
	je	.L32
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L31
.L32:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L33
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L33:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -72[rbp], rax
	mov	eax, DWORD PTR -104[rbp]
	add	eax, 1
	mov	DWORD PTR -128[rbp], eax
	mov	DWORD PTR -132[rbp], 0
	jmp	.L34
.L35:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR -128[rbp]
	movsx	rdx, edx
	add	rdx, 20
	mov	rcx, QWORD PTR 8[rax+rdx*8]
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	add	DWORD PTR -128[rbp], 1
	add	DWORD PTR -132[rbp], 1
.L34:
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jl	.L35
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pipe@PLT
	call	fork@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], -1
	jne	.L36
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L36:
	cmp	DWORD PTR -100[rbp], 0
	jne	.L37
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L37:
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -64[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	rax, QWORD PTR -152[rbp]
	lea	rdx, 168[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 168[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L42:
	cmp	DWORD PTR -156[rbp], 0
	jne	.L38
	mov	edi, 840
	call	malloc@PLT
	mov	QWORD PTR prev[rip], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR prev[rip], rax
	mov	eax, DWORD PTR -116[rbp]
	mov	DWORD PTR foregroundPid[rip], eax
	mov	eax, DWORD PTR -116[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	jmp	.L43
.L38:
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, 0
	mov	edi, eax
	call	setpgid@PLT
	test	eax, eax
	je	.L40
	lea	rdi, .LC5[rip]
	call	perror@PLT
.L40:
	mov	eax, DWORD PTR curSize[rip]
	add	eax, 1
	mov	DWORD PTR curSize[rip], eax
	mov	eax, DWORD PTR curSize[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR jobs[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR jobs[rip], rax
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR curSize[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR curSize[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rbx, QWORD PTR [rax]
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR curSize[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR [rbx+rax], 0
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR curSize[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rbx, QWORD PTR [rax]
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR curSize[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR [rbx+rax], 0
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR curSize[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -116[rbp]
	mov	DWORD PTR 824[rax], edx
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR curSize[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 828[rax], 0
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR curSize[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 832[rax], 0
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR curSize[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 836[rax], 0
.L43:
	nop
.L20:
	nop
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	execute_cmd, .-execute_cmd
	.section	.rodata
.LC6:
	.string	"[%d] Terminated\t"
.LC7:
	.string	"[%d] Exit\t%d "
.LC8:
	.string	"[%d] Done\t"
	.text
	.globl	bg_processes
	.type	bg_processes, @function
bg_processes:
.LFB10:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L45
.L53:
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 824[rax]
	lea	rcx, -24[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	test	eax, eax
	jle	.L46
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L47
	mov	eax, DWORD PTR -24[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	DWORD PTR -24[rbp], eax
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 828[rax], 1
	jmp	.L48
.L47:
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L48
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 127
	mov	DWORD PTR -24[rbp], eax
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 828[rax], 1
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 832[rax]
	test	eax, eax
	jne	.L59
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 832[rax], 1
	jmp	.L44
.L48:
	mov	eax, DWORD PTR -24[rbp]
	test	eax, eax
	je	.L51
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	lea	ecx, 1[rdx]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L52
.L51:
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L52:
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 832[rax]
	test	eax, eax
	jne	.L46
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 832[rax], 1
.L46:
	add	DWORD PTR -20[rbp], 1
.L45:
	mov	eax, DWORD PTR curSize[rip]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L53
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L54
.L56:
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 832[rax]
	cmp	eax, 1
	jne	.L55
	add	DWORD PTR -16[rbp], 1
.L55:
	add	DWORD PTR -12[rbp], 1
.L54:
	mov	eax, DWORD PTR curSize[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L56
	mov	eax, DWORD PTR curSize[rip]
	cmp	DWORD PTR -16[rbp], eax
	jne	.L60
	mov	DWORD PTR curSize[rip], 0
	mov	eax, DWORD PTR curSize[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR jobs[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR jobs[rip], rax
	jmp	.L60
.L59:
	nop
	jmp	.L44
.L60:
	nop
.L44:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	bg_processes, .-bg_processes
	.section	.rodata
.LC9:
	.string	"clear"
.LC10:
	.string	"352> "
.LC11:
	.string	"exit"
.LC12:
	.string	"jobs"
.LC13:
	.string	"[%d] Running\t%s\n"
.LC14:
	.string	"[%d] Done\t%s\n"
.LC15:
	.string	"[%d] Stopped\t%s\n"
.LC16:
	.string	"bg"
.LC17:
	.string	"[%d] %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	lea	rdi, .LC9[rip]
	call	system@PLT
	mov	eax, DWORD PTR curSize[rip]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR jobs[rip], rax
	lea	rsi, sigtstpHandler[rip]
	mov	edi, 20
	call	signal@PLT
.L75:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	esi, 840
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 80
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	parseCmd
	mov	eax, 0
	call	bg_processes
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 168[rax]
	test	rax, rax
	jne	.L62
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L75
.L62:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 168[rax]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L64
	mov	DWORD PTR -36[rbp], 0
	jmp	.L65
.L66:
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -36[rbp], 1
.L65:
	mov	eax, DWORD PTR curSize[rip]
	cmp	DWORD PTR -36[rbp], eax
	jl	.L66
	mov	rax, QWORD PTR jobs[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 0
	call	exit@PLT
.L64:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 168[rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L67
	mov	DWORD PTR -32[rbp], 0
	jmp	.L68
.L72:
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 828[rax]
	test	eax, eax
	jne	.L69
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 832[rax]
	test	eax, eax
	jne	.L69
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 836[rax]
	cmp	eax, 1
	je	.L69
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L70
.L69:
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 828[rax]
	cmp	eax, 1
	jne	.L71
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 832[rax]
	test	eax, eax
	jne	.L71
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 836[rax]
	cmp	eax, 1
	je	.L71
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 832[rax], 1
	jmp	.L70
.L71:
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 836[rax]
	cmp	eax, 1
	jne	.L70
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L70:
	add	DWORD PTR -32[rbp], 1
.L68:
	mov	eax, DWORD PTR curSize[rip]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L72
	jmp	.L75
.L67:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 168[rax]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L73
	mov	rbx, QWORD PTR jobs[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 176[rax]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	sal	rax, 3
	add	rax, rbx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 824[rax]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, 18
	mov	edi, eax
	call	kill@PLT
	mov	rbx, QWORD PTR jobs[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 176[rax]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	sal	rax, 3
	add	rax, rbx
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 836[rax], 0
	jmp	.L75
.L73:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 38
	mov	rdi, rax
	call	findSymbol
	cmp	eax, -1
	je	.L74
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	execute_cmd
	mov	rdx, QWORD PTR jobs[rip]
	mov	eax, DWORD PTR curSize[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR 824[rax]
	mov	eax, DWORD PTR curSize[rip]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L75
.L74:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	execute_cmd
	jmp	.L75
	.cfi_endproc
.LFE11:
	.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	"651262.c"
	.text
	.global	foregroundPid
	.bss
	.align	2
	.type	foregroundPid, %object
	.size	foregroundPid, 4
foregroundPid:
	.space	4
	.global	curSize
	.align	2
	.type	curSize, %object
	.size	curSize, 4
curSize:
	.space	4
	.global	is_empty
	.align	2
	.type	is_empty, %object
	.size	is_empty, 4
is_empty:
	.space	4
	.comm	jobs,4,4
	.comm	prev,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	" \000"
	.text
	.align	2
	.global	parseCmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseCmd, %function
parseCmd:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #81
	ldr	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-16]
	add	r3, r3, #81
	ldr	r1, .L8
	mov	r0, r3
	bl	strtok
	ldr	r3, [fp, #-16]
	add	r3, r3, #81
	ldr	r1, .L8+4
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-12]
	b	.L2
.L7:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L3
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #40
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	b	.L4
.L3:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #62
	beq	.L5
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #60
	beq	.L5
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #124
	beq	.L5
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #38
	bne	.L6
.L5:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r2, r2, #82
	ldr	r1, [fp, #-12]
	str	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #40
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	b	.L4
.L6:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #40
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
.L4:
	ldr	r1, .L8+4
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L7
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #40
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.size	parseCmd, .-parseCmd
	.align	2
	.global	findSymbol
	.syntax unified
	.arm
	.fpu softvfp
	.type	findSymbol, %function
findSymbol:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, r1
	strb	r3, [fp, #-17]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L11
.L14:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r2, r2, #82
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r2, r2, #82
	ldr	r3, [r3, r2, lsl #2]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L12
	ldr	r3, [fp, #-8]
	b	.L13
.L12:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L11:
	ldr	r3, [fp, #-8]
	cmp	r3, #40
	ble	.L14
	mvn	r3, #0
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	findSymbol, .-findSymbol
	.align	2
	.global	sigtstpHandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigtstpHandler, %function
sigtstpHandler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, .L18
	mov	r0, #20
	bl	signal
	ldr	r3, .L18+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L17
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r1, #20
	mov	r0, r3
	bl	kill
	ldr	r3, .L18+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L18+8
	str	r3, [r2]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	ldr	r2, .L18+8
	ldr	r2, [r2]
	lsl	r2, r2, #2
	mov	r1, r2
	mov	r0, r3
	bl	realloc
	mov	r3, r0
	ldr	r2, .L18+12
	str	r3, [r2]
	ldr	r3, .L18+12
	ldr	r2, [r3]
	ldr	r3, .L18+8
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, .L18+16
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, .L18+12
	ldr	r2, [r3]
	ldr	r3, .L18+8
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3, #504]
.L17:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	sigtstpHandler
	.word	foregroundPid
	.word	curSize
	.word	jobs
	.word	prev
	.size	sigtstpHandler, .-sigtstpHandler
	.section	.rodata
	.align	2
.LC2:
	.ascii	"fork\000"
	.align	2
.LC3:
	.ascii	"dup2\000"
	.align	2
.LC4:
	.ascii	"execvp\000"
	.align	2
.LC5:
	.ascii	"setpgid\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_cmd, %function
execute_cmd:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	beq	.L21
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L22
	b	.L40
.L21:
	ldr	r0, .L42+4
	bl	perror
	b	.L24
.L22:
	mov	r1, #60
	ldr	r0, [fp, #-80]
	bl	findSymbol
	mov	r3, r0
	cmn	r3, #1
	beq	.L25
	mov	r1, #60
	ldr	r0, [fp, #-80]
	bl	findSymbol
	mov	r3, r0
	add	r3, r3, #1
	ldr	r2, [fp, #-80]
	add	r3, r3, #40
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-56]
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	dup2
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r0, .L42+8
	bl	perror
	mov	r0, #1
	bl	exit
.L25:
	mov	r1, #62
	ldr	r0, [fp, #-80]
	bl	findSymbol
	mov	r3, r0
	cmn	r3, #1
	beq	.L26
	mov	r1, #62
	ldr	r0, [fp, #-80]
	bl	findSymbol
	mov	r3, r0
	add	r3, r3, #1
	ldr	r2, [fp, #-80]
	add	r3, r3, #40
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r2, #432
	ldr	r1, .L42+12
	mov	r0, r3
	bl	open
	str	r0, [fp, #-52]
	mov	r1, #1
	ldr	r0, [fp, #-52]
	bl	dup2
	mov	r3, r0
	cmp	r3, #1
	beq	.L26
	ldr	r0, .L42+8
	bl	perror
	mov	r0, #1
	bl	exit
.L26:
	mov	r1, #124
	ldr	r0, [fp, #-80]
	bl	findSymbol
	mov	r3, r0
	cmn	r3, #1
	beq	.L27
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L27
	mov	r1, #124
	ldr	r0, [fp, #-80]
	bl	findSymbol
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	lsl	ip, r3, #2
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	lsl	r3, ip, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L28
.L29:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-64]
	add	r3, r3, #40
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-64]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L28:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L29
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-68]
	b	.L30
.L31:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L30:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-68]
	add	r3, r3, #40
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-68]
	lsl	ip, r3, #2
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-36]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	lsl	r3, ip, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L32
.L33:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-72]
	add	r3, r3, #40
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-76]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L32:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	blt	.L33
	sub	r3, fp, #24
	mov	r0, r3
	bl	pipe
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L34
	ldr	r0, .L42+4
	bl	perror
	mov	r0, #1
	bl	exit
.L34:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-24]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	execvp
	ldr	r0, .L42+16
	bl	perror
	mov	r0, #1
	bl	exit
.L35:
	ldr	r3, [fp, #-20]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	execvp
	ldr	r0, .L42+16
	bl	perror
	mov	r0, #1
	bl	exit
.L27:
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #164]
	ldr	r3, [fp, #-80]
	add	r3, r3, #164
	mov	r1, r3
	mov	r0, r2
	bl	execvp
	ldr	r0, .L42+16
	bl	perror
	mov	r0, #0
	bl	exit
.L40:
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L36
	mov	r0, #508
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L42+20
	str	r2, [r3]
	ldr	r2, .L42+20
	ldr	r3, [fp, #-80]
	str	r3, [r2]
	ldr	r2, .L42+24
	ldr	r3, [fp, #-60]
	str	r3, [r2]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	waitpid
	b	.L41
.L36:
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	setpgid
	mov	r3, r0
	cmp	r3, #0
	beq	.L38
	ldr	r0, .L42+28
	bl	perror
.L38:
	ldr	r3, .L42+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L42+32
	str	r3, [r2]
	ldr	r3, .L42+36
	ldr	r3, [r3]
	ldr	r2, .L42+32
	ldr	r2, [r2]
	lsl	r2, r2, #2
	mov	r1, r2
	mov	r0, r3
	bl	realloc
	mov	r3, r0
	ldr	r2, .L42+36
	str	r3, [r2]
	ldr	r3, .L42+36
	ldr	r2, [r3]
	ldr	r3, .L42+32
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-80]
	str	r2, [r3]
	ldr	r3, .L42+36
	ldr	r2, [r3]
	ldr	r3, .L42+32
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r4, [r3]
	ldr	r3, .L42+36
	ldr	r2, [r3]
	ldr	r3, .L42+32
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	mov	r2, #0
	strb	r2, [r4, r3]
	ldr	r3, .L42+36
	ldr	r2, [r3]
	ldr	r3, .L42+32
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r4, [r3]
	ldr	r3, .L42+36
	ldr	r2, [r3]
	ldr	r3, .L42+32
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	mov	r2, #0
	strb	r2, [r4, r3]
	ldr	r3, .L42+36
	ldr	r2, [r3]
	ldr	r3, .L42+32
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-60]
	str	r2, [r3, #492]
	ldr	r3, .L42+36
	ldr	r2, [r3]
	ldr	r3, .L42+32
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #496]
	ldr	r3, .L42+36
	ldr	r2, [r3]
	ldr	r3, .L42+32
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #500]
	ldr	r3, .L42+36
	ldr	r2, [r3]
	ldr	r3, .L42+32
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #504]
.L41:
	nop
.L24:
	nop
	ldr	r3, .L42
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC6
	.word	.LC2
	.word	.LC3
	.word	577
	.word	.LC4
	.word	prev
	.word	foregroundPid
	.word	.LC5
	.word	curSize
	.word	jobs
	.size	execute_cmd, .-execute_cmd
	.section	.rodata
	.align	2
.LC7:
	.ascii	"[%d] Terminated\011\000"
	.align	2
.LC8:
	.ascii	"[%d] Exit\011%d \000"
	.align	2
.LC9:
	.ascii	"[%d] Done\011\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bg_processes
	.syntax unified
	.arm
	.fpu softvfp
	.type	bg_processes, %function
bg_processes:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L45
.L53:
	ldr	r3, .L61+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #492]
	sub	r1, fp, #24
	mov	r2, #1
	mov	r0, r3
	bl	waitpid
	mov	r3, r0
	cmp	r3, #0
	ble	.L46
	ldr	r3, [fp, #-24]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L47
	ldr	r3, [fp, #-24]
	asr	r3, r3, #8
	and	r3, r3, #255
	str	r3, [fp, #-24]
	ldr	r3, .L61+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3, #496]
	b	.L48
.L47:
	ldr	r3, [fp, #-24]
	and	r3, r3, #255
	and	r3, r3, #127
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	ble	.L48
	ldr	r3, [fp, #-24]
	and	r3, r3, #127
	str	r3, [fp, #-24]
	ldr	r3, .L61+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3, #496]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L61+8
	bl	printf
	ldr	r3, .L61+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #500]
	cmp	r3, #0
	bne	.L59
	ldr	r3, .L61+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	ldr	r3, .L61+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3, #500]
	b	.L44
.L48:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L61+12
	bl	printf
	b	.L52
.L51:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L61+16
	bl	printf
.L52:
	ldr	r3, .L61+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #500]
	cmp	r3, #0
	bne	.L46
	ldr	r3, .L61+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	ldr	r3, .L61+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3, #500]
.L46:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L45:
	ldr	r3, .L61+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L53
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L54
.L56:
	ldr	r3, .L61+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #500]
	cmp	r3, #1
	bne	.L55
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L55:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L54:
	ldr	r3, .L61+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L56
	ldr	r3, .L61+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L60
	ldr	r3, .L61+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L61+4
	ldr	r3, [r3]
	ldr	r2, .L61+20
	ldr	r2, [r2]
	lsl	r2, r2, #2
	mov	r1, r2
	mov	r0, r3
	bl	realloc
	mov	r3, r0
	ldr	r2, .L61+4
	str	r3, [r2]
	b	.L60
.L59:
	nop
	b	.L44
.L60:
	nop
.L44:
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC10
	.word	jobs
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	curSize
	.size	bg_processes, .-bg_processes
	.section	.rodata
	.align	2
.LC11:
	.ascii	"clear\000"
	.align	2
.LC12:
	.ascii	"352> \000"
	.align	2
.LC13:
	.ascii	"exit\000"
	.align	2
.LC14:
	.ascii	"jobs\000"
	.align	2
.LC15:
	.ascii	"[%d] Running\011%s\012\000"
	.align	2
.LC16:
	.ascii	"[%d] Done\011%s\012\000"
	.align	2
.LC17:
	.ascii	"[%d] Stopped\011%s\012\000"
	.align	2
.LC18:
	.ascii	"bg\000"
	.align	2
.LC19:
	.ascii	"[%d] %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	ldr	r0, .L78
	bl	system
	ldr	r3, .L78+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L78+8
	str	r2, [r3]
	ldr	r1, .L78+12
	mov	r0, #20
	bl	signal
.L77:
	ldr	r0, .L78+16
	bl	printf
	ldr	r3, .L78+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r1, #508
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, .L78+24
	ldr	r2, [r2]
	mov	r1, #80
	mov	r0, r3
	bl	fgets
	ldr	r0, [fp, #-20]
	bl	parseCmd
	bl	bg_processes
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #164]
	cmp	r3, #0
	bne	.L64
	ldr	r0, [fp, #-20]
	bl	free
	b	.L77
.L64:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #164]
	ldr	r1, .L78+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L66
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L67
.L68:
	ldr	r3, .L78+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L67:
	ldr	r3, .L78+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L68
	ldr	r3, .L78+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-20]
	bl	free
	mov	r0, #0
	bl	exit
.L66:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #164]
	ldr	r1, .L78+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L69
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L70
.L74:
	ldr	r3, .L78+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #496]
	cmp	r3, #0
	bne	.L71
	ldr	r3, .L78+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #500]
	cmp	r3, #0
	bne	.L71
	ldr	r3, .L78+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #504]
	cmp	r3, #1
	beq	.L71
	ldr	r3, [fp, #-24]
	add	r1, r3, #1
	ldr	r3, .L78+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L78+36
	bl	printf
	b	.L72
.L71:
	ldr	r3, .L78+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #496]
	cmp	r3, #1
	bne	.L73
	ldr	r3, .L78+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #500]
	cmp	r3, #0
	bne	.L73
	ldr	r3, .L78+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #504]
	cmp	r3, #1
	beq	.L73
	ldr	r3, [fp, #-24]
	add	r1, r3, #1
	ldr	r3, .L78+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L78+40
	bl	printf
	ldr	r3, .L78+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3, #500]
	b	.L72
.L73:
	ldr	r3, .L78+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #504]
	cmp	r3, #1
	bne	.L72
	ldr	r3, [fp, #-24]
	add	r1, r3, #1
	ldr	r3, .L78+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L78+44
	bl	printf
.L72:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L70:
	ldr	r3, .L78+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L74
	b	.L77
.L69:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #164]
	ldr	r1, .L78+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L75
	ldr	r3, .L78+8
	ldr	r4, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #168]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #492]
	str	r3, [fp, #-16]
	mov	r1, #18
	ldr	r0, [fp, #-16]
	bl	kill
	ldr	r3, .L78+8
	ldr	r4, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #168]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #504]
	b	.L77
.L75:
	mov	r1, #38
	ldr	r0, [fp, #-20]
	bl	findSymbol
	mov	r3, r0
	cmn	r3, #1
	beq	.L76
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	execute_cmd
	ldr	r3, .L78+4
	ldr	r1, [r3]
	ldr	r3, .L78+8
	ldr	r2, [r3]
	ldr	r3, .L78+4
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #492]
	mov	r2, r3
	ldr	r0, .L78+52
	bl	printf
	b	.L77
.L76:
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	execute_cmd
	b	.L77
.L79:
	.align	2
.L78:
	.word	.LC11
	.word	curSize
	.word	jobs
	.word	sigtstpHandler
	.word	.LC12
	.word	stdout
	.word	stdin
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
