	.file	"extr_segment.c_f2fs_wait_on_page_writeback.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	f2fs_wait_on_page_writeback
	.type	f2fs_wait_on_page_writeback, @function
f2fs_wait_on_page_writeback:
.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	r13d, edx
	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	ebx, esi
	call	PageWriteback@PLT
	test	rax, rax
	jne	.L10
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L10:
	.cfi_restore_state
	mov	rdi, rbp
	call	F2FS_P_SB@PLT
	mov	r8d, ebx
	xor	ecx, ecx
	mov	rdx, rbp
	mov	rdi, rax
	xor	esi, esi
	mov	r14, rax
	call	f2fs_submit_merged_write_cond@PLT
	mov	rdi, rbp
	test	r13d, r13d
	je	.L3
	call	wait_on_page_writeback@PLT
	test	r12d, r12d
	jne	.L11
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	esi, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdi, r14
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	f2fs_bug_on@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	jmp	wait_for_stable_page@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	xor	r12d, r12d
	call	PageWriteback@PLT
	test	rax, rax
	setne	r12b
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	f2fs_wait_on_page_writeback, .-f2fs_wait_on_page_writeback
	.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_segment.c_f2fs_wait_on_page_writeback.c"
	.text
	.align	2
	.global	f2fs_wait_on_page_writeback
	.syntax unified
	.arm
	.fpu softvfp
	.type	f2fs_wait_on_page_writeback, %function
f2fs_wait_on_page_writeback:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #12
	mov	r7, r1
	mov	r6, r2
	mov	r5, r3
	mov	r4, r0
	bl	PageWriteback
	cmp	r0, #0
	bne	.L10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	mov	r0, r4
	bl	F2FS_P_SB
	mov	r3, #0
	str	r7, [sp]
	mov	r1, r3
	mov	r2, r4
	mov	r7, r0
	bl	f2fs_submit_merged_write_cond
	cmp	r6, #0
	mov	r0, r4
	beq	.L3
	bl	wait_on_page_writeback
	cmp	r5, #0
	bne	.L11
.L4:
	mov	r1, r5
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	f2fs_bug_on
.L3:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	wait_for_stable_page
.L11:
	mov	r0, r4
	bl	PageWriteback
	subs	r5, r0, #0
	movne	r5, #1
	b	.L4
	.size	f2fs_wait_on_page_writeback, .-f2fs_wait_on_page_writeback
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
