	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ilk_plane_wm_reg_max
_ilk_plane_wm_reg_max:                  ## @ilk_plane_wm_reg_max
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_INTEL_GEN
	cmpl	$8, %eax
	jl	LBB0_2
## %bb.1:
	testl	%r15d, %r15d
	movl	$255, %ecx
	movl	$2047, %eax                     ## imm = 0x7FF
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$7, %eax
	jl	LBB0_4
## %bb.3:
	testl	%r15d, %r15d
	movl	$127, %ecx
	movl	$1023, %eax                     ## imm = 0x3FF
	jmp	LBB0_7
LBB0_4:
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.6:
	testl	%r15d, %r15d
	movl	$63, %ecx
	movl	$255, %eax
	jmp	LBB0_7
LBB0_5:
	testl	%r15d, %r15d
	movl	$127, %ecx
	movl	$511, %eax                      ## imm = 0x1FF
LBB0_7:
	cmovel	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ilk_plane_wm_reg_max
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ilk_plane_wm_reg_max
_ilk_plane_wm_reg_max:                  ; @ilk_plane_wm_reg_max
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_INTEL_GEN
	cmp	w0, #7
	b.le	LBB0_2
; %bb.1:
	mov	w8, #2047
	mov	w9, #255
	cmp	w19, #0
	csel	w0, w9, w8, eq
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_INTEL_GEN
	mov	w8, #255
	mov	w9, #63
	cmp	w19, #0
	csel	w8, w9, w8, eq
	mov	w9, #511
	mov	w10, #127
	csel	w9, w10, w9, eq
	cmp	w20, #0
	csel	w8, w8, w9, ne
	mov	w9, #1023
	cmp	w19, #0
	csel	w9, w10, w9, eq
	cmp	w0, #7
	csel	w0, w8, w9, lt
LBB0_3:
	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	_ilk_plane_wm_reg_max
.subsections_via_symbols
