	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LM93_IN_TO_REG
_LM93_IN_TO_REG:                        ## @LM93_IN_TO_REG
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %eax
	movq	_lm93_vin_val_min@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movslq	%edi, %rbx
	movslq	(%rcx,%rbx,4), %rsi
	movq	_lm93_vin_val_max@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	movl	%eax, %edi
	callq	_SENSORS_LIMIT
	imulq	$1000, %rax, %rdi               ## imm = 0x3E8
	movq	(%r15), %rax
	movslq	(%rax,%rbx,4), %rax
	imulq	$1000, %rax, %rax               ## imm = 0x3E8
	movq	(%r14), %rcx
	movslq	(%rcx,%rbx,4), %rcx
	imulq	$1000, %rcx, %r9                ## imm = 0x3E8
	subq	%r9, %rax
	movq	_lm93_vin_reg_max@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx,8), %r8
	movq	_lm93_vin_reg_min@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rsi
	movq	%r8, %rcx
	subq	%rsi, %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	cqto
	idivq	%rcx
	movq	%rax, %rcx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ecx
LBB0_3:
	movq	%rcx, %rax
	imulq	%rsi, %rax
	movq	%rcx, %rdx
	shrq	$63, %rdx
	addq	%rcx, %rdx
	sarq	%rdx
	subq	%r9, %rdi
	addq	%rax, %rdi
	addq	%rdx, %rdi
	movq	%rdi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.5:
	movq	%rdi, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_6
LBB0_4:
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	movl	%eax, %edi
	movq	%r8, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SENSORS_LIMIT                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_lm93_vin_val_min,8,3           ## @lm93_vin_val_min
	.comm	_lm93_vin_val_max,8,3           ## @lm93_vin_val_max
	.comm	_lm93_vin_reg_max,8,3           ## @lm93_vin_reg_max
	.comm	_lm93_vin_reg_min,8,3           ## @lm93_vin_reg_min
	.no_dead_strip	_LM93_IN_TO_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LM93_IN_TO_REG
_LM93_IN_TO_REG:                        ; @LM93_IN_TO_REG
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x20, _lm93_vin_val_min@GOTPAGE
Lloh1:
	ldr	x20, [x20, _lm93_vin_val_min@GOTPAGEOFF]
	ldr	x9, [x20]
	sbfiz	x21, x19, #2, #32
	ldrsw	x1, [x9, x21]
Lloh2:
	adrp	x22, _lm93_vin_val_max@GOTPAGE
Lloh3:
	ldr	x22, [x22, _lm93_vin_val_max@GOTPAGEOFF]
	ldr	x9, [x22]
	ldrsw	x2, [x9, x21]
	mov	x0, x8
	bl	_SENSORS_LIMIT
	mov	w8, #1000
	ldr	x9, [x22]
	ldrsw	x9, [x9, x21]
	mul	x9, x9, x8
	ldr	x10, [x20]
	ldrsw	x10, [x10, x21]
	mul	x10, x10, x8
	sub	x9, x9, x10
Lloh4:
	adrp	x11, _lm93_vin_reg_max@GOTPAGE
Lloh5:
	ldr	x11, [x11, _lm93_vin_reg_max@GOTPAGEOFF]
Lloh6:
	ldr	x11, [x11]
	sbfiz	x12, x19, #3, #32
	ldr	x2, [x11, x12]
Lloh7:
	adrp	x11, _lm93_vin_reg_min@GOTPAGE
Lloh8:
	ldr	x11, [x11, _lm93_vin_reg_min@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x11]
	ldr	x1, [x11, x12]
	sub	x11, x2, x1
	sdiv	x9, x9, x11
	cmp	x9, #0
	cinc	x11, x9, lt
	neg	x10, x10
	madd	x8, x0, x8, x10
	madd	x8, x9, x1, x8
	add	x8, x8, x11, asr #1
	sdiv	x0, x8, x9
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_SENSORS_LIMIT
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_lm93_vin_val_min,8,3           ; @lm93_vin_val_min
	.comm	_lm93_vin_val_max,8,3           ; @lm93_vin_val_max
	.comm	_lm93_vin_reg_max,8,3           ; @lm93_vin_reg_max
	.comm	_lm93_vin_reg_min,8,3           ; @lm93_vin_reg_min
	.no_dead_strip	_LM93_IN_TO_REG
.subsections_via_symbols
