	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i9xx_check_cursor
_i9xx_check_cursor:                     ## @i9xx_check_cursor
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	48(%rsi), %edi
	callq	_to_intel_plane
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_to_i915
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	40(%r12), %r15
	movl	(%rbx), %r14d
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_intel_check_cursor
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_13
## %bb.2:
	movq	%r12, %rdi
	callq	_i9xx_cursor_size_ok
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	cmpq	$0, 24(%r12)
	je	LBB0_6
## %bb.4:
	movq	56(%r12), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setne	%dil
	jmp	LBB0_7
LBB0_5:
	movl	8(%r12), %esi
	movl	32(%r12), %edx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_6:
	xorl	%edi, %edi
LBB0_7:
	movl	%r14d, %ebx
	movq	%r15, %r14
	callq	_WARN_ON
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movl	(%rax), %esi
	movl	8(%r12), %edx
	movq	(%rcx), %rax
	movl	(%rax), %eax
	imull	%edx, %eax
	cmpl	%eax, %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_14
## %bb.8:
	movq	%r13, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	_PIPE_C@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_12
## %bb.10:
	cmpq	$0, 24(%r12)
	je	LBB0_12
## %bb.11:
	cmpq	$0, 16(%r12)
	js	LBB0_18
LBB0_12:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_i9xx_cursor_ctl
	movl	%eax, (%r12)
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_14:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cursor dimension %dx%d not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid cursor stride (%u) (cursor width %d)\n"

	.comm	_PIPE_C,4,2                     ## @PIPE_C
L_.str.2:                               ## @.str.2
	.asciz	"CHV cursor C not allowed to straddle the left screen edge\n"

	.no_dead_strip	_i9xx_check_cursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i9xx_check_cursor
_i9xx_check_cursor:                     ; @i9xx_check_cursor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #48]
	bl	_to_intel_plane
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x21, x0
	ldr	x23, [x19, #40]
	ldr	w22, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_intel_check_cursor
	cbnz	w0, LBB0_16
; %bb.1:
	cbz	x23, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_i9xx_cursor_size_ok
	cbz	w0, LBB0_6
; %bb.3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x8, [x19, #56]
	ldr	w8, [x8]
	ldr	x9, [x23]
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, ne
	b	LBB0_8
LBB0_5:
	mov	w0, #0
	b	LBB0_16
LBB0_6:
	ldr	w1, [x19, #8]
	ldr	w2, [x19, #32]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	b	LBB0_15
LBB0_7:
	mov	w0, #0
LBB0_8:
	bl	_WARN_ON
	ldp	x8, x10, [x23]
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	ldr	x10, [x10]
	ldr	w10, [x10]
	mul	w10, w10, w9
	cmp	w8, w10
	b.ne	LBB0_13
; %bb.9:
	mov	x0, x21
	bl	_IS_CHERRYVIEW
Lloh2:
	adrp	x8, _PIPE_C@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PIPE_C@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x0, #0
	ccmp	w22, w8, #0, ne
	b.ne	LBB0_12
; %bb.10:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x8, [x19, #16]
	tbnz	x8, #63, LBB0_17
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_i9xx_cursor_ctl
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_16
LBB0_13:
	stp	x8, x9, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_14:
	bl	_DRM_DEBUG_KMS
LBB0_15:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_17:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cursor dimension %dx%d not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid cursor stride (%u) (cursor width %d)\n"

	.comm	_PIPE_C,4,2                     ; @PIPE_C
l_.str.2:                               ; @.str.2
	.asciz	"CHV cursor C not allowed to straddle the left screen edge\n"

	.no_dead_strip	_i9xx_check_cursor
.subsections_via_symbols
