	.file	"449524.c"
	.intel_syntax noprefix
	.text
	.globl	MAX_LINE_LENGTH
	.section	.rodata
	.align 4
	.type	MAX_LINE_LENGTH, @object
	.size	MAX_LINE_LENGTH, 4
MAX_LINE_LENGTH:
	.long	89
	.globl	BUF_SIZE
	.align 4
	.type	BUF_SIZE, @object
	.size	BUF_SIZE, 4
BUF_SIZE:
	.long	64
	.globl	REDIR_SIZE
	.align 4
	.type	REDIR_SIZE, @object
	.size	REDIR_SIZE, 4
REDIR_SIZE:
	.long	2
	.globl	PIPE_SIZE
	.align 4
	.type	PIPE_SIZE, @object
	.size	PIPE_SIZE, 4
PIPE_SIZE:
	.long	3
	.globl	MAX_HISTORY
	.align 4
	.type	MAX_HISTORY, @object
	.size	MAX_HISTORY, 4
MAX_HISTORY:
	.long	30
	.globl	MAX_COMMAND_NAME
	.align 4
	.type	MAX_COMMAND_NAME, @object
	.size	MAX_COMMAND_NAME, 4
MAX_COMMAND_NAME:
	.long	30
	.globl	ANTI_CHINA_WORDLIST_SIZE
	.align 4
	.type	ANTI_CHINA_WORDLIST_SIZE, @object
	.size	ANTI_CHINA_WORDLIST_SIZE, 4
ANTI_CHINA_WORDLIST_SIZE:
	.long	64
	.globl	ANTI_CHINA_WORDLIST
.LC0:
	.string	"xjp"
.LC1:
	.string	"winnie"
.LC2:
	.string	"democracy"
.LC3:
	.string	"freedom"
.LC4:
	.string	"justice"
	.section	.data.rel.local,"aw"
	.align 32
	.type	ANTI_CHINA_WORDLIST, @object
	.size	ANTI_CHINA_WORDLIST, 40
ANTI_CHINA_WORDLIST:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.section	.rodata
.LC5:
	.string	" "
	.text
	.globl	parse_cmd
	.type	parse_cmd, @function
