	.file	"extr_refcounttree.c_ocfs2_complete_reflink.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ocfs2_complete_reflink, @function
ocfs2_complete_reflink:
.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
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r14, QWORD PTR [rsi]
	mov	r15, QWORD PTR [rcx]
	mov	QWORD PTR 8[rsp], rcx
	mov	DWORD PTR 20[rsp], r8d
	call	i_size_read@PLT
	mov	edi, DWORD PTR [rbx]
	mov	r12d, DWORD PTR OCFS2_INODE_UPDATE_CREDITS[rip]
	mov	DWORD PTR 16[rsp], eax
	call	OCFS2_SB@PLT
	mov	esi, r12d
	mov	edi, eax
	call	ocfs2_start_trans@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L12
	mov	r13d, DWORD PTR OCFS2_JOURNAL_ACCESS_WRITE[rip]
	mov	rdi, rbx
	call	INODE_CACHE@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rdi, r12
	mov	ecx, r13d
	mov	esi, eax
	call	ocfs2_journal_access_di@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L13
	mov	rdi, rbx
	call	OCFS2_I@PLT
	mov	rdi, rax
	call	spin_lock@PLT
	mov	rdi, rbp
	call	OCFS2_I@PLT
	mov	rdi, rbx
	mov	QWORD PTR 24[rsp], rax
	call	OCFS2_I@PLT
	mov	rdx, QWORD PTR 24[rsp]
	mov	rdi, rbp
	mov	edx, DWORD PTR 12[rdx]
	mov	DWORD PTR 12[rax], edx
	call	OCFS2_I@PLT
	mov	rdi, rbx
	mov	QWORD PTR 24[rsp], rax
	call	OCFS2_I@PLT
	mov	rdx, QWORD PTR 24[rsp]
	mov	rdi, rbp
	mov	edx, DWORD PTR 8[rdx]
	mov	DWORD PTR 8[rax], edx
	call	OCFS2_I@PLT
	mov	rdi, rbx
	mov	QWORD PTR 24[rsp], rax
	call	OCFS2_I@PLT
	mov	rdx, QWORD PTR 24[rsp]
	mov	rdi, rbx
	mov	edx, DWORD PTR 4[rdx]
	mov	DWORD PTR 4[rax], edx
	call	OCFS2_I@PLT
	mov	rdi, rax
	call	spin_unlock@PLT
	mov	esi, DWORD PTR 16[rsp]
	mov	rdi, rbx
	call	i_size_write@PLT
	mov	eax, DWORD PTR 28[rbp]
	mov	DWORD PTR 28[rbx], eax
	mov	eax, DWORD PTR 44[r14]
	mov	DWORD PTR 44[r15], eax
	mov	eax, DWORD PTR 40[r14]
	mov	DWORD PTR 40[r15], eax
	mov	eax, DWORD PTR 36[r14]
	mov	DWORD PTR 36[r15], eax
	mov	eax, DWORD PTR 32[r14]
	mov	DWORD PTR 32[r15], eax
	mov	eax, DWORD PTR 28[r14]
	mov	DWORD PTR 28[r15], eax
	mov	eax, DWORD PTR 20[rsp]
	test	eax, eax
	jne	.L14
.L6:
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, r12
	call	ocfs2_journal_dirty@PLT
.L5:
	mov	edi, DWORD PTR [rbx]
	call	OCFS2_SB@PLT
	mov	rsi, r12
	mov	edi, eax
	call	ocfs2_commit_trans@PLT
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L13:
	.cfi_restore_state
	mov	edi, eax
	call	mlog_errno@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r12
	call	PTR_ERR@PLT
	mov	edi, eax
	mov	r13d, eax
	call	mlog_errno@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR 24[rbp]
	mov	rdi, rbx
	mov	DWORD PTR 24[rbx], eax
	mov	eax, DWORD PTR 20[rbp]
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR 24[r14]
	mov	DWORD PTR 24[r15], eax
	mov	eax, DWORD PTR 20[r14]
	mov	DWORD PTR 20[r15], eax
	mov	eax, DWORD PTR 16[r14]
	mov	DWORD PTR 16[r15], eax
	call	current_time@PLT
	mov	QWORD PTR 8[rbx], rax
	shr	rax, 32
	mov	rdi, rax
	call	cpu_to_le64@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	DWORD PTR 12[r15], eax
	call	cpu_to_le32@PLT
	mov	DWORD PTR 8[r15], eax
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR 4[r14]
	mov	DWORD PTR 4[r15], eax
	mov	eax, DWORD PTR [r14]
	mov	DWORD PTR [r15], eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	ocfs2_complete_reflink, .-ocfs2_complete_reflink
	.comm	OCFS2_JOURNAL_ACCESS_WRITE,4,4
	.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_complete_reflink.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_complete_reflink, %function
