	.file	"175144310.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"clear"
	.align 8
.LC1:
	.string	"\n\n******************************"
.LC2:
	.string	"\n\t~*Alexander's Shell*~"
.LC3:
	.string	"\n\t   ~*CSC 415*~"
	.align 8
.LC4:
	.string	"\n\n******************************\n\n\n\n\n"
	.text
	.globl	init
	.type	init, @function
init:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 1
	call	sleep@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init, .-init
	.section	.rodata
	.align 8
.LC5:
	.string	"Creating new process was unsuccessful."
.LC6:
	.string	"Error: failed to execute %s.\n"
	.text
	.globl	execute
	.type	execute, @function
execute:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L3
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L3:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L5
	cmp	DWORD PTR -28[rbp], 0
	je	.L6
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 0
	mov	edi, eax
	call	setpgid@PLT
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	cmp	DWORD PTR -28[rbp], 0
	setne	al
	movzx	edx, al
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
.L7:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	execute, .-execute
	.section	.rodata
.LC7:
	.string	"&"
.LC8:
	.string	"|"
.LC9:
	.string	"<"
.LC10:
	.string	">"
.LC11:
	.string	">>"
	.text
	.globl	executeCommands
	.type	executeCommands, @function
executeCommands:
.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	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	indexOfArg
	test	eax, eax
	js	.L9
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	backgroundProcess
	jmp	.L15
.L9:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	indexOfArg
	test	eax, eax
	js	.L11
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	pipeCommand
	jmp	.L15
.L11:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	indexOfArg
	test	eax, eax
	js	.L12
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	redirectInput
	jmp	.L15
.L12:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	indexOfArg
	test	eax, eax
	js	.L13
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	redirectOutput
	jmp	.L15
.L13:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	indexOfArg
	test	eax, eax
	js	.L14
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	redirectOutput_append
	jmp	.L15
.L14:
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	execute
.L15:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	executeCommands, .-executeCommands
	.section	.rodata
	.align 8
.LC12:
	.string	"Error: '&' should be placed at the end of command.\n"
	.text
	.globl	backgroundProcess
	.type	backgroundProcess, @function
backgroundProcess:
.LFB9:
	.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 -28[rbp], esi
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	indexOfArg
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	je	.L17
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 51
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	jmp	.L19
.L17:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	sub	DWORD PTR -28[rbp], 1
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 1
	mov	esi, ecx
	mov	rdi, rax
	call	executeCommands
.L19:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	backgroundProcess, .-backgroundProcess
	.section	.rodata
	.align 8
.LC13:
	.string	"Error: '>' is incorrectly placed.\n"
	.align 8
.LC14:
	.string	"Error: failed to open or create file %s.\n"
	.text
	.globl	redirectOutput
	.type	redirectOutput, @function
