	.file	"587763.c"
	.intel_syntax noprefix
	.text
	.globl	loop
	.bss
	.align 32
	.type	loop, @object
	.size	loop, 200
loop:
	.zero	200
	.text
	.globl	get_cwd
	.type	get_cwd, @function
get_cwd:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 0
	mov	edi, 0
	call	getcwd@PLT
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_cwd, .-get_cwd
	.globl	last_wd
	.bss
	.align 8
	.type	last_wd, @object
	.size	last_wd, 8
last_wd:
	.zero	8
	.section	.rodata
.LC0:
	.string	"$$"
.LC1:
	.string	"%d"
.LC2:
	.string	""
.LC3:
	.string	"HOME"
.LC4:
	.string	"eshell: HOME not set\n"
.LC5:
	.string	"~"
	.text
	.globl	replace_variables
	.type	replace_variables, @function
replace_variables:
.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, 368
	mov	QWORD PTR -360[rbp], rdi
	mov	DWORD PTR -364[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -360[rbp]
	mov	QWORD PTR -336[rbp], rax
	jmp	.L4
.L17:
	mov	rax, QWORD PTR -336[rbp]
	cmp	rax, QWORD PTR -360[rbp]
	jbe	.L5
	mov	rax, QWORD PTR -336[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 92
	jne	.L5
	mov	eax, DWORD PTR -364[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -360[rbp]
	add	rax, rdx
	sub	rax, QWORD PTR -336[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -336[rbp]
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR -336[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	jmp	.L6
.L8:
	add	QWORD PTR -336[rbp], 1
.L6:
	mov	rax, QWORD PTR -336[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L31
	mov	rax, QWORD PTR -336[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L8
	jmp	.L31
.L5:
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -344[rbp], 0
	mov	rax, QWORD PTR -336[rbp]
	mov	QWORD PTR -328[rbp], rax
	jmp	.L10
.L12:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -328[rbp], rdx
	mov	edx, DWORD PTR -344[rbp]
	lea	ecx, 1[rdx]
	mov	DWORD PTR -344[rbp], ecx
	movzx	ecx, BYTE PTR [rax]
	movsx	rax, edx
	mov	BYTE PTR -272[rbp+rax], cl
.L10:
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 254
	cmp	QWORD PTR -328[rbp], rax
	jnb	.L11
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -328[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8
	test	eax, eax
	jne	.L12
	mov	rax, QWORD PTR -328[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 95
	je	.L12
	mov	rax, QWORD PTR -328[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 36
	jne	.L11
	mov	rax, QWORD PTR -328[rbp]
	cmp	rax, QWORD PTR -336[rbp]
	je	.L12
	mov	rax, QWORD PTR -328[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 36
	je	.L12
.L11:
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 0
	movzx	eax, BYTE PTR -271[rbp]
	test	al, al
	jne	.L13
	add	QWORD PTR -336[rbp], 1
	jmp	.L4
.L13:
	lea	rax, -272[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L14
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	call	getpid@PLT
	mov	edx, eax
	lea	rax, -288[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	edx, DWORD PTR -364[rbp]
	mov	rax, QWORD PTR -336[rbp]
	sub	rax, QWORD PTR -360[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	ecx, eax
	lea	rdx, -288[rbp]
	mov	rax, QWORD PTR -336[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	str_replace@PLT
	jmp	.L15
.L14:
	lea	rax, -272[rbp]
	add	rax, 1
	mov	rdi, rax
	call	getenv@PLT
	mov	QWORD PTR -320[rbp], rax
	cmp	QWORD PTR -320[rbp], 0
	jne	.L16
	lea	rax, .LC2[rip]
	mov	QWORD PTR -320[rbp], rax
.L16:
	mov	edx, DWORD PTR -364[rbp]
	mov	rax, QWORD PTR -336[rbp]
	sub	rax, QWORD PTR -360[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	ecx, eax
	mov	rdx, QWORD PTR -320[rbp]
	lea	rsi, -272[rbp]
	mov	rax, QWORD PTR -336[rbp]
	mov	rdi, rax
	call	str_replace@PLT
.L15:
	add	QWORD PTR -336[rbp], 1
	jmp	.L4
.L31:
	nop
.L4:
	mov	rax, QWORD PTR -336[rbp]
	mov	esi, 36
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -336[rbp], rax
	cmp	QWORD PTR -336[rbp], 0
	jne	.L17
	mov	rax, QWORD PTR -360[rbp]
	mov	QWORD PTR -336[rbp], rax
	jmp	.L18
.L29:
	mov	rax, QWORD PTR -336[rbp]
	cmp	rax, QWORD PTR -360[rbp]
	jbe	.L19
	mov	rax, QWORD PTR -336[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 92
	jne	.L19
	mov	eax, DWORD PTR -364[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -360[rbp]
	add	rax, rdx
	sub	rax, QWORD PTR -336[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -336[rbp]
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR -336[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	add	QWORD PTR -336[rbp], 1
	jmp	.L18
.L19:
	mov	rax, QWORD PTR -336[rbp]
	cmp	rax, QWORD PTR -360[rbp]
	jbe	.L20
	mov	rax, QWORD PTR -336[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L20
	jmp	.L18
.L20:
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L21
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L21
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	je	.L21
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L21
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L22
.L21:
	lea	rdi, .LC3[rip]
	call	getenv@PLT
	mov	QWORD PTR -296[rbp], rax
	cmp	QWORD PTR -296[rbp], 0
	jne	.L23
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	jmp	.L18
.L23:
	mov	edx, DWORD PTR -364[rbp]
	mov	rax, QWORD PTR -336[rbp]
	sub	rax, QWORD PTR -360[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	ecx, eax
	mov	rdx, QWORD PTR -296[rbp]
	mov	rax, QWORD PTR -336[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	str_replace@PLT
	add	QWORD PTR -336[rbp], 1
	jmp	.L18
.L22:
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jle	.L18
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 127
	je	.L18
	mov	rax, QWORD PTR -336[rbp]
	mov	QWORD PTR -312[rbp], rax
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	DWORD PTR -340[rbp], 0
	jmp	.L24
.L26:
	mov	rax, QWORD PTR -312[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -312[rbp], rdx
	mov	edx, DWORD PTR -340[rbp]
	lea	ecx, 1[rdx]
	mov	DWORD PTR -340[rbp], ecx
	movzx	ecx, BYTE PTR [rax]
	movsx	rax, edx
	mov	BYTE PTR -272[rbp+rax], cl
.L24:
	mov	rax, QWORD PTR -312[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jle	.L25
	mov	rax, QWORD PTR -312[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 127
	je	.L25
	mov	rax, QWORD PTR -312[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L26
.L25:
	mov	eax, DWORD PTR -340[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 0
	lea	rax, -272[rbp]
	add	rax, 1
	mov	rdi, rax
	call	getpwnam@PLT
	mov	QWORD PTR -304[rbp], rax
	cmp	QWORD PTR -304[rbp], 0
	je	.L18
	mov	rax, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	jne	.L28
	jmp	.L18
.L28:
	mov	edx, DWORD PTR -364[rbp]
	mov	rax, QWORD PTR -336[rbp]
	sub	rax, QWORD PTR -360[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	ecx, eax
	mov	rax, QWORD PTR -304[rbp]
	mov	rdx, QWORD PTR 32[rax]
	lea	rsi, -272[rbp]
	mov	rax, QWORD PTR -336[rbp]
	mov	rdi, rax
	call	str_replace@PLT
	add	QWORD PTR -336[rbp], 1
.L18:
	mov	rax, QWORD PTR -336[rbp]
	mov	esi, 126
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -336[rbp], rax
	cmp	QWORD PTR -336[rbp], 0
	jne	.L29
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	replace_variables, .-replace_variables
	.section	.rodata
.LC6:
	.string	"the_stack_data/587763.c"
.LC7:
	.string	"env_i < max_env"
.LC8:
	.string	"max_args > *argc"
	.text
	.globl	parse_command_line
	.type	parse_command_line, @function
parse_command_line:
.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, 2184
	.cfi_offset 3, -24
	mov	QWORD PTR -2168[rbp], rdi
	mov	QWORD PTR -2176[rbp], rsi
	mov	QWORD PTR -2184[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2148[rbp], 1
	mov	DWORD PTR -2144[rbp], 0
	mov	rax, QWORD PTR -2168[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -2096[rbp], rax
	mov	QWORD PTR -2136[rbp], 0
	jmp	.L33
.L38:
	mov	rdx, QWORD PTR -2168[rbp]
	mov	rax, QWORD PTR -2136[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L34
	add	DWORD PTR -2148[rbp], 1
	jmp	.L35
.L37:
	add	QWORD PTR -2136[rbp], 1
.L35:
	mov	rdx, QWORD PTR -2168[rbp]
	mov	rax, QWORD PTR -2136[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L36
	mov	rax, QWORD PTR -2136[rbp]
	cmp	rax, QWORD PTR -2096[rbp]
	jb	.L37
	jmp	.L36
.L34:
	mov	rdx, QWORD PTR -2168[rbp]
	mov	rax, QWORD PTR -2136[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 61
	jne	.L36
	add	DWORD PTR -2144[rbp], 1
.L36:
	add	QWORD PTR -2136[rbp], 1
.L33:
	mov	rax, QWORD PTR -2136[rbp]
	cmp	rax, QWORD PTR -2096[rbp]
	jb	.L38
	mov	eax, DWORD PTR -2148[rbp]
	add	eax, 1
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -2088[rbp], rax
	mov	eax, DWORD PTR -2148[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2088[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	QWORD PTR -2128[rbp], 0
	mov	DWORD PTR -2140[rbp], 0
	cmp	DWORD PTR -2144[rbp], 0
	jle	.L39
	mov	eax, DWORD PTR -2144[rbp]
	add	eax, 1
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -2128[rbp], rax
	mov	eax, DWORD PTR -2144[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2128[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L39:
	mov	rax, QWORD PTR -2168[rbp]
	mov	QWORD PTR -2120[rbp], rax
	mov	rax, QWORD PTR -2168[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -2168[rbp]
	add	rax, rdx
	mov	QWORD PTR -2112[rbp], rax
	jmp	.L40
.L41:
	mov	rax, QWORD PTR -2112[rbp]
	lea	rdx, -1[rax]
	mov	QWORD PTR -2112[rbp], rdx
	mov	BYTE PTR [rax], 0
.L40:
	mov	rax, QWORD PTR -2112[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L41
	mov	rax, QWORD PTR -2112[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L41
	mov	QWORD PTR -2080[rbp], 0
	mov	QWORD PTR -2072[rbp], 0
	lea	rdx, -2064[rbp]
	mov	eax, 0
	mov	ecx, 254
	mov	rdi, rdx
	rep stosq
	mov	QWORD PTR -2104[rbp], 0
	mov	rax, QWORD PTR -2120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -2096[rbp], rax
	mov	BYTE PTR -2151[rbp], 0
	jmp	.L42
.L43:
	add	QWORD PTR -2120[rbp], 1
.L42:
	mov	rax, QWORD PTR -2120[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L43
	mov	rax, QWORD PTR -2120[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	je	.L43
	mov	rax, QWORD PTR -2120[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L44
	mov	rax, QWORD PTR -2088[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L68
.L44:
	mov	BYTE PTR -2150[rbp], 0
	mov	BYTE PTR -2149[rbp], 0
	jmp	.L46
.L66:
	mov	BYTE PTR -2150[rbp], 0
	mov	rax, QWORD PTR -2120[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	jne	.L49
	movzx	eax, BYTE PTR -2151[rbp]
	xor	eax, 1
	test	al, al
	jne	.L70
	jmp	.L49
.L51:
	mov	rdx, QWORD PTR -2120[rbp]
	lea	rax, 1[rdx]
	mov	QWORD PTR -2120[rbp], rax
	mov	rax, QWORD PTR -2104[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -2104[rbp], rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR -2080[rbp+rax], dl
	mov	BYTE PTR -2150[rbp], 1
.L49:
	mov	rax, QWORD PTR -2120[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jle	.L50
	mov	rax, QWORD PTR -2120[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 34
	je	.L50
	mov	rax, QWORD PTR -2120[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L51
.L50:
	mov	rax, QWORD PTR -2120[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L52
	cmp	BYTE PTR -2151[rbp], 0
	jne	.L51
.L52:
	mov	rax, QWORD PTR -2120[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 34
	jne	.L53
	movzx	eax, BYTE PTR -2151[rbp]
	test	eax, eax
	setne	al
	xor	eax, 1
	movzx	eax, al
	mov	BYTE PTR -2151[rbp], al
	and	BYTE PTR -2151[rbp], 1
	mov	BYTE PTR -2150[rbp], 1
	add	QWORD PTR -2120[rbp], 1
	mov	rax, QWORD PTR -2120[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L53
	jmp	.L46
.L53:
	mov	rax, QWORD PTR -2120[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L54
	movzx	eax, BYTE PTR -2151[rbp]
	xor	eax, 1
	test	al, al
	jne	.L55
.L54:
	mov	rax, QWORD PTR -2120[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L56
.L55:
	mov	BYTE PTR -2150[rbp], 1
	mov	rax, QWORD PTR -2104[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -2104[rbp], rdx
	mov	BYTE PTR -2080[rbp+rax], 0
	movzx	eax, BYTE PTR -2149[rbp]
	xor	eax, 1
	test	al, al
	je	.L57
	lea	rax, -2080[rbp]
	mov	esi, 61
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -2112[rbp], rax
	cmp	QWORD PTR -2112[rbp], 0
	je	.L58
	mov	eax, DWORD PTR -2140[rbp]
	cmp	eax, DWORD PTR -2144[rbp]
	jl	.L59
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 215
	lea	rsi, .LC6[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L59:
	lea	rax, -2080[rbp]
	add	rax, 1
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR -2140[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -2128[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -2140[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -2080[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -2140[rbp], 1
	mov	QWORD PTR -2104[rbp], 0
	jmp	.L60
.L61:
	add	QWORD PTR -2120[rbp], 1
.L60:
	mov	rax, QWORD PTR -2120[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L61
	mov	rax, QWORD PTR -2120[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	je	.L61
	jmp	.L46
.L58:
	mov	BYTE PTR -2149[rbp], 1
.L57:
	mov	rax, QWORD PTR -2176[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2088[rbp]
	lea	rbx, [rdx+rax]
	mov	rax, QWORD PTR -2104[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR -2176[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -2148[rbp], eax
	jg	.L62
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 228
	lea	rsi, .LC6[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L62:
	mov	rax, QWORD PTR -2176[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -2104[rbp]
	lea	rcx, -2080[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	strlcpy@PLT
	mov	rax, QWORD PTR -2176[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -2176[rbp]
	mov	DWORD PTR [rax], edx
	mov	QWORD PTR -2104[rbp], 0
	jmp	.L63
.L56:
	movzx	eax, BYTE PTR -2150[rbp]
	xor	eax, 1
	test	al, al
	je	.L64
	add	QWORD PTR -2120[rbp], 1
.L63:
	jmp	.L64
.L65:
	add	QWORD PTR -2120[rbp], 1
.L64:
	mov	rax, QWORD PTR -2120[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L65
	mov	rax, QWORD PTR -2120[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	je	.L65
.L46:
	mov	rdx, QWORD PTR -2168[rbp]
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, rdx
	cmp	QWORD PTR -2120[rbp], rax
	jb	.L66
	jmp	.L48
.L70:
	nop
.L48:
	cmp	QWORD PTR -2128[rbp], 0
	je	.L67
	mov	eax, DWORD PTR -2140[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2128[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
.L67:
	mov	rax, QWORD PTR -2184[rbp]
	mov	rdx, QWORD PTR -2128[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -2088[rbp]
.L68:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L69
	call	__stack_chk_fail@PLT
.L69:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	parse_command_line, .-parse_command_line
	.section	.rodata
.LC9:
	.string	"sig == SIGINT"
	.text
	.globl	sigint_handler
	.type	sigint_handler, @function
sigint_handler:
.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	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 2
	je	.L72
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 253
	lea	rsi, .LC6[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L72:
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	putc@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	esi, 1
	lea	rdi, loop[rip]
	call	longjmp@PLT
	.cfi_endproc
.LFE9:
	.size	sigint_handler, .-sigint_handler
	.section	.rodata
.LC10:
	.string	"exit"
.LC11:
	.string	"argv[i] != NULL"
.LC12:
	.string	">"
.LC13:
	.string	">>"
.LC14:
	.string	"<"
.LC15:
	.string	"2>"
.LC16:
	.string	"2>>"
	.align 8
.LC17:
	.string	"Error: redirection only supported with commands, e.g. echo a > b\n"
	.align 8
.LC18:
	.string	"Error: unexpected end of argument list\n"
.LC19:
	.string	"&1"
.LC20:
	.string	"cd"
.LC21:
	.string	"eshell: cd: HOME not set\n"
.LC22:
	.string	"-"
.LC23:
	.string	"eshell: cd: "
.LC24:
	.string	"pwd"
.LC25:
	.string	"eshell: "
.LC26:
	.string	"get_cwd"
.LC27:
	.string	"export"
.LC28:
	.string	"export %s\n"
.LC29:
	.string	"unset"
	.align 8
.LC30:
	.string	"eshell: unset: %s is not a valid identifier\n"
.LC31:
	.string	"eshell: unsetenv"
.LC32:
	.string	"r"
.LC33:
	.string	"a"
.LC34:
	.string	"w"
.LC35:
	.string	"dup2"
.LC36:
	.string	"fork"
	.text
	.globl	process_input
	.type	process_input, @function
process_input:
.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, 1048
	.cfi_offset 3, -24
	mov	QWORD PTR -1048[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	cmp	rax, 2048
	jbe	.L74
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	jmp	.L75
.L74:
	mov	eax, 2048
.L75:
	mov	DWORD PTR -1020[rbp], eax
	mov	eax, DWORD PTR -1020[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -960[rbp], rax
	mov	edx, DWORD PTR -1020[rbp]
	mov	rcx, QWORD PTR -1048[rbp]
	mov	rax, QWORD PTR -960[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	strlcpy@PLT
	mov	edx, DWORD PTR -1020[rbp]
	mov	rax, QWORD PTR -960[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	replace_variables
	mov	QWORD PTR -1000[rbp], 0
	mov	DWORD PTR -1036[rbp], 0
	mov	QWORD PTR -1008[rbp], 0
	lea	rdx, -1008[rbp]
	lea	rcx, -1036[rbp]
	mov	rax, QWORD PTR -960[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	parse_command_line
	mov	QWORD PTR -1000[rbp], rax
	cmp	QWORD PTR -1000[rbp], 0
	je	.L76
	mov	rax, QWORD PTR -1000[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L77
.L76:
	mov	rax, QWORD PTR -960[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L154
.L77:
	mov	rax, QWORD PTR -1000[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L79
	mov	edi, 0
	call	exit@PLT
.L79:
	mov	QWORD PTR -992[rbp], 0
	mov	QWORD PTR -984[rbp], 0
	mov	QWORD PTR -976[rbp], 0
	mov	BYTE PTR -1038[rbp], 0
	mov	BYTE PTR -1037[rbp], 0
	mov	DWORD PTR -1032[rbp], 0
	jmp	.L80
.L93:
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L81
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 298
	lea	rsi, .LC6[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L81:
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L82
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L82
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L82
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L82
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L83
.L82:
	cmp	DWORD PTR -1032[rbp], 0
	jne	.L84
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 65
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L154
.L84:
	mov	eax, DWORD PTR -1032[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -1036[rbp]
	cmp	edx, eax
	jl	.L85
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L154
.L85:
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 62
	jne	.L86
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -984[rbp], rax
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 62
	sete	al
	mov	BYTE PTR -1038[rbp], al
	jmp	.L91
.L86:
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 60
	jne	.L88
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -992[rbp], rax
	jmp	.L91
.L88:
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 50
	jne	.L91
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L89
	mov	QWORD PTR -976[rbp], 1
	jmp	.L90
.L89:
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -976[rbp], rax
.L90:
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	cmp	al, 62
	sete	al
	mov	BYTE PTR -1037[rbp], al
	jmp	.L91
.L92:
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	add	rax, 2
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -1032[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -1000[rbp]
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -1032[rbp], 1
.L91:
	mov	eax, DWORD PTR -1036[rbp]
	sub	eax, 1
	cmp	DWORD PTR -1032[rbp], eax
	jl	.L92
	mov	eax, DWORD PTR -1036[rbp]
	sub	eax, 2
	mov	DWORD PTR -1036[rbp], eax
	mov	DWORD PTR -1032[rbp], -1
.L83:
	add	DWORD PTR -1032[rbp], 1
.L80:
	mov	eax, DWORD PTR -1036[rbp]
	cmp	DWORD PTR -1032[rbp], eax
	jl	.L93
	mov	rax, QWORD PTR -1000[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L94
	mov	eax, DWORD PTR -1036[rbp]
	cmp	eax, 1
	jne	.L95
	lea	rdi, .LC3[rip]
	call	getenv@PLT
	mov	QWORD PTR -968[rbp], rax
	cmp	QWORD PTR -968[rbp], 0
	jne	.L96
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	jmp	.L96
.L95:
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L97
	mov	rax, QWORD PTR last_wd[rip]
	mov	QWORD PTR -968[rbp], rax
	mov	rax, QWORD PTR -968[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L96
.L97:
	mov	rax, QWORD PTR -1000[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -968[rbp], rax
.L96:
	mov	rax, QWORD PTR last_wd[rip]
	mov	QWORD PTR -888[rbp], rax
	call	get_cwd
	mov	QWORD PTR last_wd[rip], rax
	cmp	QWORD PTR -968[rbp], 0
	je	.L98
	mov	rax, QWORD PTR -968[rbp]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	je	.L98
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR last_wd[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -888[rbp]
	mov	QWORD PTR last_wd[rip], rax
	mov	rax, QWORD PTR -968[rbp]
	mov	rdi, rax
	call	perror@PLT
	jmp	.L99
.L98:
	cmp	QWORD PTR -968[rbp], 0
	je	.L99
	mov	rax, QWORD PTR -888[rbp]
	mov	rdi, rax
	call	free@PLT
.L99:
	mov	eax, 0
	jmp	.L154
.L94:
	mov	rax, QWORD PTR -1000[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L100
	call	get_cwd
	mov	QWORD PTR -896[rbp], rax
	cmp	QWORD PTR -896[rbp], 0
	jne	.L101
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	lea	rdi, .LC26[rip]
	call	perror@PLT
	jmp	.L102
.L101:
	mov	rax, QWORD PTR -896[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -896[rbp]
	mov	rdi, rax
	call	free@PLT
.L102:
	mov	eax, 0
	jmp	.L154
.L100:
	mov	rax, QWORD PTR -1000[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L103
	mov	eax, DWORD PTR -1036[rbp]
	cmp	eax, 1
	jne	.L104
	mov	DWORD PTR -1032[rbp], 0
	jmp	.L105
.L106:
	mov	rdx, QWORD PTR environ[rip]
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -1032[rbp], 1
.L105:
	mov	rdx, QWORD PTR environ[rip]
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L106
	jmp	.L107
.L104:
	mov	DWORD PTR -1032[rbp], 1
	jmp	.L108
.L111:
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 61
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -904[rbp], rax
	cmp	QWORD PTR -904[rbp], 0
	je	.L157
	mov	rax, QWORD PTR -904[rbp]
	mov	BYTE PTR [rax], 0
	mov	QWORD PTR -800[rbp], 0
	mov	QWORD PTR -792[rbp], 0
	mov	QWORD PTR -784[rbp], 0
	mov	QWORD PTR -776[rbp], 0
	mov	QWORD PTR -768[rbp], 0
	mov	QWORD PTR -760[rbp], 0
	mov	QWORD PTR -752[rbp], 0
	mov	QWORD PTR -744[rbp], 0
	mov	QWORD PTR -736[rbp], 0
	mov	QWORD PTR -728[rbp], 0
	mov	QWORD PTR -720[rbp], 0
	mov	QWORD PTR -712[rbp], 0
	mov	QWORD PTR -704[rbp], 0
	mov	QWORD PTR -696[rbp], 0
	mov	QWORD PTR -688[rbp], 0
	mov	QWORD PTR -680[rbp], 0
	mov	QWORD PTR -672[rbp], 0
	mov	QWORD PTR -664[rbp], 0
	mov	QWORD PTR -656[rbp], 0
	mov	QWORD PTR -648[rbp], 0
	mov	QWORD PTR -640[rbp], 0
	mov	QWORD PTR -632[rbp], 0
	mov	QWORD PTR -624[rbp], 0
	mov	QWORD PTR -616[rbp], 0
	mov	QWORD PTR -608[rbp], 0
	mov	QWORD PTR -600[rbp], 0
	mov	QWORD PTR -592[rbp], 0
	mov	QWORD PTR -584[rbp], 0
	mov	QWORD PTR -576[rbp], 0
	mov	QWORD PTR -568[rbp], 0
	mov	QWORD PTR -560[rbp], 0
	mov	QWORD PTR -552[rbp], 0
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -800[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	strlcpy@PLT
	mov	QWORD PTR -544[rbp], 0
	mov	QWORD PTR -536[rbp], 0
	lea	rdx, -528[rbp]
	mov	eax, 0
	mov	ecx, 62
	mov	rdi, rdx
	rep stosq
	mov	rax, QWORD PTR -904[rbp]
	lea	rcx, 1[rax]
	lea	rax, -544[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	strlcpy@PLT
	lea	rcx, -544[rbp]
	lea	rax, -800[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	setenv@PLT
	mov	rax, QWORD PTR -904[rbp]
	mov	BYTE PTR [rax], 61
	jmp	.L110
.L157:
	nop
.L110:
	add	DWORD PTR -1032[rbp], 1
.L108:
	mov	eax, DWORD PTR -1036[rbp]
	cmp	DWORD PTR -1032[rbp], eax
	jl	.L111
.L107:
	mov	eax, 0
	jmp	.L154
.L103:
	mov	rax, QWORD PTR -1000[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L112
	mov	eax, DWORD PTR -1036[rbp]
	cmp	eax, 1
	jle	.L113
	mov	DWORD PTR -1032[rbp], 1
	jmp	.L114
.L117:
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 61
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -912[rbp], rax
	cmp	QWORD PTR -912[rbp], 0
	je	.L115
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L116
.L115:
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	unsetenv@PLT
	test	eax, eax
	je	.L116
	lea	rdi, .LC31[rip]
	call	perror@PLT
.L116:
	add	DWORD PTR -1032[rbp], 1
.L114:
	mov	eax, DWORD PTR -1036[rbp]
	cmp	DWORD PTR -1032[rbp], eax
	jl	.L117
.L113:
	mov	eax, 0
	jmp	.L154
.L112:
	call	fork@PLT
	mov	DWORD PTR -1016[rbp], eax
	cmp	DWORD PTR -1016[rbp], 0
	jle	.L118
	mov	DWORD PTR -1032[rbp], 0
	jmp	.L119
.L121:
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L120
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 468
	lea	rsi, .LC6[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L120:
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	add	DWORD PTR -1032[rbp], 1
.L119:
	mov	eax, DWORD PTR -1036[rbp]
	cmp	DWORD PTR -1032[rbp], eax
	jl	.L121
	mov	rax, QWORD PTR -1000[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -1000[rbp], 0
	mov	rax, QWORD PTR -1008[rbp]
	test	rax, rax
	je	.L122
	mov	DWORD PTR -1032[rbp], 0
	jmp	.L123
.L124:
	mov	rdx, QWORD PTR -1008[rbp]
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rdx, QWORD PTR -1008[rbp]
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	add	DWORD PTR -1032[rbp], 1
.L123:
	mov	rdx, QWORD PTR -1008[rbp]
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L124
	mov	rax, QWORD PTR -1008[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -1008[rbp], 0
.L122:
	mov	DWORD PTR -880[rbp], 0
	nop
.L125:
	lea	rax, -880[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, -1
	call	waitpid@PLT
	cmp	eax, -1
	jne	.L125
	jmp	.L156
.L118:
	cmp	DWORD PTR -1016[rbp], 0
	jne	.L127
	mov	esi, 0
	mov	edi, 2
	call	signal@PLT
	mov	DWORD PTR -1032[rbp], 0
	jmp	.L128
.L139:
	mov	QWORD PTR -944[rbp], 0
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L129
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 42
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -944[rbp], rax
	cmp	QWORD PTR -944[rbp], 0
	je	.L129
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -944[rbp], rax
	jbe	.L130
	mov	rax, QWORD PTR -944[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 92
	jne	.L130
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rbx, QWORD PTR [rax]
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	sub	rax, QWORD PTR -944[rbp]
	add	rax, 1
	mov	rdx, rax
	mov	rax, QWORD PTR -944[rbp]
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR -944[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	jmp	.L129
.L130:
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -880[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	esi, 2
	mov	rdi, rax
	call	glob@PLT
	test	eax, eax
	jne	.L158
	mov	rax, QWORD PTR -880[rbp]
	test	rax, rax
	je	.L159
	mov	rax, QWORD PTR -880[rbp]
	cmp	rax, 1
	jne	.L134
	mov	rax, QWORD PTR -872[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -1032[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -1000[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR [rbx], rax
	lea	rax, -880[rbp]
	mov	rdi, rax
	call	globfree@PLT
	jmp	.L129
.L134:
	mov	rax, QWORD PTR -880[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -1036[rbp]
	add	eax, edx
	mov	DWORD PTR -1012[rbp], eax
	mov	eax, DWORD PTR -1012[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -1000[rbp], rax
	mov	eax, DWORD PTR -1036[rbp]
	mov	DWORD PTR -1028[rbp], eax
	jmp	.L135
.L136:
	mov	eax, DWORD PTR -1028[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	add	DWORD PTR -1028[rbp], 1
.L135:
	mov	eax, DWORD PTR -1012[rbp]
	cmp	eax, DWORD PTR -1028[rbp]
	jge	.L136
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	QWORD PTR -936[rbp], rax
	mov	eax, DWORD PTR -1036[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rax, rdx
	mov	QWORD PTR -928[rbp], rax
	mov	rax, QWORD PTR -928[rbp]
	sub	rax, QWORD PTR -936[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -920[rbp], rax
	mov	rax, QWORD PTR -928[rbp]
	sub	rax, QWORD PTR -936[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -936[rbp]
	mov	rax, QWORD PTR -920[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	DWORD PTR -1024[rbp], 0
	jmp	.L137
.L138:
	mov	rdx, QWORD PTR -872[rbp]
	mov	eax, DWORD PTR -1024[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR -1032[rbp]
	mov	edx, DWORD PTR -1024[rbp]
	add	edx, ecx
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -1000[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -1024[rbp], 1
.L137:
	mov	eax, DWORD PTR -1024[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -880[rbp]
	cmp	rdx, rax
	jb	.L138
	mov	rax, QWORD PTR -928[rbp]
	sub	rax, QWORD PTR -936[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -1032[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -880[rbp]
	add	rax, rcx
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -1000[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -920[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -920[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -880[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -1036[rbp]
	add	eax, edx
	sub	eax, 1
	mov	DWORD PTR -1036[rbp], eax
	mov	rax, QWORD PTR -880[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -1032[rbp]
	add	eax, edx
	sub	eax, 1
	mov	DWORD PTR -1032[rbp], eax
	jmp	.L129
.L158:
	nop
	jmp	.L129
.L159:
	nop
.L129:
	add	DWORD PTR -1032[rbp], 1
.L128:
	mov	eax, DWORD PTR -1036[rbp]
	cmp	DWORD PTR -1032[rbp], eax
	jl	.L139
	cmp	QWORD PTR -992[rbp], 0
	je	.L140
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -992[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	call	freopen@PLT
	test	rax, rax
	jne	.L140
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -992[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L140:
	cmp	QWORD PTR -984[rbp], 0
	je	.L141
	mov	rdx, QWORD PTR stdout[rip]
	cmp	BYTE PTR -1038[rbp], 0
	je	.L142
	lea	rax, .LC33[rip]
	jmp	.L143
.L142:
	lea	rax, .LC34[rip]
.L143:
	mov	rcx, QWORD PTR -984[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	freopen@PLT
	test	rax, rax
	jne	.L141
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -984[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L141:
	cmp	QWORD PTR -976[rbp], 0
	je	.L144
	cmp	QWORD PTR -976[rbp], 1
	jne	.L145
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fileno@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fileno@PLT
	mov	esi, ebx
	mov	edi, eax
	call	dup2@PLT
	test	eax, eax
	jns	.L144
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	lea	rdi, .LC35[rip]
	call	perror@PLT
	jmp	.L144
.L145:
	mov	rdx, QWORD PTR stderr[rip]
	cmp	BYTE PTR -1037[rbp], 0
	je	.L146
	lea	rax, .LC33[rip]
	jmp	.L147
.L146:
	lea	rax, .LC34[rip]
.L147:
	mov	rcx, QWORD PTR -976[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	freopen@PLT
	test	rax, rax
	jne	.L144
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -976[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L144:
	mov	rax, QWORD PTR -1008[rbp]
	test	rax, rax
	je	.L148
	mov	DWORD PTR -1032[rbp], 0
	jmp	.L149
.L151:
	mov	rdx, QWORD PTR -1008[rbp]
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 61
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -952[rbp], rax
	cmp	QWORD PTR -952[rbp], 0
	jne	.L150
	add	DWORD PTR -1032[rbp], 1
	jmp	.L149
.L150:
	mov	rax, QWORD PTR -952[rbp]
	mov	BYTE PTR [rax], 0
	mov	QWORD PTR -800[rbp], 0
	mov	QWORD PTR -792[rbp], 0
	mov	QWORD PTR -784[rbp], 0
	mov	QWORD PTR -776[rbp], 0
	mov	QWORD PTR -768[rbp], 0
	mov	QWORD PTR -760[rbp], 0
	mov	QWORD PTR -752[rbp], 0
	mov	QWORD PTR -744[rbp], 0
	mov	QWORD PTR -736[rbp], 0
	mov	QWORD PTR -728[rbp], 0
	mov	QWORD PTR -720[rbp], 0
	mov	QWORD PTR -712[rbp], 0
	mov	QWORD PTR -704[rbp], 0
	mov	QWORD PTR -696[rbp], 0
	mov	QWORD PTR -688[rbp], 0
	mov	QWORD PTR -680[rbp], 0
	mov	QWORD PTR -672[rbp], 0
	mov	QWORD PTR -664[rbp], 0
	mov	QWORD PTR -656[rbp], 0
	mov	QWORD PTR -648[rbp], 0
	mov	QWORD PTR -640[rbp], 0
	mov	QWORD PTR -632[rbp], 0
	mov	QWORD PTR -624[rbp], 0
	mov	QWORD PTR -616[rbp], 0
	mov	QWORD PTR -608[rbp], 0
	mov	QWORD PTR -600[rbp], 0
	mov	QWORD PTR -592[rbp], 0
	mov	QWORD PTR -584[rbp], 0
	mov	QWORD PTR -576[rbp], 0
	mov	QWORD PTR -568[rbp], 0
	mov	QWORD PTR -560[rbp], 0
	mov	QWORD PTR -552[rbp], 0
	mov	QWORD PTR -544[rbp], 0
	mov	QWORD PTR -536[rbp], 0
	lea	rdx, -528[rbp]
	mov	eax, 0
	mov	ecx, 62
	mov	rdi, rdx
	rep stosq
	mov	rdx, QWORD PTR -1008[rbp]
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -800[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	strlcpy@PLT
	mov	rax, QWORD PTR -952[rbp]
	lea	rcx, 1[rax]
	lea	rax, -544[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	strlcpy@PLT
	lea	rcx, -544[rbp]
	lea	rax, -800[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	setenv@PLT
	add	DWORD PTR -1032[rbp], 1
.L149:
	mov	rdx, QWORD PTR -1008[rbp]
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L151
	mov	DWORD PTR -1032[rbp], 0
	jmp	.L152
.L153:
	mov	rdx, QWORD PTR -1008[rbp]
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rdx, QWORD PTR -1008[rbp]
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	add	DWORD PTR -1032[rbp], 1
.L152:
	mov	rdx, QWORD PTR -1008[rbp]
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L153
	mov	rax, QWORD PTR -1008[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -1008[rbp], 0
.L148:
	mov	rax, QWORD PTR -1000[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -1000[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -1000[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L127:
	lea	rdi, .LC36[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L156:
	mov	rax, QWORD PTR -960[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L154:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L155
	call	__stack_chk_fail@PLT
.L155:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	process_input, .-process_input
	.section	.rodata
.LC37:
	.string	"PATH"
	.align 8
.LC38:
	.string	"/bin:/bin/tests:/initrd/bin:/initrd/bin/tests:/initrd:/"
.LC39:
	.string	"eshell v0.1 help"
	.align 8
.LC40:
	.string	"Possible command line options:"
.LC41:
	.string	"-c command  Execute a command"
	.align 8
.LC42:
	.string	"-h          Display this help screen"
.LC43:
	.string	"c:h"
.LC44:
	.string	"/etc/shrc"
.LC45:
	.string	"/"
	.align 8
.LC46:
	.string	"\033[01;32m%s@\033[01;31m%s\033[01;34m %s (eshell!) %c\033[00m "
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 2920
	.cfi_offset 3, -24
	mov	DWORD PTR -2916[rbp], edi
	mov	QWORD PTR -2928[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC37[rip]
	call	getenv@PLT
	test	rax, rax
	jne	.L161
	mov	edx, 1
	lea	rsi, .LC38[rip]
	lea	rdi, .LC37[rip]
	call	setenv@PLT
.L161:
	mov	QWORD PTR -2080[rbp], 0
	mov	QWORD PTR -2072[rbp], 0
	lea	rdx, -2064[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	call	get_cwd
	mov	QWORD PTR last_wd[rip], rax
	mov	QWORD PTR -2904[rbp], 0
	mov	QWORD PTR -2848[rbp], 0
	mov	QWORD PTR -2840[rbp], 0
	mov	QWORD PTR -2832[rbp], 0
	mov	QWORD PTR -2824[rbp], 0
	mov	QWORD PTR -2816[rbp], 0
	mov	QWORD PTR -2808[rbp], 0
	mov	QWORD PTR -2800[rbp], 0
	mov	QWORD PTR -2792[rbp], 0
	mov	QWORD PTR -2784[rbp], 0
	mov	QWORD PTR -2776[rbp], 0
	mov	QWORD PTR -2768[rbp], 0
	mov	QWORD PTR -2760[rbp], 0
	mov	QWORD PTR -2752[rbp], 0
	mov	QWORD PTR -2744[rbp], 0
	mov	QWORD PTR -2736[rbp], 0
	mov	QWORD PTR -2728[rbp], 0
	mov	QWORD PTR -2720[rbp], 0
	mov	QWORD PTR -2712[rbp], 0
	mov	QWORD PTR -2704[rbp], 0
	mov	QWORD PTR -2696[rbp], 0
	mov	QWORD PTR -2688[rbp], 0
	mov	QWORD PTR -2680[rbp], 0
	mov	QWORD PTR -2672[rbp], 0
	mov	QWORD PTR -2664[rbp], 0
	mov	QWORD PTR -2656[rbp], 0
	mov	QWORD PTR -2648[rbp], 0
	mov	QWORD PTR -2640[rbp], 0
	mov	QWORD PTR -2632[rbp], 0
	mov	QWORD PTR -2624[rbp], 0
	mov	QWORD PTR -2616[rbp], 0
	mov	QWORD PTR -2608[rbp], 0
	mov	QWORD PTR -2600[rbp], 0
	lea	rax, -2848[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	gethostname@PLT
	lea	rax, -2848[rbp]
	mov	esi, 46
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -2880[rbp], rax
	cmp	QWORD PTR -2880[rbp], 0
	je	.L162
	mov	rax, QWORD PTR -2880[rbp]
	mov	BYTE PTR [rax], 0
.L162:
	call	geteuid@PLT
	mov	edi, eax
	call	getpwuid@PLT
	mov	QWORD PTR -2896[rbp], rax
	jmp	.L163
.L166:
	cmp	DWORD PTR -2908[rbp], 99
	je	.L164
	cmp	DWORD PTR -2908[rbp], 104
	jne	.L165
	lea	rdi, .LC39[rip]
	call	puts@PLT
	lea	rdi, .LC40[rip]
	call	puts@PLT
	lea	rdi, .LC41[rip]
	call	puts@PLT
	lea	rdi, .LC42[rip]
	call	puts@PLT
	jmp	.L163
.L164:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	process_input
	mov	edi, eax
	call	exit@PLT
.L165:
	mov	edi, 1
	call	exit@PLT
.L163:
	mov	rcx, QWORD PTR -2928[rbp]
	mov	eax, DWORD PTR -2916[rbp]
	lea	rdx, .LC43[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -2908[rbp], eax
	cmp	DWORD PTR -2908[rbp], -1
	jne	.L166
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -2916[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -2928[rbp], rax
	lea	rsi, .LC32[rip]
	lea	rdi, .LC44[rip]
	call	fopen@PLT
	mov	QWORD PTR -2872[rbp], rax
	cmp	QWORD PTR -2872[rbp], 0
	je	.L185
	mov	QWORD PTR -1056[rbp], 0
	mov	QWORD PTR -1048[rbp], 0
	lea	rdx, -1040[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	jmp	.L168
.L174:
	lea	rax, -1056[rbp]
	mov	QWORD PTR -2888[rbp], rax
	jmp	.L169
.L171:
	add	QWORD PTR -2888[rbp], 1
.L169:
	mov	rax, QWORD PTR -2888[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L170
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -2888[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L171
.L170:
	mov	rax, QWORD PTR -2888[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	je	.L168
	mov	rax, QWORD PTR -2888[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L173
	jmp	.L168
.L173:
	mov	rax, QWORD PTR -2888[rbp]
	mov	rdi, rax
	call	process_input
.L168:
	mov	rdx, QWORD PTR -2872[rbp]
	lea	rax, -1056[rbp]
	mov	esi, 1023
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L174
	mov	rax, QWORD PTR -2872[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L185:
	mov	esi, 1
	lea	rdi, loop[rip]
	call	__sigsetjmp@PLT
	endbr64
	lea	rsi, sigint_handler[rip]
	mov	edi, 2
	call	signal@PLT
	cmp	QWORD PTR -2904[rbp], 0
	je	.L176
	mov	rax, QWORD PTR -2904[rbp]
	mov	rdi, rax
	call	free@PLT
.L176:
	call	get_cwd
	mov	QWORD PTR -2904[rbp], rax
	mov	edx, 1
	lea	rsi, .LC45[rip]
	lea	rdi, .LC3[rip]
	call	setenv@PLT
	lea	rdi, .LC3[rip]
	call	getenv@PLT
	mov	QWORD PTR -2864[rbp], rax
	cmp	QWORD PTR -2864[rbp], 0
	je	.L177
	mov	rax, QWORD PTR -2864[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -2904[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	ja	.L177
	mov	rax, QWORD PTR -2864[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -2864[rbp]
	mov	rax, QWORD PTR -2904[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L177
	mov	rax, QWORD PTR -2864[rbp]
	lea	rsi, .LC45[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L177
	mov	QWORD PTR -2592[rbp], 0
	mov	QWORD PTR -2584[rbp], 0
	mov	QWORD PTR -2576[rbp], 0
	mov	QWORD PTR -2568[rbp], 0
	mov	QWORD PTR -2560[rbp], 0
	mov	QWORD PTR -2552[rbp], 0
	mov	QWORD PTR -2544[rbp], 0
	mov	QWORD PTR -2536[rbp], 0
	mov	QWORD PTR -2528[rbp], 0
	mov	QWORD PTR -2520[rbp], 0
	mov	QWORD PTR -2512[rbp], 0
	mov	QWORD PTR -2504[rbp], 0
	mov	QWORD PTR -2496[rbp], 0
	mov	QWORD PTR -2488[rbp], 0
	mov	QWORD PTR -2480[rbp], 0
	mov	QWORD PTR -2472[rbp], 0
	mov	QWORD PTR -2464[rbp], 0
	mov	QWORD PTR -2456[rbp], 0
	mov	QWORD PTR -2448[rbp], 0
	mov	QWORD PTR -2440[rbp], 0
	mov	QWORD PTR -2432[rbp], 0
	mov	QWORD PTR -2424[rbp], 0
	mov	QWORD PTR -2416[rbp], 0
	mov	QWORD PTR -2408[rbp], 0
	mov	QWORD PTR -2400[rbp], 0
	mov	QWORD PTR -2392[rbp], 0
	mov	QWORD PTR -2384[rbp], 0
	mov	QWORD PTR -2376[rbp], 0
	mov	QWORD PTR -2368[rbp], 0
	mov	QWORD PTR -2360[rbp], 0
	mov	QWORD PTR -2352[rbp], 0
	mov	QWORD PTR -2344[rbp], 0
	lea	rax, -2592[rbp]
	mov	WORD PTR [rax], 126
	mov	rax, QWORD PTR -2864[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -2864[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L178
	mov	rax, QWORD PTR -2904[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 1
	jbe	.L178
	lea	rax, -2592[rbp]
	mov	edx, 256
	lea	rsi, .LC45[rip]
	mov	rdi, rax
	mov	eax, 0
	call	strlcat@PLT
.L178:
	mov	rax, QWORD PTR -2864[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -2904[rbp]
	lea	rcx, [rax+rdx]
	lea	rax, -2592[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	strlcat@PLT
	mov	rax, QWORD PTR -2904[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rax, -2592[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -2904[rbp], rax
	lea	rdx, -2592[rbp]
	mov	rax, QWORD PTR -2904[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L177:
	mov	QWORD PTR -2336[rbp], 0
	mov	QWORD PTR -2328[rbp], 0
	mov	QWORD PTR -2320[rbp], 0
	mov	QWORD PTR -2312[rbp], 0
	mov	QWORD PTR -2304[rbp], 0
	mov	QWORD PTR -2296[rbp], 0
	mov	QWORD PTR -2288[rbp], 0
	mov	QWORD PTR -2280[rbp], 0
	mov	QWORD PTR -2272[rbp], 0
	mov	QWORD PTR -2264[rbp], 0
	mov	QWORD PTR -2256[rbp], 0
	mov	QWORD PTR -2248[rbp], 0
	mov	QWORD PTR -2240[rbp], 0
	mov	QWORD PTR -2232[rbp], 0
	mov	QWORD PTR -2224[rbp], 0
	mov	QWORD PTR -2216[rbp], 0
	mov	QWORD PTR -2208[rbp], 0
	mov	QWORD PTR -2200[rbp], 0
	mov	QWORD PTR -2192[rbp], 0
	mov	QWORD PTR -2184[rbp], 0
	mov	QWORD PTR -2176[rbp], 0
	mov	QWORD PTR -2168[rbp], 0
	mov	QWORD PTR -2160[rbp], 0
	mov	QWORD PTR -2152[rbp], 0
	mov	QWORD PTR -2144[rbp], 0
	mov	QWORD PTR -2136[rbp], 0
	mov	QWORD PTR -2128[rbp], 0
	mov	QWORD PTR -2120[rbp], 0
	mov	QWORD PTR -2112[rbp], 0
	mov	QWORD PTR -2104[rbp], 0
	mov	QWORD PTR -2096[rbp], 0
	mov	QWORD PTR -2088[rbp], 0
	call	geteuid@PLT
	test	eax, eax
	jne	.L179
	mov	edi, 35
	jmp	.L180
.L179:
	mov	edi, 36
.L180:
	mov	rax, QWORD PTR -2896[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rsi, QWORD PTR -2904[rbp]
	lea	rcx, -2848[rbp]
	lea	rax, -2336[rbp]
	sub	rsp, 8
	push	rdi
	mov	r9, rsi
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC46[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	add	rsp, 16
	mov	QWORD PTR -2856[rbp], 0
	lea	rax, -2336[rbp]
	mov	rdi, rax
	call	readline@PLT
	mov	QWORD PTR -2856[rbp], rax
	cmp	QWORD PTR -2856[rbp], 0
	jne	.L181
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L184
	jmp	.L186
.L181:
	mov	rcx, QWORD PTR -2856[rbp]
	lea	rax, -2080[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	strlcpy@PLT
	movzx	eax, BYTE PTR -2080[rbp]
	test	al, al
	je	.L183
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	add_history@PLT
.L183:
	mov	rax, QWORD PTR -2856[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	process_input
	jmp	.L185
.L186:
	call	__stack_chk_fail@PLT
.L184:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 19
__PRETTY_FUNCTION__.2:
	.string	"parse_command_line"
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 15
__PRETTY_FUNCTION__.1:
	.string	"sigint_handler"
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 14
__PRETTY_FUNCTION__.0:
	.string	"process_input"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"587763.c"
	.text
	.comm	loop,392,8
	.align	2
	.global	get_cwd
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cwd, %function
get_cwd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #0
	mov	r0, #0
	bl	getcwd
	mov	r3, r0
	mov	r0, r3
	pop	{fp, pc}
	.size	get_cwd, .-get_cwd
	.global	last_wd
	.bss
	.align	2
	.type	last_wd, %object
	.size	last_wd, 4
last_wd:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"$$\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"HOME\000"
	.align	2
.LC4:
	.ascii	"eshell: HOME not set\012\000"
	.align	2
.LC5:
	.ascii	"~\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	replace_variables
	.syntax unified
	.arm
	.fpu softvfp
	.type	replace_variables, %function
replace_variables:
	@ args = 0, pretend = 0, frame = 320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #320
	str	r0, [fp, #-320]
	str	r1, [fp, #-324]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-320]
	str	r3, [fp, #-312]
	b	.L4
.L17:
	ldr	r2, [fp, #-312]
	ldr	r3, [fp, #-320]
	cmp	r2, r3
	bls	.L5
	ldr	r3, [fp, #-312]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	bne	.L5
	ldr	r3, [fp, #-312]
	sub	r0, r3, #1
	ldr	r3, [fp, #-324]
	ldr	r2, [fp, #-320]
	add	r2, r2, r3
	ldr	r3, [fp, #-312]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-312]
	bl	memmove
	b	.L6
.L8:
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L6:
	ldr	r3, [fp, #-312]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L31
	ldr	r3, [fp, #-312]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L8
	b	.L31
.L5:
	mov	r3, #0
	str	r3, [fp, #-264]
	sub	r3, fp, #260
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-308]
	ldr	r3, [fp, #-312]
	str	r3, [fp, #-304]
	b	.L10
.L12:
	ldr	r2, [fp, #-304]
	add	r3, r2, #1
	str	r3, [fp, #-304]
	ldr	r3, [fp, #-308]
	add	r1, r3, #1
	str	r1, [fp, #-308]
	ldrb	r2, [r2]	@ zero_extendqisi2
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-260]
.L10:
	ldr	r3, [fp, #-312]
	add	r3, r3, #254
	ldr	r2, [fp, #-304]
	cmp	r2, r3
	bcs	.L11
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-304]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-304]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #95
	beq	.L12
	ldr	r3, [fp, #-304]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #36
	bne	.L11
	ldr	r2, [fp, #-304]
	ldr	r3, [fp, #-312]
	cmp	r2, r3
	beq	.L12
	ldr	r3, [fp, #-304]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #36
	beq	.L12
.L11:
	sub	r2, fp, #264
	ldr	r3, [fp, #-308]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldrb	r3, [fp, #-263]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
	b	.L4
.L13:
	sub	r3, fp, #264
	ldr	r1, .L32+4
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	mov	r3, #0
	str	r3, [fp, #-280]
	sub	r3, fp, #276
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	bl	getpid
	mov	r2, r0
	sub	r3, fp, #280
	ldr	r1, .L32+8
	mov	r0, r3
	bl	sprintf
	ldr	r2, [fp, #-312]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	ldr	r2, [fp, #-324]
	sub	r3, r2, r3
	sub	r2, fp, #280
	ldr	r1, .L32+4
	ldr	r0, [fp, #-312]
	bl	str_replace
	b	.L15
.L14:
	sub	r3, fp, #264
	add	r3, r3, #1
	mov	r0, r3
	bl	getenv
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L32+12
	str	r3, [fp, #-300]
.L16:
	ldr	r2, [fp, #-312]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	ldr	r2, [fp, #-324]
	sub	r3, r2, r3
	sub	r1, fp, #264
	ldr	r2, [fp, #-300]
	ldr	r0, [fp, #-312]
	bl	str_replace
.L15:
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
	b	.L4
.L31:
	nop
.L4:
	mov	r1, #36
	ldr	r0, [fp, #-312]
	bl	strchr
	str	r0, [fp, #-312]
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-320]
	str	r3, [fp, #-312]
	b	.L18
.L29:
	ldr	r2, [fp, #-312]
	ldr	r3, [fp, #-320]
	cmp	r2, r3
	bls	.L19
	ldr	r3, [fp, #-312]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	bne	.L19
	ldr	r3, [fp, #-312]
	sub	r0, r3, #1
	ldr	r3, [fp, #-324]
	ldr	r2, [fp, #-320]
	add	r2, r2, r3
	ldr	r3, [fp, #-312]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-312]
	bl	memmove
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
	b	.L18
.L19:
	ldr	r2, [fp, #-312]
	ldr	r3, [fp, #-320]
	cmp	r2, r3
	bls	.L20
	ldr	r3, [fp, #-312]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L20
	b	.L18
.L20:
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L21
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L21
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L21
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L22
.L21:
	ldr	r0, .L32+16
	bl	getenv
	str	r0, [fp, #-284]
	ldr	r3, [fp, #-284]
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L32+20
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L32+24
	bl	fwrite
	b	.L18
.L23:
	ldr	r2, [fp, #-312]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	ldr	r2, [fp, #-324]
	sub	r3, r2, r3
	ldr	r2, [fp, #-284]
	ldr	r1, .L32+28
	ldr	r0, [fp, #-312]
	bl	str_replace
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
	b	.L18
.L22:
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bls	.L18
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #126
	bhi	.L18
	ldr	r3, [fp, #-312]
	str	r3, [fp, #-296]
	mov	r3, #0
	str	r3, [fp, #-264]
	sub	r3, fp, #260
	mov	r2, #60
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-292]
	b	.L24
.L26:
	ldr	r2, [fp, #-296]
	add	r3, r2, #1
	str	r3, [fp, #-296]
	ldr	r3, [fp, #-292]
	add	r1, r3, #1
	str	r1, [fp, #-292]
	ldrb	r2, [r2]	@ zero_extendqisi2
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-260]
.L24:
	ldr	r3, [fp, #-296]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bls	.L25
	ldr	r3, [fp, #-296]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #126
	bhi	.L25
	ldr	r3, [fp, #-296]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L26
.L25:
	sub	r2, fp, #264
	ldr	r3, [fp, #-292]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #264
	add	r3, r3, #1
	mov	r0, r3
	bl	getpwnam
	str	r0, [fp, #-288]
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-288]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bne	.L28
	b	.L18
.L28:
	ldr	r3, [fp, #-288]
	ldr	r0, [r3, #20]
	ldr	r2, [fp, #-312]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	ldr	r2, [fp, #-324]
	sub	r3, r2, r3
	sub	r1, fp, #264
	mov	r2, r0
	ldr	r0, [fp, #-312]
	bl	str_replace
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L18:
	mov	r1, #126
	ldr	r0, [fp, #-312]
	bl	strchr
	str	r0, [fp, #-312]
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	bne	.L29
	nop
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	.LC5
	.size	replace_variables, .-replace_variables
	.section	.rodata
	.align	2
.LC7:
	.ascii	"the_stack_data/587763.c\000"
	.align	2
.LC8:
	.ascii	"env_i < max_env\000"
	.align	2
.LC9:
	.ascii	"max_args > *argc\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_command_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_command_line, %function
parse_command_line:
	@ args = 0, pretend = 0, frame = 2112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #2112
	sub	sp, sp, #4
	str	r0, [fp, #-2112]
	str	r1, [fp, #-2116]
	str	r2, [fp, #-2120]
	ldr	r3, .L73
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-2104]
	mov	r3, #0
	str	r3, [fp, #-2100]
	ldr	r0, [fp, #-2112]
	bl	strlen
	str	r0, [fp, #-2072]
	mov	r3, #0
	str	r3, [fp, #-2096]
	b	.L35
.L40:
	ldr	r2, [fp, #-2112]
	ldr	r3, [fp, #-2096]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L36
	ldr	r3, [fp, #-2104]
	add	r3, r3, #1
	str	r3, [fp, #-2104]
	b	.L37
.L39:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #1
	str	r3, [fp, #-2096]
.L37:
	ldr	r2, [fp, #-2112]
	ldr	r3, [fp, #-2096]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L38
	ldr	r2, [fp, #-2096]
	ldr	r3, [fp, #-2072]
	cmp	r2, r3
	bcc	.L39
	b	.L38
.L36:
	ldr	r2, [fp, #-2112]
	ldr	r3, [fp, #-2096]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #61
	bne	.L38
	ldr	r3, [fp, #-2100]
	add	r3, r3, #1
	str	r3, [fp, #-2100]
.L38:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #1
	str	r3, [fp, #-2096]
.L35:
	ldr	r2, [fp, #-2096]
	ldr	r3, [fp, #-2072]
	cmp	r2, r3
	bcc	.L40
	ldr	r3, [fp, #-2104]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-2068]
	ldr	r3, [fp, #-2104]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-2068]
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-2092]
	mov	r3, #0
	str	r3, [fp, #-2088]
	ldr	r3, [fp, #-2100]
	cmp	r3, #0
	ble	.L41
	ldr	r3, [fp, #-2100]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-2092]
	ldr	r3, [fp, #-2100]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-2092]
	bl	memset
.L41:
	ldr	r3, [fp, #-2112]
	str	r3, [fp, #-2084]
	ldr	r0, [fp, #-2112]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-2112]
	add	r3, r2, r3
	str	r3, [fp, #-2080]
	b	.L42
.L43:
	ldr	r3, [fp, #-2080]
	sub	r2, r3, #1
	str	r2, [fp, #-2080]
	mov	r2, #0
	strb	r2, [r3]
.L42:
	ldr	r3, [fp, #-2080]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L43
	ldr	r3, [fp, #-2080]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L43
	mov	r3, #0
	str	r3, [fp, #-2064]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	ldr	r2, .L73+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-2076]
	ldr	r0, [fp, #-2084]
	bl	strlen
	str	r0, [fp, #-2072]
	mov	r3, #0
	strb	r3, [fp, #-2107]
	b	.L44
.L45:
	ldr	r3, [fp, #-2084]
	add	r3, r3, #1
	str	r3, [fp, #-2084]
.L44:
	ldr	r3, [fp, #-2084]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L45
	ldr	r3, [fp, #-2084]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L45
	ldr	r3, [fp, #-2084]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L46
	ldr	r0, [fp, #-2068]
	bl	free
	mov	r3, #0
	b	.L70
.L46:
	mov	r3, #0
	strb	r3, [fp, #-2106]
	mov	r3, #0
	strb	r3, [fp, #-2105]
	b	.L48
.L68:
	mov	r3, #0
	strb	r3, [fp, #-2106]
	ldr	r3, [fp, #-2084]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L51
	ldrb	r3, [fp, #-2107]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L72
	b	.L51
.L53:
	ldr	r2, [fp, #-2084]
	add	r3, r2, #1
	str	r3, [fp, #-2084]
	ldr	r3, [fp, #-2076]
	add	r1, r3, #1
	str	r1, [fp, #-2076]
	ldrb	r2, [r2]	@ zero_extendqisi2
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-2052]
	mov	r3, #1
	strb	r3, [fp, #-2106]
.L51:
	ldr	r3, [fp, #-2084]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bls	.L52
	ldr	r3, [fp, #-2084]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	beq	.L52
	ldr	r3, [fp, #-2084]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L53
.L52:
	ldr	r3, [fp, #-2084]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L54
	ldrb	r3, [fp, #-2107]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L53
.L54:
	ldr	r3, [fp, #-2084]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	bne	.L55
	ldrb	r3, [fp, #-2107]	@ zero_extendqisi2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	eor	r3, r3, #1
	and	r3, r3, #255
	strb	r3, [fp, #-2107]
	ldrb	r3, [fp, #-2107]
	and	r3, r3, #1
	strb	r3, [fp, #-2107]
	mov	r3, #1
	strb	r3, [fp, #-2106]
	ldr	r3, [fp, #-2084]
	add	r3, r3, #1
	str	r3, [fp, #-2084]
	ldr	r3, [fp, #-2084]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L55
	b	.L48
.L55:
	ldr	r3, [fp, #-2084]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L56
	ldrb	r3, [fp, #-2107]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L57
.L56:
	ldr	r3, [fp, #-2084]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L58
.L57:
	mov	r3, #1
	strb	r3, [fp, #-2106]
	ldr	r3, [fp, #-2076]
	add	r2, r3, #1
	str	r2, [fp, #-2076]
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-2052]
	ldrb	r3, [fp, #-2105]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L59
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #61
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-2080]
	ldr	r3, [fp, #-2080]
	cmp	r3, #0
	beq	.L60
	ldr	r2, [fp, #-2088]
	ldr	r3, [fp, #-2100]
	cmp	r2, r3
	blt	.L61
	ldr	r3, .L73+8
	mov	r2, #215
	ldr	r1, .L73+12
	ldr	r0, .L73+16
	bl	__assert_fail
.L61:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #1
	mov	r0, r3
	bl	strlen
	mov	r1, r0
	ldr	r3, [fp, #-2088]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2092]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-2088]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2092]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r3, [fp, #-2088]
	add	r3, r3, #1
	str	r3, [fp, #-2088]
	mov	r3, #0
	str	r3, [fp, #-2076]
	b	.L62
.L63:
	ldr	r3, [fp, #-2084]
	add	r3, r3, #1
	str	r3, [fp, #-2084]
.L62:
	ldr	r3, [fp, #-2084]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L63
	ldr	r3, [fp, #-2084]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L63
	b	.L48
.L60:
	mov	r3, #1
	strb	r3, [fp, #-2105]
.L59:
	ldr	r3, [fp, #-2116]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2068]
	add	r4, r2, r3
	ldr	r0, [fp, #-2076]
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-2116]
	ldr	r3, [r3]
	ldr	r2, [fp, #-2104]
	cmp	r2, r3
	bgt	.L64
	ldr	r3, .L73+8
	mov	r2, #228
	ldr	r1, .L73+12
	ldr	r0, .L73+20
	bl	__assert_fail
.L64:
	ldr	r3, [fp, #-2116]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2068]
	add	r3, r2, r3
	ldr	r0, [r3]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2076]
	mov	r1, r3
	bl	strlcpy
	ldr	r3, [fp, #-2116]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-2116]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-2076]
	b	.L65
.L58:
	ldrb	r3, [fp, #-2106]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L66
	ldr	r3, [fp, #-2084]
	add	r3, r3, #1
	str	r3, [fp, #-2084]
.L65:
	b	.L66
.L67:
	ldr	r3, [fp, #-2084]
	add	r3, r3, #1
	str	r3, [fp, #-2084]
.L66:
	ldr	r3, [fp, #-2084]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L67
	ldr	r3, [fp, #-2084]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L67
.L48:
	ldr	r2, [fp, #-2112]
	ldr	r3, [fp, #-2072]
	add	r3, r2, r3
	ldr	r2, [fp, #-2084]
	cmp	r2, r3
	bcc	.L68
	b	.L50
.L72:
	nop
.L50:
	ldr	r3, [fp, #-2092]
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-2088]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2092]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L69:
	ldr	r3, [fp, #-2120]
	ldr	r2, [fp, #-2092]
	str	r2, [r3]
	ldr	r3, [fp, #-2068]
.L70:
	ldr	r2, .L73
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L71
	bl	__stack_chk_fail
.L71:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L74:
	.align	2
.L73:
	.word	.LC10
	.word	2044
	.word	__PRETTY_FUNCTION__.7743
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	parse_command_line, .-parse_command_line
	.section	.rodata
	.align	2
.LC11:
	.ascii	"sig == SIGINT\000"
	.text
	.align	2
	.global	sigint_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigint_handler, %function
sigint_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L76
	ldr	r3, .L77
	mov	r2, #253
	ldr	r1, .L77+4
	ldr	r0, .L77+8
	bl	__assert_fail
.L76:
	ldr	r3, .L77+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	putc
	ldr	r3, .L77+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r1, #1
	ldr	r0, .L77+16
	bl	longjmp
.L78:
	.align	2
.L77:
	.word	__PRETTY_FUNCTION__.7756
	.word	.LC7
	.word	.LC11
	.word	stdout
	.word	loop
	.size	sigint_handler, .-sigint_handler
	.section	.rodata
	.align	2
.LC12:
	.ascii	"exit\000"
	.align	2
.LC13:
	.ascii	"argv[i] != NULL\000"
	.align	2
.LC14:
	.ascii	">\000"
	.align	2
.LC15:
	.ascii	">>\000"
	.align	2
.LC16:
	.ascii	"<\000"
	.align	2
.LC17:
	.ascii	"2>\000"
	.align	2
.LC18:
	.ascii	"2>>\000"
	.align	2
.LC19:
	.ascii	"Error: redirection only supported with commands, e."
	.ascii	"g. echo a > b\012\000"
	.align	2
.LC20:
	.ascii	"Error: unexpected end of argument list\012\000"
	.align	2
.LC21:
	.ascii	"&1\000"
	.align	2
.LC22:
	.ascii	"cd\000"
	.align	2
.LC23:
	.ascii	"eshell: cd: HOME not set\012\000"
	.align	2
.LC24:
	.ascii	"-\000"
	.align	2
.LC25:
	.ascii	"eshell: cd: \000"
	.align	2
.LC26:
	.ascii	"pwd\000"
	.align	2
.LC27:
	.ascii	"eshell: \000"
	.align	2
.LC28:
	.ascii	"get_cwd\000"
	.align	2
.LC29:
	.ascii	"export\000"
	.align	2
.LC30:
	.ascii	"export %s\012\000"
	.align	2
.LC31:
	.ascii	"unset\000"
	.align	2
.LC32:
	.ascii	"eshell: unset: %s is not a valid identifier\012\000"
	.align	2
.LC33:
	.ascii	"eshell: unsetenv\000"
	.align	2
.LC34:
	.ascii	"r\000"
	.align	2
.LC35:
	.ascii	"a\000"
	.align	2
.LC36:
	.ascii	"w\000"
	.align	2
.LC37:
	.ascii	"dup2\000"
	.align	2
.LC38:
	.ascii	"fork\000"
	.align	2
.LC39:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	process_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_input, %function
process_input:
	@ args = 0, pretend = 0, frame = 912
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #912
	str	r0, [fp, #-920]
	ldr	r3, .L166
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, [fp, #-920]
	bl	strlen
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	cmp	r3, #2048
	bls	.L80
	ldr	r0, [fp, #-920]
	bl	strlen
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	b	.L81
.L80:
	mov	r3, #2048
.L81:
	str	r3, [fp, #-872]
	ldr	r3, [fp, #-872]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-868]
	ldr	r2, [fp, #-872]
	ldr	r1, [fp, #-920]
	ldr	r0, [fp, #-868]
	bl	strlcpy
	ldr	r1, [fp, #-872]
	ldr	r0, [fp, #-868]
	bl	replace_variables
	mov	r3, #0
	str	r3, [fp, #-904]
	mov	r3, #0
	str	r3, [fp, #-912]
	mov	r3, #0
	str	r3, [fp, #-908]
	sub	r2, fp, #908
	sub	r3, fp, #912
	mov	r1, r3
	ldr	r0, [fp, #-868]
	bl	parse_command_line
	str	r0, [fp, #-904]
	ldr	r3, [fp, #-904]
	cmp	r3, #0
	beq	.L82
	ldr	r3, [fp, #-904]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L83
.L82:
	ldr	r0, [fp, #-868]
	bl	free
	mov	r3, #0
	b	.L160
.L83:
	ldr	r3, [fp, #-904]
	ldr	r3, [r3]
	ldr	r1, .L166+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L85
	mov	r0, #0
	bl	exit
.L85:
	mov	r3, #0
	str	r3, [fp, #-900]
	mov	r3, #0
	str	r3, [fp, #-896]
	mov	r3, #0
	str	r3, [fp, #-892]
	mov	r3, #0
	strb	r3, [fp, #-914]
	mov	r3, #0
	strb	r3, [fp, #-913]
	mov	r3, #0
	str	r3, [fp, #-888]
	b	.L86
.L99:
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L87
	ldr	r3, .L166+8
	ldr	r2, .L166+12
	ldr	r1, .L166+16
	ldr	r0, .L166+20
	bl	__assert_fail
.L87:
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L166+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L88
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L166+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L88
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L166+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L88
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L166+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L88
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L166+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L89
.L88:
	ldr	r3, [fp, #-888]
	cmp	r3, #0
	bne	.L90
	ldr	r3, .L166+136
	ldr	r3, [r3]
	mov	r2, #65
	mov	r1, #1
	ldr	r0, .L166+44
	bl	fwrite
	mov	r3, #1
	b	.L160
.L90:
	ldr	r3, [fp, #-888]
	add	r2, r3, #1
	ldr	r3, [fp, #-912]
	cmp	r2, r3
	blt	.L91
	ldr	r3, .L166+136
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L166+48
	bl	fwrite
	mov	r3, #1
	b	.L160
.L91:
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #62
	bne	.L92
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-896]
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #62
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-914]
	b	.L97
.L92:
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #60
	bne	.L94
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-900]
	b	.L97
.L94:
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #50
	bne	.L97
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L166+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L95
	mov	r3, #1
	str	r3, [fp, #-892]
	b	.L96
.L95:
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-892]
.L96:
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #62
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-913]
	b	.L97
.L98:
	ldr	r3, [fp, #-888]
	add	r3, r3, #2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r2, r2, r3
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-904]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	str	r3, [fp, #-888]
.L97:
	ldr	r3, [fp, #-912]
	sub	r3, r3, #1
	ldr	r2, [fp, #-888]
	cmp	r2, r3
	blt	.L98
	ldr	r3, [fp, #-912]
	sub	r3, r3, #2
	str	r3, [fp, #-912]
	mvn	r3, #0
	str	r3, [fp, #-888]
.L89:
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	str	r3, [fp, #-888]
.L86:
	ldr	r3, [fp, #-912]
	ldr	r2, [fp, #-888]
	cmp	r2, r3
	blt	.L99
	ldr	r3, [fp, #-904]
	ldr	r3, [r3]
	ldr	r1, .L166+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L100
	ldr	r3, [fp, #-912]
	cmp	r3, #1
	bne	.L101
	ldr	r0, .L166+60
	bl	getenv
	str	r0, [fp, #-884]
	ldr	r3, [fp, #-884]
	cmp	r3, #0
	bne	.L102
	ldr	r3, .L166+136
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L166+64
	bl	fwrite
	b	.L102
.L101:
	ldr	r3, [fp, #-904]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L166+68
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L103
	ldr	r3, .L166+72
	ldr	r3, [r3]
	str	r3, [fp, #-884]
	ldr	r0, [fp, #-884]
	bl	puts
	b	.L102
.L103:
	ldr	r3, [fp, #-904]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-884]
.L102:
	ldr	r3, .L166+72
	ldr	r3, [r3]
	str	r3, [fp, #-824]
	bl	get_cwd
	mov	r3, r0
	ldr	r2, .L166+72
	str	r3, [r2]
	ldr	r3, [fp, #-884]
	cmp	r3, #0
	beq	.L104
	ldr	r0, [fp, #-884]
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L104
	ldr	r3, .L166+136
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L166+76
	bl	fwrite
	ldr	r3, .L166+72
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r2, .L166+72
	ldr	r3, [fp, #-824]
	str	r3, [r2]
	ldr	r0, [fp, #-884]
	bl	perror
	b	.L105
.L104:
	ldr	r3, [fp, #-884]
	cmp	r3, #0
	beq	.L105
	ldr	r0, [fp, #-824]
	bl	free
.L105:
	mov	r3, #0
	b	.L160
.L100:
	ldr	r3, [fp, #-904]
	ldr	r3, [r3]
	ldr	r1, .L166+80
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L106
	bl	get_cwd
	str	r0, [fp, #-828]
	ldr	r3, [fp, #-828]
	cmp	r3, #0
	bne	.L107
	ldr	r3, .L166+136
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L166+140
	bl	fwrite
	ldr	r0, .L166+84
	bl	perror
	b	.L108
.L107:
	ldr	r0, [fp, #-828]
	bl	puts
	ldr	r0, [fp, #-828]
	bl	free
.L108:
	mov	r3, #0
	b	.L160
.L106:
	ldr	r3, [fp, #-904]
	ldr	r3, [r3]
	ldr	r1, .L166+88
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L109
	ldr	r3, [fp, #-912]
	cmp	r3, #1
	bne	.L110
	mov	r3, #0
	str	r3, [fp, #-888]
	b	.L111
.L112:
	ldr	r3, .L166+92
	ldr	r2, [r3]
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L166+96
	bl	printf
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	str	r3, [fp, #-888]
.L111:
	ldr	r3, .L166+92
	ldr	r2, [r3]
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L112
	b	.L113
.L110:
	mov	r3, #1
	str	r3, [fp, #-888]
	b	.L114
.L117:
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #61
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-832]
	ldr	r3, [fp, #-832]
	cmp	r3, #0
	beq	.L163
	ldr	r3, [fp, #-832]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-784]
	sub	r3, fp, #780
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #784
	mov	r2, #256
	mov	r0, r3
	bl	strlcpy
	mov	r3, #0
	str	r3, [fp, #-528]
	sub	r3, fp, #524
	mov	r2, #508
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-832]
	add	r1, r3, #1
	sub	r3, fp, #528
	mov	r2, #512
	mov	r0, r3
	bl	strlcpy
	sub	r1, fp, #528
	sub	r3, fp, #784
	mov	r2, #1
	mov	r0, r3
	bl	setenv
	ldr	r3, [fp, #-832]
	mov	r2, #61
	strb	r2, [r3]
	b	.L116
.L163:
	nop
.L116:
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	str	r3, [fp, #-888]
.L114:
	ldr	r3, [fp, #-912]
	ldr	r2, [fp, #-888]
	cmp	r2, r3
	blt	.L117
.L113:
	mov	r3, #0
	b	.L160
.L109:
	ldr	r3, [fp, #-904]
	ldr	r3, [r3]
	ldr	r1, .L166+100
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L118
	ldr	r3, [fp, #-912]
	cmp	r3, #1
	ble	.L119
	mov	r3, #1
	str	r3, [fp, #-888]
	b	.L120
.L123:
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #61
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-836]
	ldr	r3, [fp, #-836]
	cmp	r3, #0
	beq	.L121
	ldr	r3, .L166+136
	ldr	r0, [r3]
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L166+104
	bl	fprintf
	b	.L122
.L121:
	ldr	r3, [fp, #-904]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	unsetenv
	mov	r3, r0
	cmp	r3, #0
	beq	.L122
	ldr	r0, .L166+108
	bl	perror
.L122:
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	str	r3, [fp, #-888]
.L120:
	ldr	r3, [fp, #-912]
	ldr	r2, [fp, #-888]
	cmp	r2, r3
	blt	.L123
.L119:
	mov	r3, #0
	b	.L160
.L118:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-864]
	ldr	r3, [fp, #-864]
	cmp	r3, #0
	ble	.L124
	mov	r3, #0
	str	r3, [fp, #-888]
	b	.L125
.L127:
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L126
	ldr	r3, .L166+8
	mov	r2, #468
	ldr	r1, .L166+16
	ldr	r0, .L166+20
	bl	__assert_fail
.L126:
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	str	r3, [fp, #-888]
.L125:
	ldr	r3, [fp, #-912]
	ldr	r2, [fp, #-888]
	cmp	r2, r3
	blt	.L127
	ldr	r0, [fp, #-904]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-904]
	ldr	r3, [fp, #-908]
	cmp	r3, #0
	beq	.L128
	mov	r3, #0
	str	r3, [fp, #-888]
	b	.L129
.L130:
	ldr	r2, [fp, #-908]
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r2, [fp, #-908]
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	str	r3, [fp, #-888]
.L129:
	ldr	r2, [fp, #-908]
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L130
	ldr	r3, [fp, #-908]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-908]
.L128:
	mov	r3, #0
	str	r3, [fp, #-820]
	nop
.L131:
	sub	r3, fp, #820
	mov	r2, #0
	mov	r1, r3
	mvn	r0, #0
	bl	waitpid
	mov	r3, r0
	cmn	r3, #1
	bne	.L131
	b	.L162
.L124:
	ldr	r3, [fp, #-864]
	cmp	r3, #0
	bne	.L133
	mov	r1, #0
	mov	r0, #2
	bl	signal
	mov	r3, #0
	str	r3, [fp, #-888]
	b	.L134
.L145:
	mov	r3, #0
	str	r3, [fp, #-856]
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L135
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #42
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-856]
	ldr	r3, [fp, #-856]
	cmp	r3, #0
	beq	.L135
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-856]
	cmp	r2, r3
	bls	.L136
	ldr	r3, [fp, #-856]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	bne	.L136
	ldr	r3, [fp, #-856]
	sub	r5, r3, #1
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r4, [r3]
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r4, r3
	ldr	r3, [fp, #-856]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-856]
	mov	r0, r5
	bl	memmove
	b	.L135
.L136:
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	ldr	r0, [r3]
	sub	r3, fp, #820
	mov	r2, #0
	mov	r1, #2
	bl	glob
	mov	r3, r0
	cmp	r3, #0
	bne	.L164
	ldr	r3, [fp, #-820]
	cmp	r3, #0
	beq	.L165
	ldr	r3, [fp, #-820]
	cmp	r3, #1
	bne	.L140
	ldr	r3, [fp, #-816]
	ldr	r1, [r3]
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r4, r2, r3
	mov	r0, r1
	bl	strdup
	mov	r3, r0
	str	r3, [r4]
	sub	r3, fp, #820
	mov	r0, r3
	bl	globfree
	b	.L135
.L140:
	ldr	r3, [fp, #-820]
	ldr	r2, [fp, #-912]
	add	r3, r3, r2
	str	r3, [fp, #-852]
	ldr	r3, [fp, #-852]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-904]
	bl	realloc
	str	r0, [fp, #-904]
	ldr	r3, [fp, #-912]
	str	r3, [fp, #-880]
	b	.L141
.L142:
	ldr	r3, [fp, #-880]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-880]
	add	r3, r3, #1
	str	r3, [fp, #-880]
.L141:
	ldr	r2, [fp, #-852]
	ldr	r3, [fp, #-880]
	cmp	r2, r3
	bge	.L142
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	str	r3, [fp, #-848]
	ldr	r3, [fp, #-912]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r3, r2, r3
	str	r3, [fp, #-844]
	ldr	r2, [fp, #-844]
	ldr	r3, [fp, #-848]
	sub	r3, r2, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-840]
	ldr	r2, [fp, #-844]
	ldr	r3, [fp, #-848]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-848]
	ldr	r0, [fp, #-840]
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-876]
	b	.L143
.L144:
	ldr	r2, [fp, #-816]
	ldr	r3, [fp, #-876]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r2, [fp, #-888]
	ldr	r3, [fp, #-876]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r4, r2, r3
	mov	r0, r1
	bl	strdup
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-876]
	add	r3, r3, #1
	str	r3, [fp, #-876]
.L143:
	ldr	r2, [fp, #-820]
	ldr	r3, [fp, #-876]
	cmp	r2, r3
	bhi	.L144
	ldr	r2, [fp, #-820]
	ldr	r3, [fp, #-888]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-904]
	add	r0, r2, r3
	ldr	r2, [fp, #-844]
	ldr	r3, [fp, #-848]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-840]
	bl	memcpy
	ldr	r0, [fp, #-840]
	bl	free
	ldr	r3, [fp, #-820]
	ldr	r2, [fp, #-912]
	add	r3, r3, r2
	sub	r3, r3, #1
	str	r3, [fp, #-912]
	ldr	r2, [fp, #-820]
	ldr	r3, [fp, #-888]
	add	r3, r2, r3
	sub	r3, r3, #1
	str	r3, [fp, #-888]
	b	.L135
.L164:
	nop
	b	.L135
.L165:
	nop
.L135:
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	str	r3, [fp, #-888]
.L134:
	ldr	r3, [fp, #-912]
	ldr	r2, [fp, #-888]
	cmp	r2, r3
	blt	.L145
	ldr	r3, [fp, #-900]
	cmp	r3, #0
	beq	.L146
	ldr	r3, .L166+112
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L166+116
	ldr	r0, [fp, #-900]
	bl	freopen
	mov	r3, r0
	cmp	r3, #0
	bne	.L146
	ldr	r3, .L166+136
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L166+140
	bl	fwrite
	ldr	r0, [fp, #-900]
	bl	perror
	mvn	r0, #0
	bl	exit
.L146:
	ldr	r3, [fp, #-896]
	cmp	r3, #0
	beq	.L147
	ldrb	r3, [fp, #-914]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L148
	ldr	r3, .L166+120
	b	.L149
.L148:
	ldr	r3, .L166+124
.L149:
	ldr	r2, .L166+128
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, [fp, #-896]
	bl	freopen
	mov	r3, r0
	cmp	r3, #0
	bne	.L147
	ldr	r3, .L166+136
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L166+140
	bl	fwrite
	ldr	r0, [fp, #-896]
	bl	perror
	mvn	r0, #0
	bl	exit
.L147:
	ldr	r3, [fp, #-892]
	cmp	r3, #0
	beq	.L150
	ldr	r3, [fp, #-892]
	cmp	r3, #1
	bne	.L151
	ldr	r3, .L166+128
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r4, r0
	ldr	r3, .L166+136
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	dup2
	mov	r3, r0
	cmp	r3, #0
	bge	.L150
	ldr	r3, .L166+136
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L166+140
	bl	fwrite
	ldr	r0, .L166+132
	bl	perror
	b	.L150
.L151:
	ldrb	r3, [fp, #-913]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L152
	ldr	r3, .L166+120
	b	.L153
.L152:
	ldr	r3, .L166+124
.L153:
	ldr	r2, .L166+136
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, [fp, #-892]
	bl	freopen
	mov	r3, r0
	cmp	r3, #0
	bne	.L150
	ldr	r3, .L166+136
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L166+140
	bl	fwrite
	ldr	r0, [fp, #-892]
	bl	perror
	mvn	r0, #0
	bl	exit
.L150:
	ldr	r3, [fp, #-908]
	cmp	r3, #0
	beq	.L154
	mov	r3, #0
	str	r3, [fp, #-888]
	b	.L155
.L157:
	ldr	r2, [fp, #-908]
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #61
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-860]
	ldr	r3, [fp, #-860]
	cmp	r3, #0
	bne	.L156
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	str	r3, [fp, #-888]
	b	.L155
.L167:
	.align	2
.L166:
	.word	.LC39
	.word	.LC12
	.word	__PRETTY_FUNCTION__.7771
	.word	298
	.word	.LC7
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC3
	.word	.LC23
	.word	.LC24
	.word	last_wd
	.word	.LC25
	.word	.LC26
	.word	.LC28
	.word	.LC29
	.word	environ
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	stdin
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	stdout
	.word	.LC37
	.word	stderr
	.word	.LC27
	.word	.LC38
	.word	.LC39
.L156:
	ldr	r3, [fp, #-860]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-784]
	sub	r3, fp, #780
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-528]
	sub	r3, fp, #524
	mov	r2, #508
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r2, [fp, #-908]
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #784
	mov	r2, #256
	mov	r0, r3
	bl	strlcpy
	ldr	r3, [fp, #-860]
	add	r1, r3, #1
	sub	r3, fp, #528
	mov	r2, #512
	mov	r0, r3
	bl	strlcpy
	sub	r1, fp, #528
	sub	r3, fp, #784
	mov	r2, #1
	mov	r0, r3
	bl	setenv
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	str	r3, [fp, #-888]
.L155:
	ldr	r2, [fp, #-908]
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L157
	mov	r3, #0
	str	r3, [fp, #-888]
	b	.L158
.L159:
	ldr	r2, [fp, #-908]
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r2, [fp, #-908]
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	str	r3, [fp, #-888]
.L158:
	ldr	r2, [fp, #-908]
	ldr	r3, [fp, #-888]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L159
	ldr	r3, [fp, #-908]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-908]
.L154:
	ldr	r3, [fp, #-904]
	ldr	r3, [r3]
	ldr	r1, [fp, #-904]
	mov	r0, r3
	bl	execvp
	ldr	r3, .L166+136
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L166+140
	bl	fwrite
	ldr	r3, [fp, #-904]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mvn	r0, #0
	bl	exit
.L133:
	ldr	r0, .L166+144
	bl	perror
	mvn	r0, #0
	bl	exit
.L162:
	ldr	r0, [fp, #-868]
	bl	free
	mov	r3, #0
.L160:
	ldr	r2, .L166+148
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L161
	bl	__stack_chk_fail
.L161:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	process_input, .-process_input
	.section	.rodata
	.align	2
.LC40:
	.ascii	"PATH\000"
	.align	2
.LC41:
	.ascii	"/bin:/bin/tests:/initrd/bin:/initrd/bin/tests:/init"
	.ascii	"rd:/\000"
	.align	2
.LC42:
	.ascii	"eshell v0.1 help\000"
	.align	2
.LC43:
	.ascii	"Possible command line options:\000"
	.align	2
.LC44:
	.ascii	"-c command  Execute a command\000"
	.align	2
.LC45:
	.ascii	"-h          Display this help screen\000"
	.align	2
.LC46:
	.ascii	"c:h\000"
	.align	2
.LC47:
	.ascii	"/etc/shrc\000"
	.align	2
.LC48:
	.ascii	"/\000"
	.align	2
.LC49:
	.ascii	"\033[01;32m%s@\033[01;31m%s\033[01;34m %s (eshell!)"
	.ascii	" %c\033[00m \000"
	.align	2
.LC50:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2864
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #2880
	sub	sp, sp, #4
	str	r0, [fp, #-2872]
	str	r1, [fp, #-2876]
	ldr	r3, .L195
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L195+4
	bl	getenv
	mov	r3, r0
	cmp	r3, #0
	bne	.L169
	mov	r2, #1
	ldr	r1, .L195+8
	ldr	r0, .L195+4
	bl	setenv
.L169:
	mov	r3, #0
	str	r3, [fp, #-2064]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	bl	get_cwd
	mov	r3, r0
	ldr	r2, .L195+12
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-2864]
	mov	r3, #0
	str	r3, [fp, #-2832]
	sub	r3, fp, #2816
	sub	r3, r3, #12
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #2816
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #256
	mov	r0, r3
	bl	gethostname
	sub	r3, fp, #2816
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #46
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-2852]
	ldr	r3, [fp, #-2852]
	cmp	r3, #0
	beq	.L170
	ldr	r3, [fp, #-2852]
	mov	r2, #0
	strb	r2, [r3]
.L170:
	bl	geteuid
	mov	r3, r0
	mov	r0, r3
	bl	getpwuid
	mov	r3, r0
	str	r3, [fp, #-2860]
	b	.L171
.L174:
	ldr	r3, [fp, #-2848]
	cmp	r3, #99
	beq	.L172
	ldr	r3, [fp, #-2848]
	cmp	r3, #104
	bne	.L173
	ldr	r0, .L195+16
	bl	puts
	ldr	r0, .L195+20
	bl	puts
	ldr	r0, .L195+24
	bl	puts
	ldr	r0, .L195+28
	bl	puts
	b	.L171
.L172:
	ldr	r3, .L195+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	process_input
	mov	r3, r0
	mov	r0, r3
	bl	exit
.L173:
	mov	r0, #1
	bl	exit
.L171:
	ldr	r2, .L195+36
	ldr	r1, [fp, #-2876]
	ldr	r0, [fp, #-2872]
	bl	getopt
	str	r0, [fp, #-2848]
	ldr	r3, [fp, #-2848]
	cmn	r3, #1
	bne	.L174
	ldr	r3, .L195+40
	ldr	r3, [r3]
	ldr	r2, [fp, #-2872]
	sub	r3, r2, r3
	str	r3, [fp, #-2872]
	ldr	r3, .L195+40
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2876]
	add	r3, r2, r3
	str	r3, [fp, #-2876]
	ldr	r1, .L195+44
	ldr	r0, .L195+48
	bl	fopen
	mov	r3, r0
	str	r3, [fp, #-2844]
	ldr	r3, [fp, #-2844]
	cmp	r3, #0
	beq	.L193
	mov	r3, #0
	str	r3, [fp, #-1040]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L176
.L182:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [fp, #-2856]
	b	.L177
.L179:
	ldr	r3, [fp, #-2856]
	add	r3, r3, #1
	str	r3, [fp, #-2856]
.L177:
	ldr	r3, [fp, #-2856]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L178
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-2856]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L179
.L178:
	ldr	r3, [fp, #-2856]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	beq	.L176
	ldr	r3, [fp, #-2856]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L181
	b	.L176
.L181:
	ldr	r0, [fp, #-2856]
	bl	process_input
.L176:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2844]
	ldr	r1, .L195+52
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L182
	ldr	r0, [fp, #-2844]
	bl	fclose
.L193:
	mov	r1, #1
	ldr	r0, .L195+56
	bl	__sigsetjmp
	ldr	r1, .L195+60
	mov	r0, #2
	bl	signal
	ldr	r3, [fp, #-2864]
	cmp	r3, #0
	beq	.L184
	ldr	r0, [fp, #-2864]
	bl	free
.L184:
	bl	get_cwd
	mov	r3, r0
	str	r3, [fp, #-2864]
	mov	r2, #1
	ldr	r1, .L195+64
	ldr	r0, .L195+68
	bl	setenv
	ldr	r0, .L195+68
	bl	getenv
	str	r0, [fp, #-2840]
	ldr	r3, [fp, #-2840]
	cmp	r3, #0
	beq	.L185
	ldr	r0, [fp, #-2840]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-2864]
	bl	strlen
	mov	r3, r0
	cmp	r4, r3
	bhi	.L185
	ldr	r0, [fp, #-2840]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-2840]
	ldr	r0, [fp, #-2864]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L185
	ldr	r1, .L195+64
	ldr	r0, [fp, #-2840]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L185
	mov	r3, #0
	str	r3, [fp, #-2576]
	sub	r3, fp, #2560
	sub	r3, r3, #12
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #2560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #126
	strh	r2, [r3]	@ movhi
	ldr	r0, [fp, #-2840]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-2840]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L186
	ldr	r0, [fp, #-2864]
	bl	strlen
	mov	r3, r0
	cmp	r3, #1
	bls	.L186
	sub	r3, fp, #2560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #256
	ldr	r1, .L195+64
	mov	r0, r3
	bl	strlcat
.L186:
	ldr	r0, [fp, #-2840]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-2864]
	add	r1, r3, r2
	sub	r3, fp, #2560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #256
	mov	r0, r3
	bl	strlcat
	ldr	r0, [fp, #-2864]
	bl	free
	sub	r3, fp, #2560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-2864]
	sub	r3, fp, #2560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-2864]
	bl	strcpy
.L185:
	mov	r3, #0
	str	r3, [fp, #-2320]
	sub	r3, fp, #2304
	sub	r3, r3, #12
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-2860]
	ldr	r4, [r3]
	bl	geteuid
	mov	r3, r0
	cmp	r3, #0
	bne	.L187
	mov	r3, #35
	b	.L188
.L187:
	mov	r3, #36
.L188:
	sub	r0, fp, #2304
	sub	r0, r0, #12
	sub	r0, r0, #4
	str	r3, [sp, #8]
	ldr	r3, [fp, #-2864]
	str	r3, [sp, #4]
	sub	r3, fp, #2816
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, r4
	ldr	r2, .L195+72
	mov	r1, #256
	bl	snprintf
	mov	r3, #0
	str	r3, [fp, #-2836]
	sub	r3, fp, #2304
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	readline
	mov	r3, r0
	str	r3, [fp, #-2836]
	ldr	r3, [fp, #-2836]
	cmp	r3, #0
	bne	.L189
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	ldr	r2, .L195
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L192
	b	.L194
.L189:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	ldr	r1, [fp, #-2836]
	mov	r0, r3
	bl	strlcpy
	ldrb	r3, [fp, #-2064]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L191
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	add_history
.L191:
	ldr	r0, [fp, #-2836]
	bl	free
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	process_input
	b	.L193
.L194:
	bl	__stack_chk_fail
.L192:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L196:
	.align	2
.L195:
	.word	.LC50
	.word	.LC40
	.word	.LC41
	.word	last_wd
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	optarg
	.word	.LC46
	.word	optind
	.word	.LC34
	.word	.LC47
	.word	1023
	.word	loop
	.word	sigint_handler
	.word	.LC48
	.word	.LC3
	.word	.LC49
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.7743, %object
	.size	__PRETTY_FUNCTION__.7743, 19
__PRETTY_FUNCTION__.7743:
	.ascii	"parse_command_line\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7756, %object
	.size	__PRETTY_FUNCTION__.7756, 15
__PRETTY_FUNCTION__.7756:
	.ascii	"sigint_handler\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7771, %object
	.size	__PRETTY_FUNCTION__.7771, 14
__PRETTY_FUNCTION__.7771:
	.ascii	"process_input\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
