	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_cmdbuf_remove_pool         ## -- Begin function vmw_cmdbuf_remove_pool
	.p2align	4, 0x90
_vmw_cmdbuf_remove_pool:                ## @vmw_cmdbuf_remove_pool
	.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
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movl	$0, (%rdi)
	movq	_VMW_CMDBUF_INLINE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rdi)
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %edx
	xorl	%esi, %esi
	callq	_vmw_cmdbuf_idle
	cmpq	$0, 40(%rbx)
	je	LBB0_4
## %bb.2:
	leaq	32(%rbx), %rdi
	callq	_ttm_bo_kunmap
	movq	24(%rbx), %rdi
	callq	_ttm_bo_put
	movq	$0, 24(%rbx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movl	12(%rbx), %esi
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dma_free_coherent              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VMW_CMDBUF_INLINE_SIZE,4,2     ## @VMW_CMDBUF_INLINE_SIZE
	.comm	_HZ,4,2                         ## @HZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_cmdbuf_remove_pool         ; -- Begin function vmw_cmdbuf_remove_pool
	.p2align	2
_vmw_cmdbuf_remove_pool:                ; @vmw_cmdbuf_remove_pool
	.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	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	str	wzr, [x0]
Lloh0:
	adrp	x8, _VMW_CMDBUF_INLINE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMW_CMDBUF_INLINE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #48]
Lloh3:
	adrp	x8, _HZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #2
	lsl	w2, w8, #1
	mov	w1, #0
	bl	_vmw_cmdbuf_idle
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_4
; %bb.2:
	add	x0, x19, #32
	bl	_ttm_bo_kunmap
	ldr	x0, [x19, #24]
	bl	_ttm_bo_put
	str	xzr, [x19, #24]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x0, [x8]
	ldp	w2, w1, [x19, #8]
	ldr	w3, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dma_free_coherent
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VMW_CMDBUF_INLINE_SIZE,4,2     ; @VMW_CMDBUF_INLINE_SIZE
	.comm	_HZ,4,2                         ; @HZ
.subsections_via_symbols
