	.file	"extr_suballoc.c_ocfs2_steal_inode_from_other_nodes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ocfs2_steal_inode_from_other_nodes, @function
ocfs2_steal_inode_from_other_nodes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r12d, DWORD PTR ENOSPC[rip]
	call	ocfs2_get_inode_steal_slot@PLT
	neg	r12d
	cmp	QWORD PTR OCFS2_INVALID_SLOT[rip], rax
	mov	rbp, rax
	jne	.L2
	mov	rax, QWORD PTR [r15]
	lea	rbp, 1[rax]
.L2:
	mov	eax, DWORD PTR 8[r15]
	test	eax, eax
	jle	.L1
	xor	ebx, ebx
	xor	r14d, r14d
	.p2align 4,,10
	.p2align 3
.L7:
	movsx	rdx, eax
	cmp	rdx, rbp
	cmove	rbp, r14
	cmp	QWORD PTR [r15], rbp
	je	.L5
	mov	r9d, DWORD PTR NOT_ALLOC_NEW_GROUP[rip]
	xor	r8d, r8d
	mov	rcx, rbp
	mov	rsi, r13
	mov	edx, DWORD PTR INODE_ALLOC_SYSTEM_INODE[rip]
	mov	rdi, r15
	call	ocfs2_reserve_suballoc_bits@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L12
	mov	rdi, r13
	call	ocfs2_free_ac_resource@PLT
	mov	eax, DWORD PTR 8[r15]
.L5:
	add	ebx, 1
	add	rbp, 1
	cmp	eax, ebx
	jg	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L12:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r15
	call	ocfs2_set_inode_steal_slot@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ocfs2_steal_inode_from_other_nodes, .-ocfs2_steal_inode_from_other_nodes
	.comm	OCFS2_INVALID_SLOT,8,8
	.comm	NOT_ALLOC_NEW_GROUP,4,4
	.comm	INODE_ALLOC_SYSTEM_INODE,4,4
	.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_steal_inode_from_other_nodes.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_steal_inode_from_other_nodes, %function
ocfs2_steal_inode_from_other_nodes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L13
	sub	sp, sp, #12
	mov	r7, r0
	ldr	r6, [r3]
	mov	r8, r1
	bl	ocfs2_get_inode_steal_slot
	ldr	r3, .L13+4
	rsb	r6, r6, #0
	ldr	r3, [r3]
	cmp	r3, r0
	ldreq	r4, [r7]
	ldr	r3, [r7, #4]
	movne	r4, r0
	addeq	r4, r4, #1
	cmp	r3, #0
	ble	.L1
	mov	r5, #0
	mov	fp, r5
	ldr	r10, .L13+8
	ldr	r9, .L13+12
.L7:
	cmp	r4, r3
	moveq	r4, #0
	ldr	r2, [r7]
	add	r5, r5, #1
	cmp	r2, r4
	beq	.L5
	ldr	r3, [r9]
	mov	r1, r8
	str	r3, [sp, #4]
	mov	r0, r7
	mov	r3, r4
	ldr	r2, [r10]
	str	fp, [sp]
	bl	ocfs2_reserve_suballoc_bits
	subs	r6, r0, #0
	bge	.L12
	mov	r0, r8
	bl	ocfs2_free_ac_resource
	ldr	r3, [r7, #4]
.L5:
	cmp	r3, r5
	add	r4, r4, #1
	bgt	.L7
.L1:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r1, r4
	mov	r0, r7
	bl	ocfs2_set_inode_steal_slot
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	.align	2
.L13:
	.word	ENOSPC
	.word	OCFS2_INVALID_SLOT
	.word	INODE_ALLOC_SYSTEM_INODE
	.word	NOT_ALLOC_NEW_GROUP
	.size	ocfs2_steal_inode_from_other_nodes, .-ocfs2_steal_inode_from_other_nodes
	.comm	OCFS2_INVALID_SLOT,4,4
	.comm	NOT_ALLOC_NEW_GROUP,4,4
	.comm	INODE_ALLOC_SYSTEM_INODE,4,4
	.comm	ENOSPC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
