	.file	"595951.c"
	.intel_syntax noprefix
	.text
	.globl	shell_name
	.data
	.align 32
	.type	shell_name, @object
	.size	shell_name, 64
shell_name:
	.string	"mysh"
	.zero	59
	.globl	cwd
	.bss
	.align 32
	.type	cwd, @object
	.size	cwd, 256
cwd:
	.zero	256
	.globl	tokens
	.align 32
	.type	tokens, @object
	.size	tokens, 256
tokens:
	.zero	256
	.globl	pipe_commands
	.align 32
	.type	pipe_commands, @object
	.size	pipe_commands, 256
pipe_commands:
	.zero	256
	.globl	num_tokens
	.align 4
	.type	num_tokens, @object
	.size	num_tokens, 4
num_tokens:
	.zero	4
	.globl	num_pipe_commands
	.align 4
	.type	num_pipe_commands, @object
	.size	num_pipe_commands, 4
num_pipe_commands:
	.zero	4
	.globl	pipe_idx
	.align 4
	.type	pipe_idx, @object
	.size	pipe_idx, 4
pipe_idx:
	.zero	4
	.globl	pipe_fd
	.align 32
	.type	pipe_fd, @object
	.size	pipe_fd, 256
pipe_fd:
	.zero	256
	.globl	exit_status
	.align 4
	.type	exit_status, @object
	.size	exit_status, 4
exit_status:
	.zero	4
	.globl	exit_code
	.align 4
	.type	exit_code, @object
	.size	exit_code, 4
exit_code:
	.zero	4
	.globl	is_pipe
	.type	is_pipe, @object
	.size	is_pipe, 1
is_pipe:
	.zero	1
	.globl	commands
	.section	.rodata
.LC0:
	.string	"help"
.LC1:
	.string	"Print short help."
.LC2:
	.string	"name"
.LC3:
	.string	"Print or change shell name."
.LC4:
	.string	"status"
.LC5:
	.string	"Print last command status."
.LC6:
	.string	"exit"
.LC7:
	.string	"Exit from shell."
.LC8:
	.string	"print"
.LC9:
	.string	"Print arguments."
.LC10:
	.string	"echo"
	.align 8
.LC11:
	.string	"Print arguments with a newline."
.LC12:
	.string	"pid"
.LC13:
	.string	"Print PID."
.LC14:
	.string	"ppid"
.LC15:
	.string	"Print PPID."
.LC16:
	.string	"dir"
.LC17:
	.string	"Change directory."
.LC18:
	.string	"dirwhere"
	.align 8
.LC19:
	.string	"Print current working directory."
.LC20:
	.string	"dirmake"
.LC21:
	.string	"Create a directory."
.LC22:
	.string	"dirremove"
.LC23:
	.string	"Remove a directory."
.LC24:
	.string	"dirlist"
.LC25:
	.string	"List directory contents."
.LC26:
	.string	"linkhard"
.LC27:
	.string	"Create a hard link."
.LC28:
	.string	"linksoft"
.LC29:
	.string	"Create a symbolic link."
.LC30:
	.string	"linkread"
.LC31:
	.string	"Print symbolic link target."
.LC32:
	.string	"linklist"
.LC33:
	.string	"Print hard links to a file."
.LC34:
	.string	"unlink"
.LC35:
	.string	"Remove a file."
.LC36:
	.string	"rename"
.LC37:
	.string	"Rename a file or a directory."
.LC38:
	.string	"cpcat"
.LC39:
	.string	"Copy a file."
.LC40:
	.string	"pipes"
.LC41:
	.string	"Create a pipeline."
	.section	.data.rel.local,"aw"
	.align 32
	.type	commands, @object
	.size	commands, 672
commands:
	.quad	.LC0
	.quad	.LC1
	.quad	help
	.byte	0
	.byte	0
	.zero	6
	.quad	.LC2
	.quad	.LC3
	.quad	name
	.byte	0
	.byte	0
	.zero	6
	.quad	.LC4
	.quad	.LC5
	.quad	status
	.byte	0
	.byte	0
	.zero	6
	.quad	.LC6
	.quad	.LC7
	.quad	shell_exit
	.byte	0
	.byte	1
	.zero	6
	.quad	.LC8
	.quad	.LC9
	.quad	print
	.byte	0
	.byte	0
	.zero	6
	.quad	.LC10
	.quad	.LC11
	.quad	echo
	.byte	0
	.byte	0
	.zero	6
	.quad	.LC12
	.quad	.LC13
	.quad	pid
	.byte	0
	.byte	0
	.zero	6
	.quad	.LC14
	.quad	.LC15
	.quad	ppid
	.byte	0
	.byte	0
	.zero	6
	.quad	.LC16
	.quad	.LC17
	.quad	dir
	.byte	0
	.byte	1
	.zero	6
	.quad	.LC18
	.quad	.LC19
	.quad	dirwhere
	.byte	1
	.byte	0
	.zero	6
	.quad	.LC20
	.quad	.LC21
	.quad	dirmake
	.byte	1
	.byte	1
	.zero	6
	.quad	.LC22
	.quad	.LC23
	.quad	dirremove
	.byte	1
	.byte	1
	.zero	6
	.quad	.LC24
	.quad	.LC25
	.quad	dirlist
	.byte	1
	.byte	1
	.zero	6
	.quad	.LC26
	.quad	.LC27
	.quad	linkhard
	.byte	1
	.byte	1
	.zero	6
	.quad	.LC28
	.quad	.LC29
	.quad	linksoft
	.byte	1
	.byte	1
	.zero	6
	.quad	.LC30
	.quad	.LC31
	.quad	linkread
	.byte	1
	.byte	1
	.zero	6
	.quad	.LC32
	.quad	.LC33
	.quad	linklist
	.byte	1
	.byte	1
	.zero	6
	.quad	.LC34
	.quad	.LC35
	.quad	shell_unlink
	.byte	1
	.byte	1
	.zero	6
	.quad	.LC36
	.quad	.LC37
	.quad	shell_rename
	.byte	1
	.byte	1
	.zero	6
	.quad	.LC38
	.quad	.LC39
	.quad	cpcat
	.byte	0
	.byte	1
	.zero	6
	.quad	.LC40
	.quad	.LC41
	.quad	pipes
	.byte	0
	.byte	1
	.zero	6
	.globl	redirect_in
	.bss
	.type	redirect_in, @object
	.size	redirect_in, 1
redirect_in:
	.zero	1
	.globl	redirect_out
	.type	redirect_out, @object
	.size	redirect_out, 1
redirect_out:
	.zero	1
	.section	.rodata
.LC42:
	.string	"%s> "
.LC43:
	.string	"redirect"
	.text
	.globl	main
	.type	main, @function
main:
.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, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	dup@PLT
	mov	DWORD PTR -288[rbp], eax
	mov	edi, 1
	call	dup@PLT
	mov	DWORD PTR -284[rbp], eax
	mov	BYTE PTR -301[rbp], 0
	mov	DWORD PTR -292[rbp], 1
	lea	rsi, handle_sigchld[rip]
	mov	edi, 17
	call	signal@PLT
	mov	esi, 256
	lea	rdi, cwd[rip]
	call	getcwd@PLT
