	.file	"1223821.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Pipe failed, not init"
.LC1:
	.string	"Failed fork"
.LC2:
	.string	"Command error\n"
	.text
	.globl	pipes
	.type	pipes, @function
pipes:
.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, 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
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	mov	DWORD PTR -28[rbp], eax
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	call	fork@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], -1
	jne	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L3:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L4
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	close@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	dup@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
.L4:
	call	fork@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L6
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L6:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L7
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	dup@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	test	eax, eax
	jns	.L8
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
.L7:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	nop
.L9:
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	wait@PLT
	cmp	DWORD PTR -20[rbp], eax
	jne	.L9
	nop
.L10:
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	wait@PLT
	cmp	DWORD PTR -24[rbp], eax
	jne	.L10
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	pipes, .-pipes
	.section	.rodata
.LC3:
	.string	"Error, invalid command\n"
	.text
	.globl	execute
	.type	execute, @function
execute:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	fork@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L13
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L13:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	test	eax, eax
	jns	.L15
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	cmp	DWORD PTR -28[rbp], 0
	je	.L16
	mov	edi, 1
	call	close@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	dup@PLT
.L16:
	cmp	DWORD PTR -32[rbp], 0
	je	.L17
	mov	edi, 0
	call	close@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	dup@PLT
.L17:
	cmp	DWORD PTR -28[rbp], 0
	je	.L18
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
.L18:
	cmp	DWORD PTR -32[rbp], 0
	je	.L22
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L22
.L14:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L22
	nop
.L20:
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	wait@PLT
	cmp	DWORD PTR -12[rbp], eax
	jne	.L20
.L22:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	execute, .-execute
	.section	.rodata
.LC4:
	.string	"myShell >> "
.LC5:
	.string	"%s: %s "
.LC6:
	.string	" \n"
.LC7:
	.string	"&"
.LC8:
	.string	">"
.LC9:
	.string	"Cannot open file\n"
.LC10:
	.string	">>"
.LC11:
	.string	"<"
.LC12:
	.string	"|"
.LC13:
	.string	"exit"
.LC14:
	.string	"cd"
