	.file	"extr_bitmap.c_reiserfs_allocate_blocknrs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	reiserfs_allocate_blocknrs
	.type	reiserfs_allocate_blocknrs, @function
reiserfs_allocate_blocknrs:
.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	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR 16[rdi]
	mov	r15, QWORD PTR [rax]
	mov	rdi, r15
	call	SB_FREE_BLOCKS@PLT
	mov	rdi, r15
	mov	r13d, eax
	call	REISERFS_SB@PLT
	sub	r13d, DWORD PTR [rax]
	mov	eax, r12d
	sub	eax, r14d
	cmp	r13d, eax
	jl	.L13
	mov	eax, DWORD PTR 32[rbp]
	mov	r14d, r12d
	test	eax, eax
	jne	.L4
	cmp	QWORD PTR 24[rbp], 0
	jne	.L14
.L4:
	mov	rdi, rbp
	mov	esi, r14d
	call	determine_search_start@PLT
	mov	r13, QWORD PTR 0[rbp]
	mov	rdi, r15
	call	SB_BLOCK_COUNT@PLT
	cmp	r13, rax
	jge	.L15
.L6:
	mov	edx, r14d
	mov	rsi, rbx
	mov	rdi, rbp
	call	blocknrs_and_prealloc_arrays_from_search_start@PLT
	cmp	DWORD PTR CARRY_ON[rip], eax
	mov	r13d, eax
	je	.L1
	cmp	r14d, r12d
	jge	.L1
	sub	r12d, 1
	sub	r12d, r14d
	not	r12
	lea	r12, [rbx+r12*4]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR 8[rbp]
	mov	rdi, QWORD PTR 16[rbp]
	sub	rbx, 4
	mov	ecx, 1
	mov	edx, DWORD PTR [rbx]
	call	reiserfs_free_block@PLT
	cmp	rbx, r12
	jne	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L15:
	.cfi_restore_state
	mov	rdi, r15
	call	SB_BLOCK_COUNT@PLT
	sub	rax, 1
	mov	QWORD PTR 0[rbp], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r13d, DWORD PTR NO_DISK_SPACE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edx, r12d
	mov	rsi, rbx
	mov	rdi, rbp
	call	use_preallocated_list_if_available@PLT
	mov	r13d, DWORD PTR CARRY_ON[rip]
	mov	r14d, eax
	test	eax, eax
	je	.L1
	mov	eax, r12d
	sub	eax, r14d
	cdqe
	lea	rbx, [rbx+rax*4]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	reiserfs_allocate_blocknrs, .-reiserfs_allocate_blocknrs
	.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_reiserfs_allocate_blocknrs.c"
	.text
	.align	2
	.global	reiserfs_allocate_blocknrs
	.syntax unified
	.arm
	.fpu softvfp
	.type	reiserfs_allocate_blocknrs, %function
reiserfs_allocate_blocknrs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, [r0, #8]
	mov	r5, r3
	ldr	r8, [r0]
	mov	r7, r2
	mov	r0, r8
	mov	r6, r1
	bl	SB_FREE_BLOCKS
	mov	r9, r0
	mov	r0, r8
	bl	REISERFS_SB
	ldr	r3, [r0]
	sub	r5, r7, r5
	sub	r9, r9, r3
	cmp	r9, r5
	blt	.L13
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L14
.L9:
	mov	r5, r7
.L4:
	mov	r1, r5
	mov	r0, r4
	bl	determine_search_start
	mov	r0, r8
	ldr	r9, [r4]
	bl	SB_BLOCK_COUNT
	cmp	r9, r0
	bge	.L15
.L6:
	mov	r2, r5
	mov	r1, r6
	mov	r0, r4
	bl	blocknrs_and_prealloc_arrays_from_search_start
	ldr	r3, .L16
	mov	r8, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L1
	cmp	r5, r7
	add	r5, r5, #1
	bge	.L1
	add	r7, r7, #1
.L7:
	mov	r3, #1
	ldr	r2, [r6, #-4]!
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #8]
	add	r5, r5, #1
	bl	reiserfs_free_block
	cmp	r5, r7
	bne	.L7
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	mov	r0, r8
	bl	SB_BLOCK_COUNT
	sub	r0, r0, #1
	str	r0, [r4]
	b	.L6
.L13:
	ldr	r3, .L16+4
	ldr	r8, [r3]
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	mov	r1, r6
	mov	r2, r7
	mov	r0, r4
	bl	use_preallocated_list_if_available
	subs	r5, r0, #0
	subne	r3, r7, r5
	addne	r6, r6, r3, lsl #2
	bne	.L4
	ldr	r3, .L16
	ldr	r8, [r3]
	b	.L1
.L17:
	.align	2
.L16:
	.word	CARRY_ON
	.word	NO_DISK_SPACE
	.size	reiserfs_allocate_blocknrs, .-reiserfs_allocate_blocknrs
	.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
