	.file	"215768568.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"$ "
	.text
	.type	prompt, @function
prompt:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 2
	lea	rsi, .LC0[rip]
	mov	edi, 2
	call	write@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	prompt, .-prompt
	.section	.rodata
.LC1:
	.string	"?\n"
	.text
	.type	err, @function
err:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -4[rbp], 0
	jns	.L4
	mov	edx, 2
	lea	rsi, .LC1[rip]
	mov	edi, 2
	call	write@PLT
	cmp	DWORD PTR -8[rbp], 0
	je	.L4
	mov	edi, 1
	call	exit@PLT
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	err, .-err
	.type	is_delim, @function
is_delim:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	je	.L6
	cmp	DWORD PTR -4[rbp], 124
	jne	.L7
.L6:
	mov	eax, 1
	jmp	.L9
.L7:
	mov	eax, 0
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	is_delim, .-is_delim
	.type	is_redir, @function
is_redir:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 62
	je	.L11
	cmp	DWORD PTR -4[rbp], 60
	jne	.L12
.L11:
	mov	eax, 1
	jmp	.L14
.L12:
	mov	eax, 0
.L14:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	is_redir, .-is_redir
	.type	is_blank, @function
is_blank:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 32
	je	.L16
	cmp	DWORD PTR -4[rbp], 9
	je	.L16
	cmp	DWORD PTR -4[rbp], 10
	jne	.L17
.L16:
	mov	eax, 1
	jmp	.L19
.L17:
	mov	eax, 0
.L19:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	is_blank, .-is_blank
	.type	is_special, @function
is_special:
.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, 8
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	is_delim
	test	eax, eax
	jne	.L21
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	is_redir
	test	eax, eax
	jne	.L21
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	is_blank
	test	eax, eax
	je	.L22
.L21:
	mov	eax, 1
	jmp	.L24
.L22:
	mov	eax, 0
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	is_special, .-is_special
	.section	.rodata
.LC2:
	.string	"cd"
	.text
	.type	run, @function
