	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_fifo_wait
_vmw_fifo_wait:                         ## @vmw_fifo_wait
	.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	%rcx, %r15
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_vmw_fifo_is_full
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_likely
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	_SVGA_SYNC_FIFOFULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_vmw_fifo_ping_host
	movq	_SVGA_CAP_IRQMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_10
## %bb.2:
	movq	_SVGA_IRQFLAG_FIFO_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	4(%r13), %rdx
	movq	%r13, %rdi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_vmw_generic_waiter_add
	movl	8(%r13), %r14d
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_vmw_fifo_is_full
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movl	%r14d, %edi
	movq	%r15, %rdx
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	callq	_wait_event_interruptible_timeout
	jmp	LBB0_5
LBB0_10:
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmw_fifo_wait_noirq            ## TAILCALL
LBB0_4:
	callq	_wait_event_timeout
LBB0_5:
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_8
LBB0_7:
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setg	%dil
	callq	_likely
	xorl	%r14d, %r14d
	testq	%rax, %rax
	cmoveq	%rbx, %r14
LBB0_8:
	movq	_SVGA_IRQFLAG_FIFO_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_vmw_generic_waiter_remove
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVGA_SYNC_FIFOFULL,4,2         ## @SVGA_SYNC_FIFOFULL
	.comm	_SVGA_CAP_IRQMASK,4,2           ## @SVGA_CAP_IRQMASK
	.comm	_SVGA_IRQFLAG_FIFO_PROGRESS,4,2 ## @SVGA_IRQFLAG_FIFO_PROGRESS
	.comm	_EBUSY,8,3                      ## @EBUSY
	.no_dead_strip	_vmw_fifo_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_fifo_wait
_vmw_fifo_wait:                         ; @vmw_fifo_wait
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_vmw_fifo_is_full
	cmp	w0, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_11
LBB0_2:
Lloh0:
	adrp	x8, _SVGA_SYNC_FIFOFULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVGA_SYNC_FIFOFULL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vmw_fifo_ping_host
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _SVGA_CAP_IRQMASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SVGA_CAP_IRQMASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh6:
	adrp	x25, _SVGA_IRQFLAG_FIFO_PROGRESS@GOTPAGE
Lloh7:
	ldr	x25, [x25, _SVGA_IRQFLAG_FIFO_PROGRESS@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x20, x19, #4
	mov	x0, x19
	mov	x2, x20
	bl	_vmw_generic_waiter_add
	ldr	w24, [x19, #8]
	mov	x0, x19
	mov	x1, x23
	bl	_vmw_fifo_is_full
	cmp	w0, #0
	cset	w1, eq
	mov	x0, x24
	mov	x2, x21
	cbz	w22, LBB0_6
; %bb.4:
	bl	_wait_event_interruptible_timeout
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_vmw_fifo_wait_noirq
LBB0_6:
	bl	_wait_event_timeout
LBB0_7:
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	neg	x21, x8
	b	LBB0_10
LBB0_9:
	cmp	x21, #0
	cset	w0, gt
	bl	_likely
	cmp	x0, #0
	csel	x21, x21, xzr, eq
LBB0_10:
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x20
	bl	_vmw_generic_waiter_remove
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SVGA_SYNC_FIFOFULL,4,2         ; @SVGA_SYNC_FIFOFULL
	.comm	_SVGA_CAP_IRQMASK,4,2           ; @SVGA_CAP_IRQMASK
	.comm	_SVGA_IRQFLAG_FIFO_PROGRESS,4,2 ; @SVGA_IRQFLAG_FIFO_PROGRESS
	.comm	_EBUSY,8,3                      ; @EBUSY
	.no_dead_strip	_vmw_fifo_wait
.subsections_via_symbols
