	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_free_item                      ## -- Begin function free_item
	.p2align	4, 0x90
_free_item:                             ## @free_item
	.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, %rbx
	movq	_item_tree@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movl	(%rbx), %esi
	movq	16(%rbx), %rdx
	callq	_tree_delete
	movq	%rax, (%r14)
	movq	_items_count@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	decq	%rcx
	movq	%rcx, (%rdx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	%rcx, (%rax)
	jmp	LBB0_3
LBB0_2:
	testq	%rcx, %rcx
LBB0_3:
	sete	%al
	movzbl	%al, %edi
	callq	_assert
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	movq	16(%rbx), %rdi
	shll	$2, %esi
	callq	_zzfree
	movl	(%rbx), %eax
	movq	_items_memory@GOTPCREL(%rip), %rcx
	shll	$2, %eax
	subl	%eax, (%rcx)
LBB0_5:
	movl	4(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_7
## %bb.6:
	movq	8(%rbx), %rdi
	shll	$2, %esi
	callq	_zzfree
	movl	4(%rbx), %eax
	movq	_items_memory@GOTPCREL(%rip), %rcx
	shll	$2, %eax
	subl	%eax, (%rcx)
LBB0_7:
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_zzfree
	movq	_items_memory@GOTPCREL(%rip), %rax
	addl	$-24, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_item_tree,8,3                  ## @item_tree
	.comm	_items_count,8,3                ## @items_count
	.comm	_items_memory,4,2               ## @items_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_free_item                      ; -- Begin function free_item
	.p2align	2
_free_item:                             ; @free_item
	.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	x20, _item_tree@GOTPAGE
Lloh1:
	ldr	x20, [x20, _item_tree@GOTPAGEOFF]
	ldr	x0, [x20]
	ldr	w1, [x19]
	ldr	x2, [x19, #16]
	bl	_tree_delete
	str	x0, [x20]
Lloh2:
	adrp	x9, _items_count@GOTPAGE
Lloh3:
	ldr	x9, [x9, _items_count@GOTPAGEOFF]
	ldr	x8, [x9]
	sub	x8, x8, #1
	str	x8, [x9]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x9, [x0]
	cmp	x9, x8
	b	LBB0_3
LBB0_2:
	cmp	x8, #0
LBB0_3:
	cset	w0, eq
	bl	_assert
	ldr	w8, [x19]
Lloh4:
	adrp	x20, _items_memory@GOTPAGE
Lloh5:
	ldr	x20, [x20, _items_memory@GOTPAGEOFF]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	x0, [x19, #16]
	lsl	w1, w8, #2
	bl	_zzfree
	ldr	w8, [x19]
	ldr	w9, [x20]
	sub	w8, w9, w8, lsl #2
	str	w8, [x20]
LBB0_5:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_7
; %bb.6:
	ldr	x0, [x19, #8]
	lsl	w1, w8, #2
	bl	_zzfree
	ldr	w8, [x19, #4]
	ldr	w9, [x20]
	sub	w8, w9, w8, lsl #2
	str	w8, [x20]
LBB0_7:
	mov	x0, x19
	mov	w1, #24
	bl	_zzfree
	ldr	w8, [x20]
	sub	w8, w8, #24
	str	w8, [x20]
	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 AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_item_tree,8,3                  ; @item_tree
	.comm	_items_count,8,3                ; @items_count
	.comm	_items_memory,4,2               ; @items_memory
.subsections_via_symbols
