	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i845_update_cursor
_i845_update_cursor:                    ## @i845_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
	movq	%rsi, %r15
	callq	_to_intel_crtc
	xorl	%r12d, %r12d
	testq	%r15, %r15
	setne	%r12b
	cmpl	%r12d, (%rax)
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	__CURACNTR@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_I915_READ
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	__CURABASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_I915_WRITE
	movq	_CURSOR_FORMAT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%rax, %rbx
	movq	_CURSOR_ENABLE@GOTPCREL(%rip), %rax
	movq	_CURSOR_GAMMA_ENABLE@GOTPCREL(%rip), %rcx
	movq	_CURSOR_FORMAT_ARGB@GOTPCREL(%rip), %rdx
	orq	(%rax), %rbx
	orq	(%rcx), %rbx
	orq	(%rdx), %rbx
	jmp	LBB0_4
LBB0_3:
	movq	_CURSOR_ENABLE@GOTPCREL(%rip), %rax
	movq	_CURSOR_GAMMA_ENABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	notq	%rcx
	andq	%rcx, %rbx
LBB0_4:
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_I915_WRITE
	movl	%r12d, (%r14)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__CURACNTR,4,2                  ## @_CURACNTR
	.comm	__CURABASE,4,2                  ## @_CURABASE
	.comm	_CURSOR_FORMAT_MASK,8,3         ## @CURSOR_FORMAT_MASK
	.comm	_CURSOR_ENABLE,8,3              ## @CURSOR_ENABLE
	.comm	_CURSOR_GAMMA_ENABLE,8,3        ## @CURSOR_GAMMA_ENABLE
	.comm	_CURSOR_FORMAT_ARGB,8,3         ## @CURSOR_FORMAT_ARGB
	.no_dead_strip	_i845_update_cursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i845_update_cursor
_i845_update_cursor:                    ; @i845_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	x20, x1
	bl	_to_intel_crtc
	cmp	x20, #0
	cset	w22, ne
	ldr	w8, [x0]
	cmp	w8, w22
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x23, __CURACNTR@GOTPAGE
Lloh1:
	ldr	x23, [x23, __CURACNTR@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_I915_READ
	mov	x21, x0
	cbz	x20, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, __CURABASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, __CURABASE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_I915_WRITE
Lloh5:
	adrp	x8, _CURSOR_FORMAT_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CURSOR_FORMAT_MASK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	bic	x8, x21, x8
Lloh8:
	adrp	x9, _CURSOR_ENABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CURSOR_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _CURSOR_GAMMA_ENABLE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CURSOR_GAMMA_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	adrp	x11, _CURSOR_FORMAT_ARGB@GOTPAGE
Lloh15:
	ldr	x11, [x11, _CURSOR_FORMAT_ARGB@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	orr	x8, x8, x9
	orr	x8, x8, x10
	orr	x1, x8, x11
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _CURSOR_ENABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CURSOR_ENABLE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _CURSOR_GAMMA_ENABLE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CURSOR_GAMMA_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	orr	x8, x9, x8
	bic	x1, x21, x8
LBB0_4:
	ldr	w0, [x23]
	bl	_I915_WRITE
	str	w22, [x19]
LBB0_5:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	__CURACNTR,4,2                  ; @_CURACNTR
	.comm	__CURABASE,4,2                  ; @_CURABASE
	.comm	_CURSOR_FORMAT_MASK,8,3         ; @CURSOR_FORMAT_MASK
	.comm	_CURSOR_ENABLE,8,3              ; @CURSOR_ENABLE
	.comm	_CURSOR_GAMMA_ENABLE,8,3        ; @CURSOR_GAMMA_ENABLE
	.comm	_CURSOR_FORMAT_ARGB,8,3         ; @CURSOR_FORMAT_ARGB
	.no_dead_strip	_i845_update_cursor
.subsections_via_symbols
