	.file	"124852.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"Door: CLOSED"
.LC2:
	.string	"Door: OPENING"
.LC3:
	.string	"Door: OPEN"
.LC4:
	.string	"Door: CLOSING"
.LC5:
	.string	"Door: STOPPED_WHILE_CLOSING"
.LC6:
	.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
	sub	rsp, 1456
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 7160563357516592482
	movabs	rdx, 110386756151660
	mov	QWORD PTR -624[rbp], rax
	mov	QWORD PTR -616[rbp], rdx
	mov	QWORD PTR -608[rbp], 0
	mov	QWORD PTR -600[rbp], 0
	mov	QWORD PTR -592[rbp], 0
	mov	QWORD PTR -584[rbp], 0
	mov	QWORD PTR -576[rbp], 0
	mov	QWORD PTR -568[rbp], 0
	mov	QWORD PTR -560[rbp], 0
	mov	QWORD PTR -552[rbp], 0
	mov	QWORD PTR -544[rbp], 0
	mov	QWORD PTR -536[rbp], 0
	mov	QWORD PTR -528[rbp], 0
	mov	QWORD PTR -520[rbp], 0
	mov	QWORD PTR -512[rbp], 0
	mov	QWORD PTR -504[rbp], 0
	mov	QWORD PTR -496[rbp], 0
	mov	QWORD PTR -488[rbp], 0
	mov	QWORD PTR -480[rbp], 0
	mov	QWORD PTR -472[rbp], 0
	mov	QWORD PTR -464[rbp], 0
	mov	QWORD PTR -456[rbp], 0
	mov	QWORD PTR -448[rbp], 0
	mov	QWORD PTR -440[rbp], 0
	mov	QWORD PTR -432[rbp], 0
	movabs	rax, 8026363850119149923
	movabs	rdx, 111550592217197
	mov	QWORD PTR -416[rbp], rax
	mov	QWORD PTR -408[rbp], rdx
	mov	QWORD PTR -400[rbp], 0
	mov	QWORD PTR -392[rbp], 0
	mov	QWORD PTR -384[rbp], 0
	mov	QWORD PTR -376[rbp], 0
	mov	QWORD PTR -368[rbp], 0
	mov	QWORD PTR -360[rbp], 0
	mov	QWORD PTR -352[rbp], 0
	mov	QWORD PTR -344[rbp], 0
	mov	QWORD PTR -336[rbp], 0
	mov	QWORD PTR -328[rbp], 0
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	lea	rdx, -1424[rbp]
	mov	eax, 0
	mov	ecx, 100
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -1444[rbp], 0
	mov	DWORD PTR -1440[rbp], 0
	jmp	.L2
