	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_enable_smc_voltage_controller
_smu7_enable_smc_voltage_controller:    ## @smu7_enable_smc_voltage_controller
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CHIP_VEGAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	12(%rbx), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_PWR_SVI2_PLANE1_LOAD@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_PSI1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	callq	_PHM_WRITE_VFPF_INDIRECT_FIELD
	movl	12(%rbx), %edi
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	_PSI0_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	callq	_PHM_WRITE_VFPF_INDIRECT_FIELD
LBB0_2:
	movq	_PP_SMC_VOLTAGE_CONTROL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_PPSMC_MSG_Voltage_Cntl_Enable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smum_send_msg_to_smc
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_VEGAM,8,3                 ## @CHIP_VEGAM
	.comm	_CGS_IND_REG__SMC,4,2           ## @CGS_IND_REG__SMC
	.comm	_PWR_SVI2_PLANE1_LOAD,4,2       ## @PWR_SVI2_PLANE1_LOAD
	.comm	_PSI1,4,2                       ## @PSI1
	.comm	_PSI0_EN,4,2                    ## @PSI0_EN
	.comm	_PP_SMC_VOLTAGE_CONTROL_MASK,4,2 ## @PP_SMC_VOLTAGE_CONTROL_MASK
	.comm	_PPSMC_MSG_Voltage_Cntl_Enable,4,2 ## @PPSMC_MSG_Voltage_Cntl_Enable
	.no_dead_strip	_smu7_enable_smc_voltage_controller
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_enable_smc_voltage_controller
_smu7_enable_smc_voltage_controller:    ; @smu7_enable_smc_voltage_controller
	.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, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CHIP_VEGAM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_VEGAM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
Lloh3:
	adrp	x20, _CGS_IND_REG__SMC@GOTPAGE
Lloh4:
	ldr	x20, [x20, _CGS_IND_REG__SMC@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x21, _PWR_SVI2_PLANE1_LOAD@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PWR_SVI2_PLANE1_LOAD@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh7:
	adrp	x8, _PSI1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PSI1@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	w4, #0
	bl	_PHM_WRITE_VFPF_INDIRECT_FIELD
	ldr	w0, [x19, #12]
	ldr	w1, [x20]
	ldr	w2, [x21]
Lloh10:
	adrp	x8, _PSI0_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PSI0_EN@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	w4, #0
	bl	_PHM_WRITE_VFPF_INDIRECT_FIELD
LBB0_2:
	ldr	w8, [x19, #8]
Lloh13:
	adrp	x9, _PP_SMC_VOLTAGE_CONTROL_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PP_SMC_VOLTAGE_CONTROL_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh16:
	adrp	x8, _PPSMC_MSG_Voltage_Cntl_Enable@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PPSMC_MSG_Voltage_Cntl_Enable@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smum_send_msg_to_smc
LBB0_4:
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_VEGAM,8,3                 ; @CHIP_VEGAM
	.comm	_CGS_IND_REG__SMC,4,2           ; @CGS_IND_REG__SMC
	.comm	_PWR_SVI2_PLANE1_LOAD,4,2       ; @PWR_SVI2_PLANE1_LOAD
	.comm	_PSI1,4,2                       ; @PSI1
	.comm	_PSI0_EN,4,2                    ; @PSI0_EN
	.comm	_PP_SMC_VOLTAGE_CONTROL_MASK,4,2 ; @PP_SMC_VOLTAGE_CONTROL_MASK
	.comm	_PPSMC_MSG_Voltage_Cntl_Enable,4,2 ; @PPSMC_MSG_Voltage_Cntl_Enable
	.no_dead_strip	_smu7_enable_smc_voltage_controller
.subsections_via_symbols
