	.file	"extr_refcounttree.c_ocfs2_reflink_update_dest.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ocfs2_reflink_update_dest
	.type	ocfs2_reflink_update_dest, @function
ocfs2_reflink_update_dest:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	ocfs2_inode_sector_count@PLT
	mov	rdi, rbx
	mov	DWORD PTR 12[rbx], eax
	call	i_size_read@PLT
	cmp	rax, rbp
	jl	.L12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	mov	r12d, DWORD PTR OCFS2_INODE_UPDATE_CREDITS[rip]
	call	OCFS2_SB@PLT
	mov	esi, r12d
	mov	edi, eax
	call	ocfs2_start_trans@PLT
	mov	rdi, rax
	mov	r14, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L13
	mov	rdi, rbx
	call	OCFS2_I@PLT
	mov	rdi, rax
	call	spin_lock@PLT
	mov	rdi, rbx
	call	i_size_read@PLT
	cmp	rax, rbp
	jl	.L14
.L4:
	mov	rdi, rbx
	call	OCFS2_I@PLT
	mov	rdi, rax
	call	spin_unlock@PLT
	mov	rdi, rbx
	call	current_time@PLT
	mov	rdx, r13
	mov	rsi, rbx
	mov	rdi, r14
	mov	DWORD PTR 4[rbx], eax
	mov	DWORD PTR 8[rbx], eax
	call	ocfs2_mark_inode_dirty@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L15
.L5:
	mov	edi, DWORD PTR [rbx]
	call	OCFS2_SB@PLT
	mov	rsi, r14
	mov	edi, eax
	call	ocfs2_commit_trans@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, r14
	call	PTR_ERR@PLT
	mov	r12d, eax
	mov	edi, eax
	call	mlog_errno@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, rbx
	call	i_size_write@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, eax
	call	mlog_errno@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ocfs2_reflink_update_dest, .-ocfs2_reflink_update_dest
	.comm	OCFS2_INODE_UPDATE_CREDITS,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_refcounttree.c_ocfs2_reflink_update_dest.c"
	.text
	.align	2
	.global	ocfs2_reflink_update_dest
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_reflink_update_dest, %function
ocfs2_reflink_update_dest:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	mov	r4, r0
	mov	r7, r1
	bl	ocfs2_inode_sector_count
	mov	r3, r0
	mov	r0, r4
	str	r3, [r4, #12]
	bl	i_size_read
	cmp	r0, r5
	movge	r5, #0
	blt	.L12
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r0, [r4]
	bl	OCFS2_SB
	ldr	r3, .L16
	ldr	r1, [r3]
	bl	ocfs2_start_trans
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L13
	mov	r0, r4
	bl	OCFS2_I
	bl	spin_lock
	mov	r0, r4
	bl	i_size_read
	cmp	r0, r5
	blt	.L14
.L4:
	mov	r0, r4
	bl	OCFS2_I
	bl	spin_unlock
	mov	r0, r4
	bl	current_time
	mov	r2, r7
	str	r0, [r4, #4]
	str	r0, [r4, #8]
	mov	r1, r4
	mov	r0, r6
	bl	ocfs2_mark_inode_dirty
	subs	r5, r0, #0
	bne	.L15
.L5:
	ldr	r0, [r4]
	bl	OCFS2_SB
	mov	r1, r6
	bl	ocfs2_commit_trans
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r0, r6
	bl	PTR_ERR
	mov	r5, r0
	bl	mlog_errno
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r1, r5
	mov	r0, r4
	bl	i_size_write
	b	.L4
.L15:
	bl	mlog_errno
	b	.L5
.L17:
	.align	2
.L16:
	.word	OCFS2_INODE_UPDATE_CREDITS
	.size	ocfs2_reflink_update_dest, .-ocfs2_reflink_update_dest
	.comm	OCFS2_INODE_UPDATE_CREDITS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
