	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_cursor_atomic_check
_tegra_cursor_atomic_check:             ## @tegra_cursor_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_to_tegra_plane
	cmpl	$0, 16(%rbx)
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edx
	movl	%edx, %ecx
	sarl	$16, %ecx
	cmpl	4(%rbx), %ecx
	jne	LBB0_4
## %bb.3:
	movl	8(%rbx), %esi
	movl	%esi, %edi
	sarl	$16, %edi
	cmpl	12(%rbx), %edi
	jne	LBB0_4
## %bb.5:
	cmpl	%esi, %edx
	jne	LBB0_4
## %bb.6:
	addl	$-32, %ecx
	roll	$27, %ecx
	cmpl	$7, %ecx
	ja	LBB0_4
## %bb.7:
	movl	$139, %edx
	btl	%ecx, %edx
	jae	LBB0_4
## %bb.8:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_tegra_plane_state_add
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	jmp	LBB0_9
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tegra_cursor_atomic_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_cursor_atomic_check
_tegra_cursor_atomic_check:             ; @tegra_cursor_atomic_check
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_to_tegra_plane
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_7
; %bb.1:
	ldp	w9, w10, [x19]
	asr	w8, w9, #16
	cmp	w8, w10
	b.ne	LBB0_6
; %bb.2:
	ldp	w10, w11, [x19, #8]
	cmp	w11, w10, asr #16
	b.ne	LBB0_6
; %bb.3:
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.4:
	sub	w8, w8, #32
	ror	w8, w8, #5
	cmp	w8, #7
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #139
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_6
; %bb.5:
	mov	x1, x19
	bl	_tegra_plane_state_add
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_8
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tegra_cursor_atomic_check
.subsections_via_symbols
