	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function komeda_wb_encoder_atomic_check
_komeda_wb_encoder_atomic_check:        ## @komeda_wb_encoder_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_to_kcrtc_st
	cmpq	$0, 8(%r12)
	je	LBB0_1
## %bb.2:
	cmpl	$0, 4(%rbx)
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movl	(%r12), %edi
	callq	_to_wb_conn
	movl	%eax, %edi
	callq	_to_kconn
	movq	(%rax), %r15
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.5:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_is_only_changed_connector
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$0, (%rbx)
LBB0_7:
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_komeda_wb_init_data_flow
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	cmpq	$0, -40(%rbp)
	je	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_komeda_build_wb_split_data_flow
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_ATOMIC
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_10:
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_komeda_build_wb_data_flow
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot write the composition result out on a inactive CRTC.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_komeda_wb_encoder_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_wb_encoder_atomic_check
_komeda_wb_encoder_atomic_check:        ; @komeda_wb_encoder_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	x19, x2
	mov	x22, x1
	mov	x0, x1
	bl	_to_kcrtc_st
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_9
; %bb.2:
	mov	x20, x0
	ldr	w0, [x19]
	bl	_to_wb_conn
	bl	_to_kconn
	ldr	x21, [x0]
	ldr	w8, [x22]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	w1, [x19]
	mov	x0, x22
	bl	_is_only_changed_connector
	cbz	x0, LBB0_5
; %bb.4:
	str	wzr, [x22]
LBB0_5:
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_komeda_wb_init_data_flow
	cbnz	w0, LBB0_11
; %bb.6:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_10
; %bb.7:
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_komeda_build_wb_split_data_flow
	b	LBB0_11
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
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_11
LBB0_10:
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_komeda_build_wb_data_flow
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot write the composition result out on a inactive CRTC.\n"

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