	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_decode_mi_display_flip
_skl_decode_mi_display_flip:            ## @skl_decode_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
	movq	%rsi, %r13
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_cmd_val
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_cmd_val
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_cmd_val
	movl	%eax, %ebx
	movl	$12, %edi
	movl	$8, %esi
	callq	_GENMASK
                                        ## kill: def $eax killed $eax def $rax
	andl	%r14d, %eax
	sarl	$8, %eax
	movq	_PRIMARY_PLANE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 40(%r13)
	leal	-128(%rax), %ecx
	cmpl	$5, %ecx
	ja	LBB0_11
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_10:
	movq	_PIPE_C@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
	movq	_SPRITE_C_FLIP_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_11:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_gvt_vgpu_err
	movq	_EBADRQC@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_9:
	movq	_PIPE_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
	movq	_SPRITE_B_FLIP_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_PIPE_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
	movq	_SPRITE_A_FLIP_DONE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	movq	_SPRITE_PLANE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r13)
	jmp	LBB0_8
LBB0_5:
	movq	_PIPE_C@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
	movq	_PRIMARY_C_FLIP_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_PIPE_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
	movq	_PRIMARY_B_FLIP_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_PIPE_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
	movq	_PRIMARY_A_FLIP_DONE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
LBB0_8:
	movl	$15, %edi
	movl	$6, %esi
	callq	_GENMASK
	andl	%r15d, %eax
	sarl	$6, %eax
	movl	%eax, (%r13)
	xorl	%r12d, %r12d
	movl	$2, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	andl	%r15d, %eax
	movl	%eax, 4(%r13)
	movl	$31, %edi
	movl	$12, %esi
	callq	_GENMASK
	andl	%ebx, %eax
	sarl	$12, %eax
	movl	%eax, 8(%r13)
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	andl	%ebx, %eax
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	sete	%cl
	movl	%ecx, 12(%r13)
	movq	16(%r13), %rdi
	callq	_DSPCNTR
	movl	%eax, 32(%r13)
	movq	16(%r13), %rdi
	callq	_DSPSTRIDE
	movl	%eax, 28(%r13)
	movq	16(%r13), %rdi
	callq	_DSPSURF
	movl	%eax, 24(%r13)
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_PRIMARY_PLANE,8,3              ## @PRIMARY_PLANE
	.comm	_PIPE_A,8,3                     ## @PIPE_A
	.comm	_PRIMARY_A_FLIP_DONE,4,2        ## @PRIMARY_A_FLIP_DONE
	.comm	_PIPE_B,8,3                     ## @PIPE_B
	.comm	_PRIMARY_B_FLIP_DONE,4,2        ## @PRIMARY_B_FLIP_DONE
	.comm	_PIPE_C,8,3                     ## @PIPE_C
	.comm	_PRIMARY_C_FLIP_DONE,4,2        ## @PRIMARY_C_FLIP_DONE
	.comm	_SPRITE_A_FLIP_DONE,4,2         ## @SPRITE_A_FLIP_DONE
	.comm	_SPRITE_PLANE,8,3               ## @SPRITE_PLANE
	.comm	_SPRITE_B_FLIP_DONE,4,2         ## @SPRITE_B_FLIP_DONE
	.comm	_SPRITE_C_FLIP_DONE,4,2         ## @SPRITE_C_FLIP_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown plane code %d\n"

	.comm	_EBADRQC,4,2                    ## @EBADRQC
	.no_dead_strip	_skl_decode_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 skl_decode_mi_display_flip
_skl_decode_mi_display_flip:            ; @skl_decode_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
	mov	x19, x1
	mov	x20, x0
	mov	w1, #0
	bl	_cmd_val
	mov	x22, x0
	mov	x0, x20
	mov	w1, #1
	bl	_cmd_val
	mov	x21, x0
	mov	x0, x20
	mov	w1, #2
	bl	_cmd_val
	mov	x20, x0
	mov	w0, #12
	mov	w1, #8
	bl	_GENMASK
	and	w8, w0, w22
	asr	w1, w8, #8
