	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlv_dsi_wait_for_fifo_empty    ## -- Begin function vlv_dsi_wait_for_fifo_empty
	.p2align	4, 0x90
_vlv_dsi_wait_for_fifo_empty:           ## @vlv_dsi_wait_for_fifo_empty
	.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	%esi, %r14d
	movq	(%rdi), %rdi
	callq	_to_i915
	movq	_LP_CTRL_FIFO_EMPTY@GOTPCREL(%rip), %rcx
	movq	_HS_CTRL_FIFO_EMPTY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_LP_DATA_FIFO_EMPTY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	%rax, %r15
	movq	_HS_DATA_FIFO_EMPTY@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_MIPI_GEN_FIFO_STAT
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	movl	$100, %ecx
	callq	_intel_de_wait_for_set
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LP_CTRL_FIFO_EMPTY,4,2         ## @LP_CTRL_FIFO_EMPTY
	.comm	_HS_CTRL_FIFO_EMPTY,4,2         ## @HS_CTRL_FIFO_EMPTY
	.comm	_LP_DATA_FIFO_EMPTY,4,2         ## @LP_DATA_FIFO_EMPTY
	.comm	_HS_DATA_FIFO_EMPTY,4,2         ## @HS_DATA_FIFO_EMPTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPI FIFOs are not empty\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlv_dsi_wait_for_fifo_empty    ; -- Begin function vlv_dsi_wait_for_fifo_empty
	.p2align	2
_vlv_dsi_wait_for_fifo_empty:           ; @vlv_dsi_wait_for_fifo_empty
	.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
	ldr	x0, [x0]
	bl	_to_i915
	mov	x20, x0
Lloh0:
	adrp	x8, _LP_CTRL_FIFO_EMPTY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LP_CTRL_FIFO_EMPTY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _HS_CTRL_FIFO_EMPTY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HS_CTRL_FIFO_EMPTY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _LP_DATA_FIFO_EMPTY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LP_DATA_FIFO_EMPTY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _HS_DATA_FIFO_EMPTY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HS_DATA_FIFO_EMPTY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w21, w8, w9
	mov	x0, x19
	bl	_MIPI_GEN_FIFO_STAT
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	mov	w3, #100
	bl	_intel_de_wait_for_set
	cbz	x0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_DRM_ERROR
LBB0_2:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LP_CTRL_FIFO_EMPTY,4,2         ; @LP_CTRL_FIFO_EMPTY
	.comm	_HS_CTRL_FIFO_EMPTY,4,2         ; @HS_CTRL_FIFO_EMPTY
	.comm	_LP_DATA_FIFO_EMPTY,4,2         ; @LP_DATA_FIFO_EMPTY
	.comm	_HS_DATA_FIFO_EMPTY,4,2         ; @HS_DATA_FIFO_EMPTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPI FIFOs are not empty\n"

.subsections_via_symbols
