	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_cmdbuf_man_destroy         ## -- Begin function vmw_cmdbuf_man_destroy
	.p2align	4, 0x90
_vmw_cmdbuf_man_destroy:                ## @vmw_cmdbuf_man_destroy
	.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, %rbx
	movl	32(%rdi), %edi
	callq	_WARN_ON_ONCE
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vmw_cmdbuf_idle
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_vmw_cmdbuf_startstop
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_2:
	movq	24(%rbx), %rdi
	movq	_SVGA_IRQFLAG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, %rdx
	callq	_vmw_generic_waiter_remove
	leaq	20(%rbx), %rdi
	callq	_cancel_work_sync
	movl	16(%rbx), %edi
	callq	_dma_pool_destroy
	movl	12(%rbx), %edi
	callq	_dma_pool_destroy
	leaq	8(%rbx), %rdi
	callq	_mutex_destroy
	leaq	4(%rbx), %rdi
	callq	_mutex_destroy
	movq	%rbx, %rdi
	callq	_mutex_destroy
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed stopping command buffer contexts.\n"

	.comm	_SVGA_IRQFLAG_ERROR,4,2         ## @SVGA_IRQFLAG_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_cmdbuf_man_destroy         ; -- Begin function vmw_cmdbuf_man_destroy
	.p2align	2
_vmw_cmdbuf_man_destroy:                ; @vmw_cmdbuf_man_destroy
	.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
	mov	x19, x0
	ldr	w0, [x0, #32]
	bl	_WARN_ON_ONCE
Lloh0:
	adrp	x8, _HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #2
	lsl	w2, w8, #1
	mov	x0, x19
	mov	w1, #0
	bl	_vmw_cmdbuf_idle
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_vmw_cmdbuf_startstop
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_2:
	ldr	x0, [x19, #24]
Lloh5:
	adrp	x8, _SVGA_IRQFLAG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SVGA_IRQFLAG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x0
	bl	_vmw_generic_waiter_remove
	add	x0, x19, #20
	bl	_cancel_work_sync
	ldr	w0, [x19, #16]
	bl	_dma_pool_destroy
	ldr	w0, [x19, #12]
	bl	_dma_pool_destroy
	add	x0, x19, #8
	bl	_mutex_destroy
	add	x0, x19, #4
	bl	_mutex_destroy
	mov	x0, x19
	bl	_mutex_destroy
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed stopping command buffer contexts.\n"

	.comm	_SVGA_IRQFLAG_ERROR,4,2         ; @SVGA_IRQFLAG_ERROR
.subsections_via_symbols
