	.file	"97011794.c"
	.intel_syntax noprefix
	.text
	.globl	map
	.section	.rodata
.LC0:
	.string	"RED"
.LC1:
	.string	"YELLO"
.LC2:
	.string	"BLUE"
	.section	.data.rel.local,"aw"
	.align 32
	.type	map, @object
	.size	map, 48
map:
	.long	0
	.zero	4
	.quad	.LC0
	.long	1
	.zero	4
	.quad	.LC1
	.long	2
	.zero	4
	.quad	.LC2
	.globl	switch_value_str
	.bss
	.type	switch_value_str, @object
	.size	switch_value_str, 3
switch_value_str:
	.zero	3
	.globl	switch_state
	.align 4
	.type	switch_state, @object
	.size	switch_state, 4
switch_state:
	.zero	4
	.globl	switch_fd
	.align 4
	.type	switch_fd, @object
	.size	switch_fd, 4
switch_fd:
	.zero	4
	.globl	to_catch
	.align 4
	.type	to_catch, @object
	.size	to_catch, 4
to_catch:
	.zero	4
	.section	.rodata
.LC3:
	.string	"w"
.LC4:
	.string	"/sys/class/gpio/export"
.LC5:
	.string	"%d"
	.text
	.type	export_gpio, @function
export_gpio:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	export_gpio, .-export_gpio
	.section	.rodata
	.align 8
.LC6:
	.string	"/sys/class/gpio/gpio%d/direction"
.LC7:
	.string	"/sys/class/gpio"
	.align 8
.LC8:
	.string	"Error opening %s/GPIO%d/direction"
	.text
	.type	direction_gpio, @function
