	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cannonlake_get_ddi_pll
_cannonlake_get_ddi_pll:                ## @cannonlake_get_ddi_pll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_DPCLKA_CFGCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r13d
	movl	%r12d, %edi
	callq	_DPCLKA_CFGCR0_DDI_CLK_SEL_MASK
	movl	%eax, %ebx
	andl	%r13d, %ebx
	movl	%r12d, %edi
	callq	_DPCLKA_CFGCR0_DDI_CLK_SEL_SHIFT
	movl	%eax, %ecx
	sarl	%cl, %ebx
	movq	_SKL_DPLL0@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	setb	%al
	movq	_SKL_DPLL2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	seta	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_intel_get_shared_dpll_by_id
	movl	%eax, (%r14)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPCLKA_CFGCR0,4,2              ## @DPCLKA_CFGCR0
	.comm	_SKL_DPLL0,4,2                  ## @SKL_DPLL0
	.comm	_SKL_DPLL2,4,2                  ## @SKL_DPLL2
	.no_dead_strip	_cannonlake_get_ddi_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cannonlake_get_ddi_pll
_cannonlake_get_ddi_pll:                ; @cannonlake_get_ddi_pll
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _DPCLKA_CFGCR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPCLKA_CFGCR0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x22, x0
	mov	x0, x21
	bl	_DPCLKA_CFGCR0_DDI_CLK_SEL_MASK
	and	w22, w0, w22
	mov	x0, x21
	bl	_DPCLKA_CFGCR0_DDI_CLK_SEL_SHIFT
	asr	w21, w22, w0
Lloh3:
	adrp	x8, _SKL_DPLL0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SKL_DPLL0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w21, w8
Lloh6:
	adrp	x8, _SKL_DPLL2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SKL_DPLL2@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ccmp	w21, w8, #2, hs
	cset	w0, hi
	bl	_WARN_ON
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_intel_get_shared_dpll_by_id
	str	w0, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DPCLKA_CFGCR0,4,2              ; @DPCLKA_CFGCR0
	.comm	_SKL_DPLL0,4,2                  ; @SKL_DPLL0
	.comm	_SKL_DPLL2,4,2                  ; @SKL_DPLL2
	.no_dead_strip	_cannonlake_get_ddi_pll
.subsections_via_symbols
