	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_insert_new_users               ## -- Begin function insert_new_users
	.p2align	4, 0x90
_insert_new_users:                      ## @insert_new_users
	.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
	movl	%edi, %r14d
	movq	_new_users_number@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	_new_users@GOTPCREL(%rip), %r8
	movq	(%r8), %rdx
	movl	$-1, %ebx
	movl	%eax, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%edi, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %ecx
	subl	%ebx, %ecx
	cmpl	$1, %ecx
	jle	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rsi,%rbx), %edi
	sarl	%edi
	movslq	%edi, %rcx
	shlq	$4, %rcx
	cmpl	%r14d, (%rdx,%rcx)
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%edi, %esi
	jmp	LBB0_6
LBB0_7:
	testl	%ebx, %ebx
	js	LBB0_9
## %bb.8:
	movq	(%r8), %rcx
	movl	%ebx, %edx
	shlq	$4, %rdx
	cmpl	%r14d, (%rcx,%rdx)
	jne	LBB0_9
	jmp	LBB0_10
LBB0_1:
	movl	$-1, %ebx
LBB0_9:
	movslq	%ebx, %r12
	incl	%ebx
	shlq	$4, %r12
	movq	_MAX_NEW_BOOKMARK_USERS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setl	%dil
	callq	_assert
	movq	_new_users@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	leaq	(%rax,%r12), %rsi
	addq	$16, %rsi
	leaq	(%rax,%r12), %rdi
	addq	$32, %rdi
	movl	(%r15), %edx
	subl	%ebx, %edx
	shll	$2, %edx
	callq	_memmove
	movq	(%r13), %rax
	movl	%r14d, 16(%rax,%r12)
	xorl	%eax, %eax
	callq	_next_bookmark_ptr
	movq	(%r13), %rcx
	movq	%rax, 24(%rcx,%r12)
	movq	_NIL_BOOKMARK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_bookmarks@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rdx,%rax,4)
	incl	(%r15)
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_new_users_number,4,2           ## @new_users_number
	.comm	_new_users,8,3                  ## @new_users
	.comm	_MAX_NEW_BOOKMARK_USERS,4,2     ## @MAX_NEW_BOOKMARK_USERS
	.comm	_NIL_BOOKMARK,4,2               ## @NIL_BOOKMARK
	.comm	_bookmarks,8,3                  ## @bookmarks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_insert_new_users               ; -- Begin function insert_new_users
	.p2align	2
_insert_new_users:                      ; @insert_new_users
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _new_users_number@GOTPAGE
Lloh1:
	ldr	x20, [x20, _new_users_number@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _new_users@GOTPAGE
Lloh3:
	ldr	x21, [x21, _new_users@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	ldr	x9, [x21]
	mov	w0, #-1
	mov	x10, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w11, w10, w0
	asr	w11, w11, #1
	sbfiz	x12, x11, #4, #32
	ldr	w12, [x9, x12]
	cmp	w12, w19
	csel	w0, w0, w11, gt
	csel	w10, w11, w10, gt
	sub	w11, w10, w0
	cmp	w11, #1
	b.gt	LBB0_2
; %bb.3:
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	x9, [x21]
	lsl	x10, x0, #4
	ldr	w9, [x9, x10]
	cmp	w9, w19
	b.ne	LBB0_6
	b	LBB0_7
LBB0_5:
	mov	w0, #-1
LBB0_6:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	sxtw	x9, w0
	add	x22, x9, #1
Lloh4:
	adrp	x9, _MAX_NEW_BOOKMARK_USERS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MAX_NEW_BOOKMARK_USERS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, lt
	bl	_assert
	ldr	x8, [x21]
	lsl	x23, x22, #4
	add	x1, x8, x23
	add	x0, x1, #16
	ldr	w8, [x20]
	sub	w8, w8, w22
	lsl	w2, w8, #2
	bl	_memmove
	ldr	x8, [x21]
	str	w19, [x8, x23]
	bl	_next_bookmark_ptr
	ldr	x8, [x21]
	add	x8, x8, x23
	str	x0, [x8, #8]
Lloh7:
	adrp	x8, _NIL_BOOKMARK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NIL_BOOKMARK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _bookmarks@GOTPAGE
Lloh11:
	ldr	x9, [x9, _bookmarks@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	str	w8, [x9, x0, lsl #2]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	x0, x22
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_new_users_number,4,2           ; @new_users_number
	.comm	_new_users,8,3                  ; @new_users
	.comm	_MAX_NEW_BOOKMARK_USERS,4,2     ; @MAX_NEW_BOOKMARK_USERS
	.comm	_NIL_BOOKMARK,4,2               ; @NIL_BOOKMARK
	.comm	_bookmarks,8,3                  ; @bookmarks
.subsections_via_symbols