redirectOutput:
.LFB10:
	.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, 72
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -108[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	edx, DWORD PTR -108[rbp]
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	indexOfArg
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -108[rbp], 2
	jle	.L21
	mov	eax, DWORD PTR -108[rbp]
	sub	eax, 2
	cmp	DWORD PTR -88[rbp], eax
	je	.L22
.L21:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rsp, rbx
	jmp	.L20
.L22:
	mov	eax, DWORD PTR -88[rbp]
	add	eax, 1
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	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 -64[rbp], rax
	mov	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -84[rbp], eax
	mov	DWORD PTR -92[rbp], 0
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	add	DWORD PTR -92[rbp], 1
.L27:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L28
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -84[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], 0
	mov	edi, 1
	call	dup@PLT
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 420
	mov	esi, 578
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	jns	.L29
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L30
.L29:
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	ecx, DWORD PTR -84[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	executeCommands
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -80[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
.L30:
	mov	rsp, rbx
.L20:
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	redirectOutput, .-redirectOutput
	.section	.rodata
	.align 8
.LC15:
	.string	"Error: '>>' is incorrectly placed.\n"
	.text
	.globl	redirectOutput_append
	.type	redirectOutput_append, @function
redirectOutput_append:
.LFB11:
	.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, 72
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -108[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	edx, DWORD PTR -108[rbp]
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	indexOfArg
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -108[rbp], 2
	jle	.L33
	mov	eax, DWORD PTR -108[rbp]
	sub	eax, 2
	cmp	DWORD PTR -88[rbp], eax
	je	.L34
.L33:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rsp, rbx
	jmp	.L32
.L34:
	mov	eax, DWORD PTR -88[rbp]
	add	eax, 1
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L36:
	cmp	rsp, rdx
	je	.L37
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L36
.L37:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L38
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L38:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -84[rbp], eax
	mov	DWORD PTR -92[rbp], 0
	jmp	.L39
.L40:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	add	DWORD PTR -92[rbp], 1
.L39:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L40
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -84[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], 0
	mov	edi, 1
	call	dup@PLT
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 420
	mov	esi, 1090
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	jns	.L41
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L42
.L41:
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	ecx, DWORD PTR -84[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	executeCommands
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -80[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
.L42:
	mov	rsp, rbx
.L32:
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	redirectOutput_append, .-redirectOutput_append
	.section	.rodata
	.align 8
.LC16:
	.string	"Error:'<' is incorrectly placed.\n"
	.align 8
.LC17:
	.string	"Error: failed to open file %s.\n"
	.text
	.globl	redirectInput
	.type	redirectInput, @function
redirectInput:
.LFB12:
	.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, 72
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -108[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	edx, DWORD PTR -108[rbp]
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	indexOfArg
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -108[rbp], 2
	jle	.L45
	mov	eax, DWORD PTR -108[rbp]
	sub	eax, 2
	cmp	DWORD PTR -88[rbp], eax
	je	.L46
.L45:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	rsp, rbx
	jmp	.L44
.L46:
	mov	eax, DWORD PTR -88[rbp]
	add	eax, 1
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L48:
	cmp	rsp, rdx
	je	.L49
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L48
.L49:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L50
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L50:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -84[rbp], eax
	mov	DWORD PTR -92[rbp], 0
	jmp	.L51
.L52:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	add	DWORD PTR -92[rbp], 1
.L51:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L52
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -84[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], 0
	mov	edi, 0
	call	dup@PLT
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	jns	.L53
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L54
.L53:
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	ecx, DWORD PTR -84[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	executeCommands
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -80[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
.L54:
	mov	rsp, rbx
.L44:
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	redirectInput, .-redirectInput
	.section	.rodata
	.align 8
.LC18:
	.string	"Unsuccessful creating process."
	.text
	.globl	pipeCommand
	.type	pipeCommand, @function
pipeCommand:
.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, 2128
	mov	QWORD PTR -2120[rbp], rdi
	mov	DWORD PTR -2124[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2092[rbp], -1
	mov	DWORD PTR -2088[rbp], -1
	mov	DWORD PTR -2084[rbp], -1
	mov	DWORD PTR -2080[rbp], 0
	jmp	.L57
.L72:
	mov	eax, DWORD PTR -2080[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L58
	mov	eax, DWORD PTR -2124[rbp]
	sub	eax, 1
	cmp	DWORD PTR -2080[rbp], eax
	jne	.L59
.L58:
	mov	DWORD PTR -2100[rbp], 0
	cmp	DWORD PTR -2092[rbp], 0
	jle	.L60
	mov	eax, DWORD PTR -2092[rbp]
	add	eax, 1
	mov	DWORD PTR -2096[rbp], eax
	jmp	.L61
.L60:
	mov	DWORD PTR -2096[rbp], 0
.L61:
	mov	eax, DWORD PTR -2124[rbp]
	sub	eax, 1
	cmp	DWORD PTR -2080[rbp], eax
	jge	.L66
	mov	eax, DWORD PTR -2080[rbp]
	mov	DWORD PTR -2092[rbp], eax
	jmp	.L63
.L64:
	mov	eax, DWORD PTR -2096[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2120[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -2100[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -2100[rbp], edx
	mov	rdx, QWORD PTR [rcx]
	cdqe
	mov	QWORD PTR -2064[rbp+rax*8], rdx
	add	DWORD PTR -2096[rbp], 1
.L63:
	mov	eax, DWORD PTR -2096[rbp]
	cmp	eax, DWORD PTR -2080[rbp]
	jl	.L64
	mov	eax, DWORD PTR -2100[rbp]
	cdqe
	mov	QWORD PTR -2064[rbp+rax*8], 0
	lea	rax, -2072[rbp]
	mov	rdi, rax
	call	pipe@PLT
	mov	eax, DWORD PTR -2068[rbp]
	mov	DWORD PTR -2084[rbp], eax
	jmp	.L65
.L67:
	mov	eax, DWORD PTR -2096[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2120[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -2100[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -2100[rbp], edx
	mov	rdx, QWORD PTR [rcx]
	cdqe
	mov	QWORD PTR -2064[rbp+rax*8], rdx
	add	DWORD PTR -2096[rbp], 1
.L66:
	mov	eax, DWORD PTR -2096[rbp]
	cmp	eax, DWORD PTR -2080[rbp]
	jle	.L67
	mov	eax, DWORD PTR -2100[rbp]
	cdqe
	mov	QWORD PTR -2064[rbp+rax*8], 0
	mov	DWORD PTR -2084[rbp], -1
.L65:
	call	fork@PLT
	mov	DWORD PTR -2076[rbp], eax
	cmp	DWORD PTR -2076[rbp], 0
	jns	.L68
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L59
.L68:
	cmp	DWORD PTR -2076[rbp], 0
	jne	.L69
	cmp	DWORD PTR -2088[rbp], -1
	je	.L70
	cmp	DWORD PTR -2088[rbp], 0
	je	.L70
	mov	eax, DWORD PTR -2088[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -2088[rbp]
	mov	edi, eax
	call	close@PLT
.L70:
	cmp	DWORD PTR -2084[rbp], -1
	je	.L71
	cmp	DWORD PTR -2084[rbp], 1
	je	.L71
	mov	eax, DWORD PTR -2084[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -2084[rbp]
	mov	edi, eax
	call	close@PLT
.L71:
	mov	ecx, DWORD PTR -2100[rbp]
	lea	rax, -2064[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	executeCommands
	mov	edi, 0
	call	exit@PLT
.L69:
	mov	eax, DWORD PTR -2076[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR -2088[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -2084[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -2072[rbp]
	mov	DWORD PTR -2088[rbp], eax
.L59:
	add	DWORD PTR -2080[rbp], 1
.L57:
	mov	eax, DWORD PTR -2080[rbp]
	cmp	eax, DWORD PTR -2124[rbp]
	jl	.L72
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L73
	call	__stack_chk_fail@PLT
.L73:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	pipeCommand, .-pipeCommand
	.globl	indexOfArg
	.type	indexOfArg, @function
indexOfArg:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L75
.L78:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L76
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L77
.L76:
	add	DWORD PTR -4[rbp], 1
.L75:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L78
	mov	eax, -1
.L77:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	indexOfArg, .-indexOfArg
	.section	.rodata
.LC19:
	.string	"myShell >> "
.LC20:
	.string	" "
.LC21:
	.string	"cd"
.LC22:
	.string	"\n"
.LC23:
	.string	"exit"
	.text
	.globl	main
	.type	main, @function
main:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 304
	mov	DWORD PTR -292[rbp], edi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 1
	mov	edi, 17
	call	signal@PLT
	mov	eax, 0
	call	init
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L80
.L90:
	mov	DWORD PTR -292[rbp], 0
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -272[rbp+rax], 0
	lea	rax, -272[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR -280[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L83
	mov	eax, DWORD PTR -292[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -292[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -304[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -280[rbp]
	mov	QWORD PTR [rdx], rax
	lea	rsi, .LC22[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -280[rbp], rax
	mov	eax, DWORD PTR -292[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -292[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -304[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -280[rbp]
	mov	QWORD PTR [rdx], rax
	jmp	.L82
.L84:
	mov	eax, DWORD PTR -292[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -292[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -304[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -280[rbp]
	mov	QWORD PTR [rdx], rax
	lea	rsi, .LC20[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -280[rbp], rax
.L83:
	cmp	QWORD PTR -280[rbp], 0
	jne	.L84
.L82:
	cmp	DWORD PTR -292[rbp], 0
	jle	.L85
	mov	rax, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L93
	mov	rax, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L88
	mov	rax, QWORD PTR -304[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	chdir@PLT
	jmp	.L85
.L88:
	mov	rax, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L89
	lea	rdi, .LC0[rip]
	call	system@PLT
	jmp	.L85
.L89:
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	ecx, DWORD PTR -292[rbp]
	mov	rax, QWORD PTR -304[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	executeCommands
.L85:
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
.L80:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L90
	jmp	.L87
.L93:
	nop
.L87:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L92
	call	__stack_chk_fail@PLT
.L92:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.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	"175144310.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"clear\000"
	.align	2
.LC1:
	.ascii	"\012\012******************************\000"
	.align	2
.LC2:
	.ascii	"\012\011~*Alexander's Shell*~\000"
	.align	2
.LC3:
	.ascii	"\012\011   ~*CSC 415*~\000"
	.align	2
.LC4:
	.ascii	"\012\012******************************\012\012\012\012"
	.ascii	"\012\000"
	.text
	.align	2
	.global	init
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	system
	ldr	r0, .L2+4
	bl	printf
	ldr	r0, .L2+8
	bl	printf
	ldr	r0, .L2+12
	bl	printf
	ldr	r0, .L2+16
	bl	puts
	mov	r0, #1
	bl	sleep
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	init, .-init
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Creating new process was unsuccessful.\000"
	.align	2
.LC6:
	.ascii	"Error: failed to execute %s.\012\000"
	.text
	.align	2
	.global	execute
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute, %function
execute:
	@ 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]
	str	r1, [fp, #-20]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L10
	bl	printf
	b	.L9
.L5:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L8
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	setpgid
.L8:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	execvp
	ldr	r3, .L10+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L10+8
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L7:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	waitpid
.L9:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC5
	.word	stderr
	.word	.LC6
	.size	execute, .-execute
	.section	.rodata
	.align	2
.LC7:
	.ascii	"&\000"
	.align	2
.LC8:
	.ascii	"|\000"
	.align	2
.LC9:
	.ascii	"<\000"
	.align	2
.LC10:
	.ascii	">\000"
	.align	2
.LC11:
	.ascii	">>\000"
	.text
	.align	2
	.global	executeCommands
	.syntax unified
	.arm
	.fpu softvfp
	.type	executeCommands, %function
executeCommands:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, .L20
	ldr	r0, [fp, #-8]
	bl	indexOfArg
	mov	r3, r0
	cmp	r3, #0
	blt	.L13
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	backgroundProcess
	b	.L19
.L13:
	ldr	r2, [fp, #-12]
	ldr	r1, .L20+4
	ldr	r0, [fp, #-8]
	bl	indexOfArg
	mov	r3, r0
	cmp	r3, #0
	blt	.L15
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	pipeCommand
	b	.L19
.L15:
	ldr	r2, [fp, #-12]
	ldr	r1, .L20+8
	ldr	r0, [fp, #-8]
	bl	indexOfArg
	mov	r3, r0
	cmp	r3, #0
	blt	.L16
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	redirectInput
	b	.L19
.L16:
	ldr	r2, [fp, #-12]
	ldr	r1, .L20+12
	ldr	r0, [fp, #-8]
	bl	indexOfArg
	mov	r3, r0
	cmp	r3, #0
	blt	.L17
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	redirectOutput
	b	.L19
.L17:
	ldr	r2, [fp, #-12]
	ldr	r1, .L20+16
	ldr	r0, [fp, #-8]
	bl	indexOfArg
	mov	r3, r0
	cmp	r3, #0
	blt	.L18
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	redirectOutput_append
	b	.L19
.L18:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	execute
.L19:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	executeCommands, .-executeCommands
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Error: '&' should be placed at the end of command.\012"
	.ascii	"\000"
	.text
	.align	2
	.global	backgroundProcess
	.syntax unified
	.arm
	.fpu softvfp
	.type	backgroundProcess, %function
backgroundProcess:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r1, .L26
	ldr	r0, [fp, #-16]
	bl	indexOfArg
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L23
	ldr	r3, .L26+4
	ldr	r3, [r3]
	mov	r2, #51
	mov	r1, #1
	ldr	r0, .L26+8
	bl	fwrite
	b	.L25
.L23:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r2, #1
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	executeCommands
.L25:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC7
	.word	stderr
	.word	.LC12
	.size	backgroundProcess, .-backgroundProcess
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Error: '>' is incorrectly placed.\012\000"
	.align	2
.LC14:
	.ascii	"Error: failed to open or create file %s.\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	redirectOutput
	.syntax unified
	.arm
	.fpu softvfp
	.type	redirectOutput, %function
redirectOutput:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r2, [fp, #-52]
	ldr	r1, .L37+4
	ldr	r0, [fp, #-48]
	bl	indexOfArg
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-52]
	cmp	r3, #2
	ble	.L29
	ldr	r3, [fp, #-52]
	sub	r3, r3, #2
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	beq	.L30
.L29:
	ldr	r3, .L37+8
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L37+12
	bl	fwrite
	mov	sp, r4
	b	.L28
.L30:
	ldr	r3, [fp, #-40]
	add	ip, r3, #1
	sub	r3, ip, #1
	str	r3, [fp, #-36]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #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, #-40]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L32
.L33:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-44]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L32:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L33
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	mov	r0, #1
	bl	dup
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #420
	ldr	r1, .L37+16
	mov	r0, r3
	bl	open
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L34
	ldr	r3, .L37+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L37+20
	bl	fprintf
	b	.L35
.L34:
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	dup2
	mov	r2, #0
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	executeCommands
	ldr	r0, [fp, #-20]
	bl	close
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	dup2
.L35:
	mov	sp, r4
.L28:
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC15
	.word	.LC10
	.word	stderr
	.word	.LC13
	.word	578
	.word	.LC14
	.size	redirectOutput, .-redirectOutput
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Error: '>>' is incorrectly placed.\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	redirectOutput_append
	.syntax unified
	.arm
	.fpu softvfp
	.type	redirectOutput_append, %function
redirectOutput_append:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r2, [fp, #-52]
	ldr	r1, .L48+4
	ldr	r0, [fp, #-48]
	bl	indexOfArg
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-52]
	cmp	r3, #2
	ble	.L40
	ldr	r3, [fp, #-52]
	sub	r3, r3, #2
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	beq	.L41
.L40:
	ldr	r3, .L48+8
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L48+12
	bl	fwrite
	mov	sp, r4
	b	.L39
.L41:
	ldr	r3, [fp, #-40]
	add	ip, r3, #1
	sub	r3, ip, #1
	str	r3, [fp, #-36]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #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, #-40]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L43
.L44:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-44]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L43:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L44
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	mov	r0, #1
	bl	dup
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #420
	ldr	r1, .L48+16
	mov	r0, r3
	bl	open
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L45
	ldr	r3, .L48+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L48+20
	bl	fprintf
	b	.L46
.L45:
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	dup2
	mov	r2, #0
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	executeCommands
	ldr	r0, [fp, #-20]
	bl	close
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	dup2
.L46:
	mov	sp, r4
.L39:
	ldr	r3, .L48
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC17
	.word	.LC11
	.word	stderr
	.word	.LC16
	.word	1090
	.word	.LC14
	.size	redirectOutput_append, .-redirectOutput_append
	.section	.rodata
	.align	2
.LC18:
	.ascii	"Error:'<' is incorrectly placed.\012\000"
	.align	2
.LC19:
	.ascii	"Error: failed to open file %s.\012\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	redirectInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	redirectInput, %function
redirectInput:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r2, [fp, #-52]
	ldr	r1, .L59+4
	ldr	r0, [fp, #-48]
	bl	indexOfArg
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-52]
	cmp	r3, #2
	ble	.L51
	ldr	r3, [fp, #-52]
	sub	r3, r3, #2
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	beq	.L52
.L51:
	ldr	r3, .L59+8
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L59+12
	bl	fwrite
	mov	sp, r4
	b	.L50
.L52:
	ldr	r3, [fp, #-40]
	add	ip, r3, #1
	sub	r3, ip, #1
	str	r3, [fp, #-36]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #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, #-40]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L54
.L55:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-44]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L54:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L55
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	mov	r0, #0
	bl	dup
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L56
	ldr	r3, .L59+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L59+16
	bl	fprintf
	b	.L57
.L56:
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	dup2
	mov	r2, #0
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	executeCommands
	ldr	r0, [fp, #-20]
	bl	close
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	dup2
.L57:
	mov	sp, r4
.L50:
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC20
	.word	.LC9
	.word	stderr
	.word	.LC18
	.word	.LC19
	.size	redirectInput, .-redirectInput
	.section	.rodata
	.align	2
.LC21:
	.ascii	"Unsuccessful creating process.\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pipeCommand
	.syntax unified
	.arm
	.fpu softvfp
	.type	pipeCommand, %function
pipeCommand:
	@ args = 0, pretend = 0, frame = 1072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1072
	str	r0, [fp, #-1072]
	str	r1, [fp, #-1076]
	ldr	r3, .L79
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-1060]
	mvn	r3, #0
	str	r3, [fp, #-1056]
	mvn	r3, #0
	str	r3, [fp, #-1052]
	mov	r3, #0
	str	r3, [fp, #-1048]
	b	.L62
.L77:
	ldr	r3, [fp, #-1048]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1072]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L79+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L63
	ldr	r3, [fp, #-1076]
	sub	r3, r3, #1
	ldr	r2, [fp, #-1048]
	cmp	r2, r3
	bne	.L64
.L63:
	mov	r3, #0
	str	r3, [fp, #-1068]
	ldr	r3, [fp, #-1060]
	cmp	r3, #0
	ble	.L65
	ldr	r3, [fp, #-1060]
	add	r3, r3, #1
	str	r3, [fp, #-1064]
	b	.L66
.L65:
	mov	r3, #0
	str	r3, [fp, #-1064]
.L66:
	ldr	r3, [fp, #-1076]
	sub	r3, r3, #1
	ldr	r2, [fp, #-1048]
	cmp	r2, r3
	bge	.L71
	ldr	r3, [fp, #-1048]
	str	r3, [fp, #-1060]
	b	.L68
.L69:
	ldr	r3, [fp, #-1064]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1072]
	add	r2, r2, r3
	ldr	r3, [fp, #-1068]
	add	r1, r3, #1
	str	r1, [fp, #-1068]
	ldr	r2, [r2]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-1028]
	ldr	r3, [fp, #-1064]
	add	r3, r3, #1
	str	r3, [fp, #-1064]
.L68:
	ldr	r2, [fp, #-1064]
	ldr	r3, [fp, #-1048]
	cmp	r2, r3
	blt	.L69
	ldr	r3, [fp, #-1068]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1028]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	pipe
	ldr	r3, [fp, #-1036]
	str	r3, [fp, #-1052]
	b	.L70
.L72:
	ldr	r3, [fp, #-1064]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1072]
	add	r2, r2, r3
	ldr	r3, [fp, #-1068]
	add	r1, r3, #1
	str	r1, [fp, #-1068]
	ldr	r2, [r2]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-1028]
	ldr	r3, [fp, #-1064]
	add	r3, r3, #1
	str	r3, [fp, #-1064]
.L71:
	ldr	r2, [fp, #-1064]
	ldr	r3, [fp, #-1048]
	cmp	r2, r3
	ble	.L72
	ldr	r3, [fp, #-1068]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1028]
	mvn	r3, #0
	str	r3, [fp, #-1052]
.L70:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bge	.L73
	ldr	r0, .L79+8
	bl	printf
	b	.L64
.L73:
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bne	.L74
	ldr	r3, [fp, #-1056]
	cmn	r3, #1
	beq	.L75
	ldr	r3, [fp, #-1056]
	cmp	r3, #0
	beq	.L75
	mov	r1, #0
	ldr	r0, [fp, #-1056]
	bl	dup2
	ldr	r0, [fp, #-1056]
	bl	close
.L75:
	ldr	r3, [fp, #-1052]
	cmn	r3, #1
	beq	.L76
	ldr	r3, [fp, #-1052]
	cmp	r3, #1
	beq	.L76
	mov	r1, #1
	ldr	r0, [fp, #-1052]
	bl	dup2
	ldr	r0, [fp, #-1052]
	bl	close
.L76:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #0
	ldr	r1, [fp, #-1068]
	mov	r0, r3
	bl	executeCommands
	mov	r0, #0
	bl	exit
.L74:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-1044]
	bl	waitpid
	ldr	r0, [fp, #-1056]
	bl	close
	ldr	r0, [fp, #-1052]
	bl	close
	ldr	r3, [fp, #-1040]
	str	r3, [fp, #-1056]
.L64:
	ldr	r3, [fp, #-1048]
	add	r3, r3, #1
	str	r3, [fp, #-1048]
.L62:
	ldr	r2, [fp, #-1048]
	ldr	r3, [fp, #-1076]
	cmp	r2, r3
	blt	.L77
	nop
	ldr	r3, .L79
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L78
	bl	__stack_chk_fail
.L78:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L80:
	.align	2
.L79:
	.word	.LC22
	.word	.LC8
	.word	.LC21
	.size	pipeCommand, .-pipeCommand
	.align	2
	.global	indexOfArg
	.syntax unified
	.arm
	.fpu softvfp
	.type	indexOfArg, %function
indexOfArg:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L82
.L85:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L83
	ldr	r3, [fp, #-8]
	b	.L84
.L83:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L82:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L85
	mvn	r3, #0
.L84:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	indexOfArg, .-indexOfArg
	.section	.rodata
	.align	2
.LC23:
	.ascii	"myShell >> \000"
	.align	2
.LC24:
	.ascii	" \000"
	.align	2
.LC25:
	.ascii	"cd\000"
	.align	2
.LC26:
	.ascii	"\012\000"
	.align	2
.LC27:
	.ascii	"exit\000"
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	str	r0, [fp, #-272]
	str	r1, [fp, #-276]
	ldr	r3, .L101
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #1
	mov	r0, #17
	bl	signal
	bl	init
	ldr	r0, .L101+4
	bl	printf
	b	.L87
.L97:
	mov	r3, #0
	str	r3, [fp, #-272]
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-260]
	sub	r3, fp, #264
	ldr	r1, .L101+8
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-268]
	ldr	r1, .L101+12
	ldr	r0, [fp, #-268]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L90
	ldr	r3, [fp, #-272]
	add	r2, r3, #1
	str	r2, [fp, #-272]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-276]
	add	r3, r2, r3
	ldr	r2, [fp, #-268]
	str	r2, [r3]
	ldr	r1, .L101+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-272]
	add	r2, r3, #1
	str	r2, [fp, #-272]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-276]
	add	r3, r2, r3
	ldr	r2, [fp, #-268]
	str	r2, [r3]
	b	.L89
.L91:
	ldr	r3, [fp, #-272]
	add	r2, r3, #1
	str	r2, [fp, #-272]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-276]
	add	r3, r2, r3
	ldr	r2, [fp, #-268]
	str	r2, [r3]
	ldr	r1, .L101+8
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-268]
.L90:
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bne	.L91
.L89:
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	ble	.L92
	ldr	r3, [fp, #-276]
	ldr	r3, [r3]
	ldr	r1, .L101+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L100
	ldr	r3, [fp, #-276]
	ldr	r3, [r3]
	ldr	r1, .L101+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L95
	ldr	r3, [fp, #-276]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	chdir
	b	.L92
.L95:
	ldr	r3, [fp, #-276]
	ldr	r3, [r3]
	ldr	r1, .L101+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L96
	ldr	r0, .L101+24
	bl	system
	b	.L92
.L96:
	ldr	r3, [fp, #-272]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-276]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-272]
	ldr	r0, [fp, #-276]
	bl	executeCommands
.L92:
	ldr	r0, .L101+4
	bl	printf
.L87:
	ldr	r3, .L101+28
	ldr	r2, [r3]
	sub	r3, fp, #264
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L97
	b	.L94
.L100:
	nop
.L94:
	mov	r3, #0
	ldr	r2, .L101
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L99
	bl	__stack_chk_fail
.L99:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L102:
	.align	2
.L101:
	.word	.LC28
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC0
	.word	stdin
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
