	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_execbuf_fence_commands     ## -- Begin function vmw_execbuf_fence_commands
	.p2align	4, 0x90
_vmw_execbuf_fence_commands:            ## @vmw_execbuf_fence_commands
	.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, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	testq	%rcx, %rcx
	setne	%al
	testq	%rdi, %rdi
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_BUG_ON
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_vmw_fifo_send_fence
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_VMW_DEBUG_USER
LBB0_2:
	movl	(%r15), %esi
	movl	-44(%rbp), %edx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movq	%r14, %rcx
	movq	%rbx, %r8
	callq	_vmw_user_fence_create
	jmp	LBB0_5
LBB0_4:
	movl	%esi, %edi
	movl	%edx, %esi
	movq	%r14, %rdx
	callq	_vmw_fence_create
LBB0_5:
	movl	%eax, %ebx
	testq	%r13, %r13
	sete	%al
	testl	%ebx, %ebx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	-44(%rbp), %ecx
	movq	_VMW_FENCE_WAIT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_vmw_fallback_wait
	movq	$0, (%r14)
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fence submission error. Syncing.\n"

	.comm	_VMW_FENCE_WAIT_TIMEOUT,4,2     ## @VMW_FENCE_WAIT_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_execbuf_fence_commands     ; -- Begin function vmw_execbuf_fence_commands
	.p2align	2
_vmw_execbuf_fence_commands:            ; @vmw_execbuf_fence_commands
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	cmp	x0, #0
	ccmp	x3, #0, #4, eq
	cset	w0, ne
	bl	_BUG_ON
	add	x1, sp, #12
	mov	x0, x20
	bl	_vmw_fifo_send_fence
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	mov	x22, x0
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_VMW_DEBUG_USER
LBB0_2:
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	cbz	x21, LBB0_4
; %bb.3:
	mov	x0, x23
	mov	x3, x19
	mov	x4, x21
	bl	_vmw_user_fence_create
	b	LBB0_5
LBB0_4:
	mov	x0, x1
	mov	x1, x2
	mov	x2, x19
	bl	_vmw_fence_create
LBB0_5:
	mov	x21, x0
	cmp	w0, #0
	ccmp	x22, #0, #0, ne
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w3, [sp, #12]
Lloh2:
	adrp	x8, _VMW_FENCE_WAIT_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VMW_FENCE_WAIT_TIMEOUT@GOTPAGEOFF]
Lloh4:
	ldr	w5, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	mov	w4, #0
	bl	_vmw_fallback_wait
	str	xzr, [x19]
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fence submission error. Syncing.\n"

	.comm	_VMW_FENCE_WAIT_TIMEOUT,4,2     ; @VMW_FENCE_WAIT_TIMEOUT
.subsections_via_symbols
