	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __vmw_cmdbuf_cur_flush
___vmw_cmdbuf_cur_flush:                ## @__vmw_cmdbuf_cur_flush
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	addq	$20, %rdi
	callq	_lockdep_assert_held_once
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	8(%rbx), %rsi
	movq	(%rsi), %rcx
	movq	%rax, (%rcx)
	movq	_SVGA_CB_CONTEXT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_vmw_cmdbuf_ctx_add
	jmp	LBB0_4
LBB0_2:
	movq	%r15, %rdi
	callq	___vmw_cmdbuf_header_free
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVGA_CB_CONTEXT_0,4,2          ## @SVGA_CB_CONTEXT_0
	.no_dead_strip	___vmw_cmdbuf_cur_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __vmw_cmdbuf_cur_flush
___vmw_cmdbuf_cur_flush:                ; @__vmw_cmdbuf_cur_flush
	.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, x0
	ldr	x21, [x0, #8]
	add	x0, x0, #20
	bl	_lockdep_assert_held_once
	cbz	x21, LBB0_5
; %bb.1:
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x1, [x19, #8]
	ldr	x9, [x1]
	str	x8, [x9]
Lloh0:
	adrp	x8, _SVGA_CB_CONTEXT_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVGA_CB_CONTEXT_0@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_vmw_cmdbuf_ctx_add
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	bl	___vmw_cmdbuf_header_free
LBB0_4:
	mov	x0, x20
	bl	_spin_unlock
	stp	xzr, xzr, [x19]
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SVGA_CB_CONTEXT_0,4,2          ; @SVGA_CB_CONTEXT_0
	.no_dead_strip	___vmw_cmdbuf_cur_flush
.subsections_via_symbols
