	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function assert_pch_pll
_assert_pch_pll:                        ## @assert_pch_pll
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_HAS_PCH_LPT
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	leaq	L_.str(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_DRIVER               ## TAILCALL
LBB0_1:
	xorl	%ebx, %ebx
	testq	%r13, %r13
	sete	%bl
	movl	%r15d, %edi
	callq	_state_string
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_WARN
	testl	%eax, %eax
	je	LBB0_2
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r13), %edi
	callq	_I915_READ
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%eax, %r15d
	movq	_DPLL_VCO_ENABLE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	movl	(%rax), %eax
	andl	%r15d, %eax
	setne	%bl
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	cmpl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	setne	%r14b
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_state_string
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_state_string
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %r9d
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_WARN
	testq	%r14, %r14
	je	LBB0_5
## %bb.3:
	movl	(%r12), %edi
	callq	_HAS_PCH_CPT
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_PCH_DPLL_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	(%r13), %ecx
	movq	__PCH_DPLL_B@GOTPCREL(%rip), %r12
	xorl	%edx, %edx
	cmpl	(%r12), %ecx
	sete	%dl
	movl	(%r14), %ecx
	leal	(,%rcx,4), %esi
	btl	%esi, %eax
	setb	%sil
	movl	%edx, %ebx
	xorb	%sil, %bl
	movzbl	%bl, %edi
	leaq	L_.str.3(%rip), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_WARN
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:
	movb	(%r14), %cl
	shlb	$2, %cl
	orb	$3, %cl
	movl	%r15d, %edi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %eax
	sarl	%cl, %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movq	%r12, %rdx
	movq	%r14, %r12
	xorl	%r14d, %r14d
	cmpl	%edi, %ecx
	setne	%r14b
	movl	(%r13), %eax
	xorl	%ebx, %ebx
	cmpl	(%rdx), %eax
	sete	%bl
	callq	_state_string
	movl	(%r12), %r8d
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	%r15d, %r9d
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LPT detected: skipping PCH PLL test\n"

L_.str.1:                               ## @.str.1
	.asciz	"asserting PCH PLL %s with no PLL\n"

	.comm	_DPLL_VCO_ENABLE,4,2            ## @DPLL_VCO_ENABLE
L_.str.2:                               ## @.str.2
	.asciz	"PCH PLL state for reg %x assertion failure (expected %s, current %s), val=%08x\n"

	.comm	_PCH_DPLL_SEL,4,2               ## @PCH_DPLL_SEL
	.comm	__PCH_DPLL_B,4,2                ## @_PCH_DPLL_B
L_.str.3:                               ## @.str.3
	.asciz	"PLL[%d] not attached to this transcoder %d: %08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"PLL[%d] not %s on this transcoder %d: %08x\n"

	.no_dead_strip	_assert_pch_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function assert_pch_pll
_assert_pch_pll:                        ; @assert_pch_pll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	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, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_DRM_DEBUG_DRIVER
LBB0_2:
	cmp	x21, #0
	cset	w22, eq
	mov	x0, x20
	bl	_state_string
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_WARN
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	ldr	w0, [x21]
	bl	_I915_READ
	mov	x22, x0
Lloh4:
	adrp	x8, _DPLL_VCO_ENABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DPLL_VCO_ENABLE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w24, ne
	cmp	w24, w20
	cset	w25, ne
	ldr	w26, [x21]
	mov	x0, x20
	bl	_state_string
	mov	x27, x0
	mov	x0, x24
	bl	_state_string
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x22, [sp, #8]
	str	x27, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x25
	mov	x2, x26
	bl	_WARN
	cbz	x19, LBB0_3
; %bb.5:
	ldr	w0, [x23]
	bl	_HAS_PCH_CPT
	cbz	x0, LBB0_3
; %bb.6:
Lloh9:
	adrp	x8, _PCH_DPLL_SEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCH_DPLL_SEL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_I915_READ
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x21]
Lloh12:
	adrp	x24, __PCH_DPLL_B@GOTPAGE
Lloh13:
	ldr	x24, [x24, __PCH_DPLL_B@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w8, w9
	cset	w2, eq
	ldr	w9, [x19]
	lsl	w8, w9, #2
	lsr	w8, w0, w8
	and	w8, w8, #0x1
	eor	w8, w8, w2
	stp	x9, x0, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	bl	_WARN
	cbnz	w0, LBB0_3
; %bb.7:
	ldr	w8, [x19]
	mov	w9, #3
	bfi	w9, w8, #2, #30
	asr	w8, w22, w9
	cmp	w8, #0
	cset	w8, ne
	cmp	w8, w20
	cset	w23, ne
	ldr	w8, [x21]
	ldr	w9, [x24]
	cmp	w8, w9
	cset	w21, eq
	mov	x0, x20
	bl	_state_string
                                        ; kill: def $w0 killed $w0 def $x0
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	ldr	w8, [x19]
	stp	x8, x22, [sp, #8]
	str	x0, [sp]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	mov	x2, x21
	bl	_WARN
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LPT detected: skipping PCH PLL test\n"

l_.str.1:                               ; @.str.1
	.asciz	"asserting PCH PLL %s with no PLL\n"

	.comm	_DPLL_VCO_ENABLE,4,2            ; @DPLL_VCO_ENABLE
l_.str.2:                               ; @.str.2
	.asciz	"PCH PLL state for reg %x assertion failure (expected %s, current %s), val=%08x\n"

	.comm	_PCH_DPLL_SEL,4,2               ; @PCH_DPLL_SEL
	.comm	__PCH_DPLL_B,4,2                ; @_PCH_DPLL_B
l_.str.3:                               ; @.str.3
	.asciz	"PLL[%d] not attached to this transcoder %d: %08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"PLL[%d] not %s on this transcoder %d: %08x\n"

	.no_dead_strip	_assert_pch_pll
.subsections_via_symbols
