	.file	"242270.c"
	.intel_syntax noprefix
	.text
	.local	got_sigint
	.comm	got_sigint,1,1
	.section	.rodata
.LC0:
	.string	" "
	.text
	.type	parseUserInput, @function
parseUserInput:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR [rdx], rax
	mov	DWORD PTR -20[rbp], 1
	jmp	.L2
.L3:
	add	DWORD PTR -20[rbp], 1
.L2:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	lea	rbx, [rdx+rax]
	lea	rsi, .LC0[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR [rbx], rax
	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]
	test	rax, rax
	jne	.L3
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	parseUserInput, .-parseUserInput
	.globl	removeNewLine
	.type	removeNewLine, @function
removeNewLine:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -4[rbp], 1
.L5:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L6
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	removeNewLine, .-removeNewLine
	.section	.rodata
.LC1:
	.string	"Permission DENIED: %s\n"
.LC2:
	.string	"Command not found: %s\n"
	.align 8
.LC3:
	.string	"Something bad happened. Error code %d\n"
.LC4:
	.string	"You tried to run: %s\n"
	.text
	.globl	printErrorMessage
	.type	printErrorMessage, @function
printErrorMessage:
.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
	cmp	DWORD PTR -12[rbp], 2
	je	.L8
	cmp	DWORD PTR -12[rbp], 13
	jne	.L9
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	printErrorMessage, .-printErrorMessage
	.type	termination_handler, @function
