	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_to_i915
	movq	%rax, %rcx
	testq	%r14, %r14
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	cmpq	$0, 16(%r14)
	je	LBB0_1
## %bb.3:
	movl	12(%r14), %r15d
	movq	(%r14), %r13
	shll	$12, %r15d
	orl	8(%r14), %r15d
	movq	%r12, %rdi
	callq	_i845_cursor_ctl_crtc
	movq	%rax, %r12
	orq	%r13, %r12
	movq	%r14, %rdi
	callq	_intel_cursor_base
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_intel_cursor_position
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, %r14
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
LBB0_4:
	movq	%rcx, %rdi
	callq	_spin_lock_irqsave
	cmpq	%r13, (%rbx)
	jne	LBB0_7
## %bb.5:
	cmpq	%r15, 8(%rbx)
	jne	LBB0_7
## %bb.6:
	cmpq	%r12, 16(%rbx)
	jne	LBB0_7
## %bb.8:
	movq	_PIPE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CURPOS
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_I915_WRITE_FW
	jmp	LBB0_9
LBB0_7:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_PIPE_A@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_CURCNTR
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_I915_WRITE_FW
	movl	(%r14), %edi
	callq	_CURBASE
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_I915_WRITE_FW
	movq	_CURSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_I915_WRITE_FW
	movl	(%r14), %edi
	callq	_CURPOS
	movl	%eax, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_I915_WRITE_FW
	movl	(%r14), %edi
	callq	_CURCNTR
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_I915_WRITE_FW
	movq	%r13, (%rbx)
	movq	%r15, 8(%rbx)
	movq	%r12, 16(%rbx)
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PIPE_A,4,2                     ## @PIPE_A
	.comm	_CURSIZE,4,2                    ## @CURSIZE
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0, #24]
	bl	_to_i915
	mov	x19, x0
	cbz	x24, LBB0_4
; %bb.1:
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldp	w23, w25, [x24, #8]
	ldr	x22, [x24]
	mov	x0, x21
	bl	_i845_cursor_ctl_crtc
	orr	x22, x0, x22
	orr	w21, w23, w25, lsl #12
	mov	x0, x24
	bl	_intel_cursor_base
	mov	x23, x0
	mov	x0, x24
	bl	_intel_cursor_position
	mov	x24, x0
	b	LBB0_5
LBB0_3:
	mov	x24, #0
LBB0_4:
	mov	x21, #0
	mov	x23, #0
	mov	x22, #0
LBB0_5:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	cmp	x8, x23
	b.ne	LBB0_9
; %bb.6:
	ldr	x8, [x20, #8]
	cmp	x8, x21
	b.ne	LBB0_9
; %bb.7:
	ldr	x8, [x20, #16]
	cmp	x8, x22
	b.ne	LBB0_9
; %bb.8:
Lloh0:
	adrp	x8, _PIPE_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIPE_A@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_CURPOS
	mov	x1, x24
	bl	_I915_WRITE_FW
	b	LBB0_10
LBB0_9:
Lloh3:
	adrp	x25, _PIPE_A@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PIPE_A@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_CURCNTR
	mov	x1, #0
	bl	_I915_WRITE_FW
	ldr	w0, [x25]
	bl	_CURBASE
	mov	x1, x23
	bl	_I915_WRITE_FW
Lloh5:
	adrp	x8, _CURSIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CURSIZE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_I915_WRITE_FW
	ldr	w0, [x25]
	bl	_CURPOS
	mov	x1, x24
	bl	_I915_WRITE_FW
	ldr	w0, [x25]
	bl	_CURCNTR
	mov	x1, x22
	bl	_I915_WRITE_FW
	stp	x23, x21, [x20]
	str	x22, [x20, #16]
LBB0_10:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PIPE_A,4,2                     ; @PIPE_A
	.comm	_CURSIZE,4,2                    ; @CURSIZE
	.no_dead_strip	_i845_update_cursor
.subsections_via_symbols
