	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsw_assert_cdclk
_hsw_assert_cdclk:                      ## @hsw_assert_cdclk
	.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	_LCPLL_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_LCPLL_CD_SOURCE_FCLK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_2:
	movq	_LCPLL_PLL_DISABLE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
LBB0_4:
	movq	_LCPLL_REF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movq	_LCPLL_REF_NON_SSC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LCPLL_CTL,4,2                  ## @LCPLL_CTL
	.comm	_LCPLL_CD_SOURCE_FCLK,4,2       ## @LCPLL_CD_SOURCE_FCLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CDCLK source is not LCPLL\n"

	.comm	_LCPLL_PLL_DISABLE,4,2          ## @LCPLL_PLL_DISABLE
L_.str.1:                               ## @.str.1
	.asciz	"LCPLL is disabled\n"

	.comm	_LCPLL_REF_MASK,4,2             ## @LCPLL_REF_MASK
	.comm	_LCPLL_REF_NON_SSC,4,2          ## @LCPLL_REF_NON_SSC
L_.str.2:                               ## @.str.2
	.asciz	"LCPLL not using non-SSC reference\n"

	.no_dead_strip	_hsw_assert_cdclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsw_assert_cdclk
_hsw_assert_cdclk:                      ; @hsw_assert_cdclk
	.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
Lloh0:
	adrp	x8, _LCPLL_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LCPLL_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x19, x0
Lloh3:
	adrp	x8, _LCPLL_CD_SOURCE_FCLK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LCPLL_CD_SOURCE_FCLK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_2:
Lloh8:
	adrp	x8, _LCPLL_PLL_DISABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LCPLL_PLL_DISABLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_4:
Lloh13:
	adrp	x8, _LCPLL_REF_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LCPLL_REF_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	and	w8, w8, w19
Lloh16:
	adrp	x9, _LCPLL_REF_NON_SSC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _LCPLL_REF_NON_SSC@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_ERROR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_LCPLL_CTL,4,2                  ; @LCPLL_CTL
	.comm	_LCPLL_CD_SOURCE_FCLK,4,2       ; @LCPLL_CD_SOURCE_FCLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CDCLK source is not LCPLL\n"

	.comm	_LCPLL_PLL_DISABLE,4,2          ; @LCPLL_PLL_DISABLE
l_.str.1:                               ; @.str.1
	.asciz	"LCPLL is disabled\n"

	.comm	_LCPLL_REF_MASK,4,2             ; @LCPLL_REF_MASK
	.comm	_LCPLL_REF_NON_SSC,4,2          ; @LCPLL_REF_NON_SSC
l_.str.2:                               ; @.str.2
	.asciz	"LCPLL not using non-SSC reference\n"

	.no_dead_strip	_hsw_assert_cdclk
.subsections_via_symbols
