	.file	"490152.c"
	.intel_syntax noprefix
	.text
	.globl	clean_up_child_process
	.type	clean_up_child_process, @function
clean_up_child_process:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	wait@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	clean_up_child_process, .-clean_up_child_process
	.section	.rodata
.LC0:
	.string	"exit"
.LC1:
	.string	"|"
.LC2:
	.string	" "
.LC3:
	.string	"cd"
.LC4:
	.string	"HOME"
	.align 8
.LC5:
	.string	"cd: '%s' file or directory not found\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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, 856
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	signal_handler
.L5:
	mov	eax, 0
	call	typePrompt
	lea	rax, -800[rbp]
	mov	rdi, rax
	call	clear_input
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -800[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -800[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	movzx	eax, BYTE PTR -800[rbp+rax]
	cmp	al, 10
	jne	.L4
	lea	rax, -800[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -800[rbp+rax], 0
.L4:
	lea	rax, -800[rbp]
	mov	rdi, rax
	call	test_stdin
	test	eax, eax
	je	.L5
	lea	rax, -800[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	edi, 0
	call	exit@PLT
.L6:
	lea	rdx, -800[rbp]
	lea	rax, -544[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	DWORD PTR -860[rbp], -1
	lea	rax, -544[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -832[rbp], rax
	jmp	.L7
.L8:
	add	DWORD PTR -860[rbp], 1
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -832[rbp], rax
.L7:
	cmp	QWORD PTR -832[rbp], 0
	jne	.L8
	mov	eax, DWORD PTR -860[rbp]
	add	eax, 1
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -816[rbp], rax
	mov	eax, DWORD PTR -860[rbp]
	add	eax, 1
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -808[rbp], rax
	mov	DWORD PTR -856[rbp], 0
	lea	rdx, -800[rbp]
	lea	rax, -544[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -544[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -832[rbp], rax
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -856[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -808[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 255
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -856[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -808[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -832[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -856[rbp], 1
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -832[rbp], rax
.L9:
	cmp	QWORD PTR -832[rbp], 0
	jne	.L10
	mov	DWORD PTR -856[rbp], 0
	lea	rdx, -800[rbp]
	lea	rax, -544[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L11
.L17:
	mov	eax, DWORD PTR -856[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -808[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	DWORD PTR -852[rbp], 0
	lea	rax, -288[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -824[rbp], rax
	jmp	.L12
.L13:
	add	DWORD PTR -852[rbp], 1
	lea	rsi, .LC2[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -824[rbp], rax
.L12:
	cmp	QWORD PTR -824[rbp], 0
	jne	.L13
	cmp	DWORD PTR -856[rbp], 0
	jne	.L14
	mov	eax, DWORD PTR -852[rbp]
	mov	DWORD PTR -836[rbp], eax
.L14:
	mov	eax, DWORD PTR -852[rbp]
	add	eax, 1
	cdqe
	sal	rax, 3
	mov	edx, DWORD PTR -856[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -816[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -848[rbp], 0
	mov	eax, DWORD PTR -856[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -808[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -288[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -824[rbp], rax
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -856[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -816[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -848[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	edi, 255
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -856[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -816[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -848[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -824[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -848[rbp], 1
	lea	rsi, .LC2[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -824[rbp], rax
.L15:
	cmp	QWORD PTR -824[rbp], 0
	jne	.L16
	mov	eax, DWORD PTR -856[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -816[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -848[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	add	DWORD PTR -856[rbp], 1
.L11:
	mov	eax, DWORD PTR -856[rbp]
	cmp	eax, DWORD PTR -860[rbp]
	jle	.L17
	mov	rax, QWORD PTR -816[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	mov	rax, QWORD PTR -816[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L19
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	WORD PTR -240[rbp], 0
	lea	rdi, .LC4[rip]
	call	getenv@PLT
	mov	rdx, rax
	lea	rax, -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -816[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rbx, 8[rax]
	mov	edi, 255
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR -816[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L19:
	mov	rax, QWORD PTR -816[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	je	.L23
	mov	rax, QWORD PTR -816[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L5
.L18:
	mov	DWORD PTR -844[rbp], 0
	mov	DWORD PTR -840[rbp], 1
	mov	eax, DWORD PTR -860[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -816[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	create_process
	mov	edi, 0
	call	wait@PLT
	mov	eax, DWORD PTR -844[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -840[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	jmp	.L5
.L23:
	nop
	jmp	.L5
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
.LC6:
	.string	"Command '%s' not found\n"
	.text
	.globl	create_process
	.type	create_process, @function
create_process:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	jmp	.L25
.L29:
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 1
	cmp	DWORD PTR -32[rbp], eax
	jne	.L26
	mov	DWORD PTR -20[rbp], 1
	jmp	.L27
.L26:
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -20[rbp], eax
.L27:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	spawn_proc
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jns	.L28
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L28:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -24[rbp], eax
	add	DWORD PTR -32[rbp], 1
.L25:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L29
	mov	eax, DWORD PTR -28[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	create_process, .-create_process
	.globl	spawn_proc
	.type	spawn_proc, @function
spawn_proc:
.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L33
	cmp	DWORD PTR -20[rbp], 0
	je	.L34
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
.L34:
	cmp	DWORD PTR -24[rbp], 1
	je	.L35
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
.L35:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	jmp	.L36
.L33:
	mov	eax, DWORD PTR -4[rbp]
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	spawn_proc, .-spawn_proc
	.section	.rodata
.LC7:
	.string	"[MySh] "
.LC8:
	.string	"USER"
.LC9:
	.string	"%s@%s:"
.LC10:
	.string	"%s$ "
	.text
	.globl	typePrompt
	.type	typePrompt, @function
typePrompt:
.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, 400
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	QWORD PTR -400[rbp], 0
	mov	QWORD PTR -392[rbp], 0
	mov	QWORD PTR -384[rbp], 0
	mov	QWORD PTR -376[rbp], 0
	mov	QWORD PTR -368[rbp], 0
	mov	QWORD PTR -360[rbp], 0
	mov	WORD PTR -352[rbp], 0
	lea	rdi, .LC8[rip]
	call	getenv@PLT
	mov	rdx, rax
	lea	rax, -400[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	QWORD PTR -336[rbp], 0
	mov	QWORD PTR -328[rbp], 0
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	WORD PTR -288[rbp], 0
	lea	rax, -336[rbp]
	mov	esi, 50
	mov	rdi, rax
	call	gethostname@PLT
	mov	rax, QWORD PTR stdout[rip]
	lea	rcx, -336[rbp]
	lea	rdx, -400[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	lea	rdx, -256[rbp]
	mov	eax, 0
	mov	ecx, 29
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	WORD PTR [rdx], ax
	add	rdx, 2
	mov	BYTE PTR [rdx], al
	add	rdx, 1
	lea	rax, -272[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	replaceHomeDir
	mov	rax, QWORD PTR stdout[rip]
	lea	rdx, -272[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	typePrompt, .-typePrompt
	.globl	replaceHomeDir
	.type	replaceHomeDir, @function
replaceHomeDir:
.LFB11:
	.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, 360
	.cfi_offset 3, -24
	mov	QWORD PTR -360[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -352[rbp], 0
	mov	QWORD PTR -344[rbp], 0
	mov	QWORD PTR -336[rbp], 0
	mov	QWORD PTR -328[rbp], 0
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	WORD PTR -304[rbp], 0
	lea	rdi, .LC4[rip]
	call	getenv@PLT
	mov	rdx, rax
	lea	rax, -352[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	lea	rdx, -272[rbp]
	mov	eax, 0
	mov	ecx, 29
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	WORD PTR [rdx], ax
	add	rdx, 2
	mov	BYTE PTR [rdx], al
	add	rdx, 1
	mov	rdx, QWORD PTR -360[rbp]
	lea	rax, -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -352[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	BYTE PTR -288[rbp+rax], 0
	lea	rdx, -352[rbp]
	lea	rax, -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L42
	mov	rax, QWORD PTR -360[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	lea	rax, -352[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, rbx
	sub	rax, rdx
	lea	rbx, 1[rax]
	lea	rax, -352[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -360[rbp]
	lea	rcx, [rax+rdx]
	lea	rax, -288[rbp]
	mov	rdx, rbx
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -360[rbp]
	mov	WORD PTR [rax], 126
	lea	rdx, -288[rbp]
	mov	rax, QWORD PTR -360[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
.L42:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	replaceHomeDir, .-replaceHomeDir
	.globl	test_stdin
	.type	test_stdin, @function
test_stdin:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L44
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 1953069157
	mov	BYTE PTR 4[rax], 0
	jmp	.L45
.L44:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L45
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	clearerr@PLT
	mov	eax, 0
	jmp	.L46
.L45:
	mov	eax, 1
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	test_stdin, .-test_stdin
	.globl	signal_handler
	.type	signal_handler, @function
signal_handler:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 480
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -480[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, ignore_handler[rip]
	mov	QWORD PTR -480[rbp], rax
	lea	rax, -480[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	lea	rax, -320[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	QWORD PTR -320[rbp], 1
	lea	rax, -320[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 20
	call	sigaction@PLT
	lea	rax, -160[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, clean_up_child_process[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 17
	call	sigaction@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	signal_handler, .-signal_handler
	.globl	ignore_handler
	.type	ignore_handler, @function
ignore_handler:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	ignore_handler, .-ignore_handler
	.globl	clear_input
	.type	clear_input, @function
clear_input:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	clear_input, .-clear_input
	.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	"490152.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	clean_up_child_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	clean_up_child_process, %function
clean_up_child_process:
	@ 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	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r0, r3
	bl	wait
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	clean_up_child_process, .-clean_up_child_process
	.section	.rodata
	.align	2
.LC1:
	.ascii	"exit\000"
	.align	2
.LC2:
	.ascii	"|\000"
	.align	2
.LC3:
	.ascii	" \000"
	.align	2
.LC4:
	.ascii	"cd\000"
	.align	2
.LC5:
	.ascii	"HOME\000"
	.align	2
.LC6:
	.ascii	"cd: '%s' file or directory not found\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 816
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #820
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	signal_handler
.L7:
	bl	typePrompt
	sub	r3, fp, #784
	mov	r0, r3
	bl	clear_input
	ldr	r3, .L26+4
	ldr	r2, [r3]
	sub	r3, fp, #784
	mov	r1, #255
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #784
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-772]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L6
	sub	r3, fp, #784
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-772]
.L6:
	sub	r3, fp, #784
	mov	r0, r3
	bl	test_stdin
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #784
	ldr	r1, .L26+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	mov	r0, #0
	bl	exit
.L8:
	sub	r2, fp, #784
	sub	r3, fp, #528
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	mvn	r3, #0
	str	r3, [fp, #-824]
	sub	r3, fp, #528
	ldr	r1, .L26+12
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-828]
	b	.L9
.L10:
	ldr	r3, [fp, #-824]
	add	r3, r3, #1
	str	r3, [fp, #-824]
	ldr	r1, .L26+12
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-828]
.L9:
	ldr	r3, [fp, #-828]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-824]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-804]
	ldr	r3, [fp, #-824]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-800]
	mov	r3, #0
	str	r3, [fp, #-820]
	sub	r2, fp, #784
	sub	r3, fp, #528
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #528
	ldr	r1, .L26+12
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-828]
	b	.L11
.L12:
	ldr	r3, [fp, #-820]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-800]
	add	r4, r2, r3
	mov	r0, #255
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-820]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-800]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-828]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-820]
	add	r3, r3, #1
	str	r3, [fp, #-820]
	ldr	r1, .L26+12
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-828]
.L11:
	ldr	r3, [fp, #-828]
	cmp	r3, #0
	bne	.L12
	mov	r3, #0
	str	r3, [fp, #-820]
	sub	r2, fp, #784
	sub	r3, fp, #528
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	b	.L13
.L19:
	ldr	r3, [fp, #-820]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-800]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #272
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	mov	r3, #0
	str	r3, [fp, #-812]
	sub	r3, fp, #272
	ldr	r1, .L26+16
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-816]
	b	.L14
.L15:
	ldr	r3, [fp, #-812]
	add	r3, r3, #1
	str	r3, [fp, #-812]
	ldr	r1, .L26+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-816]
.L14:
	ldr	r3, [fp, #-816]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-820]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-812]
	str	r3, [fp, #-788]
.L16:
	ldr	r3, [fp, #-812]
	add	r3, r3, #1
	lsl	r1, r3, #2
	ldr	r3, [fp, #-820]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-804]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-808]
	ldr	r3, [fp, #-820]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-800]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #272
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #272
	ldr	r1, .L26+16
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-816]
	b	.L17
.L18:
	ldr	r3, [fp, #-820]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-804]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-808]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #255
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-820]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-804]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-808]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-816]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-808]
	add	r3, r3, #1
	str	r3, [fp, #-808]
	ldr	r1, .L26+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-816]
.L17:
	ldr	r3, [fp, #-816]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-820]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-804]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-808]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-820]
	add	r3, r3, #1
	str	r3, [fp, #-820]
.L13:
	ldr	r2, [fp, #-820]
	ldr	r3, [fp, #-824]
	cmp	r2, r3
	ble	.L19
	ldr	r3, [fp, #-804]
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r1, .L26+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-804]
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L21
	mov	r3, #0
	str	r3, [fp, #-272]
	sub	r3, fp, #268
	mov	r2, #46
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L26+24
	bl	getenv
	mov	r2, r0
	sub	r3, fp, #272
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-804]
	ldr	r3, [r3]
	add	r4, r3, #4
	mov	r0, #255
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-804]
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #272
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
.L21:
	ldr	r3, [fp, #-804]
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L26+28
	ldr	r0, [r3]
	ldr	r3, [fp, #-804]
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L26+32
	bl	fprintf
	b	.L7
.L20:
	mov	r3, #0
	str	r3, [fp, #-796]
	mov	r3, #1
	str	r3, [fp, #-792]
	ldr	r3, [fp, #-824]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-804]
	bl	create_process
	mov	r0, #0
	bl	wait
	mov	r1, #0
	ldr	r0, [fp, #-796]
	bl	dup2
	mov	r1, #1
	ldr	r0, [fp, #-792]
	bl	dup2
	b	.L7
.L25:
	nop
	b	.L7
.L27:
	.align	2
.L26:
	.word	.LC7
	.word	stdin
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	stderr
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Command '%s' not found\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	create_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_process, %function
create_process:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L29
.L33:
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L30
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L31
.L30:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
.L31:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	spawn_proc
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L32
	ldr	r3, .L36+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L36+8
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L32:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L29:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L33
	ldr	r3, [fp, #-28]
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC9
	.word	stderr
	.word	.LC8
	.size	create_process, .-create_process
	.align	2
	.global	spawn_proc
	.syntax unified
	.arm
	.fpu softvfp
	.type	spawn_proc, %function
spawn_proc:
	@ 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]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L39
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L40
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	dup2
	ldr	r0, [fp, #-16]
	bl	close
.L40:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	beq	.L41
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	dup2
	ldr	r0, [fp, #-20]
	bl	close
.L41:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	b	.L42
.L39:
	ldr	r3, [fp, #-8]
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	spawn_proc, .-spawn_proc
	.section	.rodata
	.align	2
.LC10:
	.ascii	"[MySh] \000"
	.align	2
.LC11:
	.ascii	"USER\000"
	.align	2
.LC12:
	.ascii	"%s@%s:\000"
	.align	2
.LC13:
	.ascii	"%s$ \000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	typePrompt
	.syntax unified
	.arm
	.fpu softvfp
	.type	typePrompt, %function
typePrompt:
	@ args = 0, pretend = 0, frame = 368
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #368
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L45+4
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L45+8
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-368]
	sub	r3, fp, #364
	mov	r2, #46
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L45+12
	bl	getenv
	mov	r2, r0
	sub	r3, fp, #368
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	mov	r3, #0
	str	r3, [fp, #-316]
	sub	r3, fp, #312
	mov	r2, #46
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #316
	mov	r1, #50
	mov	r0, r3
	bl	gethostname
	ldr	r3, .L45+4
	ldr	r0, [r3]
	sub	r3, fp, #316
	sub	r2, fp, #368
	ldr	r1, .L45+16
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-264]
	sub	r3, fp, #260
	mov	r2, #251
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #264
	mov	r1, #255
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #264
	mov	r0, r3
	bl	replaceHomeDir
	ldr	r3, .L45+4
	ldr	r3, [r3]
	sub	r2, fp, #264
	ldr	r1, .L45+20
	mov	r0, r3
	bl	fprintf
	nop
	ldr	r3, .L45
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC14
	.word	stdout
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	typePrompt, .-typePrompt
	.section	.rodata
	.align	2
.LC15:
	.ascii	"~\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	replaceHomeDir
	.syntax unified
	.arm
	.fpu softvfp
	.type	replaceHomeDir, %function
replaceHomeDir:
	@ args = 0, pretend = 0, frame = 320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #320
	str	r0, [fp, #-328]
	ldr	r3, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-324]
	sub	r3, fp, #320
	mov	r2, #46
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L51+4
	bl	getenv
	mov	r2, r0
	sub	r3, fp, #324
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	mov	r3, #0
	str	r3, [fp, #-272]
	sub	r3, fp, #268
	mov	r2, #251
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #272
	ldr	r1, [fp, #-328]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #324
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-260]
	sub	r2, fp, #324
	sub	r3, fp, #272
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L50
	sub	r3, fp, #324
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-328]
	add	r4, r3, r2
	ldr	r0, [fp, #-328]
	bl	strlen
	mov	r5, r0
	sub	r3, fp, #324
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r5, r3
	add	r2, r3, #1
	sub	r3, fp, #272
	mov	r1, r4
	mov	r0, r3
	bl	strncpy
	ldr	r3, [fp, #-328]
	ldr	r2, .L51+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #272
	mov	r1, r3
	ldr	r0, [fp, #-328]
	bl	strcat
.L50:
	nop
	ldr	r3, .L51
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC16
	.word	.LC5
	.word	.LC15
	.size	replaceHomeDir, .-replaceHomeDir
	.align	2
	.global	test_stdin
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_stdin, %function
test_stdin:
	@ 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	r3, .L57
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L54
	ldr	r3, [fp, #-8]
	ldr	r2, .L57+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	b	.L55
.L54:
	ldr	r3, .L57
	ldr	r3, [r3]
	mov	r0, r3
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L55
	ldr	r3, .L57
	ldr	r3, [r3]
	mov	r0, r3
	bl	clearerr
	mov	r3, #0
	b	.L56
.L55:
	mov	r3, #1
.L56:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	stdin
	.word	.LC1
	.size	test_stdin, .-test_stdin
	.section	.rodata
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	signal_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_handler, %function
signal_handler:
	@ args = 0, pretend = 0, frame = 424
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #424
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #428
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L61+4
	str	r3, [fp, #-428]
	sub	r3, fp, #428
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	sub	r3, fp, #288
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-288]
	sub	r3, fp, #288
	mov	r2, #0
	mov	r1, r3
	mov	r0, #20
	bl	sigaction
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L61+8
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #17
	bl	sigaction
	nop
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L60
	bl	__stack_chk_fail
.L60:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC17
	.word	ignore_handler
	.word	clean_up_child_process
	.size	signal_handler, .-signal_handler
	.align	2
	.global	ignore_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	ignore_handler, %function
ignore_handler:
	@ 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	r3, .L65
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	stdout
	.size	ignore_handler, .-ignore_handler
	.align	2
	.global	clear_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	clear_input, %function
clear_input:
	@ 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	r3, .L68
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	stdin
	.size	clear_input, .-clear_input
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
