	.file	"84571.c"
	.intel_syntax noprefix
	.text
	.globl	background
	.bss
	.type	background, @object
	.size	background, 1
background:
	.zero	1
	.globl	fmode
	.align 4
	.type	fmode, @object
	.size	fmode, 4
fmode:
	.zero	4
	.section	.rodata
.LC0:
	.string	"\n:"
	.text
	.globl	getInput
	.type	getInput, @function
getInput:
.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	QWORD PTR -32[rbp], rsi
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
.L2:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR stdin[rip]
	lea	rcx, -32[rbp]
	lea	rax, -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getInput, .-getInput
	.section	.rodata
.LC1:
	.string	" "
	.text
	.globl	tokenizeCommandLine
	.type	tokenizeCommandLine, @function
tokenizeCommandLine:
.LFB7:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdx, -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	esi, 8
	mov	edi, 512
	call	calloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -64[rbp]
	lea	rbx, [rcx+rdx]
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -44[rbp], 1
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	lea	rax, -40[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	strtok_r@PLT
	mov	QWORD PTR -32[rbp], rax
.L5:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	tokenizeCommandLine, .-tokenizeCommandLine
	.section	.rodata
.LC2:
	.string	">"
.LC3:
	.string	"<"
	.text
	.globl	tokenizeExistingArr
	.type	tokenizeExistingArr, @function
tokenizeExistingArr:
.LFB8:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdx, -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	esi, 8
	mov	edi, 512
	call	calloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L10
.L13:
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -64[rbp]
	lea	rbx, [rcx+rdx]
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -44[rbp], 1
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	lea	rax, -40[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	strtok_r@PLT
	mov	QWORD PTR -32[rbp], rax
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -64[rbp]
	jmp	.L14
.L10:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR -64[rbp]
.L14:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	tokenizeExistingArr, .-tokenizeExistingArr
	.section	.rodata
.LC4:
	.string	"&"
	.text
	.globl	tokenizeExistingArr2
	.type	tokenizeExistingArr2, @function
tokenizeExistingArr2:
.LFB9:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdx, -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	esi, 8
	mov	edi, 512
	call	calloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L17
.L21:
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L18
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -64[rbp]
	lea	rbx, [rcx+rdx]
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -44[rbp], 1
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L24
.L18:
	mov	rax, QWORD PTR -64[rbp]
	jmp	.L22
.L24:
	lea	rax, -40[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	strtok_r@PLT
	mov	QWORD PTR -32[rbp], rax
.L17:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L21
	mov	rax, QWORD PTR -64[rbp]
.L22:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	tokenizeExistingArr2, .-tokenizeExistingArr2
	.section	.rodata
.LC5:
	.string	"cannot open %s for input\n"
.LC6:
	.string	"source dup2()"
.LC7:
	.string	"cannot open %s for output\n"
.LC8:
	.string	"target dup2()"
	.text
	.globl	Redirection
	.type	Redirection, @function
Redirection:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L26
.L29:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L27
	add	DWORD PTR -24[rbp], 1
	jmp	.L28
.L27:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L28
	add	DWORD PTR -28[rbp], 1
.L28:
	add	DWORD PTR -20[rbp], 1
.L26:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L29
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L30
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], -1
	jne	.L31
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 1
	jmp	.L30
.L31:
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L32
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 1
.L32:
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 1
	mov	esi, 2
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
.L30:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 420
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L34
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 1
	jmp	.L36
.L34:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L35
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 1
.L35:
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 1
	mov	esi, 2
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
.L36:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	Redirection, .-Redirection
	.section	.rodata
.LC9:
	.string	"exit"
.LC10:
	.string	"status"
.LC11:
	.string	"exit value %d\n"
.LC12:
	.string	"terminated by signal %d\n"
.LC13:
	.string	"cd"
.LC14:
	.string	"HOME"
.LC15:
	.string	"%s "
.LC16:
	.string	"fork() failed!"
.LC17:
	.string	"execlp"
.LC18:
	.string	"background pid is %d\n"
	.text
	.globl	shellCommands
	.type	shellCommands, @function
shellCommands:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -72[rbp], r8
	mov	QWORD PTR -80[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L38
	call	getpid@PLT
	mov	esi, 1
	mov	edi, eax
	call	kill@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR [rax], 0
.L38:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L39
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 127
	test	eax, eax
	jne	.L40
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	sar	eax, 8
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L39
.L40:
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 127
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L39:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L41
	cmp	DWORD PTR -44[rbp], 1
	jle	.L42
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L43
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L43
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	chdir@PLT
	jmp	.L41
.L43:
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR [rax], 12078
	mov	BYTE PTR 2[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	chdir@PLT
	jmp	.L41
.L42:
	cmp	DWORD PTR -44[rbp], 1
	jne	.L41
	lea	rdi, .LC14[rip]
	call	getenv@PLT
	mov	rdi, rax
	call	chdir@PLT
.L41:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	jne	.L45
	mov	DWORD PTR -24[rbp], 0
	jmp	.L46
.L47:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -24[rbp], 1
.L46:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L47
	jmp	.L55
.L45:
	movzx	eax, BYTE PTR background[rip]
	xor	eax, 1
	test	al, al
	je	.L49
	mov	QWORD PTR 16[rbp], 0
	mov	edx, 0
	lea	rsi, 16[rbp]
	mov	edi, 2
	call	sigaction@PLT
.L49:
	lea	rax, 320[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 20
	call	sigaction@PLT
	call	fork@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L50
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 1
	call	exit@PLT
.L50:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L51
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 2
	call	exit@PLT
.L51:
	lea	rax, 168[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 20
	call	sigaction@PLT
	movzx	eax, BYTE PTR background[rip]
	xor	eax, 1
	test	al, al
	je	.L52
	lea	rcx, -28[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, 0
	lea	rsi, 16[rbp]
	mov	edi, 2
	call	sigaction@PLT
.L52:
	movzx	eax, BYTE PTR background[rip]
	test	al, al
	je	.L55
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 4[rdx], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], edx
	lea	rcx, -28[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -20[rbp], eax
.L55:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	shellCommands, .-shellCommands
	.section	.rodata
.LC19:
	.string	"%d"
.LC20:
	.string	"$$"
	.text
	.globl	expansionVar
	.type	expansionVar, @function
expansionVar:
.LFB12:
	.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, 136
	.cfi_offset 3, -24
	mov	QWORD PTR -120[rbp], rdi
	mov	DWORD PTR -124[rbp], esi
	mov	DWORD PTR -128[rbp], edx
	mov	QWORD PTR -136[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -124[rbp]
	mov	ecx, eax
	lea	rdx, .LC19[rip]
	mov	esi, 0
	mov	edi, 0
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -92[rbp]
	add	eax, 1
	movsx	rsi, eax
	mov	edx, DWORD PTR -124[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	ecx, edx
	lea	rdx, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	esi, 8
	mov	edi, 512
	call	calloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -96[rbp], 0
	cmp	DWORD PTR -128[rbp], 1
	jne	.L57
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L58
	lea	rdx, -88[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L57
.L58:
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
.L57:
	cmp	DWORD PTR -128[rbp], 1
	jle	.L59
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -96[rbp], 0
	lea	rdx, -88[rbp]
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -72[rbp], rax
	jmp	.L60
.L66:
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L61
	mov	DWORD PTR -100[rbp], 0
	jmp	.L62
.L64:
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 36
	jne	.L63
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 36
	jne	.L63
	lea	rdx, -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	edx, DWORD PTR -96[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rbx, [rcx+rdx]
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -96[rbp], 1
.L63:
	add	DWORD PTR -100[rbp], 1
.L62:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	DWORD PTR -100[rbp], eax
	jl	.L64
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	edx, DWORD PTR -96[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rbx, [rcx+rdx]
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -96[rbp], 1
.L61:
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L65
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	edx, DWORD PTR -96[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rbx, [rcx+rdx]
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -96[rbp], 1
.L65:
	lea	rax, -88[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	strtok_r@PLT
	mov	QWORD PTR -72[rbp], rax
.L60:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L66
.L59:
	mov	rax, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L68
	call	__stack_chk_fail@PLT
.L68:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	expansionVar, .-expansionVar
	.section	.rodata
	.align 8
.LC21:
	.string	"Entering foreground-only mode (& is now ignored)\n"
.LC22:
	.string	"Exiting foreground-only mode\n"
	.text
	.globl	handle_SIGTSTP
	.type	handle_SIGTSTP, @function
handle_SIGTSTP:
.LFB13:
	.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	eax, DWORD PTR fmode[rip]
	test	eax, eax
	jne	.L70
	lea	rax, .LC21[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 50
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	DWORD PTR fmode[rip], 1
	jmp	.L72
.L70:
	lea	rax, .LC22[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 30
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	DWORD PTR fmode[rip], 0
.L72:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	handle_SIGTSTP, .-handle_SIGTSTP
	.section	.rodata
.LC23:
	.string	"background pid %d is done: "
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.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, 632
	.cfi_offset 3, -24
	mov	DWORD PTR -628[rbp], edi
	mov	QWORD PTR -640[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -536[rbp], 2048
	mov	BYTE PTR -614[rbp], 1
	mov	QWORD PTR -576[rbp], 0
	mov	QWORD PTR -568[rbp], 0
	mov	QWORD PTR -560[rbp], 0
	mov	QWORD PTR -552[rbp], 0
	mov	BYTE PTR -613[rbp], 0
	lea	rdx, -496[rbp]
	mov	eax, 0
	mov	ecx, 19
	mov	rdi, rdx
	rep stosq
	lea	rdx, -336[rbp]
	mov	eax, 0
	mov	ecx, 19
	mov	rdi, rdx
	rep stosq
	lea	rdx, -176[rbp]
	mov	eax, 0
	mov	ecx, 19
	mov	rdi, rdx
	rep stosq
	mov	edi, 1
	call	dup@PLT
	mov	DWORD PTR -584[rbp], eax
	mov	edi, 0
	call	dup@PLT
	mov	DWORD PTR -580[rbp], eax
	mov	DWORD PTR -596[rbp], 0
	mov	QWORD PTR -496[rbp], 1
	mov	QWORD PTR -176[rbp], 0
	lea	rax, handle_SIGTSTP[rip]
	mov	QWORD PTR -336[rbp], rax
	mov	DWORD PTR -200[rbp], 268435456
	lea	rax, -336[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 20
	call	sigaction@PLT
	lea	rax, -496[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	mov	edi, 4096
	call	malloc@PLT
	mov	QWORD PTR -528[rbp], rax
	mov	DWORD PTR -592[rbp], 0
	jmp	.L74
.L75:
	mov	eax, DWORD PTR -592[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -528[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	add	DWORD PTR -592[rbp], 1
.L74:
	cmp	DWORD PTR -592[rbp], 511
	jle	.L75
	jmp	.L76
.L96:
	mov	BYTE PTR -613[rbp], 0
	mov	BYTE PTR background[rip], 0
	mov	DWORD PTR -592[rbp], 0
	jmp	.L77
.L80:
	mov	eax, DWORD PTR -592[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -528[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	je	.L78
	mov	eax, DWORD PTR -592[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -528[rbp]
	add	rax, rdx
	lea	rcx, 4[rax]
	mov	eax, DWORD PTR -592[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -528[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	test	eax, eax
	je	.L78
	mov	eax, DWORD PTR -592[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -528[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR -592[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -528[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	mov	eax, DWORD PTR -592[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -528[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	and	eax, 127
	test	eax, eax
	jne	.L79
	mov	eax, DWORD PTR -592[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -528[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	sar	eax, 8
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L78
.L79:
	mov	eax, DWORD PTR -592[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -528[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	and	eax, 127
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L78:
	add	DWORD PTR -592[rbp], 1
.L77:
	cmp	DWORD PTR -592[rbp], 511
	jle	.L80
	mov	rdx, QWORD PTR -536[rbp]
	mov	rax, QWORD PTR -552[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getInput
	mov	QWORD PTR -552[rbp], rax
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -552[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 38
	jne	.L81
	mov	eax, DWORD PTR fmode[rip]
	test	eax, eax
	jne	.L82
	mov	BYTE PTR background[rip], 1
	jmp	.L81
.L82:
	mov	BYTE PTR background[rip], 0
.L81:
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -520[rbp], rax
	mov	rdx, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR -520[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -512[rbp], rax
	mov	rdx, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR -512[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -504[rbp], rax
	mov	rdx, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR -504[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	DWORD PTR -608[rbp], 0
	lea	rdx, -608[rbp]
	mov	rcx, QWORD PTR -576[rbp]
	mov	rax, QWORD PTR -552[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	tokenizeCommandLine
	mov	QWORD PTR -576[rbp], rax
	mov	DWORD PTR -604[rbp], 0
	lea	rdx, -604[rbp]
	mov	rcx, QWORD PTR -568[rbp]
	mov	rax, QWORD PTR -520[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	tokenizeExistingArr
	mov	QWORD PTR -568[rbp], rax
	mov	DWORD PTR -600[rbp], 0
	lea	rdx, -600[rbp]
	mov	rcx, QWORD PTR -560[rbp]
	mov	rax, QWORD PTR -504[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	tokenizeExistingArr2
	mov	QWORD PTR -560[rbp], rax
	mov	DWORD PTR -588[rbp], 0
	mov	DWORD PTR -592[rbp], 0
	jmp	.L83
.L89:
	mov	eax, DWORD PTR -592[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L84
	mov	BYTE PTR -613[rbp], 1
	jmp	.L85
.L84:
	mov	DWORD PTR -588[rbp], 0
	jmp	.L86
.L88:
	mov	eax, DWORD PTR -592[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -588[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 36
	jne	.L87
	mov	eax, DWORD PTR -592[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -588[rbp]
	cdqe
	add	rax, 1
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 36
	jne	.L87
	mov	BYTE PTR -613[rbp], 1
.L87:
	add	DWORD PTR -588[rbp], 1
.L86:
	mov	eax, DWORD PTR -592[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	cmp	DWORD PTR -588[rbp], eax
	jl	.L88
.L85:
	add	DWORD PTR -592[rbp], 1
.L83:
	mov	eax, DWORD PTR -608[rbp]
	cmp	DWORD PTR -592[rbp], eax
	jl	.L89
	cmp	BYTE PTR -613[rbp], 0
	je	.L90
	mov	ebx, DWORD PTR -608[rbp]
	call	getpid@PLT
	mov	esi, eax
	mov	rdx, QWORD PTR -576[rbp]
	mov	rax, QWORD PTR -512[rbp]
	mov	rcx, rdx
	mov	edx, ebx
	mov	rdi, rax
	call	expansionVar
	mov	QWORD PTR -544[rbp], rax
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L90:
	mov	eax, DWORD PTR -608[rbp]
	cmp	eax, 1
	jle	.L91
	mov	edx, DWORD PTR -608[rbp]
	mov	rcx, QWORD PTR -576[rbp]
	lea	rax, -612[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	Redirection
.L91:
	mov	eax, DWORD PTR fmode[rip]
	cmp	eax, 1
	jne	.L92
	mov	esi, DWORD PTR -600[rbp]
	lea	r8, -596[rbp]
	mov	rdi, QWORD PTR -528[rbp]
	lea	rcx, -612[rbp]
	lea	rdx, -614[rbp]
	mov	rax, QWORD PTR -560[rbp]
	sub	rsp, 8
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	push	QWORD PTR -72[rbp]
	push	QWORD PTR -80[rbp]
	push	QWORD PTR -88[rbp]
	push	QWORD PTR -96[rbp]
	push	QWORD PTR -104[rbp]
	push	QWORD PTR -112[rbp]
	push	QWORD PTR -120[rbp]
	push	QWORD PTR -128[rbp]
	push	QWORD PTR -136[rbp]
	push	QWORD PTR -144[rbp]
	push	QWORD PTR -152[rbp]
	push	QWORD PTR -160[rbp]
	push	QWORD PTR -168[rbp]
	push	QWORD PTR -176[rbp]
	push	QWORD PTR -192[rbp]
	push	QWORD PTR -200[rbp]
	push	QWORD PTR -208[rbp]
	push	QWORD PTR -216[rbp]
	push	QWORD PTR -224[rbp]
	push	QWORD PTR -232[rbp]
	push	QWORD PTR -240[rbp]
	push	QWORD PTR -248[rbp]
	push	QWORD PTR -256[rbp]
	push	QWORD PTR -264[rbp]
	push	QWORD PTR -272[rbp]
	push	QWORD PTR -280[rbp]
	push	QWORD PTR -288[rbp]
	push	QWORD PTR -296[rbp]
	push	QWORD PTR -304[rbp]
	push	QWORD PTR -312[rbp]
	push	QWORD PTR -320[rbp]
	push	QWORD PTR -328[rbp]
	push	QWORD PTR -336[rbp]
	push	QWORD PTR -352[rbp]
	push	QWORD PTR -360[rbp]
	push	QWORD PTR -368[rbp]
	push	QWORD PTR -376[rbp]
	push	QWORD PTR -384[rbp]
	push	QWORD PTR -392[rbp]
	push	QWORD PTR -400[rbp]
	push	QWORD PTR -408[rbp]
	push	QWORD PTR -416[rbp]
	push	QWORD PTR -424[rbp]
	push	QWORD PTR -432[rbp]
	push	QWORD PTR -440[rbp]
	push	QWORD PTR -448[rbp]
	push	QWORD PTR -456[rbp]
	push	QWORD PTR -464[rbp]
	push	QWORD PTR -472[rbp]
	push	QWORD PTR -480[rbp]
	push	QWORD PTR -488[rbp]
	push	QWORD PTR -496[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	shellCommands
	add	rsp, 464
.L92:
	movzx	eax, BYTE PTR -613[rbp]
	xor	eax, 1
	test	al, al
	je	.L93
	movzx	eax, BYTE PTR background[rip]
	test	al, al
	je	.L94
	mov	esi, DWORD PTR -600[rbp]
	lea	r8, -596[rbp]
	mov	rdi, QWORD PTR -528[rbp]
	lea	rcx, -612[rbp]
	lea	rdx, -614[rbp]
	mov	rax, QWORD PTR -560[rbp]
	sub	rsp, 8
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	push	QWORD PTR -72[rbp]
	push	QWORD PTR -80[rbp]
	push	QWORD PTR -88[rbp]
	push	QWORD PTR -96[rbp]
	push	QWORD PTR -104[rbp]
	push	QWORD PTR -112[rbp]
	push	QWORD PTR -120[rbp]
	push	QWORD PTR -128[rbp]
	push	QWORD PTR -136[rbp]
	push	QWORD PTR -144[rbp]
	push	QWORD PTR -152[rbp]
	push	QWORD PTR -160[rbp]
	push	QWORD PTR -168[rbp]
	push	QWORD PTR -176[rbp]
	push	QWORD PTR -192[rbp]
	push	QWORD PTR -200[rbp]
	push	QWORD PTR -208[rbp]
	push	QWORD PTR -216[rbp]
	push	QWORD PTR -224[rbp]
	push	QWORD PTR -232[rbp]
	push	QWORD PTR -240[rbp]
	push	QWORD PTR -248[rbp]
	push	QWORD PTR -256[rbp]
	push	QWORD PTR -264[rbp]
	push	QWORD PTR -272[rbp]
	push	QWORD PTR -280[rbp]
	push	QWORD PTR -288[rbp]
	push	QWORD PTR -296[rbp]
	push	QWORD PTR -304[rbp]
	push	QWORD PTR -312[rbp]
	push	QWORD PTR -320[rbp]
	push	QWORD PTR -328[rbp]
	push	QWORD PTR -336[rbp]
	push	QWORD PTR -352[rbp]
	push	QWORD PTR -360[rbp]
	push	QWORD PTR -368[rbp]
	push	QWORD PTR -376[rbp]
	push	QWORD PTR -384[rbp]
	push	QWORD PTR -392[rbp]
	push	QWORD PTR -400[rbp]
	push	QWORD PTR -408[rbp]
	push	QWORD PTR -416[rbp]
	push	QWORD PTR -424[rbp]
	push	QWORD PTR -432[rbp]
	push	QWORD PTR -440[rbp]
	push	QWORD PTR -448[rbp]
	push	QWORD PTR -456[rbp]
	push	QWORD PTR -464[rbp]
	push	QWORD PTR -472[rbp]
	push	QWORD PTR -480[rbp]
	push	QWORD PTR -488[rbp]
	push	QWORD PTR -496[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	shellCommands
	add	rsp, 464
	jmp	.L93
.L94:
	mov	esi, DWORD PTR -604[rbp]
	lea	r8, -596[rbp]
	mov	rdi, QWORD PTR -528[rbp]
	lea	rcx, -612[rbp]
	lea	rdx, -614[rbp]
	mov	rax, QWORD PTR -568[rbp]
	sub	rsp, 8
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	push	QWORD PTR -72[rbp]
	push	QWORD PTR -80[rbp]
	push	QWORD PTR -88[rbp]
	push	QWORD PTR -96[rbp]
	push	QWORD PTR -104[rbp]
	push	QWORD PTR -112[rbp]
	push	QWORD PTR -120[rbp]
	push	QWORD PTR -128[rbp]
	push	QWORD PTR -136[rbp]
	push	QWORD PTR -144[rbp]
	push	QWORD PTR -152[rbp]
	push	QWORD PTR -160[rbp]
	push	QWORD PTR -168[rbp]
	push	QWORD PTR -176[rbp]
	push	QWORD PTR -192[rbp]
	push	QWORD PTR -200[rbp]
	push	QWORD PTR -208[rbp]
	push	QWORD PTR -216[rbp]
	push	QWORD PTR -224[rbp]
	push	QWORD PTR -232[rbp]
	push	QWORD PTR -240[rbp]
	push	QWORD PTR -248[rbp]
	push	QWORD PTR -256[rbp]
	push	QWORD PTR -264[rbp]
	push	QWORD PTR -272[rbp]
	push	QWORD PTR -280[rbp]
	push	QWORD PTR -288[rbp]
	push	QWORD PTR -296[rbp]
	push	QWORD PTR -304[rbp]
	push	QWORD PTR -312[rbp]
	push	QWORD PTR -320[rbp]
	push	QWORD PTR -328[rbp]
	push	QWORD PTR -336[rbp]
	push	QWORD PTR -352[rbp]
	push	QWORD PTR -360[rbp]
	push	QWORD PTR -368[rbp]
	push	QWORD PTR -376[rbp]
	push	QWORD PTR -384[rbp]
	push	QWORD PTR -392[rbp]
	push	QWORD PTR -400[rbp]
	push	QWORD PTR -408[rbp]
	push	QWORD PTR -416[rbp]
	push	QWORD PTR -424[rbp]
	push	QWORD PTR -432[rbp]
	push	QWORD PTR -440[rbp]
	push	QWORD PTR -448[rbp]
	push	QWORD PTR -456[rbp]
	push	QWORD PTR -464[rbp]
	push	QWORD PTR -472[rbp]
	push	QWORD PTR -480[rbp]
	push	QWORD PTR -488[rbp]
	push	QWORD PTR -496[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	shellCommands
	add	rsp, 464
.L93:
	cmp	BYTE PTR -613[rbp], 0
	je	.L95
	mov	esi, DWORD PTR -608[rbp]
	lea	r8, -596[rbp]
	mov	rdi, QWORD PTR -528[rbp]
	lea	rcx, -612[rbp]
	lea	rdx, -614[rbp]
	mov	rax, QWORD PTR -544[rbp]
	sub	rsp, 8
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	push	QWORD PTR -72[rbp]
	push	QWORD PTR -80[rbp]
	push	QWORD PTR -88[rbp]
	push	QWORD PTR -96[rbp]
	push	QWORD PTR -104[rbp]
	push	QWORD PTR -112[rbp]
	push	QWORD PTR -120[rbp]
	push	QWORD PTR -128[rbp]
	push	QWORD PTR -136[rbp]
	push	QWORD PTR -144[rbp]
	push	QWORD PTR -152[rbp]
	push	QWORD PTR -160[rbp]
	push	QWORD PTR -168[rbp]
	push	QWORD PTR -176[rbp]
	push	QWORD PTR -192[rbp]
	push	QWORD PTR -200[rbp]
	push	QWORD PTR -208[rbp]
	push	QWORD PTR -216[rbp]
	push	QWORD PTR -224[rbp]
	push	QWORD PTR -232[rbp]
	push	QWORD PTR -240[rbp]
	push	QWORD PTR -248[rbp]
	push	QWORD PTR -256[rbp]
	push	QWORD PTR -264[rbp]
	push	QWORD PTR -272[rbp]
	push	QWORD PTR -280[rbp]
	push	QWORD PTR -288[rbp]
	push	QWORD PTR -296[rbp]
	push	QWORD PTR -304[rbp]
	push	QWORD PTR -312[rbp]
	push	QWORD PTR -320[rbp]
	push	QWORD PTR -328[rbp]
	push	QWORD PTR -336[rbp]
	push	QWORD PTR -352[rbp]
	push	QWORD PTR -360[rbp]
	push	QWORD PTR -368[rbp]
	push	QWORD PTR -376[rbp]
	push	QWORD PTR -384[rbp]
	push	QWORD PTR -392[rbp]
	push	QWORD PTR -400[rbp]
	push	QWORD PTR -408[rbp]
	push	QWORD PTR -416[rbp]
	push	QWORD PTR -424[rbp]
	push	QWORD PTR -432[rbp]
	push	QWORD PTR -440[rbp]
	push	QWORD PTR -448[rbp]
	push	QWORD PTR -456[rbp]
	push	QWORD PTR -464[rbp]
	push	QWORD PTR -472[rbp]
	push	QWORD PTR -480[rbp]
	push	QWORD PTR -488[rbp]
	push	QWORD PTR -496[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	shellCommands
	add	rsp, 464
.L95:
	mov	DWORD PTR -596[rbp], 0
	mov	eax, DWORD PTR -584[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -580[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
.L76:
	movzx	eax, BYTE PTR -614[rbp]
	test	al, al
	jne	.L96
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L98
	call	__stack_chk_fail@PLT
.L98:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	"84571.c"
	.text
	.comm	background,1,1
	.global	fmode
	.bss
	.align	2
	.type	fmode, %object
	.size	fmode, 4
fmode:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012:\000"
	.text
	.align	2
	.global	getInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	getInput, %function
getInput:
	@ 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
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r0, .L4
	bl	printf
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	free
.L2:
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, .L4+8
	ldr	r2, [r3]
	sub	r1, fp, #28
	sub	r3, fp, #24
	mov	r0, r3
	bl	getline
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r4, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	mov	r2, r3
	mov	r1, r4
	ldr	r0, [fp, #-16]
	bl	strncpy
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	stdout
	.word	stdin
	.size	getInput, .-getInput
	.section	.rodata
	.align	2
.LC1:
	.ascii	" \000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tokenizeCommandLine
	.syntax unified
	.arm
	.fpu softvfp
	.type	tokenizeCommandLine, %function
tokenizeCommandLine:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L11+4
	ldr	r0, [fp, #-32]
	bl	strtok_r
	str	r0, [fp, #-20]
	mov	r1, #4
	mov	r0, #512
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L7
.L8:
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	add	r0, r3, #1
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r4, r2, r3
	mov	r1, #1
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-40]
	str	r2, [r3]
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L11+4
	mov	r0, #0
	bl	strtok_r
	str	r0, [fp, #-20]
.L7:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-36]
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC2
	.word	.LC1
	.size	tokenizeCommandLine, .-tokenizeCommandLine
	.section	.rodata
	.align	2
.LC3:
	.ascii	">\000"
	.align	2
.LC4:
	.ascii	"<\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tokenizeExistingArr
	.syntax unified
	.arm
	.fpu softvfp
	.type	tokenizeExistingArr, %function
tokenizeExistingArr:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L20+4
	ldr	r0, [fp, #-32]
	bl	strtok_r
	str	r0, [fp, #-20]
	mov	r1, #4
	mov	r0, #512
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L14
.L17:
	ldr	r1, .L20+8
	ldr	r0, [fp, #-20]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r1, .L20+12
	ldr	r0, [fp, #-20]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	add	r0, r3, #1
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r4, r2, r3
	mov	r1, #1
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-40]
	str	r2, [r3]
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L20+4
	mov	r0, #0
	bl	strtok_r
	str	r0, [fp, #-20]
	b	.L14
.L15:
	ldr	r3, [fp, #-36]
	b	.L18
.L14:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-36]
.L18:
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC5
	.word	.LC1
	.word	.LC3
	.word	.LC4
	.size	tokenizeExistingArr, .-tokenizeExistingArr
	.section	.rodata
	.align	2
.LC6:
	.ascii	"&\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tokenizeExistingArr2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tokenizeExistingArr2, %function
tokenizeExistingArr2:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L31+4
	ldr	r0, [fp, #-32]
	bl	strtok_r
	str	r0, [fp, #-20]
	mov	r1, #4
	mov	r0, #512
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L23
.L27:
	ldr	r1, .L31+8
	ldr	r0, [fp, #-20]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	add	r0, r3, #1
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r4, r2, r3
	mov	r1, #1
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-40]
	str	r2, [r3]
	b	.L30
.L24:
	ldr	r3, [fp, #-36]
	b	.L28
.L30:
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L31+4
	mov	r0, #0
	bl	strtok_r
	str	r0, [fp, #-20]
.L23:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-36]
.L28:
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC7
	.word	.LC1
	.word	.LC6
	.size	tokenizeExistingArr2, .-tokenizeExistingArr2
	.section	.rodata
	.align	2
.LC8:
	.ascii	"cannot open %s for input\012\000"
	.align	2
.LC9:
	.ascii	"source dup2()\000"
	.align	2
.LC10:
	.ascii	"cannot open %s for output\012\000"
	.align	2
.LC11:
	.ascii	"target dup2()\000"
	.text
	.align	2
	.global	Redirection
	.syntax unified
	.arm
	.fpu softvfp
	.type	Redirection, %function
Redirection:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L34
.L37:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L45
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L36
.L35:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L45+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L36:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L34:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L37
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L45+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-44]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L39
	ldr	r3, [fp, #-44]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L45+8
	bl	printf
	ldr	r3, .L45+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-40]
	mov	r2, #1
	str	r2, [r3]
	b	.L38
.L39:
	ldr	r3, [fp, #-40]
	mov	r2, #0
	str	r2, [r3]
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	dup2
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L40
	ldr	r0, .L45+16
	bl	perror
	ldr	r3, .L45+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-40]
	mov	r2, #1
	str	r2, [r3]
.L40:
	mov	r2, #1
	mov	r1, #2
	ldr	r0, [fp, #-20]
	bl	fcntl
.L38:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L45
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	ldr	r3, [fp, #-44]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #420
	ldr	r1, .L45+20
	mov	r0, r3
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L42
	ldr	r3, [fp, #-44]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L45+24
	bl	printf
	ldr	r3, .L45+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-40]
	mov	r2, #1
	str	r2, [r3]
	b	.L44
.L42:
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	dup2
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L43
	ldr	r0, .L45+28
	bl	perror
	ldr	r3, .L45+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-40]
	mov	r2, #1
	str	r2, [r3]
.L43:
	mov	r2, #1
	mov	r1, #2
	ldr	r0, [fp, #-12]
	bl	fcntl
.L44:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC3
	.word	.LC4
	.word	.LC8
	.word	stdout
	.word	.LC9
	.word	577
	.word	.LC10
	.word	.LC11
	.size	Redirection, .-Redirection
	.section	.rodata
	.align	2
.LC12:
	.ascii	"exit\000"
	.align	2
.LC13:
	.ascii	"status\000"
	.align	2
.LC14:
	.ascii	"exit value %d\012\000"
	.align	2
.LC15:
	.ascii	"terminated by signal %d\012\000"
	.align	2
.LC16:
	.ascii	"cd\000"
	.align	2
.LC17:
	.ascii	"./\000"
	.align	2
.LC18:
	.ascii	"HOME\000"
	.align	2
.LC19:
	.ascii	"%s \000"
	.align	2
.LC20:
	.ascii	"fork() failed!\000"
	.align	2
.LC21:
	.ascii	"execlp\000"
	.align	2
.LC22:
	.ascii	"background pid is %d\012\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	shellCommands
	.syntax unified
	.arm
	.fpu softvfp
	.type	shellCommands, %function
shellCommands:
	@ args = 428, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-52]
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r1, .L66+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L48
	bl	getpid
	mov	r3, r0
	mov	r1, #1
	mov	r0, r3
	bl	kill
	ldr	r3, [fp, #-40]
	mov	r2, #0
	strb	r2, [r3]
.L48:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r1, .L66+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L49
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L50
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L66+12
	bl	printf
	ldr	r3, .L66+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L49
.L50:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	and	r3, r3, #127
	mov	r1, r3
	ldr	r0, .L66+20
	bl	printf
	ldr	r3, .L66+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L49:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r1, .L66+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	ble	.L52
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L53
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L53
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	strcpy
	ldr	r0, [fp, #-12]
	bl	chdir
	b	.L51
.L53:
	ldr	r3, [fp, #-12]
	ldr	r2, .L66+28
	mov	r0, r3
	mov	r1, r2
	mov	r3, #3
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	strcat
	ldr	r0, [fp, #-12]
	bl	chdir
	b	.L51
.L52:
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	bne	.L51
	ldr	r0, .L66+32
	bl	getenv
	mov	r3, r0
	mov	r0, r3
	bl	chdir
.L51:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L55
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L56
.L57:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L66+36
	bl	printf
	ldr	r3, .L66+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L56:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L57
	b	.L65
.L55:
	ldr	r3, .L66+40
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L59
	mov	r3, #0
	str	r3, [fp, #12]
	add	r3, fp, #12
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
.L59:
	add	r3, fp, #292
	mov	r2, #0
	mov	r1, r3
	mov	r0, #20
	bl	sigaction
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L60
	ldr	r0, .L66+44
	bl	perror
	ldr	r3, .L66+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #1
	bl	exit
.L60:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L61
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r0, .L66+48
	bl	perror
	ldr	r3, .L66+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #2
	bl	exit
.L61:
	add	r3, fp, #152
	mov	r2, #0
	mov	r1, r3
	mov	r0, #20
	bl	sigaction
	ldr	r3, .L66+40
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L62
	sub	r3, fp, #24
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	waitpid
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	add	r3, fp, #12
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
.L62:
	ldr	r3, .L66+40
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L65
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r1, [fp, #-16]
	ldr	r0, .L66+52
	bl	printf
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [fp, #-44]
	ldr	r2, [r2]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-52]
	str	r2, [r3]
	sub	r3, fp, #24
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	waitpid
	str	r0, [fp, #-16]
.L65:
	nop
	ldr	r3, .L66
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L64
	bl	__stack_chk_fail
.L64:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC23
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	stdout
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	background
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	shellCommands, .-shellCommands
	.section	.rodata
	.align	2
.LC24:
	.ascii	"%d\000"
	.align	2
.LC25:
	.ascii	"$$\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	expansionVar
	.syntax unified
	.arm
	.fpu softvfp
	.type	expansionVar, %function
expansionVar:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	str	r3, [fp, #-76]
	ldr	r3, .L81
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-68]
	ldr	r2, .L81+4
	mov	r1, #0
	mov	r0, #0
	bl	snprintf
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-68]
	ldr	r2, .L81+4
	ldr	r0, [fp, #-36]
	bl	snprintf
	ldr	r0, [fp, #-64]
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r1, #4
	mov	r0, #512
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-64]
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-24]
	bl	strcpy
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	bne	.L69
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	ldr	r1, .L81+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L70
	sub	r3, fp, #60
	mov	r2, r3
	ldr	r1, .L81+8
	ldr	r0, [fp, #-24]
	bl	strtok_r
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-32]
	bl	strcpy
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	strcat
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	str	r2, [r3]
	b	.L69
.L70:
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	strcat
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	str	r2, [r3]
.L69:
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	ble	.L71
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	sub	r3, fp, #60
	mov	r2, r3
	ldr	r1, .L81+12
	ldr	r0, [fp, #-64]
	bl	strtok_r
	str	r0, [fp, #-44]
	b	.L72
.L78:
	ldr	r1, .L81+8
	ldr	r0, [fp, #-44]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L73
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L74
.L76:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #36
	bne	.L75
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #36
	bne	.L75
	sub	r3, fp, #56
	mov	r2, r3
	ldr	r1, .L81+8
	ldr	r0, [fp, #-44]
	bl	strtok_r
	str	r0, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-32]
	bl	strcpy
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	strcat
	ldr	r0, [fp, #-44]
	bl	strlen
	mov	r3, r0
	add	r0, r3, #1
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	mov	r1, #1
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L75:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L74:
	ldr	r0, [fp, #-44]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-52]
	cmp	r3, r2
	blt	.L76
	ldr	r0, [fp, #-44]
	bl	strlen
	mov	r3, r0
	add	r0, r3, #1
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	mov	r1, #1
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L73:
	ldr	r1, .L81+8
	ldr	r0, [fp, #-44]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L77
	ldr	r0, [fp, #-44]
	bl	strlen
	mov	r3, r0
	add	r0, r3, #1
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	mov	r1, #1
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L77:
	sub	r3, fp, #60
	mov	r2, r3
	ldr	r1, .L81+12
	mov	r0, #0
	bl	strtok_r
	str	r0, [fp, #-44]
.L72:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L78
.L71:
	ldr	r3, [fp, #-28]
	ldr	r2, .L81
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L80
	bl	__stack_chk_fail
.L80:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L82:
	.align	2
.L81:
	.word	.LC26
	.word	.LC24
	.word	.LC25
	.word	.LC1
	.size	expansionVar, .-expansionVar
	.section	.rodata
	.align	2
.LC27:
	.ascii	"Entering foreground-only mode (& is now ignored)\012"
	.ascii	"\000"
	.align	2
.LC28:
	.ascii	"Exiting foreground-only mode\012\000"
	.text
	.align	2
	.global	handle_SIGTSTP
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_SIGTSTP, %function
handle_SIGTSTP:
	@ 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]
	ldr	r3, .L87
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L84
	ldr	r3, .L87+4
	str	r3, [fp, #-8]
	mov	r2, #50
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	write
	ldr	r3, .L87
	mov	r2, #1
	str	r2, [r3]
	b	.L86
.L84:
	ldr	r3, .L87+8
	str	r3, [fp, #-12]
	mov	r2, #30
	ldr	r1, [fp, #-12]
	mov	r0, #1
	bl	write
	ldr	r3, .L87
	mov	r2, #0
	str	r2, [r3]
.L86:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L88:
	.align	2
.L87:
	.word	fmode
	.word	.LC27
	.word	.LC28
	.size	handle_SIGTSTP, .-handle_SIGTSTP
	.section	.rodata
	.align	2
.LC29:
	.ascii	"background pid %d is done: \000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 512
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #948
	str	r0, [fp, #-528]
	str	r1, [fp, #-532]
	ldr	r3, .L115
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #2048
	str	r3, [fp, #-472]
	mov	r3, #1
	strb	r3, [fp, #-522]
	mov	r3, #0
	str	r3, [fp, #-500]
	mov	r3, #0
	str	r3, [fp, #-496]
	mov	r3, #0
	str	r3, [fp, #-492]
	mov	r3, #0
	str	r3, [fp, #-488]
	mov	r3, #0
	strb	r3, [fp, #-521]
	sub	r3, fp, #444
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #304
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #164
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r0, #1
	bl	dup
	str	r0, [fp, #-468]
	mov	r0, #0
	bl	dup
	str	r0, [fp, #-464]
	mov	r3, #0
	str	r3, [fp, #-504]
	mov	r3, #1
	str	r3, [fp, #-444]
	mov	r3, #0
	str	r3, [fp, #-164]
	ldr	r3, .L115+4
	str	r3, [fp, #-304]
	mov	r3, #268435456
	str	r3, [fp, #-172]
	sub	r3, fp, #304
	mov	r2, #0
	mov	r1, r3
	mov	r0, #20
	bl	sigaction
	sub	r3, fp, #444
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	mov	r0, #4096
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-460]
	mov	r3, #0
	str	r3, [fp, #-484]
	b	.L90
.L91:
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-484]
	add	r3, r3, #1
	str	r3, [fp, #-484]
.L90:
	ldr	r3, [fp, #-484]
	cmp	r3, #512
	blt	.L91
	b	.L92
.L112:
	mov	r3, #0
	strb	r3, [fp, #-521]
	ldr	r3, .L115+8
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-484]
	b	.L93
.L96:
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L94
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r2, #1
	mov	r1, r3
	bl	waitpid
	mov	r3, r0
	cmp	r3, #0
	beq	.L94
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L115+12
	bl	printf
	ldr	r3, .L115+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L95
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L115+20
	bl	printf
	ldr	r3, .L115+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L94
.L95:
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	and	r3, r3, #127
	mov	r1, r3
	ldr	r0, .L115+24
	bl	printf
	ldr	r3, .L115+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L94:
	ldr	r3, [fp, #-484]
	add	r3, r3, #1
	str	r3, [fp, #-484]
.L93:
	ldr	r3, [fp, #-484]
	cmp	r3, #512
	blt	.L96
	ldr	r1, [fp, #-472]
	ldr	r0, [fp, #-488]
	bl	getInput
	str	r0, [fp, #-488]
	ldr	r0, [fp, #-488]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-488]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #38
	bne	.L97
	ldr	r3, .L115+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L98
	ldr	r3, .L115+8
	mov	r2, #1
	strb	r2, [r3]
	b	.L97
.L98:
	ldr	r3, .L115+8
	mov	r2, #0
	strb	r2, [r3]
.L97:
	ldr	r0, [fp, #-488]
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-456]
	ldr	r1, [fp, #-488]
	ldr	r0, [fp, #-456]
	bl	strcpy
	ldr	r0, [fp, #-488]
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-452]
	ldr	r1, [fp, #-488]
	ldr	r0, [fp, #-452]
	bl	strcpy
	ldr	r0, [fp, #-488]
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-448]
	ldr	r1, [fp, #-488]
	ldr	r0, [fp, #-448]
	bl	strcpy
	mov	r3, #0
	str	r3, [fp, #-516]
	sub	r3, fp, #516
	mov	r2, r3
	ldr	r1, [fp, #-500]
	ldr	r0, [fp, #-488]
	bl	tokenizeCommandLine
	str	r0, [fp, #-500]
	mov	r3, #0
	str	r3, [fp, #-512]
	sub	r3, fp, #512
	mov	r2, r3
	ldr	r1, [fp, #-496]
	ldr	r0, [fp, #-456]
	bl	tokenizeExistingArr
	str	r0, [fp, #-496]
	mov	r3, #0
	str	r3, [fp, #-508]
	sub	r3, fp, #508
	mov	r2, r3
	ldr	r1, [fp, #-492]
	ldr	r0, [fp, #-448]
	bl	tokenizeExistingArr2
	str	r0, [fp, #-492]
	mov	r3, #0
	str	r3, [fp, #-476]
	mov	r3, #0
	str	r3, [fp, #-484]
	b	.L99
.L105:
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-500]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L115+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L100
	mov	r3, #1
	strb	r3, [fp, #-521]
	b	.L101
.L100:
	mov	r3, #0
	str	r3, [fp, #-476]
	b	.L102
.L104:
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-500]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-476]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #36
	bne	.L103
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-500]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #36
	bne	.L103
	mov	r3, #1
	strb	r3, [fp, #-521]
.L103:
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	str	r3, [fp, #-476]
.L102:
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-500]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-476]
	cmp	r3, r2
	blt	.L104
.L101:
	ldr	r3, [fp, #-484]
	add	r3, r3, #1
	str	r3, [fp, #-484]
.L99:
	ldr	r3, [fp, #-516]
	ldr	r2, [fp, #-484]
	cmp	r2, r3
	blt	.L105
	ldrb	r3, [fp, #-521]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L106
	bl	getpid
	mov	r1, r0
	ldr	r2, [fp, #-516]
	ldr	r3, [fp, #-500]
	ldr	r0, [fp, #-452]
	bl	expansionVar
	str	r0, [fp, #-480]
	ldr	r3, .L115+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L106:
	ldr	r3, [fp, #-516]
	cmp	r3, #1
	ble	.L107
	ldr	r2, [fp, #-516]
	sub	r3, fp, #520
	ldr	r1, [fp, #-500]
	mov	r0, r3
	bl	Redirection
.L107:
	ldr	r3, .L115+28
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L108
	ldr	r5, [fp, #-508]
	sub	r6, fp, #520
	sub	r4, fp, #520
	sub	r4, r4, #2
	add	r0, sp, #288
	sub	r3, fp, #164
	mov	r2, #140
	mov	r1, r3
	bl	memcpy
	add	r0, sp, #148
	sub	r3, fp, #304
	mov	r2, #140
	mov	r1, r3
	bl	memcpy
	add	r0, sp, #8
	sub	r3, fp, #444
	mov	r2, #140
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #504
	str	r3, [sp, #4]
	ldr	r3, [fp, #-460]
	str	r3, [sp]
	mov	r3, r6
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [fp, #-492]
	bl	shellCommands
.L108:
	ldrb	r3, [fp, #-521]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L109
	ldr	r3, .L115+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L110
	ldr	r5, [fp, #-508]
	sub	r6, fp, #520
	sub	r4, fp, #520
	sub	r4, r4, #2
	add	r0, sp, #288
	sub	r3, fp, #164
	mov	r2, #140
	mov	r1, r3
	bl	memcpy
	add	r0, sp, #148
	sub	r3, fp, #304
	mov	r2, #140
	mov	r1, r3
	bl	memcpy
	add	r0, sp, #8
	sub	r3, fp, #444
	mov	r2, #140
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #504
	str	r3, [sp, #4]
	ldr	r3, [fp, #-460]
	str	r3, [sp]
	mov	r3, r6
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [fp, #-492]
	bl	shellCommands
	b	.L109
.L110:
	ldr	r5, [fp, #-512]
	sub	r6, fp, #520
	sub	r4, fp, #520
	sub	r4, r4, #2
	add	r0, sp, #288
	sub	r3, fp, #164
	mov	r2, #140
	mov	r1, r3
	bl	memcpy
	add	r0, sp, #148
	sub	r3, fp, #304
	mov	r2, #140
	mov	r1, r3
	bl	memcpy
	add	r0, sp, #8
	sub	r3, fp, #444
	mov	r2, #140
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #504
	str	r3, [sp, #4]
	ldr	r3, [fp, #-460]
	str	r3, [sp]
	mov	r3, r6
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [fp, #-496]
	bl	shellCommands
.L109:
	ldrb	r3, [fp, #-521]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L111
	ldr	r5, [fp, #-516]
	sub	r6, fp, #520
	sub	r4, fp, #520
	sub	r4, r4, #2
	add	r0, sp, #288
	sub	r3, fp, #164
	mov	r2, #140
	mov	r1, r3
	bl	memcpy
	add	r0, sp, #148
	sub	r3, fp, #304
	mov	r2, #140
	mov	r1, r3
	bl	memcpy
	add	r0, sp, #8
	sub	r3, fp, #444
	mov	r2, #140
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #504
	str	r3, [sp, #4]
	ldr	r3, [fp, #-460]
	str	r3, [sp]
	mov	r3, r6
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [fp, #-480]
	bl	shellCommands
.L111:
	mov	r3, #0
	str	r3, [fp, #-504]
	mov	r1, #1
	ldr	r0, [fp, #-468]
	bl	dup2
	mov	r1, #0
	ldr	r0, [fp, #-464]
	bl	dup2
.L92:
	ldrb	r3, [fp, #-522]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L112
	mov	r3, #0
	ldr	r2, .L115
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L114
	bl	__stack_chk_fail
.L114:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L116:
	.align	2
.L115:
	.word	.LC30
	.word	handle_SIGTSTP
	.word	background
	.word	.LC29
	.word	stdout
	.word	.LC14
	.word	.LC15
	.word	fmode
	.word	.LC25
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
