	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_upload_dpm_bootup_level
_vega10_upload_dpm_bootup_level:        ## @vega10_upload_dpm_bootup_level
	.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
	callq	_vega10_apply_dal_minimum_voltage_request
	cmpl	$0, 56(%rbx)
	jne	LBB0_3
## %bb.1:
	movq	(%rbx), %rdx
	cmpq	40(%rbx), %rdx
	je	LBB0_3
## %bb.2:
	movq	_PPSMC_MSG_SetSoftMinGfxclkByIndex@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_smum_send_msg_to_smc_with_parameter
	movq	(%rbx), %rax
	movq	%rax, 40(%rbx)
LBB0_3:
	cmpl	$0, 52(%rbx)
	jne	LBB0_9
## %bb.4:
	movq	8(%rbx), %rdx
	cmpq	32(%rbx), %rdx
	je	LBB0_9
## %bb.5:
	movq	_NUM_UCLK_DPM_LEVELS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decq	%rax
	cmpq	%rax, %rdx
	jne	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_vega10_get_soc_index_for_max_uclk
	movq	%rax, %rdx
	movq	_PPSMC_MSG_SetSoftMinSocclkByIndex@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_PPSMC_MSG_SetSoftMinUclkByIndex@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_smum_send_msg_to_smc_with_parameter
	movq	8(%rbx), %rax
	movq	%rax, 32(%rbx)
LBB0_9:
	cmpl	$0, 48(%rbx)
	jne	LBB0_12
## %bb.10:
	movq	16(%rbx), %rdx
	cmpq	24(%rbx), %rdx
	je	LBB0_12
## %bb.11:
	movq	_PPSMC_MSG_SetSoftMinSocclkByIndex@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_smum_send_msg_to_smc_with_parameter
	movq	16(%rbx), %rax
	movq	%rax, 24(%rbx)
LBB0_12:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPSMC_MSG_SetSoftMinGfxclkByIndex,4,2 ## @PPSMC_MSG_SetSoftMinGfxclkByIndex
	.comm	_NUM_UCLK_DPM_LEVELS,4,2        ## @NUM_UCLK_DPM_LEVELS
	.comm	_PPSMC_MSG_SetSoftMinSocclkByIndex,4,2 ## @PPSMC_MSG_SetSoftMinSocclkByIndex
	.comm	_PPSMC_MSG_SetSoftMinUclkByIndex,4,2 ## @PPSMC_MSG_SetSoftMinUclkByIndex
	.no_dead_strip	_vega10_upload_dpm_bootup_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega10_upload_dpm_bootup_level
_vega10_upload_dpm_bootup_level:        ; @vega10_upload_dpm_bootup_level
	.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]
	bl	_vega10_apply_dal_minimum_voltage_request
	ldr	w8, [x20, #56]
	cbnz	w8, LBB0_3
; %bb.1:
	ldr	x2, [x20]
	ldr	x8, [x20, #40]
	cmp	x2, x8
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _PPSMC_MSG_SetSoftMinGfxclkByIndex@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPSMC_MSG_SetSoftMinGfxclkByIndex@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smum_send_msg_to_smc_with_parameter
	ldr	x8, [x20]
	str	x8, [x20, #40]
LBB0_3:
	ldr	w8, [x20, #52]
	cbnz	w8, LBB0_9
; %bb.4:
	ldr	x2, [x20, #8]
	ldr	x8, [x20, #32]
	cmp	x2, x8
	b.eq	LBB0_9
; %bb.5:
Lloh3:
	adrp	x8, _NUM_UCLK_DPM_LEVELS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_UCLK_DPM_LEVELS@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	sub	x8, x8, #1
	cmp	x2, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_vega10_get_soc_index_for_max_uclk
	mov	x2, x0
Lloh6:
	adrp	x8, _PPSMC_MSG_SetSoftMinSocclkByIndex@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PPSMC_MSG_SetSoftMinSocclkByIndex@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _PPSMC_MSG_SetSoftMinUclkByIndex@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PPSMC_MSG_SetSoftMinUclkByIndex@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smum_send_msg_to_smc_with_parameter
	ldr	x8, [x20, #8]
	str	x8, [x20, #32]
LBB0_9:
	ldr	w8, [x20, #48]
	cbnz	w8, LBB0_12
; %bb.10:
	ldp	x2, x8, [x20, #16]
	cmp	x2, x8
	b.eq	LBB0_12
; %bb.11:
Lloh10:
	adrp	x8, _PPSMC_MSG_SetSoftMinSocclkByIndex@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PPSMC_MSG_SetSoftMinSocclkByIndex@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smum_send_msg_to_smc_with_parameter
	ldr	x8, [x20, #16]
	str	x8, [x20, #24]
LBB0_12:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PPSMC_MSG_SetSoftMinGfxclkByIndex,4,2 ; @PPSMC_MSG_SetSoftMinGfxclkByIndex
	.comm	_NUM_UCLK_DPM_LEVELS,4,2        ; @NUM_UCLK_DPM_LEVELS
	.comm	_PPSMC_MSG_SetSoftMinSocclkByIndex,4,2 ; @PPSMC_MSG_SetSoftMinSocclkByIndex
	.comm	_PPSMC_MSG_SetSoftMinUclkByIndex,4,2 ; @PPSMC_MSG_SetSoftMinUclkByIndex
	.no_dead_strip	_vega10_upload_dpm_bootup_level
.subsections_via_symbols
