	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i9xx_enable_pll
_i9xx_enable_pll:                       ## @i9xx_enable_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	%rsi, %r15
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r13
	movl	(%r12), %edi
	callq	_DPLL
	movl	%eax, %ebx
	movl	(%r15), %r14d
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_assert_pipe_disabled
	movq	%r13, %rdi
	callq	_i9xx_has_pps
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_assert_panel_unlocked
LBB0_2:
	movq	_DPLL_VGA_MODE_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%r14d, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$150, %edi
	callq	_udelay
	movq	%r13, %rdi
	callq	_INTEL_GEN
	cmpl	$4, %eax
	jl	LBB0_4
## %bb.3:
	movl	(%r12), %edi
	callq	_DPLL_MD
	movl	4(%r15), %esi
	movl	%eax, %edi
	jmp	LBB0_5
LBB0_4:
	movl	%ebx, %edi
	movl	%r14d, %esi
LBB0_5:
	callq	_I915_WRITE
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$150, %edi
	callq	_udelay
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$150, %edi
	callq	_udelay
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$150, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DPLL_VGA_MODE_DIS,4,2          ## @DPLL_VGA_MODE_DIS
	.no_dead_strip	_i9xx_enable_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i9xx_enable_pll
_i9xx_enable_pll:                       ; @i9xx_enable_pll
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x23, x0
	ldr	w0, [x22]
	bl	_DPLL
	mov	x19, x0
	ldr	w20, [x21]
	ldr	w1, [x22]
	mov	x0, x23
	bl	_assert_pipe_disabled
	mov	x0, x23
	bl	_i9xx_has_pps
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x23
	bl	_assert_panel_unlocked
LBB0_2:
Lloh0:
	adrp	x8, _DPLL_VGA_MODE_DIS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPLL_VGA_MODE_DIS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w1, w20, w8
	mov	x0, x19
	bl	_I915_WRITE
	mov	x0, x19
	mov	x1, x20
	bl	_I915_WRITE
	mov	x0, x19
	bl	_POSTING_READ
	mov	w0, #150
	bl	_udelay
	mov	x0, x23
	bl	_INTEL_GEN
	cmp	w0, #4
	b.lt	LBB0_4
; %bb.3:
	ldr	w0, [x22]
	bl	_DPLL_MD
	ldr	w1, [x21, #4]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x20
LBB0_5:
	bl	_I915_WRITE
	mov	x0, x19
	mov	x1, x20
	bl	_I915_WRITE
	mov	x0, x19
	bl	_POSTING_READ
	mov	w0, #150
	bl	_udelay
	mov	x0, x19
	mov	x1, x20
	bl	_I915_WRITE
	mov	x0, x19
	bl	_POSTING_READ
	mov	w0, #150
	bl	_udelay
	mov	x0, x19
	mov	x1, x20
	bl	_I915_WRITE
	mov	x0, x19
	bl	_POSTING_READ
	mov	w0, #150
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_udelay
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DPLL_VGA_MODE_DIS,4,2          ; @DPLL_VGA_MODE_DIS
	.no_dead_strip	_i9xx_enable_pll
.subsections_via_symbols
