	.file	"26700879.c"
	.intel_syntax noprefix
	.text
	.globl	prev1
	.bss
	.align 8
	.type	prev1, @object
	.size	prev1, 8
prev1:
	.zero	8
	.globl	prev2
	.align 8
	.type	prev2, @object
	.size	prev2, 8
prev2:
	.zero	8
	.globl	prev3
	.align 8
	.type	prev3, @object
	.size	prev3, 8
prev3:
	.zero	8
	.globl	prev4
	.align 8
	.type	prev4, @object
	.size	prev4, 8
prev4:
	.zero	8
	.globl	prev5
	.align 8
	.type	prev5, @object
	.size	prev5, 8
prev5:
	.zero	8
	.globl	cwd
	.align 32
	.type	cwd, @object
	.size	cwd, 128
cwd:
	.zero	128
	.globl	global_command
	.align 8
	.type	global_command, @object
	.size	global_command, 8
global_command:
	.zero	8
	.text
	.globl	getCommand
	.type	getCommand, @function
getCommand:
.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	edi, 128
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -24[rbp], 128
	mov	DWORD PTR -20[rbp], 128
	mov	DWORD PTR -16[rbp], 0
	mov	edi, 128
	call	malloc@PLT
	mov	QWORD PTR global_command[rip], rax
.L9:
	call	getchar@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 10
	je	.L2
	cmp	DWORD PTR -12[rbp], -1
	jne	.L3