.L17:
	lea	rcx, -208[rbp]
	lea	rax, -624[rbp]
	mov	edx, 12
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	mov	DWORD PTR -1432[rbp], eax
	lea	rcx, -208[rbp]
	lea	rax, -416[rbp]
	mov	edx, 12
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	mov	DWORD PTR -1428[rbp], eax
	cmp	DWORD PTR -1432[rbp], 0
	jne	.L30
	cmp	DWORD PTR -1444[rbp], 5
	ja	.L3
	mov	eax, DWORD PTR -1444[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L5[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L5[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L10-.L5
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.text
.L10:
	mov	DWORD PTR -1444[rbp], 1
	mov	eax, DWORD PTR -1440[rbp]
	cdqe
	mov	DWORD PTR -1424[rbp+rax*4], 1
	jmp	.L3
.L9:
	mov	DWORD PTR -1444[rbp], 5
	mov	eax, DWORD PTR -1440[rbp]
	cdqe
	mov	DWORD PTR -1424[rbp+rax*4], 5
	jmp	.L3
.L8:
	mov	DWORD PTR -1444[rbp], 3
	mov	eax, DWORD PTR -1440[rbp]
	cdqe
	mov	DWORD PTR -1424[rbp+rax*4], 3
	jmp	.L3
.L7:
	mov	DWORD PTR -1444[rbp], 4
	mov	eax, DWORD PTR -1440[rbp]
	cdqe
	mov	DWORD PTR -1424[rbp+rax*4], 4
	jmp	.L3
.L6:
	mov	DWORD PTR -1444[rbp], 1
	mov	eax, DWORD PTR -1440[rbp]
	cdqe
	mov	DWORD PTR -1424[rbp+rax*4], 1
	jmp	.L3
.L4:
	mov	DWORD PTR -1444[rbp], 3
	mov	eax, DWORD PTR -1440[rbp]
	cdqe
	mov	DWORD PTR -1424[rbp+rax*4], 3
	jmp	.L3
.L30:
	nop
.L3:
	cmp	DWORD PTR -1428[rbp], 0
	jne	.L31
	cmp	DWORD PTR -1444[rbp], 3
	je	.L12
	cmp	DWORD PTR -1444[rbp], 3
	jg	.L13
	cmp	DWORD PTR -1444[rbp], 2
	je	.L14
	cmp	DWORD PTR -1444[rbp], 2
	jg	.L13
	cmp	DWORD PTR -1444[rbp], 0
	je	.L15
	cmp	DWORD PTR -1444[rbp], 1
	je	.L16
	jmp	.L13
.L15:
	mov	DWORD PTR -1444[rbp], 2
	mov	eax, DWORD PTR -1440[rbp]
	cdqe
	mov	DWORD PTR -1424[rbp+rax*4], 1
	mov	eax, DWORD PTR -1440[rbp]
	add	eax, 1
	cdqe
	mov	DWORD PTR -1424[rbp+rax*4], 2
	add	DWORD PTR -1440[rbp], 1
	jmp	.L11
.L16:
	mov	DWORD PTR -1444[rbp], 2
	mov	eax, DWORD PTR -1440[rbp]
	cdqe
	mov	DWORD PTR -1424[rbp+rax*4], 2
	jmp	.L11
.L14:
	mov	DWORD PTR -1444[rbp], 2
	mov	eax, DWORD PTR -1440[rbp]
	cdqe
	mov	DWORD PTR -1424[rbp+rax*4], 3
	mov	eax, DWORD PTR -1440[rbp]
	add	eax, 1
	cdqe
	mov	DWORD PTR -1424[rbp+rax*4], 0
	add	DWORD PTR -1440[rbp], 1
	jmp	.L11
.L12:
	mov	DWORD PTR -1444[rbp], 0
	mov	eax, DWORD PTR -1440[rbp]
	cdqe
	mov	DWORD PTR -1424[rbp+rax*4], 0
	jmp	.L11
.L13:
	sub	DWORD PTR -1440[rbp], 1
	jmp	.L11
.L31:
	nop
.L11:
	add	DWORD PTR -1440[rbp], 1
.L2:
	lea	rax, -208[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L17
	mov	eax, DWORD PTR -1440[rbp]
	mov	DWORD PTR -1436[rbp], eax
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	DWORD PTR -1440[rbp], 0
	jmp	.L18
.L27:
	mov	eax, DWORD PTR -1440[rbp]
	cdqe
	mov	eax, DWORD PTR -1424[rbp+rax*4]
	cmp	eax, 5
	ja	.L19
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L21[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L21[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L21:
	.long	.L26-.L21
	.long	.L25-.L21
	.long	.L24-.L21
	.long	.L23-.L21
	.long	.L22-.L21
	.long	.L20-.L21
	.text
.L26:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L19
.L25:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L19
.L24:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L19
.L23:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L19
.L22:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L19
.L20:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	nop
.L19:
	add	DWORD PTR -1440[rbp], 1
.L18:
	mov	eax, DWORD PTR -1440[rbp]
	cmp	eax, DWORD PTR -1436[rbp]
	jl	.L27
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	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	"124852.c"
	.text
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.ascii	"Door: CLOSED\000"
	.align	2
.LC4:
	.ascii	"Door: OPENING\000"
	.align	2
.LC5:
	.ascii	"Door: OPEN\000"
	.align	2
.LC6:
	.ascii	"Door: CLOSING\000"
	.align	2
.LC7:
	.ascii	"Door: STOPPED_WHILE_CLOSING\000"
	.align	2
.LC8:
	.ascii	"Door: STOPPED_WHILE_OPENING\000"
	.align	2
.LC0:
	.ascii	"button_clicked\000"
	.space	185
	.align	2
.LC1:
	.ascii	"cycle_complete\000"
	.space	185
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1424
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1424
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L33+4
	sub	ip, fp, #608
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r3, #16
	strb	r3, [ip]
	sub	r3, fp, #592
	sub	r3, r3, #1
	mov	r2, #185
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L33+8
	sub	ip, fp, #408
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r3, #16
	strb	r3, [ip]
	sub	r3, fp, #392
	sub	r3, r3, #1
	mov	r2, #185
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1392
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #800
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1428]
	mov	r3, #0
	str	r3, [fp, #-1424]
	b	.L2
.L18:
	sub	r1, fp, #208
	sub	r3, fp, #608
	mov	r2, #12
	mov	r0, r3
	bl	strncmp
	str	r0, [fp, #-1416]
	sub	r1, fp, #208
	sub	r3, fp, #408
	mov	r2, #12
	mov	r0, r3
	bl	strncmp
	str	r0, [fp, #-1412]
	ldr	r3, [fp, #-1416]
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-1428]
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L10:
	mov	r3, #1
	str	r3, [fp, #-1428]
	ldr	r3, [fp, #-1424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-1404]
	b	.L3
.L9:
	mov	r3, #5
	str	r3, [fp, #-1428]
	ldr	r3, [fp, #-1424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #5
	str	r2, [r3, #-1404]
	b	.L3
.L8:
	mov	r3, #3
	str	r3, [fp, #-1428]
	ldr	r3, [fp, #-1424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #3
	str	r2, [r3, #-1404]
	b	.L3
.L7:
	mov	r3, #4
	str	r3, [fp, #-1428]
	ldr	r3, [fp, #-1424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #4
	str	r2, [r3, #-1404]
	b	.L3
.L6:
	mov	r3, #1
	str	r3, [fp, #-1428]
	ldr	r3, [fp, #-1424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-1404]
	b	.L3
.L4:
	mov	r3, #3
	str	r3, [fp, #-1428]
	ldr	r3, [fp, #-1424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #3
	str	r2, [r3, #-1404]
	b	.L3
.L31:
	nop
.L3:
	ldr	r3, [fp, #-1412]
	cmp	r3, #0
	bne	.L32
	ldr	r3, [fp, #-1428]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L12
.L14:
	.word	.L17
	.word	.L16
	.word	.L15
	.word	.L13
.L17:
	mov	r3, #2
	str	r3, [fp, #-1428]
	ldr	r3, [fp, #-1424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-1404]
	ldr	r3, [fp, #-1424]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #2
	str	r2, [r3, #-1404]
	ldr	r3, [fp, #-1424]
	add	r3, r3, #1
	str	r3, [fp, #-1424]
	b	.L11
.L16:
	mov	r3, #2
	str	r3, [fp, #-1428]
	ldr	r3, [fp, #-1424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #2
	str	r2, [r3, #-1404]
	b	.L11
.L15:
	mov	r3, #2
	str	r3, [fp, #-1428]
	ldr	r3, [fp, #-1424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #3
	str	r2, [r3, #-1404]
	ldr	r3, [fp, #-1424]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1404]
	ldr	r3, [fp, #-1424]
	add	r3, r3, #1
	str	r3, [fp, #-1424]
	b	.L11
.L13:
	mov	r3, #0
	str	r3, [fp, #-1428]
	ldr	r3, [fp, #-1424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1404]
	b	.L11
.L12:
	ldr	r3, [fp, #-1424]
	sub	r3, r3, #1
	str	r3, [fp, #-1424]
	b	.L11
.L32:
	nop
.L11:
	ldr	r3, [fp, #-1424]
	add	r3, r3, #1
	str	r3, [fp, #-1424]
.L2:
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L33+12
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	ldr	r3, [fp, #-1424]
	str	r3, [fp, #-1420]
	ldr	r0, .L33+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-1424]
	b	.L19
.L28:
	ldr	r3, [fp, #-1424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1404]
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L20
.L22:
	.word	.L27
	.word	.L26
	.word	.L25
	.word	.L24
	.word	.L23
	.word	.L21
.L27:
	ldr	r0, .L33+16
	bl	puts
	b	.L20
.L26:
	ldr	r0, .L33+20
	bl	puts
	b	.L20
.L25:
	ldr	r0, .L33+24
	bl	puts
	b	.L20
.L24:
	ldr	r0, .L33+28
	bl	puts
	b	.L20
.L23:
	ldr	r0, .L33+32
	bl	puts
	b	.L20
.L21:
	ldr	r0, .L33+36
	bl	puts
	nop
.L20:
	ldr	r3, [fp, #-1424]
	add	r3, r3, #1
	str	r3, [fp, #-1424]
.L19:
	ldr	r2, [fp, #-1424]
	ldr	r3, [fp, #-1420]
	cmp	r2, r3
	blt	.L28
	mov	r3, #0
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
