	.file	"extr_segment.c_do_write_page.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	do_write_page, @function
do_write_page:
.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
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	__get_segment_type@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	esi, DWORD PTR LFS[rip]
	mov	ebp, eax
	call	test_opt@PLT
	mov	rdi, QWORD PTR [rbx]
	test	rax, rax
	je	.L3
	cmp	DWORD PTR CURSEG_COLD_DATA[rip], ebp
	je	.L11
.L3:
	mov	edx, DWORD PTR 12[rbx]
	lea	r13, 8[rbx]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, DWORD PTR 8[rbx]
	mov	rdi, QWORD PTR [rbx]
	mov	DWORD PTR 12[rbx], edx
.L6:
	push	1
	.cfi_def_cfa_offset 72
	mov	esi, DWORD PTR 24[rbx]
	mov	rcx, r13
	mov	r9d, ebp
	push	rbx
	.cfi_def_cfa_offset 80
	mov	r8, r12
	call	f2fs_allocate_data_block@PLT
	mov	esi, DWORD PTR 12[rbx]
	mov	rdi, QWORD PTR [rbx]
	call	GET_SEGNO@PLT
	cmp	rax, QWORD PTR NULL_SEGNO[rip]
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	je	.L4
	mov	rdi, QWORD PTR [rbx]
	mov	r15d, DWORD PTR 12[rbx]
	call	META_MAPPING@PLT
	mov	edx, r15d
	mov	esi, r15d
	mov	edi, eax
	call	invalidate_mapping_pages@PLT
.L4:
	mov	rdi, rbx
	call	f2fs_submit_page_write@PLT
	cmp	QWORD PTR 16[rbx], 0
	jne	.L12
	mov	rdi, rbx
	call	update_device_state@PLT
	test	r14d, r14d
	jne	.L13
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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	rdi, QWORD PTR [rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	jmp	up_read@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	down_read@PLT
	mov	r14d, 1
	mov	rdi, QWORD PTR [rbx]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	do_write_page, .-do_write_page
	.comm	NULL_SEGNO,8,8
	.comm	LFS,4,4
	.comm	CURSEG_COLD_DATA,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_segment.c_do_write_page.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_write_page, %function
do_write_page:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	sub	sp, sp, #16
	mov	r0, r1
	mov	r4, r1
	bl	__get_segment_type
	ldr	r3, .L15
	mov	r5, r0
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	test_opt
	subs	r10, r0, #0
	beq	.L10
	ldr	r3, .L15+4
	ldr	r0, [r4]
	ldr	r3, [r3]
	cmp	r3, r5
	movne	r10, #0
	beq	.L12
.L3:
	mov	r9, #1
	ldr	r2, [r4, #8]
	ldr	r8, .L15+8
	add	r7, r4, #4
	b	.L6
.L13:
	ldm	r4, {r0, r2}
	str	r2, [r4, #8]
.L6:
	str	r9, [sp, #12]
	str	r4, [sp, #8]
	str	r5, [sp, #4]
	str	r6, [sp]
	mov	r3, r7
	ldr	r1, [r4, #16]
	bl	f2fs_allocate_data_block
	ldr	r1, [r4, #8]
	ldr	r0, [r4]
	bl	GET_SEGNO
	ldr	r3, [r8]
	cmp	r0, r3
	beq	.L4
	ldr	r0, [r4]
	bl	META_MAPPING
	ldr	r2, [r4, #8]
	mov	r1, r2
	bl	invalidate_mapping_pages
.L4:
	mov	r0, r4
	bl	f2fs_submit_page_write
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L13
	mov	r0, r4
	bl	update_device_state
	cmp	r10, #0
	bne	.L14
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	bl	down_read
	mov	r10, #1
.L10:
	ldr	r0, [r4]
	b	.L3
.L14:
	ldr	r0, [r4]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	up_read
.L16:
	.align	2
.L15:
	.word	LFS
	.word	CURSEG_COLD_DATA
	.word	NULL_SEGNO
	.size	do_write_page, .-do_write_page
	.comm	NULL_SEGNO,4,4
	.comm	LFS,4,4
	.comm	CURSEG_COLD_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
