	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_wait_seqno                 ## -- Begin function vmw_wait_seqno
	.p2align	4, 0x90
_vmw_wait_seqno:                        ## @vmw_wait_seqno
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	(%rdi), %rax
	subq	%rdx, %rax
	movq	_VMW_FENCE_WRAP@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_likely
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_vmw_seqno_passed
	movl	%eax, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
LBB0_13:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_SVGA_SYNC_GENERIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_vmw_fifo_ping_host
	movq	_SVGA_FIFO_CAP_FENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r12)
	je	LBB0_3
## %bb.4:
	movq	_SVGA_CAP_IRQMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_5
## %bb.7:
	movq	%r12, %rdi
	callq	_vmw_seqno_waiter_add
	movl	12(%r12), %r14d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_vmw_seqno_passed
	movl	%r14d, %edi
	movl	%eax, %esi
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_wait_event_interruptible_timeout
	jmp	LBB0_10
LBB0_3:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	movq	%rbx, %rcx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	jmp	LBB0_6
LBB0_5:
	movq	%r12, %rdi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	movl	%r15d, %r8d
LBB0_6:
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmw_fallback_wait              ## TAILCALL
LBB0_9:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_wait_event_timeout
LBB0_10:
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_vmw_seqno_waiter_remove
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_13
LBB0_12:
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setg	%dil
	callq	_likely
	xorl	%r14d, %r14d
	testq	%rax, %rax
	cmoveq	%rbx, %r14
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_VMW_FENCE_WRAP,8,3             ## @VMW_FENCE_WRAP
	.comm	_SVGA_SYNC_GENERIC,4,2          ## @SVGA_SYNC_GENERIC
	.comm	_SVGA_FIFO_CAP_FENCE,4,2        ## @SVGA_FIFO_CAP_FENCE
	.comm	_SVGA_CAP_IRQMASK,4,2           ## @SVGA_CAP_IRQMASK
	.comm	_EBUSY,8,3                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_wait_seqno                 ; -- Begin function vmw_wait_seqno
	.p2align	2
_vmw_wait_seqno:                        ; @vmw_wait_seqno
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _VMW_FENCE_WRAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VMW_FENCE_WRAP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sub	x8, x8, x2
	cmp	x8, x9
	cset	w0, lt
	bl	_likely
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_vmw_seqno_passed
	bl	_likely
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh3:
	adrp	x8, _SVGA_SYNC_GENERIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SVGA_SYNC_GENERIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vmw_fifo_ping_host
	ldr	w8, [x19, #16]
Lloh6:
	adrp	x9, _SVGA_FIFO_CAP_FENCE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SVGA_FIFO_CAP_FENCE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
	ldr	w8, [x19, #8]
Lloh9:
	adrp	x9, _SVGA_CAP_IRQMASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SVGA_CAP_IRQMASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_vmw_seqno_waiter_add
	ldr	w23, [x19, #12]
	mov	x0, x19
	mov	x1, x22
	bl	_vmw_seqno_passed
	mov	x1, x0
	mov	x0, x23
	mov	x2, x20
	cbz	w21, LBB0_11
; %bb.7:
	bl	_wait_event_interruptible_timeout
	b	LBB0_12
LBB0_8:
	mov	x0, x19
	mov	x1, x23
	mov	w2, #1
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
LBB0_10:
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_vmw_fallback_wait
LBB0_11:
	bl	_wait_event_timeout
LBB0_12:
	mov	x20, x0
	mov	x0, x19
	bl	_vmw_seqno_waiter_remove
	cmp	x20, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.13:
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_3
LBB0_14:
	cmp	x20, #0
	cset	w0, gt
	bl	_likely
	cmp	x0, #0
	csel	x0, x20, xzr, eq
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_VMW_FENCE_WRAP,8,3             ; @VMW_FENCE_WRAP
	.comm	_SVGA_SYNC_GENERIC,4,2          ; @SVGA_SYNC_GENERIC
	.comm	_SVGA_FIFO_CAP_FENCE,4,2        ; @SVGA_FIFO_CAP_FENCE
	.comm	_SVGA_CAP_IRQMASK,4,2           ; @SVGA_CAP_IRQMASK
	.comm	_EBUSY,8,3                      ; @EBUSY
.subsections_via_symbols
