	.file	"178266271.c"
	.intel_syntax noprefix
	.text
	.globl	loggingok
	.bss
	.align 4
	.type	loggingok, @object
	.size	loggingok, 4
loggingok:
	.zero	4
	.globl	samplecount
	.align 4
	.type	samplecount, @object
	.size	samplecount, 4
samplecount:
	.zero	4
	.globl	fp
	.align 8
	.type	fp, @object
	.size	fp, 8
fp:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%x,%X"
.LC4:
	.string	"%s,%f\n"
.LC5:
	.string	"%s,%f\r\n"
	.text
	.globl	calculate_watts
	.type	calculate_watts, @function
calculate_watts:
.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, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -133[rbp], 0
	mov	DWORD PTR -132[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, eax
	movzx	eax, BYTE PTR -133[rbp]
	add	eax, edx
	mov	BYTE PTR -133[rbp], al
	add	DWORD PTR -132[rbp], 1
.L2:
	cmp	DWORD PTR -132[rbp], 6
	jle	.L3
	mov	rax, QWORD PTR -152[rbp]
	add	rax, 7
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -133[rbp], al
	jne	.L4
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	time@PLT
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	rdx, QWORD PTR -120[rbp]
	lea	rax, -96[rbp]
	mov	rcx, rdx
	lea	rdx, .LC0[rip]
	mov	esi, 80
	mov	rdi, rax
	call	strftime@PLT
	mov	rax, QWORD PTR -152[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	add	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	QWORD PTR -112[rbp], xmm0
	movsd	xmm1, QWORD PTR -112[rbp]
	movsd	xmm0, QWORD PTR .LC1[rip]
	mulsd	xmm1, xmm0
	movsd	QWORD PTR -160[rbp], xmm1
	mov	rax, QWORD PTR -152[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC2[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -160[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -104[rbp], xmm0
	mov	rdx, QWORD PTR -104[rbp]
	lea	rax, -96[rbp]
	movq	xmm0, rdx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR loggingok[rip]
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR fp[rip]
	mov	rcx, QWORD PTR -104[rbp]
	lea	rdx, -96[rbp]
	movq	xmm0, rcx
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	eax, DWORD PTR samplecount[rip]
	add	eax, 1
	mov	DWORD PTR samplecount[rip], eax
	mov	eax, DWORD PTR samplecount[rip]
	cmp	eax, 10
	jne	.L5
	mov	DWORD PTR samplecount[rip], 0
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fflush@PLT
.L5:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 1
	jmp	.L7
.L4:
	mov	eax, 0
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	calculate_watts, .-calculate_watts
	.section	.rodata
.LC6:
	.string	"a"
.LC7:
	.string	"Failed to open log file!"
.LC8:
	.string	"Efergy E2 Classic decode \n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -100[rbp], 2
	jne	.L10
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR fp[rip], rax
	mov	DWORD PTR samplecount[rip], 0
	mov	DWORD PTR loggingok[rip], 1
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	jne	.L11
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	DWORD PTR loggingok[rip], 0
.L11:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	mov	BYTE PTR -85[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -60[rbp], 100
	mov	QWORD PTR -48[rbp], 0
	jmp	.L12
.L23:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	sal	eax, 8
	or	eax, ebx
	cwde
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	jle	.L13
	sub	DWORD PTR -60[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	add	QWORD PTR -48[rbp], rax
	cmp	DWORD PTR -60[rbp], 0
	jne	.L14
	mov	rcx, QWORD PTR -48[rbp]
	movabs	rdx, -6640827866535438581
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 6
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -80[rbp], 0
	mov	BYTE PTR -85[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	jmp	.L14
.L13:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	cmp	QWORD PTR -48[rbp], rax
	jge	.L15
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	cmp	QWORD PTR -48[rbp], rax
	jle	.L15
	mov	DWORD PTR -80[rbp], 0
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	cmp	QWORD PTR -48[rbp], rax
	jge	.L17
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	cmp	QWORD PTR -48[rbp], rax
	jge	.L17
	add	DWORD PTR -80[rbp], 1
	cmp	DWORD PTR -80[rbp], 40
	jle	.L16
	mov	DWORD PTR -68[rbp], 1
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	cmp	QWORD PTR -48[rbp], rax
	jle	.L19
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	cmp	QWORD PTR -48[rbp], rax
	jge	.L19
	cmp	DWORD PTR -80[rbp], 3
	jle	.L20
	cmp	DWORD PTR -64[rbp], 1
	jne	.L20
	add	DWORD PTR -56[rbp], 1
	add	DWORD PTR -76[rbp], 1
	movsx	eax, BYTE PTR -85[rbp]
	add	eax, eax
	mov	BYTE PTR -85[rbp], al
	cmp	DWORD PTR -80[rbp], 8
	jle	.L21
	or	BYTE PTR -85[rbp], 1
.L21:
	cmp	DWORD PTR -76[rbp], 7
	jle	.L22
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	movzx	edx, BYTE PTR -85[rbp]
	mov	BYTE PTR -33[rbp+rax], dl
	mov	BYTE PTR -85[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	add	DWORD PTR -72[rbp], 1
	cmp	DWORD PTR -72[rbp], 8
	jne	.L22
	lea	rax, -33[rbp]
	mov	rdi, rax
	call	calculate_watts
	test	eax, eax
	jne	.L22
	mov	DWORD PTR -60[rbp], 100
.L22:
	cmp	DWORD PTR -56[rbp], 64
	jle	.L20
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	mov	BYTE PTR -85[rbp], 0
.L20:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L16
.L19:
	mov	DWORD PTR -80[rbp], 0
.L16:
	cmp	DWORD PTR -80[rbp], 0
	jne	.L14
	cmp	DWORD PTR -68[rbp], 1
	jne	.L14
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -64[rbp], 1
.L14:
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -84[rbp], eax
.L12:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L23
	mov	eax, DWORD PTR loggingok[rip]
	test	eax, eax
	je	.L26
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fclose@PLT
.L26:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1080950784
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.align 8
.LC3:
	.long	0
	.long	1088421888
	.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	"178266271.c"
	.text
	.comm	loggingok,4,4
	.comm	samplecount,4,4
	.comm	fp,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%x,%X\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.align	2
.LC1:
	.ascii	"%s,%f\012\000"
	.align	2
.LC2:
	.ascii	"%s,%f\015\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	calculate_watts
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculate_watts, %function
calculate_watts:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #136
	str	r0, [fp, #-136]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-129]
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L2
.L3:
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #-136]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-129]
	add	r3, r2, r3
	strb	r3, [fp, #-129]
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L2:
	ldr	r3, [fp, #-124]
	cmp	r3, #6
	ble	.L3
	ldr	r3, [fp, #-136]
	add	r3, r3, #7
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-129]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L4
	sub	r3, fp, #128
	mov	r0, r3
	bl	time
	sub	r3, fp, #128
	mov	r0, r3
	bl	localtime
	str	r0, [fp, #-120]
	sub	r0, fp, #96
	ldr	r3, [fp, #-120]
	ldr	r2, .L9+4
	mov	r1, #80
	bl	strftime
	ldr	r3, [fp, #-136]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldr	r2, [fp, #-136]
	add	r2, r2, #5
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-116]
	str	r3, [fp, #-112]
	mov	r2, #0
	ldr	r3, .L9+8
	sub	r1, fp, #116
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-136]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L9+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-108]
	str	r3, [fp, #-104]
	sub	r1, fp, #96
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	ldr	r0, .L9+16
	bl	printf
	ldr	r3, .L9+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L9+24
	ldr	r0, [r3]
	sub	r1, fp, #96
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	mov	r2, r1
	ldr	r1, .L9+28
	bl	fprintf
	ldr	r3, .L9+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L9+32
	str	r3, [r2]
	ldr	r3, .L9+32
	ldr	r3, [r3]
	cmp	r3, #10
	bne	.L5
	ldr	r3, .L9+32
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L9+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L5:
	ldr	r3, .L9+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #1
	b	.L7
.L4:
	mov	r3, #0
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	.LC0
	.word	1080950784
	.word	1088421888
	.word	.LC1
	.word	loggingok
	.word	fp
	.word	.LC2
	.word	samplecount
	.word	stdout
	.size	calculate_watts, .-calculate_watts
	.section	.rodata
	.align	2
.LC4:
	.ascii	"a\000"
	.align	2
.LC5:
	.ascii	"Failed to open log file!\000"
	.align	2
.LC6:
	.ascii	"Efergy E2 Classic decode \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 = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-80]
	cmp	r3, #2
	bne	.L12
	ldr	r3, [fp, #-84]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L29+4
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L29+8
	str	r3, [r2]
	ldr	r3, .L29+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L29+16
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L29+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L29+20
	bl	perror
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, .L29+16
	mov	r2, #0
	str	r2, [r3]
.L13:
	ldr	r0, .L29+24
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	strb	r3, [fp, #-69]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #100
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L14
.L25:
	ldr	r3, .L29+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r4, r3, #16
	ldr	r3, .L29+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r4, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	ble	.L15
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-36]
	ldr	r2, .L29+32
	smull	r1, r2, r3, r2
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	strb	r3, [fp, #-69]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L16
.L15:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L17
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bge	.L17
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L18
.L17:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L19
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L19
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #40
	ble	.L18
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L18
.L19:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bge	.L21
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L21
	ldr	r3, [fp, #-64]
	cmp	r3, #3
	ble	.L22
	ldr	r3, [fp, #-48]
	cmp	r3, #1
	bne	.L22
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldrb	r3, [fp, #-69]
	lsl	r3, r3, #1
	strb	r3, [fp, #-69]
	ldr	r3, [fp, #-64]
	cmp	r3, #8
	ble	.L23
	ldrb	r3, [fp, #-69]
	orr	r3, r3, #1
	strb	r3, [fp, #-69]
.L23:
	ldr	r3, [fp, #-60]
	cmp	r3, #7
	ble	.L24
	sub	r2, fp, #28
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r2, [fp, #-69]
	strb	r2, [r3]
	mov	r3, #0
	strb	r3, [fp, #-69]
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #8
	bne	.L24
	sub	r3, fp, #28
	mov	r0, r3
	bl	calculate_watts
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	mov	r3, #100
	str	r3, [fp, #-44]
.L24:
	ldr	r3, [fp, #-40]
	cmp	r3, #64
	ble	.L22
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	strb	r3, [fp, #-69]
.L22:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L18
.L21:
	mov	r3, #0
	str	r3, [fp, #-64]
.L18:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-52]
	cmp	r3, #1
	bne	.L16
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #1
	str	r3, [fp, #-48]
.L16:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-68]
.L14:
	ldr	r3, .L29+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L29+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L28
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L28:
	nop
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC7
	.word	.LC4
	.word	fp
	.word	samplecount
	.word	loggingok
	.word	.LC5
	.word	.LC6
	.word	stdin
	.word	1374389535
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
