	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_get_gfx_vdd
_smu_v11_0_get_gfx_vdd:                 ## @smu_v11_0_get_gfx_vdd
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	_SMUIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmSMUSVI0_TEL_PLANE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movq	_SMUSVI0_TEL_PLANE0__SVI0_PLANE0_VDDCOR_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_SMUSVI0_TEL_PLANE0__SVI0_PLANE0_VDDCOR__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, %edi
	callq	_convert_to_vddc
	movl	%eax, (%r14)
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMUIO,4,2                      ## @SMUIO
	.comm	_mmSMUSVI0_TEL_PLANE0,4,2       ## @mmSMUSVI0_TEL_PLANE0
	.comm	_SMUSVI0_TEL_PLANE0__SVI0_PLANE0_VDDCOR_MASK,4,2 ## @SMUSVI0_TEL_PLANE0__SVI0_PLANE0_VDDCOR_MASK
	.comm	_SMUSVI0_TEL_PLANE0__SVI0_PLANE0_VDDCOR__SHIFT,4,2 ## @SMUSVI0_TEL_PLANE0__SVI0_PLANE0_VDDCOR__SHIFT
	.no_dead_strip	_smu_v11_0_get_gfx_vdd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_v11_0_get_gfx_vdd
_smu_v11_0_get_gfx_vdd:                 ; @smu_v11_0_get_gfx_vdd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x1, LBB0_2
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x8, _SMUIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMUIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _mmSMUSVI0_TEL_PLANE0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmSMUSVI0_TEL_PLANE0@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_RREG32_SOC15
Lloh6:
	adrp	x8, _SMUSVI0_TEL_PLANE0__SVI0_PLANE0_VDDCOR_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMUSVI0_TEL_PLANE0__SVI0_PLANE0_VDDCOR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh9:
	adrp	x9, _SMUSVI0_TEL_PLANE0__SVI0_PLANE0_VDDCOR__SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SMUSVI0_TEL_PLANE0__SVI0_PLANE0_VDDCOR__SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w0, w8, w9
	bl	_convert_to_vddc
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMUIO,4,2                      ; @SMUIO
	.comm	_mmSMUSVI0_TEL_PLANE0,4,2       ; @mmSMUSVI0_TEL_PLANE0
	.comm	_SMUSVI0_TEL_PLANE0__SVI0_PLANE0_VDDCOR_MASK,4,2 ; @SMUSVI0_TEL_PLANE0__SVI0_PLANE0_VDDCOR_MASK
	.comm	_SMUSVI0_TEL_PLANE0__SVI0_PLANE0_VDDCOR__SHIFT,4,2 ; @SMUSVI0_TEL_PLANE0__SVI0_PLANE0_VDDCOR__SHIFT
	.no_dead_strip	_smu_v11_0_get_gfx_vdd
.subsections_via_symbols
