	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_du_crtc_atomic_check       ## -- Begin function vmw_du_crtc_atomic_check
	.p2align	4, 0x90
_vmw_du_crtc_atomic_check:              ## @vmw_du_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
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	36(%rsi), %edi
	callq	_vmw_crtc_to_du
	movq	%rax, %rdi
	callq	_drm_connector_mask
	movl	%eax, %r14d
	movl	(%rbx), %r12d
	movl	(%r15), %edi
	callq	_drm_plane_mask
	andl	%r12d, %eax
	cmpl	4(%rbx), %eax
	jne	LBB0_1
## %bb.2:
	movl	8(%rbx), %eax
	cmpl	%r14d, %eax
	je	LBB0_5
## %bb.3:
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	cmpq	$0, 16(%rbx)
	jne	LBB0_7
## %bb.6:
	movl	24(%rbx), %ecx
	movl	%ecx, 32(%rbx)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid connectors configuration\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_du_crtc_atomic_check       ; -- Begin function vmw_du_crtc_atomic_check
	.p2align	2
_vmw_du_crtc_atomic_check:              ; @vmw_du_crtc_atomic_check
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x1, #36]
	bl	_vmw_crtc_to_du
	bl	_drm_connector_mask
	mov	x20, x0
	ldr	w22, [x19]
	ldr	w0, [x21]
	bl	_drm_plane_mask
	and	w8, w0, w22
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, w20
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #0
	ldr	w8, [x19, #24]
	str	w8, [x19, #32]
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid connectors configuration\n"

.subsections_via_symbols
