	.file	"extr_dm-cache-metadata.c___load_discards.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__load_discards, @function
__load_discards:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR 4[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	from_dblock@PLT
	test	eax, eax
	je	.L8
	xor	ebx, ebx
	cmp	QWORD PTR 16[rbp], 0
	je	.L4
	mov	esi, DWORD PTR 8[rbp]
	lea	rbx, 12[rbp]
	lea	rdx, 8[rbp]
	mov	rdi, rbx
	call	dm_bitset_flush@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR 4[rbp]
	lea	r15, 4[rsp]
	call	from_dblock@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	rcx, r15
	mov	rdi, rbx
	mov	edx, eax
	call	dm_bitset_cursor_begin@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L6
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR 4[rbp]
	call	from_dblock@PLT
	sub	eax, 1
	cmp	eax, r12d
	jle	.L5
	mov	rdi, r15
	call	dm_bitset_cursor_next@PLT
	mov	ebx, eax
	test	eax, eax
	jne	.L5
	add	r12d, 1
.L6:
	mov	rdi, r15
	call	dm_bitset_cursor_get_value@PLT
	mov	edi, r12d
	mov	ebx, eax
	call	to_dblock@PLT
	mov	ecx, ebx
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r14
	mov	edx, eax
	call	r13
	mov	ebx, eax
	test	eax, eax
	je	.L14
.L5:
	mov	rdi, r15
	mov	r12d, ebx
	call	dm_bitset_cursor_end@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, ebx
	call	to_dblock@PLT
	mov	esi, DWORD PTR 0[rbp]
	xor	ecx, ecx
	mov	rdi, r14
	mov	edx, eax
	call	r13
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	add	ebx, 1
.L4:
	mov	edi, DWORD PTR 4[rbp]
	call	from_dblock@PLT
	cmp	eax, ebx
	jg	.L7
.L8:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__load_discards, .-__load_discards
	.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_dm-cache-metadata.c___load_discards.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__load_discards, %function
__load_discards:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L15
	sub	sp, sp, #12
	mov	r6, r0
	ldr	r0, [r0, #4]
	mov	r7, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	from_dblock
	cmp	r0, #0
	beq	.L8
	ldr	r5, [r6, #16]
	cmp	r5, #0
	beq	.L4
	add	r5, r6, #12
	mov	r0, r5
	ldr	r1, [r6, #8]
	add	r2, r6, #8
	bl	dm_bitset_flush
	subs	r4, r0, #0
	bne	.L1
	ldmib	r6, {r0, r4}
	bl	from_dblock
	mov	r1, r4
	mov	r2, r0
	mov	r3, sp
	mov	r0, r5
	bl	dm_bitset_cursor_begin
	subs	r4, r0, #0
	beq	.L6
	b	.L1
.L13:
	ldr	r0, [r6, #4]
	bl	from_dblock
	sub	r0, r0, #1
	cmp	r0, r4
	ble	.L5
	mov	r0, sp
	bl	dm_bitset_cursor_next
	subs	r5, r0, #0
	bne	.L5
	add	r4, r4, #1
.L6:
	mov	r0, r4
	ldr	r9, [r6]
	bl	to_dblock
	mov	r5, r0
	mov	r0, sp
	bl	dm_bitset_cursor_get_value
	mov	r2, r5
	mov	r3, r0
	mov	r1, r9
	mov	r0, r8
	blx	r7
	subs	r5, r0, #0
	beq	.L13
.L5:
	mov	r0, sp
	bl	dm_bitset_cursor_end
	mov	r4, r5
	b	.L1
.L7:
	mov	r0, r5
	ldr	r4, [r6]
	bl	to_dblock
	mov	r1, r4
	mov	r2, r0
	mov	r3, #0
	mov	r0, r8
	blx	r7
	subs	r4, r0, #0
	bne	.L1
	add	r5, r5, #1
.L4:
	ldr	r0, [r6, #4]
	bl	from_dblock
	cmp	r0, r5
	bgt	.L7
.L8:
	mov	r4, #0
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	__load_discards, .-__load_discards
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
