	.file	"extr_bitmap.c_blocknrs_and_prealloc_arrays_from_search_start.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	blocknrs_and_prealloc_arrays_from_search_start, @function
blocknrs_and_prealloc_arrays_from_search_start:
.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
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	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	rax, QWORD PTR 24[rdi]
	mov	r14, QWORD PTR [rax]
	mov	rdi, r14
	call	SB_BLOCK_COUNT@PLT
	mov	rdi, rbx
	call	determine_prealloc_size@PLT
	mov	r9d, DWORD PTR 16[rbx]
	test	r9d, r9d
	je	.L32
.L2:
	xor	ebp, ebp
	xor	r15d, r15d
.L15:
	mov	eax, r15d
	add	r15d, 1
	cmp	eax, 1
	je	.L8
	cmp	eax, 2
	je	.L9
	test	eax, eax
	je	.L33
	mov	edi, DWORD PTR 16[rbx]
	test	edi, edi
	je	.L34
.L12:
	lea	eax, -1[rbp]
	test	ebp, ebp
	je	.L13
	movsx	rdx, eax
	mov	eax, eax
	sal	rdx, 3
	sal	rax, 3
	lea	r12, -8[r13+rdx]
	lea	rbp, 0[r13+rdx]
	sub	r12, rax
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR 16[rbx]
	mov	rdx, QWORD PTR 0[rbp]
	xor	ecx, ecx
	mov	rdi, QWORD PTR 24[rbx]
	test	esi, esi
	mov	rsi, QWORD PTR 8[rbx]
	sete	cl
	sub	rbp, 8
	call	reiserfs_free_block@PLT
	cmp	rbp, r12
	jne	.L14
.L13:
	mov	eax, DWORD PTR NO_DISK_SPACE[rip]
.L1:
	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
.L33:
	.cfi_restore_state
	mov	rdx, QWORD PTR 40[rbx]
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], rdx
	call	SB_BLOCK_COUNT@PLT
	mov	rdx, QWORD PTR 8[rsp]
	lea	rcx, -1[rax]
.L11:
	movsx	rax, ebp
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r9d, r12d
	mov	r8d, 1
	lea	rsi, 0[r13+rax*8]
	mov	eax, DWORD PTR 4[rbx]
	sub	r9d, ebp
	mov	rdi, rbx
	push	rax
	.cfi_def_cfa_offset 96
	call	allocate_without_wrapping_disk@PLT
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	add	ebp, eax
	cmp	r12d, ebp
	jg	.L15
	mov	eax, DWORD PTR 16[rbx]
	test	eax, eax
	je	.L35
.L17:
	mov	eax, DWORD PTR CARRY_ON[rip]
	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
.L9:
	.cfi_restore_state
	mov	rcx, QWORD PTR 32[rbx]
	xor	edx, edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, QWORD PTR 32[rbx]
	mov	rcx, QWORD PTR 40[rbx]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, r14
	call	reiserfs_write_unlock_nested@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	esi, r12d
	mov	ebp, eax
	call	dquot_alloc_block_nodirty@PLT
	test	eax, eax
	jne	.L36
	mov	r8d, DWORD PTR [rbx]
	test	r8d, r8d
	je	.L6
	mov	esi, DWORD PTR 4[rbx]
	test	esi, esi
	jne	.L37
.L6:
	mov	esi, ebp
	mov	rdi, r14
	call	reiserfs_write_lock_nested@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rdi, r14
	call	reiserfs_write_unlock_nested@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, QWORD PTR 8[rbx]
	mov	r15d, eax
	add	esi, r12d
	sub	esi, ebp
	call	dquot_free_block_nodirty@PLT
	mov	esi, r15d
	mov	rdi, r14
	call	reiserfs_write_lock_nested@PLT
	jmp	.L12
.L36:
	mov	esi, ebp
	mov	rdi, r14
	call	reiserfs_write_lock_nested@PLT
	mov	eax, DWORD PTR QUOTA_EXCEEDED[rip]
	jmp	.L1
.L37:
	mov	rdi, QWORD PTR 8[rbx]
	call	dquot_prealloc_block_nodirty@PLT
	test	eax, eax
	je	.L6
	mov	QWORD PTR [rbx], 0
	jmp	.L6
.L35:
	mov	rdi, QWORD PTR 8[rbx]
	mov	r13d, DWORD PTR 4[rbx]
	call	REISERFS_I@PLT
	add	r13d, r12d
	mov	edx, DWORD PTR [rax]
	add	edx, ebp
	cmp	r13d, edx
	jle	.L17
	mov	rdi, r14
	call	reiserfs_write_unlock_nested@PLT
	mov	rdi, QWORD PTR 8[rbx]
	add	r12d, DWORD PTR 4[rbx]
	mov	r13d, eax
	sub	r12d, ebp
	call	REISERFS_I@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	esi, r12d
	sub	esi, DWORD PTR [rax]
	call	dquot_free_block_nodirty@PLT
	mov	esi, r13d
	mov	rdi, r14
	call	reiserfs_write_lock_nested@PLT
	jmp	.L17
	.cfi_endproc
