	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_cursor_allocation
_skl_cursor_allocation:                 ## @skl_cursor_allocation
	.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, %r14d
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_i915
	movq	%rax, %rdi
	callq	_ilk_wm_max_level
	movl	%eax, %r15d
	movl	$0, -48(%rbp)
	movq	_DRM_FORMAT_ARGB8888@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_drm_format_info
	movq	_DRM_FORMAT_MOD_LINEAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_DRM_MODE_ROTATE_0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	(%r12), %r9d
	leaq	-56(%rbp), %rbx
	movq	%r12, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movl	%eax, %edx
	pushq	$0
	pushq	%rbx
	callq	_skl_compute_wm_params
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_WARN_ON
	testl	%r15d, %r15d
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	js	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rcx, %r8
	callq	_skl_compute_plane_wm
	movl	-48(%rbp), %eax
	movq	_U16_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.3:
	negl	%r15d
	movl	$1, %ebx
	leaq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r13d
	leal	(%r15,%rbx), %eax
	cmpl	$1, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rcx
	movq	%r14, %r8
	callq	_skl_compute_plane_wm
	movl	-48(%rbp), %eax
	incl	%ebx
	movq	_U16_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
	jmp	LBB0_6
LBB0_1:
	xorl	%r13d, %r13d
LBB0_6:
	cmpl	$1, -60(%rbp)                   ## 4-byte Folded Reload
	movl	$32, %eax
	movl	$8, %edi
	cmovel	%eax, %edi
	movl	%r13d, %esi
	callq	_max
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_FORMAT_ARGB8888,4,2        ## @DRM_FORMAT_ARGB8888
	.comm	_DRM_FORMAT_MOD_LINEAR,4,2      ## @DRM_FORMAT_MOD_LINEAR
	.comm	_DRM_MODE_ROTATE_0,4,2          ## @DRM_MODE_ROTATE_0
	.comm	_U16_MAX,4,2                    ## @U16_MAX
	.no_dead_strip	_skl_cursor_allocation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_cursor_allocation
_skl_cursor_allocation:                 ; @skl_cursor_allocation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_to_i915
	bl	_ilk_wm_max_level
	mov	x21, x0
	str	wzr, [sp, #8]
Lloh0:
	adrp	x8, _DRM_FORMAT_ARGB8888@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_FORMAT_ARGB8888@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_drm_format_info
	mov	x2, x0
Lloh3:
	adrp	x8, _DRM_FORMAT_MOD_LINEAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_FORMAT_MOD_LINEAR@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _DRM_MODE_ROTATE_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_MODE_ROTATE_0@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	ldr	w5, [x20]
	mov	x6, sp
	mov	x0, x20
	mov	w1, #256
	mov	w7, #0
	bl	_skl_compute_wm_params
	bl	_WARN_ON
	tbnz	w21, #31, LBB0_5
; %bb.1:
	mov	x2, sp
	add	x3, sp, #8
	add	x4, sp, #8
	mov	x0, x20
	mov	w1, #0
	bl	_skl_compute_plane_wm
	mov	w22, #0
	ldr	w8, [sp, #8]
Lloh9:
	adrp	x24, _U16_MAX@GOTPAGE
Lloh10:
	ldr	x24, [x24, _U16_MAX@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.2:
	mov	w23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	cmp	w21, w23
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	mov	x2, sp
	add	x3, sp, #8
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x23
	bl	_skl_compute_plane_wm
	ldr	w8, [sp, #8]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
	mov	w8, #8
	mov	w9, #32
	cmp	w19, #1
	csel	w0, w9, w8, eq
	mov	x1, x22
	bl	_max
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_FORMAT_ARGB8888,4,2        ; @DRM_FORMAT_ARGB8888
	.comm	_DRM_FORMAT_MOD_LINEAR,4,2      ; @DRM_FORMAT_MOD_LINEAR
	.comm	_DRM_MODE_ROTATE_0,4,2          ; @DRM_MODE_ROTATE_0
	.comm	_U16_MAX,4,2                    ; @U16_MAX
	.no_dead_strip	_skl_cursor_allocation
.subsections_via_symbols
