	.file	"80387.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\033[H\033[J"
	.align 8
.LC1:
	.string	"\n\n\n\n******************************************"
.LC2:
	.string	"\n\n\n\t****MY SHELL****"
.LC3:
	.string	"USER"
.LC4:
	.string	"\n\n\nUSER is: @%s"
	.text
	.globl	init_shell
	.type	init_shell, @function
init_shell:
.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
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	getenv@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	edi, 1
	call	sleep@PLT
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init_shell, .-init_shell
	.section	.rodata
.LC5:
	.string	"\n>>> "
	.text
	.globl	takeInput
	.type	takeInput, @function
takeInput:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC5[rip]
	call	readline@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	add_history@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, 0
	jmp	.L4
.L3:
	mov	eax, 1
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	takeInput, .-takeInput
	.section	.rodata
.LC6:
	.string	"\nDir: %s"
	.text
	.globl	printDir
	.type	printDir, @function
printDir:
.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, 1040
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	printDir, .-printDir
	.section	.rodata
.LC7:
	.string	"\nFailed forking child.."
.LC8:
	.string	"\nCould not execute command.."
	.text
	.globl	execArgs
	.type	execArgs, @function
execArgs:
.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
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L8
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L8:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L10
	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	.L11
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	mov	edi, 0
	call	exit@PLT
.L10:
	mov	edi, 0
	call	wait@PLT
	nop
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	execArgs, .-execArgs
	.section	.rodata
	.align 8
.LC9:
	.string	"\nPipe could not be initialized"
.LC10:
	.string	"\nCould not fork"
	.align 8
.LC11:
	.string	"\nCould not execute command 1.."
	.align 8
.LC12:
	.string	"\nCould not execute command 2.."
	.text
	.globl	execArgsPiped
	.type	execArgsPiped, @function
execArgsPiped:
.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	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
	test	eax, eax
	jns	.L13
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L13:
	call	fork@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	jns	.L15
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L15:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L16
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@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	.L12
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L16:
	call	fork@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L18
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L18:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L19
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@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	.L12
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L19:
	mov	edi, 0
	call	wait@PLT
	mov	edi, 0
	call	wait@PLT
.L12:
	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
.LFE10:
	.size	execArgsPiped, .-execArgsPiped
	.section	.rodata
	.align 8
.LC13:
	.string	"\n***WELCOME TO MY SHELL HELP***\nCopyright @ Sankalp Mittal\n-Use the shell at your own risk...\nList of Commands supported:\n>cd\n>ls\n>exit\n>all other general commands available in UNIX shell\n>pipe handling\n>improper space handling"
	.text
	.globl	openHelp
	.type	openHelp, @function