.LFE0:
	.size	blocknrs_and_prealloc_arrays_from_search_start, .-blocknrs_and_prealloc_arrays_from_search_start
	.comm	REISERFS_DEBUG_CODE,4,4
	.comm	QUOTA_EXCEEDED,4,4
	.comm	NO_DISK_SPACE,4,4
	.comm	CARRY_ON,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_bitmap.c_blocknrs_and_prealloc_arrays_from_search_start.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	blocknrs_and_prealloc_arrays_from_search_start, %function
blocknrs_and_prealloc_arrays_from_search_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	ldr	r3, [r0, #16]
	sub	sp, sp, #20
	ldr	r9, [r3]
	mov	r6, r1
	mov	r0, r9
	mov	r8, r2
	bl	SB_BLOCK_COUNT
	mov	r0, r5
	bl	determine_prealloc_size
	ldr	r3, [r5, #12]
	cmp	r3, #0
	beq	.L32
.L2:
	mov	r4, #0
	mov	r10, #1
	mov	r7, r4
.L15:
	cmp	r7, #1
	mov	r3, r7
	add	r7, r7, #1
	beq	.L8
	cmp	r3, #2
	beq	.L9
	cmp	r3, #0
	beq	.L33
	ldr	r3, [r5, #12]
	cmp	r3, #0
	beq	.L34
.L12:
	cmp	r4, #0
	beq	.L13
	add	r4, r6, r4, lsl #2
.L14:
	ldr	r3, [r5, #12]
	ldr	r2, [r4, #-4]!
	clz	r3, r3
	ldr	r1, [r5, #8]
	ldr	r0, [r5, #16]
	lsr	r3, r3, #5
	bl	reiserfs_free_block
	cmp	r6, r4
	bne	.L14
.L13:
	ldr	r3, .L38
	ldr	r0, [r3]
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	mov	r0, r9
	ldr	fp, [r5, #24]
	bl	SB_BLOCK_COUNT
	sub	r3, r0, #1
.L11:
	ldr	r0, [r5, #4]
	sub	r1, r8, r4
	str	r0, [sp, #8]
	str	r1, [sp, #4]
	mov	r2, fp
	add	r1, r6, r4, lsl #2
	mov	r0, r5
	str	r10, [sp]
	bl	allocate_without_wrapping_disk
	add	r4, r4, r0
	cmp	r8, r4
	bgt	.L15
	ldr	r3, [r5, #12]
	cmp	r3, #0
	beq	.L35
.L17:
	ldr	r3, .L38+4
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	fp, #0
	ldr	r3, [r5, #20]
	b	.L11
.L8:
	ldr	fp, [r5, #20]
	ldr	r3, [r5, #24]
	b	.L11
.L32:
	mov	r0, r9
	bl	reiserfs_write_unlock_nested
	mov	r1, r8
	mov	r7, r0
	ldr	r0, [r5, #8]
	bl	dquot_alloc_block_nodirty
	subs	r4, r0, #0
	bne	.L36
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L6
	ldr	r1, [r5, #4]
	cmp	r1, #0
	bne	.L37
.L6:
	mov	r1, r7
	mov	r0, r9
	bl	reiserfs_write_lock_nested
	b	.L2
.L34:
	mov	r0, r9
	bl	reiserfs_write_unlock_nested
	mov	r7, r0
	ldr	r1, [r5, #4]
	ldr	r0, [r5, #8]
	add	r1, r8, r1
	sub	r1, r1, r4
	bl	dquot_free_block_nodirty
	mov	r1, r7
	mov	r0, r9
	bl	reiserfs_write_lock_nested
	b	.L12
.L36:
	mov	r1, r7
	mov	r0, r9
	bl	reiserfs_write_lock_nested
	ldr	r3, .L38+8
	ldr	r0, [r3]
	b	.L1
.L37:
	ldr	r0, [r5, #8]
	bl	dquot_prealloc_block_nodirty
	cmp	r0, #0
	strne	r4, [r5, #4]
	strne	r4, [r5]
	b	.L6
.L35:
	ldr	r0, [r5, #8]
	ldr	r6, [r5, #4]
	bl	REISERFS_I
	ldr	r3, [r0]
	add	r6, r8, r6
	add	r3, r4, r3
	cmp	r6, r3
	ble	.L17
	mov	r0, r9
	bl	reiserfs_write_unlock_nested
	ldmib	r5, {r2, r6}
	mov	r3, r0
	mov	r0, r6
	mov	r5, r3
	add	r8, r8, r2
	bl	REISERFS_I
	ldr	r1, [r0]
	sub	r4, r8, r4
	sub	r1, r4, r1
	mov	r0, r6
	bl	dquot_free_block_nodirty
	mov	r1, r5
	mov	r0, r9
	bl	reiserfs_write_lock_nested
	b	.L17
.L39:
	.align	2
.L38:
	.word	NO_DISK_SPACE
	.word	CARRY_ON
	.word	QUOTA_EXCEEDED
	.size	blocknrs_and_prealloc_arrays_from_search_start, .-blocknrs_and_prealloc_arrays_from_search_start
	.comm	REISERFS_DEBUG_CODE,4,4
	.comm	QUOTA_EXCEEDED,4,4
	.comm	NO_DISK_SPACE,4,4
	.comm	CARRY_ON,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
