	.file	"28263427.c"
	.intel_syntax noprefix
	.text
	.globl	err_exit
	.type	err_exit, @function
err_exit:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	err_exit, .-err_exit
	.globl	trim
	.type	trim, @function
trim:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	jmp	.L3
.L4:
	add	QWORD PTR -8[rbp], 1
.L3:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 124
	je	.L4
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L4
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	trim, .-trim
	.globl	PATH
	.bss
	.align 8
	.type	PATH, @object
	.size	PATH, 8
PATH:
	.zero	8
	.globl	sigint_rcvd
	.type	sigint_rcvd, @object
	.size	sigint_rcvd, 1
sigint_rcvd:
	.zero	1
	.globl	sc_lookup_table
	.align 8
	.type	sc_lookup_table, @object
	.size	sc_lookup_table, 8
sc_lookup_table:
	.zero	8
	.section	.rodata
.LC0:
	.string	"\n*************"
.LC1:
	.string	"Program : %s\n"
.LC2:
	.string	"Num Opts : %lu\n"
.LC3:
	.string	"Opt : %s\n"
.LC4:
	.string	"In/Out fd : %d , %d\n"
.LC5:
	.string	"In/Out redirect : %s , %s\n"
.LC6:
	.string	"IsAppend : %d\n"
	.text
	.globl	print_cmd_struct
	.type	print_cmd_struct, @function
