	.file	"856652.c"
	.intel_syntax noprefix
	.text
	.globl	read_from_console
	.type	read_from_console, @function
read_from_console:
.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	edi, 100
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -13[rbp], al
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -13[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -12[rbp], 1
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -13[rbp], al
.L2:
	cmp	BYTE PTR -13[rbp], -1
	je	.L3
	cmp	BYTE PTR -13[rbp], 10
	jne	.L4
.L3:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_from_console, .-read_from_console
	.section	.rodata
.LC1:
	.string	" "
	.text
	.globl	command_tokenizer
	.type	command_tokenizer, @function
command_tokenizer:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	edi, 800
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 100
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -36[rbp], 1
.L7:
	cmp	DWORD PTR -36[rbp], 99
	jle	.L8
	mov	DWORD PTR -36[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -32[rbp], rax
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -36[rbp], 1
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -32[rbp], rax
.L9:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L10
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	command_tokenizer, .-command_tokenizer
	.section	.rodata
.LC3:
	.string	"Shell exiting. . ."
.LC4:
	.string	"%s"
	.align 32
.LC0:
	.string	"exit"
	.zero	95
	.string	"cd"
	.zero	97
	.string	"help"
	.zero	95
	.align 8
.LC2:
	.ascii	">> Shell'e hosgeldiniz.\n>> Bu shell asagidakileri yapabilir"
	.ascii	":\n  >> Temel UNIX Shel"
	.string	"l komutlarini yurutmek.\n  >> cd, exit ve help built-in komutlarini calistirmak. \n  >> Klavye ok tuslari ile komutlar arasinda gecis yapmayi desteklemez!!\n  >> Bu shell pipe iceren [command | command] komutlari desteklemez!!\n  >> FATMA ZEHRA CETIN 17011068\n"
	.zero	162
	.text
	.globl	command_comparator
	.type	command_comparator, @function
command_comparator:
.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, 848
	mov	QWORD PTR -840[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -816[rbp]
	lea	rdx, .LC0[rip]
	mov	ecx, 37
	mov	rdi, rax
	mov	rsi, rdx
	rep movsq
	mov	rdx, rsi
	mov	rax, rdi
	mov	ecx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], ecx
	mov	DWORD PTR -820[rbp], 0
	lea	rax, -512[rbp]
	lea	rdx, .LC2[rip]
	mov	ecx, 42
	mov	rdi, rax
	mov	rsi, rdx
	rep movsq
	mov	rdx, rsi
	mov	rax, rdi
	movzx	ecx, WORD PTR [rdx]
	mov	WORD PTR [rax], cx
	lea	rdx, -174[rbp]
	mov	eax, 0
	mov	WORD PTR [rdx], ax
	add	rdx, 2
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	ecx, 19
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	jmp	.L13
.L15:
	add	DWORD PTR -820[rbp], 1
.L13:
	cmp	DWORD PTR -820[rbp], 2
	jg	.L14
	mov	rax, QWORD PTR -840[rbp]
	mov	rdx, QWORD PTR [rax]
	lea	rsi, -816[rbp]
	mov	eax, DWORD PTR -820[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	add	rax, rcx
	sal	rax, 2
	add	rax, rsi
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
.L14:
	cmp	DWORD PTR -820[rbp], 2
	jg	.L16
	cmp	DWORD PTR -820[rbp], 2
	je	.L17
	cmp	DWORD PTR -820[rbp], 2
	jg	.L18
	cmp	DWORD PTR -820[rbp], 0
	je	.L19
	cmp	DWORD PTR -820[rbp], 1
	je	.L20
	jmp	.L18
.L19:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L20:
	mov	rax, QWORD PTR -840[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	chdir@PLT
	jmp	.L18
.L17:
	lea	rax, -512[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L18:
	mov	eax, 1
	jmp	.L22
.L16:
	mov	eax, 0
.L22:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	command_comparator, .-command_comparator
	.section	.rodata
	.align 8
.LC5:
	.string	"ERROR: forking child process failed. . ."
.LC6:
	.string	"ERROR: exec failed "
	.text
	.globl	executor
	.type	executor, @function
executor:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	fork@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L25
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L24
.L25:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L32
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	test	eax, eax
	jns	.L24
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L24
.L32:
	nop
.L29:
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	wait@PLT
	cmp	DWORD PTR -12[rbp], eax
	jne	.L29
.L24:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	executor, .-executor
	.section	.rodata
.LC7:
	.string	"%s \n"
.LC8:
	.string	"USER"
.LC9:
	.string	"%s@Shell:~$ "
	.text
	.globl	main
	.type	main, @function
main:
.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, 568
	.cfi_offset 3, -24
	mov	DWORD PTR -564[rbp], edi
	mov	QWORD PTR -576[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -548[rbp], 1
	lea	rax, -528[rbp]
	lea	rdx, .LC2[rip]
	mov	ecx, 42
	mov	rdi, rax
	mov	rsi, rdx
	rep movsq
	mov	rdx, rsi
	mov	rax, rdi
	movzx	ecx, WORD PTR [rdx]
	mov	WORD PTR [rax], cx
	lea	rdx, -190[rbp]
	mov	eax, 0
	mov	WORD PTR [rdx], ax
	add	rdx, 2
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	ecx, 19
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	edi, 100
	call	malloc@PLT
	mov	QWORD PTR -544[rbp], rax
	mov	edi, 800
	call	malloc@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	DWORD PTR -552[rbp], 0
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -552[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -536[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 100
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -552[rbp], 1
.L34:
	cmp	DWORD PTR -552[rbp], 99
	jle	.L35
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L36
.L37:
	mov	rax, QWORD PTR -544[rbp]
	mov	BYTE PTR [rax], 0
	lea	rdi, .LC8[rip]
	call	getenv@PLT
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	call	read_from_console
	mov	QWORD PTR -544[rbp], rax
	mov	rax, QWORD PTR -544[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L36
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	command_tokenizer
	mov	QWORD PTR -536[rbp], rax
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	command_comparator
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	executor
.L36:
	cmp	DWORD PTR -548[rbp], 0
	jne	.L37
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"856652.c"
	.text
	.align	2
	.global	read_from_console
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_from_console, %function
read_from_console:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r0, #100
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-13]
	b	.L2
.L3:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-13]
.L2:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L3
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	stdin
	.size	read_from_console, .-read_from_console
	.section	.rodata
	.align	2
.LC1:
	.ascii	" \000"
	.text
	.align	2
	.global	command_tokenizer
	.syntax unified
	.arm
	.fpu softvfp
	.type	command_tokenizer, %function
command_tokenizer:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	mov	r0, #400
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L8
.L9:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r4, r2, r3
	mov	r0, #100
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L8:
	ldr	r3, [fp, #-20]
	cmp	r3, #99
	ble	.L9
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r1, .L13
	ldr	r0, [fp, #-32]
	bl	strtok
	str	r0, [fp, #-24]
	b	.L10
.L11:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r1, .L13
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-24]
.L10:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC1
	.size	command_tokenizer, .-command_tokenizer
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Shell exiting. . .\000"
	.align	2
.LC4:
	.ascii	"%s\000"
	.align	2
.LC0:
	.ascii	"exit\000"
	.space	95
	.ascii	"cd\000"
	.space	97
	.ascii	"help\000"
	.space	95
	.align	2
.LC2:
	.ascii	">> Shell'e hosgeldiniz.\012>> Bu shell asagidakiler"
	.ascii	"i yapabilir:\012  >> Temel UNIX Shell komutlarini y"
	.ascii	"urutmek.\012  >> cd, exit ve help built-in komutlar"
	.ascii	"ini calistirmak. \012  >> Klavye ok tuslari ile kom"
	.ascii	"utlar arasinda gecis yapmayi desteklemez!!\012  >> "
	.ascii	"Bu shell pipe iceren [command | command] komutlari "
	.ascii	"desteklemez!!\012  >> FATMA ZEHRA CETIN 17011068\012"
	.ascii	"\000"
	.space	162
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	command_comparator
	.syntax unified
	.arm
	.fpu softvfp
	.type	command_comparator, %function
command_comparator:
	@ args = 0, pretend = 0, frame = 816
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #816
	str	r0, [fp, #-816]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L27+4
	sub	r3, fp, #808
	mov	r1, r2
	mov	r2, #300
	mov	r0, r3
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-812]
	ldr	r2, .L27+8
	sub	r3, fp, #508
	mov	r1, r2
	ldr	r2, .L27+12
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #170
	mov	r2, #162
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L16
.L18:
	ldr	r3, [fp, #-812]
	add	r3, r3, #1
	str	r3, [fp, #-812]
.L16:
	ldr	r3, [fp, #-812]
	cmp	r3, #2
	bgt	.L17
	sub	r1, fp, #808
	ldr	r2, [fp, #-812]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r1, r3
	ldr	r3, [fp, #-816]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
.L17:
	ldr	r3, [fp, #-812]
	cmp	r3, #2
	bgt	.L19
	ldr	r3, [fp, #-812]
	cmp	r3, #2
	beq	.L20
	ldr	r3, [fp, #-812]
	cmp	r3, #2
	bgt	.L21
	ldr	r3, [fp, #-812]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-812]
	cmp	r3, #1
	beq	.L23
	b	.L21
.L22:
	ldr	r0, .L27+16
	bl	puts
	mov	r0, #0
	bl	exit
.L23:
	ldr	r3, [fp, #-816]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	chdir
	b	.L21
.L20:
	sub	r3, fp, #508
	mov	r1, r3
	ldr	r0, .L27+20
	bl	printf
	nop
.L21:
	mov	r3, #1
	b	.L25
.L19:
	mov	r3, #0
.L25:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC5
	.word	.LC0
	.word	.LC2
	.word	338
	.word	.LC3
	.word	.LC4
	.size	command_comparator, .-command_comparator
	.section	.rodata
	.align	2
.LC6:
	.ascii	"ERROR: forking child process failed. . .\000"
	.align	2
.LC7:
	.ascii	"ERROR: exec failed \000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	executor
	.syntax unified
	.arm
	.fpu softvfp
	.type	executor, %function
executor:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L30
	ldr	r0, .L38+4
	bl	puts
	b	.L29
.L30:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmp	r3, #0
	bge	.L29
	ldr	r0, .L38+8
	bl	puts
	b	.L29
.L37:
	nop
.L34:
	sub	r3, fp, #16
	mov	r0, r3
	bl	wait
	mov	r2, r0
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	bne	.L34
.L29:
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC8
	.word	.LC6
	.word	.LC7
	.size	executor, .-executor
	.section	.rodata
	.align	2
.LC9:
	.ascii	"%s \012\000"
	.align	2
.LC10:
	.ascii	"USER\000"
	.align	2
.LC11:
	.ascii	"%s@Shell:~$ \000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #532
	str	r0, [fp, #-536]
	str	r1, [fp, #-540]
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-524]
	ldr	r2, .L47+4
	sub	r3, fp, #516
	mov	r1, r2
	ldr	r2, .L47+8
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #178
	mov	r2, #162
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r0, #100
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-532]
	mov	r0, #400
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-520]
	mov	r3, #0
	str	r3, [fp, #-528]
	b	.L41
.L42:
	ldr	r3, [fp, #-528]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-520]
	add	r4, r2, r3
	mov	r0, #100
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-528]
	add	r3, r3, #1
	str	r3, [fp, #-528]
.L41:
	ldr	r3, [fp, #-528]
	cmp	r3, #99
	ble	.L42
	sub	r3, fp, #516
	mov	r1, r3
	ldr	r0, .L47+12
	bl	printf
	b	.L43
.L44:
	ldr	r3, [fp, #-532]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, .L47+16
	bl	getenv
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L47+20
	bl	printf
	bl	read_from_console
	str	r0, [fp, #-532]
	ldr	r3, [fp, #-532]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L43
	ldr	r0, [fp, #-532]
	bl	command_tokenizer
	str	r0, [fp, #-520]
	ldr	r0, [fp, #-520]
	bl	command_comparator
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	ldr	r0, [fp, #-520]
	bl	executor
.L43:
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bne	.L44
	mov	r3, #0
	ldr	r2, .L47
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC12
	.word	.LC2
	.word	338
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
