	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_notify_smc_display_config_after_ps_adjustment
_vega10_notify_smc_display_config_after_ps_adjustment: ## @vega10_notify_smc_display_config_after_ps_adjustment
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	16(%rdi), %r13
	movq	(%rdi), %rcx
	cmpl	$2, (%rcx)
	jl	LBB0_4
## %bb.1:
	cmpl	$0, 28(%rcx)
	jne	LBB0_4
## %bb.2:
	cmpl	$0, 24(%rcx)
	je	LBB0_3
LBB0_4:
	movl	$1, %esi
LBB0_5:
	movq	(%rax), %r14
	movq	%r12, %rdi
	callq	_vega10_notify_smc_display_change
	movq	(%r12), %rdx
	movq	16(%rdx), %r15
	movq	8(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.6:
	movl	4(%rdx), %eax
	movl	8(%rdx), %ebx
	movq	16(%r13), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rdx,%rsi,4)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_7
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	testq	%r15, %r15
	jne	LBB0_14
	jmp	LBB0_15
LBB0_10:
	movq	_amd_pp_dcef_clock@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_vega10_display_clock_voltage_request
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	testq	%r15, %r15
	je	LBB0_15
LBB0_14:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_vega10_get_uclk_index
	movq	%rax, %rbx
	movq	_PPSMC_MSG_SetSoftMinUclkByIndex@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_smum_send_msg_to_smc_with_parameter
	movq	%rbx, (%r13)
LBB0_15:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_PPSMC_MSG_SetMinDeepSleepDcefclk@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	%ebx, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movslq	%eax, %rdx
	movq	%r12, %rdi
	callq	_smum_send_msg_to_smc_with_parameter
	testq	%r15, %r15
	jne	LBB0_14
	jmp	LBB0_15
LBB0_3:
	xorl	%esi, %esi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_amd_pp_dcef_clock,4,2          ## @amd_pp_dcef_clock
	.comm	_PPSMC_MSG_SetMinDeepSleepDcefclk,4,2 ## @PPSMC_MSG_SetMinDeepSleepDcefclk
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempt to set Hard Min for DCEFCLK Failed!"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot find requested DCEFCLK!"

	.comm	_PPSMC_MSG_SetSoftMinUclkByIndex,4,2 ## @PPSMC_MSG_SetSoftMinUclkByIndex
	.no_dead_strip	_vega10_notify_smc_display_config_after_ps_adjustment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega10_notify_smc_display_config_after_ps_adjustment
_vega10_notify_smc_display_config_after_ps_adjustment: ; @vega10_notify_smc_display_config_after_ps_adjustment
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldp	x8, x22, [x0, #8]
	ldr	x9, [x0]
	ldr	w10, [x9]
	cmp	w10, #2
	b.lt	LBB0_3
; %bb.1:
	ldr	w10, [x9, #28]
	cbnz	w10, LBB0_3
; %bb.2:
	ldr	w9, [x9, #24]
	cbz	w9, LBB0_14
LBB0_3:
	mov	w1, #1
LBB0_4:
	ldr	x20, [x8]
	mov	x0, x19
	bl	_vega10_notify_smc_display_change
	ldr	x10, [x19]
	ldr	x21, [x10, #16]
	ldr	x9, [x22, #8]
	cbz	x9, LBB0_8
; %bb.5:
	ldp	w8, w23, [x10, #4]
	ldr	x10, [x22, #16]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cmp	w11, w8
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x10, #4
	subs	x9, x9, #1
	b.ne	LBB0_6
LBB0_8:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	cbnz	x21, LBB0_11
	b	LBB0_12
LBB0_9:
Lloh2:
	adrp	x9, _amd_pp_dcef_clock@GOTPAGE
Lloh3:
	ldr	x9, [x9, _amd_pp_dcef_clock@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #1
	stp	w8, w9, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_vega10_display_clock_voltage_request
	cbz	w0, LBB0_13
; %bb.10:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	cbz	x21, LBB0_12
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_vega10_get_uclk_index
	mov	x20, x0
Lloh7:
	adrp	x8, _PPSMC_MSG_SetSoftMinUclkByIndex@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PPSMC_MSG_SetSoftMinUclkByIndex@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_smum_send_msg_to_smc_with_parameter
	str	x20, [x22]
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
Lloh10:
	adrp	x8, _PPSMC_MSG_SetMinDeepSleepDcefclk@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PPSMC_MSG_SetMinDeepSleepDcefclk@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w23, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	sxtw	x2, w8
	mov	x0, x19
	bl	_smum_send_msg_to_smc_with_parameter
	cbnz	x21, LBB0_11
	b	LBB0_12
LBB0_14:
	mov	w1, #0
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_amd_pp_dcef_clock,4,2          ; @amd_pp_dcef_clock
	.comm	_PPSMC_MSG_SetMinDeepSleepDcefclk,4,2 ; @PPSMC_MSG_SetMinDeepSleepDcefclk
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempt to set Hard Min for DCEFCLK Failed!"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot find requested DCEFCLK!"

	.comm	_PPSMC_MSG_SetSoftMinUclkByIndex,4,2 ; @PPSMC_MSG_SetSoftMinUclkByIndex
	.no_dead_strip	_vega10_notify_smc_display_config_after_ps_adjustment
.subsections_via_symbols
