	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function navi10_pre_display_config_changed
_navi10_pre_display_config_changed:     ## @navi10_pre_display_config_changed
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$0, -20(%rbp)
	movq	_SMU_MSG_NumOfDisplays@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_smu_send_smc_msg_with_param
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_SMU_FEATURE_DPM_UCLK_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smu_feature_is_enabled
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_SMU_UCLK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_smu_get_dpm_freq_range
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	(%r14), %esi
	movl	-20(%rbp), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_smu_set_hard_freq_range
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU_MSG_NumOfDisplays,4,2      ## @SMU_MSG_NumOfDisplays
	.comm	_SMU_FEATURE_DPM_UCLK_BIT,4,2   ## @SMU_FEATURE_DPM_UCLK_BIT
	.comm	_SMU_UCLK,4,2                   ## @SMU_UCLK
	.no_dead_strip	_navi10_pre_display_config_changed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function navi10_pre_display_config_changed
_navi10_pre_display_config_changed:     ; @navi10_pre_display_config_changed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _SMU_MSG_NumOfDisplays@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU_MSG_NumOfDisplays@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_smu_send_smc_msg_with_param
	cbnz	w0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _SMU_FEATURE_DPM_UCLK_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMU_FEATURE_DPM_UCLK_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smu_feature_is_enabled
	cbz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x20, _SMU_UCLK@GOTPAGE
Lloh7:
	ldr	x20, [x20, _SMU_UCLK@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x3, sp, #12
	mov	x0, x19
	mov	x2, #0
	bl	_smu_get_dpm_freq_range
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w1, [x20]
	ldr	w3, [sp, #12]
	mov	x0, x19
	mov	w2, #0
	bl	_smu_set_hard_freq_range
	cbnz	w0, LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU_MSG_NumOfDisplays,4,2      ; @SMU_MSG_NumOfDisplays
	.comm	_SMU_FEATURE_DPM_UCLK_BIT,4,2   ; @SMU_FEATURE_DPM_UCLK_BIT
	.comm	_SMU_UCLK,4,2                   ; @SMU_UCLK
	.no_dead_strip	_navi10_pre_display_config_changed
.subsections_via_symbols
