	.file	"956146.c"
	.intel_syntax noprefix
	.text
	.globl	room_id
	.data
	.align 16
	.type	room_id, @object
	.size	room_id, 16
room_id:
	.value	1
	.value	2
	.value	3
	.value	4
	.value	11
	.value	12
	.value	13
	.value	14
	.globl	sensor_id
	.align 16
	.type	sensor_id, @object
	.size	sensor_id, 16
sensor_id:
	.value	15
	.value	21
	.value	37
	.value	49
	.value	112
	.value	129
	.value	132
	.value	142
	.globl	sensor_temperature
	.align 32
	.type	sensor_temperature, @object
	.size	sensor_temperature, 64
sensor_temperature:
	.long	0
	.long	1076756480
	.long	0
	.long	1076953088
	.long	0
	.long	1077018624
	.long	0
	.long	1077084160
	.long	0
	.long	1077149696
	.long	0
	.long	1077346304
	.long	0
	.long	1077411840
	.long	0
	.long	1077477376
	.section	.rodata
.LC0:
	.string	"w"
.LC1:
	.string	"room_sensor.map"
	.align 8
.LC2:
	.string	"Couldn't create room_sensor.map\n"
.LC3:
	.string	"%u %u\n"
.LC4:
	.string	"sensor_data"
.LC5:
	.string	"Couldn't create sensor_data\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 -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	time@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	edi, 0
	call	time@PLT
	mov	rdi, rax
	call	srand48@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, sensor_id[rip]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	ecx, ax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, room_id[rip]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	edx, ax
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -40[rbp], 1
.L3:
	cmp	DWORD PTR -40[rbp], 7
	jle	.L4
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L5
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L6
.L9:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, sensor_id[rip]
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 2
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, sensor_temperature[rip]
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 8
	call	fwrite@PLT
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, sensor_temperature[rip]
	movsd	xmm3, QWORD PTR [rdx+rax]
	movsd	QWORD PTR -72[rbp], xmm3
	call	drand48@PLT
	movq	rax, xmm0
	movsd	xmm1, QWORD PTR .LC6[rip]
	movq	xmm0, rax
	subsd	xmm0, xmm1
	movsd	xmm2, QWORD PTR .LC7[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC8[rip]
	mulsd	xmm0, xmm1
	addsd	xmm0, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, sensor_temperature[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	add	DWORD PTR -36[rbp], 1
.L7:
	cmp	DWORD PTR -36[rbp], 7
	jle	.L8
	add	DWORD PTR -40[rbp], 1
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 30
	mov	QWORD PTR -32[rbp], rax
.L6:
	cmp	DWORD PTR -40[rbp], 49
	jle	.L9
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC6:
	.long	0
	.long	1071644672
	.align 8
.LC7:
	.long	0
	.long	1076101120
	.align 8
.LC8:
	.long	0
	.long	1075052544
	.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	"956146.c"
	.text
	.global	room_id
	.data
	.align	2
	.type	room_id, %object
	.size	room_id, 16
room_id:
	.short	1
	.short	2
	.short	3
	.short	4
	.short	11
	.short	12
	.short	13
	.short	14
	.global	sensor_id
	.align	2
	.type	sensor_id, %object
	.size	sensor_id, 16
sensor_id:
	.short	15
	.short	21
	.short	37
	.short	49
	.short	112
	.short	129
	.short	132
	.short	142
	.global	sensor_temperature
	.align	3
	.type	sensor_temperature, %object
	.size	sensor_temperature, 64
sensor_temperature:
	.word	0
	.word	1076756480
	.word	0
	.word	1076953088
	.word	0
	.word	1077018624
	.word	0
	.word	1077084160
	.word	0
	.word	1077149696
	.word	0
	.word	1077346304
	.word	0
	.word	1077411840
	.word	0
	.word	1077477376
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"room_sensor.map\000"
	.align	2
.LC2:
	.ascii	"Couldn't create room_sensor.map\012\000"
	.align	2
.LC3:
	.ascii	"%u %u\012\000"
	.align	2
.LC4:
	.ascii	"sensor_data\000"
	.align	2
.LC5:
	.ascii	"Couldn't create sensor_data\012\000"
	.global	__aeabi_dsub
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.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	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #36
	mov	r0, r3
	bl	time
	mov	r3, r0
	str	r3, [fp, #-36]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand48
	ldr	r1, .L12+4
	ldr	r0, .L12+8
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L12+12
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L3
.L4:
	ldr	r2, .L12+16
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r2, .L12+20
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r1
	ldr	r1, .L12+24
	ldr	r0, [fp, #-24]
	bl	fprintf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L3:
	ldr	r3, [fp, #-32]
	cmp	r3, #7
	ble	.L4
	ldr	r0, [fp, #-24]
	bl	fclose
	ldr	r1, .L12+4
	ldr	r0, .L12+28
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L12+32
	bl	puts
	mov	r0, #1
	bl	exit
.L5:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L6
.L9:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L7
.L8:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	ldr	r2, .L12+20
	add	r0, r3, r2
	ldr	r3, [fp, #-20]
	mov	r2, #1
	mov	r1, #2
	bl	fwrite
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, .L12+36
	add	r0, r3, r2
	ldr	r3, [fp, #-20]
	mov	r2, #1
	mov	r1, #8
	bl	fwrite
	sub	r0, fp, #36
	ldr	r3, [fp, #-20]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	ldr	r2, .L12+36
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	bl	drand48
	mov	r2, #0
	ldr	r3, .L12+40
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L12+44
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L12+48
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L12+36
	ldr	r1, [fp, #-28]
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L7:
	ldr	r3, [fp, #-28]
	cmp	r3, #7
	ble	.L8
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	add	r3, r3, #30
	str	r3, [fp, #-36]
.L6:
	ldr	r3, [fp, #-32]
	cmp	r3, #49
	ble	.L9
	ldr	r0, [fp, #-20]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	room_id
	.word	sensor_id
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	sensor_temperature
	.word	1071644672
	.word	1076101120
	.word	1075052544
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
