	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_cursor_check_surface
_intel_cursor_check_surface:            ## @intel_cursor_check_surface
	.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	%rdi, %r14
	callq	_intel_plane_compute_gtt
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, 16(%r14)
	je	LBB0_2
## %bb.3:
	movswl	10(%r14), %eax
	movl	%eax, -40(%rbp)
	movswl	14(%r14), %eax
	movl	%eax, -36(%rbp)
	leaq	-40(%rbp), %r15
	leaq	-36(%rbp), %r12
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_intel_add_fb_offsets
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_intel_plane_compute_aligned_offset
	movl	-40(%rbp), %ecx
	orl	-36(%rbp), %ecx
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Arbitrary cursor panning not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_intel_cursor_check_surface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_cursor_check_surface
_intel_cursor_check_surface:            ; @intel_cursor_check_surface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_intel_plane_compute_gtt
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_5
; %bb.3:
	ldrsh	w9, [x19, #10]
	ldrsh	w8, [x19, #14]
	stp	w8, w9, [sp, #8]
	add	x0, sp, #12
	add	x1, sp, #8
	mov	x2, x19
	mov	w3, #0
	bl	_intel_add_fb_offsets
	add	x0, sp, #12
	add	x1, sp, #8
	mov	x2, x19
	mov	w3, #0
	bl	_intel_plane_compute_aligned_offset
	ldp	w10, w9, [sp, #8]
	orr	w9, w9, w10
	cbz	w9, LBB0_6
; %bb.4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_5:
	mov	w0, #0
	b	LBB0_1
LBB0_6:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	str	w8, [x9]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Arbitrary cursor panning not supported\n"

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