	.file	"603251.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"./Dir0"
	.align 8
.LC1:
	.string	"Error while creating directory"
.LC2:
	.string	"Dir0"
	.align 8
.LC3:
	.string	"chdir() directory change to Dir0 failed"
.LC4:
	.string	"t1.txt"
.LC5:
	.string	"Error creating file t1.txt"
.LC6:
	.string	"t2.txt"
.LC7:
	.string	"Error creating file t2.txt"
.LC8:
	.string	"t3.txt"
.LC9:
	.string	"Error creating file t3.txt"
.LC10:
	.string	"./Dir1"
	.align 8
.LC11:
	.string	"Error while creating directory ./Dir1"
	.text
	.globl	tree
	.type	tree, @function
tree:
.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, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	eax, 0
	mov	ecx, 18
	mov	rdi, rdx
	rep stosq
	lea	rax, -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	call	stat@PLT
	cmp	eax, -1
	jne	.L1
	mov	esi, 511
	lea	rdi, .LC0[rip]
	call	mkdir@PLT
	cmp	eax, -1
	jne	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	jmp	.L1
.L3:
	lea	rdi, .LC2[rip]
	call	chdir@PLT
	test	eax, eax
	je	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	jmp	.L1
.L5:
	mov	edx, 448
	mov	esi, 66
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jns	.L6
	lea	rdi, .LC5[rip]
	call	perror@PLT
	jmp	.L1
