	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ironlake_enable_pch_pll
_ironlake_enable_pch_pll:               ## @ironlake_enable_pch_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpl	$5, (%rax)
	setl	%dil
	callq	_BUG_ON
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movl	16(%r15), %edx
	movl	8(%r15), %esi
	movl	12(%r15), %ecx
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%r14, %rdi
	callq	_assert_pch_refclk_enabled
	movl	16(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 16(%r15)
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	cmpl	$0, 12(%r15)
	je	LBB0_4
## %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert_pch_pll_enabled         ## TAILCALL
LBB0_4:
	movl	8(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	8(%r15), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_DPLL_VCO_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$200, %edi
	callq	_udelay
	movl	$1, 12(%r15)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enable PCH PLL %x (active %d, on? %d)for crtc %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"enabling PCH PLL %x\n"

	.comm	_DPLL_VCO_ENABLE,4,2            ## @DPLL_VCO_ENABLE
	.no_dead_strip	_ironlake_enable_pch_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ironlake_enable_pch_pll
_ironlake_enable_pch_pll:               ; @ironlake_enable_pch_pll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #5
	cset	w0, lt
	bl	_BUG_ON
	ldr	x19, [x21, #16]
	cbz	x19, LBB0_6
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_6
; %bb.2:
	ldp	w9, w8, [x19, #12]
	ldr	w1, [x19, #8]
	ldr	w10, [x21]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x20
	bl	_assert_pch_refclk_enabled
	ldr	w8, [x19, #16]
	add	w9, w8, #1
	str	w9, [x19, #16]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	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
	add	sp, sp, #80
	b	_assert_pch_pll_enabled
LBB0_5:
	ldr	w1, [x19, #8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w20, [x19, #8]
	mov	x0, x20
	bl	_I915_READ
Lloh4:
	adrp	x8, _DPLL_VCO_ENABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DPLL_VCO_ENABLE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x20
	bl	_POSTING_READ
	mov	w0, #200
	bl	_udelay
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enable PCH PLL %x (active %d, on? %d)for crtc %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"enabling PCH PLL %x\n"

	.comm	_DPLL_VCO_ENABLE,4,2            ; @DPLL_VCO_ENABLE
	.no_dead_strip	_ironlake_enable_pch_pll
.subsections_via_symbols
