	.file	"888164.c"
	.intel_syntax noprefix
	.text
	.globl	fd
	.data
	.align 4
	.type	fd, @object
	.size	fd, 4
fd:
	.long	-1
	.globl	tallyLights
	.section	.rodata
	.align 32
	.type	tallyLights, @object
	.size	tallyLights, 72
tallyLights:
	.long	1024
	.long	2048
	.long	4096
	.long	8192
	.long	16384
	.long	32768
	.long	65536
	.long	131072
	.long	262144
	.long	524288
	.long	16777216
	.long	33554432
	.long	67108864
	.long	-2147483648
	.long	536870912
	.long	134217728
	.long	1073741824
	.long	268435456
.LC0:
	.string	"/dev/hidraw0"
.LC1:
	.string	"Unable to open device"
.LC2:
	.string	"HIDIOCGRDESCSIZE"
.LC3:
	.string	"Report Descriptor Size: %d\n"
.LC4:
	.string	"HIDIOCGRDESC"
.LC5:
	.string	"Report Descriptor:"
.LC6:
	.string	"%hhx "
.LC7:
	.string	"\n"
.LC8:
	.string	"HIDIOCGRAWNAME"
.LC9:
	.string	"Raw Name: %s\n"
.LC10:
	.string	"HIDIOCGRAWPHYS"
.LC11:
	.string	"Raw Phys: %s\n"
.LC12:
	.string	"HIDIOCGRAWINFO"
.LC13:
	.string	"Raw Info:"
.LC14:
	.string	"\tbustype: %d (%s)\n"
.LC15:
	.string	"\tvendor: 0x%04hx\n"
