	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_fence_goal_check_locked
_vmw_fence_goal_check_locked:           ## @vmw_fence_goal_check_locked
	.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	%rdi, %rbx
	callq	_fman_from_fence
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_dma_fence_is_signaled_locked
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	8(%r14), %rax
	movq	(%rax), %r12
	movq	_SVGA_FIFO_FENCE_GOAL@GOTPCREL(%rip), %r13
	movslq	(%r13), %rax
	leaq	(%r12,%rax,8), %rdi
	callq	_vmw_mmio_read
	xorl	%r15d, %r15d
	cmpl	$0, (%r14)
	movl	$0, %edi
	je	LBB0_3
## %bb.2:
	subq	(%rbx), %rax
	movq	_VMW_FENCE_WRAP@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
LBB0_3:
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	movslq	(%r13), %rax
	leaq	(%r12,%rax,8), %rsi
	callq	_vmw_mmio_write
	movl	$1, (%r14)
	movl	$1, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVGA_FIFO_FENCE_GOAL,4,2       ## @SVGA_FIFO_FENCE_GOAL
	.comm	_VMW_FENCE_WRAP,8,3             ## @VMW_FENCE_WRAP
	.no_dead_strip	_vmw_fence_goal_check_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_fence_goal_check_locked
_vmw_fence_goal_check_locked:           ; @vmw_fence_goal_check_locked
	.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	x20, x0
	bl	_fman_from_fence
	mov	x19, x0
	mov	x0, x20
	bl	_dma_fence_is_signaled_locked
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #0
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
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x21, [x8]
Lloh0:
	adrp	x22, _SVGA_FIFO_FENCE_GOAL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SVGA_FIFO_FENCE_GOAL@GOTPAGEOFF]
	ldrsw	x8, [x22]
	add	x0, x21, x8, lsl #3
	bl	_vmw_mmio_read
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _VMW_FENCE_WRAP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VMW_FENCE_WRAP@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	sub	x8, x0, x8
	cmp	x8, x9
	cset	w0, lt
	bl	_likely
	cbnz	x0, LBB0_1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
	bl	_likely
	cbnz	x0, LBB0_1
LBB0_6:
	ldr	x0, [x20]
	ldrsw	x8, [x22]
	add	x1, x21, x8, lsl #3
	bl	_vmw_mmio_write
	mov	w0, #1
	str	w0, [x19]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SVGA_FIFO_FENCE_GOAL,4,2       ; @SVGA_FIFO_FENCE_GOAL
	.comm	_VMW_FENCE_WRAP,8,3             ; @VMW_FENCE_WRAP
	.no_dead_strip	_vmw_fence_goal_check_locked
.subsections_via_symbols
