	.file	"243893629.c"
	.intel_syntax noprefix
	.text
	.globl	child
	.bss
	.align 8
	.type	child, @object
	.size	child, 8
child:
	.zero	8
	.section	.rodata
.LC0:
	.string	" "
	.text
	.globl	get_input
	.type	get_input, @function
get_input:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -24[rbp], rax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -28[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -24[rbp], rax
.L2:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_input, .-get_input
	.section	.rodata
.LC1:
	.string	"0.2"
	.align 8
.LC2:
	.string	"#### ish shell, version %s ####\n================================\n\n"
.LC3:
	.string	"Author: Itai Nelken"
	.align 8
.LC4:
	.string	"Copyright (c) 2021 Itai Nelken"
.LC5:
	.string	"License: MIT"
	.text
	.globl	about
	.type	about, @function
about:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	about, .-about
	.section	.rodata
	.align 8
.LC6:
	.string	" ish shell version %s \n======================\n\n"
	.align 8
.LC7:
	.string	"BUILT-IN COMMANDS:\n- cd [path]\n- about\n- help"
	.align 8
.LC8:
	.string	"Type the path to a program or only its name\nif it is in your PATH to run it"
	.text
	.globl	help
	.type	help, @function
help:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC1[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	help, .-help
	.section	.rodata
.LC9:
	.string	"ish: cd: expected argument!\n"
.LC10:
	.string	"ish"
	.text
	.globl	cd
	.type	cd, @function
cd:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	je	.L10
	lea	rdi, .LC10[rip]
	call	perror@PLT
	jmp	.L9
.L10:
	mov	eax, 0
	jmp	.L11
.L9:
	mov	eax, 1
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cd, .-cd
	.section	.rodata
.LC11:
	.string	"USER"
	.align 8
.LC12:
	.string	"\001\033[1;32m\002%s@%s\001\033[0m\002:\001\033[1;34m\002%s $\001\033[0m\002 "
	.text
	.globl	prompt_refresh
	.type	prompt_refresh, @function
prompt_refresh:
.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, 2096
	mov	QWORD PTR -2088[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC11[rip]
	call	getenv@PLT
	mov	QWORD PTR -2072[rbp], rax
	lea	rax, -2064[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	gethostname@PLT
	lea	rsi, -2064[rbp]
	lea	rcx, -1040[rbp]
	mov	rdx, QWORD PTR -2072[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	mov	r8, rsi
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	prompt_refresh, .-prompt_refresh
	.section	.rodata
.LC13:
	.string	"\n"
.LC14:
	.string	"%s"
	.text
	.globl	sigint_handler
	.type	sigint_handler, @function
sigint_handler:
.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, 2096
	mov	DWORD PTR -2084[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -2064[rbp], 0
	mov	QWORD PTR -2056[rbp], 0
	lea	rdx, -2048[rbp]
	mov	eax, 0
	mov	ecx, 254
	mov	rdi, rdx
	rep stosq
	lea	rax, .LC13[rip]
	mov	QWORD PTR -2072[rbp], rax
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	prompt_refresh
	mov	rax, QWORD PTR child[rip]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR child[rip]
	mov	eax, DWORD PTR [rax]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L18
.L15:
	mov	edi, 10
	call	putchar@PLT
	lea	rax, -2064[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	sigint_handler, .-sigint_handler
	.section	.rodata
.LC15:
	.string	"--help"
.LC16:
	.string	"--about"
.LC17:
	.string	"cd"
.LC18:
	.string	"exit"
.LC19:
	.string	"about"
.LC20:
	.string	"help"
	.text
	.globl	main
	.type	main, @function
main:
.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, 2112
	mov	DWORD PTR -2100[rbp], edi
	mov	QWORD PTR -2112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, sigint_handler[rip]
	mov	edi, 2
	call	signal@PLT
	mov	rax, QWORD PTR -2112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L20
	mov	rax, QWORD PTR -2112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
	mov	eax, 0
	call	help
	mov	eax, 0
	jmp	.L32
.L21:
	mov	rax, QWORD PTR -2112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	mov	eax, 0
	call	about
	mov	eax, 0
	jmp	.L32
.L20:
	lea	rax, -2092[rbp]
	mov	QWORD PTR child[rip], rax
	mov	DWORD PTR -2084[rbp], 0
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	prompt_refresh
	jmp	.L23
.L31:
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	readline@PLT
	mov	QWORD PTR -2080[rbp], rax
	mov	rax, QWORD PTR -2080[rbp]
	mov	rdi, rax
	call	add_history@PLT
	mov	rax, QWORD PTR -2080[rbp]
	mov	rdi, rax
	call	get_input
	mov	QWORD PTR -2072[rbp], rax
	mov	rax, QWORD PTR -2072[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L24
	mov	rax, QWORD PTR -2072[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L25
	mov	rax, QWORD PTR -2072[rbp]
	mov	rdi, rax
	call	cd
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	prompt_refresh
	jmp	.L23
.L25:
	mov	rax, QWORD PTR -2072[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L26
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	DWORD PTR -2084[rbp], 1
	jmp	.L23
.L26:
	mov	rax, QWORD PTR -2072[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L27
	mov	eax, 0
	call	about
	jmp	.L23
.L27:
	mov	rax, QWORD PTR -2072[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L24
	mov	eax, 0
	call	help
	jmp	.L23
.L24:
	call	fork@PLT
	mov	DWORD PTR -2092[rbp], eax
	mov	eax, DWORD PTR -2092[rbp]
	test	eax, eax
	jne	.L28
	mov	rax, QWORD PTR -2072[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -2072[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	cmp	eax, -1
	jne	.L29
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	DWORD PTR -2084[rbp], 1
	jmp	.L29
.L28:
	mov	eax, DWORD PTR -2092[rbp]
	test	eax, eax
	jns	.L30
	lea	rdi, .LC10[rip]
	call	perror@PLT
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -2092[rbp]
	lea	rcx, -2088[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -2092[rbp], 0
.L29:
	mov	rax, QWORD PTR -2080[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -2072[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	DWORD PTR -2084[rbp], 1
	jne	.L23
	mov	eax, 0
	jmp	.L32
.L23:
	cmp	DWORD PTR -2084[rbp], 1
	jne	.L31
	mov	eax, 0
.L32:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"243893629.c"
	.text
	.comm	child,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	" \000"
	.text
	.align	2
	.global	get_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_input, %function
get_input:
	@ 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]
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, .L5
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-24]
	bl	strtok
	str	r0, [fp, #-20]
	b	.L2
.L3:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-8]
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-20]
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.size	get_input, .-get_input
	.section	.rodata
	.align	2
.LC1:
	.ascii	"0.2\000"
	.align	2
.LC2:
	.ascii	"#### ish shell, version %s ####\012================"
	.ascii	"================\012\012\000"
	.align	2
.LC3:
	.ascii	"Author: Itai Nelken\000"
	.align	2
.LC4:
	.ascii	"Copyright (c) 2021 Itai Nelken\000"
	.align	2
.LC5:
	.ascii	"License: MIT\000"
	.text
	.align	2
	.global	about
	.syntax unified
	.arm
	.fpu softvfp
	.type	about, %function
about:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L8
	ldr	r0, .L8+4
	bl	printf
	ldr	r0, .L8+8
	bl	puts
	ldr	r0, .L8+12
	bl	puts
	ldr	r0, .L8+16
	bl	puts
	nop
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	about, .-about
	.section	.rodata
	.align	2
.LC6:
	.ascii	" ish shell version %s \012======================\012"
	.ascii	"\012\000"
	.align	2
.LC7:
	.ascii	"BUILT-IN COMMANDS:\012- cd [path]\012- about\012- h"
	.ascii	"elp\000"
	.align	2
.LC8:
	.ascii	"Type the path to a program or only its name\012if i"
	.ascii	"t is in your PATH to run it\000"
	.text
	.align	2
	.global	help
	.syntax unified
	.arm
	.fpu softvfp
	.type	help, %function
help:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L11
	ldr	r0, .L11+4
	bl	printf
	ldr	r0, .L11+8
	bl	puts
	ldr	r0, .L11+12
	bl	puts
	nop
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	help, .-help
	.section	.rodata
	.align	2
.LC9:
	.ascii	"ish: cd: expected argument!\012\000"
	.align	2
.LC10:
	.ascii	"ish\000"
	.text
	.align	2
	.global	cd
	.syntax unified
	.arm
	.fpu softvfp
	.type	cd, %function
cd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L18
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L18+4
	bl	fwrite
	b	.L15
.L14:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r0, .L18+8
	bl	perror
	b	.L15
.L16:
	mov	r3, #0
	b	.L17
.L15:
	mov	r3, #1
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	stderr
	.word	.LC9
	.word	.LC10
	.size	cd, .-cd
	.section	.rodata
	.align	2
.LC11:
	.ascii	"USER\000"
	.align	2
.LC12:
	.ascii	"\001\033[1;32m\002%s@%s\001\033[0m\002:\001\033[1;3"
	.ascii	"4m\002%s $\001\033[0m\002 \000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	prompt_refresh
	.syntax unified
	.arm
	.fpu softvfp
	.type	prompt_refresh, %function
prompt_refresh:
	@ args = 0, pretend = 0, frame = 2064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2064
	sub	sp, sp, #8
	str	r0, [fp, #-2064]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L22+4
	bl	getenv
	str	r0, [fp, #-2060]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	gethostname
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-2060]
	ldr	r1, .L22+8
	ldr	r0, [fp, #-2064]
	bl	sprintf
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC13
	.word	.LC11
	.word	.LC12
	.size	prompt_refresh, .-prompt_refresh
	.section	.rodata
	.align	2
.LC14:
	.ascii	"\012\000"
	.align	2
.LC15:
	.ascii	"%s\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sigint_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigint_handler, %function
sigint_handler:
	@ args = 0, pretend = 0, frame = 2064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2064
	str	r0, [fp, #-2064]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2056]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	ldr	r2, .L29+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L29+8
	str	r3, [fp, #-2060]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	prompt_refresh
	ldr	r3, .L29+12
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L29+12
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, #9
	mov	r0, r3
	bl	kill
	mov	r0, #10
	bl	putchar
	b	.L28
.L25:
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L29+16
	bl	printf
.L28:
	nop
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC16
	.word	2044
	.word	.LC14
	.word	child
	.word	.LC15
	.size	sigint_handler, .-sigint_handler
	.section	.rodata
	.align	2
.LC17:
	.ascii	"--help\000"
	.align	2
.LC18:
	.ascii	"--about\000"
	.align	2
.LC19:
	.ascii	"cd\000"
	.align	2
.LC20:
	.ascii	"exit\000"
	.align	2
.LC21:
	.ascii	"about\000"
	.align	2
.LC22:
	.ascii	"help\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2080
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2080
	str	r0, [fp, #-2080]
	str	r1, [fp, #-2084]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L46+4
	mov	r0, #2
	bl	signal
	ldr	r3, [fp, #-2084]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-2084]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L46+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	bl	help
	mov	r3, #0
	b	.L44
.L33:
	ldr	r3, [fp, #-2084]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L46+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	bl	about
	mov	r3, #0
	b	.L44
.L32:
	ldr	r2, .L46+16
	sub	r3, fp, #2064
	sub	r3, r3, #4
	sub	r3, r3, #8
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-2068]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	prompt_refresh
	b	.L35
.L43:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	readline
	str	r0, [fp, #-2064]
	ldr	r0, [fp, #-2064]
	bl	add_history
	ldr	r0, [fp, #-2064]
	bl	get_input
	str	r0, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-2060]
	ldr	r3, [r3]
	ldr	r1, .L46+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	ldr	r0, [fp, #-2060]
	bl	cd
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	prompt_refresh
	b	.L35
.L37:
	ldr	r3, [fp, #-2060]
	ldr	r3, [r3]
	ldr	r1, .L46+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r0, .L46+24
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-2068]
	b	.L35
.L38:
	ldr	r3, [fp, #-2060]
	ldr	r3, [r3]
	ldr	r1, .L46+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	bl	about
	b	.L35
.L39:
	ldr	r3, [fp, #-2060]
	ldr	r3, [r3]
	ldr	r1, .L46+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	bl	help
	b	.L35
.L36:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-2076]
	ldr	r3, [fp, #-2076]
	cmp	r3, #0
	bne	.L40
	ldr	r3, [fp, #-2060]
	ldr	r3, [r3]
	ldr	r1, [fp, #-2060]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmn	r3, #1
	bne	.L41
	ldr	r0, .L46+36
	bl	perror
	mov	r3, #1
	str	r3, [fp, #-2068]
	b	.L41
.L40:
	ldr	r3, [fp, #-2076]
	cmp	r3, #0
	bge	.L42
	ldr	r0, .L46+36
	bl	perror
	b	.L41
.L42:
	ldr	r0, [fp, #-2076]
	sub	r3, fp, #2064
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2
	mov	r1, r3
	bl	waitpid
	mov	r3, #0
	str	r3, [fp, #-2076]
.L41:
	ldr	r0, [fp, #-2064]
	bl	free
	ldr	r0, [fp, #-2060]
	bl	free
	ldr	r3, [fp, #-2068]
	cmp	r3, #1
	bne	.L35
	mov	r3, #0
	b	.L44
.L35:
	ldr	r3, [fp, #-2068]
	cmp	r3, #1
	bne	.L43
	mov	r3, #0
.L44:
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC23
	.word	sigint_handler
	.word	.LC17
	.word	.LC18
	.word	child
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
