	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i9xx_update_cursor
_i9xx_update_cursor:                    ## @i9xx_update_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_to_intel_crtc
	movl	(%rax), %r15d
	xorl	%r13d, %r13d
	testl	%r14d, %r14d
	setne	%r13b
	cmpl	%r13d, 4(%rax)
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	movl	%r15d, %edi
	callq	_CURCNTR
	movl	%eax, %edi
	callq	_I915_READ
	movq	_CURSOR_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	_MCURSOR_PIPE_SELECT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movq	_CURSOR_MODE_64_ARGB_AX@GOTPCREL(%rip), %rcx
	movl	%r15d, %ebx
	shll	$28, %ebx
	orl	(%rcx), %ebx
	movq	_MCURSOR_GAMMA_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	orl	%eax, %ebx
	jmp	LBB0_4
LBB0_3:
	movq	_MCURSOR_GAMMA_ENABLE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movq	_CURSOR_MODE_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %ebx
LBB0_4:
	movl	%r15d, %edi
	callq	_CURCNTR
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r13d, 4(%r12)
LBB0_5:
	movl	%r15d, %edi
	callq	_CURBASE
	movl	%eax, %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CURSOR_MODE,4,2                ## @CURSOR_MODE
	.comm	_MCURSOR_PIPE_SELECT,4,2        ## @MCURSOR_PIPE_SELECT
	.comm	_CURSOR_MODE_64_ARGB_AX,4,2     ## @CURSOR_MODE_64_ARGB_AX
	.comm	_MCURSOR_GAMMA_ENABLE,4,2       ## @MCURSOR_GAMMA_ENABLE
	.comm	_CURSOR_MODE_DISABLE,4,2        ## @CURSOR_MODE_DISABLE
	.no_dead_strip	_i9xx_update_cursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i9xx_update_cursor
_i9xx_update_cursor:                    ; @i9xx_update_cursor
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	bl	_to_intel_crtc
	cmp	w19, #0
	cset	w23, ne
	ldp	w21, w8, [x0]
	cmp	w8, w23
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	bl	_CURCNTR
	bl	_I915_READ
Lloh0:
	adrp	x8, _CURSOR_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CURSOR_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w19, LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _MCURSOR_PIPE_SELECT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MCURSOR_PIPE_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh6:
	adrp	x9, _CURSOR_MODE_64_ARGB_AX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CURSOR_MODE_64_ARGB_AX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _MCURSOR_GAMMA_ENABLE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MCURSOR_GAMMA_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w21, lsl #28
	orr	w9, w9, w10
	orr	w22, w9, w8
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x9, _MCURSOR_GAMMA_ENABLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MCURSOR_GAMMA_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh15:
	adrp	x9, _CURSOR_MODE_DISABLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CURSOR_MODE_DISABLE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w22, w8, w9
LBB0_4:
	mov	x0, x21
	bl	_CURCNTR
	mov	x1, x22
	bl	_I915_WRITE
	str	w23, [x20, #4]
LBB0_5:
	mov	x0, x21
	bl	_CURBASE
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CURSOR_MODE,4,2                ; @CURSOR_MODE
	.comm	_MCURSOR_PIPE_SELECT,4,2        ; @MCURSOR_PIPE_SELECT
	.comm	_CURSOR_MODE_64_ARGB_AX,4,2     ; @CURSOR_MODE_64_ARGB_AX
	.comm	_MCURSOR_GAMMA_ENABLE,4,2       ; @MCURSOR_GAMMA_ENABLE
	.comm	_CURSOR_MODE_DISABLE,4,2        ; @CURSOR_MODE_DISABLE
	.no_dead_strip	_i9xx_update_cursor
.subsections_via_symbols