.L33:
	movzx	eax, BYTE PTR is_pipe[rip]
	xor	eax, 1
	test	al, al
	je	.L2
	mov	edi, 0
	call	isatty@PLT
	cmp	eax, 1
	jne	.L2
	lea	rsi, shell_name[rip]
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L2:
	movzx	eax, BYTE PTR is_pipe[rip]
	xor	eax, 1
	test	al, al
	je	.L3
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -280[rbp], eax
	sub	DWORD PTR -280[rbp], 1
	mov	eax, DWORD PTR -280[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 0
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L37
	mov	edx, DWORD PTR -280[rbp]
	lea	rax, -272[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	tokenize
	mov	DWORD PTR num_tokens[rip], eax
	jmp	.L6
.L3:
	mov	eax, DWORD PTR pipe_idx[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_commands[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR pipe_idx[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_commands[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	esi, ecx
	mov	rdi, rax
	call	tokenize
	mov	DWORD PTR num_tokens[rip], eax
	mov	eax, DWORD PTR num_pipe_commands[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR pipe_idx[rip]
	cmp	edx, eax
	jle	.L6
	mov	eax, DWORD PTR pipe_idx[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_fd[rip]
	add	rax, rdx
	mov	rdi, rax
	call	pipe@PLT
.L6:
	mov	eax, DWORD PTR num_tokens[rip]
	test	eax, eax
	jle	.L7
	mov	eax, DWORD PTR num_tokens[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, tokens[rip]
	mov	rax, QWORD PTR [rdx+rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 38
	jne	.L8
	mov	BYTE PTR -301[rbp], 1
	mov	eax, DWORD PTR num_tokens[rip]
	sub	eax, 1
	mov	DWORD PTR num_tokens[rip], eax
.L8:
	mov	eax, DWORD PTR num_tokens[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, tokens[rip]
	mov	rax, QWORD PTR [rdx+rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 62
	jne	.L9
	mov	eax, DWORD PTR num_tokens[rip]
	sub	eax, 1
	mov	DWORD PTR num_tokens[rip], eax
	mov	eax, DWORD PTR num_tokens[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, tokens[rip]
	mov	rax, QWORD PTR [rdx+rax]
	add	rax, 1
	mov	esi, 420
	mov	rdi, rax
	call	creat@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], -1
	jne	.L10
	lea	rdi, .LC43[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR exit_code[rip], eax
	jmp	.L9
.L10:
	mov	BYTE PTR redirect_out[rip], 1
	mov	eax, DWORD PTR -276[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -276[rbp]
	mov	edi, eax
	call	close@PLT
.L9:
	mov	eax, DWORD PTR num_tokens[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, tokens[rip]
	mov	rax, QWORD PTR [rdx+rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 60
	jne	.L11
	mov	eax, DWORD PTR num_tokens[rip]
	sub	eax, 1
	mov	DWORD PTR num_tokens[rip], eax
	mov	eax, DWORD PTR num_tokens[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, tokens[rip]
	mov	rax, QWORD PTR [rdx+rax]
	add	rax, 1
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], -1
	jne	.L12
	lea	rdi, .LC43[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR exit_code[rip], eax
	jmp	.L11
.L12:
	mov	BYTE PTR redirect_in[rip], 1
	mov	eax, DWORD PTR -276[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -276[rbp]
	mov	edi, eax
	call	close@PLT
.L11:
	mov	DWORD PTR -296[rbp], -1
	mov	DWORD PTR -300[rbp], 0
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, commands[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR tokens[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L14
	mov	eax, DWORD PTR -300[rbp]
	mov	DWORD PTR -296[rbp], eax
	jmp	.L15
.L14:
	add	DWORD PTR -300[rbp], 1
.L13:
	cmp	DWORD PTR -300[rbp], 20
	jle	.L16
.L15:
	cmp	BYTE PTR -301[rbp], 0
	je	.L17
	call	fork@PLT
	mov	DWORD PTR -292[rbp], eax
.L17:
	movzx	eax, BYTE PTR -301[rbp]
	xor	eax, 1
	test	al, al
	jne	.L18
	cmp	BYTE PTR -301[rbp], 0
	je	.L19
	cmp	DWORD PTR -292[rbp], 0
	jne	.L19
.L18:
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, commands[rip+25]
	movzx	eax, BYTE PTR [rdx+rax]
	test	al, al
	je	.L20
	mov	DWORD PTR exit_code[rip], 0
.L20:
	cmp	DWORD PTR -296[rbp], 0
	jle	.L21
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, commands[rip+24]
	movzx	eax, BYTE PTR [rdx+rax]
	xor	eax, 1
	test	al, al
	je	.L21
	movzx	eax, BYTE PTR is_pipe[rip]
	xor	eax, 1
	test	al, al
	je	.L21
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, commands[rip+16]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, 0
	call	rdx
	jmp	.L19
.L21:
	movzx	eax, BYTE PTR -301[rbp]
	xor	eax, 1
	test	al, al
	je	.L22
	call	fork@PLT
	mov	DWORD PTR -292[rbp], eax
.L22:
	cmp	DWORD PTR -292[rbp], 0
	jne	.L23
	movzx	eax, BYTE PTR is_pipe[rip]
	test	al, al
	je	.L24
	mov	eax, DWORD PTR pipe_idx[rip]
	test	eax, eax
	jne	.L25
	mov	eax, DWORD PTR pipe_idx[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_fd[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR pipe_idx[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_fd[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR pipe_idx[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_fd[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	close@PLT
	jmp	.L24
.L25:
	mov	eax, DWORD PTR num_pipe_commands[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR pipe_idx[rip]
	cmp	edx, eax
	jle	.L26
	mov	eax, DWORD PTR pipe_idx[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_fd[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR pipe_idx[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_fd[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR pipe_idx[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_fd[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR pipe_idx[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_fd[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR pipe_idx[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_fd[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR pipe_idx[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_fd[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	close@PLT
	jmp	.L24
.L26:
	mov	eax, DWORD PTR pipe_idx[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_fd[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR pipe_idx[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_fd[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR pipe_idx[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_fd[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	close@PLT
.L24:
	cmp	DWORD PTR -296[rbp], 0
	js	.L27
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, commands[rip+16]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, 0
	call	rdx
	jmp	.L19
.L27:
	mov	eax, DWORD PTR num_tokens[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, tokens[rip]
	mov	QWORD PTR [rdx+rax], 0
	mov	rax, QWORD PTR tokens[rip]
	lea	rsi, tokens[rip]
	mov	rdi, rax
	call	execvp@PLT
	jmp	.L19
.L23:
	movzx	eax, BYTE PTR is_pipe[rip]
	test	al, al
	je	.L28
	mov	eax, DWORD PTR pipe_idx[rip]
	test	eax, eax
	jle	.L28
	mov	eax, DWORD PTR pipe_idx[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_fd[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR pipe_idx[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_fd[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	close@PLT
.L28:
	mov	eax, DWORD PTR -292[rbp]
	mov	edx, 0
	lea	rsi, exit_status[rip]
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, commands[rip+25]
	movzx	eax, BYTE PTR [rdx+rax]
	test	al, al
	je	.L19
	mov	eax, DWORD PTR exit_status[rip]
	sar	eax, 8
	movzx	eax, al
	mov	DWORD PTR exit_code[rip], eax
.L19:
	cmp	DWORD PTR -292[rbp], 0
	jne	.L29
	mov	eax, DWORD PTR exit_code[rip]
	jmp	.L34
.L29:
	mov	BYTE PTR -301[rbp], 0
	movzx	eax, BYTE PTR redirect_in[rip]
	test	al, al
	je	.L31
	mov	eax, DWORD PTR -288[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	BYTE PTR redirect_in[rip], 0
.L31:
	movzx	eax, BYTE PTR redirect_out[rip]
	test	al, al
	je	.L7
	mov	eax, DWORD PTR -284[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	BYTE PTR redirect_out[rip], 0
.L7:
	movzx	eax, BYTE PTR is_pipe[rip]
	test	al, al
	je	.L33
	mov	eax, DWORD PTR pipe_idx[rip]
	add	eax, 1
	mov	DWORD PTR pipe_idx[rip], eax
	mov	edx, DWORD PTR pipe_idx[rip]
	mov	eax, DWORD PTR num_pipe_commands[rip]
	cmp	edx, eax
	jne	.L33
	mov	BYTE PTR is_pipe[rip], 0
	jmp	.L33
.L37:
	nop
	mov	eax, 0
.L34:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	tokenize
	.type	tokenize, @function
tokenize:
.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
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	BYTE PTR -9[rbp], 0
	jmp	.L39
.L41:
	add	DWORD PTR -4[rbp], 1
.L39:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jge	.L40
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jg	.L41
.L40:
	cmp	DWORD PTR -28[rbp], 0
	je	.L42
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	je	.L42
	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, 35
	jne	.L43
.L42:
	mov	eax, 0
	jmp	.L44
.L43:
	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, 34
	jne	.L45
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	mov	rdx, QWORD PTR -24[rbp]
	add	rcx, rdx
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, tokens[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	BYTE PTR -9[rbp], 1
	jmp	.L46
.L45:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	mov	rdx, QWORD PTR -24[rbp]
	add	rcx, rdx
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, tokens[rip]
	mov	QWORD PTR [rdx+rax], rcx
.L46:
	add	DWORD PTR -4[rbp], 1
	jmp	.L47
.L53:
	movzx	eax, BYTE PTR -9[rbp]
	xor	eax, 1
	test	al, al
	je	.L48
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jle	.L48
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L49
.L48:
	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, 34
	jne	.L50
	movzx	eax, BYTE PTR -9[rbp]
	xor	eax, 1
	test	al, al
	je	.L51
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L51
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	mov	rdx, QWORD PTR -24[rbp]
	add	rcx, rdx
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, tokens[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	BYTE PTR -9[rbp], 1
	jmp	.L49
.L51:
	cmp	BYTE PTR -9[rbp], 0
	je	.L49
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	BYTE PTR -9[rbp], 0
	jmp	.L49
.L50:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L49
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L49
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	mov	rdx, QWORD PTR -24[rbp]
	add	rcx, rdx
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, tokens[rip]
	mov	QWORD PTR [rdx+rax], rcx
.L49:
	add	DWORD PTR -4[rbp], 1
.L47:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jle	.L53
	mov	eax, DWORD PTR -8[rbp]
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	tokenize, .-tokenize
	.globl	handle_sigchld
	.type	handle_sigchld, @function
handle_sigchld:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 1
	lea	rsi, exit_status[rip]
	mov	edi, -1
	call	waitpid@PLT
	mov	eax, DWORD PTR exit_status[rip]
	sar	eax, 8
	movzx	eax, al
	mov	DWORD PTR exit_code[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	handle_sigchld, .-handle_sigchld
	.section	.rodata
.LC44:
	.string	"%10s - %s\n"
	.text
	.globl	help
	.type	help, @function
help:
.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, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L56
.L57:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, commands[rip+8]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rax, commands[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rsi, rax
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L56:
	cmp	DWORD PTR -4[rbp], 20
	jle	.L57
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	help, .-help
	.globl	name
	.type	name, @function
name:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR num_tokens[rip]
	cmp	eax, 1
	jle	.L59
	mov	rax, QWORD PTR tokens[rip+8]
	mov	edx, 64
	mov	rsi, rax
	lea	rdi, shell_name[rip]
	call	strncpy@PLT
	jmp	.L61
.L59:
	lea	rdi, shell_name[rip]
	call	puts@PLT
.L61:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	name, .-name
	.section	.rodata
.LC45:
	.string	"%d\n"
	.text
	.globl	status
	.type	status, @function
status:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR exit_code[rip]
	mov	esi, eax
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	status, .-status
	.globl	shell_exit
	.type	shell_exit, @function
shell_exit:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR num_tokens[rip]
	cmp	eax, 1
	jle	.L64
	mov	rax, QWORD PTR tokens[rip+8]
	mov	rdi, rax
	call	atoi@PLT
	mov	edi, eax
	call	exit@PLT
.L64:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE12:
	.size	shell_exit, .-shell_exit
	.section	.rodata
.LC46:
	.string	"%s"
	.text
	.globl	print
	.type	print, @function
print:
.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	DWORD PTR -4[rbp], 1
	jmp	.L66
.L68:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, tokens[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR num_tokens[rip]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	je	.L67
	mov	edi, 32
	call	putchar@PLT
.L67:
	add	DWORD PTR -4[rbp], 1
.L66:
	mov	eax, DWORD PTR num_tokens[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L68
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	print, .-print
	.section	.rodata
.LC47:
	.string	"%s "
	.text
	.globl	echo
	.type	echo, @function
echo:
.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, 16
	mov	DWORD PTR -4[rbp], 1
	jmp	.L70
.L72:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, tokens[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC47[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR num_tokens[rip]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	je	.L71
	mov	edi, 32
	call	putchar@PLT
.L71:
	add	DWORD PTR -4[rbp], 1
.L70:
	mov	eax, DWORD PTR num_tokens[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L72
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	echo, .-echo
	.globl	pid
	.type	pid, @function
pid:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	pid, .-pid
	.globl	ppid
	.type	ppid, @function
ppid:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	getppid@PLT
	mov	esi, eax
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	ppid, .-ppid
	.section	.rodata
.LC48:
	.string	"/"
	.text
	.globl	dir
	.type	dir, @function
dir:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR num_tokens[rip]
	cmp	eax, 1
	jle	.L76
	mov	rax, QWORD PTR tokens[rip+8]
	mov	rdi, rax
	call	chdir@PLT
	mov	DWORD PTR exit_code[rip], eax
	jmp	.L77
.L76:
	lea	rdi, .LC48[rip]
	call	chdir@PLT
	mov	DWORD PTR exit_code[rip], eax
.L77:
	mov	eax, DWORD PTR exit_code[rip]
	test	eax, eax
	jns	.L78
	mov	rax, QWORD PTR tokens[rip]
	mov	rdi, rax
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR exit_code[rip], eax
	jmp	.L75
.L78:
	mov	esi, 256
	lea	rdi, cwd[rip]
	call	getcwd@PLT
.L75:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	dir, .-dir
	.globl	dirwhere
	.type	dirwhere, @function
dirwhere:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, cwd[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	dirwhere, .-dirwhere
	.globl	dirmake
	.type	dirmake, @function
dirmake:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR tokens[rip+8]
	mov	esi, 493
	mov	rdi, rax
	call	mkdir@PLT
	mov	DWORD PTR exit_code[rip], eax
	mov	eax, DWORD PTR exit_code[rip]
	test	eax, eax
	jns	.L83
	mov	rax, QWORD PTR tokens[rip]
	mov	rdi, rax
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR exit_code[rip], eax
.L83:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	dirmake, .-dirmake
	.globl	dirremove
	.type	dirremove, @function
dirremove:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR tokens[rip+8]
	mov	rdi, rax
	call	rmdir@PLT
	mov	DWORD PTR exit_code[rip], eax
	mov	eax, DWORD PTR exit_code[rip]
	test	eax, eax
	jns	.L86
	mov	rax, QWORD PTR tokens[rip]
	mov	rdi, rax
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR exit_code[rip], eax
.L86:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	dirremove, .-dirremove
	.section	.rodata
.LC49:
	.string	"."
.LC50:
	.string	"%s  "
	.text
	.globl	dirlist
	.type	dirlist, @function
dirlist:
.LFB21:
	.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	eax, DWORD PTR num_tokens[rip]
	cmp	eax, 1
	jle	.L88
	mov	rax, QWORD PTR tokens[rip+8]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -16[rbp], rax
	jmp	.L89
.L88:
	lea	rdi, .LC49[rip]
	call	opendir@PLT
	mov	QWORD PTR -16[rbp], rax
.L89:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L90
	mov	rax, QWORD PTR tokens[rip]
	mov	rdi, rax
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR exit_code[rip], eax
	jmp	.L87
.L90:
	mov	DWORD PTR exit_code[rip], 0
	jmp	.L92
.L93:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC50[rip]
	mov	eax, 0
	call	printf@PLT
.L92:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L93
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	closedir@PLT
.L87:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	dirlist, .-dirlist
	.globl	linkhard
	.type	linkhard, @function
linkhard:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rdx, QWORD PTR tokens[rip+16]
	mov	rax, QWORD PTR tokens[rip+8]
	mov	rsi, rdx
	mov	rdi, rax
	call	link@PLT
	mov	DWORD PTR exit_code[rip], eax
	mov	eax, DWORD PTR exit_code[rip]
	test	eax, eax
	jns	.L96
	mov	rax, QWORD PTR tokens[rip]
	mov	rdi, rax
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR exit_code[rip], eax
.L96:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	linkhard, .-linkhard
	.globl	linksoft
	.type	linksoft, @function
linksoft:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rdx, QWORD PTR tokens[rip+16]
	mov	rax, QWORD PTR tokens[rip+8]
	mov	rsi, rdx
	mov	rdi, rax
	call	symlink@PLT
	mov	DWORD PTR exit_code[rip], eax
	mov	eax, DWORD PTR exit_code[rip]
	test	eax, eax
	jns	.L99
	mov	rax, QWORD PTR tokens[rip]
	mov	rdi, rax
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR exit_code[rip], eax
.L99:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	linksoft, .-linksoft
	.globl	linkread
	.type	linkread, @function
linkread:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR tokens[rip+8]
	lea	rcx, -272[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	call	readlink@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], 0
	jns	.L101
	mov	rax, QWORD PTR tokens[rip]
	mov	rdi, rax
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR exit_code[rip], eax
	jmp	.L100
.L101:
	mov	DWORD PTR exit_code[rip], 0
	mov	eax, DWORD PTR -276[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 0
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	puts@PLT
.L100:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L103
	call	__stack_chk_fail@PLT
.L103:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	linkread, .-linkread
	.globl	linklist
	.type	linklist, @function
linklist:
.LFB25:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR tokens[rip+8]
	lea	rdx, -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	DWORD PTR exit_code[rip], eax
	mov	eax, DWORD PTR exit_code[rip]
	test	eax, eax
	jns	.L105
	mov	rax, QWORD PTR tokens[rip]
	mov	rdi, rax
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR exit_code[rip], eax
	jmp	.L104
.L105:
	lea	rdi, cwd[rip]
	call	opendir@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	jne	.L108
	mov	rax, QWORD PTR tokens[rip]
	mov	rdi, rax
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR exit_code[rip], eax
	jmp	.L104
.L109:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -152[rbp]
	cmp	rdx, rax
	jne	.L108
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC50[rip]
	mov	eax, 0
	call	printf@PLT
.L108:
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L109
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	closedir@PLT
.L104:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L111
	call	__stack_chk_fail@PLT
.L111:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	linklist, .-linklist
	.globl	shell_unlink
	.type	shell_unlink, @function
shell_unlink:
.LFB26:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR tokens[rip+8]
	mov	rdi, rax
	call	unlink@PLT
	mov	DWORD PTR exit_code[rip], eax
	mov	eax, DWORD PTR exit_code[rip]
	test	eax, eax
	jns	.L114
	mov	rax, QWORD PTR tokens[rip]
	mov	rdi, rax
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR exit_code[rip], eax
.L114:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	shell_unlink, .-shell_unlink
	.globl	shell_rename
	.type	shell_rename, @function
shell_rename:
.LFB27:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rdx, QWORD PTR tokens[rip+16]
	mov	rax, QWORD PTR tokens[rip+8]
	mov	rsi, rdx
	mov	rdi, rax
	call	rename@PLT
	mov	DWORD PTR exit_code[rip], eax
	mov	eax, DWORD PTR exit_code[rip]
	test	eax, eax
	jns	.L117
	mov	rax, QWORD PTR tokens[rip]
	mov	rdi, rax
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR exit_code[rip], eax
.L117:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	shell_rename, .-shell_rename
	.globl	cpcat
	.type	cpcat, @function
cpcat:
.LFB28:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR num_tokens[rip]
	cmp	eax, 1
	jle	.L119
	mov	rax, QWORD PTR tokens[rip+8]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L119
	movzx	eax, BYTE PTR redirect_in[rip]
	xor	eax, 1
	test	al, al
	je	.L119
	mov	rax, QWORD PTR tokens[rip+8]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4120[rbp], eax
	cmp	DWORD PTR -4120[rbp], 0
	jns	.L120
	mov	rax, QWORD PTR tokens[rip]
	mov	rdi, rax
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR exit_code[rip], eax
	jmp	.L118
.L120:
	mov	eax, DWORD PTR -4120[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	BYTE PTR redirect_in[rip], 1
	mov	eax, DWORD PTR -4120[rbp]
	mov	edi, eax
	call	close@PLT
.L119:
	mov	eax, DWORD PTR num_tokens[rip]
	cmp	eax, 2
	jle	.L124
	mov	rax, QWORD PTR tokens[rip+16]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L124
	movzx	eax, BYTE PTR redirect_out[rip]
	xor	eax, 1
	test	al, al
	je	.L124
	mov	rax, QWORD PTR tokens[rip+16]
	mov	esi, 420
	mov	rdi, rax
	call	creat@PLT
	mov	DWORD PTR -4120[rbp], eax
	cmp	DWORD PTR -4120[rbp], 0
	jns	.L123
	mov	rax, QWORD PTR tokens[rip]
	mov	rdi, rax
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR exit_code[rip], eax
	jmp	.L118
.L123:
	mov	eax, DWORD PTR -4120[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	BYTE PTR redirect_out[rip], 1
	mov	eax, DWORD PTR -4120[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L124
.L125:
	mov	eax, DWORD PTR -4116[rbp]
	movsx	rdx, eax
	lea	rax, -4112[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
.L124:
	lea	rax, -4112[rbp]
	mov	edx, 4096
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -4116[rbp], eax
	cmp	DWORD PTR -4116[rbp], 0
	jg	.L125
	cmp	DWORD PTR -4116[rbp], 0
	jns	.L118
	mov	rax, QWORD PTR tokens[rip]
	mov	rdi, rax
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR exit_code[rip], eax
.L118:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L128
	call	__stack_chk_fail@PLT
.L128:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	cpcat, .-cpcat
	.globl	pipes
	.type	pipes, @function
pipes:
.LFB29:
	.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, 24
	.cfi_offset 3, -24
	mov	eax, DWORD PTR num_tokens[rip]
	sub	eax, 1
	mov	DWORD PTR num_pipe_commands[rip], eax
	mov	DWORD PTR pipe_idx[rip], -1
	mov	BYTE PTR is_pipe[rip], 1
	mov	DWORD PTR -20[rbp], 1
	jmp	.L130
.L132:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_commands[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L131
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_commands[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	free@PLT
.L131:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, tokens[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR -20[rbp]
	lea	ebx, -1[rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	rcx, rax
	movsx	rax, ebx
	lea	rdx, 0[0+rax*8]
	lea	rax, pipe_commands[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, tokens[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, pipe_commands[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -20[rbp], 1
.L130:
	mov	eax, DWORD PTR num_tokens[rip]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L132
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	pipes, .-pipes
	.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	"595951.c"
	.text
	.global	shell_name
	.data
	.align	2
	.type	shell_name, %object
	.size	shell_name, 64
shell_name:
	.ascii	"mysh\000"
	.space	59
	.comm	cwd,256,4
	.comm	tokens,128,4
	.global	pipe_commands
	.bss
	.align	2
	.type	pipe_commands, %object
	.size	pipe_commands, 128
pipe_commands:
	.space	128
	.global	num_tokens
	.align	2
	.type	num_tokens, %object
	.size	num_tokens, 4
num_tokens:
	.space	4
	.comm	num_pipe_commands,4,4
	.comm	pipe_idx,4,4
	.comm	pipe_fd,256,4
	.comm	exit_status,4,4
	.global	exit_code
	.align	2
	.type	exit_code, %object
	.size	exit_code, 4
exit_code:
	.space	4
	.global	is_pipe
	.type	is_pipe, %object
	.size	is_pipe, 1
is_pipe:
	.space	1
	.global	commands
	.section	.rodata
	.align	2
.LC0:
	.ascii	"help\000"
	.align	2
.LC1:
	.ascii	"Print short help.\000"
	.align	2
.LC2:
	.ascii	"name\000"
	.align	2
.LC3:
	.ascii	"Print or change shell name.\000"
	.align	2
.LC4:
	.ascii	"status\000"
	.align	2
.LC5:
	.ascii	"Print last command status.\000"
	.align	2
.LC6:
	.ascii	"exit\000"
	.align	2
.LC7:
	.ascii	"Exit from shell.\000"
	.align	2
.LC8:
	.ascii	"print\000"
	.align	2
.LC9:
	.ascii	"Print arguments.\000"
	.align	2
.LC10:
	.ascii	"echo\000"
	.align	2
.LC11:
	.ascii	"Print arguments with a newline.\000"
	.align	2
.LC12:
	.ascii	"pid\000"
	.align	2
.LC13:
	.ascii	"Print PID.\000"
	.align	2
.LC14:
	.ascii	"ppid\000"
	.align	2
.LC15:
	.ascii	"Print PPID.\000"
	.align	2
.LC16:
	.ascii	"dir\000"
	.align	2
.LC17:
	.ascii	"Change directory.\000"
	.align	2
.LC18:
	.ascii	"dirwhere\000"
	.align	2
.LC19:
	.ascii	"Print current working directory.\000"
	.align	2
.LC20:
	.ascii	"dirmake\000"
	.align	2
.LC21:
	.ascii	"Create a directory.\000"
	.align	2
.LC22:
	.ascii	"dirremove\000"
	.align	2
.LC23:
	.ascii	"Remove a directory.\000"
	.align	2
.LC24:
	.ascii	"dirlist\000"
	.align	2
.LC25:
	.ascii	"List directory contents.\000"
	.align	2
.LC26:
	.ascii	"linkhard\000"
	.align	2
.LC27:
	.ascii	"Create a hard link.\000"
	.align	2
.LC28:
	.ascii	"linksoft\000"
	.align	2
.LC29:
	.ascii	"Create a symbolic link.\000"
	.align	2
.LC30:
	.ascii	"linkread\000"
	.align	2
.LC31:
	.ascii	"Print symbolic link target.\000"
	.align	2
.LC32:
	.ascii	"linklist\000"
	.align	2
.LC33:
	.ascii	"Print hard links to a file.\000"
	.align	2
.LC34:
	.ascii	"unlink\000"
	.align	2
.LC35:
	.ascii	"Remove a file.\000"
	.align	2
.LC36:
	.ascii	"rename\000"
	.align	2
.LC37:
	.ascii	"Rename a file or a directory.\000"
	.align	2
.LC38:
	.ascii	"cpcat\000"
	.align	2
.LC39:
	.ascii	"Copy a file.\000"
	.align	2
.LC40:
	.ascii	"pipes\000"
	.align	2
.LC41:
	.ascii	"Create a pipeline.\000"
	.data
	.align	2
	.type	commands, %object
	.size	commands, 336
commands:
	.word	.LC0
	.word	.LC1
	.word	help
	.byte	0
	.byte	0
	.space	2
	.word	.LC2
	.word	.LC3
	.word	name
	.byte	0
	.byte	0
	.space	2
	.word	.LC4
	.word	.LC5
	.word	status
	.byte	0
	.byte	0
	.space	2
	.word	.LC6
	.word	.LC7
	.word	shell_exit
	.byte	0
	.byte	1
	.space	2
	.word	.LC8
	.word	.LC9
	.word	print
	.byte	0
	.byte	0
	.space	2
	.word	.LC10
	.word	.LC11
	.word	echo
	.byte	0
	.byte	0
	.space	2
	.word	.LC12
	.word	.LC13
	.word	pid
	.byte	0
	.byte	0
	.space	2
	.word	.LC14
	.word	.LC15
	.word	ppid
	.byte	0
	.byte	0
	.space	2
	.word	.LC16
	.word	.LC17
	.word	dir
	.byte	0
	.byte	1
	.space	2
	.word	.LC18
	.word	.LC19
	.word	dirwhere
	.byte	1
	.byte	0
	.space	2
	.word	.LC20
	.word	.LC21
	.word	dirmake
	.byte	1
	.byte	1
	.space	2
	.word	.LC22
	.word	.LC23
	.word	dirremove
	.byte	1
	.byte	1
	.space	2
	.word	.LC24
	.word	.LC25
	.word	dirlist
	.byte	1
	.byte	1
	.space	2
	.word	.LC26
	.word	.LC27
	.word	linkhard
	.byte	1
	.byte	1
	.space	2
	.word	.LC28
	.word	.LC29
	.word	linksoft
	.byte	1
	.byte	1
	.space	2
	.word	.LC30
	.word	.LC31
	.word	linkread
	.byte	1
	.byte	1
	.space	2
	.word	.LC32
	.word	.LC33
	.word	linklist
	.byte	1
	.byte	1
	.space	2
	.word	.LC34
	.word	.LC35
	.word	shell_unlink
	.byte	1
	.byte	1
	.space	2
	.word	.LC36
	.word	.LC37
	.word	shell_rename
	.byte	1
	.byte	1
	.space	2
	.word	.LC38
	.word	.LC39
	.word	cpcat
	.byte	0
	.byte	1
	.space	2
	.word	.LC40
	.word	.LC41
	.word	pipes
	.byte	0
	.byte	1
	.space	2
	.global	redirect_in
	.bss
	.type	redirect_in, %object
	.size	redirect_in, 1
redirect_in:
	.space	1
	.global	redirect_out
	.type	redirect_out, %object
	.size	redirect_out, 1
redirect_out:
	.space	1
	.section	.rodata
	.align	2
.LC42:
	.ascii	"%s> \000"
	.align	2
.LC43:
	.ascii	"redirect\000"
	.align	2
.LC44:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #300
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #0
	bl	dup
	str	r0, [fp, #-288]
	mov	r0, #1
	bl	dup
	str	r0, [fp, #-284]
	mov	r3, #0
	strb	r3, [fp, #-301]
	mov	r3, #1
	str	r3, [fp, #-292]
	ldr	r1, .L38+4
	mov	r0, #17
	bl	signal
	mov	r1, #256
	ldr	r0, .L38+8
	bl	getcwd
.L33:
	ldr	r3, .L38+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L2
	mov	r0, #0
	bl	isatty
	mov	r3, r0
	cmp	r3, #1
	bne	.L2
	ldr	r1, .L38+16
	ldr	r0, .L38+20
	bl	printf
	ldr	r3, .L38+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L2:
	ldr	r3, .L38+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L38+28
	ldr	r2, [r3]
	sub	r3, fp, #272
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-280]
	ldr	r3, [fp, #-280]
	sub	r3, r3, #1
	str	r3, [fp, #-280]
	sub	r2, fp, #272
	ldr	r3, [fp, #-280]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L38+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	sub	r3, fp, #272
	ldr	r1, [fp, #-280]
	mov	r0, r3
	bl	tokenize
	mov	r3, r0
	ldr	r2, .L38+32
	str	r3, [r2]
	b	.L6
.L3:
	ldr	r3, .L38+36
	ldr	r3, [r3]
	ldr	r2, .L38+40
	ldr	r4, [r2, r3, lsl #2]
	ldr	r3, .L38+36
	ldr	r3, [r3]
	ldr	r2, .L38+40
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	tokenize
	mov	r3, r0
	ldr	r2, .L38+32
	str	r3, [r2]
	ldr	r3, .L38+44
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, .L38+36
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L6
	ldr	r3, .L38+36
	ldr	r3, [r3]
	lsl	r3, r3, #3
	ldr	r2, .L38+48
	add	r3, r3, r2
	mov	r0, r3
	bl	pipe
.L6:
	ldr	r3, .L38+32
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L7
	ldr	r3, .L38+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L38+52
	ldr	r3, [r2, r3, lsl #2]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #38
	bne	.L8
	mov	r3, #1
	strb	r3, [fp, #-301]
	ldr	r3, .L38+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L38+32
	str	r3, [r2]
.L8:
	ldr	r3, .L38+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L38+52
	ldr	r3, [r2, r3, lsl #2]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #62
	bne	.L9
	ldr	r3, .L38+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L38+32
	str	r3, [r2]
	ldr	r3, .L38+32
	ldr	r3, [r3]
	ldr	r2, .L38+52
	ldr	r3, [r2, r3, lsl #2]
	add	r3, r3, #1
	mov	r1, #420
	mov	r0, r3
	bl	creat
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L38+56
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L38+60
	str	r3, [r2]
	b	.L9
.L10:
	ldr	r3, .L38+64
	mov	r2, #1
	strb	r2, [r3]
	mov	r1, #1
	ldr	r0, [fp, #-276]
	bl	dup2
	ldr	r0, [fp, #-276]
	bl	close
.L9:
	ldr	r3, .L38+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L38+52
	ldr	r3, [r2, r3, lsl #2]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #60
	bne	.L11
	ldr	r3, .L38+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L38+32
	str	r3, [r2]
	ldr	r3, .L38+32
	ldr	r3, [r3]
	ldr	r2, .L38+52
	ldr	r3, [r2, r3, lsl #2]
	add	r3, r3, #1
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L38+56
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L38+60
	str	r3, [r2]
	b	.L11
.L12:
	ldr	r3, .L38+68
	mov	r2, #1
	strb	r2, [r3]
	mov	r1, #0
	ldr	r0, [fp, #-276]
	bl	dup2
	ldr	r0, [fp, #-276]
	bl	close
.L11:
	mvn	r3, #0
	str	r3, [fp, #-296]
	mov	r3, #0
	str	r3, [fp, #-300]
	b	.L13
.L16:
	ldr	r3, .L38+52
	ldr	r2, [r3]
	ldr	r1, .L38+72
	ldr	r3, [fp, #-300]
	ldr	r3, [r1, r3, lsl #4]
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-300]
	str	r3, [fp, #-296]
	b	.L15
.L14:
	ldr	r3, [fp, #-300]
	add	r3, r3, #1
	str	r3, [fp, #-300]
.L13:
	ldr	r3, [fp, #-300]
	cmp	r3, #20
	ble	.L16
.L15:
	ldrb	r3, [fp, #-301]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L17
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-292]
.L17:
	ldrb	r3, [fp, #-301]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L18
	ldrb	r3, [fp, #-301]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	bne	.L19
.L18:
	ldr	r2, .L38+72
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #13]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L38+60
	mov	r2, #0
	str	r2, [r3]
.L20:
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	ble	.L21
	ldr	r2, .L38+72
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L38+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L21
	ldr	r2, .L38+72
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	blx	r3
	b	.L19
.L21:
	ldrb	r3, [fp, #-301]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L22
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-292]
.L22:
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L38+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L38+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L25
	ldr	r3, .L38+36
	ldr	r3, [r3]
	ldr	r2, .L38+48
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r3, .L38+36
	ldr	r3, [r3]
	ldr	r2, .L38+48
	ldr	r3, [r2, r3, lsl #3]
	mov	r0, r3
	bl	close
	ldr	r3, .L38+36
	ldr	r3, [r3]
	ldr	r2, .L38+48
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
	b	.L24
.L25:
	ldr	r3, .L38+44
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, .L38+36
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L26
	ldr	r3, .L38+36
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L38+48
	ldr	r3, [r2, r3, lsl #3]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, .L38+36
	ldr	r3, [r3]
	ldr	r2, .L38+48
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r3, .L38+36
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L38+48
	ldr	r3, [r2, r3, lsl #3]
	mov	r0, r3
	bl	close
	ldr	r3, .L38+36
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L38+48
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
	ldr	r3, .L38+36
	ldr	r3, [r3]
	ldr	r2, .L38+48
	ldr	r3, [r2, r3, lsl #3]
	mov	r0, r3
	bl	close
	ldr	r3, .L38+36
	ldr	r3, [r3]
	ldr	r2, .L38+48
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
	b	.L24
.L26:
	ldr	r3, .L38+36
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L38+48
	ldr	r3, [r2, r3, lsl #3]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, .L38+36
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L38+48
	ldr	r3, [r2, r3, lsl #3]
	mov	r0, r3
	bl	close
	ldr	r3, .L38+36
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L38+48
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
.L24:
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	blt	.L27
	ldr	r2, .L38+72
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	blx	r3
	b	.L19
.L27:
	ldr	r3, .L38+32
	ldr	r3, [r3]
	ldr	r2, .L38+52
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, .L38+52
	ldr	r3, [r3]
	ldr	r1, .L38+52
	mov	r0, r3
	bl	execvp
	b	.L19
.L23:
	ldr	r3, .L38+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L28
	ldr	r3, .L38+36
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L28
	ldr	r3, .L38+36
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L38+48
	ldr	r3, [r2, r3, lsl #3]
	mov	r0, r3
	bl	close
	ldr	r3, .L38+36
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L38+48
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
.L28:
	mov	r2, #0
	ldr	r1, .L38+76
	ldr	r0, [fp, #-292]
	bl	waitpid
	ldr	r2, .L38+72
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #13]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L38+76
	ldr	r3, [r3]
	asr	r3, r3, #8
	and	r3, r3, #255
	ldr	r2, .L38+60
	str	r3, [r2]
.L19:
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	bne	.L29
	ldr	r3, .L38+60
	ldr	r3, [r3]
	b	.L34
.L29:
	mov	r3, #0
	strb	r3, [fp, #-301]
	ldr	r3, .L38+68
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L31
	mov	r1, #0
	ldr	r0, [fp, #-288]
	bl	dup2
	ldr	r3, .L38+68
	mov	r2, #0
	strb	r2, [r3]
.L31:
	ldr	r3, .L38+64
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	mov	r1, #1
	ldr	r0, [fp, #-284]
	bl	dup2
	ldr	r3, .L38+64
	mov	r2, #0
	strb	r2, [r3]
.L7:
	ldr	r3, .L38+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L33
	ldr	r3, .L38+36
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L38+36
	str	r3, [r2]
	ldr	r3, .L38+36
	ldr	r2, [r3]
	ldr	r3, .L38+44
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L33
	ldr	r3, .L38+12
	mov	r2, #0
	strb	r2, [r3]
	b	.L33
.L37:
	nop
	mov	r3, #0
.L34:
	ldr	r2, .L38
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC44
	.word	handle_sigchld
	.word	cwd
	.word	is_pipe
	.word	shell_name
	.word	.LC42
	.word	stdout
	.word	stdin
	.word	num_tokens
	.word	pipe_idx
	.word	pipe_commands
	.word	num_pipe_commands
	.word	pipe_fd
	.word	tokens
	.word	.LC43
	.word	exit_code
	.word	redirect_out
	.word	redirect_in
	.word	commands
	.word	exit_status
	.size	main, .-main
	.align	2
	.global	tokenize
	.syntax unified
	.arm
	.fpu softvfp
	.type	tokenize, %function
tokenize:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	strb	r3, [fp, #-13]
	b	.L41
.L43:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L41:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bge	.L42
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bgt	.L43
.L42:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L44
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	beq	.L44
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L45
.L44:
	mov	r3, #0
	b	.L46
.L45:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	bne	.L47
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-24]
	add	r2, r1, r2
	ldr	r1, .L56
	str	r2, [r1, r3, lsl #2]
	mov	r3, #1
	strb	r3, [fp, #-13]
	b	.L48
.L47:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-24]
	add	r2, r1, r2
	ldr	r1, .L56
	str	r2, [r1, r3, lsl #2]
.L48:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L49
.L55:
	ldrb	r3, [fp, #-13]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L50
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	ble	.L50
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L51
.L50:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	bne	.L52
	ldrb	r3, [fp, #-13]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L53
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-24]
	add	r2, r1, r2
	ldr	r1, .L56
	str	r2, [r1, r3, lsl #2]
	mov	r3, #1
	strb	r3, [fp, #-13]
	b	.L51
.L53:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	strb	r3, [fp, #-13]
	b	.L51
.L52:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L51
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-24]
	add	r2, r1, r2
	ldr	r1, .L56
	str	r2, [r1, r3, lsl #2]
.L51:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L49:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L55
	ldr	r3, [fp, #-12]
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	tokens
	.size	tokenize, .-tokenize
	.align	2
	.global	handle_sigchld
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_sigchld, %function
handle_sigchld:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #1
	ldr	r1, .L59
	mvn	r0, #0
	bl	waitpid
	ldr	r3, .L59
	ldr	r3, [r3]
	asr	r3, r3, #8
	and	r3, r3, #255
	ldr	r2, .L59+4
	str	r3, [r2]
	nop
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	exit_status
	.word	exit_code
	.size	handle_sigchld, .-handle_sigchld
	.section	.rodata
	.align	2
.LC45:
	.ascii	"%10s - %s\012\000"
	.text
	.align	2
	.global	help
	.syntax unified
	.arm
	.fpu softvfp
	.type	help, %function
help:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L62
.L63:
	ldr	r2, .L64
	ldr	r3, [fp, #-8]
	ldr	r1, [r2, r3, lsl #4]
	ldr	r2, .L64
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L64+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L62:
	ldr	r3, [fp, #-8]
	cmp	r3, #20
	ble	.L63
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	commands
	.word	.LC45
	.size	help, .-help
	.align	2
	.global	name
	.syntax unified
	.arm
	.fpu softvfp
	.type	name, %function
name:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L70
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L67
	ldr	r3, .L70+4
	ldr	r3, [r3, #4]
	mov	r2, #64
	mov	r1, r3
	ldr	r0, .L70+8
	bl	strncpy
	b	.L69
.L67:
	ldr	r0, .L70+8
	bl	puts
.L69:
	nop
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	num_tokens
	.word	tokens
	.word	shell_name
	.size	name, .-name
	.section	.rodata
	.align	2
.LC46:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	status
	.syntax unified
	.arm
	.fpu softvfp
	.type	status, %function
status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L73
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L73+4
	bl	printf
	nop
	pop	{fp, pc}
.L74:
	.align	2
.L73:
	.word	exit_code
	.word	.LC46
	.size	status, .-status
	.align	2
	.global	shell_exit
	.syntax unified
	.arm
	.fpu softvfp
	.type	shell_exit, %function
shell_exit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L77
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L76
	ldr	r3, .L77+4
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r0, r3
	bl	exit
.L76:
	mov	r0, #0
	bl	exit
.L78:
	.align	2
.L77:
	.word	num_tokens
	.word	tokens
	.size	shell_exit, .-shell_exit
	.section	.rodata
	.align	2
.LC47:
	.ascii	"%s\000"
	.text
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L80
.L82:
	ldr	r2, .L83
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L83+4
	bl	printf
	ldr	r3, .L83+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L81
	mov	r0, #32
	bl	putchar
.L81:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L80:
	ldr	r3, .L83+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L82
	ldr	r3, .L83+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L84:
	.align	2
.L83:
	.word	tokens
	.word	.LC47
	.word	num_tokens
	.word	stdout
	.size	print, .-print
	.section	.rodata
	.align	2
.LC48:
	.ascii	"%s \000"
	.text
	.align	2
	.global	echo
	.syntax unified
	.arm
	.fpu softvfp
	.type	echo, %function
echo:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L86
.L88:
	ldr	r2, .L89
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L89+4
	bl	printf
	ldr	r3, .L89+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L87
	mov	r0, #32
	bl	putchar
.L87:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L86:
	ldr	r3, .L89+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L88
	mov	r0, #10
	bl	putchar
	ldr	r3, .L89+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.word	tokens
	.word	.LC48
	.word	num_tokens
	.word	stdout
	.size	echo, .-echo
	.align	2
	.global	pid
	.syntax unified
	.arm
	.fpu softvfp
	.type	pid, %function
pid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L92
	bl	printf
	nop
	pop	{fp, pc}
.L93:
	.align	2
.L92:
	.word	.LC46
	.size	pid, .-pid
	.align	2
	.global	ppid
	.syntax unified
	.arm
	.fpu softvfp
	.type	ppid, %function
ppid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	getppid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L95
	bl	printf
	nop
	pop	{fp, pc}
.L96:
	.align	2
.L95:
	.word	.LC46
	.size	ppid, .-ppid
	.section	.rodata
	.align	2
.LC49:
	.ascii	"/\000"
	.text
	.align	2
	.global	dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	dir, %function
dir:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L102
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L98
	ldr	r3, .L102+4
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	ldr	r2, .L102+8
	str	r3, [r2]
	b	.L99
.L98:
	ldr	r0, .L102+12
	bl	chdir
	mov	r3, r0
	ldr	r2, .L102+8
	str	r3, [r2]
.L99:
	ldr	r3, .L102+8
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L100
	ldr	r3, .L102+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L102+8
	str	r3, [r2]
	pop	{fp, pc}
.L100:
	mov	r1, #256
	ldr	r0, .L102+16
	bl	getcwd
	pop	{fp, pc}
.L103:
	.align	2
.L102:
	.word	num_tokens
	.word	tokens
	.word	exit_code
	.word	.LC49
	.word	cwd
	.size	dir, .-dir
	.align	2
	.global	dirwhere
	.syntax unified
	.arm
	.fpu softvfp
	.type	dirwhere, %function
dirwhere:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L105
	bl	puts
	nop
	pop	{fp, pc}
.L106:
	.align	2
.L105:
	.word	cwd
	.size	dirwhere, .-dirwhere
	.align	2
	.global	dirmake
	.syntax unified
	.arm
	.fpu softvfp
	.type	dirmake, %function
dirmake:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L110
	ldr	r3, [r3, #4]
	ldr	r1, .L110+4
	mov	r0, r3
	bl	mkdir
	mov	r3, r0
	ldr	r2, .L110+8
	str	r3, [r2]
	ldr	r3, .L110+8
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L109
	ldr	r3, .L110
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L110+8
	str	r3, [r2]
.L109:
	nop
	pop	{fp, pc}
.L111:
	.align	2
.L110:
	.word	tokens
	.word	493
	.word	exit_code
	.size	dirmake, .-dirmake
	.align	2
	.global	dirremove
	.syntax unified
	.arm
	.fpu softvfp
	.type	dirremove, %function
dirremove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L115
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	rmdir
	mov	r3, r0
	ldr	r2, .L115+4
	str	r3, [r2]
	ldr	r3, .L115+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L114
	ldr	r3, .L115
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L115+4
	str	r3, [r2]
.L114:
	nop
	pop	{fp, pc}
.L116:
	.align	2
.L115:
	.word	tokens
	.word	exit_code
	.size	dirremove, .-dirremove
	.section	.rodata
	.align	2
.LC50:
	.ascii	".\000"
	.align	2
.LC51:
	.ascii	"%s  \000"
	.text
	.align	2
	.global	dirlist
	.syntax unified
	.arm
	.fpu softvfp
	.type	dirlist, %function
dirlist:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L124
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L118
	ldr	r3, .L124+4
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	opendir
	str	r0, [fp, #-12]
	b	.L119
.L118:
	ldr	r0, .L124+8
	bl	opendir
	str	r0, [fp, #-12]
.L119:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L120
	ldr	r3, .L124+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L124+12
	str	r3, [r2]
	b	.L117
.L120:
	ldr	r3, .L124+12
	mov	r2, #0
	str	r2, [r3]
	b	.L122
.L123:
	ldr	r3, [fp, #-8]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L124+16
	bl	printf
.L122:
	ldr	r0, [fp, #-12]
	bl	readdir
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L123
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-12]
	bl	closedir
.L117:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L125:
	.align	2
.L124:
	.word	num_tokens
	.word	tokens
	.word	.LC50
	.word	exit_code
	.word	.LC51
	.size	dirlist, .-dirlist
	.align	2
	.global	linkhard
	.syntax unified
	.arm
	.fpu softvfp
	.type	linkhard, %function
linkhard:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L129
	ldr	r3, [r3, #4]
	ldr	r2, .L129
	ldr	r2, [r2, #8]
	mov	r1, r2
	mov	r0, r3
	bl	link
	mov	r3, r0
	ldr	r2, .L129+4
	str	r3, [r2]
	ldr	r3, .L129+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L128
	ldr	r3, .L129
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L129+4
	str	r3, [r2]
.L128:
	nop
	pop	{fp, pc}
.L130:
	.align	2
.L129:
	.word	tokens
	.word	exit_code
	.size	linkhard, .-linkhard
	.align	2
	.global	linksoft
	.syntax unified
	.arm
	.fpu softvfp
	.type	linksoft, %function
linksoft:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L134
	ldr	r3, [r3, #4]
	ldr	r2, .L134
	ldr	r2, [r2, #8]
	mov	r1, r2
	mov	r0, r3
	bl	symlink
	mov	r3, r0
	ldr	r2, .L134+4
	str	r3, [r2]
	ldr	r3, .L134+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L133
	ldr	r3, .L134
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L134+4
	str	r3, [r2]
.L133:
	nop
	pop	{fp, pc}
.L135:
	.align	2
.L134:
	.word	tokens
	.word	exit_code
	.size	linksoft, .-linksoft
	.section	.rodata
	.align	2
.LC52:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	linkread
	.syntax unified
	.arm
	.fpu softvfp
	.type	linkread, %function
linkread:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	ldr	r3, .L140
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L140+4
	ldr	r3, [r3, #4]
	sub	r1, fp, #264
	mov	r2, #256
	mov	r0, r3
	bl	readlink
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bge	.L137
	ldr	r3, .L140+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L140+8
	str	r3, [r2]
	b	.L136
.L137:
	ldr	r3, .L140+8
	mov	r2, #0
	str	r2, [r3]
	sub	r2, fp, #264
	ldr	r3, [fp, #-268]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #264
	mov	r0, r3
	bl	puts
.L136:
	ldr	r3, .L140
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L139
	bl	__stack_chk_fail
.L139:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L141:
	.align	2
.L140:
	.word	.LC52
	.word	tokens
	.word	exit_code
	.size	linkread, .-linkread
	.section	.rodata
	.align	2
.LC53:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	linklist
	.syntax unified
	.arm
	.fpu softvfp
	.type	linklist, %function
linklist:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	ldr	r3, .L150
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L150+4
	ldr	r3, [r3, #4]
	sub	r2, fp, #100
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	ldr	r2, .L150+8
	str	r3, [r2]
	ldr	r3, .L150+8
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L143
	ldr	r3, .L150+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L150+8
	str	r3, [r2]
	b	.L142
.L143:
	ldr	r0, .L150+12
	bl	opendir
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L146
	ldr	r3, .L150+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L150+8
	str	r3, [r2]
	b	.L142
.L147:
	ldr	r3, [fp, #-104]
	ldr	r2, [r3]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	bne	.L146
	ldr	r3, [fp, #-104]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L150+16
	bl	printf
.L146:
	ldr	r0, [fp, #-108]
	bl	readdir
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L147
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-108]
	bl	closedir
.L142:
	ldr	r3, .L150
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L149
	bl	__stack_chk_fail
.L149:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L151:
	.align	2
.L150:
	.word	.LC53
	.word	tokens
	.word	exit_code
	.word	cwd
	.word	.LC51
	.size	linklist, .-linklist
	.align	2
	.global	shell_unlink
	.syntax unified
	.arm
	.fpu softvfp
	.type	shell_unlink, %function
shell_unlink:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L155
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	unlink
	mov	r3, r0
	ldr	r2, .L155+4
	str	r3, [r2]
	ldr	r3, .L155+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L154
	ldr	r3, .L155
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L155+4
	str	r3, [r2]
.L154:
	nop
	pop	{fp, pc}
.L156:
	.align	2
.L155:
	.word	tokens
	.word	exit_code
	.size	shell_unlink, .-shell_unlink
	.align	2
	.global	shell_rename
	.syntax unified
	.arm
	.fpu softvfp
	.type	shell_rename, %function
shell_rename:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L160
	ldr	r3, [r3, #4]
	ldr	r2, .L160
	ldr	r2, [r2, #8]
	mov	r1, r2
	mov	r0, r3
	bl	rename
	mov	r3, r0
	ldr	r2, .L160+4
	str	r3, [r2]
	ldr	r3, .L160+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L159
	ldr	r3, .L160
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L160+4
	str	r3, [r2]
.L159:
	nop
	pop	{fp, pc}
.L161:
	.align	2
.L160:
	.word	tokens
	.word	exit_code
	.size	shell_rename, .-shell_rename
	.section	.rodata
	.align	2
.LC54:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cpcat
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpcat, %function
cpcat:
	@ args = 0, pretend = 0, frame = 4112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #20
	ldr	r3, .L173
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L173+4
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L163
	ldr	r3, .L173+8
	ldr	r3, [r3, #4]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L163
	ldr	r3, .L173+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L163
	ldr	r3, .L173+8
	ldr	r3, [r3, #4]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bge	.L164
	ldr	r3, .L173+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L173+16
	str	r3, [r2]
	b	.L162
.L164:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, #0
	ldr	r0, [r3, #-12]
	bl	dup2
	ldr	r3, .L173+12
	mov	r2, #1
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	close
.L163:
	ldr	r3, .L173+4
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L168
	ldr	r3, .L173+8
	ldr	r3, [r3, #8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L168
	ldr	r3, .L173+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L168
	ldr	r3, .L173+8
	ldr	r3, [r3, #8]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r1, #420
	mov	r0, r3
	bl	creat
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bge	.L167
	ldr	r3, .L173+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L173+16
	str	r3, [r2]
	b	.L162
.L167:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, #1
	ldr	r0, [r3, #-12]
	bl	dup2
	ldr	r3, .L173+20
	mov	r2, #1
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	close
	b	.L168
.L169:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #1
	bl	write
.L168:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bgt	.L169
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bge	.L162
	ldr	r3, .L173+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L173+16
	str	r3, [r2]
.L162:
	ldr	r3, .L173
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L172
	bl	__stack_chk_fail
.L172:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L174:
	.align	2
.L173:
	.word	.LC54
	.word	num_tokens
	.word	tokens
	.word	redirect_in
	.word	exit_code
	.word	redirect_out
	.size	cpcat, .-cpcat
	.align	2
	.global	pipes
	.syntax unified
	.arm
	.fpu softvfp
	.type	pipes, %function
pipes:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	ldr	r3, .L179
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L179+4
	str	r3, [r2]
	ldr	r3, .L179+8
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L179+12
	mov	r2, #1
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L176
.L178:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, .L179+16
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L177
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, .L179+16
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	free
.L177:
	ldr	r2, .L179+20
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-16]
	sub	r4, r3, #1
	mov	r0, r2
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L179+16
	str	r2, [r3, r4, lsl #2]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, .L179+16
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L179+20
	ldr	r3, [fp, #-16]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L176:
	ldr	r3, .L179
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L178
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L180:
	.align	2
.L179:
	.word	num_tokens
	.word	num_pipe_commands
	.word	pipe_idx
	.word	is_pipe
	.word	pipe_commands
	.word	tokens
	.size	pipes, .-pipes
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
