	.file	"599157.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/input/event3"
.LC1:
	.string	"Couldn't open input device\n"
.LC2:
	.string	"Error reading input\n"
	.align 8
.LC3:
	.string	"sudo ectool lightbar 4 %X %X %X\n"
	.align 8
.LC4:
	.string	"Error changing lightbar color.\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
	push	r12
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 64
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8260[rbp], eax
	cmp	DWORD PTR -8260[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L6
.L2:
	lea	rcx, -8256[rbp]
	mov	eax, DWORD PTR -8260[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jns	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L6
.L4:
	mov	eax, DWORD PTR -8236[rbp]
	cmp	eax, 1
	jne	.L2
	call	random@PLT
	mov	rcx, rax
	movabs	rdx, -9187201950435737471
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 7
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	mov	r12, rax
	mov	rax, r12
	sal	rax, 8
	sub	rax, r12
	sub	rcx, rax
	mov	r12, rcx
	call	random@PLT
	mov	rcx, rax
	movabs	rdx, -9187201950435737471
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 7
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	mov	rbx, rax
	mov	rax, rbx
	sal	rax, 8
	sub	rax, rbx
	mov	rbx, rcx
	sub	rbx, rax
	call	random@PLT
	mov	rcx, rax
	movabs	rdx, -9187201950435737471
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 7
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	mov	rdx, rax
	sal	rdx, 8
	sub	rdx, rax
	mov	rax, rcx
	sub	rax, rdx
	lea	rdi, -8224[rbp]
	mov	r9, r12
	mov	r8, rbx
	mov	rcx, rax
	lea	rdx, .LC3[rip]
	mov	esi, 8192
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -8224[rbp]
	mov	rdi, rax
	call	system@PLT
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 1
.L6:
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	add	rsp, 8256
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"599157.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/input/event3\000"
	.align	2
.LC1:
	.ascii	"Couldn't open input device\012\000"
	.align	2
.LC2:
	.ascii	"Error reading input\012\000"
	.align	2
.LC3:
	.ascii	"sudo ectool lightbar 4 %X %X %X\012\000"
	.align	2
.LC4:
	.ascii	"Error changing lightbar color.\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8192
	sub	sp, sp, #32
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r1, #0
	ldr	r0, .L8+4
	bl	open
	str	r0, [r4, #-24]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L8+8
	bl	perror
	mov	r3, #1
	b	.L6
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-24]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r3, .L8+12
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L8+16
	bl	fwrite
	mov	r3, #1
	b	.L6
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #1
	bne	.L2
	bl	random
	mov	r2, r0
	ldr	r3, .L8+20
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #7
	asr	r3, r2, #31
	sub	r5, r1, r3
	mov	r3, r5
	lsl	r3, r3, #8
	sub	r3, r3, r5
	sub	r5, r2, r3
	bl	random
	mov	r2, r0
	ldr	r3, .L8+20
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #7
	asr	r3, r2, #31
	sub	r4, r1, r3
	mov	r3, r4
	lsl	r3, r3, #8
	sub	r3, r3, r4
	sub	r4, r2, r3
	bl	random
	mov	r2, r0
	ldr	r3, .L8+20
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #7
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #8
	sub	r3, r3, r1
	sub	r1, r2, r3
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	str	r1, [sp, #4]
	str	r4, [sp]
	mov	r3, r5
	ldr	r2, .L8+24
	mov	r1, #8192
	bl	snprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L8+12
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L8+28
	bl	fwrite
	mov	r3, #1
.L6:
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	-2139062143
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
