	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function collect_garbage_items
_collect_garbage_items:                 ## @collect_garbage_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	_UG_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_NOTIFY_MODE@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	setne	%al
	movq	_RECOMMEND_MODE@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	movl	%edi, %r14d
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_items_kept@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_garbage_uid@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	(%r14,%r14), %eax
	leal	(%rax,%rax,4), %r13d
	movq	_MAX_USERS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	setns	%cl
	cmpl	%eax, %ebx
	setl	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	_User@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %r15
	testq	%r15, %r15
	je	LBB0_11
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_UG_MODE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_remove_old_items
	cmpl	$0, (%r15)
	je	LBB0_8
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_NOTIFY_MODE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_remove_old_notify_items
	cmpl	$0, (%r15)
	je	LBB0_8
	jmp	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_RECOMMEND_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_assert
	movq	%r15, %rdi
	callq	_remove_old_recommend_items
	cmpl	$0, (%r15)
	jne	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_RECOMMEND_MODE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_garbage_users_collected@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	%ebx, %edi
	callq	_delete_user_by_idx
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	decl	%r14d
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	addl	$239, %ebx
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	movl	%eax, %ecx
	movl	$0, %edx
	cmovll	%edx, %ecx
	subl	%ecx, %ebx
	movq	_garbage_uid@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	jle	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	leal	-1(%r13), %ecx
	cmpl	$1, %r13d
	movl	%ecx, %r13d
	jg	LBB0_1
LBB0_14:
	movq	_garbage_uid@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	_items_kept@GOTPCREL(%rip), %rax
	subl	(%rax), %ecx
	movq	_garbage_objects_collected@GOTPCREL(%rip), %rax
	addl	%ecx, (%rax)
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UG_MODE,8,3                    ## @UG_MODE
	.comm	_NOTIFY_MODE,8,3                ## @NOTIFY_MODE
	.comm	_RECOMMEND_MODE,4,2             ## @RECOMMEND_MODE
	.comm	_items_kept,4,2                 ## @items_kept
	.comm	_garbage_uid,4,2                ## @garbage_uid
	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
	.comm	_User,8,3                       ## @User
	.comm	_garbage_users_collected,4,2    ## @garbage_users_collected
	.comm	_garbage_objects_collected,4,2  ## @garbage_objects_collected
	.no_dead_strip	_collect_garbage_items
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function collect_garbage_items
_collect_garbage_items:                 ; @collect_garbage_items
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x22, _UG_MODE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _UG_MODE@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _NOTIFY_MODE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NOTIFY_MODE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cmp	x8, #0
Lloh5:
	adrp	x24, _RECOMMEND_MODE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _RECOMMEND_MODE@GOTPAGEOFF]
	ldr	w8, [x24]
	ccmp	w8, #0, #0, eq
	cset	w0, ne
	bl	_assert
Lloh7:
	adrp	x8, _items_kept@GOTPAGE
Lloh8:
	ldr	x8, [x8, _items_kept@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh10:
	adrp	x27, _garbage_uid@GOTPAGE
Lloh11:
	ldr	x27, [x27, _garbage_uid@GOTPAGEOFF]
	ldr	w20, [x27]
	add	w8, w19, w19, lsl #2
Lloh12:
	adrp	x28, _MAX_USERS@GOTPAGE
Lloh13:
	ldr	x28, [x28, _MAX_USERS@GOTPAGEOFF]
	lsl	w26, w8, #1
	ldr	w8, [x28]
Lloh14:
	adrp	x25, _User@GOTPAGE
Lloh15:
	ldr	x25, [x25, _User@GOTPAGEOFF]
Lloh16:
	adrp	x23, _garbage_users_collected@GOTPAGE
Lloh17:
	ldr	x23, [x23, _garbage_users_collected@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w19, w19, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w20, #239
	ldr	w8, [x28]
	cmp	w9, w8
	csel	w10, wzr, w8, lt
	ldr	w11, [x27]
	sub	w20, w9, w10
	cmp	w20, w11
	ccmp	w19, #1, #8, ne
	ccmp	w26, #1, #4, ge
	sub	w26, w26, #1
	b.le	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, #0
	ccmp	w20, w8, #0, ge
	cset	w0, lt
	bl	_assert
	ldr	x8, [x25]
	ldr	x21, [x8, w20, sxtw #3]
	cbz	x21, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_remove_old_items
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x8, _NOTIFY_MODE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NOTIFY_MODE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_remove_old_notify_items
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24]
	bl	_assert
	mov	x0, x21
	bl	_remove_old_recommend_items
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x24]
	cmp	w8, #0
	ccmp	w9, #0, #4, eq
	b.eq	LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	mov	x0, x20
	bl	_delete_user_by_idx
	b	LBB0_1
LBB0_11:
	str	w20, [x27]
Lloh21:
	adrp	x8, _garbage_objects_collected@GOTPAGE
Lloh22:
	ldr	x8, [x8, _garbage_objects_collected@GOTPAGEOFF]
Lloh23:
	adrp	x9, _items_kept@GOTPAGE
Lloh24:
	ldr	x9, [x9, _items_kept@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	ldr	w10, [x8]
	ldr	w11, [sp, #12]                  ; 4-byte Folded Reload
	sub	w9, w11, w9
	add	w9, w9, w10
	str	w9, [x8]
	mov	w0, #1
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_UG_MODE,8,3                    ; @UG_MODE
	.comm	_NOTIFY_MODE,8,3                ; @NOTIFY_MODE
	.comm	_RECOMMEND_MODE,4,2             ; @RECOMMEND_MODE
	.comm	_items_kept,4,2                 ; @items_kept
	.comm	_garbage_uid,4,2                ; @garbage_uid
	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
	.comm	_User,8,3                       ; @User
	.comm	_garbage_users_collected,4,2    ; @garbage_users_collected
	.comm	_garbage_objects_collected,4,2  ; @garbage_objects_collected
	.no_dead_strip	_collect_garbage_items
.subsections_via_symbols
