	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dbell_index_table_remove
_dbell_index_table_remove:              ## @dbell_index_table_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_vmci_doorbell_it@GOTPCREL(%rip), %rdi
	callq	_spin_lock_bh
	leaq	8(%r14), %rdi
	callq	_hlist_del_init
	movq	_notify_idx_count@GOTPCREL(%rip), %rax
	decl	(%rax)
	movl	(%r14), %eax
	movq	_max_notify_idx@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testl	%edi, %edi
	jle	LBB0_5
## %bb.1:
	leal	-1(%rdi), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decl	%edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_dbell_index_table_find
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
	leal	-1(%rax), %edi
	movl	%edi, (%rbx)
	cmpl	$1, %eax
	jg	LBB0_2
LBB0_4:
	movl	(%r14), %eax
LBB0_5:
	movq	_last_notify_idx_released@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_vmci_doorbell_it@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	addq	$4, %r14
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vmci_resource_put              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vmci_doorbell_it,4,2           ## @vmci_doorbell_it
	.comm	_notify_idx_count,4,2           ## @notify_idx_count
	.comm	_max_notify_idx,4,2             ## @max_notify_idx
	.comm	_last_notify_idx_released,4,2   ## @last_notify_idx_released
	.no_dead_strip	_dbell_index_table_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dbell_index_table_remove
_dbell_index_table_remove:              ; @dbell_index_table_remove
	.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
Lloh0:
	adrp	x0, _vmci_doorbell_it@GOTPAGE
Lloh1:
	ldr	x0, [x0, _vmci_doorbell_it@GOTPAGEOFF]
	bl	_spin_lock_bh
	add	x0, x19, #8
	bl	_hlist_del_init
Lloh2:
	adrp	x8, _notify_idx_count@GOTPAGE
Lloh3:
	ldr	x8, [x8, _notify_idx_count@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	ldr	w9, [x19]
Lloh4:
	adrp	x20, _max_notify_idx@GOTPAGE
Lloh5:
	ldr	x20, [x20, _max_notify_idx@GOTPAGEOFF]
	ldr	w8, [x20]
	subs	w10, w8, #1
	ccmp	w9, w10, #0, ge
	b.ne	LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	w0, w8, #1
	bl	_dbell_index_table_find
	cbnz	w0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x20]
	subs	w8, w8, #1
	str	w8, [x20]
	b.gt	LBB0_1
LBB0_3:
	ldr	w9, [x19]
LBB0_4:
Lloh6:
	adrp	x8, _last_notify_idx_released@GOTPAGE
Lloh7:
	ldr	x8, [x8, _last_notify_idx_released@GOTPAGEOFF]
Lloh8:
	str	w9, [x8]
Lloh9:
	adrp	x0, _vmci_doorbell_it@GOTPAGE
Lloh10:
	ldr	x0, [x0, _vmci_doorbell_it@GOTPAGEOFF]
	bl	_spin_unlock_bh
	add	x0, x19, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vmci_resource_put
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_vmci_doorbell_it,4,2           ; @vmci_doorbell_it
	.comm	_notify_idx_count,4,2           ; @notify_idx_count
	.comm	_max_notify_idx,4,2             ; @max_notify_idx
	.comm	_last_notify_idx_released,4,2   ; @last_notify_idx_released
	.no_dead_strip	_dbell_index_table_remove
.subsections_via_symbols
