	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_du_cursor_plane_atomic_check ## -- Begin function vmw_du_cursor_plane_atomic_check
	.p2align	4, 0x90
_vmw_du_cursor_plane_atomic_check:      ## @vmw_du_cursor_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	8(%rsi), %rsi
	movq	24(%rbx), %r14
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movl	16(%rbx), %edi
	callq	_drm_atomic_get_new_crtc_state
	movq	%rax, %rsi
	jmp	LBB0_3
LBB0_1:
	xorl	%esi, %esi
LBB0_3:
	movq	_DRM_PLANE_HELPER_NO_SCALING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_drm_atomic_helper_check_plane_state
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_4
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testq	%r14, %r14
	je	LBB0_5
## %bb.6:
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	cmpl	$64, %esi
	jne	LBB0_8
## %bb.7:
	xorl	%r15d, %r15d
	cmpl	$64, %edx
	je	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_9:
	movq	%r14, %rdi
	callq	_vmw_framebuffer_to_vfb
	cmpl	$0, (%rax)
	jne	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	callq	_vmw_framebuffer_to_vfbs
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	cmpl	$0, (%rax)
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_5:
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_PLANE_HELPER_NO_SCALING,4,2 ## @DRM_PLANE_HELPER_NO_SCALING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid cursor dimensions (%d, %d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"surface not suitable for cursor\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_du_cursor_plane_atomic_check ; -- Begin function vmw_du_cursor_plane_atomic_check
	.p2align	2
_vmw_du_cursor_plane_atomic_check:      ; @vmw_du_cursor_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
	ldr	x19, [x1, #24]
	ldr	x1, [x1, #8]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x21, #16]
	bl	_drm_atomic_get_new_crtc_state
	mov	x1, x0
LBB0_2:
Lloh0:
	adrp	x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x2
	mov	w4, #1
	mov	w5, #1
	bl	_drm_atomic_helper_check_plane_state
	mov	x20, x0
	cbz	w0, LBB0_4
LBB0_3:
	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
	add	sp, sp, #64
	ret
LBB0_4:
	cbz	x19, LBB0_8
; %bb.5:
	ldp	w8, w9, [x21]
	cmp	w8, #64
	b.ne	LBB0_9
; %bb.6:
	cmp	w9, #64
	b.ne	LBB0_9
; %bb.7:
	mov	w20, #0
	b	LBB0_10
LBB0_8:
	mov	w20, #0
	b	LBB0_3
LBB0_9:
	stp	x8, x9, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x19
	bl	_vmw_framebuffer_to_vfb
	ldr	w8, [x0]
	cbnz	w8, LBB0_3
; %bb.11:
	mov	x0, x19
	bl	_vmw_framebuffer_to_vfbs
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.12:
	ldr	w8, [x8]
	cbnz	w8, LBB0_3
; %bb.13:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_PLANE_HELPER_NO_SCALING,4,2 ; @DRM_PLANE_HELPER_NO_SCALING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid cursor dimensions (%d, %d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"surface not suitable for cursor\n"

.subsections_via_symbols
