	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_force_dpm_lowest
_smu7_force_dpm_lowest:                 ## @smu7_force_dpm_lowest
	.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	%rdi, %r14
	movq	(%rdi), %rbx
	cmpl	$0, 32(%rbx)
	jne	LBB0_3
## %bb.1:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_phm_get_lowest_enabled_level
	movq	_PPSMC_MSG_SCLKDPM_SetEnabledMask@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movq	%r14, %rdi
	callq	_smum_send_msg_to_smc_with_parameter
LBB0_3:
	cmpl	$0, 28(%rbx)
	jne	LBB0_6
## %bb.4:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_phm_get_lowest_enabled_level
	movq	_PPSMC_MSG_MCLKDPM_SetEnabledMask@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movq	%r14, %rdi
	callq	_smum_send_msg_to_smc_with_parameter
LBB0_6:
	cmpl	$0, 24(%rbx)
	jne	LBB0_9
## %bb.7:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_phm_get_lowest_enabled_level
	movq	_PPSMC_MSG_PCIeDPM_ForceLevel@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_smum_send_msg_to_smc_with_parameter
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPSMC_MSG_SCLKDPM_SetEnabledMask,4,2 ## @PPSMC_MSG_SCLKDPM_SetEnabledMask
	.comm	_PPSMC_MSG_MCLKDPM_SetEnabledMask,4,2 ## @PPSMC_MSG_MCLKDPM_SetEnabledMask
	.comm	_PPSMC_MSG_PCIeDPM_ForceLevel,4,2 ## @PPSMC_MSG_PCIeDPM_ForceLevel
	.no_dead_strip	_smu7_force_dpm_lowest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_force_dpm_lowest
_smu7_force_dpm_lowest:                 ; @smu7_force_dpm_lowest
	.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
	mov	x19, x0
	ldr	x20, [x0]
	ldr	w8, [x20, #32]
	cbnz	w8, LBB0_3
; %bb.1:
	ldr	x1, [x20, #16]
	cbz	x1, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_phm_get_lowest_enabled_level
Lloh0:
	adrp	x8, _PPSMC_MSG_SCLKDPM_SetEnabledMask@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPSMC_MSG_SCLKDPM_SetEnabledMask@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w8, #1
	lsl	w2, w8, w0
	mov	x0, x19
	bl	_smum_send_msg_to_smc_with_parameter
LBB0_3:
	ldr	w8, [x20, #28]
	cbnz	w8, LBB0_6
; %bb.4:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_phm_get_lowest_enabled_level
Lloh3:
	adrp	x8, _PPSMC_MSG_MCLKDPM_SetEnabledMask@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PPSMC_MSG_MCLKDPM_SetEnabledMask@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w8, #1
	lsl	w2, w8, w0
	mov	x0, x19
	bl	_smum_send_msg_to_smc_with_parameter
LBB0_6:
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_9
; %bb.7:
	ldr	x1, [x20]
	cbz	x1, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_phm_get_lowest_enabled_level
	mov	x2, x0
Lloh6:
	adrp	x8, _PPSMC_MSG_PCIeDPM_ForceLevel@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PPSMC_MSG_PCIeDPM_ForceLevel@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smum_send_msg_to_smc_with_parameter
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PPSMC_MSG_SCLKDPM_SetEnabledMask,4,2 ; @PPSMC_MSG_SCLKDPM_SetEnabledMask
	.comm	_PPSMC_MSG_MCLKDPM_SetEnabledMask,4,2 ; @PPSMC_MSG_MCLKDPM_SetEnabledMask
	.comm	_PPSMC_MSG_PCIeDPM_ForceLevel,4,2 ; @PPSMC_MSG_PCIeDPM_ForceLevel
	.no_dead_strip	_smu7_force_dpm_lowest
.subsections_via_symbols