ocfs2_complete_reflink:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r3
	ldr	r3, .L17
	sub	sp, sp, #28
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r10, [r1]
	mov	r5, r0
	ldr	r9, [r7]
	bl	i_size_read
	mov	fp, r0
	ldr	r0, [r4]
	bl	OCFS2_SB
	ldr	r3, .L17+4
	ldr	r1, [r3]
	bl	ocfs2_start_trans
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L13
	mov	r0, r4
	bl	INODE_CACHE
	ldr	r3, .L17+8
	mov	r1, r0
	mov	r2, r7
	mov	r0, r6
	ldr	r3, [r3]
	bl	ocfs2_journal_access_di
	subs	r8, r0, #0
	bne	.L14
	mov	r0, r4
	bl	OCFS2_I
	bl	spin_lock
	mov	r0, r5
	bl	OCFS2_I
	str	r0, [sp, #4]
	mov	r0, r4
	bl	OCFS2_I
	mov	r2, r0
	ldr	r3, [sp, #4]
	mov	r0, r5
	ldr	r3, [r3, #12]
	str	r3, [r2, #12]
	bl	OCFS2_I
	str	r0, [sp, #4]
	mov	r0, r4
	bl	OCFS2_I
	mov	r2, r0
	ldr	r3, [sp, #4]
	mov	r0, r5
	ldr	r3, [r3, #8]
	str	r3, [r2, #8]
	bl	OCFS2_I
	str	r0, [sp, #4]
	mov	r0, r4
	bl	OCFS2_I
	mov	r2, r0
	ldr	r3, [sp, #4]
	mov	r0, r4
	ldr	r3, [r3, #4]
	str	r3, [r2, #4]
	bl	OCFS2_I
	bl	spin_unlock
	mov	r1, fp
	mov	r0, r4
	bl	i_size_write
	ldr	r2, [r5, #28]
	ldr	r3, [r10, #44]
	ldr	ip, [sp, #64]
	ldr	r0, [r10, #40]
	ldr	r1, [r10, #36]
	str	r2, [r4, #28]
	ldr	r2, [r10, #32]
	str	r3, [r9, #44]
	ldr	r3, [r10, #28]
	cmp	ip, #0
	str	r0, [r9, #40]
	str	r1, [r9, #36]
	str	r2, [r9, #32]
	str	r3, [r9, #28]
	bne	.L15
.L6:
	mov	r1, r7
	mov	r0, r6
	bl	ocfs2_journal_dirty
.L5:
	ldr	r0, [r4]
	bl	OCFS2_SB
	mov	r1, r6
	bl	ocfs2_commit_trans
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r8
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	bl	mlog_errno
	b	.L5
.L13:
	mov	r0, r6
	bl	PTR_ERR
	mov	r8, r0
	bl	mlog_errno
	b	.L1
.L15:
	ldr	r2, [r5, #24]
	ldr	r3, [r5, #20]
	ldr	r0, [r5, #16]
	ldr	r1, [r10, #24]
	str	r2, [r4, #24]
	ldr	r2, [r10, #20]
	str	r3, [r4, #20]
	ldr	r3, [r10, #16]
	add	fp, sp, #8
	str	r0, [r4, #16]
	str	r2, [r9, #20]
	mov	r0, fp
	str	r1, [r9, #24]
	str	r3, [r9, #16]
	mov	r1, r4
	bl	current_time
	ldm	fp, {r0, r1}
	add	r3, r4, #8
	stm	r3, {r0, r1}
	ldr	r0, [r4, #12]
	bl	cpu_to_le64
	mov	r3, r0
	ldr	r0, [r4, #8]
	str	r3, [r9, #12]
	bl	cpu_to_le32
	ldr	r1, [r5, #4]
	ldr	r2, [r10, #4]
	ldr	r3, [r10]
	str	r0, [r9, #8]
	str	r1, [r4, #4]
	str	r2, [r9, #4]
	str	r3, [r9]
	b	.L6
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	OCFS2_INODE_UPDATE_CREDITS
	.word	OCFS2_JOURNAL_ACCESS_WRITE
	.size	ocfs2_complete_reflink, .-ocfs2_complete_reflink
	.comm	OCFS2_JOURNAL_ACCESS_WRITE,4,4
	.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