print_cmd_struct:
.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
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -8[rbp], 0
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -8[rbp], 1
.L7:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L8
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 28[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 48[rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print_cmd_struct, .-print_cmd_struct
	.globl	free_cmd_struct
	.type	free_cmd_struct, @function
free_cmd_struct:
.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	QWORD PTR -8[rbp], 0
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	QWORD PTR -8[rbp], 1
.L10:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jb	.L11
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	free_cmd_struct, .-free_cmd_struct
	.section	.rodata
.LC7:
	.string	":"
	.text
	.globl	search_cmd_path
	.type	search_cmd_path, @function
search_cmd_path:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR PATH[rip]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	edi, 1025
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L13
.L16:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 47
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	je	.L19
	lea	rsi, .LC7[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -24[rbp], rax
.L13:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L16
	jmp	.L15
.L19:
	nop
.L15:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	QWORD PTR -24[rbp], 0
	je	.L17
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L18
.L17:
	mov	eax, 0
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	search_cmd_path, .-search_cmd_path
	.section	.rodata
.LC8:
	.string	"Command: %s\nProcess ID: %d\n"
.LC9:
	.string	"Error in dup2. Exiting...\n"
	.align 8
.LC10:
	.string	"Cannot open file '%s'. Exiting...\n"
	.align 8
.LC11:
	.string	"Input file '%s' opened in fd %d. Fd %d is remapped to %d\n"
	.align 8
.LC12:
	.string	"Append file '%s' opened in fd %d. Fd %d is remapped to %d\n"
	.align 8
.LC13:
	.string	"Output file '%s' opened in fd %d. Fd %d is remapped to %d\n"
	.align 8
.LC14:
	.string	"\n************OUTPUT************"
	.align 8
.LC15:
	.string	"Command not found in PATH. Exiting...\n"
	.text
	.globl	execute_single_cmd
	.type	execute_single_cmd, @function
execute_single_cmd:
.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, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	getpid@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	je	.L21
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	cmp	eax, -1
	jne	.L21
	lea	rdi, .LC9[rip]
	call	err_exit
.L21:
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 28[rax]
	test	eax, eax
	je	.L22
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	cmp	eax, -1
	jne	.L22
	lea	rdi, .LC9[rip]
	call	err_exit
.L22:
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L23
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	edx, 436
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -132[rbp], eax
	cmp	DWORD PTR -132[rbp], 0
	jns	.L24
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 32[rax]
	lea	rax, -112[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	err_exit
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	ecx, DWORD PTR -132[rbp]
	mov	edx, DWORD PTR -132[rbp]
	mov	r8d, ecx
	mov	ecx, 0
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 48[rax]
	test	eax, eax
	je	.L25
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L25
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, 436
	mov	esi, 1089
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -128[rbp], eax
	cmp	DWORD PTR -128[rbp], 0
	jns	.L26
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 40[rax]
	lea	rax, -112[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	err_exit
	jmp	.L28
.L26:
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	ecx, DWORD PTR -128[rbp]
	mov	edx, DWORD PTR -128[rbp]
	mov	r8d, ecx
	mov	ecx, 1
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L28
.L25:
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 48[rax]
	test	eax, eax
	jne	.L28
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L28
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, 436
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	jns	.L29
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 40[rax]
	lea	rax, -112[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	err_exit
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	ecx, DWORD PTR -124[rbp]
	mov	edx, DWORD PTR -124[rbp]
	mov	r8d, ecx
	mov	ecx, 1
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
.L28:
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	search_cmd_path
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	je	.L30
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 28[rax]
	cmp	eax, 1
	jne	.L31
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	jne	.L31
	lea	rdi, .LC14[rip]
	call	puts@PLT
.L31:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execv@PLT
	jmp	.L34
.L30:
	lea	rdi, .LC15[rip]
	call	perror@PLT
.L34:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	execute_single_cmd, .-execute_single_cmd
	.section	.rodata
.LC16:
	.string	"Error in forking. Exiting...\n"
	.text
	.globl	execute_pipe_cmd
	.type	execute_pipe_cmd, @function
execute_pipe_cmd:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 28[rax], edx
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 24[rax], edx
	call	fork@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L36
	lea	rdi, .LC16[rip]
	call	err_exit
.L36:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L37
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	execute_single_cmd
	jmp	.L40
.L37:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rcx, -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
.L40:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	execute_pipe_cmd, .-execute_pipe_cmd
	.section	.rodata
.LC17:
	.string	"Invalid command. Exiting...\n"
.LC18:
	.string	"Error in pipe. Exiting...\n"
	.align 8
.LC19:
	.string	"Pipe between '%s' and '%s': Read end - %d and Write end - %d\n"
	.align 8
.LC20:
	.string	"******************************"
.LC21:
	.string	"\nStatus of PID %d: %d\n"
	.align 8
.LC22:
	.string	"______________________________\n"
	.text
	.globl	execute_multiple_pipe_cmd
	.type	execute_multiple_pipe_cmd, @function
execute_multiple_pipe_cmd:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 72
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -112[rbp], 0
	jne	.L42
	lea	rdi, .LC17[rip]
	call	err_exit
.L42:
	cmp	QWORD PTR -112[rbp], 1
	jbe	.L43
	mov	rax, rsp
	mov	rbx, rax
	mov	rax, QWORD PTR -112[rbp]
	sub	rax, 1
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	mov	r14, rax
	mov	r15d, 0
	mov	r12, rax
	mov	r13d, 0
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L44:
	cmp	rsp, rdx
	je	.L45
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L44
.L45:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L46
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L46:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -80[rbp], 1
	jmp	.L47
.L57:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -112[rbp]
	jnb	.L48
	mov	rax, QWORD PTR -80[rbp]
	sub	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L48
	lea	rdi, .LC18[rip]
	call	err_exit
.L48:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -112[rbp]
	jnb	.L49
	mov	rax, QWORD PTR -80[rbp]
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR -80[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR 4[rdx+rcx*8]
	mov	DWORD PTR 28[rax], edx
	mov	rax, QWORD PTR -80[rbp]
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR [rdx+rcx*8]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, DWORD PTR 4[rax+rdx*8]
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	ecx, DWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -80[rbp]
	sal	rax, 3
	lea	rdi, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdi
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
.L49:
	call	fork@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jns	.L50
	lea	rdi, .LC16[rip]
	call	err_exit
.L50:
	cmp	DWORD PTR -84[rbp], 0
	jne	.L51
	mov	rax, QWORD PTR -80[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	execute_single_cmd
	jmp	.L52
.L51:
	cmp	QWORD PTR -80[rbp], 1
	jne	.L53
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 4[rax+rdx*8]
	mov	edi, eax
	call	close@PLT
	jmp	.L54
.L53:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -112[rbp]
	jnb	.L55
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, -2[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax+rdx*8]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 4[rax+rdx*8]
	mov	edi, eax
	call	close@PLT
	jmp	.L54
.L55:
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, -2[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax+rdx*8]
	mov	edi, eax
	call	close@PLT
.L54:
	lea	rcx, -92[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	rax, QWORD PTR -80[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 28[rax]
	cmp	eax, 1
	jne	.L56
	mov	rax, QWORD PTR -80[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	jne	.L56
	lea	rdi, .LC20[rip]
	call	puts@PLT
.L56:
	mov	edx, DWORD PTR -92[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
	add	QWORD PTR -80[rbp], 1
.L47:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -112[rbp]
	jbe	.L57
.L52:
	mov	rsp, rbx
	jmp	.L41
.L43:
	call	fork@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], 0
	jns	.L59
	lea	rdi, .LC16[rip]
	call	err_exit
.L59:
	cmp	DWORD PTR -88[rbp], 0
	jne	.L60
	mov	rax, QWORD PTR -112[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	execute_single_cmd
	jmp	.L41
.L60:
	mov	rax, QWORD PTR -112[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	je	.L61
	mov	rax, QWORD PTR -112[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 24[rax]
	mov	edi, eax
	call	close@PLT
.L61:
	mov	rax, QWORD PTR -112[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 28[rax]
	cmp	eax, 1
	je	.L62
	mov	rax, QWORD PTR -112[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 28[rax]
	mov	edi, eax
	call	close@PLT
.L62:
	lea	rcx, -92[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	rax, QWORD PTR -112[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 28[rax]
	cmp	eax, 1
	jne	.L63
	mov	rax, QWORD PTR -112[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	jne	.L63
	lea	rdi, .LC20[rip]
	call	puts@PLT
.L63:
	mov	edx, DWORD PTR -92[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
.L41:
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	execute_multiple_pipe_cmd, .-execute_multiple_pipe_cmd
	.globl	execute_double_pipe_cmd
	.type	execute_double_pipe_cmd, @function
execute_double_pipe_cmd:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L66
	lea	rdi, .LC18[rip]
	call	err_exit
.L66:
	lea	rax, -32[rbp]
	add	rax, 8
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L67
	lea	rdi, .LC18[rip]
	call	err_exit
.L67:
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 28[rax], edx
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 24[rax], edx
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L68
	lea	rdi, .LC16[rip]
	call	err_exit
.L68:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L69
	mov	esi, DWORD PTR -28[rbp]
	mov	ecx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	execute_single_cmd
	jmp	.L70
.L69:
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rcx, -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 28[rax]
	cmp	eax, 1
	jne	.L71
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	jne	.L71
	lea	rdi, .LC20[rip]
	call	puts@PLT
.L71:
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
.L70:
	mov	esi, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	ecx, 0
	mov	edx, 2147483647
	mov	edi, eax
	call	tee@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L72
	call	__stack_chk_fail@PLT
.L72:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	execute_double_pipe_cmd, .-execute_double_pipe_cmd
	.globl	execute_triple_pipe_cmd
	.type	execute_triple_pipe_cmd, @function
execute_triple_pipe_cmd:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -80[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L74
	lea	rdi, .LC18[rip]
	call	err_exit
.L74:
	lea	rax, -32[rbp]
	add	rax, 8
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L75
	lea	rdi, .LC18[rip]
	call	err_exit
.L75:
	lea	rax, -32[rbp]
	add	rax, 16
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L76
	lea	rdi, .LC18[rip]
	call	err_exit
.L76:
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 28[rax], edx
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR 24[rax], edx
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L77
	lea	rdi, .LC16[rip]
	call	err_exit
.L77:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L78
	mov	esi, DWORD PTR -28[rbp]
	mov	ecx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, DWORD PTR -12[rbp]
	mov	ecx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	execute_single_cmd
	jmp	.L79
.L78:
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rcx, -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 28[rax]
	cmp	eax, 1
	jne	.L80
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	jne	.L80
	lea	rdi, .LC20[rip]
	call	puts@PLT
.L80:
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
.L79:
	mov	esi, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	ecx, 0
	mov	edx, 2147483647
	mov	edi, eax
	call	tee@PLT
	mov	esi, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	ecx, 0
	mov	edx, 2147483647
	mov	edi, eax
	call	tee@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L81
	call	__stack_chk_fail@PLT
.L81:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	execute_triple_pipe_cmd, .-execute_triple_pipe_cmd
	.section	.rodata
.LC23:
	.string	" <>"
.LC24:
	.string	" |>"
.LC25:
	.string	" |<"
.LC26:
	.string	"<>"
.LC27:
	.string	" "
	.text
	.globl	parse_single_cmd
	.type	parse_single_cmd, @function
parse_single_cmd:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	QWORD PTR -136[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -136[rbp], 0
	jne	.L83
	mov	eax, 0
	jmp	.L96
.L83:
	mov	edi, 56
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -40[rbp], rax
	lea	rdx, -120[rbp]
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L85
	mov	QWORD PTR -88[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 60
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L86
	add	QWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	trim
	mov	QWORD PTR -24[rbp], rax
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -88[rbp], rax
.L86:
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -80[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 62
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	je	.L87
	add	QWORD PTR -72[rbp], 1
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 62
	jne	.L88
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 48[rax], 1
	add	QWORD PTR -72[rbp], 1
	jmp	.L89
.L88:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 48[rax], 0
.L89:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	trim
	mov	QWORD PTR -72[rbp], rax
	lea	rdx, -104[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -80[rbp], rax
.L87:
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -40[rbp], rax
	lea	rdx, -120[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -128[rbp], 0
	mov	QWORD PTR -96[rbp], 1
	jmp	.L90
.L93:
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L92
	add	QWORD PTR -96[rbp], 1
.L92:
	add	DWORD PTR -128[rbp], 1
.L90:
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L93
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 1
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	DWORD PTR -124[rbp], 0
	lea	rdx, -120[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -64[rbp], rax
	jmp	.L94
.L95:
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -124[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -124[rbp], edx
	cdqe
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rdx], rax
	lea	rax, -120[rbp]
	mov	rdx, rax
	lea	rsi, .LC27[rip]
	mov	edi, 0
	call	strtok_r@PLT
	mov	QWORD PTR -64[rbp], rax
.L94:
	cmp	QWORD PTR -64[rbp], 0
	jne	.L95
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 28[rax], 1
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 16[rax]
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -56[rbp]
	jmp	.L96
.L85:
	mov	eax, 0
.L96:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L97
	call	__stack_chk_fail@PLT
.L97:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	parse_single_cmd, .-parse_single_cmd
	.section	.rodata
.LC28:
	.string	"|"
	.text
	.globl	parse_pipe_cmd
	.type	parse_pipe_cmd, @function
parse_pipe_cmd:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L99
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], 0
	mov	eax, 0
	jmp	.L106
.L99:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -32[rbp], rax
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L101
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L102
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L102:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	parse_single_cmd
	mov	QWORD PTR -16[rbp], rax
	lea	rax, -48[rbp]
	mov	rdx, rax
	lea	rsi, .LC28[rip]
	mov	edi, 0
	call	strtok_r@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L103
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L104
	add	QWORD PTR -40[rbp], 1
.L104:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L105
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L105:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
.L103:
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L106
.L101:
	mov	eax, 0
.L106:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L107
	call	__stack_chk_fail@PLT
.L107:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	parse_pipe_cmd, .-parse_pipe_cmd
	.globl	parse_multiple_pipe_cmd
	.type	parse_multiple_pipe_cmd, @function
parse_multiple_pipe_cmd:
.LFB18:
	.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, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L109
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR [rax], 0
	mov	eax, 0
	jmp	.L119
.L109:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -80[rbp], 0
	mov	QWORD PTR -64[rbp], 1
	jmp	.L111
.L114:
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 124
	jne	.L113
	add	QWORD PTR -64[rbp], 1
.L113:
	add	DWORD PTR -80[rbp], 1
.L111:
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L114
	mov	rax, QWORD PTR -64[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
	mov	DWORD PTR -76[rbp], 0
	lea	rdx, -72[rbp]
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -56[rbp], rax
	jmp	.L115
.L118:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L116
	add	QWORD PTR -56[rbp], 1
.L116:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L117
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L117:
	mov	eax, DWORD PTR -76[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -76[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	lea	rbx, [rdx+rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	parse_single_cmd
	mov	QWORD PTR [rbx], rax
	lea	rax, -72[rbp]
	mov	rdx, rax
	lea	rsi, .LC28[rip]
	mov	edi, 0
	call	strtok_r@PLT
	mov	QWORD PTR -56[rbp], rax
.L115:
	cmp	QWORD PTR -56[rbp], 0
	jne	.L118
	mov	rax, QWORD PTR -40[rbp]
.L119:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L120
	call	__stack_chk_fail@PLT
.L120:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	parse_multiple_pipe_cmd, .-parse_multiple_pipe_cmd
	.section	.rodata
.LC29:
	.string	"||"
.LC30:
	.string	","
	.text
	.globl	parse_cmd
	.type	parse_cmd, @function
parse_cmd:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -152[rbp], 0
	je	.L138
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	jne	.L124
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -120[rbp], rax
	jmp	.L125
.L124:
	mov	rax, QWORD PTR -96[rbp]
	sub	rax, QWORD PTR -104[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
.L125:
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parse_multiple_pipe_cmd
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	je	.L126
	mov	BYTE PTR -129[rbp], 0
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	cmp	al, 124
	jne	.L127
	mov	BYTE PTR -129[rbp], 1
.L127:
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	trim
	mov	QWORD PTR -96[rbp], rax
	lea	rdx, -128[rbp]
	mov	rax, QWORD PTR -96[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	je	.L128
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parse_multiple_pipe_cmd
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	trim
	mov	QWORD PTR -96[rbp], rax
	lea	rax, -128[rbp]
	mov	rdx, rax
	lea	rsi, .LC30[rip]
	mov	edi, 0
	call	strtok_r@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	je	.L129
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parse_multiple_pipe_cmd
	mov	QWORD PTR -40[rbp], rax
	cmp	BYTE PTR -129[rbp], 0
	je	.L130
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	trim
	mov	QWORD PTR -96[rbp], rax
	lea	rax, -128[rbp]
	mov	rdx, rax
	lea	rsi, .LC30[rip]
	mov	edi, 0
	call	strtok_r@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	je	.L131
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parse_multiple_pipe_cmd
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 1
	jbe	.L132
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L133
	lea	rdi, .LC18[rip]
	call	err_exit
.L133:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	sal	rax, 3
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR 28[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execute_multiple_pipe_cmd
.L132:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	sal	rax, 3
	lea	rdi, -8[rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdi
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	execute_triple_pipe_cmd
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execute_multiple_pipe_cmd
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execute_multiple_pipe_cmd
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execute_multiple_pipe_cmd
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L121
.L131:
	lea	rdi, .LC17[rip]
	call	err_exit
	jmp	.L121
.L130:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 1
	jbe	.L135
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L136
	lea	rdi, .LC18[rip]
	call	err_exit
.L136:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	sal	rax, 3
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR 28[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execute_multiple_pipe_cmd
.L135:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	sal	rax, 3
	lea	rsi, -8[rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rsi
	mov	rax, QWORD PTR [rax]
	mov	rsi, rcx
	mov	rdi, rax
	call	execute_double_pipe_cmd
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execute_multiple_pipe_cmd
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execute_multiple_pipe_cmd
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L121
.L129:
	lea	rdi, .LC17[rip]
	call	err_exit
	jmp	.L121
.L128:
	lea	rdi, .LC17[rip]
	call	err_exit
	jmp	.L121
.L126:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execute_multiple_pipe_cmd
	jmp	.L121
.L138:
	nop
.L121:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L137
	call	__stack_chk_fail@PLT
.L137:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	parse_cmd, .-parse_cmd
	.section	.rodata
.LC31:
	.string	"\n(%s) >> "
	.text
	.globl	prompt
	.type	prompt, @function
prompt:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -208[rbp]
	mov	esi, 200
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -208[rbp]
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L140
	call	__stack_chk_fail@PLT
.L140:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	prompt, .-prompt
	.globl	sigint_handler
	.type	sigint_handler, @function
sigint_handler:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	BYTE PTR sigint_rcvd[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	sigint_handler, .-sigint_handler
	.globl	insert_cmd
	.type	insert_cmd, @function
insert_cmd:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR sc_lookup_table[rip]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L143
	mov	rbx, QWORD PTR sc_lookup_table[rip]
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR sc_lookup_table[rip]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdx, QWORD PTR sc_lookup_table[rip]
	mov	rbx, QWORD PTR [rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR sc_lookup_table[rip]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR sc_lookup_table[rip]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 16[rax], 0
	jmp	.L142
.L143:
	mov	rax, QWORD PTR sc_lookup_table[rip]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L145
.L147:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	jne	.L146
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L142
.L146:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
.L145:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L147
	mov	rax, QWORD PTR sc_lookup_table[rip]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rbx, QWORD PTR sc_lookup_table[rip]
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR sc_lookup_table[rip]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdx, QWORD PTR sc_lookup_table[rip]
	mov	rbx, QWORD PTR [rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR sc_lookup_table[rip]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR sc_lookup_table[rip]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	nop
.L142:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	insert_cmd, .-insert_cmd
	.section	.rodata
	.align 8
.LC32:
	.string	"Error: No entry to delete in lookup table. Exiting..."
	.align 8
.LC33:
	.string	"Error: Cannot find matching entry to delete in lookup table. Exiting..."
	.text
	.globl	delete_cmd
	.type	delete_cmd, @function
delete_cmd:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR sc_lookup_table[rip]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L149
	lea	rdi, .LC32[rip]
	call	err_exit
	jmp	.L148
.L149:
	mov	rax, QWORD PTR sc_lookup_table[rip]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L152
	mov	rax, QWORD PTR sc_lookup_table[rip]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR sc_lookup_table[rip]
	mov	rdx, QWORD PTR 16[rdx]
	mov	QWORD PTR [rax], rdx
	jmp	.L148
.L154:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L153
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L148
.L153:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
.L152:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L154
	lea	rdi, .LC33[rip]
	call	err_exit
	nop
.L148:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	delete_cmd, .-delete_cmd
	.globl	search_cmd
	.type	search_cmd, @function
search_cmd:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR sc_lookup_table[rip]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L156
.L159:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L157
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	jmp	.L158
.L157:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
.L156:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L159
	mov	eax, 0
.L158:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	search_cmd, .-search_cmd
	.section	.rodata
.LC34:
	.string	"PATH"
.LC35:
	.string	"nError in sigaction SIGINT!\n"
	.align 8
.LC36:
	.string	"Error : No such command in lookup table with the given index. Exiting..."
.LC37:
	.string	"$ %s\n\n"
.LC38:
	.string	"please exit"
.LC39:
	.string	"sc"
.LC40:
	.string	"-i"
.LC41:
	.string	"-d"
	.align 8
.LC42:
	.string	"Error Correct format for shortcut command is sc -i <index> <cmd> or sc -d <index> <cmd>. Exiting...\n"
	.align 8
.LC43:
	.string	"Error in creating a child process. Exiting...\n"
.LC44:
	.string	"Process details:"
.LC45:
	.string	"\tProcess Id: %d\n"
.LC46:
	.string	"\tProcess Group Id: %d\n"
	.align 8
.LC47:
	.string	"\tForeground Process Group Id: %d\n"
	.align 8
.LC48:
	.string	"Error in creating new process group. Exiting...\n"
	.align 8
.LC49:
	.string	"Error in setting foreground process. Exiting...\n"
.LC50:
	.string	"##"
	.text
	.globl	main
	.type	main, @function
main:
.LFB25:
	.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, 280
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC34[rip]
	call	getenv@PLT
	mov	QWORD PTR PATH[rip], rax
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR sc_lookup_table[rip], rax
	mov	rax, QWORD PTR sc_lookup_table[rip]
	mov	QWORD PTR [rax], 0
	lea	rax, sigint_handler[rip]
	mov	QWORD PTR -192[rbp], rax
	mov	DWORD PTR -56[rbp], 0
	lea	rax, -192[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -192[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L190
	lea	rdi, .LC35[rip]
	call	err_exit
.L190:
	mov	BYTE PTR -283[rbp], 0
	movzx	eax, BYTE PTR sigint_rcvd[rip]
	test	al, al
	je	.L162
	mov	edi, 11
	call	malloc@PLT
	mov	QWORD PTR -248[rbp], rax
	mov	QWORD PTR -240[rbp], 11
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	clearerr@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rcx, -240[rbp]
	lea	rax, -248[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -240[rbp], rax
	mov	rdx, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR -240[rbp]
	sub	rax, 1
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L163
	mov	rdx, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR -240[rbp]
	sub	rax, 1
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L163:
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -280[rbp], eax
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -280[rbp]
	mov	edi, eax
	call	search_cmd
	mov	QWORD PTR -256[rbp], rax
	mov	rax, QWORD PTR -256[rbp]
	test	rax, rax
	jne	.L164
	lea	rdi, .LC36[rip]
	call	puts@PLT
	mov	BYTE PTR sigint_rcvd[rip], 0
	jmp	.L190
.L164:
	mov	rax, QWORD PTR -256[rbp]
	mov	rsi, rax
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -256[rbp], rax
	mov	rax, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -232[rbp], rax
	mov	BYTE PTR sigint_rcvd[rip], 0
	jmp	.L166
.L162:
	mov	eax, 0
	call	prompt
	mov	QWORD PTR -240[rbp], 1025
	mov	rax, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -256[rbp], rax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	clearerr@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rcx, -240[rbp]
	lea	rax, -256[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -232[rbp], rax
	cmp	QWORD PTR -232[rbp], -1
	je	.L192
	cmp	QWORD PTR -232[rbp], 0
	je	.L192
	cmp	QWORD PTR -232[rbp], 0
	jle	.L168
	mov	rax, QWORD PTR -256[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L192
.L168:
	mov	rdx, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR -232[rbp]
	sub	rax, 1
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -232[rbp], rax
.L166:
	mov	rdx, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR -232[rbp]
	sub	rax, 1
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 38
	jne	.L169
	mov	BYTE PTR -283[rbp], 1
	mov	rdx, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR -232[rbp]
	sub	rax, 2
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L170
	mov	rdx, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR -232[rbp]
	sub	rax, 2
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L169
.L170:
	mov	rdx, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR -232[rbp]
	sub	rax, 1
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L169:
	mov	rax, QWORD PTR -256[rbp]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L171
	mov	edi, 0
	call	_exit@PLT
.L171:
	mov	rax, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -232[rbp], rax
	mov	rax, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -224[rbp], rax
	mov	rax, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -216[rbp], rax
	mov	BYTE PTR -282[rbp], 0
	mov	BYTE PTR -281[rbp], 0
	mov	rax, QWORD PTR -216[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L172
	mov	BYTE PTR -281[rbp], 1
	lea	rsi, .LC27[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -208[rbp], rax
	cmp	QWORD PTR -208[rbp], 0
	jne	.L173
	mov	BYTE PTR -282[rbp], 1
	jmp	.L174
.L173:
	mov	rax, QWORD PTR -208[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L175
	lea	rsi, .LC27[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -208[rbp], rax
	cmp	QWORD PTR -208[rbp], 0
	jne	.L176
	mov	BYTE PTR -282[rbp], 1
.L176:
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -272[rbp], eax
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	add	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	trim
	mov	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L177
	mov	BYTE PTR -282[rbp], 1
.L177:
	mov	rdx, QWORD PTR -208[rbp]
	mov	eax, DWORD PTR -272[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	insert_cmd
	jmp	.L174
.L175:
	mov	rax, QWORD PTR -208[rbp]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L178
	lea	rsi, .LC27[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -208[rbp], rax
	cmp	QWORD PTR -208[rbp], 0
	jne	.L179
	mov	BYTE PTR -282[rbp], 1
.L179:
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -276[rbp], eax
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	add	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	trim
	mov	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L180
	mov	BYTE PTR -282[rbp], 1
.L180:
	mov	rdx, QWORD PTR -208[rbp]
	mov	eax, DWORD PTR -276[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	delete_cmd
	jmp	.L174
.L178:
	mov	BYTE PTR -282[rbp], 1
.L174:
	cmp	BYTE PTR -282[rbp], 0
	je	.L172
	lea	rdi, .LC42[rip]
	call	err_exit
.L172:
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	BYTE PTR -281[rbp], 0
	jne	.L193
	lea	rax, -200[rbp]
	mov	rdi, rax
	call	pipe@PLT
	call	fork@PLT
	mov	DWORD PTR -268[rbp], eax
	cmp	DWORD PTR -268[rbp], 0
	jns	.L182
	lea	rdi, .LC43[rip]
	call	err_exit
	jmp	.L183
.L182:
	cmp	DWORD PTR -268[rbp], 0
	jne	.L184
	mov	eax, DWORD PTR -196[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -200[rbp]
	lea	rcx, -27[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -264[rbp], eax
	call	getpid@PLT
	mov	DWORD PTR -260[rbp], eax
	lea	rdi, .LC44[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -260[rbp]
	mov	esi, eax
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -260[rbp]
	mov	edi, eax
	call	getpgid@PLT
	mov	esi, eax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	tcgetpgrp@PLT
	mov	esi, eax
	lea	rdi, .LC47[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -224[rbp]
	mov	rdi, rax
	call	parse_cmd
	jmp	.L183
.L184:
	mov	eax, DWORD PTR -200[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edx, DWORD PTR -268[rbp]
	mov	eax, DWORD PTR -268[rbp]
	mov	esi, edx
	mov	edi, eax
	call	setpgid@PLT
	cmp	eax, -1
	jne	.L185
	lea	rdi, .LC48[rip]
	call	err_exit
.L185:
	mov	esi, 1
	mov	edi, 22
	call	signal@PLT
	movzx	eax, BYTE PTR -283[rbp]
	xor	eax, 1
	test	al, al
	je	.L186
	mov	eax, DWORD PTR -268[rbp]
	mov	esi, eax
	mov	edi, 0
	call	tcsetpgrp@PLT
	cmp	eax, -1
	jne	.L186
	lea	rdi, .LC49[rip]
	call	err_exit
.L186:
	mov	eax, DWORD PTR -196[rbp]
	mov	edx, 2
	lea	rsi, .LC50[rip]
	mov	edi, eax
	call	write@PLT
	movzx	eax, BYTE PTR -283[rbp]
	xor	eax, 1
	test	al, al
	je	.L187
	lea	rcx, -240[rbp]
	mov	eax, DWORD PTR -268[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
.L187:
	mov	edi, 2
	call	tcgetpgrp@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	edi, eax
	call	getpgid@PLT
	cmp	ebx, eax
	je	.L188
	call	getpid@PLT
	mov	esi, eax
	mov	edi, 0
	call	tcsetpgrp@PLT
.L188:
	mov	esi, 0
	mov	edi, 22
	call	signal@PLT
.L183:
	mov	rax, QWORD PTR -224[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L190
.L192:
	nop
	jmp	.L190
.L193:
	nop
	jmp	.L190
	.cfi_endproc
.LFE25:
	.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	"28263427.c"
	.text
	.align	2
	.global	err_exit
	.syntax unified
	.arm
	.fpu softvfp
	.type	err_exit, %function
err_exit:
	@ 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	r0, [fp, #-8]
	bl	puts
	mov	r0, #1
	bl	exit
	.size	err_exit, .-err_exit
	.align	2
	.global	trim
	.syntax unified
	.arm
	.fpu softvfp
	.type	trim, %function
trim:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	b	.L3
.L4:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #124
	beq	.L4
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L4
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	trim, .-trim
	.comm	PATH,4,4
	.global	sigint_rcvd
	.bss
	.type	sigint_rcvd, %object
	.size	sigint_rcvd, 1
sigint_rcvd:
	.space	1
	.comm	sc_lookup_table,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012*************\000"
	.align	2
.LC1:
	.ascii	"Program : %s\012\000"
	.align	2
.LC2:
	.ascii	"Num Opts : %lu\012\000"
	.align	2
.LC3:
	.ascii	"Opt : %s\012\000"
	.align	2
.LC4:
	.ascii	"In/Out fd : %d , %d\012\000"
	.align	2
.LC5:
	.ascii	"In/Out redirect : %s , %s\012\000"
	.align	2
.LC6:
	.ascii	"IsAppend : %d\012\000"
	.text
	.align	2
	.global	print_cmd_struct
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_cmd_struct, %function
print_cmd_struct:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, .L9
	bl	puts
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L9+4
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L9+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L9+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L8
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, .L9+16
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	mov	r2, r3
	ldr	r0, .L9+20
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	mov	r1, r3
	ldr	r0, .L9+24
	bl	printf
	ldr	r0, .L9
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	print_cmd_struct, .-print_cmd_struct
	.align	2
	.global	free_cmd_struct
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_cmd_struct, %function
free_cmd_struct:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L12
.L13:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L13
	ldr	r0, [fp, #-16]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_cmd_struct, .-free_cmd_struct
	.section	.rodata
	.align	2
.LC7:
	.ascii	":\000"
	.align	2
.LC8:
	.ascii	"/\000"
	.text
	.align	2
	.global	search_cmd_path
	.syntax unified
	.arm
	.fpu softvfp
	.type	search_cmd_path, %function
search_cmd_path:
	@ 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, .L22
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r1, .L22+4
	ldr	r0, [fp, #-12]
	bl	strtok
	str	r0, [fp, #-16]
	ldr	r0, .L22+8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	b	.L15
.L18:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	strcpy
	ldr	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	ldr	r2, .L22+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-8]
	bl	strcat
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r1, .L22+4
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-16]
.L15:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L18
	b	.L17
.L21:
	nop
.L17:
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-8]
	b	.L20
.L19:
	mov	r3, #0
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	PATH
	.word	.LC7
	.word	1025
	.word	.LC8
	.size	search_cmd_path, .-search_cmd_path
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Command: %s\012Process ID: %d\012\000"
	.align	2
.LC10:
	.ascii	"Error in dup2. Exiting...\012\000"
	.align	2
.LC11:
	.ascii	"Cannot open file '%s'. Exiting...\012\000"
	.align	2
.LC12:
	.ascii	"Input file '%s' opened in fd %d. Fd %d is remapped "
	.ascii	"to %d\012\000"
	.align	2
.LC13:
	.ascii	"Append file '%s' opened in fd %d. Fd %d is remapped"
	.ascii	" to %d\012\000"
	.align	2
.LC14:
	.ascii	"Output file '%s' opened in fd %d. Fd %d is remapped"
	.ascii	" to %d\012\000"
	.align	2
.LC15:
	.ascii	"\012************OUTPUT************\000"
	.align	2
.LC16:
	.ascii	"Command not found in PATH. Exiting...\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	execute_single_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_single_cmd, %function
execute_single_cmd:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #140
	str	r0, [fp, #-136]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-136]
	ldr	r4, [r3]
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L39+4
	bl	printf
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #12]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	mov	r3, r0
	cmn	r3, #1
	bne	.L25
	ldr	r0, .L39+8
	bl	err_exit
.L25:
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #16]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	mov	r3, r0
	cmn	r3, #1
	bne	.L26
	ldr	r0, .L39+8
	bl	err_exit
.L26:
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #20]
	mov	r2, #436
	mov	r1, #64
	mov	r0, r3
	bl	open
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	bge	.L28
	ldr	r3, [fp, #-136]
	ldr	r2, [r3, #20]
	sub	r3, fp, #116
	ldr	r1, .L39+12
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #116
	mov	r0, r3
	bl	err_exit
	b	.L27
.L28:
	mov	r1, #0
	ldr	r0, [fp, #-132]
	bl	dup2
	ldr	r3, [fp, #-136]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-132]
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, [fp, #-132]
	ldr	r0, .L39+16
	bl	printf
.L27:
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #24]
	mov	r2, #436
	ldr	r1, .L39+20
	mov	r0, r3
	bl	open
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	bge	.L30
	ldr	r3, [fp, #-136]
	ldr	r2, [r3, #24]
	sub	r3, fp, #116
	ldr	r1, .L39+12
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #116
	mov	r0, r3
	bl	err_exit
	b	.L32
.L30:
	mov	r1, #1
	ldr	r0, [fp, #-128]
	bl	dup2
	ldr	r3, [fp, #-136]
	ldr	r1, [r3, #24]
	ldr	r3, [fp, #-128]
	str	r3, [sp]
	mov	r3, #1
	ldr	r2, [fp, #-128]
	ldr	r0, .L39+24
	bl	printf
	b	.L32
.L29:
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bne	.L32
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #24]
	mov	r2, #436
	ldr	r1, .L39+28
	mov	r0, r3
	bl	open
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bge	.L33
	ldr	r3, [fp, #-136]
	ldr	r2, [r3, #24]
	sub	r3, fp, #116
	ldr	r1, .L39+12
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #116
	mov	r0, r3
	bl	err_exit
	b	.L32
.L33:
	mov	r1, #1
	ldr	r0, [fp, #-124]
	bl	dup2
	ldr	r3, [fp, #-136]
	ldr	r1, [r3, #24]
	ldr	r3, [fp, #-124]
	str	r3, [sp]
	mov	r3, #1
	ldr	r2, [fp, #-124]
	ldr	r0, .L39+32
	bl	printf
.L32:
	ldr	r3, [fp, #-136]
	ldr	r3, [r3]
	mov	r0, r3
	bl	search_cmd_path
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #16]
	cmp	r3, #1
	bne	.L35
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L35
	ldr	r0, .L39+36
	bl	puts
.L35:
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	execv
	b	.L38
.L34:
	ldr	r0, .L39+40
	bl	perror
.L38:
	nop
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC17
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	1089
	.word	.LC13
	.word	577
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	execute_single_cmd, .-execute_single_cmd
	.section	.rodata
	.align	2
.LC18:
	.ascii	"Error in forking. Exiting...\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	execute_pipe_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_pipe_cmd, %function
execute_pipe_cmd:
	@ 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]
	str	r1, [fp, #-36]
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #12]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L42
	ldr	r0, .L47+4
	bl	err_exit
.L42:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L43
	ldr	r0, [fp, #-32]
	bl	execute_single_cmd
	b	.L46
.L43:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	sub	r3, fp, #24
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	waitpid
.L46:
	nop
	ldr	r3, .L47
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC19
	.word	.LC18
	.size	execute_pipe_cmd, .-execute_pipe_cmd
	.section	.rodata
	.align	2
.LC20:
	.ascii	"Invalid command. Exiting...\012\000"
	.align	2
.LC21:
	.ascii	"Error in pipe. Exiting...\012\000"
	.align	2
.LC22:
	.ascii	"Pipe between '%s' and '%s': Read end - %d and Write"
	.ascii	" end - %d\012\000"
	.align	2
.LC23:
	.ascii	"******************************\000"
	.align	2
.LC24:
	.ascii	"\012Status of PID %d: %d\012\000"
	.align	2
.LC25:
	.ascii	"______________________________\012\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	execute_multiple_pipe_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_multiple_pipe_cmd, %function
execute_multiple_pipe_cmd:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L50
	ldr	r0, .L70+4
	bl	err_exit
.L50:
	ldr	r3, [fp, #-52]
	cmp	r3, #1
	bls	.L51
	mov	r3, sp
	mov	r4, r3
	ldr	r3, [fp, #-52]
	sub	ip, r3, #1
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	lsl	r3, ip, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L52
.L62:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bcs	.L53
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L53
	ldr	r0, .L70+8
	bl	err_exit
.L53:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bcs	.L54
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-36]
	sub	r2, r2, #-1073741823
	lsl	r2, r2, #2
	ldr	r1, [fp, #-48]
	add	r2, r1, r2
	ldr	r2, [r2]
	ldr	r1, [fp, #-24]
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	str	r3, [r2, #16]
	ldr	r3, [fp, #-36]
	sub	r1, r3, #1
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, r1, lsl #3]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r0, [r3]
	ldr	r3, [fp, #-36]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	ldr	ip, [r3, r2, lsl #3]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L70+12
	bl	printf
.L54:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L55
	ldr	r0, .L70+16
	bl	err_exit
.L55:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L56
	ldr	r3, [fp, #-36]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	execute_single_cmd
	b	.L57
.L56:
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	bne	.L58
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
	b	.L59
.L58:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bcs	.L60
	ldr	r3, [fp, #-36]
	sub	r2, r3, #2
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, r2, lsl #3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
	b	.L59
.L60:
	ldr	r3, [fp, #-36]
	sub	r2, r3, #2
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, r2, lsl #3]
	mov	r0, r3
	bl	close
.L59:
	sub	r3, fp, #40
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	waitpid
	ldr	r3, [fp, #-36]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	cmp	r3, #1
	bne	.L61
	ldr	r3, [fp, #-36]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L61
	ldr	r0, .L70+20
	bl	puts
.L61:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, .L70+24
	bl	printf
	ldr	r0, .L70+28
	bl	puts
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L52:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bls	.L62
.L57:
	mov	sp, r4
	b	.L49
.L51:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L64
	ldr	r0, .L70+16
	bl	err_exit
.L64:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L65
	ldr	r3, [fp, #-52]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	execute_single_cmd
	b	.L49
.L65:
	ldr	r3, [fp, #-52]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L66
	ldr	r3, [fp, #-52]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	close
.L66:
	ldr	r3, [fp, #-52]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	cmp	r3, #1
	beq	.L67
	ldr	r3, [fp, #-52]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	close
.L67:
	sub	r3, fp, #40
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	waitpid
	ldr	r3, [fp, #-52]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	cmp	r3, #1
	bne	.L68
	ldr	r3, [fp, #-52]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L68
	ldr	r0, .L70+20
	bl	puts
.L68:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, .L70+24
	bl	printf
	ldr	r0, .L70+28
	bl	puts
.L49:
	ldr	r3, .L70
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L69
	bl	__stack_chk_fail
.L69:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC26
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC18
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	execute_multiple_pipe_cmd, .-execute_multiple_pipe_cmd
	.section	.rodata
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	execute_double_pipe_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_double_pipe_cmd, %function
execute_double_pipe_cmd:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L80
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L73
	ldr	r0, .L80+4
	bl	err_exit
.L73:
	sub	r3, fp, #24
	add	r3, r3, #8
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L74
	ldr	r0, .L80+4
	bl	err_exit
.L74:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	str	r2, [r3, #16]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	str	r2, [r3, #12]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-48]
	str	r2, [r3, #12]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L75
	ldr	r0, .L80+8
	bl	err_exit
.L75:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L76
	ldr	r3, [fp, #-40]
	ldr	r1, [r3]
	ldr	r3, [fp, #-44]
	ldr	r2, [r3]
	ldr	r0, [fp, #-24]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L80+12
	bl	printf
	ldr	r3, [fp, #-40]
	ldr	r1, [r3]
	ldr	r3, [fp, #-48]
	ldr	r2, [r3]
	ldr	r0, [fp, #-16]
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L80+12
	bl	printf
	ldr	r0, [fp, #-40]
	bl	execute_single_cmd
	b	.L77
.L76:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	close
	sub	r3, fp, #32
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	waitpid
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #16]
	cmp	r3, #1
	bne	.L78
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L78
	ldr	r0, .L80+16
	bl	puts
.L78:
	ldr	r3, [fp, #-32]
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, .L80+20
	bl	printf
	ldr	r0, .L80+24
	bl	puts
.L77:
	ldr	r0, [fp, #-24]
	ldr	r1, [fp, #-12]
	mov	r3, #0
	mvn	r2, #-2147483648
	bl	tee
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	nop
	ldr	r3, .L80
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L79
	bl	__stack_chk_fail
.L79:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L81:
	.align	2
.L80:
	.word	.LC27
	.word	.LC21
	.word	.LC18
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	execute_double_pipe_cmd, .-execute_double_pipe_cmd
	.section	.rodata
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	execute_triple_pipe_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_triple_pipe_cmd, %function
execute_triple_pipe_cmd:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r3, .L91
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #32
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L83
	ldr	r0, .L91+4
	bl	err_exit
.L83:
	sub	r3, fp, #32
	add	r3, r3, #8
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L84
	ldr	r0, .L91+4
	bl	err_exit
.L84:
	sub	r3, fp, #32
	add	r3, r3, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L85
	ldr	r0, .L91+4
	bl	err_exit
.L85:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-48]
	str	r2, [r3, #16]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-52]
	str	r2, [r3, #12]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-56]
	str	r2, [r3, #12]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-60]
	str	r2, [r3, #12]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L86
	ldr	r0, .L91+8
	bl	err_exit
.L86:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L87
	ldr	r3, [fp, #-48]
	ldr	r1, [r3]
	ldr	r3, [fp, #-52]
	ldr	r2, [r3]
	ldr	r0, [fp, #-32]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L91+12
	bl	printf
	ldr	r3, [fp, #-48]
	ldr	r1, [r3]
	ldr	r3, [fp, #-56]
	ldr	r2, [r3]
	ldr	r0, [fp, #-24]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L91+12
	bl	printf
	ldr	r3, [fp, #-48]
	ldr	r1, [r3]
	ldr	r3, [fp, #-60]
	ldr	r2, [r3]
	ldr	r0, [fp, #-16]
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L91+12
	bl	printf
	ldr	r0, [fp, #-48]
	bl	execute_single_cmd
	b	.L88
.L87:
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	close
	sub	r3, fp, #40
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	waitpid
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #16]
	cmp	r3, #1
	bne	.L89
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L89
	ldr	r0, .L91+16
	bl	puts
.L89:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	ldr	r1, [fp, #-36]
	ldr	r0, .L91+20
	bl	printf
	ldr	r0, .L91+24
	bl	puts
.L88:
	ldr	r0, [fp, #-32]
	ldr	r1, [fp, #-20]
	mov	r3, #0
	mvn	r2, #-2147483648
	bl	tee
	ldr	r0, [fp, #-24]
	ldr	r1, [fp, #-12]
	mov	r3, #0
	mvn	r2, #-2147483648
	bl	tee
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	nop
	ldr	r3, .L91
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L90
	bl	__stack_chk_fail
.L90:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L92:
	.align	2
.L91:
	.word	.LC28
	.word	.LC21
	.word	.LC18
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	execute_triple_pipe_cmd, .-execute_triple_pipe_cmd
	.section	.rodata
	.align	2
.LC29:
	.ascii	" <>\000"
	.align	2
.LC30:
	.ascii	" |>\000"
	.align	2
.LC31:
	.ascii	" |<\000"
	.align	2
.LC32:
	.ascii	"<>\000"
	.align	2
.LC33:
	.ascii	" \000"
	.align	2
.LC34:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_single_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_single_cmd, %function
parse_single_cmd:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	ldr	r3, .L109
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L94
	mov	r3, #0
	b	.L107
.L94:
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-80]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-80]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-24]
	sub	r3, fp, #72
	mov	r2, r3
	ldr	r1, .L109+4
	ldr	r0, [fp, #-28]
	bl	strtok_r
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L96
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r1, #60
	ldr	r0, [fp, #-24]
	bl	strchr
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L97
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	trim
	str	r0, [fp, #-16]
	sub	r3, fp, #68
	mov	r2, r3
	ldr	r1, .L109+8
	ldr	r0, [fp, #-16]
	bl	strtok_r
	str	r0, [fp, #-52]
.L97:
	ldr	r0, [fp, #-80]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r1, #62
	ldr	r0, [fp, #-24]
	bl	strchr
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L98
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #62
	bne	.L99
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3, #28]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L100
.L99:
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3, #28]
.L100:
	ldr	r0, [fp, #-44]
	bl	trim
	str	r0, [fp, #-44]
	sub	r3, fp, #64
	mov	r2, r3
	ldr	r1, .L109+12
	ldr	r0, [fp, #-44]
	bl	strtok_r
	str	r0, [fp, #-48]
.L98:
	ldr	r0, [fp, #-80]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-24]
	sub	r3, fp, #72
	mov	r2, r3
	ldr	r1, .L109+16
	ldr	r0, [fp, #-24]
	bl	strtok_r
	str	r0, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #1
	str	r3, [fp, #-60]
	b	.L101
.L104:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L103
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L103:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L101:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L104
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-32]
	str	r2, [r3, #4]
	mov	r3, #0
	str	r3, [fp, #-40]
	sub	r3, fp, #72
	mov	r2, r3
	ldr	r1, .L109+20
	ldr	r0, [fp, #-12]
	bl	strtok_r
	str	r0, [fp, #-36]
	b	.L105
.L106:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-40]
	add	r1, r3, #1
	str	r1, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	str	r2, [r3]
	sub	r3, fp, #72
	mov	r2, r3
	ldr	r1, .L109+20
	mov	r0, #0
	bl	strtok_r
	str	r0, [fp, #-36]
.L105:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L106
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-60]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3, #16]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-52]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-48]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	b	.L107
.L96:
	mov	r3, #0
.L107:
	ldr	r2, .L109
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L108
	bl	__stack_chk_fail
.L108:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L110:
	.align	2
.L109:
	.word	.LC34
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.size	parse_single_cmd, .-parse_single_cmd
	.section	.rodata
	.align	2
.LC35:
	.ascii	"|\000"
	.align	2
.LC36:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_pipe_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_pipe_cmd, %function
parse_pipe_cmd:
	@ 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]
	str	r1, [fp, #-36]
	ldr	r3, .L121
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L112
	ldr	r3, [fp, #-36]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	b	.L119
.L112:
	ldr	r0, [fp, #-32]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-20]
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L121+4
	ldr	r0, [fp, #-20]
	bl	strtok_r
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L114
	ldr	r0, [fp, #-24]
	bl	strlen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L115
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L115:
	ldr	r0, [fp, #-24]
	bl	parse_single_cmd
	str	r0, [fp, #-12]
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L121+4
	mov	r0, #0
	bl	strtok_r
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L116
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L117
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L117:
	ldr	r0, [fp, #-24]
	bl	strlen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L118
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L118:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
.L116:
	ldr	r3, [fp, #-12]
	b	.L119
.L114:
	mov	r3, #0
.L119:
	ldr	r2, .L121
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L120
	bl	__stack_chk_fail
.L120:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L122:
	.align	2
.L121:
	.word	.LC36
	.word	.LC35
	.size	parse_pipe_cmd, .-parse_pipe_cmd
	.section	.rodata
	.align	2
.LC37:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_multiple_pipe_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_multiple_pipe_cmd, %function
parse_multiple_pipe_cmd:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L136
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L124
	ldr	r3, [fp, #-60]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	b	.L134
.L124:
	ldr	r0, [fp, #-56]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L126
.L129:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #124
	bne	.L128
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L128:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L126:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L129
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-44]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-36]
	sub	r3, fp, #48
	mov	r2, r3
	ldr	r1, .L136+4
	ldr	r0, [fp, #-28]
	bl	strtok_r
	str	r0, [fp, #-32]
	b	.L130
.L133:
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L131
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L131:
	ldr	r0, [fp, #-32]
	bl	strlen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L132
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L132:
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	str	r2, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r4, r2, r3
	ldr	r0, [fp, #-32]
	bl	parse_single_cmd
	mov	r3, r0
	str	r3, [r4]
	sub	r3, fp, #48
	mov	r2, r3
	ldr	r1, .L136+4
	mov	r0, #0
	bl	strtok_r
	str	r0, [fp, #-32]
.L130:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L133
	ldr	r3, [fp, #-24]
.L134:
	ldr	r2, .L136
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L135
	bl	__stack_chk_fail
.L135:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L137:
	.align	2
.L136:
	.word	.LC37
	.word	.LC35
	.size	parse_multiple_pipe_cmd, .-parse_multiple_pipe_cmd
	.section	.rodata
	.align	2
.LC38:
	.ascii	"||\000"
	.align	2
.LC39:
	.ascii	",\000"
	.align	2
.LC40:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_cmd, %function
parse_cmd:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	ldr	r3, .L156
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L155
	ldr	r0, [fp, #-80]
	bl	strlen
	str	r0, [fp, #-64]
	ldr	r0, [fp, #-80]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-60]
	ldr	r1, .L156+4
	ldr	r0, [fp, #-60]
	bl	strstr
	str	r0, [fp, #-56]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L141
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-68]
	b	.L142
.L141:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-60]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-68]
	bl	strncpy
.L142:
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-68]
	bl	parse_multiple_pipe_cmd
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L143
	mov	r3, #0
	strb	r3, [fp, #-73]
	ldr	r3, [fp, #-56]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #124
	bne	.L144
	mov	r3, #1
	strb	r3, [fp, #-73]
.L144:
	ldr	r0, [fp, #-56]
	bl	trim
	str	r0, [fp, #-56]
	sub	r3, fp, #72
	mov	r2, r3
	ldr	r1, .L156+8
	ldr	r0, [fp, #-56]
	bl	strtok_r
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L145
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-44]
	bl	parse_multiple_pipe_cmd
	str	r0, [fp, #-36]
	ldr	r0, [fp, #-56]
	bl	trim
	str	r0, [fp, #-56]
	sub	r3, fp, #72
	mov	r2, r3
	ldr	r1, .L156+8
	mov	r0, #0
	bl	strtok_r
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L146
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-44]
	bl	parse_multiple_pipe_cmd
	str	r0, [fp, #-28]
	ldrb	r3, [fp, #-73]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L147
	ldr	r0, [fp, #-56]
	bl	trim
	str	r0, [fp, #-56]
	sub	r3, fp, #72
	mov	r2, r3
	ldr	r1, .L156+8
	mov	r0, #0
	bl	strtok_r
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L148
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-44]
	bl	parse_multiple_pipe_cmd
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	cmp	r3, #1
	bls	.L149
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L150
	ldr	r0, .L156+12
	bl	err_exit
.L150:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	sub	r3, r3, #-1073741822
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	execute_multiple_pipe_cmd
.L149:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-36]
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	bl	execute_triple_pipe_cmd
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	execute_multiple_pipe_cmd
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	execute_multiple_pipe_cmd
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	execute_multiple_pipe_cmd
	ldr	r0, [fp, #-48]
	bl	free
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-28]
	bl	free
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r0, [fp, #-52]
	bl	free
	ldr	r0, [fp, #-40]
	bl	free
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r0, [fp, #-24]
	bl	free
	b	.L138
.L148:
	ldr	r0, .L156+16
	bl	err_exit
	b	.L138
.L147:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	cmp	r3, #1
	bls	.L152
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L153
	ldr	r0, .L156+12
	bl	err_exit
.L153:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	sub	r3, r3, #-1073741822
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	execute_multiple_pipe_cmd
.L152:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-36]
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r2, r3
	bl	execute_double_pipe_cmd
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	execute_multiple_pipe_cmd
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	execute_multiple_pipe_cmd
	ldr	r0, [fp, #-48]
	bl	free
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-28]
	bl	free
	ldr	r0, [fp, #-52]
	bl	free
	ldr	r0, [fp, #-40]
	bl	free
	ldr	r0, [fp, #-32]
	bl	free
	b	.L138
.L146:
	ldr	r0, .L156+16
	bl	err_exit
	b	.L138
.L145:
	ldr	r0, .L156+16
	bl	err_exit
	b	.L138
.L143:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	execute_multiple_pipe_cmd
	b	.L138
.L155:
	nop
.L138:
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L154
	bl	__stack_chk_fail
.L154:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L157:
	.align	2
.L156:
	.word	.LC40
	.word	.LC38
	.word	.LC39
	.word	.LC21
	.word	.LC20
	.size	parse_cmd, .-parse_cmd
	.section	.rodata
	.align	2
.LC41:
	.ascii	"\012(%s) >> \000"
	.align	2
.LC42:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	prompt
	.syntax unified
	.arm
	.fpu softvfp
	.type	prompt, %function
prompt:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #208
	ldr	r3, .L160
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #208
	mov	r1, #200
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L160+4
	bl	printf
	nop
	ldr	r3, .L160
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L159
	bl	__stack_chk_fail
.L159:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L161:
	.align	2
.L160:
	.word	.LC42
	.word	.LC41
	.size	prompt, .-prompt
	.align	2
	.global	sigint_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigint_handler, %function
sigint_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L163
	mov	r2, #1
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L164:
	.align	2
.L163:
	.word	sigint_rcvd
	.size	sigint_handler, .-sigint_handler
	.align	2
	.global	insert_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert_cmd, %function
insert_cmd:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L171
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L166
	ldr	r3, .L171
	ldr	r4, [r3]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L171
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	ldr	r3, .L171
	ldr	r3, [r3]
	ldr	r4, [r3]
	mov	r0, r2
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r3, .L171
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L171
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #8]
	b	.L165
.L166:
	ldr	r3, .L171
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L168
.L170:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L169
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	strcpy
	b	.L165
.L169:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
.L168:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L170
	ldr	r3, .L171
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, .L171
	ldr	r4, [r3]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L171
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	ldr	r3, .L171
	ldr	r3, [r3]
	ldr	r4, [r3]
	mov	r0, r2
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r3, .L171
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L171
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
	nop
.L165:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L172:
	.align	2
.L171:
	.word	sc_lookup_table
	.size	insert_cmd, .-insert_cmd
	.section	.rodata
	.align	2
.LC43:
	.ascii	"Error: No entry to delete in lookup table. Exiting."
	.ascii	"..\000"
	.align	2
.LC44:
	.ascii	"Error: Cannot find matching entry to delete in look"
	.ascii	"up table. Exiting...\000"
	.text
	.align	2
	.global	delete_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	delete_cmd, %function
delete_cmd:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L180
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L174
	ldr	r0, .L180+4
	bl	err_exit
	b	.L173
.L174:
	ldr	r3, .L180
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L177
	ldr	r3, .L180
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, .L180
	ldr	r3, [r3]
	ldr	r2, [r2, #8]
	str	r2, [r3]
	b	.L173
.L179:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L178
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-12]
	bl	free
	b	.L173
.L178:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
.L177:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L179
	ldr	r0, .L180+8
	bl	err_exit
	nop
.L173:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L181:
	.align	2
.L180:
	.word	sc_lookup_table
	.word	.LC43
	.word	.LC44
	.size	delete_cmd, .-delete_cmd
	.align	2
	.global	search_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	search_cmd, %function
search_cmd:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, .L187
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L183
.L186:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L184
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	b	.L185
.L184:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
.L183:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L186
	mov	r3, #0
.L185:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L188:
	.align	2
.L187:
	.word	sc_lookup_table
	.size	search_cmd, .-search_cmd
	.section	.rodata
	.align	2
.LC45:
	.ascii	"PATH\000"
	.align	2
.LC46:
	.ascii	"nError in sigaction SIGINT!\012\000"
	.align	2
.LC47:
	.ascii	"Error : No such command in lookup table with the gi"
	.ascii	"ven index. Exiting...\000"
	.align	2
.LC48:
	.ascii	"$ %s\012\012\000"
	.align	2
.LC49:
	.ascii	"please exit\000"
	.align	2
.LC50:
	.ascii	"sc\000"
	.align	2
.LC51:
	.ascii	"-i\000"
	.align	2
.LC52:
	.ascii	"-d\000"
	.align	2
.LC53:
	.ascii	"Error Correct format for shortcut command is sc -i "
	.ascii	"<index> <cmd> or sc -d <index> <cmd>. Exiting...\012"
	.ascii	"\000"
	.align	2
.LC54:
	.ascii	"Error in creating a child process. Exiting...\012\000"
	.align	2
.LC55:
	.ascii	"Process details:\000"
	.align	2
.LC56:
	.ascii	"\011Process Id: %d\012\000"
	.align	2
.LC57:
	.ascii	"\011Process Group Id: %d\012\000"
	.align	2
.LC58:
	.ascii	"\011Foreground Process Group Id: %d\012\000"
	.align	2
.LC59:
	.ascii	"Error in creating new process group. Exiting...\012"
	.ascii	"\000"
	.align	2
.LC60:
	.ascii	"Error in setting foreground process. Exiting...\012"
	.ascii	"\000"
	.align	2
.LC61:
	.ascii	"##\000"
	.align	2
.LC62:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #220
	ldr	r3, .L223
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L223+4
	bl	getenv
	mov	r3, r0
	ldr	r2, .L223+8
	str	r3, [r2]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L223+12
	str	r2, [r3]
	ldr	r3, .L223+12
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L223+16
	str	r3, [fp, #-160]
	mov	r3, #0
	str	r3, [fp, #-28]
	sub	r3, fp, #160
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #160
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L219
	ldr	r0, .L223+20
	bl	err_exit
.L219:
	mov	r3, #0
	strb	r3, [fp, #-223]
	ldr	r3, .L223+24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L191
	mov	r0, #11
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-216]
	mov	r3, #11
	str	r3, [fp, #-212]
	ldr	r3, .L223+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	clearerr
	ldr	r3, .L223+28
	ldr	r2, [r3]
	sub	r1, fp, #212
	sub	r3, fp, #216
	mov	r0, r3
	bl	getline
	mov	r3, r0
	str	r3, [fp, #-212]
	ldr	r2, [fp, #-216]
	ldr	r3, [fp, #-212]
	sub	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L192
	ldr	r2, [fp, #-216]
	ldr	r3, [fp, #-212]
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L192:
	ldr	r3, [fp, #-216]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-204]
	ldr	r3, [fp, #-216]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-204]
	bl	search_cmd
	mov	r3, r0
	str	r3, [fp, #-220]
	ldr	r3, [fp, #-220]
	cmp	r3, #0
	bne	.L193
	ldr	r0, .L223+32
	bl	puts
	ldr	r3, .L223+24
	mov	r2, #0
	strb	r2, [r3]
	b	.L219
.L193:
	ldr	r3, [fp, #-220]
	mov	r1, r3
	ldr	r0, .L223+36
	bl	printf
	ldr	r3, [fp, #-220]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-220]
	ldr	r3, [fp, #-220]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-208]
	ldr	r3, .L223+24
	mov	r2, #0
	strb	r2, [r3]
	b	.L195
.L191:
	bl	prompt
	ldr	r3, .L223+40
	str	r3, [fp, #-212]
	ldr	r3, [fp, #-212]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-220]
	ldr	r3, .L223+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	clearerr
	ldr	r3, .L223+28
	ldr	r2, [r3]
	sub	r1, fp, #212
	sub	r3, fp, #220
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-208]
	ldr	r3, [fp, #-208]
	cmn	r3, #1
	beq	.L221
	ldr	r3, [fp, #-208]
	cmp	r3, #0
	beq	.L221
	ldr	r3, [fp, #-208]
	cmp	r3, #0
	ble	.L197
	ldr	r3, [fp, #-220]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L221
.L197:
	ldr	r2, [fp, #-220]
	ldr	r3, [fp, #-208]
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-220]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-208]
.L195:
	ldr	r2, [fp, #-220]
	ldr	r3, [fp, #-208]
	sub	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #38
	bne	.L198
	mov	r3, #1
	strb	r3, [fp, #-223]
	ldr	r2, [fp, #-220]
	ldr	r3, [fp, #-208]
	sub	r3, r3, #2
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L199
	ldr	r2, [fp, #-220]
	ldr	r3, [fp, #-208]
	sub	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L198
.L199:
	ldr	r2, [fp, #-220]
	ldr	r3, [fp, #-208]
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L198:
	ldr	r3, [fp, #-220]
	ldr	r1, .L223+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L200
	mov	r0, #0
	bl	_exit
.L200:
	ldr	r3, [fp, #-220]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-208]
	ldr	r3, [fp, #-220]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-200]
	ldr	r3, [fp, #-220]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-196]
	mov	r3, #0
	strb	r3, [fp, #-222]
	mov	r3, #0
	strb	r3, [fp, #-221]
	ldr	r1, .L223+48
	ldr	r0, [fp, #-196]
	bl	strtok
	str	r0, [fp, #-192]
	ldr	r1, .L223+52
	ldr	r0, [fp, #-192]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L201
	mov	r3, #1
	strb	r3, [fp, #-221]
	ldr	r1, .L223+48
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-192]
	ldr	r3, [fp, #-192]
	cmp	r3, #0
	bne	.L202
	mov	r3, #1
	strb	r3, [fp, #-222]
	b	.L203
.L202:
	ldr	r1, .L223+56
	ldr	r0, [fp, #-192]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L204
	ldr	r1, .L223+48
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-192]
	ldr	r3, [fp, #-192]
	cmp	r3, #0
	bne	.L205
	mov	r3, #1
	strb	r3, [fp, #-222]
.L205:
	ldr	r0, [fp, #-192]
	bl	atoi
	str	r0, [fp, #-184]
	ldr	r0, [fp, #-192]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	ldr	r2, [fp, #-192]
	add	r3, r2, r3
	str	r3, [fp, #-192]
	ldr	r0, [fp, #-192]
	bl	trim
	str	r0, [fp, #-192]
	ldr	r3, [fp, #-192]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L206
	mov	r3, #1
	strb	r3, [fp, #-222]
.L206:
	ldr	r1, [fp, #-192]
	ldr	r0, [fp, #-184]
	bl	insert_cmd
	b	.L203
.L204:
	ldr	r1, .L223+60
	ldr	r0, [fp, #-192]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L207
	ldr	r1, .L223+48
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-192]
	ldr	r3, [fp, #-192]
	cmp	r3, #0
	bne	.L208
	mov	r3, #1
	strb	r3, [fp, #-222]
.L208:
	ldr	r0, [fp, #-192]
	bl	atoi
	str	r0, [fp, #-188]
	ldr	r0, [fp, #-192]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	ldr	r2, [fp, #-192]
	add	r3, r2, r3
	str	r3, [fp, #-192]
	ldr	r0, [fp, #-192]
	bl	trim
	str	r0, [fp, #-192]
	ldr	r3, [fp, #-192]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L209
	mov	r3, #1
	strb	r3, [fp, #-222]
.L209:
	ldr	r1, [fp, #-192]
	ldr	r0, [fp, #-188]
	bl	delete_cmd
	b	.L203
.L207:
	mov	r3, #1
	strb	r3, [fp, #-222]
.L203:
	ldrb	r3, [fp, #-222]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L201
	ldr	r0, .L223+64
	bl	err_exit
.L201:
	ldr	r0, [fp, #-196]
	bl	free
	ldrb	r3, [fp, #-221]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L222
	sub	r3, fp, #168
	mov	r0, r3
	bl	pipe
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-180]
	cmp	r3, #0
	bge	.L211
	ldr	r0, .L223+68
	bl	err_exit
	b	.L212
.L211:
	ldr	r3, [fp, #-180]
	cmp	r3, #0
	bne	.L213
	ldr	r3, [fp, #-164]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-168]
	sub	r1, fp, #20
	mov	r2, #2
	mov	r0, r3
	bl	read
	str	r0, [fp, #-176]
	bl	getpid
	str	r0, [fp, #-172]
	ldr	r0, .L223+72
	bl	puts
	ldr	r1, [fp, #-172]
	ldr	r0, .L223+76
	bl	printf
	ldr	r0, [fp, #-172]
	bl	getpgid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L223+80
	bl	printf
	mov	r0, #0
	bl	tcgetpgrp
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L223+84
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-200]
	bl	parse_cmd
	b	.L212
.L213:
	ldr	r3, [fp, #-168]
	mov	r0, r3
	bl	close
	ldr	r1, [fp, #-180]
	ldr	r0, [fp, #-180]
	bl	setpgid
	mov	r3, r0
	cmn	r3, #1
	bne	.L214
	ldr	r0, .L223+88
	bl	err_exit
.L214:
	mov	r1, #1
	mov	r0, #22
	bl	signal
	ldrb	r3, [fp, #-223]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L215
	ldr	r1, [fp, #-180]
	mov	r0, #0
	bl	tcsetpgrp
	mov	r3, r0
	cmn	r3, #1
	bne	.L215
	ldr	r0, .L223+92
	bl	err_exit
.L215:
	ldr	r3, [fp, #-164]
	mov	r2, #2
	ldr	r1, .L223+96
	mov	r0, r3
	bl	write
	ldrb	r3, [fp, #-223]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L216
	sub	r3, fp, #212
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-180]
	bl	waitpid
.L216:
	mov	r0, #2
	bl	tcgetpgrp
	mov	r4, r0
	bl	getpid
	mov	r3, r0
	mov	r0, r3
	bl	getpgid
	mov	r3, r0
	cmp	r4, r3
	beq	.L217
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	mov	r0, #0
	bl	tcsetpgrp
.L217:
	mov	r1, #0
	mov	r0, #22
	bl	signal
.L212:
	ldr	r0, [fp, #-200]
	bl	free
	ldr	r3, [fp, #-220]
	mov	r0, r3
	bl	free
	b	.L219
.L221:
	nop
	b	.L219
.L222:
	nop
	b	.L219
.L224:
	.align	2
.L223:
	.word	.LC62
	.word	.LC45
	.word	PATH
	.word	sc_lookup_table
	.word	sigint_handler
	.word	.LC46
	.word	sigint_rcvd
	.word	stdin
	.word	.LC47
	.word	.LC48
	.word	1025
	.word	.LC49
	.word	.LC33
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	.LC59
	.word	.LC60
	.word	.LC61
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