parse_cmd:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -24[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	add	DWORD PTR -24[rbp], 1
.L2:
	mov	eax, 64
	cmp	DWORD PTR -24[rbp], eax
	jb	.L3
	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
	movzx	eax, BYTE PTR [rax]
	cmp	al, 38
	jne	.L4
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 1
	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
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 0
.L5:
	lea	rax, .LC5[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -16[rbp], rax
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -20[rbp], edx
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -16[rbp], rax
.L6:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L7
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	parse_cmd, .-parse_cmd
	.section	.rodata
.LC6:
	.string	"<"
.LC7:
	.string	">"
	.text
	.globl	parse_redir
	.type	parse_redir, @function
parse_redir:
.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -20[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	QWORD PTR [rax], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L10
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
.L10:
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L11
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rbx, 8[rdx]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
.L11:
	add	DWORD PTR -20[rbp], 1
.L9:
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L12
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	parse_redir, .-parse_redir
	.section	.rodata
.LC8:
	.string	"|"
	.text
	.globl	parse_pipe
	.type	parse_pipe, @function
parse_pipe:
.LFB8:
	.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	DWORD PTR -24[rbp], 1
.L15:
	add	DWORD PTR -32[rbp], 1
.L14:
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L16
	cmp	DWORD PTR -24[rbp], 0
	jne	.L17
	mov	eax, 0
	jmp	.L18
.L17:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -32[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -32[rbp], 1
.L19:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jb	.L20
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -32[rbp], edx
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -32[rbp]
	sub	edx, DWORD PTR -28[rbp]
	sub	edx, 1
	mov	edx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -32[rbp], 1
.L21:
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L22
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	eax, 1
.L18:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	parse_pipe, .-parse_pipe
	.section	.rodata
.LC9:
	.string	"Redirect output failed"
.LC10:
	.string	"Closing output failed"
.LC11:
	.string	"Redirect input failed"
.LC12:
	.string	"Closing input failed"
.LC13:
	.string	"Fail to execute command"
	.text
	.globl	child
	.type	child, @function
child:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L24
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L25
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 448
	mov	rdi, rax
	call	creat@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L26
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L24
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L25:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L24
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L27
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L24
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	cmp	eax, -1
	jne	.L29
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	child, .-child
	.section	.rodata
	.align 8
.LC14:
	.string	"Parent <%d> spawned a child <%d>.\n"
	.align 8
.LC15:
	.string	"Child <%d> exited with status = %d.\n"
	.text
	.globl	parent
	.type	parent, @function
parent:
.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	getpid@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -24[rbp], 0
	jne	.L31
	lea	rcx, -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	jmp	.L32
.L31:
	lea	rcx, -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L35
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L35:
	nop
.L32:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	parent, .-parent
	.globl	add_history_feature
	.type	add_history_feature, @function
add_history_feature:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	eax, 30
	cmp	edx, eax
	jnb	.L37
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	DWORD PTR [rdx], ecx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L41
.L37:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -4[rbp], 1
	jmp	.L39
.L40:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	lea	rcx, -8[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -4[rbp], 1
.L39:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 30
	cmp	eax, edx
	jb	.L40
	mov	eax, 30
	sub	eax, 1
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L41:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	add_history_feature, .-add_history_feature
	.section	.rodata
.LC16:
	.string	"pipe() failed"
.LC17:
	.string	"Fail to execute first command"
	.align 8
.LC18:
	.string	"Fail to execute second command"
	.text
	.globl	exec_with_pipe
	.type	exec_with_pipe, @function
exec_with_pipe:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L43
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L43:
	call	fork@PLT
	test	eax, eax
	jne	.L44
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L44:
	call	fork@PLT
	test	eax, eax
	jne	.L45
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	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
	lea	rdi, .LC18[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L45:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	wait@PLT
	mov	edi, 0
	call	wait@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	exec_with_pipe, .-exec_with_pipe
	.section	.rodata
.LC19:
	.string	"winniesh>"
.LC20:
	.string	"Cannot read user input!"
.LC21:
	.string	"\n"
.LC22:
	.string	"exit"
.LC23:
	.string	"!!"
.LC24:
	.string	"No commands in history\n"
.LC25:
	.string	"winniesh>%s\n"
.LC26:
	.string	"history"
.LC27:
	.string	"hk"
.LC28:
	.string	"\345\205\211\345\276\251\351\246\231\346\270\257 \346\231\202\344\273\243\351\235\251\345\221\275"
	.align 8
.LC29:
	.string	"\346\234\254\344\273\243\347\240\201\344\270\215\346\254\242\350\277\216\345\217\215\345\215\216\345\210\206\345\255\220\344\275\277\347\224\250"
.LC30:
	.string	"cd"
.LC31:
	.string	"/"
.LC32:
	.string	"fork() failed!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r12
	push	rbx
	sub	rsp, 256
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	r12, rax
	mov	DWORD PTR -156[rbp], 1
	mov	DWORD PTR -160[rbp], 0
	mov	DWORD PTR -168[rbp], 0
	mov	eax, 89
	mov	eax, eax
	sub	rax, 1
	mov	QWORD PTR -104[rbp], rax
	mov	eax, 89
	mov	eax, eax
	mov	rcx, rax
	mov	ebx, 0
	mov	eax, 89
	mov	eax, eax
	mov	rsi, rax
	mov	edi, 0
	mov	eax, 89
	mov	edx, eax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L48:
	cmp	rsp, rcx
	je	.L49
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L48
.L49:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L50
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L50:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -112[rbp], rax
	mov	eax, 64
	mov	eax, eax
	sub	rax, 1
	mov	QWORD PTR -120[rbp], rax
	mov	eax, 64
	mov	eax, eax
	mov	r8, rax
	mov	r9d, 0
	mov	eax, 64
	mov	eax, eax
	mov	r10, rax
	mov	r11d, 0
	mov	eax, 64
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L51:
	cmp	rsp, rcx
	je	.L52
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L51
.L52:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L53
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L53:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -128[rbp], rax
	mov	eax, 2
	mov	eax, eax
	sub	rax, 1
	mov	QWORD PTR -136[rbp], rax
	mov	eax, 2
	mov	eax, eax
	mov	r14, rax
	mov	r15d, 0
	mov	eax, 2
	mov	eax, eax
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], 0
	mov	eax, 2
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L54:
	cmp	rsp, rcx
	je	.L55
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L54
.L55:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L56
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L56:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -96[rbp], rax
	mov	eax, 3
	mov	eax, eax
	sub	rax, 1
	mov	QWORD PTR -88[rbp], rax
	mov	eax, 3
	mov	eax, eax
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], 0
	mov	eax, 3
	mov	eax, eax
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], 0
	mov	eax, 3
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L57:
	cmp	rsp, rdx
	je	.L58
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L57
.L58:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L59
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L59:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -80[rbp], rax
	mov	eax, 3
	mov	eax, eax
	sub	rax, 1
	mov	QWORD PTR -72[rbp], rax
	mov	eax, 3
	mov	eax, eax
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], 0
	mov	eax, 3
	mov	eax, eax
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], 0
	mov	eax, 3
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L60:
	cmp	rsp, rdx
	je	.L61
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L60
.L61:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L62
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L62:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -64[rbp], rax
	mov	eax, 30
	mov	eax, eax
	sub	rax, 1
	mov	QWORD PTR -56[rbp], rax
	mov	eax, 30
	mov	eax, eax
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], 0
	mov	eax, 30
	mov	eax, eax
	mov	QWORD PTR -288[rbp], rax
	mov	QWORD PTR -280[rbp], 0
	mov	eax, 30
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L63:
	cmp	rsp, rdx
	je	.L64
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L63
.L64:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L65
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L65:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -144[rbp], 0
	jmp	.L66