Lloh0:
	adrp	x8, _PRIMARY_PLANE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRIMARY_PLANE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19, #40]
	sub	w8, w1, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh5:
	adrp	x8, _PIPE_C@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PIPE_C@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh8:
	adrp	x8, _SPRITE_C_FLIP_DONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SPRITE_C_FLIP_DONE@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gvt_vgpu_err
Lloh12:
	adrp	x8, _EBADRQC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBADRQC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_4:
Lloh15:
	adrp	x8, _PIPE_B@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PIPE_B@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh18:
	adrp	x8, _SPRITE_B_FLIP_DONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SPRITE_B_FLIP_DONE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _PIPE_A@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PIPE_A@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh23:
	adrp	x8, _SPRITE_A_FLIP_DONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SPRITE_A_FLIP_DONE@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh25:
	adrp	x8, _SPRITE_PLANE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SPRITE_PLANE@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x19, #40]
	b	LBB0_11
LBB0_7:
Lloh28:
	adrp	x8, _PIPE_C@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PIPE_C@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh31:
	adrp	x8, _PRIMARY_C_FLIP_DONE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PRIMARY_C_FLIP_DONE@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh33:
	adrp	x8, _PIPE_B@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PIPE_B@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh36:
	adrp	x8, _PRIMARY_B_FLIP_DONE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PRIMARY_B_FLIP_DONE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh38:
	adrp	x8, _PIPE_A@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PIPE_A@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh41:
	adrp	x8, _PRIMARY_A_FLIP_DONE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PRIMARY_A_FLIP_DONE@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x19, #48]
LBB0_11:
	mov	w0, #15
	mov	w1, #6
	bl	_GENMASK
	and	w8, w0, w21
	asr	w8, w8, #6
	str	w8, [x19]
	mov	w0, #2
	mov	w1, #0
	bl	_GENMASK
	and	w8, w0, w21
	str	w8, [x19, #4]
	mov	w0, #31
	mov	w1, #12
	bl	_GENMASK
	and	w8, w0, w20
	asr	w8, w8, #12
	str	w8, [x19, #8]
	mov	w0, #1
	mov	w1, #0
	bl	_GENMASK
	and	w8, w0, w20
	cmp	w8, #1
	cset	w8, eq
	str	w8, [x19, #12]
	ldr	x0, [x19, #16]
	bl	_DSPCNTR
	str	w0, [x19, #32]
	ldr	x0, [x19, #16]
	bl	_DSPSTRIDE
	str	w0, [x19, #28]
	ldr	x0, [x19, #16]
	bl	_DSPSURF
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #24]
LBB0_12:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_PRIMARY_PLANE,8,3              ; @PRIMARY_PLANE
	.comm	_PIPE_A,8,3                     ; @PIPE_A
	.comm	_PRIMARY_A_FLIP_DONE,4,2        ; @PRIMARY_A_FLIP_DONE
	.comm	_PIPE_B,8,3                     ; @PIPE_B
	.comm	_PRIMARY_B_FLIP_DONE,4,2        ; @PRIMARY_B_FLIP_DONE
	.comm	_PIPE_C,8,3                     ; @PIPE_C
	.comm	_PRIMARY_C_FLIP_DONE,4,2        ; @PRIMARY_C_FLIP_DONE
	.comm	_SPRITE_A_FLIP_DONE,4,2         ; @SPRITE_A_FLIP_DONE
	.comm	_SPRITE_PLANE,8,3               ; @SPRITE_PLANE
	.comm	_SPRITE_B_FLIP_DONE,4,2         ; @SPRITE_B_FLIP_DONE
	.comm	_SPRITE_C_FLIP_DONE,4,2         ; @SPRITE_C_FLIP_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown plane code %d\n"

	.comm	_EBADRQC,4,2                    ; @EBADRQC
	.no_dead_strip	_skl_decode_mi_display_flip
.subsections_via_symbols
