	.file	"417791.c"
	.intel_syntax noprefix
	.text
	.globl	file_gyro
	.bss
	.align 4
	.type	file_gyro, @object
	.size	file_gyro, 4
file_gyro:
	.zero	4
	.globl	file_rgb
	.align 4
	.type	file_rgb, @object
	.size	file_rgb, 4
file_rgb:
	.zero	4
	.section	.rodata
.LC0:
	.string	"/dev/i2c-1"
.LC1:
	.string	"/dev/i2c-2"
.LC2:
	.string	"Failed to open the rgb bus. "
.LC3:
	.string	"Failed to open the gyro bus. "
	.align 8
.LC4:
	.string	"Rgb bus opened. Return value = %d \n"
	.align 8
.LC5:
	.string	"Gyro bus opened. Return value = %d \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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR file_rgb[rip], eax
	mov	eax, DWORD PTR file_rgb[rip]
	test	eax, eax
	jns	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR file_gyro[rip], eax
	mov	eax, DWORD PTR file_gyro[rip]
	test	eax, eax
	jns	.L3
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR file_rgb[rip]
	mov	edx, 41
	mov	esi, 1795
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR file_gyro[rip]
	mov	edx, 107
	mov	esi, 1795
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	config_rgb
	mov	eax, 0
	call	config_gyro
	pxor	xmm0, xmm0
	movss	DWORD PTR -44[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -40[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -36[rbp], xmm0
.L5:
	mov	BYTE PTR -10[rbp], 39
	mov	BYTE PTR -9[rbp], 0
	mov	eax, DWORD PTR file_gyro[rip]
	lea	rcx, -10[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR file_gyro[rip]
	lea	rcx, -9[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	movzx	eax, BYTE PTR -9[rbp]
	movsx	eax, al
	and	eax, 7
	test	eax, eax
	je	.L4
	movzx	eax, BYTE PTR -9[rbp]
	movsx	eax, al
	lea	rcx, -36[rbp]
	lea	rdx, -40[rbp]
	lea	rsi, -44[rbp]
	mov	edi, eax
	mov	eax, 0
	call	get_gyro_data
.L4:
	mov	eax, 0
	call	get_rgb_values
	jmp	.L5
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC12:
	.string	"Rotational speed:  x: %.2f\ty: %.2f\tz: %.2f\n"
	.align 8
.LC13:
	.string	"Angles:  x: %.2f\ty: %.2f\tz: %.2f\n"
	.text
	.globl	get_gyro_data
	.type	get_gyro_data, @function
get_gyro_data:
.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, 80
	mov	eax, edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -80[rbp], rcx
	mov	BYTE PTR -52[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	movss	DWORD PTR -36[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -32[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -28[rbp], xmm0
	mov	BYTE PTR -10[rbp], 0
	mov	BYTE PTR -9[rbp], 0
	mov	BYTE PTR -43[rbp], 0
	movsx	eax, BYTE PTR -52[rbp]
	and	eax, 1
	test	eax, eax
	je	.L8
	or	BYTE PTR -43[rbp], 1
	mov	BYTE PTR -10[rbp], 40
	mov	eax, DWORD PTR file_gyro[rip]
	lea	rcx, -10[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR file_gyro[rip]
	lea	rcx, -9[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR -42[rbp], al
	mov	BYTE PTR -10[rbp], 41
	mov	eax, DWORD PTR file_gyro[rip]
	lea	rcx, -10[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR file_gyro[rip]
	lea	rcx, -9[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR -41[rbp], al
	movsx	eax, BYTE PTR -41[rbp]
	sal	eax, 8
	mov	edx, eax
	movsx	eax, BYTE PTR -42[rbp]
	add	eax, edx
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 32767
	jle	.L9
	sub	DWORD PTR -24[rbp], 65536
.L9:
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -24[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -36[rbp], xmm0
	movss	xmm0, DWORD PTR -36[rbp]
	comiss	xmm0, DWORD PTR .LC8[rip]
	jbe	.L10
	movss	xmm0, DWORD PTR .LC9[rip]
	comiss	xmm0, DWORD PTR -36[rbp]
	jbe	.L10
	pxor	xmm0, xmm0
	movss	DWORD PTR -36[rbp], xmm0
.L10:
	mov	rax, QWORD PTR -64[rbp]
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -36[rbp]
	movsd	xmm0, QWORD PTR .LC10[rip]
	mulsd	xmm0, xmm2
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	mov	rax, QWORD PTR -64[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -64[rbp]
	movss	xmm1, DWORD PTR [rax]
	pxor	xmm0, xmm0
	comiss	xmm0, xmm1
	jbe	.L13
	mov	rax, QWORD PTR -64[rbp]
	movss	xmm1, DWORD PTR [rax]
	movss	xmm0, DWORD PTR .LC11[rip]
	addss	xmm0, xmm1
	mov	rax, QWORD PTR -64[rbp]
	movss	DWORD PTR [rax], xmm0
.L13:
	mov	rax, QWORD PTR -64[rbp]
	movss	xmm0, DWORD PTR [rax]
	comiss	xmm0, DWORD PTR .LC11[rip]
	jbe	.L8
	mov	rax, QWORD PTR -64[rbp]
	movss	xmm0, DWORD PTR [rax]
	movss	xmm1, DWORD PTR .LC11[rip]
	subss	xmm0, xmm1
	mov	rax, QWORD PTR -64[rbp]
	movss	DWORD PTR [rax], xmm0
.L8:
	movsx	eax, BYTE PTR -52[rbp]
	and	eax, 2
	test	eax, eax
	je	.L16
	or	BYTE PTR -43[rbp], 2
	mov	BYTE PTR -10[rbp], 42
	mov	eax, DWORD PTR file_gyro[rip]
	lea	rcx, -10[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR file_gyro[rip]
	lea	rcx, -9[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR -40[rbp], al
	mov	BYTE PTR -10[rbp], 43
	mov	eax, DWORD PTR file_gyro[rip]
	lea	rcx, -10[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR file_gyro[rip]
	lea	rcx, -9[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR -39[rbp], al
	movsx	eax, BYTE PTR -39[rbp]
	sal	eax, 8
	mov	edx, eax
	movsx	eax, BYTE PTR -40[rbp]
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 32767
	jle	.L17
	sub	DWORD PTR -20[rbp], 65536
.L17:
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -20[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -32[rbp], xmm0
	movss	xmm0, DWORD PTR -32[rbp]
	comiss	xmm0, DWORD PTR .LC8[rip]
	jbe	.L18
	movss	xmm0, DWORD PTR .LC9[rip]
	comiss	xmm0, DWORD PTR -32[rbp]
	jbe	.L18
	pxor	xmm0, xmm0
	movss	DWORD PTR -32[rbp], xmm0
.L18:
	mov	rax, QWORD PTR -72[rbp]
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -32[rbp]
	movsd	xmm0, QWORD PTR .LC10[rip]
	mulsd	xmm0, xmm2
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	mov	rax, QWORD PTR -72[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -72[rbp]
	movss	xmm1, DWORD PTR [rax]
	pxor	xmm0, xmm0
	comiss	xmm0, xmm1
	jbe	.L21
	mov	rax, QWORD PTR -72[rbp]
	movss	xmm1, DWORD PTR [rax]
	movss	xmm0, DWORD PTR .LC11[rip]
	addss	xmm0, xmm1
	mov	rax, QWORD PTR -72[rbp]
	movss	DWORD PTR [rax], xmm0
.L21:
	mov	rax, QWORD PTR -72[rbp]
	movss	xmm0, DWORD PTR [rax]
	comiss	xmm0, DWORD PTR .LC11[rip]
	jbe	.L16
	mov	rax, QWORD PTR -72[rbp]
	movss	xmm0, DWORD PTR [rax]
	movss	xmm1, DWORD PTR .LC11[rip]
	subss	xmm0, xmm1
	mov	rax, QWORD PTR -72[rbp]
	movss	DWORD PTR [rax], xmm0
.L16:
	movsx	eax, BYTE PTR -52[rbp]
	and	eax, 4
	test	eax, eax
	je	.L24
	or	BYTE PTR -43[rbp], 4
	mov	BYTE PTR -10[rbp], 44
	mov	eax, DWORD PTR file_gyro[rip]
	lea	rcx, -10[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR file_gyro[rip]
	lea	rcx, -9[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR -38[rbp], al
	mov	BYTE PTR -10[rbp], 45
	mov	eax, DWORD PTR file_gyro[rip]
	lea	rcx, -10[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR file_gyro[rip]
	lea	rcx, -9[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR -37[rbp], al
	movsx	eax, BYTE PTR -37[rbp]
	sal	eax, 8
	mov	edx, eax
	movsx	eax, BYTE PTR -38[rbp]
	add	eax, edx
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 32767
	jle	.L25
	sub	DWORD PTR -16[rbp], 65536
.L25:
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -16[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -28[rbp], xmm0
	movss	xmm0, DWORD PTR -28[rbp]
	comiss	xmm0, DWORD PTR .LC8[rip]
	jbe	.L26
	movss	xmm0, DWORD PTR .LC9[rip]
	comiss	xmm0, DWORD PTR -28[rbp]
	jbe	.L26
	pxor	xmm0, xmm0
	movss	DWORD PTR -28[rbp], xmm0
.L26:
	mov	rax, QWORD PTR -80[rbp]
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -28[rbp]
	movsd	xmm0, QWORD PTR .LC10[rip]
	mulsd	xmm0, xmm2
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	mov	rax, QWORD PTR -80[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -80[rbp]
	movss	xmm1, DWORD PTR [rax]
	pxor	xmm0, xmm0
	comiss	xmm0, xmm1
	jbe	.L29
	mov	rax, QWORD PTR -80[rbp]
	movss	xmm1, DWORD PTR [rax]
	movss	xmm0, DWORD PTR .LC11[rip]
	addss	xmm0, xmm1
	mov	rax, QWORD PTR -80[rbp]
	movss	DWORD PTR [rax], xmm0
.L29:
	mov	rax, QWORD PTR -80[rbp]
	movss	xmm0, DWORD PTR [rax]
	comiss	xmm0, DWORD PTR .LC11[rip]
	jbe	.L24
	mov	rax, QWORD PTR -80[rbp]
	movss	xmm0, DWORD PTR [rax]
	movss	xmm1, DWORD PTR .LC11[rip]
	subss	xmm0, xmm1
	mov	rax, QWORD PTR -80[rbp]
	movss	DWORD PTR [rax], xmm0
.L24:
	cmp	BYTE PTR -43[rbp], 0
	je	.L46
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -28[rbp]
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -32[rbp]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -36[rbp]
	movq	rax, xmm3
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC12[rip]
	mov	eax, 3
	call	printf@PLT
	mov	rax, QWORD PTR -80[rbp]
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	mov	rax, QWORD PTR -72[rbp]
	movss	xmm0, DWORD PTR [rax]
	cvtss2sd	xmm0, xmm0
	mov	rax, QWORD PTR -64[rbp]
	movss	xmm2, DWORD PTR [rax]
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, xmm2
	movq	rax, xmm4
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC13[rip]
	mov	eax, 3
	call	printf@PLT
.L46:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_gyro_data, .-get_gyro_data
	.globl	config_rgb
	.type	config_rgb, @function
config_rgb:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -10[rbp], 0
	mov	BYTE PTR -10[rbp], -128
	mov	BYTE PTR -9[rbp], 3
	mov	eax, DWORD PTR file_rgb[rip]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	BYTE PTR -10[rbp], -127
	mov	BYTE PTR -9[rbp], 0
	mov	eax, DWORD PTR file_rgb[rip]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	BYTE PTR -10[rbp], -125
	mov	BYTE PTR -9[rbp], -1
	mov	eax, DWORD PTR file_rgb[rip]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	BYTE PTR -10[rbp], -113
	mov	BYTE PTR -9[rbp], 0
	mov	eax, DWORD PTR file_rgb[rip]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	config_rgb, .-config_rgb
	.globl	config_gyro
	.type	config_gyro, @function
config_gyro:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -10[rbp], 0
	mov	BYTE PTR -10[rbp], 32
	mov	BYTE PTR -9[rbp], 15
	mov	eax, DWORD PTR file_gyro[rip]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	BYTE PTR -10[rbp], 35
	mov	BYTE PTR -9[rbp], 48
	mov	eax, DWORD PTR file_gyro[rip]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	config_gyro, .-config_gyro
	.section	.rodata
.LC14:
	.string	"Error : Input/output Error "
	.align 8
.LC18:
	.string	"--------------------------------------------------------"
.LC19:
	.string	"RED: %d\n"
.LC20:
	.string	"BLUE: %d\n"
.LC21:
	.string	"GREEN: %d\n"
.LC22:
	.string	"Detecting color red "
.LC23:
	.string	"Detecting color blue "
.LC24:
	.string	"Detecting color green "
.LC25:
	.string	"Detecting color orange "
.LC26:
	.string	"IR : %d [lux] \n"
.LC27:
	.string	"Ambient Light : %.2f [lux] \n"
	.text
	.globl	get_rgb_values
	.type	get_rgb_values, @function
get_rgb_values:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -17[rbp], -108
	mov	eax, DWORD PTR file_rgb[rip]
	lea	rcx, -17[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	QWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR file_rgb[rip]
	lea	rcx, -16[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	cmp	eax, 8
	je	.L52
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L62
.L52:
	movzx	eax, BYTE PTR -15[rbp]
	movsx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -16[rbp]
	movsx	eax, al
	add	eax, edx
	mov	DWORD PTR -36[rbp], eax
	movzx	eax, BYTE PTR -13[rbp]
	movsx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -14[rbp]
	movsx	eax, al
	add	eax, edx
	mov	DWORD PTR -32[rbp], eax
	movzx	eax, BYTE PTR -11[rbp]
	movsx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -12[rbp]
	movsx	eax, al
	add	eax, edx
	mov	DWORD PTR -28[rbp], eax
	movzx	eax, BYTE PTR -9[rbp]
	movsx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -10[rbp]
	movsx	eax, al
	add	eax, edx
	mov	DWORD PTR -24[rbp], eax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -32[rbp]
	movsd	xmm0, QWORD PTR .LC15[rip]
	mulsd	xmm1, xmm0
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -28[rbp]
	movsd	xmm0, QWORD PTR .LC16[rip]
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC17[rip]
	mulsd	xmm0, xmm2
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -40[rbp], xmm0
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -40[rbp]
	jbe	.L54
	pxor	xmm0, xmm0
	movss	DWORD PTR -40[rbp], xmm0
.L54:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -32[rbp], 8000
	jle	.L56
	cmp	DWORD PTR -28[rbp], 9999
	jg	.L56
	cmp	DWORD PTR -24[rbp], 4000
	jle	.L56
	lea	rdi, .LC22[rip]
	call	puts@PLT
.L56:
	cmp	DWORD PTR -24[rbp], 1500
	jle	.L57
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jle	.L57
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L57
	lea	rdi, .LC23[rip]
	call	puts@PLT
.L57:
	cmp	DWORD PTR -28[rbp], 1500
	jle	.L58
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L58
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L58
	lea	rdi, .LC24[rip]
	call	puts@PLT
.L58:
	cmp	DWORD PTR -32[rbp], 8000
	jle	.L59
	cmp	DWORD PTR -28[rbp], 6000
	jle	.L59
	cmp	DWORD PTR -24[rbp], 3999
	jg	.L59
	lea	rdi, .LC25[rip]
	call	puts@PLT
.L59:
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -40[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC27[rip]
	mov	eax, 1
	call	printf@PLT
.L62:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_rgb_values, .-get_rgb_values
	.section	.rodata
	.align 8
.LC7:
	.long	515396076
	.long	1068624773
	.align 4
.LC8:
	.long	-1065353216
	.align 4
.LC9:
	.long	1082130432
	.align 8
.LC10:
	.long	1202590843
	.long	1065646817
	.align 4
.LC11:
	.long	1135869952
	.align 8
.LC15:
	.long	-1131122587
	.long	-1076574406
	.align 8
.LC16:
	.long	-424686366
	.long	1073299712
	.align 8
.LC17:
	.long	-2060209913
	.long	-1075352626
	.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	"417791.c"
	.text
	.comm	file_gyro,4,4
	.comm	file_rgb,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/i2c-1\000"
	.align	2
.LC1:
	.ascii	"/dev/i2c-2\000"
	.align	2
.LC2:
	.ascii	"Failed to open the rgb bus. \000"
	.align	2
.LC3:
	.ascii	"Failed to open the gyro bus. \000"
	.align	2
.LC4:
	.ascii	"Rgb bus opened. Return value = %d \012\000"
	.align	2
.LC5:
	.ascii	"Gyro bus opened. Return value = %d \012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L7+4
	str	r3, [fp, #-24]
	ldr	r3, .L7+8
	str	r3, [fp, #-20]
	mov	r1, #2
	ldr	r0, [fp, #-24]
	bl	open
	mov	r3, r0
	ldr	r2, .L7+12
	str	r3, [r2]
	ldr	r3, .L7+12
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L7+16
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	mov	r1, #2
	ldr	r0, [fp, #-20]
	bl	open
	mov	r3, r0
	ldr	r2, .L7+20
	str	r3, [r2]
	ldr	r3, .L7+20
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L7+24
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, .L7+12
	ldr	r3, [r3]
	mov	r2, #41
	ldr	r1, .L7+28
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L7+32
	bl	printf
	ldr	r3, .L7+20
	ldr	r3, [r3]
	mov	r2, #107
	ldr	r1, .L7+28
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L7+36
	bl	printf
	bl	config_rgb
	bl	config_gyro
	mov	r3, #0
	str	r3, [fp, #-36]	@ float
	mov	r3, #0
	str	r3, [fp, #-32]	@ float
	mov	r3, #0
	str	r3, [fp, #-28]	@ float
.L5:
	mov	r3, #39
	strb	r3, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-12]
	ldr	r3, .L7+20
	ldr	r3, [r3]
	sub	r1, fp, #16
	mov	r2, #1
	mov	r0, r3
	bl	write
	ldr	r3, .L7+20
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #1
	mov	r0, r3
	bl	read
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	and	r3, r3, #7
	cmp	r3, #0
	beq	.L4
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	mov	r0, r3
	sub	r3, fp, #28
	sub	r2, fp, #32
	sub	r1, fp, #36
	bl	get_gyro_data
.L4:
	bl	get_rgb_values
	b	.L5
.L8:
	.align	2
.L7:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	file_rgb
	.word	.LC2
	.word	file_gyro
	.word	.LC3
	.word	1795
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.global	__aeabi_i2f
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.global	__aeabi_d2f
	.global	__aeabi_fcmpgt
	.global	__aeabi_fcmplt
	.global	__aeabi_dadd
	.global	__aeabi_fadd
	.global	__aeabi_fsub
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Rotational speed:  x: %.2f\011y: %.2f\011z: %.2f\012"
	.ascii	"\000"
	.align	2
.LC8:
	.ascii	"Angles:  x: %.2f\011y: %.2f\011z: %.2f\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_gyro_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_gyro_data, %function
get_gyro_data:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #80
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	mov	r3, r0
	strb	r3, [fp, #-69]
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-56]	@ float
	mov	r3, #0
	str	r3, [fp, #-52]	@ float
	mov	r3, #0
	str	r3, [fp, #-48]	@ float
	mov	r3, #0
	strb	r3, [fp, #-32]
	mov	r3, #0
	strb	r3, [fp, #-28]
	mov	r3, #0
	strb	r3, [fp, #-63]
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L10
	ldrb	r3, [fp, #-63]
	orr	r3, r3, #1
	strb	r3, [fp, #-63]
	mov	r3, #40
	strb	r3, [fp, #-32]
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #32
	mov	r2, #1
	mov	r0, r3
	bl	write
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #28
	mov	r2, #1
	mov	r0, r3
	bl	read
	ldrb	r3, [fp, #-28]
	strb	r3, [fp, #-62]
	mov	r3, #41
	strb	r3, [fp, #-32]
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #32
	mov	r2, #1
	mov	r0, r3
	bl	write
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #28
	mov	r2, #1
	mov	r0, r3
	bl	read
	ldrb	r3, [fp, #-28]
	strb	r3, [fp, #-61]
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	lsl	r2, r3, #8
	ldrb	r3, [fp, #-62]	@ zero_extendqisi2
	add	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #32768
	blt	.L11
	ldr	r3, [fp, #-44]
	sub	r3, r3, #65536
	str	r3, [fp, #-44]
.L11:
	ldr	r0, [fp, #-44]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	ldr	r2, .L49+8
	ldr	r3, .L49+12
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-56]	@ float
	ldr	r1, .L49+16
	ldr	r0, [fp, #-56]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r1, .L49+20
	ldr	r0, [fp, #-56]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	mov	r3, #0
	str	r3, [fp, #-56]	@ float
.L12:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-56]	@ float
	bl	__aeabi_f2d
	ldr	r2, .L49+24
	ldr	r3, .L49+28
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r2, r0
	ldr	r3, [fp, #-76]
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]	@ float
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]	@ float
	ldr	r1, .L49+32
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-76]
	str	r2, [r3]	@ float
.L15:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]	@ float
	ldr	r1, .L49+32
	mov	r0, r3
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]	@ float
	ldr	r1, .L49+32
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-76]
	str	r2, [r3]	@ float
.L10:
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L18
	ldrb	r3, [fp, #-63]
	orr	r3, r3, #2
	strb	r3, [fp, #-63]
	mov	r3, #42
	strb	r3, [fp, #-32]
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #32
	mov	r2, #1
	mov	r0, r3
	bl	write
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #28
	mov	r2, #1
	mov	r0, r3
	bl	read
	ldrb	r3, [fp, #-28]
	strb	r3, [fp, #-60]
	mov	r3, #43
	strb	r3, [fp, #-32]
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #32
	mov	r2, #1
	mov	r0, r3
	bl	write
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #28
	mov	r2, #1
	mov	r0, r3
	bl	read
	ldrb	r3, [fp, #-28]
	strb	r3, [fp, #-59]
	ldrb	r3, [fp, #-59]	@ zero_extendqisi2
	lsl	r2, r3, #8
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #32768
	blt	.L19
	ldr	r3, [fp, #-40]
	sub	r3, r3, #65536
	str	r3, [fp, #-40]
.L19:
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	ldr	r2, .L49+8
	ldr	r3, .L49+12
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-52]	@ float
	ldr	r1, .L49+16
	ldr	r0, [fp, #-52]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r1, .L49+20
	ldr	r0, [fp, #-52]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	mov	r3, #0
	str	r3, [fp, #-52]	@ float
.L20:
	ldr	r3, [fp, #-80]
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-52]	@ float
	bl	__aeabi_f2d
	ldr	r2, .L49+24
	ldr	r3, .L49+28
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r2, r0
	ldr	r3, [fp, #-80]
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-80]
	ldr	r3, [r3]	@ float
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-80]
	ldr	r3, [r3]	@ float
	ldr	r1, .L49+32
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-80]
	str	r2, [r3]	@ float
.L23:
	ldr	r3, [fp, #-80]
	ldr	r3, [r3]	@ float
	ldr	r1, .L49+32
	mov	r0, r3
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-80]
	ldr	r3, [r3]	@ float
	ldr	r1, .L49+32
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-80]
	str	r2, [r3]	@ float
.L18:
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L26
	ldrb	r3, [fp, #-63]
	orr	r3, r3, #4
	strb	r3, [fp, #-63]
	mov	r3, #44
	strb	r3, [fp, #-32]
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #32
	mov	r2, #1
	mov	r0, r3
	bl	write
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #28
	mov	r2, #1
	mov	r0, r3
	bl	read
	ldrb	r3, [fp, #-28]
	strb	r3, [fp, #-58]
	mov	r3, #45
	strb	r3, [fp, #-32]
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #32
	mov	r2, #1
	mov	r0, r3
	bl	write
	ldr	r3, .L49+4
	ldr	r3, [r3]
	sub	r1, fp, #28
	mov	r2, #1
	mov	r0, r3
	bl	read
	ldrb	r3, [fp, #-28]
	strb	r3, [fp, #-57]
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
	lsl	r2, r3, #8
	ldrb	r3, [fp, #-58]	@ zero_extendqisi2
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #32768
	blt	.L27
	ldr	r3, [fp, #-36]
	sub	r3, r3, #65536
	str	r3, [fp, #-36]
.L27:
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	ldr	r2, .L49+8
	ldr	r3, .L49+12
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-48]	@ float
	ldr	r1, .L49+16
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	ldr	r1, .L49+20
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	mov	r3, #0
	str	r3, [fp, #-48]	@ float
.L28:
	ldr	r3, [fp, #-84]
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_f2d
	ldr	r2, .L49+24
	ldr	r3, .L49+28
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r2, r0
	ldr	r3, [fp, #-84]
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-84]
	ldr	r3, [r3]	@ float
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-84]
	ldr	r3, [r3]	@ float
	ldr	r1, .L49+32
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-84]
	str	r2, [r3]	@ float
.L31:
	ldr	r3, [fp, #-84]
	ldr	r3, [r3]	@ float
	ldr	r1, .L49+32
	mov	r0, r3
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-84]
	ldr	r3, [r3]	@ float
	ldr	r1, .L49+32
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-84]
	str	r2, [r3]	@ float
.L26:
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L48
	ldr	r0, [fp, #-56]	@ float
	bl	__aeabi_f2d
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [fp, #-52]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L49+36
	bl	printf
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r6, r0
	mov	r7, r1
	ldr	r3, [fp, #-80]
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-84]
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L49+40
	bl	printf
.L48:
	nop
	ldr	r3, .L49
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC9
	.word	file_gyro
	.word	515396076
	.word	1068624773
	.word	-1065353216
	.word	1082130432
	.word	1202590843
	.word	1065646817
	.word	1135869952
	.word	.LC7
	.word	.LC8
	.size	get_gyro_data, .-get_gyro_data
	.section	.rodata
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	config_rgb
	.syntax unified
	.arm
	.fpu softvfp
	.type	config_rgb, %function
config_rgb:
	@ 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	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	mvn	r3, #127
	strb	r3, [fp, #-12]
	mov	r3, #3
	strb	r3, [fp, #-11]
	ldr	r3, .L53+4
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #2
	mov	r0, r3
	bl	write
	mvn	r3, #126
	strb	r3, [fp, #-12]
	mov	r3, #0
	strb	r3, [fp, #-11]
	ldr	r3, .L53+4
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #2
	mov	r0, r3
	bl	write
	mvn	r3, #124
	strb	r3, [fp, #-12]
	mvn	r3, #0
	strb	r3, [fp, #-11]
	ldr	r3, .L53+4
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #2
	mov	r0, r3
	bl	write
	mvn	r3, #112
	strb	r3, [fp, #-12]
	mov	r3, #0
	strb	r3, [fp, #-11]
	ldr	r3, .L53+4
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #2
	mov	r0, r3
	bl	write
	mov	r0, #1
	bl	sleep
	nop
	ldr	r3, .L53
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC10
	.word	file_rgb
	.size	config_rgb, .-config_rgb
	.section	.rodata
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	config_gyro
	.syntax unified
	.arm
	.fpu softvfp
	.type	config_gyro, %function
config_gyro:
	@ 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	r3, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	mov	r3, #32
	strb	r3, [fp, #-12]
	mov	r3, #15
	strb	r3, [fp, #-11]
	ldr	r3, .L57+4
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #2
	mov	r0, r3
	bl	write
	mov	r3, #35
	strb	r3, [fp, #-12]
	mov	r3, #48
	strb	r3, [fp, #-11]
	ldr	r3, .L57+4
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #2
	mov	r0, r3
	bl	write
	mov	r0, #1
	bl	sleep
	nop
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC11
	.word	file_gyro
	.size	config_gyro, .-config_gyro
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Error : Input/output Error \000"
	.global	__aeabi_i2d
	.align	2
.LC13:
	.ascii	"---------------------------------------------------"
	.ascii	"-----\000"
	.align	2
.LC14:
	.ascii	"RED: %d\012\000"
	.align	2
.LC15:
	.ascii	"BLUE: %d\012\000"
	.align	2
.LC16:
	.ascii	"GREEN: %d\012\000"
	.align	2
.LC17:
	.ascii	"Detecting color red \000"
	.align	2
.LC18:
	.ascii	"Detecting color blue \000"
	.align	2
.LC19:
	.ascii	"Detecting color green \000"
	.align	2
.LC20:
	.ascii	"Detecting color orange \000"
	.align	2
.LC21:
	.ascii	"IR : %d [lux] \012\000"
	.align	2
.LC22:
	.ascii	"Ambient Light : %.2f [lux] \012\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_rgb_values
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_rgb_values, %function
get_rgb_values:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	ldr	r3, .L71
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mvn	r3, #107
	strb	r3, [fp, #-28]
	ldr	r3, .L71+4
	ldr	r3, [r3]
	sub	r1, fp, #28
	mov	r2, #1
	mov	r0, r3
	bl	write
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, .L71+4
	ldr	r3, [r3]
	sub	r1, fp, #24
	mov	r2, #8
	mov	r0, r3
	bl	read
	mov	r3, r0
	cmp	r3, #8
	beq	.L60
	ldr	r0, .L71+8
	bl	puts
	b	.L70
.L60:
	ldrb	r3, [fp, #-23]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldrb	r2, [fp, #-24]	@ zero_extendqisi2
	add	r3, r3, r2
	str	r3, [fp, #-44]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldrb	r2, [fp, #-22]	@ zero_extendqisi2
	add	r3, r3, r2
	str	r3, [fp, #-40]
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldrb	r2, [fp, #-20]	@ zero_extendqisi2
	add	r3, r3, r2
	str	r3, [fp, #-36]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldrb	r2, [fp, #-18]	@ zero_extendqisi2
	add	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2d
	ldr	r2, .L71+12
	ldr	r3, .L71+16
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2d
	ldr	r2, .L71+20
	ldr	r3, .L71+24
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2d
	ldr	r2, .L71+28
	ldr	r3, .L71+32
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-48]	@ float
	mov	r1, #0
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L62
	mov	r3, #0
	str	r3, [fp, #-48]	@ float
.L62:
	ldr	r0, .L71+36
	bl	puts
	ldr	r1, [fp, #-40]
	ldr	r0, .L71+40
	bl	printf
	ldr	r1, [fp, #-32]
	ldr	r0, .L71+44
	bl	printf
	ldr	r1, [fp, #-36]
	ldr	r0, .L71+48
	bl	printf
	ldr	r3, [fp, #-40]
	cmp	r3, #8000
	ble	.L64
	ldr	r3, [fp, #-36]
	ldr	r2, .L71+52
	cmp	r3, r2
	bgt	.L64
	ldr	r3, [fp, #-32]
	cmp	r3, #4000
	ble	.L64
	ldr	r0, .L71+56
	bl	puts
.L64:
	ldr	r3, [fp, #-32]
	ldr	r2, .L71+60
	cmp	r3, r2
	ble	.L65
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L65
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L65
	ldr	r0, .L71+64
	bl	puts
.L65:
	ldr	r3, [fp, #-36]
	ldr	r2, .L71+60
	cmp	r3, r2
	ble	.L66
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L66
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L66
	ldr	r0, .L71+68
	bl	puts
.L66:
	ldr	r3, [fp, #-40]
	cmp	r3, #8000
	ble	.L67
	ldr	r3, [fp, #-36]
	ldr	r2, .L71+72
	cmp	r3, r2
	ble	.L67
	ldr	r3, [fp, #-32]
	cmp	r3, #4000
	bge	.L67
	ldr	r0, .L71+76
	bl	puts
.L67:
	ldr	r1, [fp, #-44]
	ldr	r0, .L71+80
	bl	printf
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L71+84
	bl	printf
.L70:
	nop
	ldr	r3, .L71
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC23
	.word	file_rgb
	.word	.LC12
	.word	-1131122587
	.word	-1076574406
	.word	-424686366
	.word	1073299712
	.word	-2060209913
	.word	-1075352626
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	9999
	.word	.LC17
	.word	1500
	.word	.LC18
	.word	.LC19
	.word	6000
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	get_rgb_values, .-get_rgb_values
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
