	.file	"845805.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	thermistorPoints, @object
	.size	thermistorPoints, 176
thermistorPoints:
	.long	850
	.long	129
	.long	800
	.long	146
	.long	750
	.long	165
	.long	700
	.long	186
	.long	650
	.long	210
	.long	600
	.long	236
	.long	550
	.long	267
	.long	500
	.long	300
	.long	450
	.long	337
	.long	400
	.long	376
	.long	350
	.long	419
	.long	300
	.long	464
	.long	200
	.long	559
	.long	250
	.long	511
	.long	150
	.long	608
	.long	100
	.long	656
	.long	50
	.long	703
	.long	0
	.long	748
	.long	-50
	.long	789
	.long	-100
	.long	828
	.long	-150
	.long	862
	.long	-200
	.long	892
	.text
	.type	interpolate, @function
interpolate:
.LFB0:
	.cfi_startproc
	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 -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	DWORD PTR -16[rbp], ecx
	mov	DWORD PTR -20[rbp], r8d
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -16[rbp]
	imul	eax, edx
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, edx
	sub	ecx, DWORD PTR -16[rbp]
	cdq
	idiv	ecx
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	interpolate, .-interpolate
	.type	interpolateTemperature, @function
interpolateTemperature:
.LFB2:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	DWORD PTR -4[rbp], edi
	mov	eax, esi
	mov	BYTE PTR -8[rbp], al
	movzx	eax, BYTE PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, thermistorPoints[rip+4]
	mov	edi, DWORD PTR [rdx+rax]
	movzx	eax, BYTE PTR -8[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, thermistorPoints[rip+4]
	mov	ecx, DWORD PTR [rdx+rax]
	movzx	eax, BYTE PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, thermistorPoints[rip]
	mov	edx, DWORD PTR [rdx+rax]
	movzx	eax, BYTE PTR -8[rbp]
	sub	eax, 1
	cdqe
	lea	rsi, 0[0+rax*8]
	lea	rax, thermistorPoints[rip]
	mov	esi, DWORD PTR [rsi+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	r8d, edi
	mov	edi, eax
	call	interpolate
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	interpolateTemperature, .-interpolateTemperature
	.type	searchLsb, @function
searchLsb:
.LFB4:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	BYTE PTR -1[rbp], 0
	jmp	.L6
.L9:
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, thermistorPoints[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L7
	movzx	eax, BYTE PTR -1[rbp]
	jmp	.L8
.L7:
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L6:
	cmp	BYTE PTR -1[rbp], 21
	jbe	.L9
	mov	eax, 21
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	searchLsb, .-searchLsb
	.globl	thermistorLsbToTemperature
	.type	thermistorLsbToTemperature, @function
thermistorLsbToTemperature:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR thermistorPoints[rip+172]
	cmp	DWORD PTR -4[rbp], eax
	jb	.L11
	mov	eax, DWORD PTR thermistorPoints[rip+168]
	cdqe
	jmp	.L12
.L11:
	mov	eax, DWORD PTR thermistorPoints[rip+4]
	cmp	DWORD PTR -4[rbp], eax
	ja	.L13
	mov	eax, DWORD PTR thermistorPoints[rip]
	cdqe
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	searchLsb
	movzx	edx, al
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	interpolateTemperature
	cdqe
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	thermistorLsbToTemperature, .-thermistorLsbToTemperature
	.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	"845805.c"
	.text
	.data
	.align	2
	.type	thermistorPoints, %object
	.size	thermistorPoints, 176
thermistorPoints:
	.word	850
	.word	129
	.word	800
	.word	146
	.word	750
	.word	165
	.word	700
	.word	186
	.word	650
	.word	210
	.word	600
	.word	236
	.word	550
	.word	267
	.word	500
	.word	300
	.word	450
	.word	337
	.word	400
	.word	376
	.word	350
	.word	419
	.word	300
	.word	464
	.word	200
	.word	559
	.word	250
	.word	511
	.word	150
	.word	608
	.word	100
	.word	656
	.word	50
	.word	703
	.word	0
	.word	748
	.word	-50
	.word	789
	.word	-100
	.word	828
	.word	-150
	.word	862
	.word	-200
	.word	892
	.global	__aeabi_idiv
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	interpolate, %function
interpolate:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	ldr	r1, [fp, #-8]
	ldr	r2, [fp, #-20]
	sub	r2, r1, r2
	mul	r0, r2, r3
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	interpolate, .-interpolate
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	interpolateTemperature, %function
interpolateTemperature:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	mov	r3, r1
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	sub	r3, r3, #1
	ldr	r2, .L5
	ldr	r1, [r2, r3, lsl #3]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldr	r2, .L5
	ldr	r2, [r2, r3, lsl #3]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	sub	r3, r3, #1
	ldr	r0, .L5
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r0, [r3, #4]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldr	ip, .L5
	lsl	r3, r3, #3
	add	r3, ip, r3
	ldr	r3, [r3, #4]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-8]
	bl	interpolate
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	thermistorPoints
	.size	interpolateTemperature, .-interpolateTemperature
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	searchLsb, %function
searchLsb:
	@ 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
	str	r0, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-5]
	b	.L8
.L11:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L12
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L9
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	b	.L10
.L9:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L8:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #21
	bls	.L11
	mov	r3, #21
.L10:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L13:
	.align	2
.L12:
	.word	thermistorPoints
	.size	searchLsb, .-searchLsb
	.align	2
	.global	thermistorLsbToTemperature
	.syntax unified
	.arm
	.fpu softvfp
	.type	thermistorLsbToTemperature, %function
thermistorLsbToTemperature:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, .L18
	ldr	r3, [r3, #172]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	bcc	.L15
	ldr	r3, .L18
	ldr	r3, [r3, #168]
	b	.L16
.L15:
	ldr	r3, .L18
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	bhi	.L17
	ldr	r3, .L18
	ldr	r3, [r3]
	b	.L16
.L17:
	ldr	r4, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	searchLsb
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	interpolateTemperature
	mov	r3, r0
.L16:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	thermistorPoints
	.size	thermistorLsbToTemperature, .-thermistorLsbToTemperature
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
