	.file	"956816.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	map, @object
	.size	map, 136
map:
	.string	"+++++ N    +++++"
	.string	"++++O      O++++"
	.string	"++O++ O    ++O++"
	.string	"           O   E"
	.string	"W   O           "
	.string	"++O++    O ++O++"
	.string	"++++O      O++++"
	.string	"+++++    S +++++"
	.align 32
	.type	L, @object
	.size	L, 240
L:
	.long	0
	.long	0
	.long	9
	.long	2
	.long	6
	.long	0
	.long	0
	.long	15
	.long	3
	.long	11
	.long	0
	.long	0
	.long	23
	.long	5
	.long	9
	.long	0
	.long	0
	.long	25
	.long	4
	.long	4
	.long	0
	.long	0
	.long	10
	.long	1
	.long	4
	.long	0
	.long	0
	.long	17
	.long	1
	.long	11
	.long	0
	.long	0
	.long	27
	.long	2
	.long	13
	.long	0
	.long	0
	.long	18
	.long	5
	.long	13
	.long	0
	.long	0
	.long	22
	.long	6
	.long	11
	.long	0
	.long	0
	.long	7
	.long	6
	.long	4
	.long	0
	.long	0
	.long	8
	.long	5
	.long	2
	.long	0
	.long	0
	.long	11
	.long	2
	.long	2
	.align 32
	.type	b, @object
	.size	b, 128
b:
	.long	0
	.long	31
	.quad	0
	.long	0
	.long	3
	.quad	0
	.long	0
	.long	2
	.quad	0
	.long	0
	.long	4
	.quad	0
	.long	0
	.long	14
	.quad	0
	.long	0
	.long	29
	.quad	0
	.long	0
	.long	28
	.quad	0
	.long	0
	.long	30
	.quad	0
	.section	.rodata
.LC0:
	.string	"B_NW"
.LC1:
	.string	"B_NE"
.LC2:
	.string	"B_EN"
.LC3:
	.string	"B_ES"
.LC4:
	.string	"B_SE"
.LC5:
	.string	"B_SW"
.LC6:
	.string	"B_WS"
.LC7:
	.string	"B_WN"
	.section	.data.rel.local,"aw"
	.align 32
	.type	button_names, @object
	.size	button_names, 64
button_names:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.section	.rodata
	.align 32
	.type	btn_to_sem, @object
	.size	btn_to_sem, 32
btn_to_sem:
	.long	5
	.long	4
	.long	7
	.long	6
	.long	9
	.long	8
	.long	11
	.long	10
	.local	mode1_duration
	.comm	mode1_duration,4,4
	.data
	.align 16
	.type	led1, @object
	.size	led1, 24
led1:
	.value	500
	.value	500
	.value	500
	.value	500
	.value	500
	.value	500
	.value	500
	.value	500
	.value	500
	.value	500
	.value	500
	.value	500
	.align 16
	.type	mode2_duration, @object
	.size	mode2_duration, 24
mode2_duration:
	.long	2000
	.long	15000
	.long	5000
	.long	2000
	.long	15000
	.long	5000
	.align 32
	.type	led2, @object
	.size	led2, 144
led2:
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	1
	.value	0
	.value	1
	.value	1
	.value	1
	.value	0
	.value	0
	.value	1
	.value	1
	.value	0
	.value	0
	.value	0
	.value	100
	.value	0
	.value	100
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	1
	.value	0
	.value	1
	.value	0
	.value	0
	.value	0
	.value	1
	.value	1
	.value	0
	.value	0
	.value	1
	.value	1
	.value	100
	.value	0
	.value	100
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.align 32
	.type	mode3_duration, @object
	.size	mode3_duration, 48
mode3_duration:
	.long	2000
	.long	5000
	.long	10000
	.long	5000
	.long	5000
	.long	5000
	.long	2000
	.long	5000
	.long	10000
	.long	5000
	.long	5000
	.long	5000
	.align 32
	.type	led3, @object
	.size	led3, 288
