	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_fifo_reserve_dx            ## -- Begin function vmw_fifo_reserve_dx
	.p2align	4, 0x90
_vmw_fifo_reserve_dx:                   ## @vmw_fifo_reserve_dx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_vmw_cmdbuf_reserve
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_2:
	movq	_SVGA3D_INVALID_ID@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_4
## %bb.3:
	callq	_vmw_local_fifo_reserve
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rdi
	callq	_IS_ERR_OR_NULL
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmoveq	%rbx, %rcx
	movq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVGA3D_INVALID_ID,4,2          ## @SVGA3D_INVALID_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Command buffer has not been allocated.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_fifo_reserve_dx            ; -- Begin function vmw_fifo_reserve_dx
	.p2align	2
_vmw_fifo_reserve_dx:                   ; @vmw_fifo_reserve_dx
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x8
	mov	w3, #0
	mov	x4, #0
	bl	_vmw_cmdbuf_reserve
	mov	x19, x0
	b	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _SVGA3D_INVALID_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVGA3D_INVALID_ID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_4
; %bb.3:
	bl	_vmw_local_fifo_reserve
	mov	x19, x0
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	bl	_IS_ERR_OR_NULL
	cmp	x0, #0
	csel	x0, x19, xzr, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SVGA3D_INVALID_ID,4,2          ; @SVGA3D_INVALID_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Command buffer has not been allocated.\n"

.subsections_via_symbols
