	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_get_dp_ref_freq_khz
_dce_get_dp_ref_freq_khz:               ## @dce_get_dp_ref_freq_khz
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_TO_DCE_CLK_MGR
	movq	%rax, %rbx
	movq	_DPREFCLK_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DPREFCLK_SRC_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_REG_GET
	xorl	%edi, %edi
	cmpl	$0, -12(%rbp)
	sete	%dil
	callq	_ASSERT
	movq	_DENTIST_DISPCLK_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DENTIST_DPREFCLK_WDIVIDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	callq	_REG_GET
	movl	-16(%rbp), %edi
	callq	_dentist_get_divider_from_did
	movl	%eax, %ecx
	movq	_DENTIST_DIVIDER_RANGE_SCALE_FACTOR@GOTPCREL(%rip), %rdx
	movl	(%rbx), %eax
	imull	(%rdx), %eax
	cltd
	idivl	%ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_clk_mgr_adjust_dp_ref_freq_for_ss
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPREFCLK_CNTL,4,2              ## @DPREFCLK_CNTL
	.comm	_DPREFCLK_SRC_SEL,4,2           ## @DPREFCLK_SRC_SEL
	.comm	_DENTIST_DISPCLK_CNTL,4,2       ## @DENTIST_DISPCLK_CNTL
	.comm	_DENTIST_DPREFCLK_WDIVIDER,4,2  ## @DENTIST_DPREFCLK_WDIVIDER
	.comm	_DENTIST_DIVIDER_RANGE_SCALE_FACTOR,4,2 ## @DENTIST_DIVIDER_RANGE_SCALE_FACTOR
	.no_dead_strip	_dce_get_dp_ref_freq_khz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_get_dp_ref_freq_khz
_dce_get_dp_ref_freq_khz:               ; @dce_get_dp_ref_freq_khz
	.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
	bl	_TO_DCE_CLK_MGR
	mov	x19, x0
Lloh0:
	adrp	x8, _DPREFCLK_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPREFCLK_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _DPREFCLK_SRC_SEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPREFCLK_SRC_SEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_REG_GET
	ldr	w8, [sp, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_ASSERT
Lloh6:
	adrp	x8, _DENTIST_DISPCLK_CNTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DENTIST_DISPCLK_CNTL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _DENTIST_DPREFCLK_WDIVIDER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DENTIST_DPREFCLK_WDIVIDER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_REG_GET
	ldr	w0, [sp, #12]
	bl	_dentist_get_divider_from_did
Lloh12:
	adrp	x8, _DENTIST_DIVIDER_RANGE_SCALE_FACTOR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DENTIST_DIVIDER_RANGE_SCALE_FACTOR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	mul	w8, w9, w8
	sdiv	w1, w8, w0
	mov	x0, x19
	bl	_clk_mgr_adjust_dp_ref_freq_for_ss
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DPREFCLK_CNTL,4,2              ; @DPREFCLK_CNTL
	.comm	_DPREFCLK_SRC_SEL,4,2           ; @DPREFCLK_SRC_SEL
	.comm	_DENTIST_DISPCLK_CNTL,4,2       ; @DENTIST_DISPCLK_CNTL
	.comm	_DENTIST_DPREFCLK_WDIVIDER,4,2  ; @DENTIST_DPREFCLK_WDIVIDER
	.comm	_DENTIST_DIVIDER_RANGE_SCALE_FACTOR,4,2 ; @DENTIST_DIVIDER_RANGE_SCALE_FACTOR
	.no_dead_strip	_dce_get_dp_ref_freq_khz
.subsections_via_symbols
