	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_check_plane_mapping
_intel_check_plane_mapping:             ## @intel_check_plane_mapping
	.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	8(%rdi), %rax
	movq	(%rax), %rcx
	movl	$1, %eax
	cmpl	$1, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpl	$0, 4(%rbx)
	sete	%dil
	callq	_DSPCNTR
	movl	%eax, %edi
	callq	_I915_READ
	movq	_DISPLAY_PLANE_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_DISPPLANE_SEL_PIPE_MASK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	testl	%eax, (%rcx)
	setne	%dl
	xorl	%eax, %eax
	cmpl	%edx, (%rbx)
	je	LBB0_4
LBB0_3:
	movl	$1, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DISPLAY_PLANE_ENABLE,4,2       ## @DISPLAY_PLANE_ENABLE
	.comm	_DISPPLANE_SEL_PIPE_MASK,4,2    ## @DISPPLANE_SEL_PIPE_MASK
	.no_dead_strip	_intel_check_plane_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_check_plane_mapping
_intel_check_plane_mapping:             ; @intel_check_plane_mapping
	.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
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_DSPCNTR
	bl	_I915_READ
Lloh0:
	adrp	x8, _DISPLAY_PLANE_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISPLAY_PLANE_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _DISPPLANE_SEL_PIPE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DISPPLANE_SEL_PIPE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	ldr	w9, [x19]
	cmp	w9, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DISPLAY_PLANE_ENABLE,4,2       ; @DISPLAY_PLANE_ENABLE
	.comm	_DISPPLANE_SEL_PIPE_MASK,4,2    ; @DISPPLANE_SEL_PIPE_MASK
	.no_dead_strip	_intel_check_plane_mapping
.subsections_via_symbols
