	.file	"extr_lsm_file.c_fsFreeBlock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fsFreeBlock, @function
fsFreeBlock:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR LSM_OK[rip]
	mov	r13, QWORD PTR [rsi]
	mov	esi, ecx
	mov	QWORD PTR 8[rsp], rdi
	mov	DWORD PTR 4[rsp], eax
	call	fsFirstPageOnBlock@PLT
	mov	rdi, rbx
	mov	esi, r15d
	mov	rbp, rax
	call	fsLastPageOnBlock@PLT
	mov	rdi, r14
	mov	rbx, rax
	call	lsmDbSnapshotLevel@PLT
	test	rax, rax
	je	.L2
	mov	r14, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r14, QWORD PTR [r14]
	test	r14, r14
	je	.L2
.L5:
	mov	rcx, rbx
	mov	rdx, rbp
	mov	rsi, r12
	mov	rdi, r14
	call	fsLevelEndsBetween@PLT
	test	rax, rax
	je	.L3
	mov	eax, DWORD PTR LSM_OK[rip]
	mov	DWORD PTR 4[rsp], eax
.L1:
	mov	eax, DWORD PTR 4[rsp]
	add	rsp, 24
	.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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r9d, DWORD PTR LSM_APPLIST_SZ[rip]
	test	r9d, r9d
	jle	.L6
	lea	eax, -1[r9]
	xor	ecx, ecx
	mov	r8, rax
	lea	rdi, 8[r13+rax*8]
	mov	rax, r13
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdx, QWORD PTR [rax]
	cmp	rdx, rbx
	jg	.L11
	cmp	rdx, rbp
	jge	.L7
.L11:
	movsx	rsi, ecx
	add	ecx, 1
	mov	QWORD PTR 0[r13+rsi*8], rdx
.L7:
	add	rax, 8
	cmp	rax, rdi
	jne	.L9
	cmp	ecx, r9d
	jge	.L6
	movsx	rdx, ecx
	sub	r8d, ecx
	add	r8, rdx
	lea	rax, 0[r13+rdx*8]
	lea	rdx, 8[r13+r8*8]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	QWORD PTR [rax], 0
	add	rax, 8
	cmp	rdx, rax
	jne	.L10
.L6:
	mov	eax, DWORD PTR 4[rsp]
	cmp	DWORD PTR LSM_OK[rip], eax
	jne	.L1
	mov	rax, QWORD PTR 8[rsp]
	mov	esi, r15d
	mov	edi, DWORD PTR [rax]
	add	rsp, 24
	.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
	jmp	lsmBlockFree@PLT
	.cfi_endproc
.LFE0:
	.size	fsFreeBlock, .-fsFreeBlock
	.comm	LSM_OK,4,4
	.comm	LSM_APPLIST_SZ,4,4
	.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_lsm_file.c_fsFreeBlock.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fsFreeBlock, %function
fsFreeBlock:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	r10, .L21
	mov	r1, r3
	sub	sp, sp, #12
	mov	r8, r3
	mov	r9, r0
	mov	r6, r2
	ldr	r7, [r4]
	ldr	fp, [r10]
	str	r0, [sp, #4]
	bl	fsFirstPageOnBlock
	mov	r1, r8
	mov	r5, r0
	mov	r0, r9
	bl	fsLastPageOnBlock
	mov	r9, r0
	mov	r0, r4
	bl	lsmDbSnapshotLevel
	subs	r4, r0, #0
	bne	.L5
	b	.L2
.L3:
	ldr	r4, [r4]
	cmp	r4, #0
	beq	.L2
.L5:
	mov	r3, r9
	mov	r2, r5
	mov	r1, r6
	mov	r0, r4
	bl	fsLevelEndsBetween
	cmp	r0, #0
	beq	.L3
	ldr	fp, [r10]
.L1:
	mov	r0, fp
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r2, .L21+4
	ldr	r6, [r2]
	cmp	r6, #0
	ble	.L6
	mov	r2, #0
	lsl	lr, r6, #2
	sub	lr, lr, #4
	add	r4, r7, lr
	sub	ip, r7, #4
.L8:
	ldr	r1, [ip, #4]!
	cmp	r1, r5
	movge	r3, #0
	movlt	r3, #1
	cmp	r1, r9
	orrgt	r3, r3, #1
	cmp	r3, #0
	strne	r1, [r7, r2, lsl #2]
	addne	r2, r2, #1
	cmp	ip, r4
	bne	.L8
	cmp	r2, r6
	bge	.L6
	mov	r1, #0
	sub	r3, r2, #-1073741823
	add	r3, r7, r3, lsl #2
	add	r7, r7, lr
.L9:
	str	r1, [r3, #4]!
	cmp	r7, r3
	bne	.L9
.L6:
	ldr	r3, [r10]
	cmp	r3, fp
	bne	.L1
	mov	r1, r8
	ldr	r3, [sp, #4]
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	lsmBlockFree
.L22:
	.align	2
.L21:
	.word	LSM_OK
	.word	LSM_APPLIST_SZ
	.size	fsFreeBlock, .-fsFreeBlock
	.comm	LSM_OK,4,4
	.comm	LSM_APPLIST_SZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
