	.file	"extr_quota_global.c_ocfs2_acquire_dquot.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ocfs2_acquire_dquot, @function
ocfs2_acquire_dquot:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r13, QWORD PTR 24[rdi]
	mov	rdi, r13
	call	OCFS2_SB@PLT
	mov	r14d, DWORD PTR 20[rbp]
	mov	rdi, r13
	mov	QWORD PTR [rsp], rax
	mov	esi, r14d
	call	sb_dqinfo@PLT
	mov	esi, r14d
	mov	rdi, r13
	mov	r12, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[r12]
	call	ocfs2_global_qinit_alloc@PLT
	mov	esi, DWORD PTR 20[rbp]
	lea	rdi, init_user_ns[rip]
	mov	DWORD PTR 12[rsp], eax
	call	from_kqid@PLT
	mov	esi, r14d
	mov	edi, eax
	call	trace_ocfs2_acquire_dquot@PLT
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	esi, 1
	mov	rdi, r12
	call	ocfs2_lock_global_qf@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L2
	xor	esi, esi
	mov	rdi, r12
	call	ocfs2_qinfo_lock@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L3
	mov	rsi, rbp
	mov	rdi, r12
	call	qtree_read_dquot@PLT
	xor	esi, esi
	mov	rdi, r12
	mov	r15d, eax
	call	ocfs2_qinfo_unlock@PLT
	test	r15d, r15d
	js	.L3
	mov	rdi, rbp
	call	OCFS2_DQUOT@PLT
	mov	rdi, rbp
	add	DWORD PTR 8[rax], 1
	call	OCFS2_DQUOT@PLT
	mov	edx, DWORD PTR 16[rbp]
	mov	rdi, rbp
	mov	DWORD PTR 4[rax], edx
	call	OCFS2_DQUOT@PLT
	mov	edx, DWORD PTR 12[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR 8[rbp]
	test	edx, edx
	jne	.L11
	xor	eax, eax
	call	journal_current_handle@PLT
	mov	edi, eax
	call	WARN_ON@PLT
	mov	rdi, rbx
	call	i_size_read@PLT
	mov	rdi, rbx
	mov	r15, rax
	call	i_size_read@PLT
	mov	ecx, DWORD PTR 0[r13]
	xor	esi, esi
	mov	rdi, rbx
	mov	r9, rax
	mov	eax, DWORD PTR 12[rsp]
	sal	eax, cl
	mov	rcx, r15
	movsx	rdx, eax
	add	rdx, r9
	call	ocfs2_extend_no_holes@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L3
	mov	DWORD PTR 12[rsp], 1
.L4:
	mov	esi, r14d
	mov	rdi, r13
	call	ocfs2_calc_global_qinit_credits@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	esi, eax
	call	ocfs2_start_trans@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L23
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, r12
	call	ocfs2_qinfo_lock@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L7
	mov	rsi, rbp
	mov	rdi, r12
	call	qtree_write_dquot@PLT
	mov	r15d, eax
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	jne	.L24
.L8:
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, r12
	call	ocfs2_qinfo_unlock@PLT
.L7:
	mov	rdi, QWORD PTR [rsp]
	mov	rsi, rbx
	call	ocfs2_commit_trans@PLT
.L6:
	mov	esi, 1
	mov	rdi, r12
	call	ocfs2_unlock_global_qf@PLT
	test	r15d, r15d
	js	.L2
	mov	rdi, rbp
	call	ocfs2_create_local_dquot@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L2
	mov	edi, DWORD PTR DQ_ACTIVE_B[rip]
	lea	rsi, 4[rbp]
	call	set_bit@PLT
	mov	rdi, rbp
	call	mutex_unlock@PLT
	test	r15d, r15d
	je	.L1
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, 1
	mov	rdi, r12
	call	ocfs2_unlock_global_qf@PLT
.L2:
	mov	rdi, rbp
	call	mutex_unlock@PLT
.L10:
	mov	edi, r15d
	call	mlog_errno@PLT
.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
.L11:
	.cfi_restore_state
	mov	DWORD PTR 12[rsp], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, rbx
	call	PTR_ERR@PLT
	mov	r15d, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, r13
	mov	esi, r14d
	call	sb_dqinfo@PLT
	mov	rdi, rax
	call	info_dirty@PLT
	test	rax, rax
	je	.L8
	mov	esi, r14d
	mov	rdi, r13
	call	__ocfs2_global_write_info@PLT
	test	r15d, r15d
	cmove	r15d, eax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	ocfs2_acquire_dquot, .-ocfs2_acquire_dquot
	.comm	init_user_ns,4,4
	.comm	DQ_ACTIVE_B,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_quota_global.c_ocfs2_acquire_dquot.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_acquire_dquot, %function
ocfs2_acquire_dquot:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, [r0, #24]
	mov	r5, r0
	mov	r0, r7
	bl	OCFS2_SB
	ldr	r8, [r5, #20]
	mov	r9, r0
	mov	r1, r8
	mov	r0, r7
	bl	sb_dqinfo
	ldr	r6, [r0]
	mov	r1, r8
	mov	r0, r7
	ldr	fp, [r6, #4]
	bl	ocfs2_global_qinit_alloc
	ldr	r1, [r5, #20]
	mov	r10, r0
	ldr	r0, .L26
	bl	from_kqid
	mov	r1, r8
	bl	trace_ocfs2_acquire_dquot
	mov	r0, r5
	bl	mutex_lock
	mov	r0, r6
	mov	r1, #1
	bl	ocfs2_lock_global_qf
	subs	r4, r0, #0
	blt	.L2
	mov	r1, #0
	mov	r0, r6
	bl	ocfs2_qinfo_lock
	subs	r4, r0, #0
	blt	.L3
	mov	r1, r5
	mov	r0, r6
	bl	qtree_read_dquot
	mov	r4, r0
	mov	r1, #0
	mov	r0, r6
	bl	ocfs2_qinfo_unlock
	cmp	r4, #0
	blt	.L3
	mov	r0, r5
	bl	OCFS2_DQUOT
	mov	r3, r0
	ldr	r2, [r0, #8]
	mov	r0, r5
	add	r2, r2, #1
	str	r2, [r3, #8]
	bl	OCFS2_DQUOT
	mov	r3, r0
	ldr	r2, [r5, #16]
	mov	r0, r5
	str	r2, [r3, #4]
	bl	OCFS2_DQUOT
	ldr	r4, [r5, #8]
	ldr	r3, [r5, #12]
	cmp	r4, #0
	str	r3, [r0]
	bne	.L11
	bl	journal_current_handle
	bl	WARN_ON
	mov	r0, fp
	bl	i_size_read
	mov	r2, r0
	ldr	r3, [r7]
	mov	r0, fp
	add	r10, r2, r10, lsl r3
	bl	i_size_read
	mov	r1, r4
	mov	r3, r0
	mov	r2, r10
	mov	r0, fp
	bl	ocfs2_extend_no_holes
	subs	r4, r0, #0
	movge	fp, #1
	blt	.L3
.L4:
	mov	r1, r8
	mov	r0, r7
	bl	ocfs2_calc_global_qinit_credits
	mov	r1, r0
	mov	r0, r9
	bl	ocfs2_start_trans
	mov	r10, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L24
	mov	r1, fp
	mov	r0, r6
	bl	ocfs2_qinfo_lock
	subs	r4, r0, #0
	blt	.L7
	mov	r1, r5
	mov	r0, r6
	bl	qtree_write_dquot
	cmp	fp, #0
	mov	r4, r0
	bne	.L25
.L8:
	mov	r1, fp
	mov	r0, r6
	bl	ocfs2_qinfo_unlock
.L7:
	mov	r1, r10
	mov	r0, r9
	bl	ocfs2_commit_trans
.L6:
	mov	r0, r6
	mov	r1, #1
	bl	ocfs2_unlock_global_qf
	cmp	r4, #0
	blt	.L2
	mov	r0, r5
	bl	ocfs2_create_local_dquot
	subs	r4, r0, #0
	blt	.L2
	ldr	r3, .L26+4
	add	r1, r5, #4
	ldr	r0, [r3]
	bl	set_bit
	mov	r0, r5
	bl	mutex_unlock
	cmp	r4, #0
	bne	.L10
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	mov	r0, r6
	mov	r1, #1
	bl	ocfs2_unlock_global_qf
.L2:
	mov	r0, r5
	bl	mutex_unlock
.L10:
	mov	r0, r4
	bl	mlog_errno
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	mov	fp, #0
	b	.L4
.L24:
	mov	r0, r10
	bl	PTR_ERR
	mov	r4, r0
	b	.L6
.L25:
	mov	r1, r8
	mov	r0, r7
	bl	sb_dqinfo
	bl	info_dirty
	cmp	r0, #0
	beq	.L8
	mov	r1, r8
	mov	r0, r7
	bl	__ocfs2_global_write_info
	cmp	r4, #0
	moveq	r4, r0
	b	.L8
.L27:
	.align	2
.L26:
	.word	init_user_ns
	.word	DQ_ACTIVE_B
	.size	ocfs2_acquire_dquot, .-ocfs2_acquire_dquot
	.comm	init_user_ns,4,4
	.comm	DQ_ACTIVE_B,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
