	.file	"18888378.c"
	.intel_syntax noprefix
	.text
	.globl	pid
	.bss
	.align 4
	.type	pid, @object
	.size	pid, 4
pid:
	.zero	4
	.local	cwd
	.comm	cwd,1024,32
	.text
	.globl	changeCwd
	.type	changeCwd, @function
changeCwd:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	je	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	esi, 1024
	lea	rdi, cwd[rip]
	call	getcwd@PLT
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	changeCwd, .-changeCwd
	.section	.rodata
.LC0:
	.string	"%s"
	.text
	.globl	Prompt
	.type	Prompt, @function
Prompt:
.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, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -152[rbp]
	mov	WORD PTR [rax], 10
	lea	rax, -80[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	getlogin_r@PLT
	test	eax, eax
	jne	.L5
	lea	rdx, -80[rbp]
	lea	rax, -152[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -152[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -152[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 64
.L5:
	lea	rax, -144[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	gethostname@PLT
	test	eax, eax
	jne	.L6
	lea	rdx, -144[rbp]
	lea	rax, -152[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
.L6:
	lea	rax, -152[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -152[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 8254
	mov	BYTE PTR 2[rax], 0
	lea	rax, -152[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Prompt, .-Prompt
	.section	.rodata
.LC1:
	.string	"Goodbye."
.LC2:
	.string	"HOME"
	.align 8
.LC3:
	.string	"Unknown command. Is that elfish?"
.LC4:
	.string	"Error forking."
	.text
	.globl	launcher
	.type	launcher, @function
launcher:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -18[rbp], 1953068401
	mov	BYTE PTR -14[rbp], 0
	mov	DWORD PTR -13[rbp], 1953069157
	mov	BYTE PTR -9[rbp], 0
	mov	WORD PTR -21[rbp], 25699
	mov	BYTE PTR -19[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -18[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L9
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -13[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
.L9:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -21[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	changeCwd
	test	eax, eax
	je	.L12
	lea	rdi, .LC2[rip]
	call	getenv@PLT
	mov	rdi, rax
	call	changeCwd
.L12:
	mov	eax, 0
	jmp	.L8
.L11:
	call	fork@PLT
	mov	DWORD PTR pid[rip], eax
	mov	eax, DWORD PTR pid[rip]
	test	eax, eax
	jne	.L14
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	cmp	eax, -1
	jne	.L15
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L8
.L14:
	mov	eax, DWORD PTR pid[rip]
	test	eax, eax
	jns	.L20
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	nop
.L17:
	mov	edi, 0
	call	wait@PLT
	mov	edx, DWORD PTR pid[rip]
	cmp	eax, edx
	je	.L17
	mov	eax, 0
	jmp	.L8
.L15:
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	launcher, .-launcher
	.section	.rodata
.LC5:
	.string	" \t\r\n\007"
	.text
	.globl	makeArgVector
	.type	makeArgVector, @function
makeArgVector:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -28[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	lea	rbx, [rdx+rax]
	mov	esi, 1
	mov	edi, 8
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -28[rbp], 1
	lea	rsi, .LC5[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	lea	rbx, [rdx+rax]
	mov	esi, 1
	mov	edi, 8
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
.L22:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L23
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	makeArgVector, .-makeArgVector
	.section	.rodata
.LC6:
	.string	"%i\n"
	.text
	.globl	PrintArguments
	.type	PrintArguments, @function
PrintArguments:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L25
.L26:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	add	DWORD PTR -12[rbp], 1
	lea	rsi, .LC5[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -8[rbp], rax
.L25:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L26
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	PrintArguments, .-PrintArguments
	.globl	parseCommand
	.type	parseCommand, @function
parseCommand:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 32
	mov	QWORD PTR -8216[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -11[rbp], 29548
	mov	BYTE PTR -9[rbp], 0
	lea	rdx, -11[rbp]
	mov	rax, QWORD PTR -8216[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L29
	mov	rax, QWORD PTR -8216[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8216[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 32
	mov	rax, QWORD PTR -8216[rbp]
	lea	rsi, cwd[rip]
	mov	rdi, rax
	call	strcat@PLT
.L29:
	lea	rdx, -8208[rbp]
	mov	rax, QWORD PTR -8216[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	makeArgVector
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	launcher
	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
.LFE11:
	.size	parseCommand, .-parseCommand
	.section	.rodata
.LC7:
	.string	"%c"
	.text
	.globl	scanLine
	.type	scanLine, @function
scanLine:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 1024
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -20[rbp], 0
.L36:
	lea	rax, -25[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -25[rbp]
	cmp	al, 13
	je	.L32
	movzx	eax, BYTE PTR -25[rbp]
	cmp	al, 10
	je	.L32
	movzx	eax, BYTE PTR -25[rbp]
	test	al, al
	je	.L32
	movzx	eax, BYTE PTR -25[rbp]
	cmp	al, -1
	jne	.L33
.L32:
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L37
	jmp	.L38
.L33:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movzx	edx, BYTE PTR -25[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L36
	add	DWORD PTR -24[rbp], 1024
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -40[rbp], rax
	jmp	.L36
.L38:
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	scanLine, .-scanLine
	.section	.rodata
.LC8:
	.string	"\n"
	.text
	.globl	GetCommand
	.type	GetCommand, @function
GetCommand:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	scanLine
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L41
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L41
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcspn@PLT
	mov	rdx, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L41:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	GetCommand, .-GetCommand
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rdi, .LC2[rip]
	call	getenv@PLT
	mov	rdi, rax
	call	changeCwd
	mov	esi, 1
	mov	edi, 1024
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
.L45:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	realloc@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, 0
	call	Prompt
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	GetCommand
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L46
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	parseCommand
	jmp	.L45
.L46:
	nop
	jmp	.L45
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"18888378.c"
	.text
	.comm	pid,4,4
	.local	cwd
	.comm	cwd,1024,4
	.align	2
	.global	changeCwd
	.syntax unified
	.arm
	.fpu softvfp
	.type	changeCwd, %function
changeCwd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	mov	r3, #1
	b	.L3
.L2:
	mov	r1, #1024
	ldr	r0, .L4
	bl	getcwd
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	cwd
	.size	changeCwd, .-changeCwd
	.section	.rodata
	.align	2
.LC0:
	.ascii	"@\000"
	.align	2
.LC1:
	.ascii	"> \000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Prompt
	.syntax unified
	.arm
	.fpu softvfp
	.type	Prompt, %function
Prompt:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #144
	mov	r2, #10
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #72
	mov	r1, #64
	mov	r0, r3
	bl	getlogin_r
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	sub	r2, fp, #72
	sub	r3, fp, #144
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #144
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #144
	add	r3, r3, r2
	ldr	r2, .L10+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
.L7:
	sub	r3, fp, #136
	mov	r1, #64
	mov	r0, r3
	bl	gethostname
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	sub	r2, fp, #136
	sub	r3, fp, #144
	mov	r1, r2
	mov	r0, r3
	bl	strcat
.L8:
	sub	r3, fp, #144
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #144
	add	r3, r3, r2
	ldr	r2, .L10+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #3
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #144
	mov	r1, r3
	ldr	r0, .L10+12
	bl	printf
	nop
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	Prompt, .-Prompt
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Goodbye.\000"
	.align	2
.LC8:
	.ascii	"HOME\000"
	.align	2
.LC9:
	.ascii	"Unknown command. Is that elfish?\000"
	.align	2
.LC10:
	.ascii	"Error forking.\000"
	.align	2
.LC4:
	.ascii	"quit\000"
	.align	2
.LC5:
	.ascii	"exit\000"
	.align	2
.LC6:
	.ascii	"cd\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	launcher
	.syntax unified
	.arm
	.fpu softvfp
	.type	launcher, %function
launcher:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L25+4
	sub	r3, fp, #24
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	ldr	r2, .L25+8
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	ldr	r2, .L25+12
	sub	r3, fp, #28
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	sub	r2, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	sub	r2, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
.L13:
	ldr	r0, .L25+16
	bl	puts
	mov	r0, #0
	bl	exit
.L14:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	changeCwd
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r0, .L25+20
	bl	getenv
	mov	r3, r0
	mov	r0, r3
	bl	changeCwd
.L16:
	mov	r3, #0
	b	.L12
.L15:
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L25+24
	str	r2, [r3]
	ldr	r3, .L25+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L25+28
	bl	puts
	mov	r3, #1
	b	.L12
.L18:
	ldr	r3, .L25+24
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L24
	ldr	r0, .L25+32
	bl	puts
	mov	r0, #1
	bl	exit
.L24:
	nop
.L21:
	mov	r0, #0
	bl	wait
	mov	r2, r0
	ldr	r3, .L25+24
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L21
	mov	r3, #0
	b	.L12
.L19:
.L12:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC11
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	pid
	.word	.LC9
	.word	.LC10
	.size	launcher, .-launcher
	.section	.rodata
	.align	2
.LC12:
	.ascii	" \011\015\012\007\000"
	.text
	.align	2
	.global	makeArgVector
	.syntax unified
	.arm
	.fpu softvfp
	.type	makeArgVector, %function
makeArgVector:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r1, .L30
	ldr	r0, [fp, #-24]
	bl	strtok
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	mov	r1, #1
	mov	r0, #4
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	b	.L28
.L29:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r1, .L30
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	mov	r1, #1
	mov	r0, #4
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
.L28:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L29
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-20]
	bl	free
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC12
	.size	makeArgVector, .-makeArgVector
	.section	.rodata
	.align	2
.LC13:
	.ascii	"%i\012\000"
	.text
	.align	2
	.global	PrintArguments
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintArguments, %function
PrintArguments:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r1, .L36
	ldr	r0, [fp, #-16]
	bl	strtok
	str	r0, [fp, #-12]
	b	.L33
.L34:
	ldr	r0, [fp, #-12]
	bl	puts
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r1, .L36
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-12]
.L33:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L34
	ldr	r1, [fp, #-8]
	ldr	r0, .L36+4
	bl	printf
	ldr	r0, [fp, #-12]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC12
	.word	.LC13
	.size	PrintArguments, .-PrintArguments
	.section	.rodata
	.align	2
.LC15:
	.ascii	" \000"
	.align	2
.LC14:
	.ascii	"ls\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parseCommand
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseCommand, %function
parseCommand:
	@ args = 0, pretend = 0, frame = 4112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4096
	sub	sp, sp, #16
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r0, [r3, #-12]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L41+4
	sub	r3, fp, #12
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	sub	r3, fp, #12
	sub	r2, fp, #4096
	sub	r2, r2, #4
	mov	r1, r3
	ldr	r0, [r2, #-12]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r0, [r3, #-12]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-12]
	add	r3, r3, r2
	ldr	r2, .L41+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r1, .L41+12
	ldr	r0, [r3, #-12]
	bl	strcat
.L39:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #8
	sub	r2, fp, #4096
	sub	r2, r2, #4
	mov	r1, r3
	ldr	r0, [r2, #-12]
	bl	makeArgVector
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	launcher
	nop
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC16
	.word	.LC14
	.word	.LC15
	.word	cwd
	.size	parseCommand, .-parseCommand
	.section	.rodata
	.align	2
.LC17:
	.ascii	"%c\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	scanLine
	.syntax unified
	.arm
	.fpu softvfp
	.type	scanLine, %function
scanLine:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1024
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
.L48:
	sub	r3, fp, #21
	mov	r1, r3
	ldr	r0, .L51+4
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #13
	beq	.L44
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L44
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L45
.L44:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, .L51
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L49
	b	.L50
.L45:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L48
	ldr	r3, [fp, #-20]
	add	r3, r3, #1024
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	realloc
	str	r0, [fp, #-32]
	b	.L48
.L50:
	bl	__stack_chk_fail
.L49:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC18
	.word	.LC17
	.size	scanLine, .-scanLine
	.section	.rodata
	.align	2
.LC19:
	.ascii	"\012\000"
	.text
	.align	2
	.global	GetCommand
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetCommand, %function
GetCommand:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	scanLine
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L55
	ldr	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L55
	ldr	r1, .L56
	ldr	r0, [fp, #-8]
	bl	strcspn
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
.L55:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC19
	.size	GetCommand, .-GetCommand
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L63
	bl	getenv
	mov	r3, r0
	mov	r0, r3
	bl	changeCwd
	mov	r1, #1
	mov	r0, #1024
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
.L61:
	mov	r1, #1024
	ldr	r0, [fp, #-8]
	bl	realloc
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	bl	Prompt
	ldr	r0, [fp, #-8]
	bl	GetCommand
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L62
	ldr	r0, [fp, #-8]
	bl	parseCommand
	b	.L61
.L62:
	nop
	b	.L61
.L64:
	.align	2
.L63:
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
