	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_skl_write_cursor_wm            ## -- Begin function skl_write_cursor_wm
	.p2align	4, 0x90
_skl_write_cursor_wm:                   ## @skl_write_cursor_wm
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_to_i915
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_ilk_wm_max_level
	movl	(%rbx), %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %r12d
	movq	(%r15), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	shlq	$4, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx), %r15
	addq	$8, %r15
	movl	%eax, %eax
	leaq	4(,%rax,4), %r13
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_CUR_WM
	movq	(%r15), %rdx
	addq	%r14, %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_skl_write_wm_level
	incl	%ebx
	addq	$4, %r14
	cmpq	%r14, %r13
	jne	LBB0_2
LBB0_3:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,4), %r14
	movl	%r12d, %edi
	callq	_CUR_WM_TRANS
	shlq	$4, %rbx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	%rbx, %rdx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_skl_write_wm_level
	movl	%r12d, %edi
	callq	_CUR_BUF_CFG
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_skl_ddb_entry_write            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_skl_write_cursor_wm            ; -- Begin function skl_write_cursor_wm
	.p2align	2
_skl_write_cursor_wm:                   ; @skl_write_cursor_wm
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_to_i915
	mov	x19, x0
	bl	_ilk_wm_max_level
	ldp	w22, w20, [x20]
	ldp	x24, x23, [x21]
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x25, #0
	mov	w21, #0
	add	x8, x23, x22, lsl #4
	add	x26, x8, #8
	add	w8, w0, #1
	lsl	x27, x8, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_CUR_WM
	mov	x1, x0
	ldr	x8, [x26]
	add	x2, x8, x25
	mov	x0, x19
	bl	_skl_write_wm_level
	add	w21, w21, #1
	add	x25, x25, #4
	cmp	x27, x25
	b.ne	LBB0_2
LBB0_3:
	add	x21, x24, x22, lsl #2
	mov	x0, x20
	bl	_CUR_WM_TRANS
	mov	x1, x0
	add	x2, x23, x22, lsl #4
	mov	x0, x19
	bl	_skl_write_wm_level
	mov	x0, x20
	bl	_CUR_BUF_CFG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_skl_ddb_entry_write
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
