	.file	"835377.c"
	.intel_syntax noprefix
	.text
	.globl	title
	.section	.rodata
.LC0:
	.string	"shell>> "
	.section	.data.rel.local,"aw"
	.align 8
	.type	title, @object
	.size	title, 8
title:
	.quad	.LC0
	.globl	c_grp
	.bss
	.align 32
	.type	c_grp, @object
	.size	c_grp, 80
c_grp:
	.zero	80
	.globl	c_list
	.align 32
	.type	c_list, @object
	.size	c_list, 80
c_list:
	.zero	80
	.globl	c_args
	.align 32
	.type	c_args, @object
	.size	c_args, 80
c_args:
	.zero	80
	.globl	c_line
	.align 32
	.type	c_line, @object
	.size	c_line, 8192
c_line:
	.zero	8192
	.globl	act
	.align 32
	.type	act, @object
	.size	act, 152
act:
	.zero	152
	.local	status
	.comm	status,4,4
	.local	CMD_BACKGROUND
	.comm	CMD_BACKGROUND,4,4
	.section	.rodata
.LC1:
	.string	"HOME"
.LC2:
	.string	"No directory"
.LC3:
	.string	"cd [dir]"
	.text
	.globl	my_cd
	.type	my_cd, @function
my_cd:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 1
	jne	.L2
	lea	rdi, .LC1[rip]
	call	getenv@PLT
	mov	rdi, rax
	call	chdir@PLT
	jmp	.L3
.L2:
	cmp	DWORD PTR -4[rbp], 2
	jne	.L4
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	je	.L3
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L3
.L4:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L3:
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	my_cd, .-my_cd
	.globl	my_exit
	.type	my_exit, @function
my_exit:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	my_exit, .-my_exit
	.section	.rodata
.LC4:
	.string	"cd"
.LC5:
	.string	"I/O directory"
.LC6:
	.string	"exit"
.LC7:
	.string	"exit~"
	.section	.data.rel.local
	.align 32
	.type	builtin_cmds, @object
	.size	builtin_cmds, 48
builtin_cmds:
	.quad	.LC4
	.quad	.LC5
	.quad	my_cd
	.quad	.LC6
	.quad	.LC7
	.quad	my_exit
	.section	.rodata
.LC8:
	.string	"child %d \n"
	.text
	.globl	zombie
	.type	zombie, @function