led3:
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	1
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	1
	.value	0
	.value	1
	.value	1
	.value	1
	.value	0
	.value	0
	.value	1
	.value	1
	.value	0
	.value	0
	.value	0
	.value	100
	.value	0
	.value	1
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	1
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	100
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	1
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	1
	.value	0
	.value	1
	.value	0
	.value	0
	.value	0
	.value	1
	.value	1
	.value	0
	.value	0
	.value	1
	.value	1
	.value	1
	.value	0
	.value	100
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	1
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	100
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.align 32
	.type	mode4_duration, @object
	.size	mode4_duration, 48
mode4_duration:
	.long	2000
	.long	5000
	.long	30000
	.long	5000
	.long	5000
	.long	5000
	.long	2000
	.long	5000
	.long	30000
	.long	5000
	.long	5000
	.long	5000
	.align 32
	.type	led4, @object
	.size	led4, 288
led4:
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	1
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	1
	.value	0
	.value	1
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	100
	.value	0
	.value	1
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	1
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	100
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	1
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	1
	.value	0
	.value	1
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	1
	.value	0
	.value	100
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	1
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	100
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.value	0
	.section	.data.rel.local
	.align 32
	.type	m, @object
	.size	m, 96
m:
	.long	1
	.zero	4
	.quad	mode1_duration
	.quad	led1
	.long	6
	.zero	4
	.quad	mode2_duration
	.quad	led2
	.long	12
	.zero	4
	.quad	mode3_duration
	.quad	led3
	.long	12
	.zero	4
	.quad	mode4_duration
	.quad	led4
	.local	counter
	.comm	counter,4,4
	.local	t
	.comm	t,4,4
	.local	tm
	.comm	tm,8,8
	.text
	.type	randomize, @function
randomize:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rcx, QWORD PTR tm[rip]
	mov	rax, rcx
	shr	rax, 4
	movabs	rdx, 737869762948382065
	mul	rdx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	sub	rcx, rax
	mov	rdx, rcx
	test	rdx, rdx
	jne	.L2
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	cmp	ecx, 5
	jne	.L2
	mov	eax, 1
	jmp	.L4
.L2:
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	randomize, .-randomize
	.type	pressed, @function
pressed:
.LFB7:
	.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 -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, b[rip]
	mov	edx, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], 0
	sete	al
	movzx	eax, al
	cmp	edx, eax
	jne	.L7
	mov	eax, 0
	jmp	.L8
.L7:
	add	DWORD PTR -4[rbp], 1
.L6:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L9
	mov	eax, 1
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pressed, .-pressed
	.section	.rodata
	.align 8
.LC8:
	.string	"Invalid arguments to set_mode\n"
	.text
	.type	set_mode, @function
set_mode:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	cmp	DWORD PTR -20[rbp], 0
	js	.L11
	cmp	DWORD PTR -20[rbp], 3
	jg	.L11
	cmp	DWORD PTR -24[rbp], 0
	js	.L11
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, m[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L12
.L11:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L13
.L12:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, m[rip+16]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, WORD PTR [rdx+rax*2]
	cmp	ax, 1
	jg	.L15
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, m[rip+16]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, WORD PTR [rdx+rax*2]
	movsx	edx, ax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	lea	rax, L[rip]
	mov	DWORD PTR [rcx+rax], edx
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip+4]
	mov	DWORD PTR [rdx+rax], 0
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, m[rip+16]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, WORD PTR [rdx+rax*2]
	movsx	edx, ax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	lea	rax, L[rip+4]
	mov	DWORD PTR [rcx+rax], edx
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip]
	mov	DWORD PTR [rdx+rax], 0
.L16:
	add	DWORD PTR -4[rbp], 1
.L14:
	cmp	DWORD PTR -4[rbp], 11
	jle	.L17
	mov	DWORD PTR t[rip], 0
	mov	eax, 0
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	set_mode, .-set_mode
	.type	change, @function
