	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_resource_do_evict
_vmw_resource_do_evict:                 ## @vmw_resource_do_evict
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %r12
	xorl	%edi, %edi
	cmpl	$0, 20(%r12)
	sete	%dil
	callq	_BUG_ON
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_vmw_resource_check_buffer
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.3:
	cmpl	$0, 16(%r12)
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_vmw_resource_mob_attached
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	jmp	LBB0_6
LBB0_2:
	xorl	%edi, %edi
	jmp	LBB0_6
LBB0_4:
	movl	$1, %edi
LBB0_6:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	(%r15), %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	*(%r12)
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	callq	_vmw_resource_mob_detach
LBB0_9:
	movq	%r15, %rdi
	callq	*8(%r12)
	movl	%eax, %ebx
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%r15)
LBB0_10:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_vmw_resource_backoff_reservation
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vmw_resource_do_evict
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vmw_resource_do_evict
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vmw_resource_do_evict:                 ; @vmw_resource_do_evict
	.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, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x1, #8]
	ldr	w8, [x22, #20]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	stp	xzr, xzr, [sp]
	mov	x3, sp
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_vmw_resource_check_buffer
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_vmw_resource_mob_attached
	cmp	x0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_6
	b	LBB0_8
LBB0_4:
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_6
	b	LBB0_8
LBB0_5:
	mov	w0, #1
	bl	_unlikely
	cbz	x0, LBB0_8
LBB0_6:
	ldr	x8, [x22]
	ldr	w1, [x20]
	mov	x2, sp
	mov	x0, x20
	blr	x8
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_vmw_resource_mob_detach
LBB0_8:
	ldr	x8, [x22, #8]
	mov	x0, x20
	blr	x8
	mov	x21, x0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
LBB0_9:
	mov	x1, sp
	mov	x0, x19
	bl	_vmw_resource_backoff_reservation
LBB0_10:
	mov	x0, x21
	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 AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vmw_resource_do_evict
.subsections_via_symbols
