	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trinity_convert_voltage_index_to_value
_trinity_convert_voltage_index_to_value: ## @trinity_convert_voltage_index_to_value
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_trinity_get_pi
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_sumo_convert_vid2_to_vid7
	movq	%rax, %rbx
	movq	_PM_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32_SMC
	movq	_SVI_Mode@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movl	$1250, %eax                     ## imm = 0x4E2
	movl	$625, %edx                      ## imm = 0x271
	cmoveq	%rax, %rdx
	imulq	%rbx, %rdx
	xorl	%eax, %eax
	cmpq	$154950, %rdx                   ## imm = 0x25D46
	jg	LBB0_2
## %bb.1:
	movl	$154950, %ecx                   ## imm = 0x25D46
	subq	%rdx, %rcx
	movabsq	$-6640827866535438581, %rdx     ## imm = 0xA3D70A3D70A3D70B
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$6, %rax
	addl	%ecx, %eax
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PM_CONFIG,4,2                  ## @PM_CONFIG
	.comm	_SVI_Mode,4,2                   ## @SVI_Mode
	.no_dead_strip	_trinity_convert_voltage_index_to_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trinity_convert_voltage_index_to_value
_trinity_convert_voltage_index_to_value: ; @trinity_convert_voltage_index_to_value
	.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	x19, x1
	mov	x20, x0
	mov	w21, #23878
	movk	w21, #2, lsl #16
	bl	_trinity_get_pi
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_sumo_convert_vid2_to_vid7
	mov	x19, x0
Lloh0:
	adrp	x8, _PM_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PM_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32_SMC
Lloh3:
	adrp	x8, _SVI_Mode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SVI_Mode@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	mov	w8, #625
	mov	w9, #1250
	csel	x8, x9, x8, eq
	mul	x8, x8, x19
	cmp	x8, x21
	b.le	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x9, #55051
	movk	x9, #28835, lsl #16
	movk	x9, #2621, lsl #32
	movk	x9, #41943, lsl #48
	sub	x8, x21, x8
	smulh	x9, x8, x9
	add	x8, x9, x8
	lsr	x9, x8, #63
	lsr	x8, x8, #6
	add	w0, w8, w9
LBB0_3:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PM_CONFIG,4,2                  ; @PM_CONFIG
	.comm	_SVI_Mode,4,2                   ; @SVI_Mode
	.no_dead_strip	_trinity_convert_voltage_index_to_value
.subsections_via_symbols
