	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tilcdc_crtc_atomic_check
_tilcdc_crtc_atomic_check:              ## @tilcdc_crtc_atomic_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	cmpl	$0, 8(%rsi)
	je	LBB0_5
## %bb.1:
	movq	(%rsi), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rdx
	cmpq	(%rdi), %rdx
	jne	LBB0_4
## %bb.2:
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	cmpq	%rdi, (%rcx)
	je	LBB0_5
LBB0_4:
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CRTC primary plane must be present"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tilcdc_crtc_atomic_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tilcdc_crtc_atomic_check
_tilcdc_crtc_atomic_check:              ; @tilcdc_crtc_atomic_check
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x1, #8]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x8, [x1]
	ldr	x8, [x8]
	ldr	x9, [x8]
	ldr	x10, [x0]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_5
LBB0_4:
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CRTC primary plane must be present"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tilcdc_crtc_atomic_check
.subsections_via_symbols
