	.file	"738700.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/i2c-1"
	.text
	.globl	tsl2561
	.type	tsl2561, @function
tsl2561:
.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	WORD PTR -14[rbp], 0
	mov	BYTE PTR -15[rbp], -116
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jns	.L2
	mov	eax, -1
	jmp	.L5
.L2:
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 57
	mov	esi, 1795
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	BYTE PTR -14[rbp], -128
	mov	BYTE PTR -13[rbp], 3
	lea	rcx, -14[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	BYTE PTR -14[rbp], -127
	mov	BYTE PTR -13[rbp], 2
	lea	rcx, -14[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edi, 1
	call	sleep@PLT
	lea	rcx, -15[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rcx, -12[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 4
	je	.L4
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 5
	mov	eax, -1
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	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
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mov	rax, QWORD PTR -40[rbp]
	movss	DWORD PTR [rax], xmm0
	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
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mov	rax, QWORD PTR -48[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	eax, 0
.L5:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	tsl2561, .-tsl2561
	.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	"738700.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/i2c-1\000"
	.global	__aeabi_i2f
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tsl2561
	.syntax unified
	.arm
	.fpu softvfp
	.type	tsl2561, %function
tsl2561:
	@ 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]
	str	r1, [fp, #-36]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L7+4
	str	r3, [fp, #-28]
	mov	r3, #0
	strh	r3, [fp, #-16]	@ movhi
	mvn	r3, #115
	strb	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r1, #2
	ldr	r0, [fp, #-28]
	bl	open
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L2
	mvn	r3, #0
	b	.L5
.L2:
	mov	r2, #57
	ldr	r1, .L7+8
	ldr	r0, [fp, #-24]
	bl	ioctl
	mvn	r3, #127
	strb	r3, [fp, #-16]
	mov	r3, #3
	strb	r3, [fp, #-15]
	sub	r3, fp, #16
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	write
	mvn	r3, #126
	strb	r3, [fp, #-16]
	mov	r3, #2
	strb	r3, [fp, #-15]
	sub	r3, fp, #16
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	write
	mov	r0, #1
	bl	sleep
	sub	r3, fp, #20
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	write
	sub	r3, fp, #12
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	read
	mov	r3, r0
	cmp	r3, #4
	beq	.L4
	ldr	r0, [fp, #-24]
	bl	close
	bl	__errno_location
	mov	r3, r0
	mov	r2, #5
	str	r2, [r3]
	mvn	r3, #0
	b	.L5
.L4:
	ldr	r0, [fp, #-24]
	bl	close
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldrb	r2, [fp, #-12]	@ zero_extendqisi2
	add	r3, r3, r2
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r2, r0
	ldr	r3, [fp, #-32]
	str	r2, [r3]	@ float
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldrb	r2, [fp, #-10]	@ zero_extendqisi2
	add	r3, r3, r2
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r2, [r3]	@ float
	mov	r3, #0
.L5:
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	.LC0
	.word	1795
	.size	tsl2561, .-tsl2561
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
