	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delete_counter                 ## -- Begin function delete_counter
	.p2align	4, 0x90
_delete_counter:                        ## @delete_counter
	.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
	testl	%esi, %esi
	jne	LBB0_5
## %bb.1:
	movslq	%ebx, %rax
	cmpq	%rbx, %rax
	jne	LBB0_2
## %bb.3:
	movq	_LEV_STATS_DELETE_COUNTER@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_LEV_STATS_DELETE_COUNTER_64@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	movl	$8, %esi
	movq	%rbx, %rdx
	callq	_alloc_log_event
	movq	%rbx, (%rax)
LBB0_5:
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_get_counter_f
	movq	%rbx, %rdi
	callq	_index_get_idx
	movq	_index_size@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_7
## %bb.6:
	movq	_index_deleted@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movl	$1, (%rcx,%rax,4)
LBB0_7:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LEV_STATS_DELETE_COUNTER,4,2   ## @LEV_STATS_DELETE_COUNTER
	.comm	_LEV_STATS_DELETE_COUNTER_64,4,2 ## @LEV_STATS_DELETE_COUNTER_64
	.comm	_index_size,4,2                 ## @index_size
	.comm	_index_deleted,8,3              ## @index_deleted
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delete_counter                 ; -- Begin function delete_counter
	.p2align	2
_delete_counter:                        ; @delete_counter
	.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
	cbnz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _LEV_STATS_DELETE_COUNTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LEV_STATS_DELETE_COUNTER@GOTPAGEOFF]
Lloh2:
	adrp	x9, _LEV_STATS_DELETE_COUNTER_64@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LEV_STATS_DELETE_COUNTER_64@GOTPAGEOFF]
	cmp	x19, w19, sxtw
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	mov	w1, #8
	mov	x2, x19
	bl	_alloc_log_event
	str	x19, [x0]
LBB0_2:
	mov	x0, x19
	mov	w1, #-1
	bl	_get_counter_f
	mov	x0, x19
	bl	_index_get_idx
Lloh4:
	adrp	x8, _index_size@GOTPAGE
Lloh5:
	ldr	x8, [x8, _index_size@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _index_deleted@GOTPAGE
Lloh8:
	ldr	x8, [x8, _index_deleted@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8, w0, sxtw #2]
LBB0_4:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LEV_STATS_DELETE_COUNTER,4,2   ; @LEV_STATS_DELETE_COUNTER
	.comm	_LEV_STATS_DELETE_COUNTER_64,4,2 ; @LEV_STATS_DELETE_COUNTER_64
	.comm	_index_size,4,2                 ; @index_size
	.comm	_index_deleted,8,3              ; @index_deleted
.subsections_via_symbols
