	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ddi_pll_init             ## -- Begin function intel_ddi_pll_init
	.p2align	4, 0x90
_intel_ddi_pll_init:                    ## @intel_ddi_pll_init
	.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	_LCPLL_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_intel_ddi_get_cdclk_freq
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	movq	_LCPLL_CD_SOURCE_FCLK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
LBB0_2:
	movq	_LCPLL_PLL_DISABLE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LCPLL_CTL,4,2                  ## @LCPLL_CTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CDCLK running at %dMHz\n"

	.comm	_LCPLL_CD_SOURCE_FCLK,4,2       ## @LCPLL_CD_SOURCE_FCLK
L_.str.1:                               ## @.str.1
	.asciz	"CDCLK source is not LCPLL\n"

	.comm	_LCPLL_PLL_DISABLE,4,2          ## @LCPLL_PLL_DISABLE
L_.str.2:                               ## @.str.2
	.asciz	"LCPLL is disabled\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ddi_pll_init             ; -- Begin function intel_ddi_pll_init
	.p2align	2
_intel_ddi_pll_init:                    ; @intel_ddi_pll_init
	.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	x20, [x0]
Lloh0:
	adrp	x8, _LCPLL_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LCPLL_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x19, x0
	mov	x0, x20
	bl	_intel_ddi_get_cdclk_freq
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh5:
	adrp	x8, _LCPLL_CD_SOURCE_FCLK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LCPLL_CD_SOURCE_FCLK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_2:
Lloh10:
	adrp	x8, _LCPLL_PLL_DISABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LCPLL_PLL_DISABLE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_ERROR
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LCPLL_CTL,4,2                  ; @LCPLL_CTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CDCLK running at %dMHz\n"

	.comm	_LCPLL_CD_SOURCE_FCLK,4,2       ; @LCPLL_CD_SOURCE_FCLK
l_.str.1:                               ; @.str.1
	.asciz	"CDCLK source is not LCPLL\n"

	.comm	_LCPLL_PLL_DISABLE,4,2          ; @LCPLL_PLL_DISABLE
l_.str.2:                               ; @.str.2
	.asciz	"LCPLL is disabled\n"

.subsections_via_symbols
