	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_dpll0_enable
_skl_dpll0_enable:                      ## @skl_dpll0_enable
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	cmpl	$8100000, %esi                  ## imm = 0x7B98A0
	setne	%al
	cmpl	$8640000, %esi                  ## imm = 0x83D600
	setne	%cl
	jne	LBB0_1
## %bb.2:
	movq	_DPLL_CTRL1_LINK_RATE_1080@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_DPLL_CTRL1_LINK_RATE_810@GOTPCREL(%rip), %rdx
LBB0_3:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_WARN_ON
	movq	_DPLL_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r12d
	movq	_SKL_DPLL0@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_DPLL_CTRL1_HDMI_MODE
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_DPLL_CTRL1_SSC
	movl	(%r13), %edi
	orl	%eax, %ebx
	callq	_DPLL_CTRL1_LINK_RATE_MASK
	orl	%eax, %ebx
	notl	%ebx
	movl	(%r13), %edi
	andl	%r12d, %ebx
	callq	_DPLL_CTRL1_OVERRIDE
	orl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_DPLL_CTRL1_LINK_RATE
	orl	%eax, %ebx
	movq	_DPLL_CTRL1@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r12), %edi
	callq	_POSTING_READ
	movq	_LCPLL1_CTL@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_LCPLL_PLL_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movl	(%r12), %esi
	movq	_LCPLL_PLL_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$5, %ecx
	callq	_intel_de_wait_for_set
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_5:
	movl	%r15d, (%r14)
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_skl_set_preferred_cdclk_vco    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DPLL_CTRL1,4,2                 ## @DPLL_CTRL1
	.comm	_SKL_DPLL0,4,2                  ## @SKL_DPLL0
	.comm	_DPLL_CTRL1_LINK_RATE_1080,4,2  ## @DPLL_CTRL1_LINK_RATE_1080
	.comm	_DPLL_CTRL1_LINK_RATE_810,4,2   ## @DPLL_CTRL1_LINK_RATE_810
	.comm	_LCPLL1_CTL,4,2                 ## @LCPLL1_CTL
	.comm	_LCPLL_PLL_ENABLE,4,2           ## @LCPLL_PLL_ENABLE
	.comm	_LCPLL_PLL_LOCK,4,2             ## @LCPLL_PLL_LOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPLL0 not locked\n"

	.no_dead_strip	_skl_dpll0_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_dpll0_enable
_skl_dpll0_enable:                      ; @skl_dpll0_enable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	sub	w8, w1, #1977, lsl #12          ; =8097792
	cmp	w8, #2208
	cset	w8, ne
	sub	w9, w1, #2109, lsl #12          ; =8638464
	cmp	w9, #1536
	cset	w9, ne
	and	w0, w8, w9
Lloh0:
	adrp	x8, _DPLL_CTRL1_LINK_RATE_1080@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPLL_CTRL1_LINK_RATE_1080@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DPLL_CTRL1_LINK_RATE_810@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DPLL_CTRL1_LINK_RATE_810@GOTPAGEOFF]
	csel	x23, x8, x9, eq
	bl	_WARN_ON
Lloh4:
	adrp	x24, _DPLL_CTRL1@GOTPAGE
Lloh5:
	ldr	x24, [x24, _DPLL_CTRL1@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_I915_READ
	mov	x21, x0
Lloh6:
	adrp	x25, _SKL_DPLL0@GOTPAGE
Lloh7:
	ldr	x25, [x25, _SKL_DPLL0@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_DPLL_CTRL1_HDMI_MODE
	mov	x22, x0
	ldr	w0, [x25]
	bl	_DPLL_CTRL1_SSC
	orr	w22, w0, w22
	ldr	w0, [x25]
	bl	_DPLL_CTRL1_LINK_RATE_MASK
	orr	w8, w22, w0
	bic	w21, w21, w8
	ldr	w0, [x25]
	bl	_DPLL_CTRL1_OVERRIDE
	orr	w21, w21, w0
	ldr	w0, [x23]
	ldr	w1, [x25]
	bl	_DPLL_CTRL1_LINK_RATE
	orr	w1, w21, w0
	ldr	w0, [x24]
	bl	_I915_WRITE
	ldr	w0, [x24]
	bl	_POSTING_READ
Lloh8:
	adrp	x22, _LCPLL1_CTL@GOTPAGE
Lloh9:
	ldr	x22, [x22, _LCPLL1_CTL@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x0, x21
	bl	_I915_READ
Lloh10:
	adrp	x8, _LCPLL_PLL_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LCPLL_PLL_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x21
	bl	_I915_WRITE
	ldr	w1, [x22]
Lloh13:
	adrp	x8, _LCPLL_PLL_LOCK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LCPLL_PLL_LOCK@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #5
	bl	_intel_de_wait_for_set
	cbz	x0, LBB0_2
; %bb.1:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_2:
	str	w19, [x20]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_skl_set_preferred_cdclk_vco
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DPLL_CTRL1,4,2                 ; @DPLL_CTRL1
	.comm	_SKL_DPLL0,4,2                  ; @SKL_DPLL0
	.comm	_DPLL_CTRL1_LINK_RATE_1080,4,2  ; @DPLL_CTRL1_LINK_RATE_1080
	.comm	_DPLL_CTRL1_LINK_RATE_810,4,2   ; @DPLL_CTRL1_LINK_RATE_810
	.comm	_LCPLL1_CTL,4,2                 ; @LCPLL1_CTL
	.comm	_LCPLL_PLL_ENABLE,4,2           ; @LCPLL_PLL_ENABLE
	.comm	_LCPLL_PLL_LOCK,4,2             ; @LCPLL_PLL_LOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPLL0 not locked\n"

	.no_dead_strip	_skl_dpll0_enable
.subsections_via_symbols
