	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_cmdbuf_commit_cur
_vmw_cmdbuf_commit_cur:                 ## @vmw_cmdbuf_commit_cur
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	addq	$8, %rdi
	callq	_lockdep_assert_held_once
	xorl	%edi, %edi
	cmpq	%rbx, (%r12)
	setb	%dil
	callq	_WARN_ON
	addq	%rbx, (%r15)
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	testl	%r14d, %r14d
	je	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	callq	___vmw_cmdbuf_cur_flush
LBB0_4:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmw_cmdbuf_cur_unlock          ## TAILCALL
LBB0_1:
	movq	_SVGA_CB_FLAG_DX_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	8(%r12), %rcx
	andl	%eax, (%rcx)
	testl	%r14d, %r14d
	jne	LBB0_3
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_SVGA_CB_FLAG_DX_CONTEXT,4,2    ## @SVGA_CB_FLAG_DX_CONTEXT
	.no_dead_strip	_vmw_cmdbuf_commit_cur
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_cmdbuf_commit_cur
_vmw_cmdbuf_commit_cur:                 ; @vmw_cmdbuf_commit_cur
	.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, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #16]
	add	x0, x0, #8
	bl	_lockdep_assert_held_once
	ldr	x8, [x22]
	cmp	x8, x21
	cset	w0, lo
	bl	_WARN_ON
	ldr	x8, [x19]
	add	x8, x8, x21
	str	x8, [x19]
	cbz	x21, LBB0_4
; %bb.1:
	cbz	w20, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	___vmw_cmdbuf_cur_flush
LBB0_3:
	mov	x0, x19
	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
	b	_vmw_cmdbuf_cur_unlock
LBB0_4:
Lloh0:
	adrp	x8, _SVGA_CB_FLAG_DX_CONTEXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVGA_CB_FLAG_DX_CONTEXT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x22, #8]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	cbnz	w20, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SVGA_CB_FLAG_DX_CONTEXT,4,2    ; @SVGA_CB_FLAG_DX_CONTEXT
	.no_dead_strip	_vmw_cmdbuf_commit_cur
.subsections_via_symbols