.LC16:
	.string	"\tproduct: 0x%04hx\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 528
	mov	DWORD PTR -4612[rbp], edi
	mov	QWORD PTR -4624[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4604[rbp], 0
	lea	rax, .LC0[rip]
	mov	QWORD PTR -4592[rbp], rax
	lea	rsi, Quit[rip]
	mov	edi, 2
	call	signal@PLT
	cmp	DWORD PTR -4612[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -4624[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -4592[rbp], rax
.L2:
	mov	rax, QWORD PTR -4592[rbp]
	mov	esi, 2050
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	test	eax, eax
	jns	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	jmp	.L19
.L3:
	lea	rax, -4384[rbp]
	mov	edx, 4100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -4584[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -4604[rbp]
	mov	esi, 2147764225
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4596[rbp], eax
	cmp	DWORD PTR -4596[rbp], 0
	jns	.L5
	lea	rdi, .LC2[rip]
	call	perror@PLT
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -4604[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	eax, DWORD PTR -4604[rbp]
	mov	DWORD PTR -4384[rbp], eax
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -4384[rbp]
	mov	esi, 2416199682
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4596[rbp], eax
	cmp	DWORD PTR -4596[rbp], 0
	jns	.L7
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L8
.L7:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR -4600[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -4600[rbp]
	cdqe
	movzx	eax, BYTE PTR -4380[rbp+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4600[rbp], 1
.L9:
	mov	edx, DWORD PTR -4384[rbp]
	mov	eax, DWORD PTR -4600[rbp]
	cmp	edx, eax
	ja	.L10
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L8:
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -272[rbp]
	mov	esi, 2164279300
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4596[rbp], eax
	cmp	DWORD PTR -4596[rbp], 0
	jns	.L11
	lea	rdi, .LC8[rip]
	call	perror@PLT
	jmp	.L12
.L11:
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -272[rbp]
	mov	esi, 2164279301
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4596[rbp], eax
	cmp	DWORD PTR -4596[rbp], 0
	jns	.L13
	lea	rdi, .LC10[rip]
	call	perror@PLT
	jmp	.L14
.L13:
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -4584[rbp]
	mov	esi, 2148026371
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4596[rbp], eax
	cmp	DWORD PTR -4596[rbp], 0
	jns	.L15
	lea	rdi, .LC12[rip]
	call	perror@PLT
	jmp	.L16
.L15:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4584[rbp]
	mov	edi, eax
	call	bus_str
	mov	rdx, rax
	mov	eax, DWORD PTR -4584[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR -4580[rbp]
	cwde
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR -4578[rbp]
	cwde
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	lea	rax, -4544[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, timer_handler[rip]
	mov	QWORD PTR -4544[rbp], rax
	lea	rax, -4544[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 14
	call	sigaction@PLT
	mov	QWORD PTR -4560[rbp], 0
	mov	QWORD PTR -4552[rbp], 10000
	mov	QWORD PTR -4576[rbp], 0
	mov	QWORD PTR -4568[rbp], 10000
	lea	rax, -4576[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	setitimer@PLT
.L17:
	mov	edi, 1
	call	sleep@PLT
	jmp	.L17
.L19:
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC17:
	.string	"Bye!"
	.text
	.globl	Quit
	.type	Quit, @function
Quit:
.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
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	eax, DWORD PTR fd[rip]
	test	eax, eax
	js	.L21
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
.L21:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	Quit, .-Quit
	.section	.rodata
.LC18:
	.string	"USB"
.LC19:
	.string	"HIL"
.LC20:
	.string	"Bluetooth"
.LC21:
	.string	"Virtual"
.LC22:
	.string	"Other"
	.text
	.globl	bus_str
	.type	bus_str, @function
bus_str:
.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], 6
	je	.L23
	cmp	DWORD PTR -4[rbp], 6
	jg	.L24
	cmp	DWORD PTR -4[rbp], 5
	je	.L25
	cmp	DWORD PTR -4[rbp], 5
	jg	.L24
	cmp	DWORD PTR -4[rbp], 3
	je	.L26
	cmp	DWORD PTR -4[rbp], 4
	je	.L27
	jmp	.L24
.L26:
	lea	rax, .LC18[rip]
	jmp	.L28
.L27:
	lea	rax, .LC19[rip]
	jmp	.L28
.L25:
	lea	rax, .LC20[rip]
	jmp	.L28
.L23:
	lea	rax, .LC21[rip]
	jmp	.L28
.L24:
	lea	rax, .LC22[rip]
.L28:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	bus_str, .-bus_str
	.section	.rodata
.LC23:
	.string	"%02x "
	.text
	.globl	timer_handler
	.type	timer_handler, @function
timer_handler:
.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, 304
	mov	DWORD PTR -292[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -272[rbp]
	mov	edx, 17
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], 0
	jle	.L30
	mov	DWORD PTR -280[rbp], 0
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -280[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -280[rbp], 1
.L31:
	mov	eax, DWORD PTR -280[rbp]
	cmp	eax, DWORD PTR -276[rbp]
	jl	.L32
	mov	edi, 10
	call	putchar@PLT
.L30:
	mov	eax, DWORD PTR messageTimer.2[rip]
	test	eax, eax
	jne	.L33
	mov	BYTE PTR -272[rbp], 2
	mov	BYTE PTR -271[rbp], 72
	mov	BYTE PTR -270[rbp], 101
	mov	BYTE PTR -269[rbp], 108
	mov	BYTE PTR -268[rbp], 108
	mov	BYTE PTR -267[rbp], 111
	mov	BYTE PTR -266[rbp], 32
	mov	BYTE PTR -265[rbp], 119
	mov	BYTE PTR -264[rbp], 111
	mov	BYTE PTR -263[rbp], 114
	mov	BYTE PTR -262[rbp], 108
	mov	BYTE PTR -261[rbp], 100
	mov	BYTE PTR -260[rbp], 33
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -272[rbp]
	mov	edx, 13
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L34
.L33:
	mov	eax, DWORD PTR messageTimer.2[rip]
	cmp	eax, 50
	jne	.L35
	mov	BYTE PTR -272[rbp], 2
	mov	BYTE PTR -271[rbp], 65
	mov	BYTE PTR -270[rbp], 66
	mov	BYTE PTR -269[rbp], 67
	mov	BYTE PTR -268[rbp], 68
	mov	BYTE PTR -267[rbp], 69
	mov	BYTE PTR -266[rbp], 70
	mov	BYTE PTR -265[rbp], 54
	mov	BYTE PTR -264[rbp], 72
	mov	BYTE PTR -263[rbp], 73
	mov	BYTE PTR -262[rbp], 74
	mov	BYTE PTR -261[rbp], 75
	mov	BYTE PTR -260[rbp], 76
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -272[rbp]
	mov	edx, 13
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L34
.L35:
	mov	eax, DWORD PTR messageTimer.2[rip]
	cmp	eax, 100
	jne	.L36
	mov	BYTE PTR -272[rbp], 2
	mov	BYTE PTR -271[rbp], 32
	mov	BYTE PTR -270[rbp], 48
	mov	BYTE PTR -269[rbp], 49
	mov	BYTE PTR -268[rbp], 50
	mov	BYTE PTR -267[rbp], 51
	mov	BYTE PTR -266[rbp], 52
	mov	BYTE PTR -265[rbp], 53
	mov	BYTE PTR -264[rbp], 54
	mov	BYTE PTR -263[rbp], 55
	mov	BYTE PTR -262[rbp], 56
	mov	BYTE PTR -261[rbp], 57
	mov	BYTE PTR -260[rbp], 32
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -272[rbp]
	mov	edx, 13
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L34
.L36:
	mov	eax, DWORD PTR messageTimer.2[rip]
	cmp	eax, 150
	jne	.L34
	mov	BYTE PTR -272[rbp], 2
	mov	BYTE PTR -271[rbp], 97
	mov	BYTE PTR -270[rbp], 98
	mov	BYTE PTR -269[rbp], 99
	mov	BYTE PTR -268[rbp], 100
	mov	BYTE PTR -267[rbp], 101
	mov	BYTE PTR -266[rbp], 102
	mov	BYTE PTR -265[rbp], 54
	mov	BYTE PTR -264[rbp], 104
	mov	BYTE PTR -263[rbp], 105
	mov	BYTE PTR -262[rbp], 106
	mov	BYTE PTR -261[rbp], 107
	mov	BYTE PTR -260[rbp], 108
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -272[rbp]
	mov	edx, 13
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L34:
	mov	eax, DWORD PTR messageTimer.2[rip]
	add	eax, 1
	mov	DWORD PTR messageTimer.2[rip], eax
	mov	eax, DWORD PTR messageTimer.2[rip]
	cmp	eax, 199
	jle	.L37
	mov	DWORD PTR messageTimer.2[rip], 0
.L37:
	mov	eax, DWORD PTR tallyTimer.1[rip]
	test	eax, eax
	jne	.L38
	mov	BYTE PTR -272[rbp], 3
	mov	eax, DWORD PTR tallyState.0[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, tallyLights[rip]
	mov	eax, DWORD PTR [rdx+rax]
	shr	eax, 24
	mov	BYTE PTR -271[rbp], al
	mov	eax, DWORD PTR tallyState.0[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, tallyLights[rip]
	mov	eax, DWORD PTR [rdx+rax]
	shr	eax, 16
	mov	BYTE PTR -270[rbp], al
	mov	eax, DWORD PTR tallyState.0[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, tallyLights[rip]
	mov	eax, DWORD PTR [rdx+rax]
	shr	eax, 8
	mov	BYTE PTR -269[rbp], al
	mov	eax, DWORD PTR tallyState.0[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, tallyLights[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	BYTE PTR -268[rbp], al
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -272[rbp]
	mov	edx, 5
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR tallyState.0[rip]
	add	eax, 1
	mov	DWORD PTR tallyState.0[rip], eax
	mov	eax, DWORD PTR tallyState.0[rip]
	cmp	eax, 17
	jle	.L38
	mov	DWORD PTR tallyState.0[rip], 0
.L38:
	mov	eax, DWORD PTR tallyTimer.1[rip]
	add	eax, 1
	mov	DWORD PTR tallyTimer.1[rip], eax
	mov	eax, DWORD PTR tallyTimer.1[rip]
	cmp	eax, 24
	jle	.L41
	mov	DWORD PTR tallyTimer.1[rip], 0
.L41:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	timer_handler, .-timer_handler
	.local	messageTimer.2
	.comm	messageTimer.2,4,4
	.local	tallyTimer.1
	.comm	tallyTimer.1,4,4
	.local	tallyState.0
	.comm	tallyState.0,4,4
	.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	"888164.c"
	.text
	.global	fd
	.data
	.align	2
	.type	fd, %object
	.size	fd, 4
fd:
	.word	-1
	.global	tallyLights
	.section	.rodata
	.align	2
	.type	tallyLights, %object
	.size	tallyLights, 72
tallyLights:
	.word	1024
	.word	2048
	.word	4096
	.word	8192
	.word	16384
	.word	32768
	.word	65536
	.word	131072
	.word	262144
	.word	524288
	.word	16777216
	.word	33554432
	.word	67108864
	.word	-2147483648
	.word	536870912
	.word	134217728
	.word	1073741824
	.word	268435456
	.align	2
.LC0:
	.ascii	"/dev/hidraw0\000"
	.align	2
.LC1:
	.ascii	"Unable to open device\000"
	.align	2
.LC2:
	.ascii	"HIDIOCGRDESCSIZE\000"
	.align	2
.LC3:
	.ascii	"Report Descriptor Size: %d\012\000"
	.align	2
.LC4:
	.ascii	"HIDIOCGRDESC\000"
	.align	2
.LC5:
	.ascii	"Report Descriptor:\000"
	.align	2
.LC6:
	.ascii	"%hhx \000"
	.align	2
.LC7:
	.ascii	"\012\000"
	.align	2
.LC8:
	.ascii	"HIDIOCGRAWNAME\000"
	.align	2
.LC9:
	.ascii	"Raw Name: %s\012\000"
	.align	2
.LC10:
	.ascii	"HIDIOCGRAWPHYS\000"
	.align	2
.LC11:
	.ascii	"Raw Phys: %s\012\000"
	.align	2
.LC12:
	.ascii	"HIDIOCGRAWINFO\000"
	.align	2
.LC13:
	.ascii	"Raw Info:\000"
	.align	2
.LC14:
	.ascii	"\011bustype: %d (%s)\012\000"
	.align	2
.LC15:
	.ascii	"\011vendor: 0x%04hx\012\000"
	.align	2
.LC16:
	.ascii	"\011product: 0x%04hx\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4552
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4544
	sub	sp, sp, #12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-452]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-456]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-444]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L20+4
	str	r3, [r2, #-440]
	ldr	r1, .L20+8
	mov	r0, #2
	bl	signal
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-452]
	cmp	r3, #1
	ble	.L2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-456]
	ldr	r3, [r3, #4]
	str	r3, [r2, #-440]
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L20+12
	ldr	r0, [r3, #-440]
	bl	open
	mov	r3, r0
	ldr	r2, .L20+16
	str	r3, [r2]
	ldr	r3, .L20+16
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L20+20
	bl	perror
	mov	r3, #1
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	b	.L19
.L3:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, .L20+24
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4480
	sub	r3, r3, #12
	sub	r3, r3, #44
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #272
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L20+16
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4480
	sub	r3, r3, #12
	sub	r3, r3, #60
	mov	r2, r3
	ldr	r1, .L20+28
	bl	ioctl
	str	r0, [r4, #-432]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-432]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L20+32
	bl	perror
	b	.L6
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-444]
	mov	r1, r3
	ldr	r0, .L20+36
	bl	printf
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-444]
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r2, [r3, #-264]
	ldr	r3, .L20+16
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, r3
	ldr	r1, .L20+40
	bl	ioctl
	str	r0, [r4, #-432]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-432]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L20+44
	bl	perror
	b	.L8
.L7:
	ldr	r0, .L20+48
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-436]
	b	.L9
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-436]
	add	r3, r2, r3
	sub	r3, r3, #260
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L20+52
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-436]
	add	r3, r3, #1
	str	r3, [r2, #-436]
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-264]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-436]
	cmp	r2, r3
	bhi	.L10
	ldr	r0, .L20+56
	bl	puts
.L8:
	ldr	r3, .L20+16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #272
	ldr	r1, .L20+60
	mov	r0, r3
	bl	ioctl
	str	r0, [r4, #-432]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-432]
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L20+64
	bl	perror
	b	.L12
.L11:
	sub	r3, fp, #272
	mov	r1, r3
	ldr	r0, .L20+68
	bl	printf
.L12:
	ldr	r3, .L20+16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #272
	ldr	r1, .L20+72
	mov	r0, r3
	bl	ioctl
	str	r0, [r4, #-432]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-432]
	cmp	r3, #0
	bge	.L13
	ldr	r0, .L20+76
	bl	perror
	b	.L14
.L13:
	sub	r3, fp, #272
	mov	r1, r3
	ldr	r0, .L20+80
	bl	printf
.L14:
	ldr	r3, .L20+16
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4480
	sub	r3, r3, #12
	sub	r3, r3, #44
	mov	r2, r3
	ldr	r1, .L20+84
	bl	ioctl
	str	r0, [r4, #-432]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-432]
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L20+88
	bl	perror
	b	.L16
.L15:
	ldr	r0, .L20+92
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r4, [r3, #-428]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-428]
	mov	r0, r3
	bl	bus_str
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L20+96
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #428
	ldrsh	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L20+100
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #428
	ldrsh	r3, [r3, #6]
	mov	r1, r3
	ldr	r0, .L20+104
	bl	printf
.L16:
	sub	r3, fp, #4480
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L20+108
	str	r3, [r2, #-404]
	sub	r3, fp, #4480
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r2, #0
	mov	r1, r3
	mov	r0, #14
	bl	sigaction
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-412]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L20+112
	str	r3, [r2, #-408]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-420]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L20+112
	str	r3, [r2, #-416]
	sub	r3, fp, #4480
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	setitimer
.L17:
	mov	r0, #1
	bl	sleep
	b	.L17
.L19:
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC17
	.word	.LC0
	.word	Quit
	.word	2050
	.word	fd
	.word	.LC1
	.word	4100
	.word	-2147203071
	.word	.LC2
	.word	.LC3
	.word	-1878767614
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	-2130687996
	.word	.LC8
	.word	.LC9
	.word	-2130687995
	.word	.LC10
	.word	.LC11
	.word	-2146940925
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	timer_handler
	.word	10000
	.size	main, .-main
	.section	.rodata
	.align	2
.LC18:
	.ascii	"Bye!\000"
	.text
	.align	2
	.global	Quit
	.syntax unified
	.arm
	.fpu softvfp
	.type	Quit, %function
Quit:
	@ 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, .L24
	bl	puts
	ldr	r3, .L24+4
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L23
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
.L23:
	mov	r0, #0
	bl	exit
.L25:
	.align	2
.L24:
	.word	.LC18
	.word	fd
	.size	Quit, .-Quit
	.section	.rodata
	.align	2
.LC19:
	.ascii	"USB\000"
	.align	2
.LC20:
	.ascii	"HIL\000"
	.align	2
.LC21:
	.ascii	"Bluetooth\000"
	.align	2
.LC22:
	.ascii	"Virtual\000"
	.align	2
.LC23:
	.ascii	"Other\000"
	.text
	.align	2
	.global	bus_str
	.syntax unified
	.arm
	.fpu softvfp
	.type	bus_str, %function
bus_str:
	@ 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]
	sub	r3, r3, #3
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L27
.L29:
	.word	.L32
	.word	.L31
	.word	.L30
	.word	.L28
.L32:
	ldr	r3, .L34
	b	.L33
.L31:
	ldr	r3, .L34+4
	b	.L33
.L30:
	ldr	r3, .L34+8
	b	.L33
.L28:
	ldr	r3, .L34+12
	b	.L33
.L27:
	ldr	r3, .L34+16
.L33:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L35:
	.align	2
.L34:
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	bus_str, .-bus_str
	.section	.rodata
	.align	2
.LC24:
	.ascii	"%02x \000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	timer_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	timer_handler, %function
timer_handler:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	str	r0, [fp, #-280]
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #264
	mov	r2, #17
	mov	r0, r3
	bl	read
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	ble	.L37
	mov	r3, #0
	str	r3, [fp, #-272]
	b	.L38
.L39:
	sub	r2, fp, #264
	ldr	r3, [fp, #-272]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L49+8
	bl	printf
	ldr	r3, [fp, #-272]
	add	r3, r3, #1
	str	r3, [fp, #-272]
.L38:
	ldr	r2, [fp, #-272]
	ldr	r3, [fp, #-268]
	cmp	r2, r3
	blt	.L39
	mov	r0, #10
	bl	putchar
.L37:
	ldr	r3, .L49+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L40
	mov	r3, #2
	strb	r3, [fp, #-264]
	mov	r3, #72
	strb	r3, [fp, #-263]
	mov	r3, #101
	strb	r3, [fp, #-262]
	mov	r3, #108
	strb	r3, [fp, #-261]
	mov	r3, #108
	strb	r3, [fp, #-260]
	mov	r3, #111
	strb	r3, [fp, #-259]
	mov	r3, #32
	strb	r3, [fp, #-258]
	mov	r3, #119
	strb	r3, [fp, #-257]
	mov	r3, #111
	strb	r3, [fp, #-256]
	mov	r3, #114
	strb	r3, [fp, #-255]
	mov	r3, #108
	strb	r3, [fp, #-254]
	mov	r3, #100
	strb	r3, [fp, #-253]
	mov	r3, #33
	strb	r3, [fp, #-252]
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #264
	mov	r2, #13
	mov	r0, r3
	bl	write
	b	.L41
.L40:
	ldr	r3, .L49+12
	ldr	r3, [r3]
	cmp	r3, #50
	bne	.L42
	mov	r3, #2
	strb	r3, [fp, #-264]
	mov	r3, #65
	strb	r3, [fp, #-263]
	mov	r3, #66
	strb	r3, [fp, #-262]
	mov	r3, #67
	strb	r3, [fp, #-261]
	mov	r3, #68
	strb	r3, [fp, #-260]
	mov	r3, #69
	strb	r3, [fp, #-259]
	mov	r3, #70
	strb	r3, [fp, #-258]
	mov	r3, #54
	strb	r3, [fp, #-257]
	mov	r3, #72
	strb	r3, [fp, #-256]
	mov	r3, #73
	strb	r3, [fp, #-255]
	mov	r3, #74
	strb	r3, [fp, #-254]
	mov	r3, #75
	strb	r3, [fp, #-253]
	mov	r3, #76
	strb	r3, [fp, #-252]
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #264
	mov	r2, #13
	mov	r0, r3
	bl	write
	b	.L41
.L42:
	ldr	r3, .L49+12
	ldr	r3, [r3]
	cmp	r3, #100
	bne	.L43
	mov	r3, #2
	strb	r3, [fp, #-264]
	mov	r3, #32
	strb	r3, [fp, #-263]
	mov	r3, #48
	strb	r3, [fp, #-262]
	mov	r3, #49
	strb	r3, [fp, #-261]
	mov	r3, #50
	strb	r3, [fp, #-260]
	mov	r3, #51
	strb	r3, [fp, #-259]
	mov	r3, #52
	strb	r3, [fp, #-258]
	mov	r3, #53
	strb	r3, [fp, #-257]
	mov	r3, #54
	strb	r3, [fp, #-256]
	mov	r3, #55
	strb	r3, [fp, #-255]
	mov	r3, #56
	strb	r3, [fp, #-254]
	mov	r3, #57
	strb	r3, [fp, #-253]
	mov	r3, #32
	strb	r3, [fp, #-252]
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #264
	mov	r2, #13
	mov	r0, r3
	bl	write
	b	.L41
.L43:
	ldr	r3, .L49+12
	ldr	r3, [r3]
	cmp	r3, #150
	bne	.L41
	mov	r3, #2
	strb	r3, [fp, #-264]
	mov	r3, #97
	strb	r3, [fp, #-263]
	mov	r3, #98
	strb	r3, [fp, #-262]
	mov	r3, #99
	strb	r3, [fp, #-261]
	mov	r3, #100
	strb	r3, [fp, #-260]
	mov	r3, #101
	strb	r3, [fp, #-259]
	mov	r3, #102
	strb	r3, [fp, #-258]
	mov	r3, #54
	strb	r3, [fp, #-257]
	mov	r3, #104
	strb	r3, [fp, #-256]
	mov	r3, #105
	strb	r3, [fp, #-255]
	mov	r3, #106
	strb	r3, [fp, #-254]
	mov	r3, #107
	strb	r3, [fp, #-253]
	mov	r3, #108
	strb	r3, [fp, #-252]
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #264
	mov	r2, #13
	mov	r0, r3
	bl	write
.L41:
	ldr	r3, .L49+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L49+12
	str	r3, [r2]
	ldr	r3, .L49+12
	ldr	r3, [r3]
	cmp	r3, #199
	ble	.L44
	ldr	r3, .L49+12
	mov	r2, #0
	str	r2, [r3]
.L44:
	ldr	r3, .L49+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L45
	mov	r3, #3
	strb	r3, [fp, #-264]
	ldr	r3, .L49+20
	ldr	r3, [r3]
	ldr	r2, .L49+24
	ldr	r3, [r2, r3, lsl #2]
	lsr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [fp, #-263]
	ldr	r3, .L49+20
	ldr	r3, [r3]
	ldr	r2, .L49+24
	ldr	r3, [r2, r3, lsl #2]
	lsr	r3, r3, #16
	and	r3, r3, #255
	strb	r3, [fp, #-262]
	ldr	r3, .L49+20
	ldr	r3, [r3]
	ldr	r2, .L49+24
	ldr	r3, [r2, r3, lsl #2]
	lsr	r3, r3, #8
	and	r3, r3, #255
	strb	r3, [fp, #-261]
	ldr	r3, .L49+20
	ldr	r3, [r3]
	ldr	r2, .L49+24
	ldr	r3, [r2, r3, lsl #2]
	and	r3, r3, #255
	strb	r3, [fp, #-260]
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #264
	mov	r2, #5
	mov	r0, r3
	bl	write
	ldr	r3, .L49+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L49+20
	str	r3, [r2]
	ldr	r3, .L49+20
	ldr	r3, [r3]
	cmp	r3, #17
	ble	.L45
	ldr	r3, .L49+20
	mov	r2, #0
	str	r2, [r3]
.L45:
	ldr	r3, .L49+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L49+16
	str	r3, [r2]
	ldr	r3, .L49+16
	ldr	r3, [r3]
	cmp	r3, #24
	ble	.L48
	ldr	r3, .L49+16
	mov	r2, #0
	str	r2, [r3]
.L48:
	nop
	ldr	r3, .L49
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC25
	.word	fd
	.word	.LC24
	.word	messageTimer.6649
	.word	tallyTimer.6650
	.word	tallyState.6651
	.word	tallyLights
	.size	timer_handler, .-timer_handler
	.local	messageTimer.6649
	.comm	messageTimer.6649,4,4
	.local	tallyTimer.6650
	.comm	tallyTimer.6650,4,4
	.local	tallyState.6651
	.comm	tallyState.6651,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
