	.file	"87637309.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"SuperCoolShell: "
.LC1:
	.string	" "
.LC2:
	.string	">"
.LC3:
	.string	"%s"
.LC4:
	.string	"<"
	.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, 464
	mov	DWORD PTR -452[rbp], edi
	mov	QWORD PTR -464[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L26:
	mov	DWORD PTR -444[rbp], 0
	mov	DWORD PTR -440[rbp], 0
	mov	DWORD PTR -436[rbp], 0
	mov	DWORD PTR -432[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -224[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -224[rbp+rax], 0
	lea	rax, -224[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -384[rbp], rax
	jmp	.L2
.L12:
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	rax, QWORD PTR -384[rbp+rax*8]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 62
	jne	.L3
	mov	DWORD PTR -436[rbp], 1
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	QWORD PTR -384[rbp+rax*8], 0
	lea	rsi, .LC2[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -400[rbp], rax
	mov	rdx, QWORD PTR -400[rbp]
	lea	rax, -112[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	rax, QWORD PTR -384[rbp+rax*8]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 60
	jne	.L5
	mov	DWORD PTR -436[rbp], 2
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	QWORD PTR -384[rbp+rax*8], 0
	lea	rsi, .LC4[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -400[rbp], rax
	mov	rdx, QWORD PTR -400[rbp]
	lea	rax, -112[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	rax, QWORD PTR -384[rbp+rax*8]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 124
	jne	.L6
	mov	DWORD PTR -432[rbp], 1
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	QWORD PTR -384[rbp+rax*8], 0
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -304[rbp], rax
	jmp	.L7
.L11:
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	rax, QWORD PTR -304[rbp+rax*8]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 62
	jne	.L8
	mov	DWORD PTR -436[rbp], 1
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	QWORD PTR -304[rbp+rax*8], 0
	lea	rsi, .LC2[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -400[rbp], rax
	mov	rdx, QWORD PTR -400[rbp]
	lea	rax, -112[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	rax, QWORD PTR -304[rbp+rax*8]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 60
	jne	.L10
	mov	DWORD PTR -436[rbp], 2
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	QWORD PTR -304[rbp+rax*8], 0
	lea	rsi, .LC4[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -400[rbp], rax
	mov	rdx, QWORD PTR -400[rbp]
	lea	rax, -112[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L9
.L10:
	add	DWORD PTR -440[rbp], 1
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	edx, DWORD PTR -440[rbp]
	movsx	rdx, edx
	mov	QWORD PTR -304[rbp+rdx*8], rax
.L7:
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	rax, QWORD PTR -304[rbp+rax*8]
	test	rax, rax
	jne	.L11
	jmp	.L4
.L9:
	jmp	.L4
.L6:
	add	DWORD PTR -444[rbp], 1
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	edx, DWORD PTR -444[rbp]
	movsx	rdx, edx
	mov	QWORD PTR -384[rbp+rdx*8], rax
.L2:
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	rax, QWORD PTR -384[rbp+rax*8]
	test	rax, rax
	jne	.L12
.L4:
	cmp	DWORD PTR -432[rbp], 1
	jne	.L13
	lea	rax, -392[rbp]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L14
	mov	edi, 0
	call	exit@PLT
.L14:
	call	fork@PLT
	mov	DWORD PTR -428[rbp], eax
	cmp	DWORD PTR -428[rbp], 0
	jne	.L15
	mov	eax, DWORD PTR -388[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -392[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -388[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -384[rbp]
	lea	rdx, -384[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	edi, 0
	call	exit@PLT
.L15:
	cmp	DWORD PTR -428[rbp], 0
	jle	.L13
	call	fork@PLT
	test	eax, eax
	jne	.L17
	mov	eax, DWORD PTR -392[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -392[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -388[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	DWORD PTR -436[rbp], 1
	je	.L18
	cmp	DWORD PTR -436[rbp], 2
	jne	.L19
.L18:
	call	fork@PLT
	mov	DWORD PTR -424[rbp], eax
	cmp	DWORD PTR -424[rbp], 0
	jne	.L20
	cmp	DWORD PTR -436[rbp], 1
	jne	.L21
	lea	rax, -112[rbp]
	mov	edx, 420
	mov	esi, 578
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -416[rbp], eax
	mov	eax, DWORD PTR -416[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -416[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L19
.L21:
	cmp	DWORD PTR -436[rbp], 2
	jne	.L19
	lea	rax, -112[rbp]
	mov	edx, 420
	mov	esi, 578
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -420[rbp], eax
	mov	eax, DWORD PTR -420[rbp]
	mov	esi, 2
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -420[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L19
.L20:
	mov	edi, 0
	call	wait@PLT
.L19:
	mov	rax, QWORD PTR -304[rbp]
	lea	rdx, -304[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	jmp	.L13
.L17:
	mov	eax, DWORD PTR -392[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -388[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	wait@PLT
	mov	edi, 0
	call	wait@PLT
.L13:
	cmp	DWORD PTR -432[rbp], 0
	jne	.L26
	call	fork@PLT
	mov	DWORD PTR -412[rbp], eax
	cmp	DWORD PTR -412[rbp], 0
	jne	.L23
	cmp	DWORD PTR -436[rbp], 1
	jne	.L24
	lea	rax, -112[rbp]
	mov	edx, 420
	mov	esi, 578
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -404[rbp], eax
	mov	eax, DWORD PTR -404[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -404[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L25
.L24:
	cmp	DWORD PTR -436[rbp], 2
	jne	.L25
	lea	rax, -112[rbp]
	mov	edx, 420
	mov	esi, 578
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -408[rbp], eax
	mov	eax, DWORD PTR -408[rbp]
	mov	esi, 2
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -408[rbp]
	mov	edi, eax
	call	close@PLT
.L25:
	mov	rax, QWORD PTR -384[rbp]
	lea	rdx, -384[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	jmp	.L26
.L23:
	mov	edi, 0
	call	wait@PLT
	jmp	.L26
	.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	"87637309.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"SuperCoolShell: \000"
	.align	2
.LC1:
	.ascii	" \000"
	.align	2
.LC2:
	.ascii	">\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.ascii	"<\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 352
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #352
	str	r0, [fp, #-352]
	str	r1, [fp, #-356]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L26:
	mov	r3, #0
	str	r3, [fp, #-344]
	mov	r3, #0
	str	r3, [fp, #-340]
	mov	r3, #0
	str	r3, [fp, #-336]
	mov	r3, #0
	str	r3, [fp, #-332]
	ldr	r0, .L28+4
	bl	printf
	ldr	r3, .L28+8
	ldr	r2, [r3]
	sub	r3, fp, #208
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #208
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-204]
	sub	r3, fp, #208
	ldr	r1, .L28+12
	mov	r0, r3
	bl	strtok
	mov	r3, r0
	str	r3, [fp, #-288]
	b	.L2
.L12:
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-284]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #62
	bne	.L3
	mov	r3, #1
	str	r3, [fp, #-336]
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-284]
	ldr	r1, .L28+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-328]
	sub	r3, fp, #108
	ldr	r2, [fp, #-328]
	ldr	r1, .L28+20
	mov	r0, r3
	bl	sprintf
	b	.L4
.L3:
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-284]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #60
	bne	.L5
	mov	r3, #2
	str	r3, [fp, #-336]
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-284]
	ldr	r1, .L28+24
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-328]
	sub	r3, fp, #108
	ldr	r2, [fp, #-328]
	ldr	r1, .L28+20
	mov	r0, r3
	bl	sprintf
	b	.L4
.L5:
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-284]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #124
	bne	.L6
	mov	r3, #1
	str	r3, [fp, #-332]
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-284]
	ldr	r1, .L28+12
	mov	r0, #0
	bl	strtok
	mov	r3, r0
	str	r3, [fp, #-248]
	b	.L7
.L11:
	ldr	r3, [fp, #-340]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-244]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #62
	bne	.L8
	mov	r3, #1
	str	r3, [fp, #-336]
	ldr	r3, [fp, #-340]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-244]
	ldr	r1, .L28+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-328]
	sub	r3, fp, #108
	ldr	r2, [fp, #-328]
	ldr	r1, .L28+20
	mov	r0, r3
	bl	sprintf
	b	.L9
.L8:
	ldr	r3, [fp, #-340]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-244]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #60
	bne	.L10
	mov	r3, #2
	str	r3, [fp, #-336]
	ldr	r3, [fp, #-340]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-244]
	ldr	r1, .L28+24
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-328]
	sub	r3, fp, #108
	ldr	r2, [fp, #-328]
	ldr	r1, .L28+20
	mov	r0, r3
	bl	sprintf
	b	.L9
.L10:
	ldr	r3, [fp, #-340]
	add	r3, r3, #1
	str	r3, [fp, #-340]
	ldr	r1, .L28+12
	mov	r0, #0
	bl	strtok
	mov	r2, r0
	ldr	r3, [fp, #-340]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-244]
.L7:
	ldr	r3, [fp, #-340]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-244]
	cmp	r3, #0
	bne	.L11
	b	.L4
.L9:
	b	.L4
.L6:
	ldr	r3, [fp, #-344]
	add	r3, r3, #1
	str	r3, [fp, #-344]
	ldr	r1, .L28+12
	mov	r0, #0
	bl	strtok
	mov	r2, r0
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-284]
.L2:
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-284]
	cmp	r3, #0
	bne	.L12
.L4:
	ldr	r3, [fp, #-332]
	cmp	r3, #1
	bne	.L13
	sub	r3, fp, #296
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L14
	mov	r0, #0
	bl	exit
.L14:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-324]
	ldr	r3, [fp, #-324]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-292]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-296]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-292]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-288]
	sub	r2, fp, #288
	mov	r1, r2
	mov	r0, r3
	bl	execvp
	mov	r0, #0
	bl	exit
.L15:
	ldr	r3, [fp, #-324]
	cmp	r3, #0
	ble	.L13
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-296]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-296]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-292]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-336]
	cmp	r3, #1
	beq	.L18
	ldr	r3, [fp, #-336]
	cmp	r3, #2
	bne	.L19
.L18:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-320]
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-336]
	cmp	r3, #1
	bne	.L21
	sub	r3, fp, #108
	mov	r2, #420
	ldr	r1, .L28+28
	mov	r0, r3
	bl	open
	str	r0, [fp, #-312]
	mov	r1, #1
	ldr	r0, [fp, #-312]
	bl	dup2
	ldr	r0, [fp, #-312]
	bl	close
	b	.L19
.L21:
	ldr	r3, [fp, #-336]
	cmp	r3, #2
	bne	.L19
	sub	r3, fp, #108
	mov	r2, #420
	ldr	r1, .L28+28
	mov	r0, r3
	bl	open
	str	r0, [fp, #-316]
	mov	r1, #2
	ldr	r0, [fp, #-316]
	bl	dup2
	ldr	r0, [fp, #-316]
	bl	close
	b	.L19
.L20:
	mov	r0, #0
	bl	wait
.L19:
	ldr	r3, [fp, #-248]
	sub	r2, fp, #248
	mov	r1, r2
	mov	r0, r3
	bl	execvp
	b	.L13
.L17:
	ldr	r3, [fp, #-296]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-292]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	wait
	mov	r0, #0
	bl	wait
.L13:
	ldr	r3, [fp, #-332]
	cmp	r3, #0
	bne	.L26
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-308]
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-336]
	cmp	r3, #1
	bne	.L24
	sub	r3, fp, #108
	mov	r2, #420
	ldr	r1, .L28+28
	mov	r0, r3
	bl	open
	str	r0, [fp, #-300]
	mov	r1, #1
	ldr	r0, [fp, #-300]
	bl	dup2
	ldr	r0, [fp, #-300]
	bl	close
	b	.L25
.L24:
	ldr	r3, [fp, #-336]
	cmp	r3, #2
	bne	.L25
	sub	r3, fp, #108
	mov	r2, #420
	ldr	r1, .L28+28
	mov	r0, r3
	bl	open
	str	r0, [fp, #-304]
	mov	r1, #2
	ldr	r0, [fp, #-304]
	bl	dup2
	ldr	r0, [fp, #-304]
	bl	close
.L25:
	ldr	r3, [fp, #-288]
	sub	r2, fp, #288
	mov	r1, r2
	mov	r0, r3
	bl	execvp
	b	.L26
.L23:
	mov	r0, #0
	bl	wait
	b	.L26
.L29:
	.align	2
.L28:
	.word	.LC5
	.word	.LC0
	.word	stdin
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	578
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
