	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function volt2reg
_volt2reg:                              ## @volt2reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rax
	btl	%edi, %edx
	jae	LBB0_2
## %bb.1:
	shlq	$10, %rax
	movabsq	$4197659095884129079, %rcx      ## imm = 0x3A4114B5225C6337
	imulq	%rcx
	movq	%rdx, %rdi
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$9, %rdi
	addq	%rax, %rdi
	jmp	LBB0_5
LBB0_2:
	movq	_adt7473_in_scaling@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%edi, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movslq	4(%rcx), %rdx
	imulq	%rdx, %rax
	shlq	$10, %rax
	movslq	(%rcx), %rcx
	addq	%rdx, %rcx
	imulq	$2250, %rcx, %rcx               ## imm = 0x8CA
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	cqto
	idivq	%rcx
	movq	%rax, %rdi
	jmp	LBB0_5
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %edi
LBB0_5:
	xorl	%esi, %esi
	movl	$1023, %edx                     ## imm = 0x3FF
	callq	_clamp_val
	andl	$1020, %eax                     ## imm = 0x3FC
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adt7473_in_scaling,8,3         ## @adt7473_in_scaling
	.no_dead_strip	_volt2reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function volt2reg
_volt2reg:                              ; @volt2reg
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	lsr	w8, w2, w0
	tbz	w8, #0, LBB0_2
; %bb.1:
	lsl	x8, x1, #10
	mov	x9, #25399
	movk	x9, #8796, lsl #16
	movk	x9, #5301, lsl #32
	movk	x9, #14913, lsl #48
	smulh	x8, x8, x9
	asr	x9, x8, #9
	add	x0, x9, x8, lsr #63
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _adt7473_in_scaling@GOTPAGE
Lloh1:
	ldr	x8, [x8, _adt7473_in_scaling@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	ldpsw	x8, x9, [x8]
	mul	x10, x1, x9
	lsl	x10, x10, #10
	add	x8, x8, x9
	mov	w9, #2250
	mul	x8, x8, x9
	sdiv	x0, x10, x8
LBB0_3:
	mov	w1, #0
	mov	w2, #1023
	bl	_clamp_val
	and	w0, w0, #0x3fc
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_adt7473_in_scaling,8,3         ; @adt7473_in_scaling
	.no_dead_strip	_volt2reg
.subsections_via_symbols
