	.file	"extr_file.c_ocfs2_extend_file.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ocfs2_extend_file, @function
ocfs2_extend_file:
.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
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	call	OCFS2_I@PLT
	xor	edi, edi
	test	r13, r13
	sete	dil
	mov	r14, rax
	call	BUG_ON@PLT
	test	r12, r12
	jne	.L2
.L4:
	xor	r14d, r14d
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	i_size_read@PLT
	cmp	rax, r12
	je	.L4
	mov	rdi, rbp
	call	i_size_read@PLT
	xor	edi, edi
	cmp	rax, r12
	setg	dil
	call	BUG_ON@PLT
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR OCFS2_INLINE_DATA_FL[rip], eax
	jne	.L9
	mov	edi, DWORD PTR 0[rbp]
	call	OCFS2_SB@PLT
	mov	edi, eax
	call	ocfs2_sparse_alloc@PLT
	test	rax, rax
	je	.L9
.L11:
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, rbp
	call	ocfs2_simple_size_update@PLT
	mov	r14d, eax
	test	eax, eax
	jns	.L1
.L17:
.L3:
	endbr64
	mov	edi, r14d
	call	mlog_errno@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	lea	r15, 4[r14]
	mov	rdi, r15
	call	down_write@PLT
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR OCFS2_INLINE_DATA_FL[rip], eax
	je	.L7
	mov	rsi, r12
	mov	rdi, r13
	call	ocfs2_size_fits_inline_data@PLT
	test	rax, rax
	jne	.L12
	mov	rsi, r13
	mov	rdi, rbp
	call	ocfs2_convert_inline_data_to_extents@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L19
.L7:
	mov	edi, DWORD PTR 0[rbp]
	call	OCFS2_SB@PLT
	mov	edi, eax
	call	ocfs2_sparse_alloc@PLT
	test	rax, rax
	je	.L20
.L12:
	mov	rdi, r15
	call	up_write@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, rbp
	mov	rdx, r12
	mov	rsi, r12
	call	ocfs2_extend_no_holes@PLT
	mov	rdi, r15
	mov	r14d, eax
	call	up_write@PLT
	test	r14d, r14d
	jns	.L11
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, r15
	call	up_write@PLT
	mov	edi, r14d
	call	mlog_errno@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ocfs2_extend_file, .-ocfs2_extend_file
	.comm	OCFS2_INLINE_DATA_FL,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_file.c_ocfs2_extend_file.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_extend_file, %function
ocfs2_extend_file:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r1
	mov	r4, r2
	mov	r5, r0
	bl	OCFS2_I
	mov	r7, r0
	clz	r0, r6
	lsr	r0, r0, #5
	bl	BUG_ON
	cmp	r4, #0
	bne	.L2
.L4:
	mov	r7, #0
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r0, r5
	bl	i_size_read
	cmp	r0, r4
	beq	.L4
	mov	r0, r5
	bl	i_size_read
	ldr	r9, .L20
	cmp	r0, r4
	movle	r0, #0
	movgt	r0, #1
	bl	BUG_ON
	ldr	r3, [r9]
	ldr	r2, [r7]
	tst	r2, r3
	bne	.L9
	ldr	r0, [r5]
	bl	OCFS2_SB
	bl	ocfs2_sparse_alloc
	cmp	r0, #0
	beq	.L9
.L11:
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	bl	ocfs2_simple_size_update
	subs	r7, r0, #0
	bge	.L1
.L3:
	bl	mlog_errno
	b	.L1
.L9:
	add	r8, r7, #4
	mov	r0, r8
	bl	down_write
	ldr	r2, [r7]
	ldr	r3, [r9]
	tst	r2, r3
	beq	.L7
	mov	r1, r4
	mov	r0, r6
	bl	ocfs2_size_fits_inline_data
	cmp	r0, #0
	bne	.L12
	mov	r1, r6
	mov	r0, r5
	bl	ocfs2_convert_inline_data_to_extents
	subs	r7, r0, #0
	bne	.L18
.L7:
	ldr	r0, [r5]
	bl	OCFS2_SB
	bl	ocfs2_sparse_alloc
	cmp	r0, #0
	beq	.L19
.L12:
	mov	r0, r8
	bl	up_write
	b	.L11
.L19:
	mov	r2, r4
	mov	r1, r4
	mov	r0, r5
	bl	ocfs2_extend_no_holes
	mov	r7, r0
	mov	r0, r8
	bl	up_write
	cmp	r7, #0
	bge	.L11
	mov	r0, r7
	bl	mlog_errno
	b	.L1
.L18:
	mov	r0, r8
	bl	up_write
	mov	r0, r7
	bl	mlog_errno
	b	.L1
.L21:
	.align	2
.L20:
	.word	OCFS2_INLINE_DATA_FL
	.size	ocfs2_extend_file, .-ocfs2_extend_file
	.comm	OCFS2_INLINE_DATA_FL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
