	.file	"extr_suballoc.c_ocfs2_lock_allocators.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ocfs2_lock_allocators
	.type	ocfs2_lock_allocators, @function
ocfs2_lock_allocators:
.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	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR [rdi]
	mov	DWORD PTR 12[rsp], ecx
	call	OCFS2_SB@PLT
	mov	QWORD PTR [rbx], 0
	mov	rbp, rax
	test	r12, r12
	je	.L2
	mov	QWORD PTR [r12], 0
.L2:
	test	r13d, r13d
	setne	al
	xor	edi, edi
	test	r12, r12
	sete	dil
	and	edi, eax
	call	BUG_ON@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	ocfs2_num_free_extents@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L35
	je	.L9
	mov	rdi, rbp
	call	ocfs2_sparse_alloc@PLT
	test	rax, rax
	je	.L8
	mov	eax, DWORD PTR 12[rsp]
	lea	eax, 0[r13+rax*2]
	cmp	r15d, eax
	jnb	.L8
.L9:
	mov	esi, DWORD PTR [r14]
	mov	rdx, rbx
	mov	rdi, rbp
	call	ocfs2_reserve_new_metadata@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L11
	test	r13d, r13d
	jne	.L14
.L12:
	test	r15d, r15d
	jne	.L4
.L10:
	xor	r15d, r15d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L8:
	.cfi_restore_state
	test	r13d, r13d
	je	.L10
.L14:
	mov	rdx, r12
	mov	esi, r13d
	mov	rdi, rbp
	call	ocfs2_reserve_clusters@PLT
	mov	r15d, eax
	test	eax, eax
	jns	.L12
.L11:
	mov	eax, r15d
	add	eax, DWORD PTR ENOSPC[rip]
	jne	.L35
.L4:
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L1
	call	ocfs2_free_alloc_context@PLT
	mov	QWORD PTR [rbx], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L35:
	mov	edi, r15d
	call	mlog_errno@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ocfs2_lock_allocators, .-ocfs2_lock_allocators
	.comm	ENOSPC,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_suballoc.c_ocfs2_lock_allocators.c"
	.text
	.align	2
	.global	ocfs2_lock_allocators
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_lock_allocators, %function
ocfs2_lock_allocators:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, [r0]
	mov	r6, r2
	ldr	r8, [sp, #32]
	mov	r7, r1
	mov	r9, r3
	ldr	r10, [sp, #36]
	bl	OCFS2_SB
	mov	r3, #0
	mov	r5, r0
	clz	r0, r8
	cmp	r8, r3
	str	r3, [r10]
	strne	r3, [r8]
	cmp	r6, #0
	lsr	r0, r0, #5
	moveq	r0, #0
	bl	BUG_ON
	mov	r1, r7
	mov	r0, r5
	bl	ocfs2_num_free_extents
	subs	r4, r0, #0
	blt	.L35
	beq	.L9
	mov	r0, r5
	bl	ocfs2_sparse_alloc
	cmp	r0, #0
	beq	.L8
	add	r9, r6, r9, lsl #1
	cmp	r4, r9
	bcs	.L8
.L9:
	mov	r2, r10
	mov	r0, r5
	ldr	r1, [r7]
	bl	ocfs2_reserve_new_metadata
	subs	r4, r0, #0
	blt	.L11
	cmp	r6, #0
	bne	.L14
.L12:
	cmp	r4, #0
	bne	.L4
.L10:
	mov	r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	cmp	r6, #0
	beq	.L10
.L14:
	mov	r2, r8
	mov	r1, r6
	mov	r0, r5
	bl	ocfs2_reserve_clusters
	subs	r4, r0, #0
	bge	.L12
.L11:
	ldr	r3, .L38
	ldr	r3, [r3]
	cmn	r4, r3
	bne	.L35
.L4:
	ldr	r0, [r10]
	cmp	r0, #0
	beq	.L1
	bl	ocfs2_free_alloc_context
	mov	r3, #0
	mov	r0, r4
	str	r3, [r10]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L35:
	bl	mlog_errno
	b	.L4
.L39:
	.align	2
.L38:
	.word	ENOSPC
	.size	ocfs2_lock_allocators, .-ocfs2_lock_allocators
	.comm	ENOSPC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
