	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function navi10_display_disable_memory_clock_switch
_navi10_display_disable_memory_clock_switch: ## @navi10_display_disable_memory_clock_switch
	.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
	xorl	%eax, %eax
	cmpl	%esi, (%rdi)
	je	LBB0_6
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_SMU_UCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.3:
	movq	8(%rbx), %rax
	jmp	LBB0_4
LBB0_2:
	leaq	4(%rbx), %rax
LBB0_4:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_smu_set_hard_freq_range
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	%r14d, (%rbx)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU_UCLK,4,2                   ## @SMU_UCLK
	.no_dead_strip	_navi10_display_disable_memory_clock_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function navi10_display_disable_memory_clock_switch
_navi10_display_disable_memory_clock_switch: ; @navi10_display_disable_memory_clock_switch
	.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
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	add	x9, x0, #4
Lloh0:
	adrp	x10, _SMU_UCLK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SMU_UCLK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x10]
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	mov	w3, #0
	bl	_smu_set_hard_freq_range
	cbnz	w0, LBB0_4
; %bb.3:
	str	w19, [x20]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU_UCLK,4,2                   ; @SMU_UCLK
	.no_dead_strip	_navi10_display_disable_memory_clock_switch
.subsections_via_symbols
