	.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
	pushq	%rax
	.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_4
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_fits
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	_ITEMS_HASH_PRIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_6
## %bb.3:
	movq	%r15, %rax
	cqto
	idivq	%rsi
	movq	%rdx, %rcx
	jmp	LBB0_7
LBB0_6:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%edx, %ecx
LBB0_7:
	leaq	-1(%rsi), %rdi
	movq	%r15, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_9
## %bb.8:
	movq	%r15, %rax
	cqto
	idivq	%rdi
	jmp	LBB0_10
LBB0_9:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_10:
	movq	_Items@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	%ecx, %rbx
	movq	(%rax,%rbx,8), %r13
	testq	%r13, %r13
	je	LBB0_16
## %bb.11:
	incl	%edx
	movq	_FLAG_DELETED@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	movl	$-1, %edi
	xorl	%r9d, %r9d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rsi
	movl	%esi, %ebx
	cmovgl	%r9d, %ebx
	subl	%ebx, %ecx
	movslq	%ecx, %rbx
	movq	(%rax,%rbx,8), %r13
	testq	%r13, %r13
	je	LBB0_17
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, (%r13)
	je	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	testl	%edi, %edi
	jns	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	testl	%r8d, 8(%r13)
	cmovnel	%ecx, %edi
	jmp	LBB0_12
LBB0_16:
	movl	$-1, %edi
LBB0_17:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.18:
	movq	_tot_items@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	_MAX_ITEMS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_4
## %bb.19:
	testl	%edi, %edi
	js	LBB0_23
## %bb.20:
	movl	%edi, %ecx
	movq	(%rax,%rcx,8), %r13
	movq	_del_items@GOTPCREL(%rip), %rax
	decl	(%rax)
	jmp	LBB0_25
LBB0_23:
	movl	$16, %edi
	callq	_ztmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.24:
	movq	%rax, %r13
	movq	(%r12), %rax
	movq	%r13, (%rax,%rbx,8)
	incq	(%r14)
LBB0_25:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_create_item
	movl	%eax, %edi
	callq	_assert
	jmp	LBB0_26
LBB0_4:
	xorl	%r13d, %r13d
LBB0_26:
	movq	%r13, %rax
	addq	$8, %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	_FLAG_DELETED,4,2               ## @FLAG_DELETED
	.comm	_tot_items,8,3                  ## @tot_items
	.comm	_MAX_ITEMS,8,3                  ## @MAX_ITEMS
	.comm	_del_items,4,2                  ## @del_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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	x0, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_fits
	cbz	w0, LBB0_13
; %bb.2:
Lloh0:
	adrp	x8, _ITEMS_HASH_PRIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ITEMS_HASH_PRIME@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	sdiv	x8, x19, x10
	msub	x11, x8, x10, x19
Lloh3:
	adrp	x22, _Items@GOTPAGE
Lloh4:
	ldr	x22, [x22, _Items@GOTPAGEOFF]
	ldr	x8, [x22]
	sbfiz	x9, x11, #3, #32
	ldr	x21, [x8, x9]
	cbz	x21, LBB0_8
; %bb.3:
	sub	x9, x10, #1
	sdiv	x12, x19, x9
	msub	w9, w12, w9, w19
	add	w12, w9, #1
Lloh5:
	adrp	x9, _FLAG_DELETED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FLAG_DELETED@GOTPAGEOFF]
Lloh7:
	ldr	w13, [x9]
	mov	w9, #-1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w11, w12, w11
	cmp	x10, w11, sxtw
	csel	w14, wzr, w10, gt
	sub	w11, w11, w14
	ldr	x21, [x8, w11, sxtw #3]
	cbz	x21, LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x21]
	cmp	x14, x19
	b.eq	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	tbz	w9, #31, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w14, [x21, #8]
	tst	w13, w14
	csel	w9, w9, w11, eq
	b	LBB0_4
LBB0_8:
	sxtw	x23, w11
	mov	w9, #-1
	cbnz	w20, LBB0_10
	b	LBB0_13
LBB0_9:
                                        ; kill: def $w11 killed $w11 killed $x11 def $x11
	sxtw	x23, w11
	cbz	w20, LBB0_13
LBB0_10:
Lloh8:
	adrp	x20, _tot_items@GOTPAGE
Lloh9:
	ldr	x20, [x20, _tot_items@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh10:
	adrp	x11, _MAX_ITEMS@GOTPAGE
Lloh11:
	ldr	x11, [x11, _MAX_ITEMS@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ge	LBB0_13
; %bb.11:
	tbnz	w9, #31, LBB0_15
; %bb.12:
	ldr	x21, [x8, w9, uxtw #3]
Lloh13:
	adrp	x8, _del_items@GOTPAGE
Lloh14:
	ldr	x8, [x8, _del_items@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	b	LBB0_17
LBB0_13:
	mov	x21, #0
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	w0, #16
	bl	_ztmalloc
	mov	x21, x0
	cbz	x0, LBB0_14
; %bb.16:
	ldr	x8, [x22]
	str	x21, [x8, x23, lsl #3]
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
LBB0_17:
	mov	x0, x21
	mov	x1, x19
	bl	_create_item
	bl	_assert
	b	LBB0_14
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ITEMS_HASH_PRIME,8,3           ; @ITEMS_HASH_PRIME
	.comm	_Items,8,3                      ; @Items
	.comm	_FLAG_DELETED,4,2               ; @FLAG_DELETED
	.comm	_tot_items,8,3                  ; @tot_items
	.comm	_MAX_ITEMS,8,3                  ; @MAX_ITEMS
	.comm	_del_items,4,2                  ; @del_items
	.no_dead_strip	_get_item_f
.subsections_via_symbols
