	.file	"extr_dsl_bookmark.c_last_entry.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	last_entry, @function
last_entry:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	mov	edi, esi
	mov	ebx, DWORD PTR [rax]
	call	redact_block_buf_num_entries@PLT
	sub	ebx, 1
	mov	r8d, eax
	mov	eax, ebx
	cdq
	idiv	r8d
	cmp	eax, r13d
	je	.L6
	mov	edi, ebp
	call	redact_block_buf_num_entries@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	r8d, -1[rax]
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR [r12]
	mov	edi, ebp
	mov	r8d, DWORD PTR [rax]
	lea	ebx, -1[r8]
	call	redact_block_buf_num_entries@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	r9d, eax
	mov	eax, ebx
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	cdq
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	idiv	r9d
	mov	r8d, edx
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	last_entry, .-last_entry
	.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_dsl_bookmark.c_last_entry.c"
	.text
	.global	__aeabi_idiv
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	last_entry, %function
last_entry:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r0, r1
	mov	r6, r2
	ldr	r7, [r3]
	mov	r4, r1
	bl	redact_block_buf_num_entries
	sub	r7, r7, #1
	mov	r1, r0
	mov	r0, r7
	bl	__aeabi_idiv
	cmp	r0, r6
	beq	.L6
	mov	r0, r4
	bl	redact_block_buf_num_entries
	sub	r0, r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, [r5]
	mov	r0, r4
	ldr	r4, [r3]
	bl	redact_block_buf_num_entries
	sub	r4, r4, #1
	mov	r1, r0
	mov	r0, r4
	bl	__aeabi_idivmod
	mov	r0, r1
	pop	{r4, r5, r6, r7, r8, pc}
	.size	last_entry, .-last_entry
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
