	.file	"extr_news-data.c_build_bookmark_lists.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	build_bookmark_lists
	.type	build_bookmark_lists, @function
build_bookmark_lists:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	r12d, DWORD PTR bookmarks_ptr[rip]
	cmp	QWORD PTR new_users_number[rip], 0
	sete	al
	xor	edi, edi
	test	r12d, r12d
	setle	dil
	and	edi, eax
	call	assert@PLT
	test	r12d, r12d
	jns	.L1
	mov	r10, QWORD PTR new_users_number[rip]
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L11:
	xor	edi, edi
	cmp	QWORD PTR MAX_NEW_BOOKMARK_USERS[rip], r10
	seta	dil
	call	assert@PLT
	movsx	r8, r12d
	mov	r9, QWORD PTR bookmarks[rip]
	mov	r13, r8
	sal	r13, 4
	lea	rdx, [r9+r13]
	mov	ebp, DWORD PTR [rdx]
	test	ebx, ebx
	je	.L21
	movsx	rcx, ebx
	mov	eax, ebx
	sal	rcx, 4
	mov	ebx, DWORD PTR [r9+rcx]
.L4:
	mov	r10, QWORD PTR new_users_number[rip]
	mov	rcx, QWORD PTR new_users[rip]
	mov	rdi, QWORD PTR 8[rdx]
	lea	rcx, [rcx+r10*8]
	add	r10, 1
	mov	DWORD PTR [rcx], ebp
	mov	DWORD PTR 4[rcx], eax
	mov	QWORD PTR new_users_number[rip], r10
	.p2align 4,,10
	.p2align 3
.L10:
	cdqe
	sal	r8, 4
	mov	edx, r12d
	sal	rax, 4
	add	r8, r9
	mov	DWORD PTR [r9+rax], r12d
	and	DWORD PTR 4[r8], 1
	add	edx, 1
	je	.L5
	mov	rax, r8
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	cmp	ebp, esi
	jne	.L9
	mov	DWORD PTR 16[rax], ebx
	add	rax, 16
	mov	ebx, edx
	add	edx, 1
	je	.L5
.L6:
	mov	rcx, QWORD PTR 24[rax]
	mov	esi, DWORD PTR 16[rax]
	cmp	rcx, rdi
	je	.L22
	mov	eax, r12d
	cmp	ebp, esi
	jne	.L9
	movsx	r8, edx
	mov	rdi, rcx
	mov	r12, r8
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L5:
	mov	DWORD PTR [r8], 0
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	DWORD PTR [r8], 0
	mov	r12d, edx
	jmp	.L11
.L21:
	xor	eax, eax
	mov	QWORD PTR 8[rsp], r8
	call	next_bookmark_ptr@PLT
	mov	r9, QWORD PTR bookmarks[rip]
	mov	r8, QWORD PTR 8[rsp]
	lea	rdx, [r9+r13]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	build_bookmark_lists, .-build_bookmark_lists
	.comm	new_users_number,8,8
	.comm	new_users,8,8
	.comm	bookmarks_ptr,4,4
	.comm	bookmarks,8,8
	.comm	MAX_NEW_BOOKMARK_USERS,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_news-data.c_build_bookmark_lists.c"
	.text
	.align	2
	.global	build_bookmark_lists
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_bookmark_lists, %function
build_bookmark_lists:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L26
	ldr	r8, .L26+4
	ldr	fp, [r3]
	ldr	r0, [r8]
	cmp	fp, #0
	movgt	r3, #0
	movle	r3, #1
	cmp	r0, #0
	moveq	r0, r3
	movne	r0, #0
	bl	assert
	cmp	fp, #0
	popge	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r9, #0
	ldr	r0, [r8]
.L11:
	ldr	r3, .L26+8
	lsl	r4, fp, #4
	ldr	r3, [r3]
	cmp	r3, r0
	movls	r0, #0
	movhi	r0, #1
	bl	assert
	ldr	r3, .L26+12
	cmp	r9, #0
	ldr	lr, [r3]
	ldr	r10, [lr, fp, lsl #4]
	add	ip, lr, fp, lsl #4
	beq	.L24
	mov	r1, r9
	ldr	r9, [lr, r9, lsl #4]
.L4:
	add	r7, ip, #8
	ldmia	r7, {r6-r7}
	mov	ip, r4
	ldr	r3, .L26+16
	ldr	r2, [r8]
	ldr	r3, [r3]
	add	r0, r2, #1
	str	r10, [r3, r2, lsl #3]
	add	r3, r3, r2, lsl #3
	str	r1, [r3, #4]
	str	r0, [r8]
.L10:
	add	ip, lr, ip
	ldr	r3, [ip, #4]
	adds	r2, fp, #1
	and	r3, r3, #1
	str	fp, [lr, r1, lsl #4]
	str	r3, [ip, #4]
	beq	.L5
	mov	r3, ip
	b	.L6
.L25:
	cmp	r10, r1
	bne	.L9
	adds	r1, r2, #1
	str	r9, [r3, #16]!
	mov	r9, r2
	beq	.L5
	mov	r2, r1
.L6:
	add	r5, r3, #24
	ldmia	r5, {r4-r5}
	cmp	r5, r7
	cmpeq	r4, r6
	ldr	r1, [r3, #16]
	beq	.L25
	cmp	r10, r1
	mov	r1, fp
	bne	.L9
	mov	fp, r2
	mov	r6, r4
	mov	r7, r5
	lsl	ip, r2, #4
	b	.L10
.L5:
	mov	r3, #0
	str	r3, [ip]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	r3, #0
	mov	fp, r2
	str	r3, [ip]
	b	.L11
.L24:
	bl	next_bookmark_ptr
	ldr	r3, .L26+12
	mov	r1, r0
	ldr	lr, [r3]
	add	ip, lr, r4
	b	.L4
.L27:
	.align	2
.L26:
	.word	bookmarks_ptr
	.word	new_users_number
	.word	MAX_NEW_BOOKMARK_USERS
	.word	bookmarks
	.word	new_users
	.size	build_bookmark_lists, .-build_bookmark_lists
	.comm	new_users_number,4,4
	.comm	new_users,4,4
	.comm	bookmarks_ptr,4,4
	.comm	bookmarks,4,4
	.comm	MAX_NEW_BOOKMARK_USERS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
