	.file	"114870.c"
	.intel_syntax noprefix
	.text
	.globl	quit
	.bss
	.align 4
	.type	quit, @object
	.size	quit, 4
quit:
	.zero	4
	.text
	.type	sighandler, @function
sighandler:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR quit[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sighandler, .-sighandler
	.type	pack, @function
pack:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, edi
	mov	eax, esi
	mov	BYTE PTR -20[rbp], dl
	mov	BYTE PTR -24[rbp], al
	movzx	eax, BYTE PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	sal	DWORD PTR -4[rbp], 8
	movzx	eax, BYTE PTR -24[rbp]
	or	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pack, .-pack
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: ./read_temp <hidraw file> <log file>\n"
	.align 8
.LC1:
	.string	"Couldn't open device %s! Make sure to run as a superuser!\n"
.LC2:
	.string	"w+"
.LC3:
	.string	"Unable to open log file %s!\n"
	.align 8
.LC4:
	.string	"(%i) Report Descriptor Size: %d\n"
.LC5:
	.string	"(%i) Report Descriptor: "
.LC6:
	.string	"%hhx "
.LC7:
	.string	"..."
.LC8:
	.string	"(%i) Name: %s\n"
.LC9:
	.string	"(%i) Raw Phys: %s\n"
	.align 8
.LC10:
	.string	"(%i) Raw Info: vendor=0x%04hx product=0x%04hx\n"
	.align 8
.LC14:
	.string	"Temperature = %0.3f\302\260C Humidity = %.1f%\n"
.LC15:
	.string	"%f %f\n"
.LC16:
	.string	"Exiting"
.LC17:
	.string	"Garbage read\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 384
	mov	DWORD PTR -4468[rbp], edi
	mov	QWORD PTR -4480[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4452[rbp], 0
	mov	DWORD PTR -4448[rbp], 0
	mov	QWORD PTR -4392[rbp], 0
	lea	rdx, -4384[rbp]
	mov	eax, 0
	mov	ecx, 512
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	QWORD PTR -4416[rbp], 0
	mov	QWORD PTR -4408[rbp], 0
	mov	rax, QWORD PTR -4480[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR -4480[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -4416[rbp], rax
.L5:
	mov	rax, QWORD PTR -4480[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR -4480[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -4408[rbp], rax
.L6:
	cmp	QWORD PTR -4416[rbp], 0
	je	.L7
	cmp	QWORD PTR -4408[rbp], 0
	jne	.L8
.L7:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L26
.L8:
	mov	rax, QWORD PTR -4416[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4444[rbp], eax
	cmp	DWORD PTR -4444[rbp], 0
	jns	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -4416[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L26
.L10:
	cmp	QWORD PTR -4408[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -4408[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4400[rbp], rax
	cmp	QWORD PTR -4400[rbp], 0
	jne	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -4408[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -4444[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L26
.L11:
	lea	rdx, -4460[rbp]
	mov	eax, DWORD PTR -4444[rbp]
	mov	esi, 2147764225
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4440[rbp], eax
	mov	edx, DWORD PTR -4460[rbp]
	mov	eax, DWORD PTR -4440[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4460[rbp]
	mov	DWORD PTR -4384[rbp], eax
	lea	rdx, -4384[rbp]
	mov	eax, DWORD PTR -4444[rbp]
	mov	esi, 2416199682
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4440[rbp], eax
	mov	eax, DWORD PTR -4440[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4456[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -4456[rbp]
	cdqe
	movzx	eax, BYTE PTR -4380[rbp+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4456[rbp], 1
.L12:
	mov	eax, DWORD PTR -4384[rbp]
	shr	eax, 2
	mov	edx, eax
	mov	eax, DWORD PTR -4456[rbp]
	cmp	edx, eax
	ja	.L13
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdx, -272[rbp]
	mov	eax, DWORD PTR -4444[rbp]
	mov	esi, 2164279300
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4440[rbp], eax
	lea	rdx, -272[rbp]
	mov	eax, DWORD PTR -4440[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -272[rbp]
	mov	eax, DWORD PTR -4444[rbp]
	mov	esi, 2164279301
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4440[rbp], eax
	lea	rdx, -272[rbp]
	mov	eax, DWORD PTR -4440[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -4392[rbp]
	mov	eax, DWORD PTR -4444[rbp]
	mov	esi, 2148026371
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4440[rbp], eax
	movzx	eax, WORD PTR -4386[rbp]
	movsx	ecx, ax
	movzx	eax, WORD PTR -4388[rbp]
	movsx	edx, ax
	mov	eax, DWORD PTR -4440[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, sighandler[rip]
	mov	edi, 2
	call	signal@PLT
	jmp	.L14
.L23:
	lea	rcx, -274[rbp]
	mov	eax, DWORD PTR -4444[rbp]
	mov	edx, 3
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -4440[rbp], eax
	cmp	DWORD PTR -4440[rbp], 3
	jne	.L15
	movzx	eax, BYTE PTR -274[rbp]
	cmp	al, 3
	jne	.L28
	movzx	eax, BYTE PTR -273[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -272[rbp]
	movzx	eax, al
	mov	esi, edx
	mov	edi, eax
	call	pack
	mov	DWORD PTR -4436[rbp], eax
	mov	eax, DWORD PTR -4436[rbp]
	test	rax, rax
	js	.L18
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	jmp	.L19
.L18:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
.L19:
	movss	xmm1, DWORD PTR .LC11[rip]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR .LC12[rip]
	subss	xmm0, xmm1
	cvtss2sd	xmm0, xmm0
	movsd	QWORD PTR -4432[rbp], xmm0
	mov	DWORD PTR -4452[rbp], 1
.L15:
	cmp	DWORD PTR -4440[rbp], 2
	jne	.L20
	movzx	eax, BYTE PTR -274[rbp]
	cmp	al, 2
	jne	.L29
	movzx	eax, BYTE PTR -273[rbp]
	movzx	eax, al
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	movss	xmm0, DWORD PTR .LC13[rip]
	mulss	xmm0, xmm1
	cvtss2sd	xmm0, xmm0
	movsd	QWORD PTR -4424[rbp], xmm0
	mov	DWORD PTR -4448[rbp], 1
.L20:
	cmp	DWORD PTR -4452[rbp], 0
	je	.L14
	cmp	DWORD PTR -4448[rbp], 0
	je	.L14
	movsd	xmm0, QWORD PTR -4424[rbp]
	mov	rax, QWORD PTR -4432[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC14[rip]
	mov	eax, 2
	call	printf@PLT
	cmp	QWORD PTR -4408[rbp], 0
	je	.L22
	movsd	xmm0, QWORD PTR -4424[rbp]
	mov	rdx, QWORD PTR -4432[rbp]
	mov	rax, QWORD PTR -4400[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rdx
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 2
	call	fprintf@PLT
.L22:
	mov	DWORD PTR -4448[rbp], 0
	mov	eax, DWORD PTR -4448[rbp]
	mov	DWORD PTR -4452[rbp], eax
.L14:
	mov	eax, DWORD PTR quit[rip]
	test	eax, eax
	je	.L23
	mov	eax, DWORD PTR -4444[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	QWORD PTR -4408[rbp], 0
	je	.L24
	mov	rax, QWORD PTR -4400[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L24:
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L26
.L28:
	nop
	jmp	.L17
.L29:
	nop
.L17:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -4444[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	QWORD PTR -4408[rbp], 0
	je	.L25
	mov	rax, QWORD PTR -4400[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L25:
	mov	eax, 1
.L26:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC11:
	.long	1036831949
	.align 4
.LC12:
	.long	1128792064
	.align 4
.LC13:
	.long	1056964608
	.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	"114870.c"
	.text
	.global	quit
	.bss
	.align	2
	.type	quit, %object
	.size	quit, 4
quit:
	.space	4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sighandler, %function
sighandler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L2
	mov	r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	quit
	.size	sighandler, .-sighandler
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pack, %function
pack:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-13]
	mov	r3, r2
	strb	r3, [fp, #-14]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #8
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	ldr	r2, [fp, #-8]
	orr	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	pack, .-pack
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: ./read_temp <hidraw file> <log file>\012\000"
	.align	2
.LC1:
	.ascii	"Couldn't open device %s! Make sure to run as a supe"
	.ascii	"ruser!\012\000"
	.align	2
.LC2:
	.ascii	"w+\000"
	.align	2
.LC3:
	.ascii	"Unable to open log file %s!\012\000"
	.align	2
.LC4:
	.ascii	"(%i) Report Descriptor Size: %d\012\000"
	.align	2
.LC5:
	.ascii	"(%i) Report Descriptor: \000"
	.align	2
.LC6:
	.ascii	"%hhx \000"
	.align	2
.LC7:
	.ascii	"...\000"
	.align	2
.LC8:
	.ascii	"(%i) Name: %s\012\000"
	.align	2
.LC9:
	.ascii	"(%i) Raw Phys: %s\012\000"
	.align	2
.LC10:
	.ascii	"(%i) Raw Info: vendor=0x%04hx product=0x%04hx\012\000"
	.global	__aeabi_ui2f
	.global	__aeabi_fmul
	.global	__aeabi_fsub
	.global	__aeabi_f2d
	.global	__aeabi_i2f
	.align	2
.LC11:
	.ascii	"Temperature = %0.3f\302\260C Humidity = %.1f%\012\000"
	.align	2
.LC12:
	.ascii	"%f %f\012\000"
	.align	2
.LC13:
	.ascii	"Exiting\000"
	.align	2
.LC14:
	.ascii	"Garbage read\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4440
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4416
	sub	sp, sp, #36
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-340]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-344]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-328]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-324]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #276
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #268
	ldr	r2, .L30+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-320]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-316]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-344]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-344]
	ldr	r3, [r3, #4]
	str	r3, [r2, #-320]
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-344]
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-344]
	ldr	r3, [r3, #8]
	str	r3, [r2, #-316]
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-320]
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-316]
	cmp	r3, #0
	bne	.L10
.L9:
	ldr	r3, .L30+8
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L30+12
	bl	fwrite
	mov	r3, #1
	b	.L26
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, #0
	ldr	r0, [r3, #-320]
	bl	open
	str	r0, [r4, #-308]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-308]
	cmp	r3, #0
	bge	.L12
	ldr	r3, .L30+8
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-320]
	ldr	r1, .L30+16
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L26
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-316]
	cmp	r3, #0
	beq	.L13
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L30+20
	ldr	r0, [r3, #-316]
	bl	fopen
	str	r0, [r4, #-312]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-312]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L30+8
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-316]
	ldr	r1, .L30+24
	mov	r0, r3
	bl	fprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-308]
	bl	close
	mov	r3, #1
	b	.L26
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4416
	sub	r3, r3, #12
	sub	r3, r3, #16
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L30+28
	ldr	r0, [r0, #-308]
	bl	ioctl
	str	r0, [r4, #-304]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-304]
	ldr	r0, .L30+32
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r2, [r3, #-268]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L30+36
	ldr	r0, [r0, #-308]
	bl	ioctl
	str	r0, [r4, #-304]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-304]
	ldr	r0, .L30+40
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-332]
	b	.L14
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	add	r3, r2, r3
	sub	r3, r3, #264
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L30+44
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	add	r3, r3, #1
	str	r3, [r2, #-332]
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-268]
	lsr	r2, r3, #2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	cmp	r2, r3
	bhi	.L15
	ldr	r0, .L30+48
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #272
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L30+52
	ldr	r0, [r0, #-308]
	bl	ioctl
	str	r0, [r4, #-304]
	sub	r3, fp, #272
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-304]
	ldr	r0, .L30+56
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #272
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L30+60
	ldr	r0, [r0, #-308]
	bl	ioctl
	str	r0, [r4, #-304]
	sub	r3, fp, #272
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-304]
	ldr	r0, .L30+64
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L30+68
	ldr	r0, [r0, #-308]
	bl	ioctl
	str	r0, [r4, #-304]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #276
	ldrsh	r3, [r3, #4]
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #276
	ldrsh	r3, [r3, #6]
	mov	r0, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	mov	r3, r0
	ldr	r1, [r1, #-304]
	ldr	r0, .L30+72
	bl	printf
	ldr	r1, .L30+76
	mov	r0, #2
	bl	signal
	b	.L16
.L23:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #276
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #3
	mov	r1, r3
	ldr	r0, [r0, #-308]
	bl	read
	str	r0, [r4, #-304]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-304]
	cmp	r3, #3
	bne	.L17
	ldrb	r3, [fp, #-276]	@ zero_extendqisi2
	cmp	r3, #3
	bne	.L28
	ldrb	r3, [fp, #-274]	@ zero_extendqisi2
	ldrb	r2, [fp, #-275]	@ zero_extendqisi2
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r4, r1
	mov	r1, r2
	mov	r0, r3
	bl	pack
	str	r0, [r4, #-300]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-300]
	bl	__aeabi_ui2f
	mov	r3, r0
	ldr	r1, .L30+80
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	ldr	r1, .L30+84
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r4, r3
	mov	r0, r2
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stmdb	r4, {r2-r3}
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-328]
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-304]
	cmp	r3, #2
	bne	.L20
	ldrb	r3, [fp, #-276]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L29
	ldrb	r3, [fp, #-275]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, #1056964608
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r4, r3
	mov	r0, r2
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-324]
.L20:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	cmp	r3, #0
	beq	.L16
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	cmp	r3, #0
	beq	.L16
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r1, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #32
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldmdb	r1, {r2-r3}
	ldr	r0, .L30+88
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-316]
	cmp	r3, #0
	beq	.L22
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #32
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldmdb	r1, {r2-r3}
	ldr	r1, .L30+92
	ldr	r0, [r0, #-312]
	bl	fprintf
.L22:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-324]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	str	r3, [r2, #-328]
.L16:
	ldr	r3, .L30+96
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L23
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-308]
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-316]
	cmp	r3, #0
	beq	.L24
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-312]
	bl	fclose
.L24:
	ldr	r0, .L30+100
	bl	puts
	mov	r3, #0
	b	.L26
.L28:
	nop
	b	.L19
.L29:
	nop
.L19:
	ldr	r3, .L30+8
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L30+104
	bl	fwrite
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-308]
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-316]
	cmp	r3, #0
	beq	.L25
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-312]
	bl	fclose
.L25:
	mov	r3, #1
.L26:
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC15
	.word	4100
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	-2147203071
	.word	.LC4
	.word	-1878767614
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	-2130687996
	.word	.LC8
	.word	-2130687995
	.word	.LC9
	.word	-2146940925
	.word	.LC10
	.word	sighandler
	.word	1036831949
	.word	1128792064
	.word	.LC11
	.word	.LC12
	.word	quit
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
