	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibx_assert_pch_refclk_enabled
_ibx_assert_pch_refclk_enabled:         ## @ibx_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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_HAS_PCH_IBX
	xorl	%edi, %edi
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_HAS_PCH_CPT
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
LBB0_2:
	callq	_I915_STATE_WARN_ON
	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(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_I915_STATE_WARN                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCH refclk assertion failure, should be active but is disabled\n"

	.no_dead_strip	_ibx_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 ibx_assert_pch_refclk_enabled
_ibx_assert_pch_refclk_enabled:         ; @ibx_assert_pch_refclk_enabled
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_HAS_PCH_IBX
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_HAS_PCH_CPT
	cmp	x0, #0
	cset	w0, eq
LBB0_3:
	bl	_I915_STATE_WARN_ON
Lloh0:
	adrp	x8, _PCH_DREF_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCH_DREF_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh3:
	adrp	x8, _DREF_SSC_SOURCE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DREF_SSC_SOURCE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DREF_NONSPREAD_SOURCE_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DREF_NONSPREAD_SOURCE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _DREF_SUPERSPREAD_SOURCE_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DREF_SUPERSPREAD_SOURCE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w0
	cset	w0, eq
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_STATE_WARN
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCH refclk assertion failure, should be active but is disabled\n"

	.no_dead_strip	_ibx_assert_pch_refclk_enabled
.subsections_via_symbols
