	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu8_download_pptable_settings
_smu8_download_pptable_settings:        ## @smu8_download_pptable_settings
	.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	%rdi, %r14
	movq	(%rdi), %r12
	movq	(%r12), %rdx
	movq	16(%r12), %r8
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	_SMU8_SCRATCH_ENTRY_SMU8_FUSION_CLKTABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%ecx, %ecx
	movq	%r8, %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, (%rax)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	addq	$24, %rax
	cmpq	%rcx, %rdx
	jne	LBB0_3
## %bb.5:
	movq	%rdx, %rcx
	jmp	LBB0_6
LBB0_1:
	xorl	%ecx, %ecx
LBB0_6:
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rbx
	movq	16(%r8,%rbx), %rax
	movq	%rax, (%rsi)
	movq	_PPSMC_MSG_SetClkTableAddrHi@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	16(%r12), %rax
	movl	8(%rax,%rbx), %edi
	callq	_upper_32_bits
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_smu8_send_msg_to_smc_with_parameter
	movq	_PPSMC_MSG_SetClkTableAddrLo@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	16(%r12), %rax
	movl	8(%rax,%rbx), %edi
	callq	_lower_32_bits
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_smu8_send_msg_to_smc_with_parameter
	movq	_PPSMC_MSG_ExecuteJob@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %edx
	movq	%r14, %rdi
	callq	_smu8_send_msg_to_smc_with_parameter
	movq	_PPSMC_MSG_ClkTableXferToDram@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_smu8_send_msg_to_smc
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU8_SCRATCH_ENTRY_SMU8_FUSION_CLKTABLE,8,3 ## @SMU8_SCRATCH_ENTRY_SMU8_FUSION_CLKTABLE
	.comm	_PPSMC_MSG_SetClkTableAddrHi,4,2 ## @PPSMC_MSG_SetClkTableAddrHi
	.comm	_PPSMC_MSG_SetClkTableAddrLo,4,2 ## @PPSMC_MSG_SetClkTableAddrLo
	.comm	_PPSMC_MSG_ExecuteJob,4,2       ## @PPSMC_MSG_ExecuteJob
	.comm	_PPSMC_MSG_ClkTableXferToDram,4,2 ## @PPSMC_MSG_ClkTableXferToDram
	.no_dead_strip	_smu8_download_pptable_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu8_download_pptable_settings
_smu8_download_pptable_settings:        ; @smu8_download_pptable_settings
	.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	x21, [x0]
	ldr	x10, [x21]
	ldr	x8, [x21, #16]
	mov	x9, #0
	cbz	x10, LBB0_5
; %bb.1:
Lloh0:
	adrp	x11, _SMU8_SCRATCH_ENTRY_SMU8_FUSION_CLKTABLE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _SMU8_SCRATCH_ENTRY_SMU8_FUSION_CLKTABLE@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	mov	x12, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12]
	cmp	x13, x11
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	add	x12, x12, #24
	cmp	x10, x9
	b.ne	LBB0_2
; %bb.4:
	mov	x9, x10
LBB0_5:
	add	x9, x9, x9, lsl #1
	lsl	x22, x9, #3
	add	x8, x8, x22
	ldr	x8, [x8, #16]
	str	x8, [x1]
Lloh3:
	adrp	x8, _PPSMC_MSG_SetClkTableAddrHi@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PPSMC_MSG_SetClkTableAddrHi@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	ldr	x8, [x21, #16]
	add	x8, x8, x22
	ldr	w0, [x8, #8]
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_smu8_send_msg_to_smc_with_parameter
Lloh6:
	adrp	x8, _PPSMC_MSG_SetClkTableAddrLo@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PPSMC_MSG_SetClkTableAddrLo@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	ldr	x8, [x21, #16]
	add	x8, x8, x22
	ldr	w0, [x8, #8]
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_smu8_send_msg_to_smc_with_parameter
Lloh9:
	adrp	x8, _PPSMC_MSG_ExecuteJob@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PPSMC_MSG_ExecuteJob@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_smu8_send_msg_to_smc_with_parameter
Lloh12:
	adrp	x8, _PPSMC_MSG_ClkTableXferToDram@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PPSMC_MSG_ClkTableXferToDram@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smu8_send_msg_to_smc
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU8_SCRATCH_ENTRY_SMU8_FUSION_CLKTABLE,8,3 ; @SMU8_SCRATCH_ENTRY_SMU8_FUSION_CLKTABLE
	.comm	_PPSMC_MSG_SetClkTableAddrHi,4,2 ; @PPSMC_MSG_SetClkTableAddrHi
	.comm	_PPSMC_MSG_SetClkTableAddrLo,4,2 ; @PPSMC_MSG_SetClkTableAddrLo
	.comm	_PPSMC_MSG_ExecuteJob,4,2       ; @PPSMC_MSG_ExecuteJob
	.comm	_PPSMC_MSG_ClkTableXferToDram,4,2 ; @PPSMC_MSG_ClkTableXferToDram
	.no_dead_strip	_smu8_download_pptable_settings
.subsections_via_symbols