.L2:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rdx, QWORD PTR global_command[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L10
.L3:
	cmp	DWORD PTR -12[rbp], 34
	jne	.L5
	mov	rcx, QWORD PTR global_command[rip]
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -16[rbp], edx
	cdqe
	add	rax, rcx
	mov	edx, DWORD PTR -12[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jne	.L11
	sub	DWORD PTR -20[rbp], -128
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR global_command[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR global_command[rip], rax
	jmp	.L11
.L5:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	mov	BYTE PTR [rax], dl
	mov	rcx, QWORD PTR global_command[rip]
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -16[rbp], edx
	cdqe
	add	rax, rcx
	mov	edx, DWORD PTR -12[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jne	.L8
	sub	DWORD PTR -24[rbp], -128
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -8[rbp], rax
.L8:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jne	.L9
	sub	DWORD PTR -20[rbp], -128
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR global_command[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR global_command[rip], rax
	jmp	.L9
.L11:
	nop
	jmp	.L9
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getCommand, .-getCommand
	.section	.rodata
.LC0:
	.string	" \"\t\n\r\007"
.LC1:
	.string	"\t\n\r\007"
	.text
	.globl	Parse
	.type	Parse, @function
Parse:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	cmp	QWORD PTR -40[rbp], 0
	jne	.L13
	mov	eax, 0
	jmp	.L14
.L13:
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 128
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -8[rbp], rax
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jne	.L15
	sub	DWORD PTR -20[rbp], -128
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -16[rbp], rax
.L15:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L16
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Parse, .-Parse
	.globl	substring
	.type	substring, @function
substring:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	substring, .-substring
	.globl	my_str_check
	.type	my_str_check, @function
my_str_check:
.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jle	.L20
	mov	eax, -1
	jmp	.L21
.L20:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jne	.L22
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	jmp	.L21
.L22:
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	substring
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	my_str_check, .-my_str_check
	.section	.rodata
.LC2:
	.string	"getcwd() has failed"
.LC3:
	.string	"MTL458:~$"
.LC4:
	.string	"Command Not Valid\n"
.LC5:
	.string	"MTL458:~%s$"
	.text
	.globl	loop
	.type	loop, @function
loop:
.LFB10:
	.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, 184
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR prev1[rip], 0
	mov	QWORD PTR prev2[rip], 0
	mov	QWORD PTR prev3[rip], 0
	mov	QWORD PTR prev4[rip], 0
	mov	QWORD PTR prev5[rip], 0
	mov	esi, 128
	lea	rdi, cwd[rip]
	call	getcwd@PLT
	test	rax, rax
	jne	.L24
	lea	rdi, .LC2[rip]
	call	perror@PLT
.L24:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L38:
	mov	eax, 0
	call	getCommand
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L25
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -184[rbp], rax
	jmp	.L26
.L25:
	mov	QWORD PTR -184[rbp], 0
.L26:
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	Parse
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	execute
	mov	DWORD PTR -188[rbp], eax
	cmp	DWORD PTR -188[rbp], 0
	jne	.L27
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L28
.L27:
	lea	rax, -160[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	getcwd@PLT
	test	rax, rax
	jne	.L29
	lea	rdi, .LC2[rip]
	call	perror@PLT
	jmp	.L28
.L29:
	lea	rax, -160[rbp]
	mov	rsi, rax
	lea	rdi, cwd[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L31
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L28
.L31:
	lea	rax, -160[rbp]
	lea	rsi, cwd[rip]
	mov	rdi, rax
	call	my_str_check
	test	eax, eax
	jne	.L32
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	ebx, eax
	lea	rdi, cwd[rip]
	call	strlen@PLT
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	mov	ebx, eax
	lea	rdi, cwd[rip]
	call	strlen@PLT
	mov	ecx, eax
	lea	rax, -160[rbp]
	mov	edx, ebx
	mov	esi, ecx
	mov	rdi, rax
	call	substring
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L28
.L32:
	lea	rax, -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L28:
	cmp	QWORD PTR -184[rbp], 0
	je	.L33
	mov	rax, QWORD PTR prev4[rip]
	test	rax, rax
	je	.L34
	mov	rax, QWORD PTR prev4[rip]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR prev5[rip], rax
.L34:
	mov	rax, QWORD PTR prev3[rip]
	test	rax, rax
	je	.L35
	mov	rax, QWORD PTR prev3[rip]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR prev4[rip], rax
.L35:
	mov	rax, QWORD PTR prev2[rip]
	test	rax, rax
	je	.L36
	mov	rax, QWORD PTR prev2[rip]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR prev3[rip], rax
.L36:
	mov	rax, QWORD PTR prev1[rip]
	test	rax, rax
	je	.L37
	mov	rax, QWORD PTR prev1[rip]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR prev2[rip], rax
.L37:
	cmp	QWORD PTR -184[rbp], 0
	je	.L33
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR prev1[rip], rax
.L33:
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR global_command[rip]
	mov	rdi, rax
	call	free@PLT
	jmp	.L38
	.cfi_endproc
.LFE10:
	.size	loop, .-loop
	.section	.rodata
.LC6:
	.string	"history"
.LC7:
	.string	"cd"
	.text
	.globl	execute
	.type	execute, @function
execute:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L41
	mov	eax, 1
	jmp	.L42
.L41:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L43
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	history
	jmp	.L44
.L43:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L45
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	changeDirectory
	jmp	.L44
.L45:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	Launch_Forkable_Command
.L44:
	mov	eax, 1
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	execute, .-execute
	.section	.rodata
.LC8:
	.string	"   %s \n"
.LC9:
	.string	"   %s\n"
	.text
	.globl	history
	.type	history, @function
history:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR prev5[rip]
	test	rax, rax
	je	.L47
	mov	rax, QWORD PTR prev5[rip]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L47:
	mov	rax, QWORD PTR prev4[rip]
	test	rax, rax
	je	.L48
	mov	rax, QWORD PTR prev4[rip]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L48:
	mov	rax, QWORD PTR prev3[rip]
	test	rax, rax
	je	.L49
	mov	rax, QWORD PTR prev3[rip]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L49:
	mov	rax, QWORD PTR prev2[rip]
	test	rax, rax
	je	.L50
	mov	rax, QWORD PTR prev2[rip]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L50:
	mov	rax, QWORD PTR prev1[rip]
	test	rax, rax
	je	.L51
	mov	rax, QWORD PTR prev1[rip]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L51:
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	history, .-history
	.section	.rodata
	.align 8
.LC10:
	.string	"cd command must be followed with path \n"
.LC11:
	.string	"~"
.LC12:
	.string	"No directory found"
	.text
	.globl	changeDirectory
	.type	changeDirectory, @function
changeDirectory:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L54
	lea	rdi, .LC10[rip]
	call	perror@PLT
	jmp	.L55
.L54:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L56
	lea	rdi, cwd[rip]
	call	chdir@PLT
	jmp	.L55
.L56:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	je	.L55
	lea	rdi, .LC12[rip]
	call	perror@PLT
.L55:
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	changeDirectory, .-changeDirectory
	.section	.rodata
.LC13:
	.string	"Invalid argument"
.LC14:
	.string	"Failed to fork a new process"
	.text
	.globl	Launch_Forkable_Command
	.type	Launch_Forkable_Command, @function
Launch_Forkable_Command:
.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, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L59
.L64:
	cmp	DWORD PTR -32[rbp], 1
	jne	.L60
	mov	rdx, QWORD PTR global_command[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 34
	jne	.L71
	mov	DWORD PTR -32[rbp], 0
	mov	rdx, QWORD PTR global_command[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 10
	jmp	.L71
.L60:
	mov	rdx, QWORD PTR global_command[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 34
	jne	.L63
	mov	DWORD PTR -32[rbp], 1
	mov	rdx, QWORD PTR global_command[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 10
.L63:
	mov	rdx, QWORD PTR global_command[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L62
	mov	rdx, QWORD PTR global_command[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 10
	jmp	.L62
.L71:
	nop
.L62:
	add	DWORD PTR -36[rbp], 1
.L59:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR global_command[rip]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L64
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR global_command[rip]
	mov	rdi, rax
	call	Parse
	mov	QWORD PTR -56[rbp], rax
	call	fork@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jne	.L65
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	cmp	eax, -1
	jne	.L66
	lea	rdi, .LC13[rip]
	call	perror@PLT
.L66:
	mov	edi, 1
	call	exit@PLT
.L65:
	cmp	DWORD PTR -28[rbp], 0
	jns	.L67
	lea	rdi, .LC14[rip]
	call	perror@PLT
	jmp	.L68
.L67:
	lea	rcx, -40[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR -40[rbp]
	and	eax, 127
	test	eax, eax
	je	.L68
	mov	eax, DWORD PTR -40[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L67
.L68:
	mov	eax, 1
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L70
	call	__stack_chk_fail@PLT
.L70:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	Launch_Forkable_Command, .-Launch_Forkable_Command
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, 0
	call	loop
	mov	eax, 0
	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	"26700879.c"
	.text
	.comm	prev1,4,4
	.comm	prev2,4,4
	.comm	prev3,4,4
	.comm	prev4,4,4
	.comm	prev5,4,4
	.comm	cwd,128,4
	.comm	global_command,4,4
	.align	2
	.global	getCommand
	.syntax unified
	.arm
	.fpu softvfp
	.type	getCommand, %function
getCommand:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r0, #128
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #128
	str	r3, [fp, #-20]
	mov	r3, #128
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r0, #128
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L12
	str	r2, [r3]
.L9:
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	beq	.L2
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L3
.L2:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	b	.L10
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #34
	bne	.L5
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L11
	ldr	r3, [fp, #-16]
	add	r3, r3, #128
	str	r3, [fp, #-16]
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	realloc
	mov	r3, r0
	ldr	r2, .L12
	str	r3, [r2]
	b	.L11
.L5:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L8
	ldr	r3, [fp, #-20]
	add	r3, r3, #128
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	realloc
	str	r0, [fp, #-28]
.L8:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L9
	ldr	r3, [fp, #-16]
	add	r3, r3, #128
	str	r3, [fp, #-16]
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	realloc
	mov	r3, r0
	ldr	r2, .L12
	str	r3, [r2]
	b	.L9
.L11:
	nop
	b	.L9
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	global_command
	.size	getCommand, .-getCommand
	.section	.rodata
	.align	2
.LC0:
	.ascii	" \"\011\012\015\007\000"
	.align	2
.LC1:
	.ascii	"\011\012\015\007\000"
	.text
	.align	2
	.global	Parse
	.syntax unified
	.arm
	.fpu softvfp
	.type	Parse, %function
Parse:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L15
	mov	r3, #0
	b	.L16
.L15:
	mov	r0, #512
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r1, .L19
	ldr	r0, [fp, #-24]
	bl	strtok
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #128
	str	r3, [fp, #-8]
	b	.L17
.L18:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r1, .L19+4
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L17
	ldr	r3, [fp, #-8]
	add	r3, r3, #128
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	realloc
	str	r0, [fp, #-20]
.L17:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	.LC1
	.size	Parse, .-Parse
	.align	2
	.global	substring
	.syntax unified
	.arm
	.fpu softvfp
	.type	substring, %function
substring:
	@ 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]
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	strncpy
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	substring, .-substring
	.align	2
	.global	my_str_check
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_str_check, %function
my_str_check:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L24
	mvn	r3, #0
	b	.L25
.L24:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L26
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	strcmp
	mov	r3, r0
	b	.L25
.L26:
	ldr	r2, [fp, #-16]
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	substring
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	my_str_check, .-my_str_check
	.section	.rodata
	.align	2
.LC2:
	.ascii	"getcwd() has failed\000"
	.align	2
.LC3:
	.ascii	"MTL458:~$\000"
	.align	2
.LC4:
	.ascii	"Command Not Valid\012\000"
	.align	2
.LC5:
	.ascii	"MTL458:~%s$\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	loop
	.syntax unified
	.arm
	.fpu softvfp
	.type	loop, %function
loop:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #152
	ldr	r3, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L44+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L44+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L44+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L44+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L44+20
	mov	r2, #0
	str	r2, [r3]
	mov	r1, #128
	ldr	r0, .L44+24
	bl	getcwd
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	ldr	r0, .L44+28
	bl	perror
.L28:
	ldr	r0, .L44+32
	bl	printf
.L42:
	bl	getCommand
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L29
	ldr	r0, [fp, #-156]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-160]
	b	.L30
.L29:
	mov	r3, #0
	str	r3, [fp, #-160]
.L30:
	ldr	r0, [fp, #-156]
	bl	Parse
	str	r0, [fp, #-152]
	ldr	r0, [fp, #-152]
	bl	execute
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	bne	.L31
	ldr	r0, .L44+36
	bl	perror
	b	.L32
.L31:
	sub	r3, fp, #144
	mov	r1, #128
	mov	r0, r3
	bl	getcwd
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	ldr	r0, .L44+28
	bl	perror
	b	.L32
.L33:
	sub	r3, fp, #144
	mov	r1, r3
	ldr	r0, .L44+24
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	ldr	r0, .L44+32
	bl	printf
	b	.L32
.L35:
	sub	r3, fp, #144
	ldr	r1, .L44+24
	mov	r0, r3
	bl	my_str_check
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	ldr	r0, .L44+24
	bl	strlen
	mov	r3, r0
	mov	r5, r3
	sub	r3, fp, #144
	mov	r0, r3
	bl	strlen
	mov	r4, r0
	ldr	r0, .L44+24
	bl	strlen
	mov	r3, r0
	sub	r3, r4, r3
	mov	r2, r3
	sub	r3, fp, #144
	mov	r1, r5
	mov	r0, r3
	bl	substring
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L44+40
	bl	printf
	b	.L32
.L36:
	sub	r3, fp, #144
	mov	r1, r3
	ldr	r0, .L44+40
	bl	printf
.L32:
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	beq	.L37
	ldr	r3, .L44+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L44+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L44+20
	str	r2, [r3]
.L38:
	ldr	r3, .L44+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L39
	ldr	r3, .L44+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L44+16
	str	r2, [r3]
.L39:
	ldr	r3, .L44+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L40
	ldr	r3, .L44+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L44+12
	str	r2, [r3]
.L40:
	ldr	r3, .L44+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L41
	ldr	r3, .L44+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L44+8
	str	r2, [r3]
.L41:
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	beq	.L37
	ldr	r0, [fp, #-160]
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L44+4
	str	r2, [r3]
.L37:
	ldr	r0, [fp, #-156]
	bl	free
	ldr	r0, [fp, #-152]
	bl	free
	ldr	r3, .L44+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	b	.L42
.L45:
	.align	2
.L44:
	.word	.LC6
	.word	prev1
	.word	prev2
	.word	prev3
	.word	prev4
	.word	prev5
	.word	cwd
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	global_command
	.size	loop, .-loop
	.section	.rodata
	.align	2
.LC7:
	.ascii	"history\000"
	.align	2
.LC8:
	.ascii	"cd\000"
	.text
	.align	2
	.global	execute
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute, %function
execute:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L47
	mov	r3, #1
	b	.L48
.L47:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, .L52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L49
	ldr	r0, [fp, #-8]
	bl	history
	b	.L50
.L49:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, .L52+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	ldr	r0, [fp, #-8]
	bl	changeDirectory
	b	.L50
.L51:
	ldr	r0, [fp, #-8]
	bl	Launch_Forkable_Command
.L50:
	mov	r3, #1
.L48:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC7
	.word	.LC8
	.size	execute, .-execute
	.section	.rodata
	.align	2
.LC9:
	.ascii	"   %s \012\000"
	.align	2
.LC10:
	.ascii	"   %s\012\000"
	.text
	.align	2
	.global	history
	.syntax unified
	.arm
	.fpu softvfp
	.type	history, %function
history:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L61
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L55
	ldr	r3, .L61
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L61+4
	bl	printf
.L55:
	ldr	r3, .L61+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L56
	ldr	r3, .L61+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L61+12
	bl	printf
.L56:
	ldr	r3, .L61+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L57
	ldr	r3, .L61+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L61+12
	bl	printf
.L57:
	ldr	r3, .L61+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L58
	ldr	r3, .L61+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L61+12
	bl	printf
.L58:
	ldr	r3, .L61+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L59
	ldr	r3, .L61+24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L61+12
	bl	printf
.L59:
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	prev5
	.word	.LC9
	.word	prev4
	.word	.LC10
	.word	prev3
	.word	prev2
	.word	prev1
	.size	history, .-history
	.section	.rodata
	.align	2
.LC11:
	.ascii	"cd command must be followed with path \012\000"
	.align	2
.LC12:
	.ascii	"~\000"
	.align	2
.LC13:
	.ascii	"No directory found\000"
	.text
	.align	2
	.global	changeDirectory
	.syntax unified
	.arm
	.fpu softvfp
	.type	changeDirectory, %function
changeDirectory:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L64
	ldr	r0, .L68
	bl	perror
	b	.L65
.L64:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L68+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L66
	ldr	r0, .L68+8
	bl	chdir
	b	.L65
.L66:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L65
	ldr	r0, .L68+12
	bl	perror
.L65:
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC11
	.word	.LC12
	.word	cwd
	.word	.LC13
	.size	changeDirectory, .-changeDirectory
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Invalid argument\000"
	.align	2
.LC15:
	.ascii	"Failed to fork a new process\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Launch_Forkable_Command
	.syntax unified
	.arm
	.fpu softvfp
	.type	Launch_Forkable_Command, %function
Launch_Forkable_Command:
	@ 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, .L84
	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, #-20]
	b	.L71
.L76:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L72
	ldr	r3, .L84+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	bne	.L83
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L84+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #10
	strb	r2, [r3]
	b	.L83
.L72:
	ldr	r3, .L84+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	bne	.L75
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, .L84+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #10
	strb	r2, [r3]
.L75:
	ldr	r3, .L84+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L74
	ldr	r3, .L84+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #10
	strb	r2, [r3]
	b	.L74
.L83:
	nop
.L74:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L71:
	ldr	r3, .L84+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bhi	.L76
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r3, .L84+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	Parse
	str	r0, [fp, #-32]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L77
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmn	r3, #1
	bne	.L78
	ldr	r0, .L84+8
	bl	perror
.L78:
	mov	r0, #1
	bl	exit
.L77:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L79
	ldr	r0, .L84+12
	bl	perror
	b	.L80
.L79:
	sub	r3, fp, #24
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	waitpid
	ldr	r3, [fp, #-24]
	and	r3, r3, #127
	cmp	r3, #0
	beq	.L80
	ldr	r3, [fp, #-24]
	and	r3, r3, #255
	and	r3, r3, #127
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	ble	.L79
.L80:
	mov	r3, #1
	ldr	r2, .L84
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L82
	bl	__stack_chk_fail
.L82:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L85:
	.align	2
.L84:
	.word	.LC16
	.word	global_command
	.word	.LC14
	.word	.LC15
	.size	Launch_Forkable_Command, .-Launch_Forkable_Command
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	bl	loop
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
