	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_gmr2_unbind
_vmw_gmr2_unbind:                       ## @vmw_gmr2_unbind
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$20, %esi
	callq	_VMW_FIFO_RESERVE
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	%r14d, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	_SVGA_CMD_DEFINE_GMR2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	addq	$4, %rdi
	movl	%eax, (%rbx)
	leaq	-40(%rbp), %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	%r15, %rdi
	movl	$20, %esi
	callq	_vmw_fifo_commit
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVGA_CMD_DEFINE_GMR2,4,2       ## @SVGA_CMD_DEFINE_GMR2
	.no_dead_strip	_vmw_gmr2_unbind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_gmr2_unbind
_vmw_gmr2_unbind:                       ; @vmw_gmr2_unbind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	mov	w1, #20
	bl	_VMW_FIFO_RESERVE
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	str	w21, [sp]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _SVGA_CMD_DEFINE_GMR2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVGA_CMD_DEFINE_GMR2@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20], #4
	mov	x1, sp
	mov	x0, x20
	mov	w2, #16
	bl	_memcpy
	mov	x0, x19
	mov	w1, #20
	bl	_vmw_fifo_commit
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SVGA_CMD_DEFINE_GMR2,4,2       ; @SVGA_CMD_DEFINE_GMR2
	.no_dead_strip	_vmw_gmr2_unbind
.subsections_via_symbols
