	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_raw_plane_wm_set
_vlv_raw_plane_wm_set:                  ## @vlv_raw_plane_wm_set
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_i915
	movq	%rax, %rdi
	callq	_intel_wm_num_levels
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%r14d, %ecx
	jle	LBB0_7
## %bb.1:
	movq	(%r12), %r9
	movl	%r15d, %edx
	movslq	%r14d, %rdi
	movslq	%ecx, %rax
	movq	%rax, %r8
	subq	%rdi, %r8
	movq	%rdi, %rcx
	notq	%rcx
	addq	%rax, %rcx
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	%r8, %rcx
	andq	$-2, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%rdi,8), %rsi
	xorl	%ebx, %ebx
	cmpq	%r13, (%rsi,%rdx,8)
	setne	%bl
	orl	%eax, %ebx
	movq	%r13, (%rsi,%rdx,8)
	movq	8(%r9,%rdi,8), %rsi
	xorl	%eax, %eax
	cmpq	%r13, (%rsi,%rdx,8)
	setne	%al
	orl	%ebx, %eax
	movq	%r13, (%rsi,%rdx,8)
	addq	$2, %rdi
	addq	$-2, %rcx
	jne	LBB0_4
LBB0_5:
	testb	$1, %r8b
	je	LBB0_7
## %bb.6:
	movq	(%r9,%rdi,8), %rcx
	xorl	%esi, %esi
	cmpq	%r13, (%rcx,%rdx,8)
	setne	%sil
	orl	%esi, %eax
	movq	%r13, (%rcx,%rdx,8)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vlv_raw_plane_wm_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_raw_plane_wm_set
_vlv_raw_plane_wm_set:                  ; @vlv_raw_plane_wm_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_to_i915
	bl	_intel_wm_num_levels
	cmp	w0, w20
	b.le	LBB0_3
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x22]
	mov	w10, w21
	sxtw	x11, w8
	add	x8, x9, w20, sxtw #3
	sub	x9, x11, w20, sxtw
	lsl	x10, x10, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8], #8
	ldr	x12, [x11, x10]
	cmp	x12, x19
	cset	w12, ne
	orr	w0, w0, w12
	str	x19, [x11, x10]
	subs	x9, x9, #1
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vlv_raw_plane_wm_set
.subsections_via_symbols
