	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vbox_cursor_atomic_check
_vbox_cursor_atomic_check:              ## @vbox_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	%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	(%rsi), %r15
	movq	8(%rsi), %r12
	movq	24(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movl	32(%rbx), %edi
	callq	_drm_atomic_get_existing_crtc_state
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	movq	_DRM_PLANE_HELPER_NO_SCALING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%ecx, %edx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_drm_atomic_helper_check_plane_state
	testl	%eax, %eax
	je	LBB0_4
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	cmpl	$0, 16(%rbx)
	je	LBB0_10
## %bb.5:
	movq	_VBOX_MAX_CURSOR_WIDTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	jg	LBB0_9
## %bb.6:
	testq	%r12, %r12
	je	LBB0_9
## %bb.7:
	movq	_VBOX_MAX_CURSOR_HEIGHT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	jg	LBB0_9
## %bb.8:
	testq	%r15, %r15
	jne	LBB0_10
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_PLANE_HELPER_NO_SCALING,4,2 ## @DRM_PLANE_HELPER_NO_SCALING
	.comm	_VBOX_MAX_CURSOR_WIDTH,8,3      ## @VBOX_MAX_CURSOR_WIDTH
	.comm	_VBOX_MAX_CURSOR_HEIGHT,8,3     ## @VBOX_MAX_CURSOR_HEIGHT
	.no_dead_strip	_vbox_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 vbox_cursor_atomic_check
_vbox_cursor_atomic_check:              ; @vbox_cursor_atomic_check
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldp	x21, x22, [x1]
	ldr	x1, [x1, #24]
	cbz	x1, LBB0_3
; %bb.1:
	ldr	w0, [x19, #32]
	bl	_drm_atomic_get_existing_crtc_state
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_3:
	mov	x20, #0
LBB0_4:
Lloh3:
	adrp	x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x2
	mov	w4, #1
	mov	w5, #1
	bl	_drm_atomic_helper_check_plane_state
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_9
; %bb.6:
Lloh6:
	adrp	x8, _VBOX_MAX_CURSOR_WIDTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VBOX_MAX_CURSOR_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x21, x8
	b.gt	LBB0_2
; %bb.7:
	cbz	x22, LBB0_2
; %bb.8:
Lloh9:
	adrp	x8, _VBOX_MAX_CURSOR_HEIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VBOX_MAX_CURSOR_HEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x22, x8
	ccmp	x21, #0, #4, le
	b.eq	LBB0_2
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_PLANE_HELPER_NO_SCALING,4,2 ; @DRM_PLANE_HELPER_NO_SCALING
	.comm	_VBOX_MAX_CURSOR_WIDTH,8,3      ; @VBOX_MAX_CURSOR_WIDTH
	.comm	_VBOX_MAX_CURSOR_HEIGHT,8,3     ; @VBOX_MAX_CURSOR_HEIGHT
	.no_dead_strip	_vbox_cursor_atomic_check
.subsections_via_symbols
