	.file	"extr_dm-clone-metadata.c___load_bitset_in_core.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__load_bitset_in_core, @function
__load_bitset_in_core:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rdx, 8[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	lea	rbp, 12[rdi]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR 8[rdi]
	mov	rdi, rbp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	dm_bitset_flush@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L11
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rbx]
	lea	r12, 4[rsp]
	mov	rdi, rbp
	mov	rcx, r12
	call	dm_bitset_cursor_begin@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	xor	ebp, ebp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	call	__set_bit@PLT
	mov	eax, DWORD PTR [rbx]
	lea	edx, -1[rax]
	movsx	rdx, edx
	cmp	rdx, rbp
	jbe	.L5
.L14:
	mov	rdi, r12
	call	dm_bitset_cursor_next@PLT
	test	eax, eax
	jne	.L8
	add	rbp, 1
.L6:
	mov	rdi, r12
	call	dm_bitset_cursor_get_value@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, rbp
	test	rax, rax
	jne	.L13
	call	__clear_bit@PLT
	mov	eax, DWORD PTR [rbx]
	lea	edx, -1[rax]
	movsx	rdx, edx
	cmp	rdx, rbp
	ja	.L14
.L5:
	mov	rdi, r12
	call	dm_bitset_cursor_end@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r12
	mov	r13d, eax
	call	dm_bitset_cursor_end@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__load_bitset_in_core, .-__load_bitset_in_core
	.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-clone-metadata.c___load_bitset_in_core.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_bitset_in_core, %function
__load_bitset_in_core:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L15
	add	r5, r0, #12
	sub	sp, sp, #8
	mov	r0, r5
	ldr	r1, [r4, #8]
	add	r2, r4, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	dm_bitset_flush
	subs	r6, r0, #0
	beq	.L11
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	mov	r0, r5
	mov	r3, sp
	ldr	r2, [r4]
	ldr	r1, [r4, #8]
	bl	dm_bitset_cursor_begin
	subs	r6, r0, #0
	bne	.L1
	mov	r5, r6
	b	.L6
.L13:
	bl	__set_bit
	ldr	r3, [r4]
	sub	r3, r3, #1
	cmp	r3, r5
	bls	.L5
.L14:
	mov	r0, sp
	bl	dm_bitset_cursor_next
	cmp	r0, #0
	bne	.L8
	add	r5, r5, #1
.L6:
	mov	r0, sp
	bl	dm_bitset_cursor_get_value
	cmp	r0, #0
	ldr	r1, [r4, #4]
	mov	r0, r5
	bne	.L13
	bl	__clear_bit
	ldr	r3, [r4]
	sub	r3, r3, #1
	cmp	r3, r5
	bhi	.L14
.L5:
	mov	r0, sp
	bl	dm_bitset_cursor_end
	b	.L1
.L8:
	mov	r6, r0
	mov	r0, sp
	bl	dm_bitset_cursor_end
	b	.L1
.L12:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	__load_bitset_in_core, .-__load_bitset_in_core
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
