	.file	"extr_refcounttree.c_ocfs2_cow_sync_writeback.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ocfs2_cow_sync_writeback, @function
ocfs2_cow_sync_writeback:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rdi, QWORD PTR [rsi]
	mov	ebx, edx
	call	ocfs2_should_order_data@PLT
	test	rax, rax
	je	.L11
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	call	OCFS2_SB@PLT
	mov	rdi, rbp
	mov	ecx, DWORD PTR [rax]
	sal	ebx, cl
	call	OCFS2_SB@PLT
	mov	esi, ebx
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR [r14]
	sal	r12d, cl
	mov	edi, DWORD PTR [rax]
	add	r12d, ebx
	lea	edx, -1[r12]
	call	filemap_fdatawrite_range@PLT
	mov	r13d, eax
	test	eax, eax
	jns	.L3
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
	mov	edi, r13d
	call	mlog_errno@PLT
.L5:
	mov	rdi, rbp
	call	unlock_page@PLT
	mov	rdi, rbp
	call	page_cache_release@PLT
	test	r13d, r13d
	jne	.L1
.L3:
	cmp	ebx, r12d
	jge	.L1
	mov	ecx, DWORD PTR PAGE_CACHE_SHIFT[rip]
	mov	esi, ebx
	mov	rax, QWORD PTR [r14]
	sar	esi, cl
	mov	edi, DWORD PTR [rax]
	lea	ebx, 1[rsi]
	sal	ebx, cl
	cmp	r12d, ebx
	cmovle	ebx, r12d
	call	grab_cache_page@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbp, rax
	sete	dil
	call	BUG_ON@PLT
	mov	rdi, rbp
	call	wait_on_page_writeback@PLT
	mov	rdi, rbp
	call	PageError@PLT
	test	rax, rax
	jne	.L13
	mov	rdi, rbp
	call	mark_page_accessed@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, eax
	call	mlog_errno@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ocfs2_cow_sync_writeback, .-ocfs2_cow_sync_writeback
	.comm	PAGE_CACHE_SHIFT,4,4
	.comm	EIO,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_cow_sync_writeback.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_cow_sync_writeback, %function
ocfs2_cow_sync_writeback:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, [r1]
	mov	r7, r1
	mov	r10, r2
	mov	r5, r3
	bl	ocfs2_should_order_data
	cmp	r0, #0
	movne	r6, #0
	beq	.L12
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	mov	r0, r4
	bl	OCFS2_SB
	ldr	r2, [r0]
	mov	r0, r4
	lsl	r10, r10, r2
	bl	OCFS2_SB
	ldr	r2, [r0]
	ldr	r3, [r7]
	add	r5, r10, r5, lsl r2
	mov	r1, r10
	ldr	r0, [r3]
	sub	r2, r5, #1
	bl	filemap_fdatawrite_range
	subs	r6, r0, #0
	blt	.L9
	ldr	r8, .L14
	ldr	r9, .L14+4
	b	.L3
.L13:
	ldr	r6, [r9]
	rsb	r6, r6, #0
	mov	r0, r6
	bl	mlog_errno
.L5:
	mov	r0, r4
	bl	unlock_page
	mov	r0, r4
	bl	page_cache_release
	cmp	r6, #0
	bne	.L1
.L3:
	cmp	r10, r5
	bge	.L1
	ldr	r3, [r8]
	ldr	r0, [r7]
	asr	r1, r10, r3
	add	r2, r1, #1
	lsl	r2, r2, r3
	cmp	r5, r2
	ldr	r0, [r0]
	movlt	r10, r5
	movge	r10, r2
	bl	grab_cache_page
	mov	r4, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	mov	r0, r4
	bl	wait_on_page_writeback
	mov	r0, r4
	bl	PageError
	cmp	r0, #0
	bne	.L13
	mov	r0, r4
	bl	mark_page_accessed
	b	.L5
.L9:
	bl	mlog_errno
	b	.L1
.L15:
	.align	2
.L14:
	.word	PAGE_CACHE_SHIFT
	.word	EIO
	.size	ocfs2_cow_sync_writeback, .-ocfs2_cow_sync_writeback
	.comm	PAGE_CACHE_SHIFT,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
