	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function assert_planes_disabled
_assert_planes_disabled:                ## @assert_planes_disabled
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movl	(%rdi), %edi
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%r13d, %edi
	callq	_DSPCNTR
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_DISPLAY_PLANE_ENABLE@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_plane_name
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
LBB0_1:
	xorl	%edi, %edi
	callq	_DSPCNTR
	movl	%eax, %edi
	callq	_I915_READ
	movq	_DISPPLANE_SEL_PIPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_DISPPLANE_SEL_PIPE_SHIFT@GOTPCREL(%rip), %rbx
	movb	(%rbx), %cl
	sarl	%cl, %edx
	movq	_DISPLAY_PLANE_ENABLE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	setne	%al
	cmpl	%r13d, %edx
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %r15d
	xorl	%edi, %edi
	callq	_plane_name
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_pipe_name
	leaq	L_.str.1(%rip), %r14
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_WARN
	movl	$1, %edi
	callq	_DSPCNTR
	movl	%eax, %edi
	callq	_I915_READ
	movq	_DISPPLANE_SEL_PIPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movb	(%rbx), %cl
	sarl	%cl, %edx
	movq	_DISPLAY_PLANE_ENABLE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	setne	%al
	cmpl	%r13d, %edx
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %r15d
	movl	$1, %edi
	callq	_plane_name
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_pipe_name
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DISPLAY_PLANE_ENABLE,4,2       ## @DISPLAY_PLANE_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"plane %c assertion failure, should be disabled but not\n"

	.comm	_DISPPLANE_SEL_PIPE_MASK,4,2    ## @DISPPLANE_SEL_PIPE_MASK
	.comm	_DISPPLANE_SEL_PIPE_SHIFT,4,2   ## @DISPPLANE_SEL_PIPE_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"plane %c assertion failure, should be off on pipe %c but is still active\n"

	.no_dead_strip	_assert_planes_disabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function assert_planes_disabled
_assert_planes_disabled:                ; @assert_planes_disabled
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	ldr	w0, [x0]
	bl	_HAS_PCH_SPLIT
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_DSPCNTR
	bl	_I915_READ
Lloh0:
	adrp	x8, _DISPLAY_PLANE_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISPLAY_PLANE_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w20, w8, w0
	mov	x0, x19
	bl	_plane_name
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_WARN
LBB0_2:
	bl	_DSPCNTR
	bl	_I915_READ
Lloh5:
	adrp	x23, _DISPPLANE_SEL_PIPE_MASK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DISPPLANE_SEL_PIPE_MASK@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w8, w8, w0
Lloh7:
	adrp	x24, _DISPPLANE_SEL_PIPE_SHIFT@GOTPAGE
Lloh8:
	ldr	x24, [x24, _DISPPLANE_SEL_PIPE_SHIFT@GOTPAGEOFF]
	ldr	w9, [x24]
	asr	w8, w8, w9
Lloh9:
	adrp	x25, _DISPLAY_PLANE_ENABLE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _DISPLAY_PLANE_ENABLE@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w0
	ccmp	w8, w19, #0, ne
	cset	w20, eq
	mov	w0, #0
	bl	_plane_name
	mov	x21, x0
	mov	x0, x19
	bl	_pipe_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh11:
	adrp	x22, l_.str.1@PAGE
Lloh12:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_WARN
	mov	w0, #1
	bl	_DSPCNTR
	bl	_I915_READ
	ldr	w8, [x23]
	and	w8, w8, w0
	ldr	w9, [x24]
	asr	w8, w8, w9
	ldr	w9, [x25]
	tst	w9, w0
	ccmp	w8, w19, #0, ne
	cset	w20, eq
	mov	w0, #1
	bl	_plane_name
	mov	x21, x0
	mov	x0, x19
	bl	_pipe_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_WARN
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DISPLAY_PLANE_ENABLE,4,2       ; @DISPLAY_PLANE_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"plane %c assertion failure, should be disabled but not\n"

	.comm	_DISPPLANE_SEL_PIPE_MASK,4,2    ; @DISPPLANE_SEL_PIPE_MASK
	.comm	_DISPPLANE_SEL_PIPE_SHIFT,4,2   ; @DISPPLANE_SEL_PIPE_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"plane %c assertion failure, should be off on pipe %c but is still active\n"

	.no_dead_strip	_assert_planes_disabled
.subsections_via_symbols
