	.file	"extr_rgrp.c_gfs2_alloc_extent.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gfs2_alloc_extent, @function
gfs2_alloc_extent:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r13d, DWORD PTR [rdx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	DWORD PTR [rdx], 1
	mov	QWORD PTR [rsp], 0
	mov	QWORD PTR 8[rsp], rax
	call	gfs2_rbm_to_block@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	ebx, eax
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR [rdx]
	mov	edi, DWORD PTR [rax]
	call	gfs2_trans_add_meta@PLT
	test	r14d, r14d
	mov	esi, 1
	mov	rdi, rbp
	mov	edx, DWORD PTR GFS2_BLKST_DINODE[rip]
	cmove	edx, DWORD PTR GFS2_BLKST_USED[rip]
	add	ebx, 1
	call	gfs2_setbit@PLT
	cmp	r13d, DWORD PTR [r12]
	jbe	.L1
	mov	rbp, rsp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	call	gfs2_testbit@PLT
	cmp	rax, QWORD PTR GFS2_BLKST_FREE[rip]
	jne	.L1
	mov	rax, QWORD PTR [rsp]
	add	ebx, 1
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR [rax]
	call	gfs2_trans_add_meta@PLT
	mov	edx, DWORD PTR GFS2_BLKST_USED[rip]
	mov	esi, 1
	mov	rdi, rbp
	call	gfs2_setbit@PLT
	mov	eax, DWORD PTR [r12]
	add	eax, 1
	mov	DWORD PTR [r12], eax
	cmp	eax, r13d
	jnb	.L1
.L5:
	mov	esi, ebx
	mov	rdi, rbp
	call	gfs2_rbm_from_block@PLT
	test	eax, eax
	je	.L10
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gfs2_alloc_extent, .-gfs2_alloc_extent
	.comm	GFS2_BLKST_USED,4,4
	.comm	GFS2_BLKST_FREE,8,8
	.comm	GFS2_BLKST_DINODE,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_rgrp.c_gfs2_alloc_extent.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gfs2_alloc_extent, %function
gfs2_alloc_extent:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	ip, #1
	mov	r5, r2
	mov	r3, #0
	ldr	lr, .L12
	sub	sp, sp, #16
	ldr	r2, [r0, #4]
	ldr	lr, [lr]
	str	lr, [sp, #12]
	mov	lr,#0
	ldr	r6, [r5]
	str	ip, [r5]
	mov	r7, r0
	mov	r8, r1
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	bl	gfs2_rbm_to_block
	ldm	r7, {r2, r3}
	mov	r4, r0
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	gfs2_trans_add_meta
	cmp	r8, #0
	ldrne	r3, .L12+4
	ldreq	r3, .L12+8
	mov	r0, r7
	ldr	r2, [r3]
	mov	r1, #1
	bl	gfs2_setbit
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r6, r3
	bls	.L1
	ldr	r7, .L12+12
	ldr	r8, .L12+8
	b	.L5
.L10:
	add	r0, sp, #4
	bl	gfs2_testbit
	ldr	r3, [r7]
	cmp	r0, r3
	bne	.L1
	ldmib	sp, {r2, r3}
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	gfs2_trans_add_meta
	mov	r1, #1
	ldr	r2, [r8]
	add	r0, sp, #4
	bl	gfs2_setbit
	ldr	r3, [r5]
	add	r4, r4, #1
	add	r3, r3, #1
	cmp	r3, r6
	str	r3, [r5]
	bcs	.L1
.L5:
	mov	r1, r4
	add	r0, sp, #4
	bl	gfs2_rbm_from_block
	cmp	r0, #0
	beq	.L10
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	GFS2_BLKST_DINODE
	.word	GFS2_BLKST_USED
	.word	GFS2_BLKST_FREE
	.size	gfs2_alloc_extent, .-gfs2_alloc_extent
	.comm	GFS2_BLKST_USED,4,4
	.comm	GFS2_BLKST_FREE,4,4
	.comm	GFS2_BLKST_DINODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
