	.file	"54825167.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"You can't input so much char at one time!"
	.text
	.globl	main
	.type	main, @function
main:
.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, 1056
	mov	DWORD PTR -1044[rbp], edi
	mov	QWORD PTR -1056[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L4:
	mov	edi, 36
	call	putchar@PLT
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	bufferClear
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	readLine
	test	eax, eax
	je	.L2
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	do2
	jmp	.L4
.L2:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L4
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	readLine
	.type	readLine, @function
readLine:
.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
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	call	getchar@PLT
	mov	BYTE PTR -5[rbp], al
	jmp	.L7
.L11:
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jge	.L8
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -5[rbp]
	mov	BYTE PTR [rdx], al
	jmp	.L12
.L8:
	mov	eax, 0
	jmp	.L10
.L12:
	call	getchar@PLT
	mov	BYTE PTR -5[rbp], al
.L7:
	cmp	BYTE PTR -5[rbp], 10
	jne	.L11
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, 1
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	readLine, .-readLine
	.globl	bufferClear
	.type	bufferClear, @function
bufferClear:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -4[rbp], 1
.L14:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L15
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	bufferClear, .-bufferClear
	.globl	needRedirect
	.type	needRedirect, @function
needRedirect:
.LFB9:
	.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	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L17
.L20:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 60
	jne	.L18
	mov	DWORD PTR -28[rbp], 1
.L18:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 62
	jne	.L19
	mov	DWORD PTR -24[rbp], 1
.L19:
	add	DWORD PTR -20[rbp], 1
.L17:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L20
	cmp	DWORD PTR -28[rbp], 0
	jne	.L21
	cmp	DWORD PTR -24[rbp], 0
	je	.L21
	mov	eax, 1
	jmp	.L22
.L21:
	cmp	DWORD PTR -28[rbp], 0
	je	.L23
	cmp	DWORD PTR -24[rbp], 0
	jne	.L23
	mov	eax, 2
	jmp	.L22
.L23:
	cmp	DWORD PTR -28[rbp], 0
	je	.L24
	cmp	DWORD PTR -24[rbp], 0
	je	.L24
	mov	eax, 3
	jmp	.L22
.L24:
	mov	eax, 0
.L22:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	needRedirect, .-needRedirect
	.globl	do1
	.type	do1, @function
do1:
.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, 1088
	mov	QWORD PTR -1080[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -1080[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -1040[rbp]
	mov	esi, 124
	mov	rdi, rax
	call	findCharInStr
	mov	DWORD PTR -1064[rbp], eax
	cmp	DWORD PTR -1064[rbp], 0
	jle	.L26
	mov	edx, DWORD PTR -1064[rbp]
	lea	rax, -1040[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	split2
	mov	QWORD PTR -1056[rbp], rax
	lea	rax, -1048[rbp]
	mov	rdi, rax
	call	pipe@PLT
	call	fork@PLT
	mov	DWORD PTR -1060[rbp], eax
	cmp	DWORD PTR -1060[rbp], 0
	jne	.L27
	mov	eax, DWORD PTR -1044[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -1048[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -1044[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -1056[rbp]
	mov	rdi, rax
	call	do2
	mov	edi, 0
	call	exit@PLT
.L27:
	mov	eax, DWORD PTR -1048[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -1048[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -1044[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -1060[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	waitpid@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	do1
	jmp	.L30
.L26:
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	do2
.L30:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	do1, .-do1
	.section	.rodata
.LC1:
	.string	" "
.LC2:
	.string	"cd"
.LC3:
	.string	""
.LC4:
	.string	"no such directory"
.LC5:
	.string	"pwd"
.LC6:
	.string	"exit"
	.text
	.globl	do2
	.type	do2, @function
do2:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 3136
	mov	QWORD PTR -3128[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -3128[rbp]
	lea	rax, -2064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	QWORD PTR -3104[rbp], 0
	mov	QWORD PTR -3096[rbp], 0
	mov	rax, QWORD PTR -3128[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	test	eax, eax
	je	.L45
	mov	rax, QWORD PTR -3128[rbp]
	mov	rdi, rax
	call	needRedirect
	mov	DWORD PTR -3116[rbp], eax
	cmp	DWORD PTR -3116[rbp], 3
	je	.L33
	cmp	DWORD PTR -3116[rbp], 3
	jg	.L46
	cmp	DWORD PTR -3116[rbp], 2
	je	.L34
	cmp	DWORD PTR -3116[rbp], 2
	jg	.L46
	cmp	DWORD PTR -3116[rbp], 0
	je	.L35
	cmp	DWORD PTR -3116[rbp], 1
	je	.L33
	jmp	.L46
.L35:
	mov	rdx, QWORD PTR -3128[rbp]
	lea	rax, -3088[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -3088[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -3104[rbp], rax
	cmp	QWORD PTR -3104[rbp], 0
	je	.L47
	mov	rax, QWORD PTR -3104[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L37
	lea	rsi, .LC3[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -3104[rbp], rax
	mov	rax, QWORD PTR -3104[rbp]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	jns	.L47
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L47
.L37:
	mov	rax, QWORD PTR -3104[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L38
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L47
.L38:
	mov	rax, QWORD PTR -3104[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L39
	mov	edi, 0
	call	exit@PLT
.L39:
	mov	rax, QWORD PTR -3128[rbp]
	mov	rdi, rax
	call	mysys
	jmp	.L47
.L33:
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	dealReOutStr
	mov	QWORD PTR -3096[rbp], rax
	cmp	QWORD PTR -3096[rbp], 0
	je	.L48
	call	fork@PLT
	mov	DWORD PTR -3112[rbp], eax
	cmp	DWORD PTR -3112[rbp], 0
	jne	.L41
	mov	rax, QWORD PTR -3096[rbp]
	mov	edx, 438
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -3108[rbp], eax
	mov	eax, DWORD PTR -3108[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -3108[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	do2
	mov	edi, 0
	call	exit@PLT
.L41:
	mov	eax, DWORD PTR -3112[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	waitpid@PLT
	jmp	.L48
.L34:
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	dealReInStr
	mov	QWORD PTR -3096[rbp], rax
	cmp	QWORD PTR -3096[rbp], 0
	je	.L49
	call	fork@PLT
	mov	DWORD PTR -3112[rbp], eax
	cmp	DWORD PTR -3112[rbp], 0
	jne	.L43
	mov	rax, QWORD PTR -3096[rbp]
	mov	edx, 438
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -3108[rbp], eax
	mov	eax, DWORD PTR -3108[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -3108[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	do2
	mov	edi, 0
	call	exit@PLT
.L43:
	mov	eax, DWORD PTR -3112[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	waitpid@PLT
	jmp	.L49
.L45:
	nop
	jmp	.L46
.L47:
	nop
	jmp	.L46
.L48:
	nop
	jmp	.L46
.L49:
	nop
.L46:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	do2, .-do2
	.globl	dealReOutStr
	.type	dealReOutStr, @function
dealReOutStr:
.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, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 62
	mov	rdi, rax
	call	findCharInStr
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	js	.L51
	mov	eax, DWORD PTR -28[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jne	.L52
.L51:
	mov	eax, 0
	jmp	.L53
.L52:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L54
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 2
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 2
	mov	DWORD PTR -36[rbp], eax
	jmp	.L55
.L58:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L64
	add	DWORD PTR -40[rbp], 1
	add	DWORD PTR -36[rbp], 1
.L55:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L58
	jmp	.L57
.L64:
	nop
.L57:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 2[rax]
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 2[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	deleteFromStr
	jmp	.L59
.L54:
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	DWORD PTR -32[rbp], eax
	jmp	.L60
.L63:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L65
	add	DWORD PTR -40[rbp], 1
	add	DWORD PTR -32[rbp], 1
.L60:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L63
	jmp	.L62
.L65:
	nop
.L62:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	deleteFromStr
.L59:
	mov	rax, QWORD PTR -24[rbp]
.L53:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	dealReOutStr, .-dealReOutStr
	.globl	dealReInStr
	.type	dealReInStr, @function
dealReInStr:
.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, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 60
	mov	rdi, rax
	call	findCharInStr
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	js	.L67
	mov	eax, DWORD PTR -28[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jne	.L68
.L67:
	mov	eax, 0
	jmp	.L69
.L68:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L70
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 2
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 2
	mov	DWORD PTR -36[rbp], eax
	jmp	.L71
.L74:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L80
	add	DWORD PTR -40[rbp], 1
	add	DWORD PTR -36[rbp], 1
.L71:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L74
	jmp	.L73
.L80:
	nop
.L73:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 2[rax]
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 2[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	deleteFromStr
	jmp	.L75
.L70:
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	DWORD PTR -32[rbp], eax
	jmp	.L76
.L79:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L81
	add	DWORD PTR -40[rbp], 1
	add	DWORD PTR -32[rbp], 1
.L76:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L79
	jmp	.L78
.L81:
	nop
.L78:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	deleteFromStr
.L75:
	mov	rax, QWORD PTR -24[rbp]
.L69:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	dealReInStr, .-dealReInStr
	.globl	deleteFromStr
	.type	deleteFromStr, @function
deleteFromStr:
.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	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jle	.L86
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L84
.L85:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -24[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -24[rbp], 1
.L84:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jb	.L85
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -48[rbp]
	lea	edx, -1[rax]
	mov	ecx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	deleteFromStr
.L86:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	deleteFromStr, .-deleteFromStr
	.globl	findCharInStr
	.type	findCharInStr, @function
findCharInStr:
.LFB15:
	.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	eax, esi
	mov	BYTE PTR -44[rbp], al
	mov	DWORD PTR -32[rbp], -1
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L88
.L91:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -44[rbp], al
	jne	.L89
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -32[rbp], eax
	jmp	.L90
.L89:
	add	DWORD PTR -28[rbp], 1
.L88:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L91
.L90:
	mov	eax, DWORD PTR -32[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	findCharInStr, .-findCharInStr
	.section	.rodata
.LC7:
	.string	"-c"
.LC8:
	.string	"sh"
.LC9:
	.string	"/bin/sh"
	.text
	.globl	mysys
	.type	mysys, @function
mysys:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L94
	mov	eax, -1
	jmp	.L95
.L94:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L96
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, 0
	mov	rcx, rax
	lea	rdx, .LC7[rip]
	lea	rsi, .LC8[rip]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	execl@PLT
	test	eax, eax
	jns	.L97
	mov	eax, 127
	jmp	.L95
.L96:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	waitpid@PLT
	mov	eax, 0
	jmp	.L95
.L97:
	mov	eax, 0
.L95:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	mysys, .-mysys
	.globl	split2
	.type	split2, @function
split2:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	split2, .-split2
	.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	"54825167.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"You can't input so much char at one time!\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	str	r0, [fp, #-1040]
	str	r1, [fp, #-1044]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L4:
	mov	r0, #36
	bl	putchar
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	bufferClear
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	readLine
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	do2
	b	.L4
.L2:
	ldr	r0, .L6+4
	bl	puts
	b	.L4
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.align	2
	.global	readLine
	.syntax unified
	.arm
	.fpu softvfp
	.type	readLine, %function
readLine:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-9]
	b	.L9
.L13:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L10
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
	b	.L14
.L10:
	mov	r3, #0
	b	.L12
.L14:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-9]
.L9:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L13
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #1
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	readLine, .-readLine
	.align	2
	.global	bufferClear
	.syntax unified
	.arm
	.fpu softvfp
	.type	bufferClear, %function
bufferClear:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L16
.L17:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L16:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L17
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	bufferClear, .-bufferClear
	.align	2
	.global	needRedirect
	.syntax unified
	.arm
	.fpu softvfp
	.type	needRedirect, %function
needRedirect:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L19
.L22:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #60
	bne	.L20
	mov	r3, #1
	str	r3, [fp, #-16]
.L20:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #62
	bne	.L21
	mov	r3, #1
	str	r3, [fp, #-12]
.L21:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L22
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L23
	mov	r3, #1
	b	.L24
.L23:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L25
	mov	r3, #2
	b	.L24
.L25:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L26
	mov	r3, #3
	b	.L24
.L26:
	mov	r3, #0
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	needRedirect, .-needRedirect
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do1
	.syntax unified
	.arm
	.fpu softvfp
	.type	do1, %function
do1:
	@ args = 0, pretend = 0, frame = 1056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	str	r0, [fp, #-1056]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-1056]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #124
	mov	r0, r3
	bl	findCharInStr
	str	r0, [fp, #-1052]
	ldr	r3, [fp, #-1052]
	cmp	r3, #0
	ble	.L28
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-1052]
	mov	r0, r3
	bl	split2
	str	r0, [fp, #-1048]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	pipe
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bne	.L29
	ldr	r3, [fp, #-1036]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-1040]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-1036]
	mov	r0, r3
	bl	close
	ldr	r0, [fp, #-1048]
	bl	do2
	mov	r0, #0
	bl	exit
.L29:
	ldr	r3, [fp, #-1040]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-1040]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-1036]
	mov	r0, r3
	bl	close
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-1044]
	bl	waitpid
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	do1
	b	.L32
.L28:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	do2
.L32:
	nop
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC2
	.size	do1, .-do1
	.section	.rodata
	.align	2
.LC3:
	.ascii	" \000"
	.align	2
.LC4:
	.ascii	"cd\000"
	.align	2
.LC5:
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"no such directory\000"
	.align	2
.LC7:
	.ascii	"pwd\000"
	.align	2
.LC8:
	.ascii	"exit\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do2, %function
do2:
	@ args = 0, pretend = 0, frame = 3104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #3104
	str	r0, [fp, #-3104]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-3104]
	mov	r0, r3
	bl	strcpy
	mov	r3, #0
	str	r3, [fp, #-3100]
	mov	r3, #0
	str	r3, [fp, #-3096]
	ldr	r3, [fp, #-3104]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L50
	ldr	r0, [fp, #-3104]
	bl	needRedirect
	str	r0, [fp, #-3092]
	ldr	r3, [fp, #-3092]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L51
.L38:
	.word	.L40
	.word	.L37
	.word	.L39
	.word	.L37
.L40:
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-3104]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L55+4
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-3100]
	ldr	r3, [fp, #-3100]
	cmp	r3, #0
	beq	.L52
	ldr	r1, .L55+8
	ldr	r0, [fp, #-3100]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L42
	ldr	r1, .L55+12
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-3100]
	ldr	r0, [fp, #-3100]
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	bge	.L52
	ldr	r0, .L55+16
	bl	puts
	b	.L52
.L42:
	ldr	r1, .L55+20
	ldr	r0, [fp, #-3100]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	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	r0, r3
	bl	puts
	b	.L52
.L43:
	ldr	r1, .L55+24
	ldr	r0, [fp, #-3100]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	mov	r0, #0
	bl	exit
.L44:
	ldr	r0, [fp, #-3104]
	bl	mysys
	b	.L52
.L37:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	dealReOutStr
	str	r0, [fp, #-3096]
	ldr	r3, [fp, #-3096]
	cmp	r3, #0
	beq	.L53
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-3088]
	ldr	r3, [fp, #-3088]
	cmp	r3, #0
	bne	.L46
	ldr	r2, .L55+28
	mov	r1, #66
	ldr	r0, [fp, #-3096]
	bl	open
	str	r0, [fp, #-3084]
	mov	r1, #1
	ldr	r0, [fp, #-3084]
	bl	dup2
	ldr	r0, [fp, #-3084]
	bl	close
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	do2
	mov	r0, #0
	bl	exit
.L46:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-3088]
	bl	waitpid
	b	.L53
.L39:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	dealReInStr
	str	r0, [fp, #-3096]
	ldr	r3, [fp, #-3096]
	cmp	r3, #0
	beq	.L54
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-3088]
	ldr	r3, [fp, #-3088]
	cmp	r3, #0
	bne	.L48
	ldr	r2, .L55+28
	mov	r1, #66
	ldr	r0, [fp, #-3096]
	bl	open
	str	r0, [fp, #-3084]
	mov	r1, #0
	ldr	r0, [fp, #-3084]
	bl	dup2
	ldr	r0, [fp, #-3084]
	bl	close
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	do2
	mov	r0, #0
	bl	exit
.L48:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-3088]
	bl	waitpid
	b	.L54
.L50:
	nop
	b	.L51
.L52:
	nop
	b	.L51
.L53:
	nop
	b	.L51
.L54:
	nop
.L51:
	nop
	ldr	r3, .L55
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC9
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	438
	.size	do2, .-do2
	.align	2
	.global	dealReOutStr
	.syntax unified
	.arm
	.fpu softvfp
	.type	dealReOutStr, %function
dealReOutStr:
	@ 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]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r1, #62
	ldr	r0, [fp, #-32]
	bl	findCharInStr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L58
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L59
.L58:
	mov	r3, #0
	b	.L60
.L59:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L61
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	str	r3, [fp, #-20]
	b	.L62
.L65:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L71
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L62:
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bhi	.L65
	b	.L64
.L71:
	nop
.L64:
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r1, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldr	r2, [fp, #-24]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-12]
	bl	strncpy
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-32]
	bl	deleteFromStr
	b	.L66
.L61:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L67
.L70:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L72
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L67:
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bhi	.L70
	b	.L69
.L72:
	nop
.L69:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r1, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-12]
	bl	strncpy
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-32]
	bl	deleteFromStr
.L66:
	ldr	r3, [fp, #-12]
.L60:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	dealReOutStr, .-dealReOutStr
	.align	2
	.global	dealReInStr
	.syntax unified
	.arm
	.fpu softvfp
	.type	dealReInStr, %function
dealReInStr:
	@ 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]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r1, #60
	ldr	r0, [fp, #-32]
	bl	findCharInStr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L74
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L75
.L74:
	mov	r3, #0
	b	.L76
.L75:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L77
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	str	r3, [fp, #-20]
	b	.L78
.L81:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L87
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L78:
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bhi	.L81
	b	.L80
.L87:
	nop
.L80:
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r1, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldr	r2, [fp, #-24]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-12]
	bl	strncpy
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-32]
	bl	deleteFromStr
	b	.L82
.L77:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L83
.L86:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L88
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L83:
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bhi	.L86
	b	.L85
.L88:
	nop
.L85:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r1, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-12]
	bl	strncpy
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-32]
	bl	deleteFromStr
.L82:
	ldr	r3, [fp, #-12]
.L76:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	dealReInStr, .-dealReInStr
	.align	2
	.global	deleteFromStr
	.syntax unified
	.arm
	.fpu softvfp
	.type	deleteFromStr, %function
deleteFromStr:
	@ 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	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L93
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-12]
	b	.L91
.L92:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L91:
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bhi	.L92
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	deleteFromStr
.L93:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	deleteFromStr, .-deleteFromStr
	.align	2
	.global	findCharInStr
	.syntax unified
	.arm
	.fpu softvfp
	.type	findCharInStr, %function
findCharInStr:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, r1
	strb	r3, [fp, #-25]
	mvn	r3, #0
	str	r3, [fp, #-16]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L95
.L98:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-25]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L96
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	b	.L97
.L96:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L95:
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bhi	.L98
.L97:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	findCharInStr, .-findCharInStr
	.section	.rodata
	.align	2
.LC10:
	.ascii	"-c\000"
	.align	2
.LC11:
	.ascii	"sh\000"
	.align	2
.LC12:
	.ascii	"/bin/sh\000"
	.text
	.align	2
	.global	mysys
	.syntax unified
	.arm
	.fpu softvfp
	.type	mysys, %function
mysys:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L101
	mvn	r3, #0
	b	.L102
.L101:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L103
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, .L105
	ldr	r1, .L105+4
	ldr	r0, .L105+8
	bl	execl
	mov	r3, r0
	cmp	r3, #0
	bge	.L104
	mov	r3, #127
	b	.L102
.L103:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	waitpid
	mov	r3, #0
	b	.L102
.L104:
	mov	r3, #0
.L102:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L106:
	.align	2
.L105:
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	mysys, .-mysys
	.align	2
	.global	split2
	.syntax unified
	.arm
	.fpu softvfp
	.type	split2, %function
split2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	split2, .-split2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
