	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu8_dpm_get_pp_table_entry_callback
_smu8_dpm_get_pp_table_entry_callback:  ## @smu8_dpm_get_pp_table_entry_callback
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %ebx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_cast_smu8_power_state
	movq	%rax, %r14
	movq	8(%r12), %rax
	movq	(%r15), %rcx
	movslq	(%r12), %rdx
	decq	%rdx
	cmpq	%rdx, %rcx
	cmovbq	%rcx, %rdx
	movq	(%rax), %rax
	shlq	$4, %rdx
	movl	8(%rax,%rdx), %ecx
	movq	8(%r14), %rsi
	movl	%ebx, %edi
	leaq	(%rdi,%rdi,2), %r15
	movl	%ecx, 16(%rsi,%r15,8)
	movq	(%rax,%rdx), %rax
	movq	%rax, (%rsi,%r15,8)
	incl	%ebx
	movl	%ebx, (%r14)
	movl	4(%r12), %edi
	movq	_PHM_PlatformCaps_SclkDeepSleep@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_enabled
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%r14), %rax
	movabsq	$21474836485, %rcx              ## imm = 0x500000005
	movq	%rcx, 8(%rax,%r15,8)
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHM_PlatformCaps_SclkDeepSleep,4,2 ## @PHM_PlatformCaps_SclkDeepSleep
	.no_dead_strip	_smu8_dpm_get_pp_table_entry_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu8_dpm_get_pp_table_entry_callback
_smu8_dpm_get_pp_table_entry_callback:  ; @smu8_dpm_get_pp_table_entry_callback
	.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	x21, x3
	mov	x19, x2
	mov	x22, x0
	mov	x0, x1
	bl	_cast_smu8_power_state
	mov	x20, x0
	ldr	x8, [x22, #8]
	ldr	x9, [x21]
	ldp	w10, w0, [x22]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	sub	x10, x10, #1
	cmp	x9, x10
	csel	x9, x9, x10, lo
	ldr	x8, [x8]
	add	x8, x8, x9, lsl #4
	ldr	w9, [x8, #8]
	ldr	x10, [x20, #8]
	mov	w11, #24
	umaddl	x10, w19, w11, x10
	str	w9, [x10, #16]
	ldr	x8, [x8]
	str	x8, [x10]
	add	w8, w19, #1
	str	w8, [x20]
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:
	mov	w8, w19
	ldr	x9, [x20, #8]
	mov	w10, #24
	madd	x8, x8, x10, x9
	movi.2s	v0, #5
	str	d0, [x8, #8]
LBB0_2:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_PHM_PlatformCaps_SclkDeepSleep,4,2 ; @PHM_PlatformCaps_SclkDeepSleep
	.no_dead_strip	_smu8_dpm_get_pp_table_entry_callback
.subsections_via_symbols
