	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_atomic_connector_check
_drm_atomic_connector_check:            ## @drm_atomic_connector_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	24(%rdi), %eax
	testl	%eax, %eax
	movl	$8, %edi
	cmovnel	%eax, %edi
	movq	8(%rsi), %r12
	movl	%edi, (%rsi)
	cmpq	$0, 16(%r15)
	je	LBB0_2
## %bb.1:
	movl	28(%rbx), %esi
	callq	_min
	movl	%eax, (%rbx)
LBB0_2:
	movq	(%r15), %rax
	movq	_DRM_MODE_CONNECTOR_WRITEBACK@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.3:
	testq	%r12, %r12
	je	LBB0_16
## %bb.4:
	cmpq	$0, 8(%r12)
	movq	16(%rbx), %rsi
	je	LBB0_9
## %bb.5:
	testq	%rsi, %rsi
	jne	LBB0_10
## %bb.6:
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_9:
	testq	%rsi, %rsi
	je	LBB0_13
LBB0_10:
	movl	24(%rbx), %edi
	callq	_drm_atomic_get_existing_crtc_state
	cmpq	$0, 8(%r12)
	je	LBB0_13
## %bb.11:
	cmpl	$0, (%rax)
	jne	LBB0_16
## %bb.12:
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	movq	16(%rbx), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_ATOMIC
	jmp	LBB0_8
LBB0_13:
	cmpq	$0, (%r12)
	je	LBB0_15
## %bb.14:
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
LBB0_7:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_ATOMIC
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_16
LBB0_15:
	movq	%r12, %rdi
	callq	_drm_writeback_cleanup_job
	movq	$0, 8(%rbx)
LBB0_16:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_CONNECTOR_WRITEBACK,8,3 ## @DRM_MODE_CONNECTOR_WRITEBACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[CONNECTOR:%d:%s] framebuffer without CRTC\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"[CONNECTOR:%d:%s] has framebuffer, but [CRTC:%d] is off\n"

L_.str.2:                               ## @.str.2
	.asciz	"[CONNECTOR:%d:%s] requesting out-fence without framebuffer\n"

	.no_dead_strip	_drm_atomic_connector_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_atomic_connector_check
_drm_atomic_connector_check:            ; @drm_atomic_connector_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, x1
	mov	x20, x0
	ldr	x21, [x1, #8]
	ldr	w8, [x0, #24]
	mov	w9, #8
	cmp	w8, #0
	csel	w0, w9, w8, eq
	str	w0, [x1]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x19, #28]
	bl	_min
	str	w0, [x19]
LBB0_2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _DRM_MODE_CONNECTOR_WRITEBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_WRITEBACK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x21, #0, #4, eq
	b.ne	LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_15
LBB0_4:
	ldr	x8, [x21, #8]
	ldr	x1, [x19, #16]
	cbz	x8, LBB0_7
; %bb.5:
	cbnz	x1, LBB0_8
; %bb.6:
	ldp	w2, w1, [x20, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_7:
	cbz	x1, LBB0_11
LBB0_8:
	ldr	w0, [x19, #24]
	bl	_drm_atomic_get_existing_crtc_state
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	w8, [x0]
	cbnz	w8, LBB0_3
; %bb.10:
	ldp	w2, w1, [x20, #8]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:
	ldr	x8, [x21]
	cbz	x8, LBB0_14
; %bb.12:
	ldp	w2, w1, [x20, #8]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_DRM_DEBUG_ATOMIC
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_14:
	mov	x0, x21
	bl	_drm_writeback_cleanup_job
	mov	w0, #0
	str	xzr, [x19, #8]
LBB0_15:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_CONNECTOR_WRITEBACK,8,3 ; @DRM_MODE_CONNECTOR_WRITEBACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[CONNECTOR:%d:%s] framebuffer without CRTC\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"[CONNECTOR:%d:%s] has framebuffer, but [CRTC:%d] is off\n"

l_.str.2:                               ; @.str.2
	.asciz	"[CONNECTOR:%d:%s] requesting out-fence without framebuffer\n"

	.no_dead_strip	_drm_atomic_connector_check
.subsections_via_symbols
