	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_crtc_helper_atomic_check
_dm_crtc_helper_atomic_check:           ## @dm_crtc_helper_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	%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
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_to_dm_crtc_state
	movq	%rax, %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_dm_update_crtc_interrupt_state
	cmpl	$0, 8(%r15)
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_modeset_required
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
LBB0_2:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$1, %edi
	callq	_WARN_ON
	jmp	LBB0_12
LBB0_4:
	cmpl	$0, 8(%r15)
	je	LBB0_5
## %bb.6:
	cmpq	$0, 8(%r13)
	je	LBB0_11
## %bb.7:
	cmpq	$0, (%r13)
	je	LBB0_11
## %bb.8:
	movq	%r13, %rdi
	callq	_does_crtc_have_active_cursor
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	cmpq	$0, (%r15)
	je	LBB0_10
LBB0_11:
	movl	8(%r15), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dc_validate_stream
	movq	_DC_OK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	cmovel	%edx, %r12d
	jmp	LBB0_12
LBB0_5:
	xorl	%r12d, %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%r12d, %r12d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DC_OK,8,3                      ## @DC_OK
	.no_dead_strip	_dm_crtc_helper_atomic_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_crtc_helper_atomic_check
_dm_crtc_helper_atomic_check:           ; @dm_crtc_helper_atomic_check
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x19, [x8]
	mov	x0, x1
	bl	_to_dm_crtc_state
	mov	x21, x0
Lloh0:
	adrp	x23, _EINVAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
	ldr	w24, [x23]
	mov	x0, x20
	mov	x1, x22
	bl	_dm_update_crtc_interrupt_state
	mov	w0, #0
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, #0
	mov	w2, #0
	bl	_modeset_required
	cmp	x0, #0
	cset	w0, ne
LBB0_2:
	neg	w20, w24
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #1
	bl	_WARN_ON
	b	LBB0_11
LBB0_4:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_10
; %bb.5:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x8, [x22]
	cbz	x8, LBB0_9
; %bb.7:
	mov	x0, x22
	bl	_does_crtc_have_active_cursor
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x21]
	cbz	x8, LBB0_12
LBB0_9:
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_dc_validate_stream
Lloh2:
	adrp	x8, _DC_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DC_OK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	csel	w20, wzr, w20, eq
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	w8, [x23]
	neg	w20, w8
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DC_OK,8,3                      ; @DC_OK
	.no_dead_strip	_dm_crtc_helper_atomic_check
.subsections_via_symbols
