	.file	"extr_free-space.c_load_free_space_bitmap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	load_free_space_bitmap, @function
load_free_space_bitmap:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	mov	rbx, r8
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR [rsp], rsi
	mov	rsi, rcx
	mov	DWORD PTR 12[rsp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR [rdi]
	mov	r10, rax
	shr	rax, 2
	je	.L2
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L3:
	not	DWORD PTR [rsi+rax*4]
	movsx	rdx, DWORD PTR 0[rbp]
	add	rax, 1
	mov	r10, rdx
	shr	rdx, 2
	cmp	rdx, rax
	ja	.L3
.L2:
	lea	r12d, 0[0+r10*8]
	lea	r13, 32[rsp]
	mov	edx, r12d
	mov	rdi, r13
	call	RtlInitializeBitMap@PLT
	lea	rax, 36[rsp]
	mov	rdi, r13
	mov	DWORD PTR 36[rsp], 0
	mov	rsi, rax
	mov	QWORD PTR 16[rsp], rax
	call	RtlFindFirstRunClear@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L1
	mov	rax, QWORD PTR [rsp]
	add	rax, 4
	mov	QWORD PTR 24[rsp], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	lea	ecx, [rdx+r15]
	mov	eax, r12d
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, QWORD PTR 24[rsp]
	sub	eax, edx
	cmp	ecx, r12d
	cmovge	r15d, eax
	mov	eax, DWORD PTR 0[rbp]
	mov	r14d, eax
	imul	edx, eax
	add	edx, DWORD PTR 12[rsp]
	imul	r14d, r15d
	mov	ecx, r14d
	call	add_space_entry@PLT
	add	DWORD PTR [rbx], r14d
	mov	esi, DWORD PTR 36[rsp]
	mov	rdi, r13
	mov	rdx, QWORD PTR 16[rsp]
	add	esi, r15d
	mov	DWORD PTR 36[rsp], esi
	call	RtlFindNextForwardRunClear@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L1
.L6:
	mov	edx, DWORD PTR 36[rsp]
	cmp	edx, r12d
	jl	.L18
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	load_free_space_bitmap, .-load_free_space_bitmap
	.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_free-space.c_load_free_space_bitmap.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_free_space_bitmap, %function
load_free_space_bitmap:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, [r0]
	mov	r8, r1
	lsrs	r1, r5, #2
	mov	r1, r3
	ldr	r3, .L20
	sub	sp, sp, #20
	mov	r6, r0
	mov	r9, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r7, [sp, #56]
	beq	.L2
	mov	ip, #0
	sub	r0, r1, #4
.L3:
	ldr	r2, [r0, #4]!
	add	ip, ip, #1
	mvn	r2, r2
	str	r2, [r0]
	ldr	r5, [r6]
	cmp	ip, r5, lsr #2
	bcc	.L3
.L2:
	lsl	r5, r5, #3
	mov	r2, r5
	add	r0, sp, #4
	bl	RtlInitializeBitMap
	mov	r3, #0
	add	r0, sp, #4
	add	r1, sp, #8
	str	r3, [sp, #8]
	bl	RtlFindFirstRunClear
	subs	r4, r0, #0
	beq	.L1
	add	r10, r8, #4
	b	.L6
.L18:
	add	r2, r3, r4
	cmp	r2, r5
	ldr	r2, [r6]
	subge	r4, r5, r3
	mul	fp, r4, r2
	mov	r1, r8
	mla	r2, r3, r2, r9
	mov	r0, r10
	mov	r3, fp
	bl	add_space_entry
	ldr	r3, [r7]
	ldr	r1, [sp, #8]
	add	fp, r3, fp
	add	r1, r4, r1
	str	fp, [r7]
	add	r2, sp, #8
	add	r0, sp, #4
	str	r1, [sp, #8]
	bl	RtlFindNextForwardRunClear
	subs	r4, r0, #0
	beq	.L1
.L6:
	ldr	r3, [sp, #8]
	cmp	r3, r5
	blt	.L18
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.size	load_free_space_bitmap, .-load_free_space_bitmap
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
