	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sort_items                     ## -- Begin function sort_items
	.p2align	4, 0x90
_sort_items:                            ## @sort_items
	.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
	movq	_ITEMS_HASH_PRIME@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	_Items@GOTPCREL(%rip), %r12
	movq	_FLAG_DELETED@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r15d, %rsi
	incl	%r15d
	movq	%rcx, (%rdx,%rsi,8)
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdx
	movq	(%rdx,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %esi
	testl	%esi, (%rcx)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 8(%rcx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 4(%rcx)
	sete	%al
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %edi
	callq	_assert
	movl	(%r14), %eax
	jmp	LBB0_10
LBB0_1:
	xorl	%r15d, %r15d
LBB0_11:
	movq	_tot_items@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_13
## %bb.12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_del_items@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_fprintf
LBB0_13:
	movq	_del_items@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	decl	%r15d
	xorl	%edi, %edi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qsort_i                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ITEMS_HASH_PRIME,4,2           ## @ITEMS_HASH_PRIME
	.comm	_Items,8,3                      ## @Items
	.comm	_FLAG_DELETED,4,2               ## @FLAG_DELETED
	.comm	_tot_items,4,2                  ## @tot_items
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found %d items. Deleted %d items.\n"

	.comm	_del_items,4,2                  ## @del_items
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sort_items                     ; -- Begin function sort_items
	.p2align	2
_sort_items:                            ; @sort_items
	.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
Lloh0:
	adrp	x20, _ITEMS_HASH_PRIME@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ITEMS_HASH_PRIME@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x21, #0
	mov	w19, #0
Lloh2:
	adrp	x22, _Items@GOTPAGE
Lloh3:
	ldr	x22, [x22, _Items@GOTPAGEOFF]
Lloh4:
	adrp	x23, _FLAG_DELETED@GOTPAGE
Lloh5:
	ldr	x23, [x23, _FLAG_DELETED@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x9, [x10, w19, sxtw #3]
	add	w19, w19, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x22]
	ldr	x9, [x10, x21, lsl #3]
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x9]
	ldr	w12, [x23]
	tst	w12, w11
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x9, #8]
	cbz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x9, #4]
	cmp	w8, #0
	cset	w0, eq
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_assert
	ldr	w8, [x20]
	b	LBB0_3
LBB0_10:
	mov	w19, #0
LBB0_11:
Lloh6:
	adrp	x8, _tot_items@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tot_items@GOTPAGEOFF]
Lloh8:
	str	w19, [x8]
Lloh9:
	adrp	x8, _verbosity@GOTPAGE
Lloh10:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x20, _del_items@GOTPAGE
Lloh13:
	ldr	x20, [x20, _del_items@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.12:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w3, [x20]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_13:
	str	wzr, [x20]
	sub	w1, w19, #1
	mov	w0, #0
	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
	b	_qsort_i
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ITEMS_HASH_PRIME,4,2           ; @ITEMS_HASH_PRIME
	.comm	_Items,8,3                      ; @Items
	.comm	_FLAG_DELETED,4,2               ; @FLAG_DELETED
	.comm	_tot_items,4,2                  ; @tot_items
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found %d items. Deleted %d items.\n"

	.comm	_del_items,4,2                  ; @del_items
.subsections_via_symbols
