	.file	"925663.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Door: CLOSED"
.LC1:
	.string	"Door: OPENING"
.LC2:
	.string	"Door: OPEN"
.LC3:
	.string	"Door: CLOSING"
.LC4:
	.string	"Door: STOPPED_WHILE_CLOSING"
.LC5:
	.string	"Door: STOPPED_WHILE_OPENING"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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, 520
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -512[rbp], 1
	mov	DWORD PTR -520[rbp], 0
.L6:
	call	getchar@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	mov	BYTE PTR -432[rbp+rax], dl
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	movzx	eax, BYTE PTR -432[rbp+rax]
	cmp	al, -1
	je	.L29
.L2:
	call	getchar@PLT
	cmp	eax, 10
	je	.L30
	jmp	.L2
.L30:
	nop
	add	DWORD PTR -520[rbp], 1
	jmp	.L6
.L29:
	nop
	mov	DWORD PTR -520[rbp], 0
	jmp	.L7
.L16:
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	movzx	eax, BYTE PTR -432[rbp+rax]
	cmp	al, 98
	jne	.L8
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	cmp	eax, 1
	jne	.L9
	mov	eax, DWORD PTR -520[rbp]
	add	eax, 1
	cdqe
	mov	DWORD PTR -512[rbp+rax*4], 2
.L9:
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	cmp	eax, 2
	jne	.L10
	mov	eax, DWORD PTR -520[rbp]
	add	eax, 1
	cdqe
	mov	DWORD PTR -512[rbp+rax*4], 6
.L10:
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	cmp	eax, 3
	jne	.L11
	mov	eax, DWORD PTR -520[rbp]
	add	eax, 1
	cdqe
	mov	DWORD PTR -512[rbp+rax*4], 4
.L11:
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	cmp	eax, 4
	jne	.L12
	mov	eax, DWORD PTR -520[rbp]
	add	eax, 1
	cdqe
	mov	DWORD PTR -512[rbp+rax*4], 5
.L12:
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	cmp	eax, 5
	jne	.L13
	mov	eax, DWORD PTR -520[rbp]
	add	eax, 1
	cdqe
	mov	DWORD PTR -512[rbp+rax*4], 2
.L13:
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	cmp	eax, 6
	jne	.L14
	mov	eax, DWORD PTR -520[rbp]
	add	eax, 1
	cdqe
	mov	DWORD PTR -512[rbp+rax*4], 4
	jmp	.L14
.L8:
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	cmp	eax, 2
	jne	.L15
	mov	eax, DWORD PTR -520[rbp]
	add	eax, 1
	cdqe
	mov	DWORD PTR -512[rbp+rax*4], 3
.L15:
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	cmp	eax, 4
	jne	.L14
	mov	eax, DWORD PTR -520[rbp]
	add	eax, 1
	cdqe
	mov	DWORD PTR -512[rbp+rax*4], 1
.L14:
	add	DWORD PTR -520[rbp], 1
.L7:
	mov	eax, DWORD PTR -520[rbp]
	movsx	rbx, eax
	lea	rax, -432[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L16
	mov	DWORD PTR -516[rbp], 0
	jmp	.L17
.L24:
	mov	eax, DWORD PTR -516[rbp]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	cmp	eax, 1
	jne	.L18
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L18:
	mov	eax, DWORD PTR -516[rbp]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	cmp	eax, 2
	jne	.L19
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L19:
	mov	eax, DWORD PTR -516[rbp]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	cmp	eax, 3
	jne	.L20
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L20:
	mov	eax, DWORD PTR -516[rbp]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	cmp	eax, 4
	jne	.L21
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L21:
	mov	eax, DWORD PTR -516[rbp]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	cmp	eax, 5
	jne	.L22
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L22:
	mov	eax, DWORD PTR -516[rbp]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	cmp	eax, 6
	jne	.L23
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L23:
	add	DWORD PTR -516[rbp], 1
.L17:
	mov	eax, DWORD PTR -520[rbp]
	add	eax, 1
	cmp	DWORD PTR -516[rbp], eax
	jle	.L24
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"925663.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 488
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #488
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-488]
	mov	r3, #0
	str	r3, [fp, #-492]
.L5:
	bl	getchar
	mov	r3, r0
	and	r1, r3, #255
	sub	r2, fp, #408
	ldr	r3, [fp, #-492]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L4:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	beq	.L8
	b	.L4
.L8:
	nop
	ldr	r3, [fp, #-492]
	add	r3, r3, #1
	str	r3, [fp, #-492]
	b	.L5
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
