	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_cotable_unbind
_vmw_cotable_unbind:                    ## @vmw_cotable_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	callq	_vmw_cotable
	movq	%rax, %r12
	movq	(%r15), %r13
	movq	(%rbx), %r14
	movq	%r15, %rdi
	callq	_vmw_resource_mob_attached
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	8(%r14), %rax
	movq	_VMW_PL_MOB@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON_ONCE
	movl	(%r14), %edi
	callq	_dma_resv_assert_held
	movq	%r13, %rdi
	callq	_mutex_lock
	cmpl	$0, 4(%r12)
	jne	LBB0_3
## %bb.2:
	movl	(%r12), %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_vmw_dx_context_scrub_cotables
LBB0_3:
	movq	%r13, %rdi
	callq	_mutex_unlock
	leaq	-48(%rbp), %rdx
	xorl	%edi, %edi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	callq	_vmw_execbuf_fence_commands
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_vmw_bo_fence_single
	xorl	%edi, %edi
	cmpq	$0, -48(%rbp)
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	-48(%rbp), %rdi
	callq	_vmw_fence_obj_unreference
LBB0_5:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMW_PL_MOB,8,3                 ## @VMW_PL_MOB
	.no_dead_strip	_vmw_cotable_unbind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_cotable_unbind
_vmw_cotable_unbind:                    ; @vmw_cotable_unbind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	bl	_vmw_cotable
	mov	x22, x0
	ldr	x20, [x23]
	ldr	x19, [x19]
	mov	x0, x23
	bl	_vmw_resource_mob_attached
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _VMW_PL_MOB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VMW_PL_MOB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON_ONCE
	ldr	w0, [x19]
	bl	_dma_resv_assert_held
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x22, #4]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	w0, [x22]
	mov	x1, x21
	bl	_vmw_dx_context_scrub_cotables
LBB0_3:
	mov	x0, x20
	bl	_mutex_unlock
	add	x2, sp, #8
	mov	x0, #0
	mov	x1, x20
	mov	x3, #0
	bl	_vmw_execbuf_fence_commands
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_vmw_bo_fence_single
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_5
; %bb.4:
	add	x0, sp, #8
	bl	_vmw_fence_obj_unreference
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VMW_PL_MOB,8,3                 ; @VMW_PL_MOB
	.no_dead_strip	_vmw_cotable_unbind
.subsections_via_symbols
