	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnl_ddi_pll_enable
_cnl_ddi_pll_enable:                    ## @cnl_ddi_pll_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_CNL_DPLL_ENABLE
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_PLL_POWER_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_CNL_DPLL_ENABLE
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r12d, %edi
	callq	_CNL_DPLL_ENABLE
	movq	_PLL_POWER_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$5, %ecx
	callq	_intel_de_wait_for_set
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_DRM_ERROR
LBB0_2:
	movl	(%r15), %ebx
	movl	%r12d, %edi
	callq	_CNL_DPLL_CFGCR0
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r12d, %edi
	callq	_CNL_DPLL_CFGCR0
	movl	%eax, %edi
	callq	_POSTING_READ
	movq	_DPLL_CFGCR0_HDMI_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.3:
	movl	4(%r15), %ebx
	movl	%r12d, %edi
	callq	_CNL_DPLL_CFGCR1
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r12d, %edi
	callq	_CNL_DPLL_CFGCR1
	movl	%eax, %edi
	callq	_POSTING_READ
LBB0_4:
	movl	%r12d, %edi
	callq	_CNL_DPLL_ENABLE
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_PLL_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_CNL_DPLL_ENABLE
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r12d, %edi
	callq	_CNL_DPLL_ENABLE
	movq	_PLL_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$5, %ecx
	callq	_intel_de_wait_for_set
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLL_POWER_ENABLE,4,2           ## @PLL_POWER_ENABLE
	.comm	_PLL_POWER_STATE,4,2            ## @PLL_POWER_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PLL %d Power not enabled\n"

	.comm	_DPLL_CFGCR0_HDMI_MODE,4,2      ## @DPLL_CFGCR0_HDMI_MODE
	.comm	_PLL_ENABLE,4,2                 ## @PLL_ENABLE
	.comm	_PLL_LOCK,4,2                   ## @PLL_LOCK
L_.str.1:                               ## @.str.1
	.asciz	"PLL %d not locked\n"

	.no_dead_strip	_cnl_ddi_pll_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnl_ddi_pll_enable
_cnl_ddi_pll_enable:                    ; @cnl_ddi_pll_enable
	.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	x21, x1
	mov	x20, x0
	ldr	x8, [x1, #8]
	ldr	w19, [x8]
	mov	x0, x19
	bl	_CNL_DPLL_ENABLE
	bl	_I915_READ
Lloh0:
	adrp	x8, _PLL_POWER_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLL_POWER_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w22, w8, w0
	mov	x0, x19
	bl	_CNL_DPLL_ENABLE
	mov	x1, x22
	bl	_I915_WRITE
	mov	x0, x19
	bl	_CNL_DPLL_ENABLE
	mov	x1, x0
Lloh3:
	adrp	x8, _PLL_POWER_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLL_POWER_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #5
	bl	_intel_de_wait_for_set
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_ERROR
LBB0_2:
	ldr	w22, [x21]
	mov	x0, x19
	bl	_CNL_DPLL_CFGCR0
	mov	x1, x22
	bl	_I915_WRITE
	mov	x0, x19
	bl	_CNL_DPLL_CFGCR0
	bl	_POSTING_READ
	ldr	w8, [x21]
Lloh8:
	adrp	x9, _DPLL_CFGCR0_HDMI_MODE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DPLL_CFGCR0_HDMI_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w21, [x21, #4]
	mov	x0, x19
	bl	_CNL_DPLL_CFGCR1
	mov	x1, x21
	bl	_I915_WRITE
	mov	x0, x19
	bl	_CNL_DPLL_CFGCR1
	bl	_POSTING_READ
LBB0_4:
	mov	x0, x19
	bl	_CNL_DPLL_ENABLE
	bl	_I915_READ
Lloh11:
	adrp	x8, _PLL_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PLL_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w21, w8, w0
	mov	x0, x19
	bl	_CNL_DPLL_ENABLE
	mov	x1, x21
	bl	_I915_WRITE
	mov	x0, x19
	bl	_CNL_DPLL_ENABLE
	mov	x1, x0
Lloh14:
	adrp	x8, _PLL_LOCK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PLL_LOCK@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #5
	bl	_intel_de_wait_for_set
	cbz	x0, LBB0_6
; %bb.5:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	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
	b	_DRM_ERROR
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PLL_POWER_ENABLE,4,2           ; @PLL_POWER_ENABLE
	.comm	_PLL_POWER_STATE,4,2            ; @PLL_POWER_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PLL %d Power not enabled\n"

	.comm	_DPLL_CFGCR0_HDMI_MODE,4,2      ; @DPLL_CFGCR0_HDMI_MODE
	.comm	_PLL_ENABLE,4,2                 ; @PLL_ENABLE
	.comm	_PLL_LOCK,4,2                   ; @PLL_LOCK
l_.str.1:                               ; @.str.1
	.asciz	"PLL %d not locked\n"

	.no_dead_strip	_cnl_ddi_pll_enable
.subsections_via_symbols
