	.file	"extr_aops.c_ocfs2_prepare_page_for_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ocfs2_prepare_page_for_write, @function
ocfs2_prepare_page_for_write:
.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
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR [rdi]
	mov	DWORD PTR 12[rsp], r9d
	mov	r15d, DWORD PTR 104[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	OCFS2_SB@PLT
	lea	rcx, 20[rsp]
	lea	rdx, 16[rsp]
	mov	esi, r13d
	mov	edi, eax
	call	ocfs2_figure_cluster_boundaries@PLT
	mov	rdi, r12
	call	i_size_read@PLT
	mov	rdi, rbp
	mov	QWORD PTR [rsp], rax
	call	page_offset@PLT
	cdqe
	cmp	QWORD PTR [rsp], rax
	jle	.L18
.L2:
	cmp	QWORD PTR [rbx], rbp
	je	.L19
	xor	edi, edi
	test	r15d, r15d
	sete	dil
	call	BUG_ON@PLT
	mov	r8d, DWORD PTR 20[rsp]
	mov	rsi, r14
	mov	r9d, r15d
	mov	ecx, DWORD PTR 16[rsp]
	mov	rdx, r12
	mov	rdi, rbp
	call	ocfs2_map_page_blocks@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L16
	test	r15d, r15d
	jne	.L20
.L7:
	mov	rdi, rbp
	xor	r14d, r14d
	call	flush_dcache_page@PLT
.L8:
	endbr64
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L19:
	.cfi_restore_state
	mov	eax, DWORD PTR PAGE_SIZE[rip]
	mov	ebx, DWORD PTR 96[rsp]
	lea	r10d, -1[rax]
	and	r10d, DWORD PTR 12[rsp]
	add	ebx, r10d
	test	r15d, r15d
	je	.L4
	mov	r8d, DWORD PTR 20[rsp]
	mov	ecx, DWORD PTR 16[rsp]
	mov	rsi, r14
	mov	r9d, r15d
	mov	rdx, r12
	mov	rdi, rbp
	mov	DWORD PTR [rsp], r10d
	call	ocfs2_map_page_blocks@PLT
	mov	r10d, DWORD PTR [rsp]
	test	eax, eax
	mov	r14d, eax
	je	.L6
.L16:
	mov	edi, r14d
	call	mlog_errno@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	xor	ebx, ebx
	xor	r10d, r10d
.L6:
	mov	rdi, rbp
	mov	DWORD PTR [rsp], r10d
	call	PageUptodate@PLT
	test	eax, eax
	jne	.L7
	mov	edi, DWORD PTR [r12]
	call	OCFS2_SB@PLT
	mov	r10d, DWORD PTR [rsp]
	mov	r8d, ebx
	mov	edx, r13d
	mov	esi, eax
	mov	rdi, rbp
	mov	ecx, r10d
	call	ocfs2_clear_page_regions@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbp
	call	page_offset@PLT
	cmp	eax, DWORD PTR 12[rsp]
	setle	al
	movzx	eax, al
	or	r15d, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, r14
	xor	r9d, r9d
	mov	r8d, ebx
	mov	ecx, r10d
	mov	rdx, r12
	mov	rdi, rbp
	call	ocfs2_map_page_blocks@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L7
	jmp	.L16
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ocfs2_prepare_page_for_write, .-ocfs2_prepare_page_for_write
	.comm	PAGE_SIZE,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_aops.c_ocfs2_prepare_page_for_write.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_prepare_page_for_write, %function
ocfs2_prepare_page_for_write:
	@ args = 16, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	mov	r4, r3
	ldr	r3, .L22
	sub	sp, sp, #24
	ldr	r0, [r0]
	mov	r9, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r7, [sp, #68]
	bl	OCFS2_SB
	ldr	r1, [sp, #56]
	add	r3, sp, #16
	add	r2, sp, #12
	bl	ocfs2_figure_cluster_boundaries
	mov	r0, r5
	bl	i_size_read
	mov	r8, r0
	mov	r0, r4
	bl	page_offset
	cmp	r8, r0
	ble	.L17
.L2:
	ldr	r3, [r6]
	cmp	r3, r4
	beq	.L18
	clz	r0, r7
	lsr	r0, r0, #5
	bl	BUG_ON
	ldr	r3, [sp, #16]
	mov	r1, r9
	str	r3, [sp]
	mov	r2, r5
	mov	r0, r4
	ldr	r3, [sp, #12]
	str	r7, [sp, #4]
	bl	ocfs2_map_page_blocks
	subs	r6, r0, #0
	bne	.L19
	cmp	r7, #0
	bne	.L20
.L7:
	mov	r0, r4
	bl	flush_dcache_page
	mov	r6, #0
.L8:
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r6
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	ldr	r3, .L22+4
	cmp	r7, #0
	ldr	r8, [r3]
	ldr	r3, [sp, #60]
	sub	r8, r8, #1
	and	r8, r8, r3
	ldr	r3, [sp, #64]
	add	r10, r8, r3
	beq	.L4
	ldr	r3, [sp, #16]
	mov	r1, r9
	str	r3, [sp]
	mov	r2, r5
	mov	r0, r4
	ldr	r3, [sp, #12]
	str	r7, [sp, #4]
	bl	ocfs2_map_page_blocks
	subs	r6, r0, #0
	bne	.L5
.L6:
	mov	r0, r4
	bl	PageUptodate
	cmp	r0, #0
	bne	.L7
	ldr	r0, [r5]
	bl	OCFS2_SB
	mov	r3, r8
	mov	r1, r0
	ldr	r2, [sp, #56]
	mov	r0, r4
	str	r10, [sp]
	bl	ocfs2_clear_page_regions
	b	.L7
.L17:
	mov	r0, r4
	bl	page_offset
	ldr	r3, [sp, #60]
	cmp	r0, r3
	orrle	r7, r7, #1
	b	.L2
.L4:
	mov	r3, r8
	mov	r2, r5
	mov	r1, r9
	mov	r0, r4
	str	r7, [sp, #4]
	str	r10, [sp]
	bl	ocfs2_map_page_blocks
	subs	r6, r0, #0
	beq	.L7
.L5:
	mov	r0, r6
	bl	mlog_errno
	b	.L1
.L19:
	bl	mlog_errno
	b	.L1
.L20:
	mov	r10, r6
	mov	r8, r6
	b	.L6
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	PAGE_SIZE
	.size	ocfs2_prepare_page_for_write, .-ocfs2_prepare_page_for_write
	.comm	PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
