	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_increase_pllclock
_intel_increase_pllclock:               ## @intel_increase_pllclock
	.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	(%rdi), %rbx
	movq	(%rbx), %r12
	callq	_to_intel_crtc
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_DPLL
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.2:
	movl	%r15d, %edi
	callq	_I915_READ
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_HAS_PIPE_CXSR
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_DISPLAY_RATE_SELECT_FPA1@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_assert_panel_unlocked
	movq	_DISPLAY_RATE_SELECT_FPA1@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, %r13d
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_I915_WRITE
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_intel_wait_for_vblank
	movl	%r15d, %edi
	callq	_I915_READ
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_DRIVER               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DISPLAY_RATE_SELECT_FPA1,4,2   ## @DISPLAY_RATE_SELECT_FPA1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"upclocking LVDS\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to upclock LVDS!\n"

	.no_dead_strip	_intel_increase_pllclock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_increase_pllclock
_intel_increase_pllclock:               ; @intel_increase_pllclock
	.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
	ldr	x19, [x0]
	ldr	x22, [x19]
	bl	_to_intel_crtc
	ldr	w20, [x0]
	mov	x0, x20
	bl	_DPLL
	mov	x21, x0
	mov	x0, x19
	bl	_HAS_PCH_SPLIT
	cbz	x0, LBB0_2
LBB0_1:
	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
	ret
LBB0_2:
	ldr	w8, [x22]
	cbz	w8, LBB0_1
; %bb.3:
	mov	x0, x21
	bl	_I915_READ
	mov	x23, x0
	mov	x0, x19
	bl	_HAS_PIPE_CXSR
	cbnz	w0, LBB0_1
; %bb.4:
Lloh0:
	adrp	x24, _DISPLAY_RATE_SELECT_FPA1@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DISPLAY_RATE_SELECT_FPA1@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w23
	b.eq	LBB0_1
; %bb.5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	mov	x0, x22
	mov	x1, x20
	bl	_assert_panel_unlocked
	ldr	w8, [x24]
	bic	w1, w23, w8
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x19
	mov	x1, x20
	bl	_intel_wait_for_vblank
	mov	x0, x21
	bl	_I915_READ
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_1
; %bb.6:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	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	_DRM_DEBUG_DRIVER
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DISPLAY_RATE_SELECT_FPA1,4,2   ; @DISPLAY_RATE_SELECT_FPA1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"upclocking LVDS\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to upclock LVDS!\n"

	.no_dead_strip	_intel_increase_pllclock
.subsections_via_symbols
