	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_build_bookmark_lists           ## -- Begin function build_bookmark_lists
	.p2align	4, 0x90
_build_bookmark_lists:                  ## @build_bookmark_lists
	.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	_bookmarks_ptr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_new_users_number@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	sete	%al
	testl	%r15d, %r15d
	setle	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	testl	%r15d, %r15d
	jns	LBB0_14
## %bb.1:
	movq	(%rbx), %r9
	xorl	%r13d, %r13d
	movq	_MAX_NEW_BOOKMARK_USERS@GOTPCREL(%rip), %rax
	movq	_bookmarks@GOTPCREL(%rip), %rbx
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	xorl	%edi, %edi
	cmpq	(%rax), %r9
	setb	%dil
	callq	_assert
	movq	(%rbx), %rax
	movslq	%r15d, %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %r12d
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r10
	movslq	%r13d, %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %r14d
	jmp	LBB0_5
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_next_bookmark_ptr
	movl	%eax, %r13d
	movq	%rbx, %r10
	movq	(%rbx), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edx
	movq	_new_users@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_new_users_number@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r9
	movl	%r12d, (%rcx,%r9,8)
	movl	%r13d, 4(%rcx,%r9,8)
	incq	%r9
	movq	%r9, (%rsi)
	leaq	16(%rax), %r8
	movl	%r14d, %r13d
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	movslq	%edx, %rcx
	shlq	$4, %rcx
	movl	%r15d, (%rax,%rcx)
	movslq	%r15d, %rcx
	movq	%rcx, %rsi
	shlq	$4, %rsi
	andl	$1, 4(%rax,%rsi)
	cmpl	$-2, %ecx
	jg	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%rax,%rsi), %rdi
	leal	1(%r15), %ebx
	leaq	(%r8,%rsi), %rdx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%ebx, %ecx
	movl	(%rdx), %ebx
	cmpq	%rdi, 8(%rdx)
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	cmpl	%r12d, %ebx
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=3
	movl	%r13d, (%rdx)
	addq	$16, %rdx
	movl	%ecx, %ebx
	movl	%ecx, %r13d
	incl	%ebx
	jne	LBB0_8
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	%r15d, %edx
	movl	%ecx, %r15d
	cmpl	%r12d, %ebx
	je	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, (%rax,%rsi)
	movl	%ecx, %r15d
	testl	%ecx, %ecx
	movq	_MAX_NEW_BOOKMARK_USERS@GOTPCREL(%rip), %rax
	movq	%r10, %rbx
	js	LBB0_2
	jmp	LBB0_14
LBB0_11:
	movl	$0, (%rax,%rsi)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bookmarks_ptr,4,2              ## @bookmarks_ptr
	.comm	_new_users_number,8,3           ## @new_users_number
	.comm	_MAX_NEW_BOOKMARK_USERS,8,3     ## @MAX_NEW_BOOKMARK_USERS
	.comm	_bookmarks,8,3                  ## @bookmarks
	.comm	_new_users,8,3                  ## @new_users
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_build_bookmark_lists           ; -- Begin function build_bookmark_lists
	.p2align	2
_build_bookmark_lists:                  ; @build_bookmark_lists
	.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
Lloh0:
	adrp	x8, _bookmarks_ptr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bookmarks_ptr@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x20, _new_users_number@GOTPAGE
Lloh4:
	ldr	x20, [x20, _new_users_number@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	ccmp	w21, #1, #0, eq
	cset	w0, lt
	bl	_assert
	tbz	w21, #31, LBB0_13
; %bb.1:
	mov	w19, #0
	ldr	x9, [x20]
Lloh5:
	adrp	x22, _MAX_NEW_BOOKMARK_USERS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MAX_NEW_BOOKMARK_USERS@GOTPAGEOFF]
Lloh7:
	adrp	x23, _bookmarks@GOTPAGE
Lloh8:
	ldr	x23, [x23, _bookmarks@GOTPAGEOFF]
Lloh9:
	adrp	x24, _new_users@GOTPAGE
Lloh10:
	ldr	x24, [x24, _new_users@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_8 Depth 3
	ldr	x8, [x22]
	cmp	x9, x8
	cset	w0, lo
	bl	_assert
	ldr	x8, [x23]
	mov	x9, x21
	sbfiz	x9, x9, #4, #32
	ldr	w25, [x8, x9]
	cbz	w19, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sbfiz	x9, x19, #4, #32
	ldr	w11, [x8, x9]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_next_bookmark_ptr
	mov	x19, x0
	mov	w11, #0
	ldr	x8, [x23]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x13, x19
	ldr	x9, [x24]
	ldr	x10, [x20]
	add	x9, x9, x10, lsl #3
	stp	w25, w19, [x9]
	add	x9, x10, #1
	str	x9, [x20]
	add	x10, x8, #16
	mov	x19, x11
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_8 Depth 3
	sbfiz	x11, x13, #4, #32
	str	w21, [x8, x11]
	sxtw	x11, w21
	add	x12, x8, w21, sxtw #4
	ldr	w13, [x12, #4]
	and	w13, w13, #0x1
	str	w13, [x12, #4]
	cmn	w21, #2
	b.gt	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x13, [x12, #8]
	add	w12, w11, #1
	add	x14, x10, x11, lsl #4
LBB0_8:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x16, [x14, #8]
	ldr	w15, [x14]
	cmp	x16, x13
	ccmp	w15, w25, #0, eq
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=3
	str	w19, [x14], #16
	mov	x19, x12
	adds	w12, w12, #1
	b.lo	LBB0_8
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x13, x21
	mov	x21, x12
	cmp	w15, w25
	b.eq	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	lsl	x10, x11, #4
	str	wzr, [x8, x10]
	mov	x21, x12
	tbnz	w12, #31, LBB0_2
	b	LBB0_13
LBB0_12:
	lsl	x9, x11, #4
	str	wzr, [x8, x9]
LBB0_13:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_bookmarks_ptr,4,2              ; @bookmarks_ptr
	.comm	_new_users_number,8,3           ; @new_users_number
	.comm	_MAX_NEW_BOOKMARK_USERS,8,3     ; @MAX_NEW_BOOKMARK_USERS
	.comm	_bookmarks,8,3                  ; @bookmarks
	.comm	_new_users,8,3                  ; @new_users
.subsections_via_symbols