zombie:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	lea	rax, -16[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, -1
	call	waitpid@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jg	.L9
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	zombie, .-zombie
	.globl	fatal_err
	.type	fatal_err, @function
fatal_err:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	fatal_err, .-fatal_err
	.globl	M_argv
	.type	M_argv, @function
M_argv:
.LFB10:
	.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 -60[rbp], ecx
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	cmp	QWORD PTR -40[rbp], 0
	je	.L13
	cmp	QWORD PTR -48[rbp], 0
	jne	.L14
.L13:
	mov	eax, -1
	jmp	.L15
.L14:
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strspn@PLT
	mov	rdx, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	lea	rbx, [rdx+rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L16
	mov	DWORD PTR -32[rbp], 1
	jmp	.L17
.L19:
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, 1
	cmp	DWORD PTR -32[rbp], eax
	jne	.L18
	mov	eax, -1
	jmp	.L15
.L18:
	add	DWORD PTR -32[rbp], 1
.L17:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	lea	rbx, [rdx+rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	jne	.L19
.L16:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jle	.L20
	mov	eax, -1
	jmp	.L15
.L20:
	mov	eax, DWORD PTR -32[rbp]
.L15:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	M_argv, .-M_argv
	.section	.rodata
.LC9:
	.string	" \t"
.LC10:
	.string	"file error"
	.text
	.globl	redirect
	.type	redirect, @function
redirect:
.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 -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 1
	mov	DWORD PTR -20[rbp], eax
	jmp	.L22
.L29:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 60
	je	.L23
	cmp	eax, 62
	je	.L24
	jmp	.L27
.L23:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 420
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L26
	lea	rdi, .LC10[rip]
	call	fatal_err
.L26:
	mov	eax, DWORD PTR -12[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 -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L27
.L24:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 420
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L28
	lea	rdi, .LC10[rip]
	call	fatal_err
.L28:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	nop
.L27:
	sub	DWORD PTR -20[rbp], 1
.L22:
	cmp	DWORD PTR -20[rbp], 0
	jns	.L29
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	redirect, .-redirect
	.globl	background
	.type	background, @function
background:
.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -20[rbp], 0
	jmp	.L31
.L34:
	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, 38
	jne	.L32
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	mov	eax, 1
	jmp	.L33
.L32:
	add	DWORD PTR -20[rbp], 1
.L31:
	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	.L34
	mov	eax, 0
.L33:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	background, .-background
	.section	.rodata
.LC11:
	.string	"argv error"
.LC12:
	.string	"exe error"
	.text
	.globl	act_cmd
	.type	act_cmd, @function
act_cmd:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	redirect
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, 10
	lea	rdx, c_args[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	M_argv
	test	eax, eax
	jg	.L36
	lea	rdi, .LC11[rip]
	call	fatal_err
.L36:
	mov	rax, QWORD PTR c_args[rip]
	lea	rsi, c_args[rip]
	mov	rdi, rax
	call	execvp@PLT
	lea	rdi, .LC12[rip]
	call	fatal_err
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	act_cmd, .-act_cmd
	.section	.rodata
.LC13:
	.string	"|"
.LC14:
	.string	"GRP error"
.LC15:
	.string	"fork error"
	.text
	.globl	act_c_grp
	.type	act_c_grp, @function
act_c_grp:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -160[rbp], 0
	mov	DWORD PTR -156[rbp], 0
	mov	esi, 0
	mov	edi, 0
	call	setpgid@PLT
	mov	eax, DWORD PTR CMD_BACKGROUND[rip]
	test	eax, eax
	jne	.L38
	call	getpid@PLT
	mov	esi, eax
	mov	edi, 0
	call	tcsetpgrp@PLT
.L38:
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigfillset@PLT
	lea	rax, -144[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	sigprocmask@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	ecx, 10
	lea	rdx, c_list[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	M_argv
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], 0
	jg	.L39
	lea	rdi, .LC14[rip]
	call	fatal_err
.L39:
	mov	DWORD PTR -160[rbp], 0
	jmp	.L40
.L44:
	lea	rax, -152[rbp]
	mov	rdi, rax
	call	pipe@PLT
	call	fork@PLT
	cmp	eax, -1
	je	.L41
	test	eax, eax
	je	.L42
	jmp	.L43
.L41:
	lea	rdi, .LC15[rip]
	call	fatal_err
.L42:
	mov	eax, DWORD PTR -152[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -148[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, c_list[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	act_cmd
.L43:
	mov	eax, DWORD PTR -148[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	add	DWORD PTR -160[rbp], 1
.L40:
	mov	eax, DWORD PTR -156[rbp]
	sub	eax, 1
	cmp	DWORD PTR -160[rbp], eax
	jl	.L44
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, c_list[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	act_cmd
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	act_c_grp, .-act_c_grp
	.section	.rodata
.LC16:
	.string	";"
.LC17:
	.string	"err"
	.text
	.globl	act_c_line
	.type	act_c_line, @function
act_c_line:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 144
	mov	QWORD PTR -8328[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8300[rbp], 0
	mov	DWORD PTR -8308[rbp], 0
	mov	DWORD PTR -8304[rbp], 0
	mov	DWORD PTR -8296[rbp], 0
	mov	rax, QWORD PTR -8328[rbp]
	mov	ecx, 10
	lea	rdx, c_grp[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	M_argv
	mov	DWORD PTR -8300[rbp], eax
	mov	DWORD PTR -8308[rbp], 0
	jmp	.L47
.L57:
	mov	eax, DWORD PTR -8308[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, c_grp[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -8308[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, c_grp[rip]
	mov	rcx, QWORD PTR [rcx+rax]
	lea	rax, -8208[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -8308[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, c_grp[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rdx, -8288[rbp]
	mov	ecx, 10
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	M_argv
	mov	DWORD PTR -8296[rbp], eax
	mov	DWORD PTR -8304[rbp], 0
	jmp	.L48
.L51:
	mov	rdx, QWORD PTR -8288[rbp]
	mov	eax, DWORD PTR -8304[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	mov	rcx, rax
	lea	rax, builtin_cmds[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L49
	mov	eax, DWORD PTR -8304[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, builtin_cmds[rip+16]
	mov	rcx, QWORD PTR [rdx+rax]
	lea	rdx, -8288[rbp]
	mov	eax, DWORD PTR -8296[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	rcx
	jmp	.L46
.L49:
	add	DWORD PTR -8304[rbp], 1
.L48:
	mov	eax, DWORD PTR -8304[rbp]
	cmp	eax, 1
	jbe	.L51
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	background
	mov	DWORD PTR CMD_BACKGROUND[rip], eax
	call	fork@PLT
	mov	DWORD PTR -8292[rbp], eax
	cmp	DWORD PTR -8292[rbp], -1
	je	.L52
	cmp	DWORD PTR -8292[rbp], 0
	je	.L53
	jmp	.L54
.L52:
	lea	rdi, .LC17[rip]
	call	fatal_err
.L53:
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	act_c_grp
.L54:
	mov	eax, DWORD PTR CMD_BACKGROUND[rip]
	test	eax, eax
	jne	.L59
	mov	eax, DWORD PTR -8292[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	edi, 0
	call	getpgid@PLT
	mov	esi, eax
	mov	edi, 0
	call	tcsetpgrp@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L56
.L59:
	nop
.L56:
	add	DWORD PTR -8308[rbp], 1
.L47:
	mov	eax, DWORD PTR -8308[rbp]
	cmp	eax, DWORD PTR -8300[rbp]
	jl	.L57
.L46:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	act_c_line, .-act_c_line
	.globl	main
	.type	main, @function
main:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigfillset@PLT
	lea	rax, -144[rbp]
	mov	esi, 17
	mov	rdi, rax
	call	sigdelset@PLT
	lea	rax, -144[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
	mov	DWORD PTR act[rip+136], 268435456
	lea	rdi, act[rip+8]
	call	sigemptyset@PLT
	lea	rax, zombie[rip]
	mov	QWORD PTR act[rip], rax
	mov	edx, 0
	lea	rsi, act[rip]
	mov	edi, 17
	call	sigaction@PLT
.L61:
	mov	rdx, QWORD PTR stdout[rip]
	mov	rax, QWORD PTR title[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	mov	esi, 8192
	lea	rdi, c_line[rip]
	call	fgets@PLT
	lea	rdi, c_line[rip]
	call	strlen@PLT
	lea	rdx, -1[rax]
	lea	rax, c_line[rip]
	mov	BYTE PTR [rdx+rax], 0
	lea	rdi, c_line[rip]
	call	act_c_line
	jmp	.L61
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"835377.c"
	.text
	.global	title
	.section	.rodata
	.align	2
.LC0:
	.ascii	"shell>> \000"
	.data
	.align	2
	.type	title, %object
	.size	title, 4
title:
	.word	.LC0
	.comm	c_grp,40,4
	.comm	c_list,40,4
	.comm	c_args,40,4
	.comm	c_line,8192,4
	.comm	act,140,4
	.local	status
	.comm	status,4,4
	.local	CMD_BACKGROUND
	.comm	CMD_BACKGROUND,4,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"HOME\000"
	.align	2
.LC2:
	.ascii	"No directory\000"
	.align	2
.LC3:
	.ascii	"cd [dir]\000"
	.text
	.align	2
	.global	my_cd
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_cd, %function
my_cd:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L2
	ldr	r0, .L6
	bl	getenv
	mov	r3, r0
	mov	r0, r3
	bl	chdir
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L4
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L6+4
	bl	puts
	b	.L3
.L4:
	ldr	r0, .L6+8
	bl	puts
.L3:
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	my_cd, .-my_cd
	.align	2
	.global	my_exit
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_exit, %function
my_exit:
	@ 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]
	str	r1, [fp, #-12]
	mov	r0, #0
	bl	exit
	.size	my_exit, .-my_exit
	.section	.rodata
	.align	2
.LC4:
	.ascii	"cd\000"
	.align	2
.LC5:
	.ascii	"I/O directory\000"
	.align	2
.LC6:
	.ascii	"exit\000"
	.align	2
.LC7:
	.ascii	"exit~\000"
	.data
	.align	2
	.type	builtin_cmds, %object
	.size	builtin_cmds, 24
builtin_cmds:
	.word	.LC4
	.word	.LC5
	.word	my_cd
	.word	.LC6
	.word	.LC7
	.word	my_exit
	.section	.rodata
	.align	2
.LC8:
	.ascii	"child %d \012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	zombie
	.syntax unified
	.arm
	.fpu softvfp
	.type	zombie, %function
zombie:
	@ 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]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L10
.L11:
	ldr	r1, [fp, #-12]
	ldr	r0, .L13+4
	bl	printf
.L10:
	sub	r3, fp, #16
	mov	r2, #1
	mov	r1, r3
	mvn	r0, #0
	bl	waitpid
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L11
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC9
	.word	.LC8
	.size	zombie, .-zombie
	.align	2
	.global	fatal_err
	.syntax unified
	.arm
	.fpu softvfp
	.type	fatal_err, %function
fatal_err:
	@ 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	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	fatal_err, .-fatal_err
	.align	2
	.global	M_argv
	.syntax unified
	.arm
	.fpu softvfp
	.type	M_argv, %function
M_argv:
	@ 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]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L18
.L17:
	mvn	r3, #0
	b	.L19
.L18:
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	strspn
	mov	r2, r0
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r4, r2, r3
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-16]
	bl	strtok
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L20
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L21
.L23:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L22
	mvn	r3, #0
	b	.L19
.L22:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L21:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r4, r2, r3
	ldr	r1, [fp, #-36]
	mov	r0, #0
	bl	strtok
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L23
.L20:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	ble	.L24
	mvn	r3, #0
	b	.L19
.L24:
	ldr	r3, [fp, #-24]
.L19:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	M_argv, .-M_argv
	.section	.rodata
	.align	2
.LC10:
	.ascii	" \011\000"
	.align	2
.LC11:
	.ascii	"file error\000"
	.text
	.align	2
	.global	redirect
	.syntax unified
	.arm
	.fpu softvfp
	.type	redirect, %function
redirect:
	@ 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]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L26
.L33:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #60
	beq	.L27
	cmp	r3, #62
	beq	.L28
	b	.L31
.L27:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r1, .L34
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-12]
	mov	r2, #420
	mov	r1, #64
	ldr	r0, [fp, #-12]
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L30
	ldr	r0, .L34+4
	bl	fatal_err
.L30:
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	dup2
	ldr	r0, [fp, #-8]
	bl	close
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L31
.L28:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r1, .L34
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-12]
	mov	r2, #420
	ldr	r1, .L34+8
	ldr	r0, [fp, #-12]
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L32
	ldr	r0, .L34+4
	bl	fatal_err
.L32:
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	dup2
	ldr	r0, [fp, #-8]
	bl	close
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	nop
.L31:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L26:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L33
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC10
	.word	.LC11
	.word	577
	.size	redirect, .-redirect
	.align	2
	.global	background
	.syntax unified
	.arm
	.fpu softvfp
	.type	background, %function
background:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L37
.L40:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #38
	bne	.L38
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	mov	r3, #1
	b	.L39
.L38:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L37:
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L40
	mov	r3, #0
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	background, .-background
	.section	.rodata
	.align	2
.LC12:
	.ascii	"argv error\000"
	.align	2
.LC13:
	.ascii	"exe error\000"
	.text
	.align	2
	.global	act_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	act_cmd, %function
act_cmd:
	@ 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	r0, [fp, #-8]
	bl	redirect
	mov	r3, #10
	ldr	r2, .L43
	ldr	r1, .L43+4
	ldr	r0, [fp, #-8]
	bl	M_argv
	mov	r3, r0
	cmp	r3, #0
	bgt	.L42
	ldr	r0, .L43+8
	bl	fatal_err
.L42:
	ldr	r3, .L43
	ldr	r3, [r3]
	ldr	r1, .L43
	mov	r0, r3
	bl	execvp
	ldr	r0, .L43+12
	bl	fatal_err
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	c_args
	.word	.LC10
	.word	.LC12
	.word	.LC13
	.size	act_cmd, .-act_cmd
	.section	.rodata
	.align	2
.LC14:
	.ascii	"|\000"
	.align	2
.LC15:
	.ascii	"GRP error\000"
	.align	2
.LC16:
	.ascii	"fork error\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	act_c_grp
	.syntax unified
	.arm
	.fpu softvfp
	.type	act_c_grp, %function
act_c_grp:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	str	r0, [fp, #-160]
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-148]
	mov	r1, #0
	mov	r0, #0
	bl	setpgid
	ldr	r3, .L54+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L46
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	mov	r0, #0
	bl	tcsetpgrp
.L46:
	sub	r3, fp, #136
	mov	r0, r3
	bl	sigfillset
	sub	r3, fp, #136
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	sigprocmask
	mov	r3, #10
	ldr	r2, .L54+8
	ldr	r1, .L54+12
	ldr	r0, [fp, #-160]
	bl	M_argv
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	bgt	.L47
	ldr	r0, .L54+16
	bl	fatal_err
.L47:
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L48
.L52:
	sub	r3, fp, #144
	mov	r0, r3
	bl	pipe
	bl	fork
	mov	r3, r0
	cmn	r3, #1
	beq	.L49
	cmp	r3, #0
	beq	.L50
	b	.L51
.L49:
	ldr	r0, .L54+20
	bl	fatal_err
.L50:
	ldr	r3, [fp, #-144]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-140]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r2, .L54+8
	ldr	r3, [fp, #-152]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	act_cmd
.L51:
	ldr	r3, [fp, #-140]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-144]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L48:
	ldr	r3, [fp, #-148]
	sub	r3, r3, #1
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	blt	.L52
	ldr	r2, .L54+8
	ldr	r3, [fp, #-152]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	act_cmd
	nop
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC17
	.word	CMD_BACKGROUND
	.word	c_list
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	act_c_grp, .-act_c_grp
	.section	.rodata
	.align	2
.LC18:
	.ascii	";\000"
	.align	2
.LC19:
	.ascii	"err\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	act_c_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	act_c_line, %function
act_c_line:
	@ args = 0, pretend = 0, frame = 8264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8256
	sub	sp, sp, #12
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-68]
	ldr	r3, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-56]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-64]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-60]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-52]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #10
	ldr	r2, .L70+4
	ldr	r1, .L70+8
	ldr	r0, [r0, #-68]
	bl	M_argv
	str	r0, [r4, #-56]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-64]
	b	.L57
.L67:
	ldr	r2, .L70+4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	ldr	r4, [r2, r3, lsl #2]
	ldr	r2, .L70+4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r4
	mov	r0, r3
	bl	memcpy
	ldr	r2, .L70+4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	ldr	r0, [r2, r3, lsl #2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r2, r2, #44
	mov	r3, #10
	ldr	r1, .L70+12
	bl	M_argv
	str	r0, [r4, #-52]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-60]
	b	.L58
.L61:
	ldr	r1, .L70+16
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-44]
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	ldr	r1, .L70+16
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #44
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-52]
	blx	r2
	b	.L56
.L59:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	add	r3, r3, #1
	str	r3, [r2, #-60]
.L58:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	cmp	r3, #1
	bls	.L61
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	background
	mov	r3, r0
	ldr	r2, .L70+20
	str	r3, [r2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	bl	fork
	mov	r3, r0
	str	r3, [r4, #-48]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	cmn	r3, #1
	beq	.L62
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	cmp	r3, #0
	beq	.L63
	b	.L64
.L62:
	ldr	r0, .L70+24
	bl	fatal_err
.L63:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	act_c_grp
.L64:
	ldr	r3, .L70+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L69
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-48]
	bl	waitpid
	mov	r0, #0
	bl	getpgid
	mov	r3, r0
	mov	r1, r3
	mov	r0, #0
	bl	tcsetpgrp
	ldr	r3, .L70+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L66
.L69:
	nop
.L66:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	add	r3, r3, #1
	str	r3, [r2, #-64]
.L57:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-64]
	ldr	r3, [r3, #-56]
	cmp	r2, r3
	blt	.L67
.L56:
	ldr	r3, .L70
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC20
	.word	c_grp
	.word	.LC18
	.word	.LC10
	.word	builtin_cmds
	.word	CMD_BACKGROUND
	.word	.LC19
	.word	stdout
	.size	act_c_line, .-act_c_line
	.section	.rodata
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	str	r1, [fp, #-148]
	ldr	r3, .L75
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #136
	mov	r0, r3
	bl	sigfillset
	sub	r3, fp, #136
	mov	r1, #17
	mov	r0, r3
	bl	sigdelset
	sub	r3, fp, #136
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
	ldr	r3, .L75+4
	mov	r2, #268435456
	str	r2, [r3, #132]
	ldr	r0, .L75+8
	bl	sigemptyset
	ldr	r3, .L75+4
	ldr	r2, .L75+12
	str	r2, [r3]
	mov	r2, #0
	ldr	r1, .L75+4
	mov	r0, #17
	bl	sigaction
.L73:
	ldr	r3, .L75+16
	ldr	r3, [r3]
	ldr	r2, .L75+20
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	ldr	r3, .L75+24
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #8192
	ldr	r0, .L75+28
	bl	fgets
	ldr	r0, .L75+28
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, .L75+28
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r0, .L75+28
	bl	act_c_line
	b	.L73
.L76:
	.align	2
.L75:
	.word	.LC21
	.word	act
	.word	act+4
	.word	zombie
	.word	title
	.word	stdout
	.word	stdin
	.word	c_line
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
