	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function komeda_plane_atomic_check
_komeda_plane_atomic_check:             ## @komeda_plane_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, %rbx
	callq	_to_kplane
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_kplane_st
	movl	(%rbx), %esi
	xorl	%r12d, %r12d
	testl	%esi, %esi
	je	LBB0_11
## %bb.1:
	cmpl	$0, 8(%rbx)
	je	LBB0_11
## %bb.2:
	movq	%rax, %r14
	movq	(%r15), %r15
	movl	4(%rbx), %edi
	callq	_drm_atomic_get_crtc_state
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_ATOMIC
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$0, 4(%r13)
	je	LBB0_4
## %bb.5:
	cmpl	$0, (%r13)
	je	LBB0_11
## %bb.6:
	movq	%r13, %rdi
	callq	_to_kcrtc_st
	movq	%rax, %r13
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_komeda_plane_init_data_flow
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	cmpq	$0, -48(%rbp)
	je	LBB0_9
## %bb.8:
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_komeda_build_layer_split_data_flow
	jmp	LBB0_10
LBB0_9:
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_komeda_build_layer_data_flow
LBB0_10:
	movl	%eax, %r12d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot update plane on a disabled CRTC.\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function komeda_plane_atomic_check
_komeda_plane_atomic_check:             ; @komeda_plane_atomic_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	bl	_to_kplane
	mov	x20, x0
	mov	x0, x21
	bl	_to_kplane_st
	ldr	w1, [x21]
	cbz	w1, LBB0_9
; %bb.1:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_9
; %bb.2:
	mov	x19, x0
	ldr	x20, [x20]
	ldr	w0, [x21, #4]
	bl	_drm_atomic_get_crtc_state
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_ATOMIC
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_4:
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_3
; %bb.5:
	ldr	w8, [x22]
	cbz	w8, LBB0_9
; %bb.6:
	mov	x0, x22
	bl	_to_kcrtc_st
	mov	x22, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x22
	bl	_komeda_plane_init_data_flow
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_11
; %bb.8:
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_komeda_build_layer_split_data_flow
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	add	sp, sp, #64
	ret
LBB0_11:
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_komeda_build_layer_data_flow
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot update plane on a disabled CRTC.\n"

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