	.file	"143378.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/i2c-1"
.LC1:
	.string	"Failed to open i2c port"
	.align 8
.LC2:
	.string	"Unable to get bus access to talk to slave"
	.align 8
.LC3:
	.string	"Error writing bit to i2c slave"
.LC4:
	.string	"Unable to read from slave"
.LC7:
	.string	"Humidity: %f\n"
.LC10:
	.string	"Temperature: %f\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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -56[rbp], 39
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, 1795
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L3
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	i2c_smbus_write_quick@PLT
	test	eax, eax
	je	.L4
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	edi, 100000
	call	usleep@PLT
	lea	rcx, -12[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jns	.L5
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	movzx	eax, BYTE PTR -12[rbp]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -11[rbp]
	movzx	eax, al
	add	eax, edx
	mov	DWORD PTR -48[rbp], eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -48[rbp]
	movsd	xmm2, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	mov	rax, QWORD PTR -32[rbp]
	movq	xmm0, rax
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	movzx	eax, BYTE PTR -10[rbp]
	movzx	eax, al
	sal	eax, 6
	mov	edx, eax
	movzx	eax, BYTE PTR -9[rbp]
	shr	al, 2
	movzx	eax, al
	add	eax, edx
	mov	DWORD PTR -44[rbp], eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -44[rbp]
	movsd	xmm2, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC8[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC9[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.long	0
	.long	1087373056
	.align 8
.LC6:
	.long	0
	.long	1079574528
	.align 8
.LC8:
	.long	0
	.long	1080336384
	.align 8
.LC9:
	.long	0
	.long	1078198272
	.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	"143378.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/i2c-1\000"
	.align	2
.LC1:
	.ascii	"Failed to open i2c port\000"
	.align	2
.LC2:
	.ascii	"Unable to get bus access to talk to slave\000"
	.align	2
.LC3:
	.ascii	"Error writing bit to i2c slave\000"
	.align	2
.LC4:
	.ascii	"Unable to read from slave\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.align	2
.LC5:
	.ascii	"Humidity: %f\012\000"
	.global	__aeabi_dsub
	.align	2
.LC6:
	.ascii	"Temperature: %f\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L8+4
	str	r3, [fp, #-48]
	mov	r3, #39
	str	r3, [fp, #-44]
	mov	r1, #2
	ldr	r0, [fp, #-48]
	bl	open
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L8+8
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r2, [fp, #-44]
	ldr	r1, .L8+12
	ldr	r0, [fp, #-40]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L8+16
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	mov	r1, #0
	ldr	r0, [fp, #-40]
	bl	i2c_smbus_write_quick
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L8+20
	bl	puts
	mov	r0, #1
	bl	exit
.L4:
	ldr	r0, .L8+24
	bl	usleep
	sub	r3, fp, #12
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L8+28
	bl	puts
	mov	r0, #1
	bl	exit
.L5:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldrb	r2, [fp, #-11]	@ zero_extendqisi2
	add	r3, r3, r2
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L8+32
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L8+36
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r0, .L8+40
	bl	printf
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	lsl	r3, r3, #6
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	lsr	r2, r2, #2
	and	r2, r2, #255
	add	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L8+32
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L8+44
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L8+48
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L8+52
	bl	printf
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	1795
	.word	.LC2
	.word	.LC3
	.word	100000
	.word	.LC4
	.word	1087373056
	.word	1079574528
	.word	.LC5
	.word	1080336384
	.word	1078198272
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
