	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ilk_plane_wm_max
_ilk_plane_wm_max:                      ## @ilk_plane_wm_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	%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
	movl	%r8d, %r14d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_ilk_display_fifo_size
	movl	%eax, %ebx
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	cmpq	$0, 8(%r13)
	je	LBB0_11
LBB0_2:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	cmpl	$2, (%r13)
	jl	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	callq	_INTEL_INFO
	movq	%rax, %rcx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_INTEL_GEN
	cmpl	$7, %eax
	setl	%cl
	shrl	%cl, %ebx
LBB0_5:
	cmpq	$0, 8(%r13)
	je	LBB0_10
## %bb.6:
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.7:
	movq	_INTEL_DDB_PART_5_6@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_9
## %bb.8:
	testl	%r14d, %r14d
	leal	(%rbx,%rbx,4), %eax
	cmovel	%ebx, %eax
	movl	$2863311531, %ebx               ## imm = 0xAAAAAAAB
	imulq	%rax, %rbx
	shrq	$34, %rbx
	jmp	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	shrl	%ebx
LBB0_10:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_ilk_plane_wm_reg_max
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_min                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_DDB_PART_5_6,4,2         ## @INTEL_DDB_PART_5_6
	.no_dead_strip	_ilk_plane_wm_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_max
_ilk_plane_wm_max:                      ; @ilk_plane_wm_max
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x4
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x21, x0
	bl	_ilk_display_fifo_size
	mov	x22, x0
	cbz	w19, LBB0_2
; %bb.1:
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_9
LBB0_2:
	cbz	w20, LBB0_4
; %bb.3:
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_INTEL_INFO
	ldr	w8, [x0]
	udiv	w22, w22, w8
	mov	x0, x21
	bl	_INTEL_GEN
	cmp	w0, #7
	cset	w8, lt
	lsr	w22, w22, w8
LBB0_5:
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_11
; %bb.6:
	cmp	w20, #1
	b.lt	LBB0_10
; %bb.7:
Lloh0:
	adrp	x8, _INTEL_DDB_PART_5_6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_DDB_PART_5_6@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_10
; %bb.8:
	add	w8, w22, w22, lsl #2
	cmp	w19, #0
	csel	w8, w22, w8, eq
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	umull	x8, w8, w9
	lsr	x22, x8, #34
	b	LBB0_11
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	lsr	w22, w22, #1
LBB0_11:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_ilk_plane_wm_reg_max
	mov	x1, x0
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_min
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_DDB_PART_5_6,4,2         ; @INTEL_DDB_PART_5_6
	.no_dead_strip	_ilk_plane_wm_max
.subsections_via_symbols