.L67:
	mov	eax, 30
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -144[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	add	DWORD PTR -144[rbp], 1
.L66:
	mov	eax, DWORD PTR -144[rbp]
	mov	edx, 30
	cmp	eax, edx
	jb	.L67
	jmp	.L68
.L87:
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L69
.L70:
	lea	rdi, .LC20[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
.L69:
	mov	rdx, QWORD PTR stdin[rip]
	mov	eax, 89
	mov	ecx, eax
	mov	rax, QWORD PTR -112[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L70
	mov	rax, QWORD PTR -112[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strcspn@PLT
	mov	rdx, QWORD PTR -112[rbp]
	mov	BYTE PTR [rdx+rax], 0
	mov	rdx, QWORD PTR -112[rbp]
	lea	rcx, -168[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	add_history_feature
	lea	rdx, -164[rbp]
	mov	rcx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	parse_cmd
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parse_redir
	mov	rax, QWORD PTR -112[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L71
	mov	DWORD PTR -156[rbp], 0
	jmp	.L68
.L71:
	mov	rax, QWORD PTR -112[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L72
	mov	eax, DWORD PTR -168[rbp]
	test	eax, eax
	jne	.L73
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
	jmp	.L68
.L73:
	mov	eax, DWORD PTR -168[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
.L72:
	mov	rax, QWORD PTR -112[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L74
	mov	DWORD PTR -148[rbp], 0
	jmp	.L75
.L76:
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -148[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdi, rax
	call	puts@PLT
	add	DWORD PTR -148[rbp], 1
.L75:
	mov	eax, DWORD PTR -168[rbp]
	cmp	DWORD PTR -148[rbp], eax
	jl	.L76
	jmp	.L68
.L74:
	mov	rax, QWORD PTR -112[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L77
	lea	rdi, .LC28[rip]
	call	puts@PLT
	jmp	.L68
.L77:
	mov	DWORD PTR -152[rbp], 0
	jmp	.L78
.L80:
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ANTI_CHINA_WORDLIST[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L79
	lea	rdi, .LC29[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L79:
	add	DWORD PTR -152[rbp], 1
.L78:
	mov	eax, DWORD PTR -152[rbp]
	cmp	eax, 4
	jbe	.L80
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L81
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L82
	lea	rdi, .LC31[rip]
	call	chdir@PLT
	jmp	.L68
.L82:
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	chdir@PLT
	jmp	.L68
.L81:
	mov	rdx, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	parse_pipe
	test	eax, eax
	je	.L83
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	exec_with_pipe
	jmp	.L68
.L83:
	call	fork@PLT
	mov	DWORD PTR -140[rbp], eax
	cmp	DWORD PTR -140[rbp], -1
	je	.L84
	cmp	DWORD PTR -140[rbp], 0
	je	.L85
	jmp	.L90
.L84:
	lea	rdi, .LC32[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L85:
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	child
	mov	edi, 0
	call	exit@PLT
.L90:
	mov	edx, DWORD PTR -164[rbp]
	mov	eax, DWORD PTR -140[rbp]
	mov	esi, edx
	mov	edi, eax
	call	parent
.L68:
	cmp	DWORD PTR -156[rbp], 0
	jne	.L87
	mov	eax, 0
	mov	rsp, r12
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L89
	call	__stack_chk_fail@PLT
.L89:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	"449524.c"
	.text
	.global	MAX_LINE_LENGTH
	.section	.rodata
	.align	2
	.type	MAX_LINE_LENGTH, %object
	.size	MAX_LINE_LENGTH, 4
MAX_LINE_LENGTH:
	.word	89
	.global	BUF_SIZE
	.align	2
	.type	BUF_SIZE, %object
	.size	BUF_SIZE, 4
BUF_SIZE:
	.word	64
	.global	REDIR_SIZE
	.align	2
	.type	REDIR_SIZE, %object
	.size	REDIR_SIZE, 4
REDIR_SIZE:
	.word	2
	.global	PIPE_SIZE
	.align	2
	.type	PIPE_SIZE, %object
	.size	PIPE_SIZE, 4
PIPE_SIZE:
	.word	3
	.global	MAX_HISTORY
	.align	2
	.type	MAX_HISTORY, %object
	.size	MAX_HISTORY, 4
MAX_HISTORY:
	.word	30
	.global	MAX_COMMAND_NAME
	.align	2
	.type	MAX_COMMAND_NAME, %object
	.size	MAX_COMMAND_NAME, 4
MAX_COMMAND_NAME:
	.word	30
	.global	ANTI_CHINA_WORDLIST_SIZE
	.align	2
	.type	ANTI_CHINA_WORDLIST_SIZE, %object
	.size	ANTI_CHINA_WORDLIST_SIZE, 4
ANTI_CHINA_WORDLIST_SIZE:
	.word	64
	.global	ANTI_CHINA_WORDLIST
	.align	2
.LC0:
	.ascii	"xjp\000"
	.align	2
.LC1:
	.ascii	"winnie\000"
	.align	2
.LC2:
	.ascii	"democracy\000"
	.align	2
.LC3:
	.ascii	"freedom\000"
	.align	2
.LC4:
	.ascii	"justice\000"
	.data
	.align	2
	.type	ANTI_CHINA_WORDLIST, %object
	.size	ANTI_CHINA_WORDLIST, 20
ANTI_CHINA_WORDLIST:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.section	.rodata
	.align	2
.LC5:
	.ascii	" \000"
	.text
	.align	2
	.global	parse_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_cmd, %function
parse_cmd:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L3:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	mov	r2, #64
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	bcc	.L3
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #38
	bne	.L4
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L5
.L4:
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3]
.L5:
	ldr	r3, .L8
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-24]
	bl	strtok
	str	r0, [fp, #-12]
	b	.L6
.L7:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-12]
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC5
	.size	parse_cmd, .-parse_cmd
	.section	.rodata
	.align	2
.LC6:
	.ascii	"<\000"
	.align	2
.LC7:
	.ascii	">\000"
	.text
	.align	2
	.global	parse_redir
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_redir, %function
parse_redir:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	b	.L11
.L14:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L15
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L15+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
.L12:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r4, r3, #4
	mov	r0, r2
	bl	strdup
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L13:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC6
	.word	.LC7
	.size	parse_redir, .-parse_redir
	.section	.rodata
	.align	2
.LC8:
	.ascii	"|\000"
	.text
	.align	2
	.global	parse_pipe
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_pipe, %function
parse_pipe:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L18
.L20:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L27
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-20]
.L19:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L18:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L21
	mov	r3, #0
	b	.L22
.L21:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L23
.L24:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r4, r2, r3
	mov	r0, r1
	bl	strdup
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L23:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L24
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	b	.L25
.L26:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r4, r2, r3
	mov	r0, r1
	bl	strdup
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L25:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L26
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #1
.L22:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC8
	.size	parse_pipe, .-parse_pipe
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Redirect output failed\000"
	.align	2
.LC10:
	.ascii	"Closing output failed\000"
	.align	2
.LC11:
	.ascii	"Redirect input failed\000"
	.align	2
.LC12:
	.ascii	"Closing input failed\000"
	.align	2
.LC13:
	.ascii	"Fail to execute command\000"
	.text
	.align	2
	.global	child
	.syntax unified
	.arm
	.fpu softvfp
	.type	child, %function
child:
	@ 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]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r1, .L36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #448
	mov	r0, r3
	bl	creat
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L32
	ldr	r0, .L36+4
	bl	perror
	mov	r0, #1
	bl	exit
.L32:
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	dup2
	ldr	r0, [fp, #-8]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L30
	ldr	r0, .L36+8
	bl	perror
	mov	r0, #1
	bl	exit
.L31:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r1, .L36+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L33
	ldr	r0, .L36+16
	bl	perror
	mov	r0, #1
	bl	exit
.L33:
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	dup2
	ldr	r0, [fp, #-12]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L30
	ldr	r0, .L36+20
	bl	perror
	mov	r0, #1
	bl	exit
.L30:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmn	r3, #1
	bne	.L35
	ldr	r0, .L36+24
	bl	perror
	mov	r0, #1
	bl	exit
.L35:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC7
	.word	.LC9
	.word	.LC10
	.word	.LC6
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	child, .-child
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Parent <%d> spawned a child <%d>.\012\000"
	.align	2
.LC15:
	.ascii	"Child <%d> exited with status = %d.\012\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parent
	.syntax unified
	.arm
	.fpu softvfp
	.type	parent, %function
parent:
	@ 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, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	getpid
	mov	r3, r0
	ldr	r2, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L44+4
	bl	printf
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L39
	sub	r3, fp, #12
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	waitpid
	b	.L40
.L39:
	sub	r3, fp, #12
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	waitpid
	ldr	r3, [fp, #-12]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L43
	ldr	r3, [fp, #-12]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L44+8
	bl	printf
.L43:
	nop
.L40:
	nop
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC16
	.word	.LC14
	.word	.LC15
	.size	parent, .-parent
	.align	2
	.global	add_history_feature
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_history_feature, %function
add_history_feature:
	@ 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, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, #30
	cmp	r2, r3
	bcs	.L47
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r2, [fp, #-20]
	str	r1, [r2]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strcpy
	b	.L51
.L47:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L49
.L50:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	strcpy
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L49:
	ldr	r3, [fp, #-8]
	mov	r2, #30
	cmp	r3, r2
	bcc	.L50
	mov	r3, #30
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strcpy
.L51:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	add_history_feature, .-add_history_feature
	.section	.rodata
	.align	2
.LC17:
	.ascii	"pipe() failed\000"
	.align	2
.LC18:
	.ascii	"Fail to execute first command\000"
	.align	2
.LC19:
	.ascii	"Fail to execute second command\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	exec_with_pipe
	.syntax unified
	.arm
	.fpu softvfp
	.type	exec_with_pipe, %function
exec_with_pipe:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L53
	ldr	r0, .L57+4
	bl	perror
	mov	r0, #1
	bl	exit
.L53:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	ldr	r3, [fp, #-12]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	execvp
	ldr	r0, .L57+8
	bl	perror
	mov	r0, #1
	bl	exit
.L54:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	execvp
	ldr	r0, .L57+12
	bl	perror
	mov	r0, #1
	bl	exit
.L55:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	wait
	mov	r0, #0
	bl	wait
	nop
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC20
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	exec_with_pipe, .-exec_with_pipe
	.section	.rodata
	.align	2
.LC21:
	.ascii	"winniesh>\000"
	.align	2
.LC22:
	.ascii	"Cannot read user input!\000"
	.align	2
.LC23:
	.ascii	"\012\000"
	.align	2
.LC24:
	.ascii	"exit\000"
	.align	2
.LC25:
	.ascii	"!!\000"
	.align	2
.LC26:
	.ascii	"No commands in history\012\000"
	.align	2
.LC27:
	.ascii	"winniesh>%s\012\000"
	.align	2
.LC28:
	.ascii	"history\000"
	.align	2
.LC29:
	.ascii	"hk\000"
	.align	2
.LC30:
	.ascii	"\345\205\211\345\276\251\351\246\231\346\270\257 \346"
	.ascii	"\231\202\344\273\243\351\235\251\345\221\275\000"
	.align	2
.LC31:
	.ascii	"\346\234\254\344\273\243\347\240\201\344\270\215\346"
	.ascii	"\254\242\350\277\216\345\217\215\345\215\216\345\210"
	.ascii	"\206\345\255\220\344\275\277\347\224\250\000"
	.align	2
.LC32:
	.ascii	"cd\000"
	.align	2
.LC33:
	.ascii	"/\000"
	.align	2
.LC34:
	.ascii	"fork() failed!\000"
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #92
	ldr	r3, .L85
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r3, #1
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-96]
	mov	r3, #89
	sub	r3, r3, #1
	str	r3, [fp, #-72]
	mov	r3, #89
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #89
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #89
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-76]
	mov	r3, #64
	sub	r3, r3, #1
	str	r3, [fp, #-80]
	mov	r3, #64
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, #64
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, #64
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-84]
	mov	r3, #2
	sub	r3, r3, #1
	str	r3, [fp, #-88]
	mov	r3, #2
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, #2
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, #2
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-48]
	mov	r3, #3
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	mov	r3, #3
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, #3
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, #3
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-40]
	mov	r3, #3
	sub	r3, r3, #1
	str	r3, [fp, #-36]
	mov	r3, #3
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, #3
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, #3
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-32]
	mov	r3, #30
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	mov	r3, #30
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, #30
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, #30
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L60
.L61:
	mov	r3, #30
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-52]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L60:
	ldr	r3, [fp, #-52]
	mov	r2, #30
	cmp	r3, r2
	bcc	.L61
	b	.L62
.L81:
	ldr	r0, .L85+4
	bl	printf
	ldr	r3, .L85+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L63
.L64:
	ldr	r0, .L85+12
	bl	perror
	ldr	r3, .L85+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L63:
	mov	r3, #89
	mov	r1, r3
	ldr	r3, .L85+16
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-76]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L64
	ldr	r1, .L85+20
	ldr	r0, [fp, #-76]
	bl	strcspn
	mov	r2, r0
	ldr	r3, [fp, #-76]
	mov	r1, #0
	strb	r1, [r3, r2]
	sub	r3, fp, #96
	ldr	r2, [fp, #-76]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	add_history_feature
	sub	r3, fp, #92
	mov	r2, r3
	ldr	r1, [fp, #-84]
	ldr	r0, [fp, #-76]
	bl	parse_cmd
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-84]
	bl	parse_redir
	ldr	r1, .L85+24
	ldr	r0, [fp, #-76]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L65
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L62
.L65:
	ldr	r1, .L85+28
	ldr	r0, [fp, #-76]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L66
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L67
	ldr	r3, .L85+32
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L85+36
	bl	fwrite
	b	.L62
.L67:
	ldr	r3, [fp, #-96]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, [fp, #-76]
	bl	strcpy
	ldr	r1, [fp, #-76]
	ldr	r0, .L85+40
	bl	printf
.L66:
	ldr	r1, .L85+44
	ldr	r0, [fp, #-76]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L68
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L69
.L70:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-56]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L69:
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L70
	b	.L62
.L68:
	ldr	r1, .L85+48
	ldr	r0, [fp, #-76]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L71
	ldr	r0, .L85+52
	bl	puts
	b	.L62
.L71:
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L72
.L74:
	ldr	r2, .L85+56
	ldr	r3, [fp, #-60]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, [fp, #-76]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L73
	ldr	r0, .L85+60
	bl	puts
	mov	r0, #1
	bl	exit
.L73:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L72:
	ldr	r3, [fp, #-60]
	cmp	r3, #4
	bls	.L74
	ldr	r3, [fp, #-84]
	ldr	r3, [r3]
	ldr	r1, .L85+64
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L75
	ldr	r3, [fp, #-84]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L76
	ldr	r0, .L85+68
	bl	chdir
	b	.L62
.L76:
	ldr	r3, [fp, #-84]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	chdir
	b	.L62
.L75:
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-84]
	bl	parse_pipe
	mov	r3, r0
	cmp	r3, #0
	beq	.L77
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-40]
	bl	exec_with_pipe
	b	.L62
.L77:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L78
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L79
	b	.L84
.L78:
	ldr	r0, .L85+72
	bl	perror
	mov	r0, #1
	bl	exit
.L79:
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-84]
	bl	child
	mov	r0, #0
	bl	exit
.L84:
	ldr	r3, [fp, #-92]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	parent
.L62:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L81
	mov	r3, #0
	mov	sp, r4
	ldr	r2, .L85
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L83
	bl	__stack_chk_fail
.L83:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L86:
	.align	2
.L85:
	.word	.LC35
	.word	.LC21
	.word	stdout
	.word	.LC22
	.word	stdin
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	stderr
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	ANTI_CHINA_WORDLIST
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
