	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen8_check_mi_display_flip
_gen8_check_mi_display_flip:            ## @gen8_check_mi_display_flip
	.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
	cmpl	$0, 16(%rsi)
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_INTEL_GEN
	movl	%eax, %ebx
	movq	(%r15), %rdi
	movl	12(%r14), %esi
	callq	_vgpu_vreg_t
	movl	%eax, %r13d
	cmpl	$9, %ebx
	jl	LBB0_3
## %bb.2:
	movl	$9, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	movl	%eax, %r12d
	andl	%r13d, %r12d
	movq	(%r15), %rdi
	movl	8(%r14), %esi
	callq	_vgpu_vreg_t
	movl	%eax, %r15d
	movl	$12, %edi
	movl	$10, %esi
	callq	_GENMASK
	movl	%eax, %ebx
	andl	%r15d, %ebx
	sarl	$10, %ebx
	cmpl	(%r14), %r12d
	jne	LBB0_5
	jmp	LBB0_6
LBB0_3:
	movl	$15, %edi
	movl	$6, %esi
	callq	_GENMASK
	movl	%eax, %r12d
	andl	%r13d, %r12d
	sarl	$6, %r12d
	movq	(%r15), %rdi
	movl	8(%r14), %esi
	callq	_vgpu_vreg_t
	movl	%eax, %ebx
	shrl	$10, %ebx
	andl	$1, %ebx
	cmpl	(%r14), %r12d
	je	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_gvt_dbg_cmd
LBB0_6:
	cmpl	4(%r14), %ebx
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_gvt_dbg_cmd
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot change stride during async flip\n"

L_.str.1:                               ## @.str.1
	.asciz	"cannot change tile during async flip\n"

	.no_dead_strip	_gen8_check_mi_display_flip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen8_check_mi_display_flip
_gen8_check_mi_display_flip:            ; @gen8_check_mi_display_flip
	.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, [x1, #16]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x0, [x8]
	bl	_INTEL_GEN
	mov	x22, x0
	ldr	x0, [x20]
	ldr	w1, [x19, #12]
	bl	_vgpu_vreg_t
	mov	x21, x0
	cmp	w22, #9
	b.lt	LBB0_3
; %bb.2:
	mov	w0, #9
	mov	w1, #0
	bl	_GENMASK
	and	w21, w0, w21
	ldr	x0, [x20]
	ldr	w1, [x19, #8]
	bl	_vgpu_vreg_t
	mov	x20, x0
	mov	w0, #12
	mov	w1, #10
	bl	_GENMASK
	and	w8, w0, w20
	asr	w20, w8, #10
	b	LBB0_4
LBB0_3:
	mov	w0, #15
	mov	w1, #6
	bl	_GENMASK
	and	w8, w0, w21
	asr	w21, w8, #6
	ldr	x0, [x20]
	ldr	w1, [x19, #8]
	bl	_vgpu_vreg_t
	ubfx	w20, w0, #10, #1
LBB0_4:
	ldr	w8, [x19]
	cmp	w21, w8
	b.eq	LBB0_6
; %bb.5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gvt_dbg_cmd
LBB0_6:
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.eq	LBB0_8
; %bb.7:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_gvt_dbg_cmd
LBB0_8:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot change stride during async flip\n"

l_.str.1:                               ; @.str.1
	.asciz	"cannot change tile during async flip\n"

	.no_dead_strip	_gen8_check_mi_display_flip
.subsections_via_symbols
