	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function assert_pch_refclk_enabled
_assert_pch_refclk_enabled:             ## @assert_pch_refclk_enabled
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %edi
	callq	_HAS_PCH_LPT
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_DRM_DEBUG_DRIVER               ## TAILCALL
LBB0_2:
	movq	_PCH_DREF_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	_DREF_SSC_SOURCE_MASK@GOTPCREL(%rip), %rcx
	movq	_DREF_NONSPREAD_SOURCE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_DREF_SUPERSPREAD_SOURCE_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	xorl	%edi, %edi
	testl	%eax, %edx
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LPT does not has PCH refclk, skipping check\n"

	.comm	_PCH_DREF_CONTROL,4,2           ## @PCH_DREF_CONTROL
	.comm	_DREF_SSC_SOURCE_MASK,4,2       ## @DREF_SSC_SOURCE_MASK
	.comm	_DREF_NONSPREAD_SOURCE_MASK,4,2 ## @DREF_NONSPREAD_SOURCE_MASK
	.comm	_DREF_SUPERSPREAD_SOURCE_MASK,4,2 ## @DREF_SUPERSPREAD_SOURCE_MASK
L_.str.1:                               ## @.str.1
	.asciz	"PCH refclk assertion failure, should be active but is disabled\n"

	.no_dead_strip	_assert_pch_refclk_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function assert_pch_refclk_enabled
_assert_pch_refclk_enabled:             ; @assert_pch_refclk_enabled
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w0, [x0]
	bl	_HAS_PCH_LPT
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_DRM_DEBUG_DRIVER
LBB0_2:
Lloh2:
	adrp	x8, _PCH_DREF_CONTROL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCH_DREF_CONTROL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh5:
	adrp	x8, _DREF_SSC_SOURCE_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DREF_SSC_SOURCE_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _DREF_NONSPREAD_SOURCE_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DREF_NONSPREAD_SOURCE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _DREF_SUPERSPREAD_SOURCE_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DREF_SUPERSPREAD_SOURCE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w0
	cset	w0, eq
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_WARN
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LPT does not has PCH refclk, skipping check\n"

	.comm	_PCH_DREF_CONTROL,4,2           ; @PCH_DREF_CONTROL
	.comm	_DREF_SSC_SOURCE_MASK,4,2       ; @DREF_SSC_SOURCE_MASK
	.comm	_DREF_NONSPREAD_SOURCE_MASK,4,2 ; @DREF_NONSPREAD_SOURCE_MASK
	.comm	_DREF_SUPERSPREAD_SOURCE_MASK,4,2 ; @DREF_SUPERSPREAD_SOURCE_MASK
l_.str.1:                               ; @.str.1
	.asciz	"PCH refclk assertion failure, should be active but is disabled\n"

	.no_dead_strip	_assert_pch_refclk_enabled
.subsections_via_symbols