.L6:
	mov	eax, DWORD PTR -164[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edx, 448
	mov	esi, 66
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jns	.L7
	lea	rdi, .LC7[rip]
	call	perror@PLT
	jmp	.L1
.L7:
	mov	eax, DWORD PTR -164[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edx, 448
	mov	esi, 66
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jns	.L8
	lea	rdi, .LC9[rip]
	call	perror@PLT
	jmp	.L1
.L8:
	mov	eax, DWORD PTR -164[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	call	stat@PLT
	cmp	eax, -1
	jne	.L1
	mov	esi, 511
	lea	rdi, .LC10[rip]
	call	mkdir@PLT
	cmp	eax, -1
	jne	.L1
	lea	rdi, .LC11[rip]
	call	perror@PLT
	nop
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	tree, .-tree
	.section	.rodata
	.align 8
.LC12:
	.string	"ERROR: list*: child_reset: fork: "
.LC13:
	.string	"reset"
	.align 8
.LC14:
	.string	"ERROR: list*: child_list: fork: "
.LC15:
	.string	"ls"
.LC16:
	.string	"-l"
.LC17:
	.string	"-a"
.LC18:
	.string	"-h"
.LC19:
	.string	"list*: child_text: "
.LC20:
	.string	"ERROR: list*: fd: open: "
	.align 8
.LC21:
	.string	"ERROR: list*: child_rename: fork: "
.LC22:
	.string	"mv"
.LC23:
	.string	"tree.txt"
	.align 8
.LC24:
	.string	"-------------------- All contents are listed--------------------"
	.text
	.globl	list
	.type	list, @function
list:
.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	fork@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	jns	.L12
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L13
.L12:
	cmp	DWORD PTR -68[rbp], 0
	jne	.L14
	lea	rax, .LC13[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], 0
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	call	execvp@PLT
	jmp	.L15
.L14:
	mov	edi, 0
	call	wait@PLT
	call	fork@PLT
	mov	DWORD PTR -64[rbp], eax
	cmp	DWORD PTR -64[rbp], 0
	jns	.L16
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L13
.L16:
	cmp	DWORD PTR -64[rbp], 0
	jne	.L17
	lea	rax, .LC15[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC16[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC17[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC18[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	call	execvp@PLT
	jmp	.L15
.L17:
	mov	edi, 0
	call	wait@PLT
	call	fork@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	jns	.L18
	lea	rdi, .LC19[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L13
.L18:
	cmp	DWORD PTR -60[rbp], 0
	jne	.L19
	lea	rdi, .LC2[rip]
	call	chdir@PLT
	mov	edx, 448
	mov	esi, 66
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L20
	lea	rdi, .LC20[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, .LC15[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC16[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC17[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC18[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	call	execvp@PLT
	jmp	.L15
.L19:
	mov	edi, 0
	call	wait@PLT
	call	fork@PLT
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], 0
	jns	.L21
	lea	rdi, .LC21[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L13
.L21:
	cmp	DWORD PTR -56[rbp], 0
	jne	.L22
	lea	rdi, .LC2[rip]
	call	chdir@PLT
	lea	rax, .LC22[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC23[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], 0
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	call	execvp@PLT
	jmp	.L15
.L22:
	mov	edi, 0
	call	wait@PLT
	lea	rdi, .LC24[rip]
	call	puts@PLT
.L15:
	mov	eax, 0
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	list, .-list
	.section	.rodata
.LC25:
	.string	"Current Directory:%s "
.LC26:
	.string	"w+"
	.align 8
.LC27:
	.string	" >> Current Working Directory:\n\t%s\n"
	.align 8
.LC28:
	.string	"\n >> Current directory path successfully added to t2.txt"
	.align 8
.LC29:
	.string	"File2 name (t2.txt) changed successfully path-info.txt"
	.align 8
.LC30:
	.string	"\nERROR!! Couldn't change file name!\n"
.LC31:
	.string	"r"
.LC32:
	.string	"path-info.txt"
.LC33:
	.string	"Error "
.LC34:
	.string	"Press any key to exit"
.LC35:
	.string	"w"
	.align 8
.LC36:
	.string	"Files merged sucessfully to t3.txt"
	.align 8
.LC37:
	.string	"File3 name changed successfully to log.txt"
.LC38:
	.string	"successfully removed tree.txt"
	.align 8
.LC39:
	.string	"successfully removed  path-info.txt"
	.align 8
.LC40:
	.string	"-------------------- All tasks are done!--------------------"
	.text
	.globl	path
	.type	path, @function
path:
.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, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	chdir@PLT
	lea	rax, -208[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getcwd@PLT
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -244[rbp], 1949184628
	mov	WORD PTR -240[rbp], 29816
	mov	BYTE PTR -238[rbp], 0
	movabs	rax, 7380952483053724016
	mov	QWORD PTR -222[rbp], rax
	mov	DWORD PTR -214[rbp], 2020879983
	mov	WORD PTR -210[rbp], 116
	lea	rax, -244[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	lea	rax, -208[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getcwd@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -280[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC28[rip]
	call	puts@PLT
	lea	rdx, -222[rbp]
	lea	rax, -244[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rename@PLT
	mov	DWORD PTR -288[rbp], eax
	cmp	DWORD PTR -288[rbp], 0
	jne	.L25
	lea	rdi, .LC29[rip]
	call	puts@PLT
	jmp	.L26
.L25:
	lea	rdi, .LC30[rip]
	call	perror@PLT
.L26:
	lea	rsi, .LC31[rip]
	lea	rdi, .LC23[rip]
	call	fopen@PLT
	mov	QWORD PTR -272[rbp], rax
	lea	rsi, .LC31[rip]
	lea	rdi, .LC32[rip]
	call	fopen@PLT
	mov	QWORD PTR -264[rbp], rax
	cmp	QWORD PTR -272[rbp], 0
	je	.L27
	cmp	QWORD PTR -264[rbp], 0
	jne	.L28
.L27:
	lea	rdi, .LC33[rip]
	call	perror@PLT
	lea	rdi, .LC34[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L28:
	lea	rsi, .LC35[rip]
	lea	rdi, .LC8[rip]
	call	fopen@PLT
	mov	QWORD PTR -256[rbp], rax
	cmp	QWORD PTR -256[rbp], 0
	jne	.L30
	lea	rdi, .LC33[rip]
	call	perror@PLT
	lea	rdi, .LC34[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L31:
	movsx	eax, BYTE PTR -289[rbp]
	mov	rdx, QWORD PTR -256[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L30:
	mov	rax, QWORD PTR -272[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -289[rbp], al
	cmp	BYTE PTR -289[rbp], -1
	jne	.L31
	jmp	.L32
.L33:
	movsx	eax, BYTE PTR -289[rbp]
	mov	rdx, QWORD PTR -256[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L32:
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -289[rbp], al
	cmp	BYTE PTR -289[rbp], -1
	jne	.L33
	mov	DWORD PTR -237[rbp], 1949184884
	mov	WORD PTR -233[rbp], 29816
	mov	BYTE PTR -231[rbp], 0
	movabs	rax, 32783537688506220
	mov	QWORD PTR -230[rbp], rax
	lea	rdi, .LC36[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -272[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdx, -230[rbp]
	lea	rax, -237[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rename@PLT
	mov	DWORD PTR -284[rbp], eax
	cmp	DWORD PTR -284[rbp], 0
	jne	.L34
	lea	rdi, .LC37[rip]
	call	puts@PLT
	jmp	.L35
.L34:
	lea	rdi, .LC30[rip]
	call	perror@PLT
.L35:
	lea	rdi, .LC23[rip]
	call	remove@PLT
	lea	rdi, .LC38[rip]
	call	puts@PLT
	lea	rdi, .LC32[rip]
	call	remove@PLT
	lea	rdi, .LC39[rip]
	call	puts@PLT
	lea	rdi, .LC40[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	path, .-path
	.globl	store_history
	.bss
	.align 32
	.type	store_history, @object
	.size	store_history, 80
store_history:
	.zero	80
	.globl	current_history
	.align 4
	.type	current_history, @object
	.size	current_history, 4
current_history:
	.zero	4
	.text
	.globl	append_to_history
	.type	append_to_history, @function
append_to_history:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jg	.L39
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L43
.L39:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L41
.L42:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -4[rbp], 1
.L41:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L42
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 60[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
.L43:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	append_to_history, .-append_to_history
	.section	.rodata
.LC41:
	.string	"\nERROR: NO HISTORY TO DISPLAY"
	.align 8
.LC42:
	.string	"\n------------------------- HISTORY ---------------------------\n"
.LC43:
	.string	"%d   %s\n"
	.text
	.globl	display_history
	.type	display_history, @function
display_history:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	cmp	DWORD PTR -28[rbp], 0
	jne	.L45
	lea	rdi, .LC41[rip]
	call	puts@PLT
	jmp	.L49
.L45:
	lea	rdi, .LC42[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L47
.L48:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC43[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L47:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L48
.L49:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	display_history, .-display_history
	.section	.rodata
	.align 8
.LC44:
	.string	"---------Contents of the current directory----------"
	.text
	.globl	print_contents_of_current_dir
	.type	print_contents_of_current_dir, @function
print_contents_of_current_dir:
.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, .LC44[rip]
	call	puts@PLT
	mov	ecx, 0
	lea	rdx, .LC16[rip]
	lea	rsi, .LC15[rip]
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	execlp@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	print_contents_of_current_dir, .-print_contents_of_current_dir
	.section	.rodata
.LC45:
	.string	"Terminal > "
.LC46:
	.string	"%s"
.LC47:
	.string	"tree*"
.LC48:
	.string	"list*"
.LC49:
	.string	"path*"
.LC50:
	.string	"exit*"
.LC51:
	.string	".."
	.align 8
.LC52:
	.string	"Error : Failed to create a child process"
	.align 8
.LC53:
	.string	"\n\nPress 'Return' to exit the terminal"
.LC54:
	.string	"\n"
.LC55:
	.string	"\r"
.LC56:
	.string	"here1"
.LC57:
	.string	"here2"
.LC58:
	.string	"here2.5"
.LC59:
	.string	"here3"
.LC60:
	.string	"here4"
	.align 8
.LC61:
	.string	"WRONG INPUT!!! \nPlease enter one of the following command (tree*, list*, path*, exit*)"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -118[rbp], 1
	jmp	.L52
.L65:
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -112[rbp]
	lea	rsi, .LC47[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L53
	mov	eax, 0
	call	tree
	lea	rax, -112[rbp]
	lea	rdx, current_history[rip]
	mov	rsi, rax
	lea	rdi, store_history[rip]
	call	append_to_history
	jmp	.L52
.L53:
	lea	rax, -112[rbp]
	lea	rsi, .LC48[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L54
	mov	eax, 0
	call	list
	lea	rax, -112[rbp]
	lea	rdx, current_history[rip]
	mov	rsi, rax
	lea	rdi, store_history[rip]
	call	append_to_history
	jmp	.L52
.L54:
	lea	rax, -112[rbp]
	lea	rsi, .LC49[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L55
	mov	eax, 0
	call	path
	lea	rax, -112[rbp]
	lea	rdx, current_history[rip]
	mov	rsi, rax
	lea	rdi, store_history[rip]
	call	append_to_history
	jmp	.L52
.L55:
	lea	rax, -112[rbp]
	lea	rsi, .LC50[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L56
	lea	rax, -112[rbp]
	lea	rdx, current_history[rip]
	mov	rsi, rax
	lea	rdi, store_history[rip]
	call	append_to_history
	mov	eax, DWORD PTR current_history[rip]
	mov	esi, eax
	lea	rdi, store_history[rip]
	call	display_history
	lea	rdi, .LC51[rip]
	call	chdir@PLT
	call	fork@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L57
	lea	rdi, .LC52[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L66
.L57:
	cmp	DWORD PTR -116[rbp], 0
	jne	.L59
	mov	eax, 0
	call	print_contents_of_current_dir
	jmp	.L52
.L59:
	mov	edi, 0
	call	wait@PLT
	mov	BYTE PTR -117[rbp], 1
	lea	rdi, .LC53[rip]
	call	puts@PLT
	jmp	.L61
.L64:
	call	getchar@PLT
	mov	BYTE PTR -119[rbp], al
	lea	rax, -119[rbp]
	lea	rsi, .LC54[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L62
	lea	rax, -119[rbp]
	lea	rsi, .LC55[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L63
.L62:
	lea	rdi, .LC56[rip]
	call	puts@PLT
	mov	BYTE PTR -117[rbp], 0
	lea	rdi, .LC57[rip]
	call	puts@PLT
.L63:
	lea	rdi, .LC58[rip]
	call	puts@PLT
	mov	BYTE PTR -118[rbp], 0
	lea	rdi, .LC59[rip]
	call	puts@PLT
.L61:
	cmp	BYTE PTR -117[rbp], 0
	jne	.L64
	lea	rdi, .LC60[rip]
	call	puts@PLT
	jmp	.L52
.L56:
	lea	rdi, .LC61[rip]
	call	puts@PLT
.L52:
	cmp	BYTE PTR -118[rbp], 0
	jne	.L65
	mov	eax, 0
.L66:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L67
	call	__stack_chk_fail@PLT
.L67:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"603251.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ls\000"
	.align	2
.LC1:
	.ascii	"-l\000"
	.align	2
.LC2:
	.ascii	"-a\000"
	.align	2
.LC3:
	.ascii	"-h\000"
	.align	2
.LC5:
	.ascii	"mv\000"
	.align	2
.LC6:
	.ascii	"t1.txt\000"
	.align	2
.LC7:
	.ascii	"tree.txt\000"
	.text
	.section	.rodata
	.align	2
.LC9:
	.ascii	"./Dir0\000"
	.align	2
.LC10:
	.ascii	"Error while creating directory\000"
	.align	2
.LC11:
	.ascii	"Dir0\000"
	.align	2
.LC12:
	.ascii	"chdir() directory change to Dir0 failed\000"
	.align	2
.LC13:
	.ascii	"Error creating file t1.txt\000"
	.align	2
.LC14:
	.ascii	"t2.txt\000"
	.align	2
.LC15:
	.ascii	"Error creating file t2.txt\000"
	.align	2
.LC16:
	.ascii	"t3.txt\000"
	.align	2
.LC17:
	.ascii	"Error creating file t3.txt\000"
	.align	2
.LC18:
	.ascii	"./Dir1\000"
	.align	2
.LC19:
	.ascii	"Error while creating directory ./Dir1\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	tree, %function
tree:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r2, #88
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, .L11+4
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L1
	ldr	r1, .L11+8
	ldr	r0, .L11+4
	bl	mkdir
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L11+12
	bl	perror
	b	.L1
.L3:
	ldr	r0, .L11+16
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r0, .L11+20
	bl	perror
	b	.L1
.L5:
	mov	r2, #448
	mov	r1, #66
	ldr	r0, .L11+24
	bl	open
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L11+28
	bl	perror
	b	.L1
.L6:
	ldr	r0, [fp, #-104]
	bl	close
	mov	r2, #448
	mov	r1, #66
	ldr	r0, .L11+32
	bl	open
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L11+36
	bl	perror
	b	.L1
.L7:
	ldr	r0, [fp, #-104]
	bl	close
	mov	r2, #448
	mov	r1, #66
	ldr	r0, .L11+40
	bl	open
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L11+44
	bl	perror
	b	.L1
.L8:
	ldr	r0, [fp, #-104]
	bl	close
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, .L11+48
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L1
	ldr	r1, .L11+8
	ldr	r0, .L11+48
	bl	mkdir
	mov	r3, r0
	cmn	r3, #1
	bne	.L1
	ldr	r0, .L11+52
	bl	perror
	nop
.L1:
	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	.LC20
	.word	.LC9
	.word	511
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC6
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	tree, .-tree
	.section	.rodata
	.align	2
.LC21:
	.ascii	"ERROR: list*: child_reset: fork: \000"
	.align	2
.LC22:
	.ascii	"reset\000"
	.align	2
.LC23:
	.ascii	"ERROR: list*: child_list: fork: \000"
	.align	2
.LC25:
	.ascii	"list*: child_text: \000"
	.align	2
.LC26:
	.ascii	"ERROR: list*: fd: open: \000"
	.align	2
.LC27:
	.ascii	"ERROR: list*: child_rename: fork: \000"
	.align	2
.LC29:
	.ascii	"-------------------- All contents are listed-------"
	.ascii	"-------------\000"
	.align	2
.LC24:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	0
	.align	2
.LC28:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	0
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	list
	.syntax unified
	.arm
	.fpu softvfp
	.type	list, %function
list:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L26+4
	bl	perror
	mov	r3, #1
	b	.L15
.L14:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L26+8
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L26+8
	bl	execvp
	b	.L17
.L16:
	mov	r0, #0
	bl	wait
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L26+12
	bl	perror
	mov	r3, #1
	b	.L15
.L18:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L19
	ldr	r3, .L26+16
	sub	ip, fp, #28
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L26+20
	bl	execvp
	b	.L17
.L19:
	mov	r0, #0
	bl	wait
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L26+24
	bl	perror
	mvn	r3, #0
	b	.L15
.L20:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L26+28
	bl	chdir
	mov	r2, #448
	mov	r1, #66
	ldr	r0, .L26+32
	bl	open
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L22
	ldr	r0, .L26+36
	bl	perror
	mov	r0, #1
	bl	exit
.L22:
	mov	r1, #1
	ldr	r0, [fp, #-32]
	bl	dup2
	ldr	r0, [fp, #-32]
	bl	close
	ldr	r3, .L26+16
	sub	ip, fp, #28
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L26+20
	bl	execvp
	b	.L17
.L21:
	mov	r0, #0
	bl	wait
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L23
	ldr	r0, .L26+40
	bl	perror
	mov	r3, #1
	b	.L15
.L23:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L24
	ldr	r0, .L26+28
	bl	chdir
	ldr	r3, .L26+44
	sub	ip, fp, #28
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L26+48
	bl	execvp
	b	.L17
.L24:
	mov	r0, #0
	bl	wait
	ldr	r0, .L26+52
	bl	puts
.L17:
	mov	r3, #0
.L15:
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC30
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC0
	.word	.LC25
	.word	.LC11
	.word	.LC6
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC5
	.word	.LC29
	.size	list, .-list
	.section	.rodata
	.align	2
.LC31:
	.ascii	"Current Directory:%s \000"
	.align	2
.LC33:
	.ascii	"w+\000"
	.align	2
.LC34:
	.ascii	" >> Current Working Directory:\012\011%s\012\000"
	.align	2
.LC35:
	.ascii	"\012 >> Current directory path successfully added t"
	.ascii	"o t2.txt\000"
	.align	2
.LC36:
	.ascii	"File2 name (t2.txt) changed successfully path-info."
	.ascii	"txt\000"
	.align	2
.LC37:
	.ascii	"\012ERROR!! Couldn't change file name!\012\000"
	.align	2
.LC38:
	.ascii	"r\000"
	.align	2
.LC32:
	.ascii	"path-info.txt\000"
	.align	2
.LC39:
	.ascii	"Error \000"
	.align	2
.LC40:
	.ascii	"Press any key to exit\000"
	.align	2
.LC41:
	.ascii	"w\000"
	.align	2
.LC42:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	path
	.syntax unified
	.arm
	.fpu softvfp
	.type	path, %function
path:
	@ args = 0, pretend = 0, frame = 256
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #256
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L38+4
	bl	chdir
	sub	r3, fp, #208
	mov	r1, #100
	mov	r0, r3
	bl	getcwd
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L38+8
	bl	printf
	ldr	r2, .L38+12
	sub	r3, fp, #232
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	ldr	r3, .L38+16
	sub	ip, fp, #224
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	sub	r3, fp, #232
	ldr	r1, .L38+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-252]
	sub	r3, fp, #208
	mov	r1, #100
	mov	r0, r3
	bl	getcwd
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L38+24
	ldr	r0, [fp, #-252]
	bl	fprintf
	ldr	r0, [fp, #-252]
	bl	fclose
	ldr	r0, .L38+28
	bl	puts
	sub	r2, fp, #224
	sub	r3, fp, #232
	mov	r1, r2
	mov	r0, r3
	bl	rename
	str	r0, [fp, #-248]
	ldr	r3, [fp, #-248]
	cmp	r3, #0
	bne	.L29
	ldr	r0, .L38+32
	bl	puts
	b	.L30
.L29:
	ldr	r0, .L38+36
	bl	perror
.L30:
	ldr	r1, .L38+40
	ldr	r0, .L38+44
	bl	fopen
	str	r0, [fp, #-244]
	ldr	r1, .L38+40
	ldr	r0, .L38+16
	bl	fopen
	str	r0, [fp, #-240]
	ldr	r3, [fp, #-244]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-240]
	cmp	r3, #0
	bne	.L32
.L31:
	ldr	r0, .L38+48
	bl	perror
	ldr	r0, .L38+52
	bl	puts
	mov	r0, #0
	bl	exit
.L32:
	ldr	r1, .L38+56
	ldr	r0, .L38+60
	bl	fopen
	str	r0, [fp, #-236]
	ldr	r3, [fp, #-236]
	cmp	r3, #0
	bne	.L34
	ldr	r0, .L38+48
	bl	perror
	ldr	r0, .L38+52
	bl	puts
	mov	r0, #0
	bl	exit
.L37:
	ldrb	r3, [fp, #-253]	@ zero_extendqisi2
	ldr	r1, [fp, #-236]
	mov	r0, r3
	bl	fputc
.L34:
	ldr	r0, [fp, #-244]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-253]
	b	.L37
.L39:
	.align	2
.L38:
	.word	.LC42
	.word	.LC9
	.word	.LC31
	.word	.LC14
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC7
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC16
	.size	path, .-path
	.comm	store_history,80,4
	.global	current_history
	.bss
	.align	2
	.type	current_history, %object
	.size	current_history, 4
current_history:
	.space	4
	.text
	.align	2
	.global	append_to_history
	.syntax unified
	.arm
	.fpu softvfp
	.type	append_to_history, %function
append_to_history:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #3
	bgt	.L41
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	b	.L45
.L41:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L43
.L44:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r0, r3, r2
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r1, r3
	bl	strcpy
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L43:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L44
	ldr	r3, [fp, #-16]
	add	r3, r3, #60
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
.L45:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	append_to_history, .-append_to_history
	.section	.rodata
	.align	2
.LC43:
	.ascii	"\012ERROR: NO HISTORY TO DISPLAY\000"
	.align	2
.LC44:
	.ascii	"\012------------------------- HISTORY -------------"
	.ascii	"--------------\012\000"
	.align	2
.LC45:
	.ascii	"%d   %s\012\000"
	.text
	.align	2
	.global	display_history
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_history, %function
display_history:
	@ 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, [fp, #-20]
	cmp	r3, #0
	bne	.L47
	ldr	r0, .L52
	bl	puts
	b	.L51
.L47:
	ldr	r0, .L52+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L49
.L50:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L52+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L49:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L50
.L51:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.size	display_history, .-display_history
	.section	.rodata
	.align	2
.LC46:
	.ascii	"---------Contents of the current directory---------"
	.ascii	"-\000"
	.text
	.align	2
	.global	print_contents_of_current_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_contents_of_current_dir, %function
print_contents_of_current_dir:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L55
	bl	puts
	mov	r3, #0
	ldr	r2, .L55+4
	ldr	r1, .L55+8
	ldr	r0, .L55+8
	bl	execlp
	nop
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC46
	.word	.LC1
	.word	.LC0
	.size	print_contents_of_current_dir, .-print_contents_of_current_dir
	.section	.rodata
	.align	2
.LC47:
	.ascii	"Terminal > \000"
	.align	2
.LC48:
	.ascii	"%s\000"
	.align	2
.LC49:
	.ascii	"tree*\000"
	.align	2
.LC50:
	.ascii	"list*\000"
	.align	2
.LC51:
	.ascii	"path*\000"
	.align	2
.LC52:
	.ascii	"exit*\000"
	.align	2
.LC53:
	.ascii	"..\000"
	.align	2
.LC54:
	.ascii	"Error : Failed to create a child process\000"
	.align	2
.LC55:
	.ascii	"\012\012Press 'Return' to exit the terminal\000"
	.align	2
.LC56:
	.ascii	"\012\000"
	.align	2
.LC57:
	.ascii	"\015\000"
	.align	2
.LC58:
	.ascii	"here1\000"
	.align	2
.LC59:
	.ascii	"here2\000"
	.align	2
.LC60:
	.ascii	"here2.5\000"
	.align	2
.LC61:
	.ascii	"here3\000"
	.align	2
.LC62:
	.ascii	"here4\000"
	.align	2
.LC63:
	.ascii	"WRONG INPUT!!! \012Please enter one of the followin"
	.ascii	"g command (tree*, list*, path*, exit*)\000"
	.align	2
.LC64:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	ldr	r3, .L74
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	strb	r3, [fp, #-114]
	b	.L58
.L71:
	ldr	r0, .L74+4
	bl	printf
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L74+8
	bl	__isoc99_scanf
	sub	r3, fp, #108
	ldr	r1, .L74+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	bl	tree
	sub	r3, fp, #108
	ldr	r2, .L74+16
	mov	r1, r3
	ldr	r0, .L74+20
	bl	append_to_history
	b	.L58
.L59:
	sub	r3, fp, #108
	ldr	r1, .L74+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L60
	bl	list
	sub	r3, fp, #108
	ldr	r2, .L74+16
	mov	r1, r3
	ldr	r0, .L74+20
	bl	append_to_history
	b	.L58
.L60:
	sub	r3, fp, #108
	ldr	r1, .L74+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L61
	bl	path
	sub	r3, fp, #108
	ldr	r2, .L74+16
	mov	r1, r3
	ldr	r0, .L74+20
	bl	append_to_history
	b	.L58
.L61:
	sub	r3, fp, #108
	ldr	r1, .L74+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L62
	sub	r3, fp, #108
	ldr	r2, .L74+16
	mov	r1, r3
	ldr	r0, .L74+20
	bl	append_to_history
	ldr	r3, .L74+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L74+20
	bl	display_history
	ldr	r0, .L74+36
	bl	chdir
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L63
	ldr	r0, .L74+40
	bl	puts
	mvn	r3, #0
	b	.L72
.L63:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L65
	bl	print_contents_of_current_dir
	b	.L58
.L65:
	mov	r0, #0
	bl	wait
	mov	r3, #1
	strb	r3, [fp, #-113]
	ldr	r0, .L74+44
	bl	puts
	b	.L67
.L70:
	bl	getchar
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [fp, #-115]
	sub	r3, fp, #115
	ldr	r1, .L74+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L68
	sub	r3, fp, #115
	ldr	r1, .L74+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L69
.L68:
	ldr	r0, .L74+56
	bl	puts
	mov	r3, #0
	strb	r3, [fp, #-113]
	ldr	r0, .L74+60
	bl	puts
.L69:
	ldr	r0, .L74+64
	bl	puts
	mov	r3, #0
	strb	r3, [fp, #-114]
	ldr	r0, .L74+68
	bl	puts
.L67:
	ldrb	r3, [fp, #-113]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L70
	ldr	r0, .L74+72
	bl	puts
	b	.L58
.L62:
	ldr	r0, .L74+76
	bl	puts
.L58:
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L71
	mov	r3, #0
.L72:
	ldr	r2, .L74
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L73
	bl	__stack_chk_fail
.L73:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC64
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	current_history
	.word	store_history
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	.LC59
	.word	.LC60
	.word	.LC61
	.word	.LC62
	.word	.LC63
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
