	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu8_set_deep_sleep_sclk_threshold
_smu8_set_deep_sleep_sclk_threshold:    ## @smu8_set_deep_sleep_sclk_threshold
	.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
	movl	8(%rdi), %edi
	movq	_PHM_PlatformCaps_SclkDeepSleep@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_enabled
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%r14), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.2:
	movq	_SMU8_MIN_DEEP_SLEEP_SCLK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_PP_DBG_LOG
	movq	_PPSMC_MSG_SetMinDeepSleepSclk@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_smum_send_msg_to_smc_with_parameter
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHM_PlatformCaps_SclkDeepSleep,4,2 ## @PHM_PlatformCaps_SclkDeepSleep
	.comm	_SMU8_MIN_DEEP_SLEEP_SCLK,8,3   ## @SMU8_MIN_DEEP_SLEEP_SCLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting Deep Sleep Clock: %d\n"

	.comm	_PPSMC_MSG_SetMinDeepSleepSclk,4,2 ## @PPSMC_MSG_SetMinDeepSleepSclk
	.no_dead_strip	_smu8_set_deep_sleep_sclk_threshold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu8_set_deep_sleep_sclk_threshold
_smu8_set_deep_sleep_sclk_threshold:    ; @smu8_set_deep_sleep_sclk_threshold
	.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	w0, [x0, #8]
Lloh0:
	adrp	x8, _PHM_PlatformCaps_SclkDeepSleep@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHM_PlatformCaps_SclkDeepSleep@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_phm_cap_enabled
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SMU8_MIN_DEEP_SLEEP_SCLK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SMU8_MIN_DEEP_SLEEP_SCLK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x20, x9, x8, eq
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_PP_DBG_LOG
Lloh8:
	adrp	x8, _PPSMC_MSG_SetMinDeepSleepSclk@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PPSMC_MSG_SetMinDeepSleepSclk@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_smum_send_msg_to_smc_with_parameter
LBB0_2:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PHM_PlatformCaps_SclkDeepSleep,4,2 ; @PHM_PlatformCaps_SclkDeepSleep
	.comm	_SMU8_MIN_DEEP_SLEEP_SCLK,8,3   ; @SMU8_MIN_DEEP_SLEEP_SCLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting Deep Sleep Clock: %d\n"

	.comm	_PPSMC_MSG_SetMinDeepSleepSclk,4,2 ; @PPSMC_MSG_SetMinDeepSleepSclk
	.no_dead_strip	_smu8_set_deep_sleep_sclk_threshold
.subsections_via_symbols
