	.file	"extr_ds1621.c_DS1621_TEMP_TO_REG.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	DS1621_TEMP_TO_REG, @function
DS1621_TEMP_TO_REG:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	edx, DWORD PTR DS1621_TEMP_MAX[rip]
	mov	ebx, esi
	mov	esi, DWORD PTR DS1621_TEMP_MIN[rip]
	call	clamp_val@PLT
	mov	ecx, 8
	mov	edx, 1
	mov	esi, 1000
	sub	ecx, ebx
	sal	edx, cl
	movsx	rdi, edx
	imul	rdi, rax
	call	DIV_ROUND_CLOSEST@PLT
	mov	ecx, ebx
	pop	rbx
	.cfi_def_cfa_offset 8
	sal	eax, cl
	cdqe
	ret
	.cfi_endproc
.LFE0:
	.size	DS1621_TEMP_TO_REG, .-DS1621_TEMP_TO_REG
	.comm	DS1621_TEMP_MIN,4,4
	.comm	DS1621_TEMP_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ds1621.c_DS1621_TEMP_TO_REG.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DS1621_TEMP_TO_REG, %function
DS1621_TEMP_TO_REG:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L4
	ldr	r2, .L4+4
	push	{r4, lr}
	ldr	r2, [r2]
	mov	r4, r1
	ldr	r1, [r3]
	bl	clamp_val
	rsb	r3, r4, #8
	mov	r1, #1000
	lsl	r0, r0, r3
	bl	DIV_ROUND_CLOSEST
	lsl	r0, r0, r4
	pop	{r4, pc}
.L5:
	.align	2
.L4:
	.word	DS1621_TEMP_MIN
	.word	DS1621_TEMP_MAX
	.size	DS1621_TEMP_TO_REG, .-DS1621_TEMP_TO_REG
	.comm	DS1621_TEMP_MIN,4,4
	.comm	DS1621_TEMP_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
