	.file	"extr_inode.c_alloc_dinode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	alloc_dinode, @function
alloc_dinode:
.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, rdi
	add	rdi, 8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r15, rsp
	call	GFS2_SB@PLT
	mov	rsi, r15
	mov	rdi, r14
	mov	DWORD PTR 4[rsp], r12d
	mov	rbp, rax
	mov	eax, DWORD PTR 0[r13]
	mov	DWORD PTR [rsp], eax
	call	gfs2_quota_lock_check@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L9
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	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
.L9:
	.cfi_restore_state
	mov	rsi, r15
	mov	rdi, r14
	call	gfs2_inplace_reserve@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	esi, DWORD PTR 0[r13]
	xor	edx, edx
	imul	esi, DWORD PTR RES_RG_BIT[rip]
	mov	rdi, rbp
	add	rsi, QWORD PTR RES_STATFS[rip]
	add	rsi, QWORD PTR RES_QUOTA[rip]
	call	gfs2_trans_begin@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
.L4:
	mov	rdi, r14
	call	gfs2_inplace_release@PLT
.L3:
.L2:
	endbr64
	mov	rdi, r14
	call	gfs2_quota_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, r14
	lea	r8, 12[r14]
	mov	ecx, 1
	mov	rdx, r13
	mov	rsi, r14
	call	gfs2_alloc_blocks@PLT
	mov	rdi, rbp
	mov	r12d, eax
	mov	eax, DWORD PTR 12[r14]
	mov	DWORD PTR 16[r14], eax
	mov	eax, DWORD PTR [r14]
	mov	DWORD PTR 8[r14], eax
	mov	DWORD PTR 4[r14], eax
	call	gfs2_trans_end@PLT
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	alloc_dinode, .-alloc_dinode
	.comm	RES_STATFS,8,8
	.comm	RES_RG_BIT,4,4
	.comm	RES_QUOTA,8,8
	.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_inode.c_alloc_dinode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_dinode, %function
alloc_dinode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L11
	sub	sp, sp, #28
	mov	r6, r2
	mov	r5, r0
	add	r0, r0, #8
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	GFS2_SB
	ldr	r3, [r6]
	mov	r7, r0
	add	r1, sp, #12
	mov	r0, r5
	str	r4, [sp, #16]
	str	r3, [sp, #12]
	bl	gfs2_quota_lock_check
	subs	r4, r0, #0
	beq	.L8
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	mov	r0, r5
	add	r1, sp, #12
	bl	gfs2_inplace_reserve
	subs	r4, r0, #0
	bne	.L3
	ldr	r3, .L11+4
	ldr	r2, .L11+8
	ldr	r1, .L11+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r6]
	ldr	r1, [r1]
	add	r3, r3, r2
	mla	r1, r0, r1, r3
	mov	r2, r4
	mov	r0, r7
	bl	gfs2_trans_begin
	subs	r4, r0, #0
	beq	.L10
.L4:
	mov	r0, r5
	bl	gfs2_inplace_release
.L3:
.L2:
	mov	r0, r5
	bl	gfs2_quota_unlock
	b	.L1
.L10:
	add	r3, r5, #12
	mov	r2, r6
	str	r3, [sp]
	mov	r1, r5
	mov	r3, #1
	mov	r0, r5
	bl	gfs2_alloc_blocks
	ldr	r3, [r5]
	ldr	r2, [r5, #12]
	mov	r4, r0
	str	r2, [r5, #16]
	mov	r0, r7
	str	r3, [r5, #8]
	str	r3, [r5, #4]
	bl	gfs2_trans_end
	b	.L4
.L9:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	RES_STATFS
	.word	RES_QUOTA
	.word	RES_RG_BIT
	.size	alloc_dinode, .-alloc_dinode
	.comm	RES_STATFS,4,4
	.comm	RES_RG_BIT,4,4
	.comm	RES_QUOTA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
