	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_overlay_possible_on_crtc
_check_overlay_possible_on_crtc:        ## @check_overlay_possible_on_crtc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, 4(%rsi)
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movq	(%rdi), %rdi
	callq	_INTEL_INFO
	xorl	%r14d, %r14d
	cmpl	$3, (%rax)
	jg	LBB0_4
## %bb.2:
	movl	(%rbx), %edi
	callq	_PIPECONF
	movl	%eax, %edi
	callq	_I915_READ
	movq	_PIPECONF_DOUBLE_WIDE@GOTPCREL(%rip), %rcx
	movq	_PIPECONF_ENABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%rcx), %ecx
	orl	%edx, %ecx
	andl	%eax, %ecx
	cmpl	%edx, %ecx
	je	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PIPECONF_DOUBLE_WIDE,4,2       ## @PIPECONF_DOUBLE_WIDE
	.comm	_PIPECONF_ENABLE,4,2            ## @PIPECONF_ENABLE
	.no_dead_strip	_check_overlay_possible_on_crtc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_overlay_possible_on_crtc
_check_overlay_possible_on_crtc:        ; @check_overlay_possible_on_crtc
	.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	w8, [x1, #4]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	x0, [x0]
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #3
	b.gt	LBB0_3
; %bb.2:
	ldr	w0, [x19]
	bl	_PIPECONF
	bl	_I915_READ
Lloh0:
	adrp	x8, _PIPECONF_DOUBLE_WIDE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIPECONF_DOUBLE_WIDE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PIPECONF_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PIPECONF_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w8, w8, w0
	cmp	w8, w9
	b.ne	LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PIPECONF_DOUBLE_WIDE,4,2       ; @PIPECONF_DOUBLE_WIDE
	.comm	_PIPECONF_ENABLE,4,2            ; @PIPECONF_ENABLE
	.no_dead_strip	_check_overlay_possible_on_crtc
.subsections_via_symbols