.LC15:
	.string	"HOME"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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, 1672
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
.L56:
	lea	rax, -1088[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -1088[rbp]
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1660[rbp], 0
	mov	DWORD PTR -1664[rbp], 0
	mov	DWORD PTR -1668[rbp], 0
	mov	DWORD PTR -1672[rbp], 0
	mov	DWORD PTR -1644[rbp], 0
	mov	DWORD PTR -1676[rbp], 0
	mov	DWORD PTR -1656[rbp], 0
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -1600[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L58
	lea	rcx, -1600[rbp]
	lea	rax, -1344[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -1600[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -1640[rbp], rax
	jmp	.L27
.L34:
	mov	rax, QWORD PTR -1640[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L28
	mov	DWORD PTR -1672[rbp], 1
	jmp	.L29
.L28:
	mov	rax, QWORD PTR -1640[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L30
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1640[rbp], rax
	mov	rax, QWORD PTR -1640[rbp]
	mov	edx, 420
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1668[rbp], eax
	cmp	DWORD PTR -1668[rbp], -1
	jne	.L29
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L30:
	mov	rax, QWORD PTR -1640[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L31
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1640[rbp], rax
	mov	rax, QWORD PTR -1640[rbp]
	mov	edx, 420
	mov	esi, 1089
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1668[rbp], eax
	cmp	DWORD PTR -1668[rbp], -1
	jne	.L29
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L31:
	mov	rax, QWORD PTR -1640[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L32
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1640[rbp], rax
	mov	rax, QWORD PTR -1640[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1644[rbp], eax
	mov	edi, 0
	call	exit@PLT
.L32:
	mov	rax, QWORD PTR -1640[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L33
	mov	DWORD PTR -1676[rbp], 1
	mov	eax, DWORD PTR -1660[rbp]
	mov	DWORD PTR -1656[rbp], eax
	mov	DWORD PTR -1660[rbp], 0
	jmp	.L29
.L33:
	add	DWORD PTR -1660[rbp], 1
.L29:
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1640[rbp], rax
.L27:
	cmp	QWORD PTR -1640[rbp], 0
	jne	.L34
	cmp	DWORD PTR -1660[rbp], 0
	je	.L56
	mov	rax, rsp
	mov	rbx, rax
	cmp	DWORD PTR -1676[rbp], 0
	je	.L36
	mov	eax, DWORD PTR -1660[rbp]
	mov	DWORD PTR -1664[rbp], eax
	mov	eax, DWORD PTR -1656[rbp]
	mov	DWORD PTR -1660[rbp], eax
.L36:
	mov	eax, DWORD PTR -1660[rbp]
	add	eax, 1
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -1632[rbp], rdx
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L37:
	cmp	rsp, rdx
	je	.L38
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L37
.L38:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L39
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L39:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -1624[rbp], rax
	mov	eax, DWORD PTR -1664[rbp]
	add	eax, 1
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -1616[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -1696[rbp], rdx
	mov	QWORD PTR -1688[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -1712[rbp], rdx
	mov	QWORD PTR -1704[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L40:
	cmp	rsp, rdx
	je	.L41
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L40
.L41:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L42
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L42:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -1608[rbp], rax
	lea	rax, -1344[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	rdx, QWORD PTR -1624[rbp]
	mov	QWORD PTR [rdx], rax
	mov	DWORD PTR -1652[rbp], 0
	mov	DWORD PTR -1648[rbp], 0
.L50:
	cmp	DWORD PTR -1672[rbp], 0
	je	.L43
	mov	rax, QWORD PTR -1624[rbp]
	mov	edx, DWORD PTR -1652[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L43
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	rdx, QWORD PTR -1624[rbp]
	mov	ecx, DWORD PTR -1652[rbp]
	movsx	rcx, ecx
	mov	QWORD PTR [rdx+rcx*8], rax
	jmp	.L44
.L43:
	cmp	DWORD PTR -1668[rbp], 0
	je	.L45
	mov	rax, QWORD PTR -1624[rbp]
	mov	edx, DWORD PTR -1652[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L46
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	rdx, QWORD PTR -1624[rbp]
	mov	ecx, DWORD PTR -1652[rbp]
	movsx	rcx, ecx
	mov	QWORD PTR [rdx+rcx*8], rax
	jmp	.L44
.L46:
	mov	rax, QWORD PTR -1624[rbp]
	mov	edx, DWORD PTR -1652[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L45
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	rdx, QWORD PTR -1624[rbp]
	mov	ecx, DWORD PTR -1652[rbp]
	movsx	rcx, ecx
	mov	QWORD PTR [rdx+rcx*8], rax
	jmp	.L44
.L45:
	cmp	DWORD PTR -1644[rbp], 0
	je	.L47
	mov	rax, QWORD PTR -1624[rbp]
	mov	edx, DWORD PTR -1652[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L47
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	rdx, QWORD PTR -1624[rbp]
	mov	ecx, DWORD PTR -1652[rbp]
	movsx	rcx, ecx
	mov	QWORD PTR [rdx+rcx*8], rax
	jmp	.L44
.L47:
	cmp	DWORD PTR -1676[rbp], 0
	je	.L48
	mov	rax, QWORD PTR -1624[rbp]
	mov	edx, DWORD PTR -1652[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L48
.L49:
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	rdx, QWORD PTR -1608[rbp]
	mov	ecx, DWORD PTR -1648[rbp]
	movsx	rcx, ecx
	mov	QWORD PTR [rdx+rcx*8], rax
	add	DWORD PTR -1648[rbp], 1
	mov	rax, QWORD PTR -1608[rbp]
	mov	edx, DWORD PTR -1648[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	test	rax, rax
	jne	.L49
	sub	DWORD PTR -1648[rbp], 1
	mov	rax, QWORD PTR -1608[rbp]
	mov	edx, DWORD PTR -1648[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -1624[rbp]
	mov	edx, DWORD PTR -1652[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	jmp	.L44
.L48:
	add	DWORD PTR -1652[rbp], 1
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	rdx, QWORD PTR -1624[rbp]
	mov	ecx, DWORD PTR -1652[rbp]
	movsx	rcx, ecx
	mov	QWORD PTR [rdx+rcx*8], rax
	mov	rax, QWORD PTR -1624[rbp]
	mov	edx, DWORD PTR -1652[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	test	rax, rax
	jne	.L50
.L44:
	mov	rax, QWORD PTR -1624[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L51
	mov	edi, 0
	call	exit@PLT
.L51:
	mov	rax, QWORD PTR -1624[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L52
	mov	rax, QWORD PTR -1624[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L53
	lea	rdi, .LC15[rip]
	call	getenv@PLT
	mov	rdi, rax
	call	chdir@PLT
	jmp	.L54
.L53:
	mov	rax, QWORD PTR -1624[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	chdir@PLT
	jmp	.L54
.L52:
	cmp	DWORD PTR -1676[rbp], 0
	je	.L55
	mov	rdx, QWORD PTR -1608[rbp]
	mov	rax, QWORD PTR -1624[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pipes
	jmp	.L54
.L55:
	mov	ecx, DWORD PTR -1672[rbp]
	mov	edx, DWORD PTR -1644[rbp]
	mov	esi, DWORD PTR -1668[rbp]
	mov	rax, QWORD PTR -1624[rbp]
	mov	rdi, rax
	call	execute
.L54:
	mov	rsp, rbx
	jmp	.L56
.L58:
	nop
	jmp	.L56
	.cfi_endproc
.LFE8:
	.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	"1223821.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Pipe failed, not init\000"
	.align	2
.LC1:
	.ascii	"Failed fork\000"
	.align	2
.LC2:
	.ascii	"Command error\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pipes
	.syntax unified
	.arm
	.fpu softvfp
	.type	pipes, %function
pipes:
	@ 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, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	str	r3, [fp, #-28]
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L12+4
	bl	perror
	mov	r0, #0
	bl	exit
.L2:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L12+8
	bl	perror
	mov	r0, #0
	bl	exit
.L3:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	close
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	dup
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L12+12
	bl	perror
	mov	r0, #0
	bl	exit
.L5:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
.L4:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L12+8
	bl	perror
	mvn	r0, #0
	bl	exit
.L6:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	mov	r0, #1
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	dup
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L12+12
	bl	perror
	mov	r0, #0
	bl	exit
.L8:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
.L7:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	nop
.L9:
	sub	r3, fp, #28
	mov	r0, r3
	bl	wait
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	bne	.L9
	nop
.L10:
	sub	r3, fp, #28
	mov	r0, r3
	bl	wait
	mov	r2, r0
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	bne	.L10
	nop
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	pipes, .-pipes
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Error, invalid command\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	execute
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute, %function
execute:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L25+4
	bl	perror
	mov	r0, #0
	bl	exit
.L15:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L25+8
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L18
	mov	r0, #1
	bl	close
	ldr	r0, [fp, #-28]
	bl	dup
.L18:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L19
	mov	r0, #0
	bl	close
	ldr	r0, [fp, #-32]
	bl	dup
.L19:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L20
	ldr	r0, [fp, #-28]
	bl	close
.L20:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L24
	ldr	r0, [fp, #-32]
	bl	close
	b	.L24
.L16:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L24
	nop
.L22:
	sub	r3, fp, #16
	mov	r0, r3
	bl	wait
	mov	r2, r0
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	bne	.L22
.L24:
	nop
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC5
	.word	.LC1
	.word	.LC4
	.size	execute, .-execute
	.section	.rodata
	.align	2
.LC6:
	.ascii	"myShell >> \000"
	.align	2
.LC7:
	.ascii	"%s: %s \000"
	.align	2
.LC8:
	.ascii	" \012\000"
	.align	2
.LC9:
	.ascii	"&\000"
	.align	2
.LC10:
	.ascii	">\000"
	.align	2
.LC11:
	.ascii	"Cannot open file\012\000"
	.align	2
.LC12:
	.ascii	">>\000"
	.align	2
.LC13:
	.ascii	"<\000"
	.align	2
.LC14:
	.ascii	"|\000"
	.align	2
.LC15:
	.ascii	"exit\000"
	.align	2
.LC16:
	.ascii	"cd\000"
	.align	2
.LC17:
	.ascii	"HOME\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1600
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1600
	sub	sp, sp, #4
	ldr	r3, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
.L54:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L57+4
	ldr	r0, .L57+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-1592]
	mov	r3, #0
	str	r3, [fp, #-1596]
	mov	r3, #0
	str	r3, [fp, #-1600]
	mov	r3, #0
	str	r3, [fp, #-1604]
	mov	r3, #0
	str	r3, [fp, #-1572]
	mov	r3, #0
	str	r3, [fp, #-1608]
	mov	r3, #0
	str	r3, [fp, #-1588]
	ldr	r3, .L57+12
	ldr	r2, [r3]
	sub	r3, fp, #1536
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L56
	sub	r1, fp, #1536
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #256
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #1536
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L57+16
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-1584]
	b	.L31
.L38:
	ldr	r1, .L57+20
	ldr	r0, [fp, #-1584]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	mov	r3, #1
	str	r3, [fp, #-1604]
	b	.L33
.L32:
	ldr	r1, .L57+24
	ldr	r0, [fp, #-1584]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	ldr	r1, .L57+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1584]
	mov	r2, #420
	ldr	r1, .L57+28
	ldr	r0, [fp, #-1584]
	bl	open
	str	r0, [fp, #-1600]
	ldr	r3, [fp, #-1600]
	cmn	r3, #1
	bne	.L33
	ldr	r0, .L57+32
	bl	perror
	mov	r0, #0
	bl	exit
.L34:
	ldr	r1, .L57+36
	ldr	r0, [fp, #-1584]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	ldr	r1, .L57+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1584]
	mov	r2, #420
	ldr	r1, .L57+40
	ldr	r0, [fp, #-1584]
	bl	open
	str	r0, [fp, #-1600]
	ldr	r3, [fp, #-1600]
	cmn	r3, #1
	bne	.L33
	ldr	r0, .L57+32
	bl	perror
	mov	r0, #0
	bl	exit
.L35:
	ldr	r1, .L57+44
	ldr	r0, [fp, #-1584]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	ldr	r1, .L57+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1584]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-1584]
	bl	open
	str	r0, [fp, #-1572]
	mov	r0, #0
	bl	exit
.L36:
	ldr	r1, .L57+48
	ldr	r0, [fp, #-1584]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	mov	r3, #1
	str	r3, [fp, #-1608]
	ldr	r3, [fp, #-1592]
	str	r3, [fp, #-1588]
	mov	r3, #0
	str	r3, [fp, #-1592]
	b	.L33
.L37:
	ldr	r3, [fp, #-1592]
	add	r3, r3, #1
	str	r3, [fp, #-1592]
.L33:
	ldr	r1, .L57+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1584]
.L31:
	ldr	r3, [fp, #-1584]
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-1592]
	cmp	r3, #0
	beq	.L54
	mov	r3, sp
	mov	r4, r3
	ldr	r3, [fp, #-1608]
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-1592]
	str	r3, [fp, #-1596]
	ldr	r3, [fp, #-1588]
	str	r3, [fp, #-1592]
.L40:
	ldr	r3, [fp, #-1592]
	add	ip, r3, #1
	sub	r3, ip, #1
	str	r3, [fp, #-1568]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-1564]
	ldr	r3, [fp, #-1596]
	add	ip, r3, #1
	sub	r3, ip, #1
	str	r3, [fp, #-1560]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-1556]
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L57+16
	mov	r0, r3
	bl	strtok
	mov	r2, r0
	ldr	r3, [fp, #-1564]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-1580]
	mov	r3, #0
	str	r3, [fp, #-1576]
.L48:
	ldr	r3, [fp, #-1604]
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-1564]
	ldr	r2, [fp, #-1580]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r1, .L57+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L41
	ldr	r1, .L57+16
	mov	r0, #0
	bl	strtok
	mov	r1, r0
	ldr	r3, [fp, #-1564]
	ldr	r2, [fp, #-1580]
	str	r1, [r3, r2, lsl #2]
	b	.L42
.L41:
	ldr	r3, [fp, #-1600]
	cmp	r3, #0
	beq	.L43
	ldr	r3, [fp, #-1564]
	ldr	r2, [fp, #-1580]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r1, .L57+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	ldr	r1, .L57+16
	mov	r0, #0
	bl	strtok
	ldr	r1, .L57+16
	mov	r0, #0
	bl	strtok
	mov	r1, r0
	ldr	r3, [fp, #-1564]
	ldr	r2, [fp, #-1580]
	str	r1, [r3, r2, lsl #2]
	b	.L42
.L44:
	ldr	r3, [fp, #-1564]
	ldr	r2, [fp, #-1580]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r1, .L57+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	ldr	r1, .L57+16
	mov	r0, #0
	bl	strtok
	ldr	r1, .L57+16
	mov	r0, #0
	bl	strtok
	mov	r1, r0
	ldr	r3, [fp, #-1564]
	ldr	r2, [fp, #-1580]
	str	r1, [r3, r2, lsl #2]
	b	.L42
.L43:
	ldr	r3, [fp, #-1572]
	cmp	r3, #0
	beq	.L45
	ldr	r3, [fp, #-1564]
	ldr	r2, [fp, #-1580]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r1, .L57+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	ldr	r1, .L57+16
	mov	r0, #0
	bl	strtok
	ldr	r1, .L57+16
	mov	r0, #0
	bl	strtok
	mov	r1, r0
	ldr	r3, [fp, #-1564]
	ldr	r2, [fp, #-1580]
	str	r1, [r3, r2, lsl #2]
	b	.L42
.L45:
	ldr	r3, [fp, #-1608]
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-1564]
	ldr	r2, [fp, #-1580]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r1, .L57+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L46
.L47:
	ldr	r1, .L57+16
	mov	r0, #0
	bl	strtok
	mov	r1, r0
	ldr	r3, [fp, #-1556]
	ldr	r2, [fp, #-1576]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-1576]
	add	r3, r3, #1
	str	r3, [fp, #-1576]
	ldr	r3, [fp, #-1556]
	ldr	r2, [fp, #-1576]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L47
	ldr	r3, [fp, #-1576]
	sub	r3, r3, #1
	str	r3, [fp, #-1576]
	ldr	r3, [fp, #-1556]
	ldr	r2, [fp, #-1576]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-1564]
	ldr	r2, [fp, #-1580]
	str	r1, [r3, r2, lsl #2]
	b	.L42
.L46:
	ldr	r3, [fp, #-1580]
	add	r3, r3, #1
	str	r3, [fp, #-1580]
	ldr	r1, .L57+16
	mov	r0, #0
	bl	strtok
	mov	r1, r0
	ldr	r3, [fp, #-1564]
	ldr	r2, [fp, #-1580]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-1564]
	ldr	r2, [fp, #-1580]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L48
.L42:
	ldr	r3, [fp, #-1564]
	ldr	r3, [r3]
	ldr	r1, .L57+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L49
	mov	r0, #0
	bl	exit
.L49:
	ldr	r3, [fp, #-1564]
	ldr	r3, [r3]
	ldr	r1, .L57+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L50
	ldr	r3, [fp, #-1564]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L51
	ldr	r0, .L57+60
	bl	getenv
	mov	r3, r0
	mov	r0, r3
	bl	chdir
	b	.L52
.L51:
	ldr	r3, [fp, #-1564]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	chdir
	b	.L52
.L50:
	ldr	r3, [fp, #-1608]
	cmp	r3, #0
	beq	.L53
	ldr	r1, [fp, #-1556]
	ldr	r0, [fp, #-1564]
	bl	pipes
	b	.L52
.L53:
	ldr	r3, [fp, #-1604]
	ldr	r2, [fp, #-1572]
	ldr	r1, [fp, #-1600]
	ldr	r0, [fp, #-1564]
	bl	execute
.L52:
	mov	sp, r4
	b	.L54
.L56:
	nop
	b	.L54
.L58:
	.align	2
.L57:
	.word	.LC18
	.word	.LC6
	.word	.LC7
	.word	stdin
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	577
	.word	.LC11
	.word	.LC12
	.word	1089
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
