	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_legacy_cursor_update
_intel_legacy_cursor_update:            ## @intel_legacy_cursor_update
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	48(%rbp), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	40(%rbp), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	32(%rbp), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	24(%rbp), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	16(%rbp), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	4(%rsi), %edi
	callq	_to_i915
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_to_intel_plane
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	callq	_to_intel_crtc_state
	cmpl	$0, (%rax)
	je	LBB0_25
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_needs_modeset
	testq	%rax, %rax
	jne	LBB0_25
## %bb.2:
	cmpq	$0, 8(%rbx)
	jne	LBB0_25
## %bb.3:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	72(%rdx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	callq	_try_wait_for_completion
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_25
LBB0_5:
	cmpq	%r12, 64(%rdx)
	jne	LBB0_25
## %bb.6:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, (%rdx)
	jne	LBB0_25
## %bb.7:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, 8(%rdx)
	jne	LBB0_25
## %bb.8:
	cmpl	%r13d, 16(%rdx)
	jne	LBB0_25
## %bb.9:
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 20(%rdx)
	jne	LBB0_25
## %bb.10:
	cmpq	$0, 40(%rdx)
	setne	%al
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	sete	%cl
	cmpb	%al, %cl
	je	LBB0_25
## %bb.11:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_intel_plane_duplicate_state
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%r12, %rdi
	callq	_intel_crtc_duplicate_state
	movl	%eax, %edi
	callq	_to_intel_crtc_state
	testq	%rax, %rax
	je	LBB0_28
## %bb.14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	_drm_atomic_set_fb_for_plane
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 56(%rcx)
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 48(%rcx)
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 8(%rcx)
	movl	%r14d, 24(%rcx)
	movl	%r15d, 28(%rcx)
	movl	%r13d, 16(%rcx)
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 20(%rcx)
	movq	%rcx, %r15
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_to_intel_plane_state
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_to_intel_plane_state
	movq	%rbx, %rdi
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_intel_plane_atomic_check_with_state
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.15:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_mutex_lock_interruptible
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_to_intel_plane_state
	movl	%eax, %edi
	callq	_intel_plane_pin_fb
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.17:
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_to_intel_frontbuffer
	movq	_ORIGIN_FLIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_intel_frontbuffer_flush
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rdi
	callq	_to_intel_frontbuffer
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_to_intel_frontbuffer
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_intel_frontbuffer_track
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	movl	%eax, 4(%rbx)
	cmpq	$0, 32(%rcx)
	je	LBB0_19
## %bb.18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_to_intel_plane_state
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_intel_update_plane
	jmp	LBB0_20
LBB0_25:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movl	%r13d, %r9d
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_atomic_helper_update_plane ## TAILCALL
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_27
LBB0_28:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_23
LBB0_19:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_intel_disable_plane
LBB0_20:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_to_intel_plane_state
	movl	%eax, %edi
	callq	_intel_plane_unpin_fb
LBB0_21:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_mutex_unlock
	movq	-88(%rbp), %r13                 ## 8-byte Reload
LBB0_22:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_intel_crtc_destroy_state
LBB0_23:
	testl	%r15d, %r15d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_26
## %bb.24:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_intel_plane_destroy_state
	jmp	LBB0_27
LBB0_26:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_intel_plane_destroy_state
	xorl	%r15d, %r15d
LBB0_27:
	movl	%r15d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ORIGIN_FLIP,4,2                ## @ORIGIN_FLIP
	.no_dead_strip	_intel_legacy_cursor_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_legacy_cursor_update
