	.file	"350303.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"msh> "
.LC1:
	.string	" \t\n"
.LC2:
	.string	"./"
.LC3:
	.string	"/usr/local/bin/"
.LC4:
	.string	"/usr/bin/"
.LC5:
	.string	"/bin/"
.LC6:
	.string	"quit"
.LC7:
	.string	"exit"
.LC8:
	.string	"cd"
.LC9:
	.string	"showpids"
.LC10:
	.string	"[%d]: %d\n"
.LC11:
	.string	"history"
.LC12:
	.string	"[%d]: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 368
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -360[rbp], 0
	mov	DWORD PTR -356[rbp], 0
	jmp	.L2
.L3:
	mov	edi, 255
	call	malloc@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -356[rbp]
	cdqe
	mov	QWORD PTR -128[rbp+rax*8], rdx
	add	DWORD PTR -356[rbp], 1
.L2:
	cmp	DWORD PTR -356[rbp], 14
	jle	.L3
	mov	DWORD PTR -352[rbp], 0
	mov	edi, 255
	call	malloc@PLT
	mov	QWORD PTR -320[rbp], rax
.L38:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L4:
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -320[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L4
	mov	DWORD PTR -348[rbp], 0
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -328[rbp], rax
	mov	rax, QWORD PTR -328[rbp]
	mov	QWORD PTR -312[rbp], rax
	jmp	.L5
.L8:
	mov	rax, QWORD PTR -304[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	strndup@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	mov	QWORD PTR -240[rbp+rax*8], rdx
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	mov	rax, QWORD PTR -240[rbp+rax*8]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L6
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	mov	QWORD PTR -240[rbp+rax*8], 0
.L6:
	add	DWORD PTR -348[rbp], 1
.L5:
	lea	rax, -328[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strsep@PLT
	mov	QWORD PTR -304[rbp], rax
	cmp	QWORD PTR -304[rbp], 0
	je	.L7
	cmp	DWORD PTR -348[rbp], 4
	jle	.L8
.L7:
	mov	DWORD PTR -340[rbp], -1
	lea	rax, .LC2[rip]
	mov	QWORD PTR -272[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -264[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -256[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -248[rbp], rax
	mov	rax, QWORD PTR -240[rbp]
	test	rax, rax
	je	.L9
	cmp	DWORD PTR -360[rbp], 14
	jg	.L10
	add	DWORD PTR -360[rbp], 1
.L10:
	mov	eax, DWORD PTR -360[rbp]
	sub	eax, 1
	mov	DWORD PTR -344[rbp], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	mov	rdx, QWORD PTR -128[rbp+rax*8]
	mov	eax, DWORD PTR -344[rbp]
	add	eax, 1
	cdqe
	mov	rax, QWORD PTR -128[rbp+rax*8]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	sub	DWORD PTR -344[rbp], 1
.L11:
	cmp	DWORD PTR -344[rbp], 0
	jns	.L12
	mov	DWORD PTR -336[rbp], 0
	mov	DWORD PTR -344[rbp], 0
	jmp	.L13
.L15:
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	mov	rax, QWORD PTR -240[rbp+rax*8]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -336[rbp]
	add	eax, edx
	add	eax, 1
	mov	DWORD PTR -336[rbp], eax
	add	DWORD PTR -344[rbp], 1
.L13:
	mov	eax, DWORD PTR -348[rbp]
	sub	eax, 1
	cmp	DWORD PTR -344[rbp], eax
	jge	.L14
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	mov	rax, QWORD PTR -240[rbp+rax*8]
	test	rax, rax
	jne	.L15
.L14:
	mov	eax, DWORD PTR -336[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -296[rbp], rax
	mov	rdx, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR -296[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	DWORD PTR -344[rbp], 1
	jmp	.L16
.L18:
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -296[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 32
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	mov	rdx, QWORD PTR -240[rbp+rax*8]
	mov	rax, QWORD PTR -296[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	add	DWORD PTR -344[rbp], 1
.L16:
	mov	eax, DWORD PTR -348[rbp]
	sub	eax, 1
	cmp	DWORD PTR -344[rbp], eax
	jge	.L17
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	mov	rax, QWORD PTR -240[rbp+rax*8]
	test	rax, rax
	jne	.L18
.L17:
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -296[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	free@PLT
.L9:
	mov	rax, QWORD PTR -240[rbp]
	test	rax, rax
	jne	.L19
	mov	DWORD PTR -340[rbp], -1
	jmp	.L20
.L19:
	mov	rax, QWORD PTR -240[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L21
	mov	rax, QWORD PTR -240[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L21
	mov	rax, QWORD PTR -240[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L22
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	chdir@PLT
	jmp	.L20
.L22:
	mov	rax, QWORD PTR -240[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L23
	mov	DWORD PTR -344[rbp], 0
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	mov	edx, DWORD PTR -192[rbp+rax*4]
	mov	eax, DWORD PTR -344[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -344[rbp], 1
.L24:
	mov	eax, DWORD PTR -344[rbp]
	cmp	eax, DWORD PTR -352[rbp]
	jl	.L25
	jmp	.L20
.L23:
	mov	rax, QWORD PTR -240[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L26
	mov	DWORD PTR -344[rbp], 0
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	mov	rax, QWORD PTR -128[rbp+rax*8]
	mov	edx, DWORD PTR -344[rbp]
	lea	ecx, 1[rdx]
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -344[rbp], 1
.L27:
	mov	eax, DWORD PTR -344[rbp]
	cmp	eax, DWORD PTR -360[rbp]
	jl	.L28
	jmp	.L20
.L26:
	mov	rax, QWORD PTR -240[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 33
	jne	.L29
	mov	rax, QWORD PTR -240[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -332[rbp], eax
	mov	DWORD PTR -348[rbp], 0
	jmp	.L30
.L31:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strndup@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	mov	QWORD PTR -240[rbp+rax*8], rdx
	add	DWORD PTR -348[rbp], 1
.L30:
	lea	rdx, -128[rbp]
	mov	eax, DWORD PTR -332[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strsep@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L31
	call	fork@PLT
	mov	DWORD PTR -340[rbp], eax
	jmp	.L20
.L29:
	call	fork@PLT
	mov	DWORD PTR -340[rbp], eax
.L20:
	cmp	DWORD PTR -340[rbp], 0
	jne	.L32
	mov	rax, QWORD PTR -240[rbp]
	lea	rdx, -272[rbp]
	lea	rcx, -240[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	execvpe@PLT
	cmp	eax, -1
	jne	.L33
	mov	rax, QWORD PTR -240[rbp]
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -280[rbp]
	add	rax, rdx
	movabs	rsi, 7020387718775454240
	movabs	rdi, 7359009813061198958
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	mov	DWORD PTR 16[rax], 1684960623
	mov	WORD PTR 20[rax], 10
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L33:
	mov	edi, 0
	call	exit@PLT
.L32:
	cmp	DWORD PTR -340[rbp], 0
	jle	.L34
	lea	rcx, -364[rbp]
	mov	eax, DWORD PTR -340[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	cmp	DWORD PTR -352[rbp], 14
	jg	.L35
	add	DWORD PTR -352[rbp], 1
.L35:
	mov	eax, DWORD PTR -352[rbp]
	sub	eax, 1
	mov	DWORD PTR -344[rbp], eax
	jmp	.L36
.L37:
	mov	eax, DWORD PTR -344[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	mov	edx, DWORD PTR -192[rbp+rax*4]
	movsx	rax, ecx
	mov	DWORD PTR -192[rbp+rax*4], edx
	sub	DWORD PTR -344[rbp], 1
.L36:
	cmp	DWORD PTR -344[rbp], 0
	jns	.L37
	mov	eax, DWORD PTR -340[rbp]
	mov	DWORD PTR -192[rbp], eax
	mov	edi, 0
	call	fflush@PLT
.L34:
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L38
.L21:
	mov	DWORD PTR -356[rbp], 0
	jmp	.L39
.L40:
	mov	eax, DWORD PTR -356[rbp]
	cdqe
	mov	rax, QWORD PTR -128[rbp+rax*8]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -356[rbp], 1
.L39:
	cmp	DWORD PTR -356[rbp], 14
	jle	.L40
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"350303.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"./\000"
	.align	2
.LC1:
	.ascii	"/usr/local/bin/\000"
	.align	2
.LC2:
	.ascii	"/usr/bin/\000"
	.align	2
.LC3:
	.ascii	"/bin/\000"
	.text
	.section	.rodata
	.align	2
.LC5:
	.ascii	"msh> \000"
	.align	2
.LC6:
	.ascii	" \011\012\000"
	.align	2
.LC8:
	.ascii	" \000"
	.align	2
.LC9:
	.ascii	"quit\000"
	.align	2
.LC10:
	.ascii	"exit\000"
	.align	2
.LC11:
	.ascii	"cd\000"
	.align	2
.LC12:
	.ascii	"showpids\000"
	.align	2
.LC13:
	.ascii	"[%d]: %d\012\000"
	.align	2
.LC14:
	.ascii	"history\000"
	.align	2
.LC15:
	.ascii	"[%d]: %s\012\000"
	.align	2
.LC16:
	.ascii	" : Command not found\012\000"
	.align	2
.LC7:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #224
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-220]
	mov	r3, #0
	str	r3, [fp, #-216]
	b	.L2
.L3:
	mov	r0, #255
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-216]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-124]
	ldr	r3, [fp, #-216]
	add	r3, r3, #1
	str	r3, [fp, #-216]
.L2:
	ldr	r3, [fp, #-216]
	cmp	r3, #14
	ble	.L3
	mov	r3, #0
	str	r3, [fp, #-212]
	mov	r0, #255
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-192]
.L38:
	ldr	r0, .L43+4
	bl	printf
	nop
.L4:
	ldr	r3, .L43+8
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #255
	ldr	r0, [fp, #-192]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	mov	r3, #0
	str	r3, [fp, #-208]
	ldr	r0, [fp, #-192]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-228]
	ldr	r3, [fp, #-228]
	str	r3, [fp, #-188]
	b	.L5
.L8:
	mov	r1, #255
	ldr	r0, [fp, #-184]
	bl	strndup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-208]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-144]
	ldr	r3, [fp, #-208]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-144]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-208]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-144]
.L6:
	ldr	r3, [fp, #-208]
	add	r3, r3, #1
	str	r3, [fp, #-208]
.L5:
	sub	r3, fp, #228
	ldr	r1, .L43+12
	mov	r0, r3
	bl	strsep
	str	r0, [fp, #-184]
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-208]
	cmp	r3, #4
	ble	.L8
.L7:
	mvn	r3, #0
	str	r3, [fp, #-200]
	ldr	r3, .L43+16
	sub	ip, fp, #164
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-220]
	cmp	r3, #14
	bgt	.L10
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	str	r3, [fp, #-220]
.L10:
	ldr	r3, [fp, #-220]
	sub	r3, r3, #1
	str	r3, [fp, #-204]
	b	.L11
.L12:
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-124]
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-124]
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r3, [fp, #-204]
	sub	r3, r3, #1
	str	r3, [fp, #-204]
.L11:
	ldr	r3, [fp, #-204]
	cmp	r3, #0
	bge	.L12
	mov	r3, #0
	str	r3, [fp, #-196]
	mov	r3, #0
	str	r3, [fp, #-204]
	b	.L13
.L15:
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-144]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-196]
	add	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-196]
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
.L13:
	ldr	r3, [fp, #-208]
	sub	r3, r3, #1
	ldr	r2, [fp, #-204]
	cmp	r2, r3
	bge	.L14
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-144]
	cmp	r3, #0
	bne	.L15
.L14:
	ldr	r3, [fp, #-196]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-148]
	mov	r1, r3
	ldr	r0, [fp, #-180]
	bl	strcpy
	mov	r3, #1
	str	r3, [fp, #-204]
	b	.L16
.L18:
	ldr	r0, [fp, #-180]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-180]
	add	r3, r3, r2
	ldr	r2, .L43+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-144]
	mov	r1, r3
	ldr	r0, [fp, #-180]
	bl	strcat
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
.L16:
	ldr	r3, [fp, #-208]
	sub	r3, r3, #1
	ldr	r2, [fp, #-204]
	cmp	r2, r3
	bge	.L17
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-144]
	cmp	r3, #0
	bne	.L18
.L17:
	ldr	r3, [fp, #-128]
	ldr	r1, [fp, #-180]
	mov	r0, r3
	bl	strcpy
	ldr	r0, [fp, #-180]
	bl	free
.L9:
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	bne	.L19
	mvn	r3, #0
	str	r3, [fp, #-200]
	b	.L20
.L19:
	ldr	r3, [fp, #-148]
	ldr	r1, .L43+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-148]
	ldr	r1, .L43+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-148]
	ldr	r1, .L43+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-144]
	mov	r0, r3
	bl	chdir
	b	.L20
.L22:
	ldr	r3, [fp, #-148]
	ldr	r1, .L43+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	mov	r3, #0
	str	r3, [fp, #-204]
	b	.L24
.L25:
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-64]
	mov	r2, r3
	ldr	r1, [fp, #-204]
	ldr	r0, .L43+40
	bl	printf
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
.L24:
	ldr	r2, [fp, #-204]
	ldr	r3, [fp, #-212]
	cmp	r2, r3
	blt	.L25
	b	.L20
.L23:
	ldr	r3, [fp, #-148]
	ldr	r1, .L43+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	mov	r3, #0
	str	r3, [fp, #-204]
	b	.L27
.L28:
	ldr	r3, [fp, #-204]
	add	r1, r3, #1
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	mov	r2, r3
	ldr	r0, .L43+48
	bl	printf
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
.L27:
	ldr	r2, [fp, #-204]
	ldr	r3, [fp, #-220]
	cmp	r2, r3
	blt	.L28
	b	.L20
.L26:
	ldr	r3, [fp, #-148]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #33
	bne	.L29
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-176]
	mov	r3, #0
	str	r3, [fp, #-208]
	b	.L30
.L31:
	ldr	r0, [fp, #-172]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-172]
	bl	strndup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-208]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-144]
	ldr	r3, [fp, #-208]
	add	r3, r3, #1
	str	r3, [fp, #-208]
.L30:
	sub	r2, fp, #128
	ldr	r3, [fp, #-176]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, .L43+12
	mov	r0, r3
	bl	strsep
	str	r0, [fp, #-172]
	ldr	r3, [fp, #-172]
	cmp	r3, #0
	bne	.L31
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-200]
	b	.L20
.L29:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-200]
.L20:
	ldr	r3, [fp, #-200]
	cmp	r3, #0
	bne	.L32
	ldr	r3, [fp, #-148]
	sub	r2, fp, #164
	sub	r1, fp, #148
	mov	r0, r3
	bl	execvpe
	mov	r3, r0
	cmn	r3, #1
	bne	.L33
	ldr	r3, [fp, #-148]
	str	r3, [fp, #-168]
	ldr	r0, [fp, #-168]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-168]
	add	r3, r3, r2
	ldr	r2, .L43+52
	mov	r0, r3
	mov	r1, r2
	mov	r3, #22
	mov	r2, r3
	bl	memcpy
	ldr	r0, [fp, #-168]
	bl	perror
	mov	r0, #1
	bl	exit
.L33:
	mov	r0, #0
	bl	exit
.L32:
	ldr	r3, [fp, #-200]
	cmp	r3, #0
	ble	.L34
	sub	r3, fp, #224
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-200]
	bl	waitpid
	ldr	r3, [fp, #-212]
	cmp	r3, #14
	bgt	.L35
	ldr	r3, [fp, #-212]
	add	r3, r3, #1
	str	r3, [fp, #-212]
.L35:
	ldr	r3, [fp, #-212]
	sub	r3, r3, #1
	str	r3, [fp, #-204]
	b	.L36
.L37:
	ldr	r3, [fp, #-204]
	add	r1, r3, #1
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-64]
	lsl	r3, r1, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-64]
	ldr	r3, [fp, #-204]
	sub	r3, r3, #1
	str	r3, [fp, #-204]
.L36:
	ldr	r3, [fp, #-204]
	cmp	r3, #0
	bge	.L37
	ldr	r3, [fp, #-200]
	str	r3, [fp, #-68]
	mov	r0, #0
	bl	fflush
.L34:
	ldr	r0, [fp, #-188]
	bl	free
	b	.L38
.L21:
	mov	r3, #0
	str	r3, [fp, #-216]
	b	.L39
.L40:
	ldr	r3, [fp, #-216]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-216]
	add	r3, r3, #1
	str	r3, [fp, #-216]
.L39:
	ldr	r3, [fp, #-216]
	cmp	r3, #14
	ble	.L40
	mov	r3, #0
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC17
	.word	.LC5
	.word	stdin
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
