	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_item_f
_get_item_f:                            ## @get_item_f
	.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
	testq	%rdi, %rdi
	jle	LBB0_31
## %bb.1:
	movq	%rdi, %r14
	movq	_ITEMS_HASH_PRIME@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	%rdi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.2:
	movq	%r14, %rax
	cqto
	idivq	%rcx
	movq	%rdx, %rbx
	jmp	LBB0_5
LBB0_4:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ebx
LBB0_5:
	leaq	-1(%rcx), %rdi
	movq	%r14, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rax
	cqto
	idivq	%rdi
	movq	%rdx, %r15
	jmp	LBB0_8
LBB0_7:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%edx, %r15d
LBB0_8:
	incl	%r15d
	cmpl	$128, %esi
	je	LBB0_17
## %bb.9:
	cmpl	$129, %esi
	jne	LBB0_21
## %bb.10:
	movq	_Items@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %r12
	testq	%r12, %r12
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_22
## %bb.11:
	movq	%r12, %rdi
	callq	_ITEM_DELETED
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	xorl	%r14d, %r14d
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdi
	callq	_ITEM_DELETED
	testl	%eax, %eax
	jne	LBB0_24
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	addl	%r15d, %ebx
	movslq	%ebx, %rdx
	movq	(%r13), %rax
	movl	$0, %ecx
	cmpq	%rdx, %rax
	jg	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%eax, %ecx
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	subl	%ecx, %ebx
	movq	_Items@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %r12
	testq	%r12, %r12
	sete	%r14b
	jne	LBB0_13
	jmp	LBB0_23
LBB0_17:
	movq	_Items@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rdx
	movq	(%rax,%rdx,8), %r13
	xorl	%edx, %edx
	testq	%r13, %r13
	je	LBB0_31
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, (%r13)
	je	LBB0_32
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	addl	%r15d, %ebx
	movslq	%ebx, %rbx
	cmpq	%rbx, %rcx
	movl	%ecx, %esi
	cmovgl	%edx, %esi
	subl	%esi, %ebx
	movslq	%ebx, %rsi
	movq	(%rax,%rsi,8), %r13
	testq	%r13, %r13
	jne	LBB0_18
	jmp	LBB0_31
LBB0_21:
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_assert
	jmp	LBB0_32
LBB0_22:
	movb	$1, %r14b
LBB0_23:
	xorl	%r12d, %r12d
LBB0_24:
	movq	_tot_items@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_MAX_ITEMS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_31
## %bb.25:
	movl	$8, %edi
	callq	_zmalloc0
	testq	%rax, %rax
	je	LBB0_31
## %bb.26:
	movq	%rax, %r13
	testb	%r14b, %r14b
	jne	LBB0_28
## %bb.27:
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_zfree
	movq	_tot_freed_deleted_items@GOTPCREL(%rip), %rbx
LBB0_28:
	incl	(%rbx)
	movq	_Items@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, (%rax,%rcx,8)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r13)
	jmp	LBB0_32
LBB0_31:
	xorl	%r13d, %r13d
LBB0_32:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ITEMS_HASH_PRIME,8,3           ## @ITEMS_HASH_PRIME
	.comm	_Items,8,3                      ## @Items
	.comm	_tot_items,4,2                  ## @tot_items
	.comm	_MAX_ITEMS,4,2                  ## @MAX_ITEMS
	.comm	_tot_freed_deleted_items,4,2    ## @tot_freed_deleted_items
	.no_dead_strip	_get_item_f
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_item_f
_get_item_f:                            ; @get_item_f
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cmp	x0, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _ITEMS_HASH_PRIME@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ITEMS_HASH_PRIME@GOTPAGEOFF]
	ldr	x8, [x21]
	sdiv	x9, x0, x8
	msub	x25, x9, x8, x0
	sub	x9, x8, #1
	sdiv	x10, x0, x9
	msub	w9, w10, w9, w19
	add	w24, w9, #1
	cmp	w1, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w1, #129
	b.ne	LBB0_9
; %bb.3:
Lloh2:
	adrp	x22, _Items@GOTPAGE
Lloh3:
	ldr	x22, [x22, _Items@GOTPAGEOFF]
	ldr	x8, [x22]
	sxtw	x23, w25
	sbfiz	x9, x25, #3, #32
	ldr	x20, [x8, x9]
	cbz	x20, LBB0_10
; %bb.4:
	mov	x0, x20
	bl	_ITEM_DELETED
	cbz	w0, LBB0_11
; %bb.5:
	mov	w25, #0
	b	LBB0_14
LBB0_6:
Lloh4:
	adrp	x9, _Items@GOTPAGE
Lloh5:
	ldr	x9, [x9, _Items@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	sbfiz	x10, x25, #3, #32
	ldr	x21, [x9, x10]
	cbz	x21, LBB0_19
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x21]
	cmp	x10, x19
	b.eq	LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w10, w25, w24
	cmp	x8, w10, sxtw
	csel	w11, wzr, w8, gt
	sub	w25, w10, w11
	ldr	x21, [x9, w25, sxtw #3]
	cbnz	x21, LBB0_7
	b	LBB0_19
LBB0_9:
	mov	w0, #0
	bl	_assert
	b	LBB0_18
LBB0_10:
	mov	w25, #1
	b	LBB0_14
LBB0_11:
	mov	x26, x25
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	w9, w26, w24
	cmp	x8, w9, sxtw
	csel	w8, wzr, w8, gt
	sub	w26, w9, w8
	ldr	x8, [x22]
	sxtw	x23, w26
	ldr	x20, [x8, w26, sxtw #3]
	cmp	x20, #0
	cset	w25, eq
	cbz	x20, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	bl	_ITEM_DELETED
	cbz	w0, LBB0_12
LBB0_14:
Lloh7:
	adrp	x8, _tot_items@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tot_items@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _MAX_ITEMS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MAX_ITEMS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_18
; %bb.15:
	mov	w0, #8
	bl	_zmalloc0
	mov	x21, x0
	cbz	x0, LBB0_19
; %bb.16:
	tbz	w25, #0, LBB0_20
; %bb.17:
Lloh13:
	adrp	x8, _tot_items@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tot_items@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
	mov	x21, #0
LBB0_19:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	x0, x20
	mov	w1, #8
	bl	_zfree
Lloh15:
	adrp	x8, _tot_freed_deleted_items@GOTPAGE
Lloh16:
	ldr	x8, [x8, _tot_freed_deleted_items@GOTPAGEOFF]
LBB0_21:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	x8, [x22]
	str	x21, [x8, x23, lsl #3]
	str	x19, [x21]
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ITEMS_HASH_PRIME,8,3           ; @ITEMS_HASH_PRIME
	.comm	_Items,8,3                      ; @Items
	.comm	_tot_items,4,2                  ; @tot_items
	.comm	_MAX_ITEMS,4,2                  ; @MAX_ITEMS
	.comm	_tot_freed_deleted_items,4,2    ; @tot_freed_deleted_items
	.no_dead_strip	_get_item_f
.subsections_via_symbols