_intel_legacy_cursor_update:            ; @intel_legacy_cursor_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x7
	str	w6, [sp, #52]                   ; 4-byte Folded Spill
	mov	x27, x5
	mov	x22, x4
	mov	x21, x3
	str	x2, [sp, #40]                   ; 8-byte Folded Spill
	mov	x20, x1
	mov	x25, x0
	ldp	x23, x28, [x29, #32]
	ldp	x19, x24, [x29, #16]
	ldr	w0, [x1, #4]
	bl	_to_i915
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	str	x25, [sp, #56]                  ; 8-byte Folded Spill
	mov	x0, x25
	bl	_to_intel_plane
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w0, [x20]
	bl	_to_intel_crtc_state
	ldr	w8, [x0]
	cbz	w8, LBB0_18
; %bb.1:
	mov	x25, x0
	bl	_needs_modeset
	cbnz	x0, LBB0_18
; %bb.2:
	ldr	x8, [x25, #8]
	cbnz	x8, LBB0_18
; %bb.3:
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x10, [x8]
	ldr	x0, [x10, #72]
	cbz	x0, LBB0_5
; %bb.4:
	str	x10, [sp, #16]                  ; 8-byte Folded Spill
	bl	_try_wait_for_completion
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	cbz	w0, LBB0_18
LBB0_5:
	ldr	x8, [x10, #64]
	cmp	x8, x20
	b.ne	LBB0_18
; %bb.6:
	ldr	x8, [x10]
	cmp	x8, x24
	b.ne	LBB0_18
; %bb.7:
	ldr	x8, [x10, #8]
	cmp	x8, x23
	b.ne	LBB0_18
; %bb.8:
	ldr	w8, [x10, #16]
	cmp	w8, w27
	b.ne	LBB0_18
; %bb.9:
	ldr	w8, [x10, #20]
	ldr	w9, [sp, #52]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.10:
	ldr	x8, [x10, #40]
	cmp	x8, #0
	cset	w8, ne
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x9, #0
	cset	w9, eq
	cmp	w9, w8
	b.eq	LBB0_18
; %bb.11:
	str	x10, [sp, #16]                  ; 8-byte Folded Spill
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	bl	_intel_plane_duplicate_state
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	cbz	x0, LBB0_19
; %bb.12:
	mov	x0, x20
	bl	_intel_crtc_duplicate_state
	bl	_to_intel_crtc_state
	cbz	x0, LBB0_20
; %bb.13:
	str	x0, [sp]                        ; 8-byte Folded Spill
	ldr	x28, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x28
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	bl	_drm_atomic_set_fb_for_plane
	stp	x19, x26, [x28, #48]
	stp	x24, x23, [x28]
	stp	w21, w22, [x28, #24]
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	stp	w27, w8, [x28, #16]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_to_intel_plane_state
	mov	x21, x0
	mov	x0, x28
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	bl	_to_intel_plane_state
	mov	x3, x0
	mov	x0, x25
	mov	x1, x19
	mov	x2, x21
	bl	_intel_plane_atomic_check_with_state
	mov	x21, x0
	cbnz	w0, LBB0_24
; %bb.14:
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_mutex_lock_interruptible
	mov	x21, x0
	cbnz	w0, LBB0_24
; %bb.15:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_to_intel_plane_state
	bl	_intel_plane_pin_fb
	mov	x21, x0
	cbnz	w0, LBB0_23
; %bb.16:
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	mov	x0, x19
	bl	_to_intel_frontbuffer
Lloh0:
	adrp	x8, _ORIGIN_FLIP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ORIGIN_FLIP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_intel_frontbuffer_flush
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x0, [x8, #40]
	bl	_to_intel_frontbuffer
	mov	x22, x0
	mov	x0, x19
	bl	_to_intel_frontbuffer
	mov	x1, x0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w2, [x8]
	mov	x0, x22
	bl	_intel_frontbuffer_track
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	x9, [x8]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	w8, [x8, #4]
	str	w8, [x25, #4]
	ldr	x8, [x9, #32]
	cbz	x8, LBB0_21
; %bb.17:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_to_intel_plane_state
	mov	x2, x0
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x25
	bl	_intel_update_plane
	b	LBB0_22
LBB0_18:
	stp	x23, x28, [x29, #32]
	stp	x19, x24, [x29, #16]
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	mov	x1, x20
	ldr	x2, [sp, #40]                   ; 8-byte Folded Reload
	mov	x3, x21
	mov	x4, x22
	mov	x5, x27
	ldr	w6, [sp, #52]                   ; 4-byte Folded Reload
	mov	x7, x26
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_drm_atomic_helper_update_plane
LBB0_19:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_29
LBB0_20:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_25
LBB0_21:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x25
	bl	_intel_disable_plane
LBB0_22:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_to_intel_plane_state
	bl	_intel_plane_unpin_fb
LBB0_23:
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_mutex_unlock
	ldr	x19, [sp]                       ; 8-byte Folded Reload
LBB0_24:
	mov	x0, x20
	mov	x1, x19
	bl	_intel_crtc_destroy_state
LBB0_25:
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	cbz	w21, LBB0_27
; %bb.26:
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	b	LBB0_28
LBB0_27:
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
LBB0_28:
	bl	_intel_plane_destroy_state
LBB0_29:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ORIGIN_FLIP,4,2                ; @ORIGIN_FLIP
	.no_dead_strip	_intel_legacy_cursor_update
.subsections_via_symbols