direction_gpio:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	lea	rdx, .LC6[rip]
	mov	esi, 100
	lea	rdi, filename.3[rip]
	mov	eax, 0
	call	snprintf@PLT
	lea	rsi, .LC3[rip]
	lea	rdi, filename.3[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	lea	rsi, .LC7[rip]
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	direction_gpio, .-direction_gpio
	.section	.rodata
.LC9:
	.string	"/sys/class/gpio/gpio%d/value"
.LC10:
	.string	"Error opening %s/GPIO%d/value"
	.text
	.type	on_led, @function
on_led:
.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
	mov	DWORD PTR -28[rbp], edx
	mov	ecx, 24
	lea	rdx, .LC9[rip]
	mov	esi, 100
	lea	rdi, red_filename.2[rip]
	mov	eax, 0
	call	snprintf@PLT
	mov	ecx, 200
	lea	rdx, .LC9[rip]
	mov	esi, 100
	lea	rdi, yel_filename.1[rip]
	mov	eax, 0
	call	snprintf@PLT
	mov	ecx, 90
	lea	rdx, .LC9[rip]
	mov	esi, 100
	lea	rdi, blu_filename.0[rip]
	mov	eax, 0
	call	snprintf@PLT
	lea	rsi, .LC3[rip]
	lea	rdi, red_filename.2[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L5
	mov	edx, 24
	lea	rsi, .LC7[rip]
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC3[rip]
	lea	rdi, yel_filename.1[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L6
	mov	edx, 200
	lea	rsi, .LC7[rip]
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC3[rip]
	lea	rdi, blu_filename.0[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L7
	mov	edx, 90
	lea	rsi, .LC7[rip]
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	on_led, .-on_led
	.globl	fancy_dance
	.type	fancy_dance, @function
fancy_dance:
.LFB9:
	.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], 0
	jmp	.L9
.L10:
	mov	edx, 0
	mov	esi, 0
	mov	edi, 1
	call	on_led
	mov	edi, 100000
	call	usleep@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 0
	call	on_led
	mov	edi, 100000
	call	usleep@PLT
	mov	edx, 1
	mov	esi, 0
	mov	edi, 0
	call	on_led
	mov	edi, 100000
	call	usleep@PLT
	add	DWORD PTR -4[rbp], 1
.L9:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L10
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fancy_dance, .-fancy_dance
	.section	.rodata
.LC11:
	.string	"/sys/class/gpio/gpio91/value"
.LC12:
	.string	"\rYes Level: %d  Life: %d"
.LC13:
	.string	"\rNoo Level: %d  Life: %d"
	.text
	.globl	game
	.type	game, @function
game:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -20[rbp], 3
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 11
.L23:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L12
.L22:
	cmp	DWORD PTR -8[rbp], 0
	jne	.L13
	mov	edx, 0
	mov	esi, 0
	mov	edi, 1
	call	on_led
.L13:
	cmp	DWORD PTR -8[rbp], 1
	jne	.L14
	mov	edx, 0
	mov	esi, 1
	mov	edi, 0
	call	on_led
.L14:
	cmp	DWORD PTR -8[rbp], 2
	jne	.L15
	mov	edx, 1
	mov	esi, 0
	mov	edi, 0
	call	on_led
.L15:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L16
.L21:
	mov	esi, 0
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR switch_fd[rip], eax
	mov	eax, DWORD PTR switch_fd[rip]
	mov	edx, 3
	lea	rsi, switch_value_str[rip]
	mov	edi, eax
	call	read@PLT
	lea	rdi, switch_value_str[rip]
	call	atoi@PLT
	mov	DWORD PTR switch_state[rip], eax
	mov	eax, DWORD PTR switch_fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	edi, 100000
	call	usleep@PLT
	mov	eax, DWORD PTR switch_state[rip]
	test	eax, eax
	jne	.L17
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jne	.L18
	mov	edi, 5000
	call	usleep@PLT
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	sub	DWORD PTR -12[rbp], 1
	add	DWORD PTR -16[rbp], 1
	cmp	DWORD PTR -16[rbp], 10
	jne	.L17
	mov	eax, 0
	jmp	.L19
.L18:
	mov	edi, 5000
	call	usleep@PLT
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -20[rbp], 1
	cmp	DWORD PTR -20[rbp], 0
	jne	.L20
	mov	eax, 1
	jmp	.L19
.L20:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L17:
	add	DWORD PTR -4[rbp], 1
.L16:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L21
	add	DWORD PTR -8[rbp], 1
.L12:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L22
	jmp	.L23
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	game, .-game
	.section	.rodata
.LC14:
	.string	"out"
.LC15:
	.string	"in"
	.text
	.globl	init_gpio
	.type	init_gpio, @function
init_gpio:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 24
	call	export_gpio
	mov	edi, 90
	call	export_gpio
	mov	edi, 200
	call	export_gpio
	mov	edi, 91
	call	export_gpio
	lea	rsi, .LC14[rip]
	mov	edi, 24
	call	direction_gpio
	lea	rsi, .LC14[rip]
	mov	edi, 90
	call	direction_gpio
	lea	rsi, .LC14[rip]
	mov	edi, 200
	call	direction_gpio
	lea	rsi, .LC15[rip]
	mov	edi, 91
	call	direction_gpio
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	init_gpio, .-init_gpio
	.section	.rodata
	.align 8
.LC16:
	.string	"\rCOLOR TO CATCH: %s \t\t\t Game starts in:%d sec"
.LC17:
	.string	"\n\n"
	.align 8
.LC18:
	.string	"                      START                   "
	.align 8
.LC19:
	.string	"        !!!  CATCH THE COLOR: %s!!!         \n"
	.align 8
.LC20:
	.string	"*********************************************"
	.text
	.globl	selection
	.type	selection, @function
selection:
.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, 16
	mov	DWORD PTR -8[rbp], 0
	mov	edx, 0
	mov	esi, 0
	mov	edi, 1
	call	on_led
	mov	DWORD PTR -4[rbp], 100
	jmp	.L26
.L30:
	mov	esi, 0
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR switch_fd[rip], eax
	mov	eax, DWORD PTR switch_fd[rip]
	mov	edx, 3
	lea	rsi, switch_value_str[rip]
	mov	edi, eax
	call	read@PLT
	lea	rdi, switch_value_str[rip]
	call	atoi@PLT
	mov	DWORD PTR switch_state[rip], eax
	mov	edi, 100000
	call	usleep@PLT
	mov	eax, DWORD PTR switch_state[rip]
	test	eax, eax
	jne	.L27
	mov	DWORD PTR -4[rbp], 100
	add	DWORD PTR -8[rbp], 1
	cmp	DWORD PTR -8[rbp], 1
	jne	.L28
	mov	edx, 0
	mov	esi, 1
	mov	edi, 0
	call	on_led
	mov	DWORD PTR to_catch[rip], 1
.L28:
	cmp	DWORD PTR -8[rbp], 2
	jne	.L27
	mov	edx, 1
	mov	esi, 0
	mov	edi, 0
	call	on_led
	mov	DWORD PTR to_catch[rip], 2
.L27:
	cmp	DWORD PTR -8[rbp], 3
	jne	.L29
	mov	DWORD PTR -8[rbp], 0
	mov	edx, 0
	mov	esi, 0
	mov	edi, 1
	call	on_led
	mov	DWORD PTR to_catch[rip], 0
.L29:
	mov	eax, DWORD PTR switch_fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	sub	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	lea	rax, map[rip+8]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	sub	DWORD PTR -4[rbp], 1
.L26:
	cmp	DWORD PTR -4[rbp], 0
	jg	.L30
	mov	edx, 0
	mov	esi, 0
	mov	edi, 0
	call	on_led
	mov	edi, 1
	call	sleep@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, map[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	eax, DWORD PTR to_catch[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	selection, .-selection
	.section	.rodata
.LC21:
	.string	"received SIGINT"
	.text
	.globl	signal_handler
	.type	signal_handler, @function
signal_handler:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 2
	jne	.L34
	mov	edi, 500000
	call	usleep@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
.L34:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	signal_handler, .-signal_handler
	.section	.rodata
.LC22:
	.string	"@cls||clear"
	.align 8
.LC23:
	.string	"*****************************************"
	.align 8
.LC24:
	.string	"   !!! WELCOME TO CATCH THE COLOR !!!    "
	.align 8
.LC25:
	.string	"      Select and catch the color         "
	.align 8
.LC26:
	.string	"!!! Test your hand-eye coordination !!!  "
	.align 8
.LC27:
	.string	"*******************************************"
	.align 8
.LC28:
	.string	"*               HOW TO PLAY               *"
	.align 8
.LC29:
	.string	"* STEP1: Click once to select over colors *"
	.align 8
.LC30:
	.string	"* STEP2: Wait for countdown to start game *"
	.align 8
.LC31:
	.string	"*         LEVEL = 10        LIFE = 3      *"
.LC32:
	.string	"\n"
.LC33:
	.string	"Press Key to continue..."
.LC34:
	.string	"\ncan't catch "
.LC35:
	.string	"\n\n\n!!! GRAND WIN !!!\n\n"
.LC36:
	.string	"\n\n\n!!! GRAND LOSE !!!\n\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.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
	lea	rdi, .LC22[rip]
	call	system@PLT
	mov	eax, 0
	call	init_gpio
	lea	rdi, .LC23[rip]
	call	puts@PLT
	lea	rdi, .LC24[rip]
	call	puts@PLT
	lea	rdi, .LC25[rip]
	call	puts@PLT
	lea	rdi, .LC26[rip]
	call	puts@PLT
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	eax, 0
	call	fancy_dance
	mov	edi, 1
	call	sleep@PLT
	mov	edx, 0
	mov	esi, 0
	mov	edi, 0
	call	on_led
	lea	rdi, .LC17[rip]
	call	puts@PLT
	lea	rdi, .LC27[rip]
	call	puts@PLT
	lea	rdi, .LC28[rip]
	call	puts@PLT
	lea	rdi, .LC27[rip]
	call	puts@PLT
	lea	rdi, .LC29[rip]
	call	puts@PLT
	lea	rdi, .LC30[rip]
	call	puts@PLT
	lea	rdi, .LC31[rip]
	call	puts@PLT
	lea	rdi, .LC27[rip]
	call	puts@PLT
	lea	rdi, .LC32[rip]
	call	puts@PLT
	lea	rdi, .LC33[rip]
	call	puts@PLT
	lea	rsi, signal_handler[rip]
	mov	edi, 2
	call	signal@PLT
	cmp	rax, -1
	jne	.L36
	lea	rdi, .LC34[rip]
	call	puts@PLT
.L36:
	mov	eax, 0
	call	selection
	mov	DWORD PTR to_catch[rip], eax
	mov	eax, DWORD PTR to_catch[rip]
	mov	edi, eax
	call	game
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L37
	lea	rdi, .LC35[rip]
	call	puts@PLT
	jmp	.L38
.L37:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L38
	lea	rdi, .LC36[rip]
	call	puts@PLT
.L38:
	mov	edx, 0
	mov	esi, 0
	mov	edi, 0
	call	on_led
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.local	filename.3
	.comm	filename.3,100,32
	.local	red_filename.2
	.comm	red_filename.2,100,32
	.local	yel_filename.1
	.comm	yel_filename.1,100,32
	.local	blu_filename.0
	.comm	blu_filename.0,100,32
	.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	"97011794.c"
	.text
	.global	map
	.section	.rodata
	.align	2
.LC0:
	.ascii	"RED\000"
	.align	2
.LC1:
	.ascii	"YELLO\000"
	.align	2
.LC2:
	.ascii	"BLUE\000"
	.data
	.align	2
	.type	map, %object
	.size	map, 24
map:
	.word	0
	.word	.LC0
	.word	1
	.word	.LC1
	.word	2
	.word	.LC2
	.comm	switch_value_str,3,4
	.comm	switch_state,4,4
	.comm	switch_fd,4,4
	.global	to_catch
	.bss
	.align	2
	.type	to_catch, %object
	.size	to_catch, 4
to_catch:
	.space	4
	.section	.rodata
	.align	2
.LC3:
	.ascii	"w\000"
	.align	2
.LC4:
	.ascii	"/sys/class/gpio/export\000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	export_gpio, %function
export_gpio:
	@ 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]
	ldr	r1, .L2
	ldr	r0, .L2+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r1, .L2+8
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	export_gpio, .-export_gpio
	.section	.rodata
	.align	2
.LC6:
	.ascii	"/sys/class/gpio/gpio%d/direction\000"
	.align	2
.LC7:
	.ascii	"/sys/class/gpio\000"
	.align	2
.LC8:
	.ascii	"Error opening %s/GPIO%d/direction\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	direction_gpio, %function
direction_gpio:
	@ 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]
	ldr	r2, .L6
	mov	r1, #100
	ldr	r0, .L6+4
	bl	snprintf
	ldr	r1, .L6+8
	ldr	r0, .L6+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L5
	ldr	r2, [fp, #-16]
	ldr	r1, .L6+12
	ldr	r0, .L6+16
	bl	printf
	mov	r0, #1
	bl	exit
.L5:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-20]
	bl	fputs
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC6
	.word	filename.6396
	.word	.LC3
	.word	.LC7
	.word	.LC8
	.size	direction_gpio, .-direction_gpio
	.section	.rodata
	.align	2
.LC9:
	.ascii	"/sys/class/gpio/gpio%d/value\000"
	.align	2
.LC10:
	.ascii	"Error opening %s/GPIO%d/value\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	on_led, %function
on_led:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #24
	ldr	r2, .L12
	mov	r1, #100
	ldr	r0, .L12+4
	bl	snprintf
	mov	r3, #200
	ldr	r2, .L12
	mov	r1, #100
	ldr	r0, .L12+8
	bl	snprintf
	mov	r3, #90
	ldr	r2, .L12
	mov	r1, #100
	ldr	r0, .L12+12
	bl	snprintf
	ldr	r1, .L12+16
	ldr	r0, .L12+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L9
	mov	r2, #24
	ldr	r1, .L12+20
	ldr	r0, .L12+24
	bl	printf
	mov	r0, #1
	bl	exit
.L9:
	ldr	r2, [fp, #-16]
	ldr	r1, .L12+28
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r1, .L12+16
	ldr	r0, .L12+8
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L10
	mov	r2, #200
	ldr	r1, .L12+20
	ldr	r0, .L12+24
	bl	printf
	mov	r0, #1
	bl	exit
.L10:
	ldr	r2, [fp, #-20]
	ldr	r1, .L12+28
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r1, .L12+16
	ldr	r0, .L12+12
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L11
	mov	r2, #90
	ldr	r1, .L12+20
	ldr	r0, .L12+24
	bl	printf
	mov	r0, #1
	bl	exit
.L11:
	ldr	r2, [fp, #-24]
	ldr	r1, .L12+28
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC9
	.word	red_filename.6403
	.word	yel_filename.6404
	.word	blu_filename.6405
	.word	.LC3
	.word	.LC7
	.word	.LC10
	.word	.LC5
	.size	on_led, .-on_led
	.align	2
	.global	fancy_dance
	.syntax unified
	.arm
	.fpu softvfp
	.type	fancy_dance, %function
fancy_dance:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L15
.L16:
	mov	r2, #0
	mov	r1, #0
	mov	r0, #1
	bl	on_led
	ldr	r0, .L17
	bl	usleep
	mov	r2, #0
	mov	r1, #1
	mov	r0, #0
	bl	on_led
	ldr	r0, .L17
	bl	usleep
	mov	r2, #1
	mov	r1, #0
	mov	r0, #0
	bl	on_led
	ldr	r0, .L17
	bl	usleep
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L15:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L16
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	100000
	.size	fancy_dance, .-fancy_dance
	.section	.rodata
	.align	2
.LC11:
	.ascii	"/sys/class/gpio/gpio91/value\000"
	.align	2
.LC12:
	.ascii	"\015Yes Level: %d  Life: %d\000"
	.align	2
.LC13:
	.ascii	"\015Noo Level: %d  Life: %d\000"
	.text
	.align	2
	.global	game
	.syntax unified
	.arm
	.fpu softvfp
	.type	game, %function
game:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	mov	r3, #3
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #11
	str	r3, [fp, #-16]
.L31:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L20
.L30:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L21
	mov	r2, #0
	mov	r1, #0
	mov	r0, #1
	bl	on_led
.L21:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L22
	mov	r2, #0
	mov	r1, #1
	mov	r0, #0
	bl	on_led
.L22:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L23
	mov	r2, #1
	mov	r1, #0
	mov	r0, #0
	bl	on_led
.L23:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L24
.L29:
	mov	r1, #0
	ldr	r0, .L32
	bl	open
	mov	r3, r0
	ldr	r2, .L32+4
	str	r3, [r2]
	ldr	r3, .L32+4
	ldr	r3, [r3]
	mov	r2, #3
	ldr	r1, .L32+8
	mov	r0, r3
	bl	read
	ldr	r0, .L32+8
	bl	atoi
	mov	r3, r0
	ldr	r2, .L32+12
	str	r3, [r2]
	ldr	r3, .L32+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r0, .L32+16
	bl	usleep
	ldr	r3, .L32+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L25
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bne	.L26
	ldr	r0, .L32+20
	bl	usleep
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, .L32+24
	bl	printf
	ldr	r3, .L32+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #10
	bne	.L25
	mov	r3, #0
	b	.L27
.L26:
	ldr	r0, .L32+20
	bl	usleep
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, .L32+32
	bl	printf
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L28
	mov	r3, #1
	b	.L27
.L28:
	ldr	r3, .L32+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L25:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L24:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L29
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L20:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L30
	b	.L31
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC11
	.word	switch_fd
	.word	switch_value_str
	.word	switch_state
	.word	100000
	.word	5000
	.word	.LC12
	.word	stdout
	.word	.LC13
	.size	game, .-game
	.section	.rodata
	.align	2
.LC14:
	.ascii	"out\000"
	.align	2
.LC15:
	.ascii	"in\000"
	.text
	.align	2
	.global	init_gpio
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_gpio, %function
init_gpio:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #24
	bl	export_gpio
	mov	r0, #90
	bl	export_gpio
	mov	r0, #200
	bl	export_gpio
	mov	r0, #91
	bl	export_gpio
	ldr	r1, .L35
	mov	r0, #24
	bl	direction_gpio
	ldr	r1, .L35
	mov	r0, #90
	bl	direction_gpio
	ldr	r1, .L35
	mov	r0, #200
	bl	direction_gpio
	ldr	r1, .L35+4
	mov	r0, #91
	bl	direction_gpio
	nop
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC14
	.word	.LC15
	.size	init_gpio, .-init_gpio
	.section	.rodata
	.align	2
.LC16:
	.ascii	"\015COLOR TO CATCH: %s \011\011\011 Game starts in:"
	.ascii	"%d sec\000"
	.align	2
.LC17:
	.ascii	"\012\012\000"
	.align	2
.LC18:
	.ascii	"                      START                   \000"
	.align	2
.LC19:
	.ascii	"        !!!  CATCH THE COLOR: %s!!!         \012\000"
	.align	2
.LC20:
	.ascii	"*********************************************\000"
	.text
	.align	2
	.global	selection
	.syntax unified
	.arm
	.fpu softvfp
	.type	selection, %function
selection:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r2, #0
	mov	r1, #0
	mov	r0, #1
	bl	on_led
	mov	r3, #100
	str	r3, [fp, #-8]
	b	.L38
.L42:
	mov	r1, #0
	ldr	r0, .L44
	bl	open
	mov	r3, r0
	ldr	r2, .L44+4
	str	r3, [r2]
	ldr	r3, .L44+4
	ldr	r3, [r3]
	mov	r2, #3
	ldr	r1, .L44+8
	mov	r0, r3
	bl	read
	ldr	r0, .L44+8
	bl	atoi
	mov	r3, r0
	ldr	r2, .L44+12
	str	r3, [r2]
	ldr	r0, .L44+16
	bl	usleep
	ldr	r3, .L44+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L39
	mov	r3, #100
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L40
	mov	r2, #0
	mov	r1, #1
	mov	r0, #0
	bl	on_led
	ldr	r3, .L44+20
	mov	r2, #1
	str	r2, [r3]
.L40:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L39
	mov	r2, #1
	mov	r1, #0
	mov	r0, #0
	bl	on_led
	ldr	r3, .L44+20
	mov	r2, #2
	str	r2, [r3]
.L39:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	bne	.L41
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r2, #0
	mov	r1, #0
	mov	r0, #1
	bl	on_led
	ldr	r3, .L44+20
	mov	r2, #0
	str	r2, [r3]
.L41:
	ldr	r3, .L44+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r2, .L44+24
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, .L44+28
	smull	r0, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, .L44+32
	bl	printf
	ldr	r3, .L44+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L38:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L42
	mov	r2, #0
	mov	r1, #0
	mov	r0, #0
	bl	on_led
	mov	r0, #1
	bl	sleep
	ldr	r0, .L44+40
	bl	puts
	ldr	r0, .L44+44
	bl	puts
	ldr	r2, .L44+24
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L44+48
	bl	printf
	ldr	r0, .L44+52
	bl	puts
	ldr	r3, .L44+20
	ldr	r3, [r3]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC11
	.word	switch_fd
	.word	switch_value_str
	.word	switch_state
	.word	100000
	.word	to_catch
	.word	map
	.word	1717986919
	.word	.LC16
	.word	stdout
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	selection, .-selection
	.section	.rodata
	.align	2
.LC21:
	.ascii	"received SIGINT\000"
	.text
	.align	2
	.global	signal_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_handler, %function
signal_handler:
	@ 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	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L48
	ldr	r0, .L49
	bl	usleep
	ldr	r0, .L49+4
	bl	puts
.L48:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	500000
	.word	.LC21
	.size	signal_handler, .-signal_handler
	.section	.rodata
	.align	2
.LC22:
	.ascii	"@cls||clear\000"
	.align	2
.LC23:
	.ascii	"*****************************************\000"
	.align	2
.LC24:
	.ascii	"   !!! WELCOME TO CATCH THE COLOR !!!    \000"
	.align	2
.LC25:
	.ascii	"      Select and catch the color         \000"
	.align	2
.LC26:
	.ascii	"!!! Test your hand-eye coordination !!!  \000"
	.align	2
.LC27:
	.ascii	"*******************************************\000"
	.align	2
.LC28:
	.ascii	"*               HOW TO PLAY               *\000"
	.align	2
.LC29:
	.ascii	"* STEP1: Click once to select over colors *\000"
	.align	2
.LC30:
	.ascii	"* STEP2: Wait for countdown to start game *\000"
	.align	2
.LC31:
	.ascii	"*         LEVEL = 10        LIFE = 3      *\000"
	.align	2
.LC32:
	.ascii	"\012\000"
	.align	2
.LC33:
	.ascii	"Press Key to continue...\000"
	.align	2
.LC34:
	.ascii	"\012can't catch \000"
	.align	2
.LC35:
	.ascii	"\012\012\012!!! GRAND WIN !!!\012\012\000"
	.align	2
.LC36:
	.ascii	"\012\012\012!!! GRAND LOSE !!!\012\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L56
	bl	system
	bl	init_gpio
	ldr	r0, .L56+4
	bl	puts
	ldr	r0, .L56+8
	bl	puts
	ldr	r0, .L56+12
	bl	puts
	ldr	r0, .L56+16
	bl	puts
	ldr	r0, .L56+4
	bl	puts
	bl	fancy_dance
	mov	r0, #1
	bl	sleep
	mov	r2, #0
	mov	r1, #0
	mov	r0, #0
	bl	on_led
	ldr	r0, .L56+20
	bl	puts
	ldr	r0, .L56+24
	bl	puts
	ldr	r0, .L56+28
	bl	puts
	ldr	r0, .L56+24
	bl	puts
	ldr	r0, .L56+32
	bl	puts
	ldr	r0, .L56+36
	bl	puts
	ldr	r0, .L56+40
	bl	puts
	ldr	r0, .L56+24
	bl	puts
	ldr	r0, .L56+44
	bl	puts
	ldr	r0, .L56+48
	bl	puts
	ldr	r1, .L56+52
	mov	r0, #2
	bl	signal
	mov	r3, r0
	cmn	r3, #1
	bne	.L52
	ldr	r0, .L56+56
	bl	puts
.L52:
	bl	selection
	mov	r3, r0
	ldr	r2, .L56+60
	str	r3, [r2]
	ldr	r3, .L56+60
	ldr	r3, [r3]
	mov	r0, r3
	bl	game
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L53
	ldr	r0, .L56+64
	bl	puts
	b	.L54
.L53:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L54
	ldr	r0, .L56+68
	bl	puts
.L54:
	mov	r2, #0
	mov	r1, #0
	mov	r0, #0
	bl	on_led
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC17
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	signal_handler
	.word	.LC34
	.word	to_catch
	.word	.LC35
	.word	.LC36
	.size	main, .-main
	.local	filename.6396
	.comm	filename.6396,100,4
	.local	red_filename.6403
	.comm	red_filename.6403,100,4
	.local	yel_filename.6404
	.comm	yel_filename.6404,100,4
	.local	blu_filename.6405
	.comm	blu_filename.6405,100,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
