	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_ddi_pll_enable
_skl_ddi_pll_enable:                    ## @skl_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	%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	%rsi, %r13
	movq	%rdi, %r14
	movq	_skl_dpll_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	8(%rsi), %rax
	movl	(%rax), %r15d
	callq	_skl_ddi_pll_write_ctrl1
	leaq	(%r15,%r15,2), %rbx
	movl	8(%r12,%rbx,4), %edi
	movl	(%r13), %esi
	callq	_I915_WRITE
	movl	4(%r12,%rbx,4), %edi
	movl	4(%r13), %esi
	callq	_I915_WRITE
	movl	8(%r12,%rbx,4), %edi
	callq	_POSTING_READ
	movl	4(%r12,%rbx,4), %edi
	callq	_POSTING_READ
	movl	(%r12,%rbx,4), %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
	movq	_DPLL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_DPLL_LOCK
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$5, %ecx
	callq	_intel_de_wait_for_set
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_skl_dpll_regs,8,3              ## @skl_dpll_regs
	.comm	_LCPLL_PLL_ENABLE,4,2           ## @LCPLL_PLL_ENABLE
	.comm	_DPLL_STATUS,4,2                ## @DPLL_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPLL %d not locked\n"

	.no_dead_strip	_skl_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 skl_ddi_pll_enable
_skl_ddi_pll_enable:                    ; @skl_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
Lloh0:
	adrp	x8, _skl_dpll_regs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _skl_dpll_regs@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	x8, [x1, #8]
	ldr	w19, [x8]
	bl	_skl_ddi_pll_write_ctrl1
	mov	w8, #12
	madd	x22, x19, x8, x22
	ldr	w0, [x22, #8]
	ldr	w1, [x21]
	bl	_I915_WRITE
	ldr	w0, [x22, #4]
	ldr	w1, [x21, #4]
	bl	_I915_WRITE
	ldr	w0, [x22, #8]
	bl	_POSTING_READ
	ldr	w0, [x22, #4]
	bl	_POSTING_READ
	ldr	w21, [x22]
	mov	x0, x21
	bl	_I915_READ
Lloh3:
	adrp	x8, _LCPLL_PLL_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LCPLL_PLL_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x21
	bl	_I915_WRITE
Lloh6:
	adrp	x8, _DPLL_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DPLL_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_DPLL_LOCK
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	mov	w3, #5
	bl	_intel_de_wait_for_set
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@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_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
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_skl_dpll_regs,8,3              ; @skl_dpll_regs
	.comm	_LCPLL_PLL_ENABLE,4,2           ; @LCPLL_PLL_ENABLE
	.comm	_DPLL_STATUS,4,2                ; @DPLL_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPLL %d not locked\n"

	.no_dead_strip	_skl_ddi_pll_enable
.subsections_via_symbols
