	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_decrease_pllclock
_intel_decrease_pllclock:               ## @intel_decrease_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	(%rbx), %r14
	callq	_to_intel_crtc
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, (%r14)
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_HAS_PIPE_CXSR
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.4:
	movl	(%r15), %r15d
	movl	%r15d, %edi
	callq	_DPLL
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_assert_panel_unlocked
	movl	%r12d, %edi
	callq	_I915_READ
	movq	_DISPLAY_RATE_SELECT_FPA1@GOTPCREL(%rip), %r14
	orl	(%r14), %eax
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_intel_wait_for_vblank
	movl	%r12d, %edi
	callq	_I915_READ
	testl	%eax, (%r14)
	jne	LBB0_5
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_DRIVER               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"downclocking LVDS\n"

	.comm	_DISPLAY_RATE_SELECT_FPA1,4,2   ## @DISPLAY_RATE_SELECT_FPA1
L_.str.1:                               ## @.str.1
	.asciz	"failed to downclock LVDS!\n"

	.no_dead_strip	_intel_decrease_pllclock
.subsections_via_symbols

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

	.comm	_DISPLAY_RATE_SELECT_FPA1,4,2   ; @DISPLAY_RATE_SELECT_FPA1
l_.str.1:                               ; @.str.1
	.asciz	"failed to downclock LVDS!\n"

	.no_dead_strip	_intel_decrease_pllclock
.subsections_via_symbols
