	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ilk_validate_wm_level
_ilk_validate_wm_level:                 ## @ilk_validate_wm_level
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	cmpl	$0, (%rdx)
	je	LBB0_14
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	8(%rdx), %rdx
	movq	(%rsi), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_2
## %bb.7:
	movl	$0, (%rbx)
	testl	%edi, %edi
	jne	LBB0_14
## %bb.8:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_DRM_DEBUG_KMS
	movq	16(%rbx), %rdx
	movq	8(%r14), %rcx
	jmp	LBB0_9
LBB0_2:
	movq	16(%rbx), %rdx
	movq	8(%r14), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	24(%rbx), %rax
	cmpq	16(%r14), %rax
	setle	%al
LBB0_5:
	movzbl	%al, %r15d
	movl	%r15d, (%rbx)
	testl	%edi, %edi
	jne	LBB0_14
## %bb.6:
	testb	%al, %al
	jne	LBB0_14
LBB0_9:
	cmpq	%rcx, %rdx
	jle	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	callq	_DRM_DEBUG_KMS
LBB0_11:
	movq	24(%rbx), %rdx
	movq	16(%r14), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rdi
	xorl	%esi, %esi
	callq	_DRM_DEBUG_KMS
LBB0_13:
	movq	_u32@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	8(%rbx), %rsi
	movq	(%r14), %rdx
	callq	_min_t
	movq	%rax, 8(%rbx)
	movl	(%r12), %edi
	movq	16(%rbx), %rsi
	movq	8(%r14), %rdx
	callq	_min_t
	movq	%rax, 16(%rbx)
	movl	(%r12), %edi
	movq	24(%rbx), %rsi
	movq	16(%r14), %rdx
	callq	_min_t
	movq	%rax, 24(%rbx)
	movl	$1, (%rbx)
LBB0_14:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Primary WM%d too large %u (max %u)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Sprite WM%d too large %u (max %u)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Cursor WM%d too large %u (max %u)\n"

	.comm	_u32,4,2                        ## @u32
	.no_dead_strip	_ilk_validate_wm_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ilk_validate_wm_level
_ilk_validate_wm_level:                 ; @ilk_validate_wm_level
	.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
	ldr	w8, [x2]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	ldr	x2, [x2, #8]
	ldr	x3, [x1]
	cmp	x2, x3
	b.le	LBB0_5
; %bb.2:
	mov	w21, #0
	str	wzr, [x19]
	cbnz	w0, LBB0_14
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_DRM_DEBUG_KMS
	mov	w21, #0
	ldr	x2, [x19, #16]
	ldr	x3, [x20, #8]
	b	LBB0_9
LBB0_4:
	mov	w21, #0
	b	LBB0_14
LBB0_5:
	ldr	x2, [x19, #16]
	ldr	x3, [x20, #8]
	cmp	x2, x3
	b.le	LBB0_7
; %bb.6:
	mov	w21, #0
	str	w21, [x19]
	cbz	w0, LBB0_8
	b	LBB0_14
LBB0_7:
	ldr	x8, [x19, #24]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	cset	w21, le
	str	w21, [x19]
	cbnz	w0, LBB0_14
LBB0_8:
	tbnz	w21, #0, LBB0_14
LBB0_9:
	cmp	x2, x3
	b.le	LBB0_11
; %bb.10:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_DRM_DEBUG_KMS
LBB0_11:
	ldr	x2, [x19, #24]
	ldr	x3, [x20, #16]
	cmp	x2, x3
	b.le	LBB0_13
; %bb.12:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #0
	bl	_DRM_DEBUG_KMS
LBB0_13:
Lloh6:
	adrp	x22, _u32@GOTPAGE
Lloh7:
	ldr	x22, [x22, _u32@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x1, [x19, #8]
	ldr	x2, [x20]
	bl	_min_t
	str	x0, [x19, #8]
	ldr	w0, [x22]
	ldr	x1, [x19, #16]
	ldr	x2, [x20, #8]
	bl	_min_t
	str	x0, [x19, #16]
	ldr	w0, [x22]
	ldr	x1, [x19, #24]
	ldr	x2, [x20, #16]
	bl	_min_t
	str	x0, [x19, #24]
	mov	w8, #1
	str	w8, [x19]
LBB0_14:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Primary WM%d too large %u (max %u)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Sprite WM%d too large %u (max %u)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Cursor WM%d too large %u (max %u)\n"

	.comm	_u32,4,2                        ; @u32
	.no_dead_strip	_ilk_validate_wm_level
.subsections_via_symbols