change:
.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L19
.L23:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L20
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rcx, rax
	lea	rdx, L[rip]
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L20:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L21
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip+12]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip+16]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rsi, eax
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	lea	rdx, [rax+rsi]
	lea	rax, map[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 79
	jmp	.L22
.L21:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip+12]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip+16]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rsi, eax
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	lea	rdx, [rax+rsi]
	lea	rax, map[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 45
.L22:
	add	DWORD PTR -4[rbp], 1
.L19:
	cmp	DWORD PTR -4[rbp], 11
	jle	.L23
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	change, .-change
	.section	.rodata
.LC9:
	.string	"\033[2J\033[1;1H"
.LC11:
	.string	"\nt=%.2lf s (%.2lf s)\n"
.LC12:
	.string	"%s %ld, turn on %d\n"
.LC13:
	.string	"Duration: %d Presses: %d\n"
.LC14:
	.string	"%ld\n"
	.text
	.type	print, @function
print:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L25
.L28:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L26
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip+12]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip+16]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rsi, eax
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	lea	rdx, [rax+rsi]
	lea	rax, map[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 79
	jmp	.L27
.L26:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip+12]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip+16]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rsi, eax
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	lea	rdx, [rax+rsi]
	lea	rax, map[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 45
.L27:
	add	DWORD PTR -4[rbp], 1
.L25:
	cmp	DWORD PTR -4[rbp], 11
	jle	.L28
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	lea	rdx, map[rip]
	add	rax, rdx
	mov	rdi, rax
	call	puts@PLT
	add	DWORD PTR -4[rbp], 1
.L29:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L30
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, m[rip+8]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC10[rip]
	movapd	xmm2, xmm0
	divsd	xmm2, xmm1
	mov	edx, DWORD PTR t[rip]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	eax, eax
	test	rax, rax
	js	.L31
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L32
.L31:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L32:
	movsd	xmm1, QWORD PTR .LC10[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movapd	xmm1, xmm2
	movq	xmm0, rax
	lea	rdi, .LC11[rip]
	mov	eax, 2
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L33
.L35:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, b[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L34
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, btn_to_sem[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, b[rip+8]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rsi, 0[0+rax*8]
	lea	rax, button_names[rip]
	mov	rax, QWORD PTR [rsi+rax]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L34:
	add	DWORD PTR -4[rbp], 1
.L33:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L35
	mov	edx, DWORD PTR counter[rip]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	mov	rcx, rax
	lea	rax, m[rip+8]
	mov	rax, QWORD PTR [rcx+rax]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR tm[rip]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	print, .-print
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	cmp	DWORD PTR -20[rbp], 1
	jle	.L37
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -16[rbp], eax
.L37:
	cmp	DWORD PTR -16[rbp], 0
	js	.L38
	cmp	DWORD PTR -16[rbp], 4
	jg	.L38
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
.L38:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	set_mode
	test	eax, eax
	je	.L39
	mov	eax, -1
	jmp	.L59
.L39:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, m[rip+8]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L41
	mov	eax, DWORD PTR t[rip]
	test	eax, eax
	je	.L41
	mov	edx, DWORD PTR t[rip]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	mov	rcx, rax
	lea	rax, m[rip+8]
	mov	rcx, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	movsx	rcx, eax
	imul	rcx, rcx, 1717986919
	shr	rcx, 32
	sar	ecx, 2
	sar	eax, 31
	mov	esi, eax
	mov	eax, ecx
	sub	eax, esi
	mov	ecx, eax
	mov	eax, edx
	mov	edx, 0
	div	ecx
	mov	eax, edx
	test	eax, eax
	jne	.L41
	mov	eax, DWORD PTR -8[rbp]
	lea	esi, 1[rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, m[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, esi
	cdq
	idiv	ecx
	mov	DWORD PTR -8[rbp], edx
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	set_mode
.L41:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L42
.L44:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jle	.L43
	mov	eax, DWORD PTR t[rip]
	test	eax, eax
	je	.L43
	mov	edx, DWORD PTR t[rip]
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	lea	rax, L[rip+4]
	mov	eax, DWORD PTR [rcx+rax]
	movsx	rcx, eax
	imul	rcx, rcx, 1717986919
	shr	rcx, 32
	sar	ecx, 2
	sar	eax, 31
	mov	esi, eax
	mov	eax, ecx
	sub	eax, esi
	mov	ecx, eax
	mov	eax, edx
	mov	edx, 0
	div	ecx
	mov	eax, edx
	test	eax, eax
	jne	.L43
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, 1
	mov	ecx, edx
	sub	ecx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip]
	mov	DWORD PTR [rdx+rax], ecx
.L43:
	add	DWORD PTR -16[rbp], 1
.L42:
	cmp	DWORD PTR -16[rbp], 11
	jle	.L44
	cmp	DWORD PTR -12[rbp], 3
	jne	.L45
	mov	DWORD PTR -16[rbp], 0
	jmp	.L46
.L48:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, b[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L47
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, btn_to_sem[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, [rax+rax]
	lea	rax, led3[rip]
	movzx	eax, WORD PTR [rdx+rax]
	cmp	ax, 1
	jne	.L47
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, btn_to_sem[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, b[rip]
	mov	DWORD PTR [rdx+rax], 0
.L47:
	add	DWORD PTR -16[rbp], 1
.L46:
	cmp	DWORD PTR -16[rbp], 7
	jle	.L48
.L45:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L49
.L50:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, L[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	lea	rax, L[rip+8]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, edx
	mov	edi, eax
	call	change
	add	DWORD PTR -16[rbp], 1
.L49:
	cmp	DWORD PTR -16[rbp], 11
	jle	.L50
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	print
	mov	edi, 10000
	call	usleep@PLT
	mov	eax, DWORD PTR t[rip]
	add	eax, 1
	mov	DWORD PTR t[rip], eax
	mov	rax, QWORD PTR tm[rip]
	add	rax, 1
	mov	QWORD PTR tm[rip], rax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L51
.L53:
	call	randomize
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L52
	mov	eax, DWORD PTR counter[rip]
	add	eax, 1
	mov	DWORD PTR counter[rip], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, b[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	rax, QWORD PTR tm[rip]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 4
	lea	rdx, b[rip+8]
	mov	QWORD PTR [rcx+rdx], rax
.L52:
	add	DWORD PTR -16[rbp], 1
.L51:
	cmp	DWORD PTR -16[rbp], 7
	jle	.L53
	mov	edi, 1
	call	pressed
	test	eax, eax
	je	.L54
	mov	DWORD PTR -16[rbp], 0
	jmp	.L55
.L56:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, b[rip]
	mov	DWORD PTR [rdx+rax], 0
	add	DWORD PTR -16[rbp], 1
.L55:
	cmp	DWORD PTR -16[rbp], 7
	jle	.L56
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	set_mode
	jmp	.L39
.L54:
	cmp	DWORD PTR -12[rbp], 3
	jne	.L39
	mov	edi, 0
	call	pressed
	test	eax, eax
	je	.L58
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rcx, rax
	lea	rax, m[rip+8]
	lea	rdx, mode4_duration[rip]
	mov	QWORD PTR [rcx+rax], rdx
	jmp	.L39
.L58:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rcx, rax
	lea	rax, m[rip+8]
	lea	rdx, mode3_duration[rip]
	mov	QWORD PTR [rcx+rax], rdx
	jmp	.L39
.L59:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC10:
	.long	0
	.long	1083129856
	.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	"956816.c"
	.text
	.data
	.align	2
	.type	map, %object
	.size	map, 136
map:
	.ascii	"+++++ N    +++++\000"
	.ascii	"++++O      O++++\000"
	.ascii	"++O++ O    ++O++\000"
	.ascii	"           O   E\000"
	.ascii	"W   O           \000"
	.ascii	"++O++    O ++O++\000"
	.ascii	"++++O      O++++\000"
	.ascii	"+++++    S +++++\000"
	.align	2
	.type	L, %object
	.size	L, 240
L:
	.word	0
	.word	0
	.word	9
	.word	2
	.word	6
	.word	0
	.word	0
	.word	15
	.word	3
	.word	11
	.word	0
	.word	0
	.word	23
	.word	5
	.word	9
	.word	0
	.word	0
	.word	25
	.word	4
	.word	4
	.word	0
	.word	0
	.word	10
	.word	1
	.word	4
	.word	0
	.word	0
	.word	17
	.word	1
	.word	11
	.word	0
	.word	0
	.word	27
	.word	2
	.word	13
	.word	0
	.word	0
	.word	18
	.word	5
	.word	13
	.word	0
	.word	0
	.word	22
	.word	6
	.word	11
	.word	0
	.word	0
	.word	7
	.word	6
	.word	4
	.word	0
	.word	0
	.word	8
	.word	5
	.word	2
	.word	0
	.word	0
	.word	11
	.word	2
	.word	2
	.align	2
	.type	b, %object
	.size	b, 96
b:
	.word	0
	.word	31
	.word	0
	.word	0
	.word	3
	.word	0
	.word	0
	.word	2
	.word	0
	.word	0
	.word	4
	.word	0
	.word	0
	.word	14
	.word	0
	.word	0
	.word	29
	.word	0
	.word	0
	.word	28
	.word	0
	.word	0
	.word	30
	.word	0
	.section	.rodata
	.align	2
.LC0:
	.ascii	"B_NW\000"
	.align	2
.LC1:
	.ascii	"B_NE\000"
	.align	2
.LC2:
	.ascii	"B_EN\000"
	.align	2
.LC3:
	.ascii	"B_ES\000"
	.align	2
.LC4:
	.ascii	"B_SE\000"
	.align	2
.LC5:
	.ascii	"B_SW\000"
	.align	2
.LC6:
	.ascii	"B_WS\000"
	.align	2
.LC7:
	.ascii	"B_WN\000"
	.data
	.align	2
	.type	button_names, %object
	.size	button_names, 32
button_names:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.section	.rodata
	.align	2
	.type	btn_to_sem, %object
	.size	btn_to_sem, 32
btn_to_sem:
	.word	5
	.word	4
	.word	7
	.word	6
	.word	9
	.word	8
	.word	11
	.word	10
	.local	mode1_duration
	.comm	mode1_duration,4,4
	.data
	.align	2
	.type	led1, %object
	.size	led1, 24
led1:
	.short	500
	.short	500
	.short	500
	.short	500
	.short	500
	.short	500
	.short	500
	.short	500
	.short	500
	.short	500
	.short	500
	.short	500
	.align	2
	.type	mode2_duration, %object
	.size	mode2_duration, 24
mode2_duration:
	.word	2000
	.word	15000
	.word	5000
	.word	2000
	.word	15000
	.word	5000
	.align	2
	.type	led2, %object
	.size	led2, 144
led2:
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	1
	.short	0
	.short	1
	.short	1
	.short	1
	.short	0
	.short	0
	.short	1
	.short	1
	.short	0
	.short	0
	.short	0
	.short	100
	.short	0
	.short	100
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	1
	.short	0
	.short	1
	.short	0
	.short	0
	.short	0
	.short	1
	.short	1
	.short	0
	.short	0
	.short	1
	.short	1
	.short	100
	.short	0
	.short	100
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.align	2
	.type	mode3_duration, %object
	.size	mode3_duration, 48
mode3_duration:
	.word	2000
	.word	5000
	.word	10000
	.word	5000
	.word	5000
	.word	5000
	.word	2000
	.word	5000
	.word	10000
	.word	5000
	.word	5000
	.word	5000
	.align	2
	.type	led3, %object
	.size	led3, 288
led3:
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	1
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	1
	.short	0
	.short	1
	.short	1
	.short	1
	.short	0
	.short	0
	.short	1
	.short	1
	.short	0
	.short	0
	.short	0
	.short	100
	.short	0
	.short	1
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	1
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	100
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	1
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	1
	.short	0
	.short	1
	.short	0
	.short	0
	.short	0
	.short	1
	.short	1
	.short	0
	.short	0
	.short	1
	.short	1
	.short	1
	.short	0
	.short	100
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	1
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	100
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.align	2
	.type	mode4_duration, %object
	.size	mode4_duration, 48
mode4_duration:
	.word	2000
	.word	5000
	.word	30000
	.word	5000
	.word	5000
	.word	5000
	.word	2000
	.word	5000
	.word	30000
	.word	5000
	.word	5000
	.word	5000
	.align	2
	.type	led4, %object
	.size	led4, 288
led4:
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	1
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	1
	.short	0
	.short	1
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	100
	.short	0
	.short	1
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	1
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	100
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	1
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	1
	.short	0
	.short	1
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	1
	.short	0
	.short	100
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	1
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	100
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.short	0
	.align	2
	.type	m, %object
	.size	m, 48
m:
	.word	1
	.word	mode1_duration
	.word	led1
	.word	6
	.word	mode2_duration
	.word	led2
	.word	12
	.word	mode3_duration
	.word	led3
	.word	12
	.word	mode4_duration
	.word	led4
	.local	counter
	.comm	counter,4,4
	.local	t
	.comm	t,4,4
	.local	tm
	.comm	tm,4,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	randomize, %function
randomize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L5
	ldr	r1, [r3]
	ldr	r3, .L5+4
	umull	r2, r3, r1, r3
	lsr	r2, r3, #7
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L2
	bl	rand
	mov	r1, r0
	ldr	r3, .L5+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	cmp	r2, #5
	bne	.L2
	mov	r3, #1
	b	.L4
.L2:
	mov	r3, #0
.L4:
	mov	r0, r3
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	tm
	.word	1374389535
	.word	1717986919
	.size	randomize, .-randomize
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pressed, %function
pressed:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L8
.L11:
	ldr	r1, .L12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, #0
	moveq	r2, #1
	movne	r2, #0
	and	r2, r2, #255
	cmp	r3, r2
	bne	.L9
	mov	r3, #0
	b	.L10
.L9:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L11
	mov	r3, #1
.L10:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L13:
	.align	2
.L12:
	.word	b
	.size	pressed, .-pressed
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Invalid arguments to set_mode\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_mode, %function
set_mode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L15
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bgt	.L15
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L15
	ldr	r1, .L22
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L16
.L15:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L22+8
	bl	fwrite
	mvn	r3, #0
	b	.L17
.L16:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L18
.L21:
	ldr	r1, .L22
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r1, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	cmp	r3, #1
	bgt	.L19
	ldr	r1, .L22
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r1, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r0, r3
	ldr	r1, .L22+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r0, [r3]
	ldr	r1, .L22+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	b	.L20
.L19:
	ldr	r1, .L22
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r1, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r0, r3
	ldr	r1, .L22+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	str	r0, [r3]
	ldr	r1, .L22+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
.L20:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-8]
	cmp	r3, #11
	ble	.L21
	ldr	r3, .L22+16
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	m
	.word	stderr
	.word	.LC8
	.word	L
	.word	t
	.size	set_mode, .-set_mode
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	change, %function
change:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L25
.L29:
	ldr	r1, .L30
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L26
	ldr	r1, .L30
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3]
.L26:
	ldr	r1, .L30
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L27
	ldr	r1, .L30
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #12
	ldr	r2, [r3]
	ldr	r0, .L30
	ldr	r1, [fp, #-8]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #16
	ldr	r1, [r3]
	ldr	r0, .L30+4
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #79
	strb	r2, [r3]
	b	.L28
.L27:
	ldr	r1, .L30
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #12
	ldr	r2, [r3]
	ldr	r0, .L30
	ldr	r1, [fp, #-8]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #16
	ldr	r1, [r3]
	ldr	r0, .L30+4
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #45
	strb	r2, [r3]
.L28:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L25:
	ldr	r3, [fp, #-8]
	cmp	r3, #11
	ble	.L29
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L31:
	.align	2
.L30:
	.word	L
	.word	map
	.size	change, .-change
	.section	.rodata
	.align	2
.LC9:
	.ascii	"\033[2J\033[1;1H\000"
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.global	__aeabi_i2d
	.align	2
.LC10:
	.ascii	"\012t=%.2lf s (%.2lf s)\012\000"
	.align	2
.LC11:
	.ascii	"%s %ld, turn on %d\012\000"
	.align	2
.LC12:
	.ascii	"Duration: %d Presses: %d\012\000"
	.align	2
.LC13:
	.ascii	"%ld\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L33
.L36:
	ldr	r1, .L42
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L34
	ldr	r1, .L42
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #12
	ldr	r2, [r3]
	ldr	r0, .L42
	ldr	r1, [fp, #-16]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #16
	ldr	r1, [r3]
	ldr	r0, .L42+4
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #79
	strb	r2, [r3]
	b	.L35
.L34:
	ldr	r1, .L42
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #12
	ldr	r2, [r3]
	ldr	r0, .L42
	ldr	r1, [fp, #-16]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #16
	ldr	r1, [r3]
	ldr	r0, .L42+4
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #45
	strb	r2, [r3]
.L35:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L33:
	ldr	r3, [fp, #-16]
	cmp	r3, #11
	ble	.L36
	ldr	r0, .L42+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L37
.L38:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L42+4
	add	r3, r3, r2
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L37:
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	ble	.L38
	ldr	r3, .L42+12
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, #0
	ldr	r3, .L42+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r1, .L42+20
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L42+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L42+24
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L39
.L41:
	ldr	r1, .L42+28
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L40
	ldr	r2, .L42+32
	ldr	r3, [fp, #-16]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r0, .L42+28
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r0, .L42+36
	ldr	r3, [fp, #-16]
	ldr	r3, [r0, r3, lsl #2]
	ldr	r0, .L42+40
	bl	printf
.L40:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L39:
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	ble	.L41
	ldr	r1, .L42+20
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, .L42+44
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L42+48
	bl	printf
	ldr	r3, .L42+52
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L42+56
	bl	printf
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L43:
	.align	2
.L42:
	.word	L
	.word	map
	.word	.LC9
	.word	t
	.word	1083129856
	.word	m
	.word	.LC10
	.word	b
	.word	button_names
	.word	btn_to_sem
	.word	.LC11
	.word	counter
	.word	.LC12
	.word	tm
	.word	.LC13
	.size	print, .-print
	.global	__aeabi_uidivmod
	.global	__aeabi_idivmod
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L45
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-20]
.L45:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L46
	ldr	r3, [fp, #-20]
	cmp	r3, #4
	bgt	.L46
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
.L46:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	set_mode
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	mvn	r3, #0
	b	.L67
.L47:
	ldr	r1, .L68
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L49
	ldr	r3, .L68+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L49
	ldr	r3, .L68+4
	ldr	r0, [r3]
	ldr	r1, .L68
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L68+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L49
	ldr	r3, [fp, #-12]
	add	r0, r3, #1
	ldr	r1, .L68
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	set_mode
.L49:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L50
.L52:
	ldr	r1, .L68+12
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L51
	ldr	r3, .L68+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L51
	ldr	r3, .L68+4
	ldr	r0, [r3]
	ldr	r1, .L68+12
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, .L68+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L51
	ldr	r1, .L68+12
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	rsb	r1, r3, #1
	ldr	r0, .L68+12
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	str	r1, [r3]
.L51:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L50:
	ldr	r3, [fp, #-20]
	cmp	r3, #11
	ble	.L52
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bne	.L53
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L54
.L56:
	ldr	r1, .L68+16
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L55
	ldr	r2, .L68+20
	ldr	r3, [fp, #-20]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r0, .L68+24
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r0, r3
	ldrh	r3, [r3]
	cmp	r3, #1
	bne	.L55
	ldr	r2, .L68+20
	ldr	r3, [fp, #-20]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L68+12
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r1, .L68+16
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
.L55:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L54:
	ldr	r3, [fp, #-20]
	cmp	r3, #7
	ble	.L56
.L53:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L57
.L58:
	ldr	r1, .L68+12
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r0, [r3]
	ldr	r1, .L68+12
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	change
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L57:
	ldr	r3, [fp, #-20]
	cmp	r3, #11
	ble	.L58
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	print
	ldr	r0, .L68+28
	bl	usleep
	ldr	r3, .L68+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L68+4
	str	r3, [r2]
	ldr	r3, .L68+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L68+32
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L59
.L61:
	bl	randomize
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L60
	ldr	r3, .L68+36
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L68+36
	str	r3, [r2]
	ldr	r1, .L68+16
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L68+32
	ldr	r1, [r3]
	ldr	r0, .L68+16
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #8
	str	r1, [r3]
.L60:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L59:
	ldr	r3, [fp, #-20]
	cmp	r3, #7
	ble	.L61
	mov	r0, #1
	bl	pressed
	mov	r3, r0
	cmp	r3, #0
	beq	.L62
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L63
.L64:
	ldr	r1, .L68+16
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L63:
	ldr	r3, [fp, #-20]
	cmp	r3, #7
	ble	.L64
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	set_mode
	b	.L47
.L62:
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bne	.L47
	mov	r0, #0
	bl	pressed
	mov	r3, r0
	cmp	r3, #0
	beq	.L66
	ldr	r1, .L68
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r2, .L68+40
	str	r2, [r3]
	b	.L47
.L66:
	ldr	r1, .L68
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r2, .L68+44
	str	r2, [r3]
	b	.L47
.L67:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	m
	.word	t
	.word	1717986919
	.word	L
	.word	b
	.word	btn_to_sem
	.word	led3
	.word	10000
	.word	tm
	.word	counter
	.word	mode4_duration
	.word	mode3_duration
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
