	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ilk_compute_intermediate_wm
_ilk_compute_intermediate_wm:           ## @ilk_compute_intermediate_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	64(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_to_i915
	movq	%rax, %r15
	movl	60(%rbx), %edi
	callq	_to_intel_atomic_state
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_intel_atomic_get_old_crtc_state
	movq	%rax, %r12
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_ilk_wm_max_level
	movl	%eax, %r14d
	movups	8(%rbx), %xmm0
	movups	%xmm0, 32(%rbx)
	movq	24(%rbx), %rax
	movq	%rax, 48(%rbx)
	xorl	%r15d, %r15d
	cmpl	$0, 56(%rbx)
	je	LBB0_11
## %bb.1:
	leaq	56(%rbx), %rdi
	callq	_drm_atomic_crtc_needs_modeset
	testq	%rax, %rax
	jne	LBB0_11
## %bb.2:
	cmpq	$0, (%r13)
	jne	LBB0_11
## %bb.3:
	leaq	32(%rbx), %r13
	movl	24(%r12), %eax
	orl	%eax, 48(%rbx)
	movl	20(%r12), %eax
	orl	%eax, 44(%rbx)
	movl	16(%r12), %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	orl	%eax, 40(%rbx)
	testl	%r14d, %r14d
	js	LBB0_6
## %bb.4:
	movq	%r12, %r15
	movl	%r14d, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,4), %rax
	addq	$40, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r12
	movq	(%r13), %r13
	movq	8(%r15), %r14
	movl	32(%r14,%rbx), %eax
	andl	%eax, 32(%r13,%rbx)
	movq	24(%r13,%rbx), %rdi
	movq	24(%r14,%rbx), %rsi
	callq	_max
	movq	%rax, 24(%r13,%rbx)
	movq	16(%r13,%rbx), %rdi
	movq	16(%r14,%rbx), %rsi
	callq	_max
	movq	%rax, 16(%r13,%rbx)
	movq	8(%r13,%rbx), %rdi
	movq	8(%r14,%rbx), %rsi
	callq	_max
	movq	%rax, 8(%r13,%rbx)
	movq	(%r13,%rbx), %rdi
	movq	(%r14,%rbx), %rsi
	callq	_max
	movq	%rax, (%r13,%rbx)
	movq	%r12, %r13
	addq	$40, %rbx
	cmpq	%rbx, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ilk_validate_pipe_wm
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	8(%rbx), %rsi
	movq	%r13, %rdi
	movl	$24, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	$1, (%rbx)
LBB0_10:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ilk_compute_intermediate_wm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ilk_compute_intermediate_wm
_ilk_compute_intermediate_wm:           ; @ilk_compute_intermediate_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	x19, x0
	ldr	w0, [x0, #64]
	bl	_to_intel_crtc
	mov	x21, x0
	ldr	w0, [x0]
	bl	_to_i915
	mov	x20, x0
	ldr	w0, [x19, #60]
	bl	_to_intel_atomic_state
	mov	x23, x0
	mov	x1, x21
	bl	_intel_atomic_get_old_crtc_state
	mov	x22, x0
	mov	x0, x20
	bl	_ilk_wm_max_level
	mov	x21, x19
	ldr	w8, [x21, #56]!
	ldur	q0, [x21, #-48]
	stur	q0, [x21, #-24]
	ldur	x9, [x21, #-32]
	stur	x9, [x21, #-8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x24, x0
	mov	x0, x21
	bl	_drm_atomic_crtc_needs_modeset
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x23]
	cbz	x8, LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	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
	ret
LBB0_5:
	sub	x23, x21, #24
	ldr	w8, [x22, #24]
	ldr	w9, [x19, #48]
	orr	w8, w9, w8
	str	w8, [x19, #48]
	ldr	d0, [x22, #16]
	ldr	d1, [x19, #40]
	orr.8b	v0, v1, v0
	str	d0, [x19, #40]
	tbnz	w24, #31, LBB0_8
; %bb.6:
	mov	x25, #0
	add	w8, w24, #1
	mov	w9, #40
	umull	x24, w8, w9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x9, [x22, #8]
	add	x26, x9, x25
	ldr	w9, [x26, #32]
	add	x27, x8, x25
	ldr	w8, [x27, #32]
	and	w8, w8, w9
	str	w8, [x27, #32]
	ldr	x0, [x27, #24]
	ldr	x1, [x26, #24]
	bl	_max
	str	x0, [x27, #24]
	ldr	x0, [x27, #16]
	ldr	x1, [x26, #16]
	bl	_max
	str	x0, [x27, #16]
	ldr	x0, [x27, #8]
	ldr	x1, [x26, #8]
	bl	_max
	str	x0, [x27, #8]
	ldr	x0, [x27]
	ldr	x1, [x26]
	bl	_max
	str	x0, [x27]
	add	x25, x25, #40
	cmp	x24, x25
	b.ne	LBB0_7
LBB0_8:
	mov	x0, x20
	mov	x1, x23
	bl	_ilk_validate_pipe_wm
	cbz	w0, LBB0_11
; %bb.9:
	sub	x1, x21, #48
	mov	x0, x23
	mov	w2, #24
	bl	_memcmp
	cbz	x0, LBB0_4
; %bb.10:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_4
LBB0_11:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ilk_compute_intermediate_wm
.subsections_via_symbols