termination_handler:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	BYTE PTR got_sigint[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	termination_handler, .-termination_handler
	.type	registerSignalHandler, @function
registerSignalHandler:
.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, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, termination_handler[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	registerSignalHandler, .-registerSignalHandler
	.section	.rodata
.LC5:
	.string	"Can't move to '%s'!"
.LC6:
	.string	"ERROR: %s\n"
	.text
	.globl	changeDir
	.type	changeDir, @function
changeDir:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 3[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -32[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -32[rbp], 1
.L15:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L16
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	jns	.L20
	mov	DWORD PTR -28[rbp], -1
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	je	.L20
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L20:
	nop
.L17:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	changeDir, .-changeDir
	.section	.rodata
.LC7:
	.string	"_dash > "
.LC8:
	.string	"quit"
.LC9:
	.string	"exit"
.LC10:
	.string	"q"
.LC11:
	.string	"Quitting!"
.LC12:
	.string	"cd "
.LC13:
	.string	"cd failed."
.LC14:
	.string	"pipe"
.LC15:
	.string	"Can't create pipe!"
	.align 8
.LC16:
	.string	"Child Proc: Can't close read end of pipe!"
	.align 8
.LC17:
	.string	"Child Proc: Can't close write end of pipe!"
.LC18:
	.string	"Fork failed\n"
	.align 8
.LC19:
	.string	"Parent Proc: Can't close write end of pipe!"
	.align 8
.LC20:
	.string	"Parent Proc: Can't close read end of pipe!"
.LC21:
	.string	"All finished."
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	edi, 1000
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	edi, 400
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], 0
	mov	eax, 0
	call	registerSignalHandler
.L42:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR got_sigint[rip], 0
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L22
	movzx	eax, BYTE PTR got_sigint[rip]
	test	al, al
	je	.L23
	mov	edi, 10
	call	putchar@PLT
	jmp	.L24
.L23:
	mov	eax, 0
	jmp	.L43
.L22:
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	removeNewLine
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L26
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L26
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L27
.L26:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	nop
.L28:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L43
.L27:
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L29
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	changeDir
	test	eax, eax
	je	.L30
	lea	rsi, .LC13[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L30:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L24
.L29:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L31
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	jns	.L32
	lea	rsi, .LC15[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L32:
	mov	DWORD PTR -60[rbp], 1
.L31:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parseUserInput
	call	fork@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jne	.L33
	cmp	DWORD PTR -60[rbp], 0
	je	.L34
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	mov	edi, 1
	call	dup2@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.L34
	lea	rsi, .LC16[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L34:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], 0
	jns	.L35
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	printErrorMessage
.L35:
	cmp	DWORD PTR -60[rbp], 0
	je	.L36
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.L36
	lea	rsi, .LC17[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L36:
	mov	edi, 1
	call	exit@PLT
.L33:
	cmp	DWORD PTR -52[rbp], 0
	jns	.L37
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rsi, .LC18[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L37:
	cmp	DWORD PTR -60[rbp], 0
	je	.L38
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.L40
	lea	rsi, .LC19[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L41:
	movzx	eax, BYTE PTR -65[rbp]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
.L40:
	mov	eax, DWORD PTR -16[rbp]
	lea	rcx, -65[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 1
	je	.L41
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.L38
	lea	rsi, .LC20[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L38:
	lea	rcx, -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -60[rbp], 0
.L24:
	jmp	.L42
.L43:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"242270.c"
	.text
	.local	got_sigint
	.comm	got_sigint,1,1
	.section	.rodata
	.align	2
.LC0:
	.ascii	" \000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseUserInput, %function
parseUserInput:
	@ 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	r1, .L4
	ldr	r0, [fp, #-24]
	bl	strtok
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L2
.L3:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	ldr	r1, .L4
	mov	r0, #0
	bl	strtok
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	parseUserInput, .-parseUserInput
	.align	2
	.global	removeNewLine
	.syntax unified
	.arm
	.fpu softvfp
	.type	removeNewLine, %function
removeNewLine:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L8
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	removeNewLine, .-removeNewLine
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Permission DENIED: %s\012\000"
	.align	2
.LC2:
	.ascii	"Command not found: %s\012\000"
	.align	2
.LC3:
	.ascii	"Something bad happened. Error code %d\012\000"
	.align	2
.LC4:
	.ascii	"You tried to run: %s\012\000"
	.text
	.align	2
	.global	printErrorMessage
	.syntax unified
	.arm
	.fpu softvfp
	.type	printErrorMessage, %function
printErrorMessage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	beq	.L10
	ldr	r3, [fp, #-12]
	cmp	r3, #13
	bne	.L11
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13
	bl	printf
	b	.L12
.L10:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+4
	bl	printf
	b	.L12
.L11:
	ldr	r1, [fp, #-12]
	ldr	r0, .L13+8
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+12
	bl	printf
.L12:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	printErrorMessage, .-printErrorMessage
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	termination_handler, %function
termination_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L16
	mov	r2, #1
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L17:
	.align	2
.L16:
	.word	got_sigint
	.size	termination_handler, .-termination_handler
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	registerSignalHandler, %function
registerSignalHandler:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L20+4
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC5
	.word	termination_handler
	.size	registerSignalHandler, .-registerSignalHandler
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Can't move to '%s'!\000"
	.align	2
.LC7:
	.ascii	"ERROR: %s\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	changeDir
	.syntax unified
	.arm
	.fpu softvfp
	.type	changeDir, %function
changeDir:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	b	.L23
.L24:
	ldr	r3, [fp, #-20]
	add	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-12]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L23:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-12]
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	bge	.L28
	mvn	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #24
	ldr	r2, [fp, #-12]
	ldr	r1, .L29+4
	mov	r0, r3
	bl	asprintf
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L29+8
	bl	printf
	b	.L25
.L28:
	nop
.L25:
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-16]
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC8
	.word	.LC6
	.word	.LC7
	.size	changeDir, .-changeDir
	.section	.rodata
	.align	2
.LC9:
	.ascii	"_dash > \000"
	.align	2
.LC10:
	.ascii	"quit\000"
	.align	2
.LC11:
	.ascii	"exit\000"
	.align	2
.LC12:
	.ascii	"q\000"
	.align	2
.LC13:
	.ascii	"Quitting!\000"
	.align	2
.LC14:
	.ascii	"cd \000"
	.align	2
.LC15:
	.ascii	"cd failed.\000"
	.align	2
.LC16:
	.ascii	"pipe\000"
	.align	2
.LC17:
	.ascii	"Can't create pipe!\000"
	.align	2
.LC18:
	.ascii	"Child Proc: Can't close read end of pipe!\000"
	.align	2
.LC19:
	.ascii	"Child Proc: Can't close write end of pipe!\000"
	.align	2
.LC20:
	.ascii	"Fork failed\012\000"
	.align	2
.LC21:
	.ascii	"Parent Proc: Can't close write end of pipe!\000"
	.align	2
.LC22:
	.ascii	"Parent Proc: Can't close read end of pipe!\000"
	.align	2
.LC23:
	.ascii	"All finished.\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r0, #1000
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r0, #200
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	bl	registerSignalHandler
.L52:
	ldr	r0, .L55+4
	bl	printf
	ldr	r3, .L55+8
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #1000
	ldr	r0, [fp, #-32]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	ldr	r3, .L55+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L33
	mov	r0, #10
	bl	putchar
	b	.L34
.L33:
	mov	r3, #0
	b	.L53
.L32:
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	removeNewLine
	ldr	r1, [fp, #-36]
	ldr	r0, .L55+16
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r1, [fp, #-36]
	ldr	r0, .L55+20
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r1, [fp, #-36]
	ldr	r0, .L55+24
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
.L36:
	ldr	r0, .L55+28
	bl	puts
	nop
.L38:
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r0, [fp, #-28]
	bl	free
	ldr	r0, .L55+32
	bl	puts
	mov	r3, #0
	b	.L53
.L37:
	ldr	r1, .L55+36
	ldr	r0, [fp, #-36]
	bl	strstr
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L39
	ldr	r0, [fp, #-24]
	bl	changeDir
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
	ldr	r1, .L55+40
	ldr	r0, .L55+44
	bl	printf
	mov	r0, #1
	bl	exit
.L40:
	ldr	r0, [fp, #-24]
	bl	free
	b	.L34
.L39:
	ldr	r1, [fp, #-36]
	ldr	r0, .L55+48
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L41
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	bge	.L42
	ldr	r1, .L55+52
	ldr	r0, .L55+44
	bl	printf
	mov	r0, #1
	bl	exit
.L42:
	mov	r3, #1
	str	r3, [fp, #-44]
.L41:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-36]
	bl	parseUserInput
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L43
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-12]
	mov	r1, r3
	mov	r0, #1
	bl	dup2
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L44
	ldr	r1, .L55+56
	ldr	r0, .L55+44
	bl	printf
	mov	r0, #1
	bl	exit
.L44:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L45
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	printErrorMessage
.L45:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L46
	ldr	r1, .L55+60
	ldr	r0, .L55+44
	bl	printf
	mov	r0, #1
	bl	exit
.L46:
	mov	r0, #1
	bl	exit
.L43:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L47
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r0, [fp, #-28]
	bl	free
	ldr	r1, .L55+64
	ldr	r0, .L55+44
	bl	printf
	mov	r0, #1
	bl	exit
.L47:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L48
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L50
	ldr	r1, .L55+68
	ldr	r0, .L55+44
	bl	printf
	mov	r0, #1
	bl	exit
.L51:
	ldrb	r3, [fp, #-49]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L50:
	ldr	r3, [fp, #-16]
	sub	r1, fp, #49
	mov	r2, #1
	mov	r0, r3
	bl	read
	mov	r3, r0
	cmp	r3, #1
	beq	.L51
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L48
	ldr	r1, .L55+72
	ldr	r0, .L55+44
	bl	printf
	mov	r0, #1
	bl	exit
.L48:
	sub	r3, fp, #48
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	waitpid
	mov	r3, #0
	str	r3, [fp, #-44]
.L34:
	b	.L52
.L53:
	ldr	r2, .L55
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC24
	.word	.LC9
	.word	got_sigint
	.word	stdin
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC23
	.word	.LC14
	.word	.LC15
	.word	.LC7
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
