	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_cmdbuf_commit              ## -- Begin function vmw_cmdbuf_commit
	.p2align	4, 0x90
_vmw_cmdbuf_commit:                     ## @vmw_cmdbuf_commit
	.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	%ecx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.1:
	movq	%rdx, %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vmw_cmdbuf_cur_lock
	movq	%rbx, %rdi
	callq	___vmw_cmdbuf_cur_flush
	xorl	%edi, %edi
	cmpq	%r12, (%r15)
	setb	%dil
	callq	_WARN_ON
	movq	%r15, 8(%rbx)
	movq	%r12, (%rbx)
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	testl	%r14d, %r14d
	je	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	___vmw_cmdbuf_cur_flush
LBB0_5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmw_cmdbuf_cur_unlock          ## TAILCALL
LBB0_6:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmw_cmdbuf_commit_cur          ## TAILCALL
LBB0_2:
	movq	_SVGA_CB_FLAG_DX_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	8(%r15), %rcx
	andl	%eax, (%rcx)
	testl	%r14d, %r14d
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_SVGA_CB_FLAG_DX_CONTEXT,4,2    ## @SVGA_CB_FLAG_DX_CONTEXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_cmdbuf_commit              ; -- Begin function vmw_cmdbuf_commit
	.p2align	2
_vmw_cmdbuf_commit:                     ; @vmw_cmdbuf_commit
	.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, x3
	mov	x22, x1
	mov	x19, x0
	cbz	x2, LBB0_5
; %bb.1:
	mov	x21, x2
	mov	x0, x19
	mov	w1, #0
	bl	_vmw_cmdbuf_cur_lock
	mov	x0, x19
	bl	___vmw_cmdbuf_cur_flush
	ldr	x8, [x21]
	cmp	x8, x22
	cset	w0, lo
	bl	_WARN_ON
	stp	x22, x21, [x19]
	cbz	x22, LBB0_6
; %bb.2:
	cbz	w20, LBB0_4
LBB0_3:
	mov	x0, x19
	bl	___vmw_cmdbuf_cur_flush
LBB0_4:
	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_5:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	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_commit_cur
LBB0_6:
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, [x21, #8]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	cbnz	w20, LBB0_3
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SVGA_CB_FLAG_DX_CONTEXT,4,2    ; @SVGA_CB_FLAG_DX_CONTEXT
.subsections_via_symbols