openHelp:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC13[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	openHelp, .-openHelp
	.section	.rodata
.LC14:
	.string	"exit"
.LC15:
	.string	"cd"
.LC16:
	.string	"help"
.LC17:
	.string	"hello"
.LC18:
	.string	"\nGoodbye"
	.align 8
.LC19:
	.string	"\nHello %s.\nMind that this is not a place to play around.\nUse help to know more..\n"
	.text
	.globl	ownCmdHandler
	.type	ownCmdHandler, @function
ownCmdHandler:
.LFB12:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -52[rbp], 4
	mov	DWORD PTR -60[rbp], 0
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -48[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 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
.L25:
	cmp	rsp, rdx
	je	.L26
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L25
.L26:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L27
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L27:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, .LC14[rip]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, .LC15[rip]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, .LC16[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, .LC17[rip]
	mov	QWORD PTR 24[rax], rdx
	mov	DWORD PTR -56[rbp], 0
	jmp	.L28
.L31:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -56[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L29
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	mov	DWORD PTR -60[rbp], eax
	jmp	.L30
.L29:
	add	DWORD PTR -56[rbp], 1
.L28:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L31
.L30:
	cmp	DWORD PTR -60[rbp], 4
	je	.L32
	cmp	DWORD PTR -60[rbp], 4
	jg	.L41
	cmp	DWORD PTR -60[rbp], 3
	je	.L34
	cmp	DWORD PTR -60[rbp], 3
	jg	.L41
	cmp	DWORD PTR -60[rbp], 1
	je	.L35
	cmp	DWORD PTR -60[rbp], 2
	je	.L36
	jmp	.L41
.L35:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L36:
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	chdir@PLT
	mov	eax, 1
	jmp	.L37
.L34:
	mov	eax, 0
	call	openHelp
	mov	eax, 1
	jmp	.L37
.L32:
	lea	rdi, .LC3[rip]
	call	getenv@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L37
.L41:
	nop
	mov	eax, 0
.L37:
	mov	rsp, rbx
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	ownCmdHandler, .-ownCmdHandler
	.section	.rodata
.LC20:
	.string	"|"
	.text
	.globl	parsePipe
	.type	parsePipe, @function
parsePipe:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -20[rbp], 0
	jmp	.L43
.L46:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	lea	rbx, [rdx+rax]
	lea	rax, -40[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strsep@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L49
	add	DWORD PTR -20[rbp], 1
.L43:
	cmp	DWORD PTR -20[rbp], 1
	jle	.L46
	jmp	.L45
.L49:
	nop
.L45:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L47
	mov	eax, 0
	jmp	.L48
.L47:
	mov	eax, 1
.L48:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	parsePipe, .-parsePipe
	.section	.rodata
.LC21:
	.string	" "
	.text
	.globl	parseSpace
	.type	parseSpace, @function
parseSpace:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -20[rbp], 0
	jmp	.L51
.L55:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	lea	rbx, [rdx+rax]
	lea	rax, -40[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strsep@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L56
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L54
	sub	DWORD PTR -20[rbp], 1
.L54:
	add	DWORD PTR -20[rbp], 1
.L51:
	cmp	DWORD PTR -20[rbp], 99
	jle	.L55
	jmp	.L57
.L56:
	nop
.L57:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	parseSpace, .-parseSpace
	.globl	processString
	.type	processString, @function
processString:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], 0
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parsePipe
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L59
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parseSpace
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parseSpace
	jmp	.L60
.L59:
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parseSpace
.L60:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	ownCmdHandler
	test	eax, eax
	je	.L61
	mov	eax, 0
	jmp	.L63
.L61:
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
.L63:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	processString, .-processString
	.globl	main
	.type	main, @function
main:
.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, 2624
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2612[rbp], 0
	mov	eax, 0
	call	init_shell
.L69:
	mov	eax, 0
	call	printDir
	lea	rax, -1008[rbp]
	mov	rdi, rax
	call	takeInput
	test	eax, eax
	jne	.L71
	lea	rdx, -1808[rbp]
	lea	rcx, -2608[rbp]
	lea	rax, -1008[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	processString
	mov	DWORD PTR -2612[rbp], eax
	cmp	DWORD PTR -2612[rbp], 1
	jne	.L68
	lea	rax, -2608[rbp]
	mov	rdi, rax
	call	execArgs
.L68:
	cmp	DWORD PTR -2612[rbp], 2
	jne	.L69
	lea	rdx, -1808[rbp]
	lea	rax, -2608[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execArgsPiped
	jmp	.L69
.L71:
	nop
	jmp	.L69
	.cfi_endproc
.LFE16:
	.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	"80387.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\033[H\033[J\000"
	.align	2
.LC1:
	.ascii	"\012\012\012\012***********************************"
	.ascii	"*******\000"
	.align	2
.LC2:
	.ascii	"\012\012\012\011****MY SHELL****\000"
	.align	2
.LC3:
	.ascii	"USER\000"
	.align	2
.LC4:
	.ascii	"\012\012\012USER is: @%s\000"
	.text
	.align	2
	.global	init_shell
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_shell, %function
init_shell:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L2
	bl	printf
	ldr	r0, .L2+4
	bl	printf
	ldr	r0, .L2+8
	bl	printf
	ldr	r0, .L2+4
	bl	printf
	ldr	r0, .L2+12
	bl	getenv
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L2+16
	bl	printf
	mov	r0, #10
	bl	putchar
	mov	r0, #1
	bl	sleep
	ldr	r0, .L2
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	init_shell, .-init_shell
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\012>>> \000"
	.text
	.align	2
	.global	takeInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	takeInput, %function
takeInput:
	@ 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, .L7
	bl	readline
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	ldr	r0, [fp, #-8]
	bl	add_history
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	strcpy
	mov	r3, #0
	b	.L6
.L5:
	mov	r3, #1
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC5
	.size	takeInput, .-takeInput
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\012Dir: %s\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printDir
	.syntax unified
	.arm
	.fpu softvfp
	.type	printDir, %function
printDir:
	@ args = 0, pretend = 0, frame = 1032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1024
	sub	sp, sp, #8
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L11+4
	bl	printf
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	.LC6
	.size	printDir, .-printDir
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\012Failed forking child..\000"
	.align	2
.LC9:
	.ascii	"\012Could not execute command..\000"
	.text
	.align	2
	.global	execArgs
	.syntax unified
	.arm
	.fpu softvfp
	.type	execArgs, %function
execArgs:
	@ 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]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L14
	ldr	r0, .L18
	bl	printf
	b	.L13
.L14:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L18+4
	bl	printf
.L17:
	mov	r0, #0
	bl	exit
.L16:
	mov	r0, #0
	bl	wait
	nop
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC8
	.word	.LC9
	.size	execArgs, .-execArgs
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\012Pipe could not be initialized\000"
	.align	2
.LC11:
	.ascii	"\012Could not fork\000"
	.align	2
.LC12:
	.ascii	"\012Could not execute command 1..\000"
	.align	2
.LC13:
	.ascii	"\012Could not execute command 2..\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	execArgsPiped
	.syntax unified
	.arm
	.fpu softvfp
	.type	execArgsPiped, %function
execArgsPiped:
	@ 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, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	bge	.L21
	ldr	r0, .L30+4
	bl	printf
	b	.L20
.L21:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L23
	ldr	r0, .L30+8
	bl	printf
	b	.L20
.L23:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L30+12
	bl	printf
	mov	r0, #0
	bl	exit
.L24:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L26
	ldr	r0, .L30+8
	bl	printf
	b	.L20
.L26:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L30+16
	bl	printf
	mov	r0, #0
	bl	exit
.L27:
	mov	r0, #0
	bl	wait
	mov	r0, #0
	bl	wait
.L20:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC14
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	execArgsPiped, .-execArgsPiped
	.section	.rodata
	.align	2
.LC15:
	.ascii	"\012***WELCOME TO MY SHELL HELP***\012Copyright @ S"
	.ascii	"ankalp Mittal\012-Use the shell at your own risk..."
	.ascii	"\012List of Commands supported:\012>cd\012>ls\012>e"
	.ascii	"xit\012>all other general commands available in UNI"
	.ascii	"X shell\012>pipe handling\012>improper space handli"
	.ascii	"ng\000"
	.text
	.align	2
	.global	openHelp
	.syntax unified
	.arm
	.fpu softvfp
	.type	openHelp, %function
openHelp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L34
	bl	puts
	nop
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC15
	.size	openHelp, .-openHelp
	.section	.rodata
	.align	2
.LC16:
	.ascii	"exit\000"
	.align	2
.LC17:
	.ascii	"cd\000"
	.align	2
.LC18:
	.ascii	"help\000"
	.align	2
.LC19:
	.ascii	"hello\000"
	.align	2
.LC20:
	.ascii	"\012Goodbye\000"
	.align	2
.LC21:
	.ascii	"\012Hello %s.\012Mind that this is not a place to p"
	.ascii	"lay around.\012Use help to know more..\012\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ownCmdHandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	ownCmdHandler, %function
ownCmdHandler:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r3, #4
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	ip, [fp, #-32]
	sub	r3, ip, #1
	str	r3, [fp, #-28]
	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, #-24]
	ldr	r3, [fp, #-24]
	ldr	r2, .L52+4
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, .L52+8
	str	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r2, .L52+12
	str	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	ldr	r2, .L52+16
	str	r2, [r3, #12]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L37
.L40:
	ldr	r3, [fp, #-48]
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-36]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	b	.L39
.L38:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L37:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L40
.L39:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L51
.L43:
	.word	.L46
	.word	.L45
	.word	.L44
	.word	.L42
.L46:
	ldr	r0, .L52+20
	bl	puts
	mov	r0, #0
	bl	exit
.L45:
	ldr	r3, [fp, #-48]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	chdir
	mov	r3, #1
	b	.L47
.L44:
	bl	openHelp
	mov	r3, #1
	b	.L47
.L42:
	ldr	r0, .L52+24
	bl	getenv
	str	r0, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L52+28
	bl	printf
	mov	r3, #1
	b	.L47
.L51:
	nop
	mov	r3, #0
.L47:
	mov	sp, r4
	ldr	r2, .L52
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC22
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC3
	.word	.LC21
	.size	ownCmdHandler, .-ownCmdHandler
	.section	.rodata
	.align	2
.LC23:
	.ascii	"|\000"
	.text
	.align	2
	.global	parsePipe
	.syntax unified
	.arm
	.fpu softvfp
	.type	parsePipe, %function
parsePipe:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L55
.L58:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	sub	r3, fp, #24
	ldr	r1, .L62
	mov	r0, r3
	bl	strsep
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L61
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L55:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L58
	b	.L57
.L61:
	nop
.L57:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L59
	mov	r3, #0
	b	.L60
.L59:
	mov	r3, #1
.L60:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC23
	.size	parsePipe, .-parsePipe
	.section	.rodata
	.align	2
.LC24:
	.ascii	" \000"
	.text
	.align	2
	.global	parseSpace
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseSpace, %function
parseSpace:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L65
.L69:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	sub	r3, fp, #24
	ldr	r1, .L72
	mov	r0, r3
	bl	strsep
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L70
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L68
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L68:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L65:
	ldr	r3, [fp, #-16]
	cmp	r3, #99
	ble	.L69
	b	.L71
.L70:
	nop
.L71:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L73:
	.align	2
.L72:
	.word	.LC24
	.size	parseSpace, .-parseSpace
	.section	.rodata
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	processString
	.syntax unified
	.arm
	.fpu softvfp
	.type	processString, %function
processString:
	@ 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]
	ldr	r3, .L81
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	parsePipe
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L75
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	parseSpace
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	parseSpace
	b	.L76
.L75:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	parseSpace
.L76:
	ldr	r0, [fp, #-28]
	bl	ownCmdHandler
	mov	r3, r0
	cmp	r3, #0
	beq	.L77
	mov	r3, #0
	b	.L79
.L77:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
.L79:
	ldr	r2, .L81
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L80
	bl	__stack_chk_fail
.L80:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L82:
	.align	2
.L81:
	.word	.LC25
	.size	processString, .-processString
	.section	.rodata
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1808
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1808
	ldr	r3, .L90
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1812]
	bl	init_shell
.L87:
	bl	printDir
	sub	r3, fp, #1008
	mov	r0, r3
	bl	takeInput
	mov	r3, r0
	cmp	r3, #0
	bne	.L89
	sub	r2, fp, #1392
	sub	r2, r2, #4
	sub	r2, r2, #12
	sub	r3, fp, #1792
	sub	r3, r3, #4
	sub	r3, r3, #12
	sub	r0, fp, #1008
	mov	r1, r3
	bl	processString
	str	r0, [fp, #-1812]
	ldr	r3, [fp, #-1812]
	cmp	r3, #1
	bne	.L86
	sub	r3, fp, #1792
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	execArgs
.L86:
	ldr	r3, [fp, #-1812]
	cmp	r3, #2
	bne	.L87
	sub	r2, fp, #1392
	sub	r2, r2, #4
	sub	r2, r2, #12
	sub	r3, fp, #1792
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r2
	mov	r0, r3
	bl	execArgsPiped
	b	.L87
.L89:
	nop
	b	.L87
.L91:
	.align	2
.L90:
	.word	.LC26
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
