	.file	"extr_suballoc.c_ocfs2_reserve_clusters_with_limit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ocfs2_reserve_clusters_with_limit, @function
ocfs2_reserve_clusters_with_limit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, r8
	call	mlog_entry_void@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 8
	call	kzalloc@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L19
	mov	DWORD PTR 4[rax], ebp
	mov	DWORD PTR [rax], r13d
	test	DWORD PTR ALLOC_GROUPS_FROM_GLOBAL[rip], r12d
	je	.L20
.L12:
	mov	rsi, rax
	mov	rdi, r14
	call	ocfs2_reserve_cluster_bitmap_bits@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L21
	.p2align 4,,10
	.p2align 3
.L11:
	xor	r12d, r12d
.L4:
	mov	edi, r12d
	call	mlog_exit@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	esi, ebp
	mov	rdi, r14
	mov	r12d, DWORD PTR ENOSPC[rip]
	call	ocfs2_alloc_should_use_local@PLT
	test	rax, rax
	jne	.L22
	mov	eax, DWORD PTR ENOSPC[rip]
	neg	r12d
	neg	eax
.L8:
	cmp	r12d, eax
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR [rbx]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdx, QWORD PTR [rbx]
	mov	esi, ebp
	mov	rdi, r14
	call	ocfs2_reserve_local_alloc_bits@PLT
	mov	r12d, eax
	add	eax, DWORD PTR EFBIG[rip]
	je	.L10
	mov	eax, DWORD PTR ENOSPC[rip]
	neg	eax
	test	r12d, r12d
	jns	.L8
	cmp	eax, r12d
	je	.L10
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L19:
	mov	ebp, DWORD PTR ENOMEM[rip]
	mov	r12d, ebp
	neg	r12d
	mov	edi, r12d
	call	mlog_errno@PLT
	test	ebp, ebp
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L4
	call	ocfs2_free_alloc_context@PLT
	mov	QWORD PTR [rbx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	add	eax, DWORD PTR ENOSPC[rip]
	je	.L3
.L17:
	mov	edi, r12d
	call	mlog_errno@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ocfs2_reserve_clusters_with_limit, .-ocfs2_reserve_clusters_with_limit
	.comm	GFP_KERNEL,4,4
	.comm	ENOSPC,4,4
	.comm	ENOMEM,4,4
	.comm	EFBIG,4,4
	.comm	ALLOC_GROUPS_FROM_GLOBAL,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_reserve_clusters_with_limit.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_reserve_clusters_with_limit, %function
ocfs2_reserve_clusters_with_limit:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [sp, #24]
	mov	r5, r1
	mov	r4, r2
	mov	r8, r3
	mov	r6, r0
	bl	mlog_entry_void
	ldr	r1, .L23
	mov	r0, #8
	ldr	r1, [r1]
	bl	kzalloc
	cmp	r0, #0
	str	r0, [r7]
	beq	.L19
	ldr	r3, .L23+4
	str	r5, [r0, #4]
	ldr	r3, [r3]
	str	r4, [r0]
	tst	r8, r3
	beq	.L20
.L12:
	mov	r1, r0
	mov	r0, r6
	bl	ocfs2_reserve_cluster_bitmap_bits
	subs	r4, r0, #0
	blt	.L21
.L11:
	mov	r4, #0
.L4:
	mov	r0, r4
	bl	mlog_exit
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	ldr	r8, .L23+8
	mov	r1, r5
	mov	r0, r6
	ldr	r4, [r8]
	bl	ocfs2_alloc_should_use_local
	cmp	r0, #0
	bne	.L22
	ldr	r3, [r8]
	rsb	r4, r4, #0
	rsb	r3, r3, #0
.L8:
	cmp	r4, r3
	bne	.L11
.L10:
	ldr	r0, [r7]
	b	.L12
.L22:
	mov	r1, r5
	mov	r0, r6
	ldr	r2, [r7]
	bl	ocfs2_reserve_local_alloc_bits
	ldr	r3, .L23+12
	mov	r4, r0
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L10
	ldr	r3, [r8]
	cmp	r0, #0
	rsb	r3, r3, #0
	bge	.L8
	cmp	r3, r0
	beq	.L10
	b	.L17
.L19:
	ldr	r3, .L23+16
	ldr	r5, [r3]
	rsb	r4, r5, #0
	mov	r0, r4
	bl	mlog_errno
	cmp	r5, #0
	ble	.L4
.L3:
	ldr	r0, [r7]
	cmp	r0, #0
	beq	.L4
	bl	ocfs2_free_alloc_context
	mov	r3, #0
	str	r3, [r7]
	b	.L4
.L21:
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmn	r4, r3
	beq	.L3
.L17:
	bl	mlog_errno
	b	.L3
.L24:
	.align	2
.L23:
	.word	GFP_KERNEL
	.word	ALLOC_GROUPS_FROM_GLOBAL
	.word	ENOSPC
	.word	EFBIG
	.word	ENOMEM
	.size	ocfs2_reserve_clusters_with_limit, .-ocfs2_reserve_clusters_with_limit
	.comm	GFP_KERNEL,4,4
	.comm	ENOSPC,4,4
	.comm	ENOMEM,4,4
	.comm	EFBIG,4,4
	.comm	ALLOC_GROUPS_FROM_GLOBAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