run:
.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, 864
	mov	QWORD PTR -856[rbp], rdi
	mov	DWORD PTR -860[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -832[rbp], 0
	mov	QWORD PTR -824[rbp], 0
	mov	DWORD PTR -808[rbp], 0
	mov	DWORD PTR -804[rbp], 0
	mov	DWORD PTR -840[rbp], 0
	lea	rdx, -800[rbp]
	mov	eax, 0
	mov	ecx, 99
	mov	rdi, rdx
	rep stosq
	lea	rax, -800[rbp]
	add	rax, 784
	mov	QWORD PTR -816[rbp], rax
.L33:
	sub	QWORD PTR -856[rbp], 1
	mov	rax, QWORD PTR -856[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	is_delim
	test	eax, eax
	jne	.L47
	mov	rax, QWORD PTR -856[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	is_special
	test	eax, eax
	jne	.L28
	add	QWORD PTR -856[rbp], 1
	mov	rax, QWORD PTR -856[rbp]
	mov	BYTE PTR [rax], 0
.L29:
	sub	QWORD PTR -856[rbp], 1
	mov	rax, QWORD PTR -856[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	is_special
	test	eax, eax
	je	.L29
	add	QWORD PTR -856[rbp], 1
	sub	QWORD PTR -816[rbp], 8
	mov	rax, QWORD PTR -816[rbp]
	mov	rdx, QWORD PTR -856[rbp]
	mov	QWORD PTR [rax], rdx
.L28:
	mov	rax, QWORD PTR -856[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	is_redir
	test	eax, eax
	je	.L33
	mov	rax, QWORD PTR -856[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 60
	jne	.L31
	mov	rax, QWORD PTR -816[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -832[rbp], rax
	jmp	.L32
.L31:
	mov	rax, QWORD PTR -816[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -824[rbp], rax
.L32:
	lea	rdx, -800[rbp]
	mov	rax, QWORD PTR -816[rbp]
	sub	rax, rdx
	cmp	rax, 784
	je	.L33
	add	QWORD PTR -816[rbp], 8
	jmp	.L33
.L47:
	nop
	lea	rdx, -800[rbp]
	mov	rax, QWORD PTR -816[rbp]
	sub	rax, rdx
	cmp	rax, 784
	je	.L48
	mov	rax, QWORD PTR -816[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR -816[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	chdir@PLT
	mov	esi, 0
	mov	edi, eax
	call	err
	jmp	.L25
.L36:
	mov	rax, QWORD PTR -856[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L37
	lea	rax, -808[rbp]
	mov	rdi, rax
	call	pipe@PLT
	mov	eax, DWORD PTR -804[rbp]
	mov	DWORD PTR -840[rbp], eax
.L37:
	call	fork@PLT
	mov	DWORD PTR -836[rbp], eax
	cmp	DWORD PTR -836[rbp], 0
	je	.L38
	mov	eax, DWORD PTR -836[rbp]
	mov	esi, 1
	mov	edi, eax
	call	err
	cmp	DWORD PTR -840[rbp], 0
	je	.L39
	mov	edx, DWORD PTR -840[rbp]
	mov	rax, QWORD PTR -856[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	run
	mov	eax, DWORD PTR -840[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -808[rbp]
	mov	edi, eax
	call	close@PLT
.L39:
	mov	edi, 0
	call	wait@PLT
	jmp	.L25
.L38:
	cmp	DWORD PTR -840[rbp], 0
	je	.L40
	mov	eax, DWORD PTR -808[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -808[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -840[rbp]
	mov	edi, eax
	call	close@PLT
.L40:
	cmp	QWORD PTR -832[rbp], 0
	je	.L41
	mov	edi, 0
	call	close@PLT
	mov	rax, QWORD PTR -832[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	esi, 1
	mov	edi, eax
	call	err
.L41:
	cmp	DWORD PTR -860[rbp], 0
	je	.L42
	mov	eax, DWORD PTR -860[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -860[rbp]
	mov	edi, eax
	call	close@PLT
.L42:
	cmp	QWORD PTR -824[rbp], 0
	je	.L43
	mov	edi, 1
	call	close@PLT
	mov	rax, QWORD PTR -824[rbp]
	mov	esi, 438
	mov	rdi, rax
	call	creat@PLT
	mov	esi, 1
	mov	edi, eax
	call	err
.L43:
	mov	rax, QWORD PTR -816[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -816[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	esi, 1
	mov	edi, eax
	call	err
	jmp	.L25
.L48:
	nop
.L25:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	run, .-run
	.globl	main
	.type	main, @function
main:
.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, 544
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L52:
	mov	eax, 0
	call	prompt
	mov	QWORD PTR -528[rbp], 0
	mov	QWORD PTR -520[rbp], 0
	lea	rdx, -512[rbp]
	mov	eax, 0
	mov	ecx, 62
	mov	rdi, rdx
	rep stosq
	lea	rax, -528[rbp]
	mov	QWORD PTR -536[rbp], rax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, QWORD PTR -536[rbp]
	lea	rcx, 1[rdx]
	mov	rdx, rax
	mov	esi, 511
	mov	rdi, rcx
	call	fgets@PLT
	test	rax, rax
	jne	.L51
	mov	edi, 0
	call	exit@PLT
.L51:
	add	QWORD PTR -536[rbp], 1
	mov	rax, QWORD PTR -536[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L51
	mov	rax, QWORD PTR -536[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	run
	jmp	.L52
	.cfi_endproc
.LFE13:
	.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	"215768568.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"$ \000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prompt, %function
prompt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #2
	ldr	r1, .L2
	mov	r0, #2
	bl	write
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	prompt, .-prompt
	.section	.rodata
	.align	2
.LC1:
	.ascii	"?\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	err, %function
err:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L6
	mov	r2, #2
	ldr	r1, .L7
	mov	r0, #2
	bl	write
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L6
	mov	r0, #1
	bl	exit
.L6:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.size	err, .-err
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_delim, %function
is_delim:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-8]
	cmp	r3, #124
	bne	.L11
.L10:
	mov	r3, #1
	b	.L13
.L11:
	mov	r3, #0
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_delim, .-is_delim
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_redir, %function
is_redir:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #62
	beq	.L15
	ldr	r3, [fp, #-8]
	cmp	r3, #60
	bne	.L16
.L15:
	mov	r3, #1
	b	.L18
.L16:
	mov	r3, #0
.L18:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_redir, .-is_redir
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_blank, %function
is_blank:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #32
	beq	.L20
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	beq	.L20
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L21
.L20:
	mov	r3, #1
	b	.L23
.L21:
	mov	r3, #0
.L23:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_blank, .-is_blank
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_special, %function
is_special:
	@ 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	is_delim
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r0, [fp, #-8]
	bl	is_redir
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r0, [fp, #-8]
	bl	is_blank
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
.L25:
	mov	r3, #1
	b	.L28
.L26:
	mov	r3, #0
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	is_special, .-is_special
	.section	.rodata
	.align	2
.LC2:
	.ascii	"cd\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	run, %function
run:
	@ args = 0, pretend = 0, frame = 440
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #440
	str	r0, [fp, #-440]
	str	r1, [fp, #-444]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-432]
	mov	r3, #0
	str	r3, [fp, #-428]
	mov	r3, #0
	str	r3, [fp, #-412]
	mov	r3, #0
	str	r3, [fp, #-408]
	mov	r3, #0
	str	r3, [fp, #-424]
	sub	r3, fp, #404
	mov	r2, #396
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #404
	add	r3, r3, #392
	str	r3, [fp, #-420]
.L37:
	ldr	r3, [fp, #-440]
	sub	r3, r3, #1
	str	r3, [fp, #-440]
	ldr	r3, [fp, #-440]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_delim
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	ldr	r3, [fp, #-440]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_special
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	ldr	r3, [fp, #-440]
	add	r3, r3, #1
	str	r3, [fp, #-440]
	ldr	r3, [fp, #-440]
	mov	r2, #0
	strb	r2, [r3]
.L33:
	ldr	r3, [fp, #-440]
	sub	r3, r3, #1
	str	r3, [fp, #-440]
	ldr	r3, [fp, #-440]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_special
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-440]
	add	r3, r3, #1
	str	r3, [fp, #-440]
	ldr	r3, [fp, #-420]
	sub	r3, r3, #4
	str	r3, [fp, #-420]
	ldr	r3, [fp, #-420]
	ldr	r2, [fp, #-440]
	str	r2, [r3]
.L32:
	ldr	r3, [fp, #-440]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_redir
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-440]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #60
	bne	.L35
	ldr	r3, [fp, #-420]
	ldr	r3, [r3]
	str	r3, [fp, #-432]
	b	.L36
.L35:
	ldr	r3, [fp, #-420]
	ldr	r3, [r3]
	str	r3, [fp, #-428]
.L36:
	sub	r3, fp, #404
	ldr	r2, [fp, #-420]
	sub	r3, r2, r3
	cmp	r3, #392
	beq	.L37
	ldr	r3, [fp, #-420]
	add	r3, r3, #4
	str	r3, [fp, #-420]
	b	.L37
.L51:
	nop
	sub	r3, fp, #404
	ldr	r2, [fp, #-420]
	sub	r3, r2, r3
	cmp	r3, #392
	beq	.L52
	ldr	r3, [fp, #-420]
	ldr	r3, [r3]
	ldr	r1, .L53+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
	ldr	r3, [fp, #-420]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	mov	r1, #0
	mov	r0, r3
	bl	err
	b	.L29
.L40:
	ldr	r3, [fp, #-440]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L41
	sub	r3, fp, #412
	mov	r0, r3
	bl	pipe
	ldr	r3, [fp, #-408]
	str	r3, [fp, #-424]
.L41:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-416]
	ldr	r3, [fp, #-416]
	cmp	r3, #0
	beq	.L42
	mov	r1, #1
	ldr	r0, [fp, #-416]
	bl	err
	ldr	r3, [fp, #-424]
	cmp	r3, #0
	beq	.L43
	ldr	r1, [fp, #-424]
	ldr	r0, [fp, #-440]
	bl	run
	ldr	r0, [fp, #-424]
	bl	close
	ldr	r3, [fp, #-412]
	mov	r0, r3
	bl	close
.L43:
	mov	r0, #0
	bl	wait
	b	.L29
.L42:
	ldr	r3, [fp, #-424]
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-412]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-412]
	mov	r0, r3
	bl	close
	ldr	r0, [fp, #-424]
	bl	close
.L44:
	ldr	r3, [fp, #-432]
	cmp	r3, #0
	beq	.L45
	mov	r0, #0
	bl	close
	mov	r1, #0
	ldr	r0, [fp, #-432]
	bl	open
	mov	r3, r0
	mov	r1, #1
	mov	r0, r3
	bl	err
.L45:
	ldr	r3, [fp, #-444]
	cmp	r3, #0
	beq	.L46
	mov	r1, #1
	ldr	r0, [fp, #-444]
	bl	dup2
	ldr	r0, [fp, #-444]
	bl	close
.L46:
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	beq	.L47
	mov	r0, #1
	bl	close
	ldr	r1, .L53+8
	ldr	r0, [fp, #-428]
	bl	creat
	mov	r3, r0
	mov	r1, #1
	mov	r0, r3
	bl	err
.L47:
	ldr	r3, [fp, #-420]
	ldr	r3, [r3]
	ldr	r1, [fp, #-420]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	mov	r1, #1
	mov	r0, r3
	bl	err
	b	.L29
.L52:
	nop
.L29:
	ldr	r3, .L53
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC3
	.word	.LC2
	.word	438
	.size	run, .-run
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 520
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #520
	ldr	r3, .L60
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L58:
	bl	prompt
	mov	r3, #0
	str	r3, [fp, #-520]
	sub	r3, fp, #516
	mov	r2, #508
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #520
	str	r3, [fp, #-524]
	ldr	r3, [fp, #-524]
	add	r3, r3, #1
	ldr	r2, .L60+4
	ldr	r2, [r2]
	ldr	r1, .L60+8
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L57
	mov	r0, #0
	bl	exit
.L57:
	ldr	r3, [fp, #-524]
	add	r3, r3, #1
	str	r3, [fp, #-524]
	ldr	r3, [fp, #-524]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L57
	mov	r1, #0
	ldr	r0, [fp, #-524]
	bl	run
	b	.L58
.L61:
	.align	2
.L60:
	.word	.LC4
	.word	stdin
	.word	511
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
