	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phm_get_voltage_evv_on_sclk    ## -- Begin function phm_get_voltage_evv_on_sclk
	.p2align	4, 0x90
_phm_get_voltage_evv_on_sclk:           ## @phm_get_voltage_evv_on_sclk
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r8, %r14
	movq	(%rdi), %rax
	movq	_CHIP_TONGA@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jge	LBB0_1
## %bb.7:
	movl	%ecx, %esi
	movq	%r14, %rdx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_atomctrl_get_voltage_evv       ## TAILCALL
LBB0_1:
	movq	_CHIP_POLARIS10@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jge	LBB0_5
## %bb.2:
	movq	%r14, %r8
	callq	_atomctrl_get_voltage_evv_on_sclk
	movl	(%r14), %ecx
	cmpl	$1999, %ecx                     ## imm = 0x7CF
	jg	LBB0_4
## %bb.3:
	testl	%ecx, %ecx
	jne	LBB0_6
LBB0_4:
	movl	$1150, (%r14)                   ## imm = 0x47E
	jmp	LBB0_6
LBB0_5:
	leaq	-20(%rbp), %r8
	callq	_atomctrl_get_voltage_evv_on_sclk_ai
	movslq	-20(%rbp), %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	movl	%ecx, (%r14)
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_TONGA,8,3                 ## @CHIP_TONGA
	.comm	_CHIP_POLARIS10,8,3             ## @CHIP_POLARIS10
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phm_get_voltage_evv_on_sclk    ; -- Begin function phm_get_voltage_evv_on_sclk
	.p2align	2
_phm_get_voltage_evv_on_sclk:           ; @phm_get_voltage_evv_on_sclk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x4
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CHIP_TONGA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_TONGA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	x1, x3
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_atomctrl_get_voltage_evv
LBB0_2:
Lloh3:
	adrp	x9, _CHIP_POLARIS10@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHIP_POLARIS10@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.3:
	mov	x4, x19
	bl	_atomctrl_get_voltage_evv_on_sclk
	ldr	w8, [x19]
	cmp	w8, #1999
	ccmp	w8, #0, #4, le
	b.ne	LBB0_7
; %bb.4:
	mov	w8, #1150
	b	LBB0_6
LBB0_5:
	add	x4, sp, #12
	bl	_atomctrl_get_voltage_evv_on_sclk_ai
	ldrsw	x8, [sp, #12]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
LBB0_6:
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_TONGA,8,3                 ; @CHIP_TONGA
	.comm	_CHIP_POLARIS10,8,3             ; @CHIP_POLARIS10
.subsections_via_symbols
