	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ddi_get_cdclk_freq       ## -- Begin function intel_ddi_get_cdclk_freq
	.p2align	4, 0x90
_intel_ddi_get_cdclk_freq:              ## @intel_ddi_get_cdclk_freq
	.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	_HSW_FUSE_STRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	_HSW_CDCLK_LIMIT@GOTPCREL(%rip), %rcx
	movl	$450, %ebx                      ## imm = 0x1C2
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.1:
	movq	_LCPLL_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	_LCPLL_CLK_FREQ_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_LCPLL_CLK_FREQ_450@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	callq	_IS_ULT
	testq	%rax, %rax
	movl	$540, %eax                      ## imm = 0x21C
	movl	$338, %ebx                      ## imm = 0x152
	cmovel	%eax, %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HSW_FUSE_STRAP,4,2             ## @HSW_FUSE_STRAP
	.comm	_HSW_CDCLK_LIMIT,4,2            ## @HSW_CDCLK_LIMIT
	.comm	_LCPLL_CTL,4,2                  ## @LCPLL_CTL
	.comm	_LCPLL_CLK_FREQ_MASK,4,2        ## @LCPLL_CLK_FREQ_MASK
	.comm	_LCPLL_CLK_FREQ_450,4,2         ## @LCPLL_CLK_FREQ_450
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ddi_get_cdclk_freq       ; -- Begin function intel_ddi_get_cdclk_freq
	.p2align	2
_intel_ddi_get_cdclk_freq:              ; @intel_ddi_get_cdclk_freq
	.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
Lloh0:
	adrp	x8, _HSW_FUSE_STRAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HSW_FUSE_STRAP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh3:
	adrp	x8, _HSW_CDCLK_LIMIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HSW_CDCLK_LIMIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _LCPLL_CTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LCPLL_CTL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh9:
	adrp	x8, _LCPLL_CLK_FREQ_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LCPLL_CLK_FREQ_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh12:
	adrp	x9, _LCPLL_CLK_FREQ_450@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LCPLL_CLK_FREQ_450@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #450
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19]
	bl	_IS_ULT
	cmp	x0, #0
	mov	w8, #338
	mov	w9, #540
	csel	w0, w9, w8, eq
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HSW_FUSE_STRAP,4,2             ; @HSW_FUSE_STRAP
	.comm	_HSW_CDCLK_LIMIT,4,2            ; @HSW_CDCLK_LIMIT
	.comm	_LCPLL_CTL,4,2                  ; @LCPLL_CTL
	.comm	_LCPLL_CLK_FREQ_MASK,4,2        ; @LCPLL_CLK_FREQ_MASK
	.comm	_LCPLL_CLK_FREQ_450,4,2         ; @LCPLL_CLK_FREQ_450
.subsections_via_symbols
