	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivb_update_cursor
_ivb_update_cursor:                     ## @ivb_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
	movl	%esi, %r15d
	movq	(%rdi), %r12
	callq	_to_intel_crtc
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	setne	%r14b
	cmpl	%r14d, 4(%rax)
	je	LBB0_7
## %bb.1:
	movq	%rax, %r13
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_CURCNTR_IVB
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r12d
	movq	_CURSOR_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %r15d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_3
## %bb.2:
	notl	%eax
	andl	%eax, %r12d
	movq	_CURSOR_MODE_64_ARGB_AX@GOTPCREL(%rip), %rax
	movq	_MCURSOR_GAMMA_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rax), %r12d
	orl	(%rcx), %r12d
	jmp	LBB0_4
LBB0_3:
	movq	_MCURSOR_GAMMA_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, %r12d
	movq	_CURSOR_MODE_DISABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_IS_HASWELL
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_CURSOR_PIPE_CSC_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_6:
	orl	%r12d, %r15d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_CURCNTR_IVB
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_I915_WRITE
	movl	%r14d, 4(%r13)
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_7:
	movl	%ebx, %edi
	callq	_CURBASE_IVB
	movl	%eax, %edi
	movl	%r15d, %esi
	addq	$24, %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	_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
	.comm	_CURSOR_PIPE_CSC_ENABLE,4,2     ## @CURSOR_PIPE_CSC_ENABLE
	.no_dead_strip	_ivb_update_cursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivb_update_cursor
_ivb_update_cursor:                     ; @ivb_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
	ldr	x22, [x0]
	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_IVB
	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:
	bic	w8, w0, w8
Lloh3:
	adrp	x9, _CURSOR_MODE_64_ARGB_AX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CURSOR_MODE_64_ARGB_AX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MCURSOR_GAMMA_ENABLE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MCURSOR_GAMMA_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w8, w9
	orr	w24, w8, w10
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x9, _MCURSOR_GAMMA_ENABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MCURSOR_GAMMA_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh12:
	adrp	x9, _CURSOR_MODE_DISABLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CURSOR_MODE_DISABLE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w24, w8, w9
LBB0_4:
	mov	x0, x22
	bl	_IS_HASWELL
Lloh15:
	adrp	x8, _CURSOR_PIPE_CSC_ENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CURSOR_PIPE_CSC_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w22, w8, w24
	mov	x0, x21
	bl	_CURCNTR_IVB
	mov	x1, x22
	bl	_I915_WRITE
	str	w23, [x20, #4]
LBB0_5:
	mov	x0, x21
	bl	_CURBASE_IVB
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CURSOR_MODE,4,2                ; @CURSOR_MODE
	.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
	.comm	_CURSOR_PIPE_CSC_ENABLE,4,2     ; @CURSOR_PIPE_CSC_ENABLE
	.no_dead_strip	_ivb_update_cursor
.subsections_via_symbols
