	.file	"extr_inode.c_ext4_write_begin.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ext4_write_begin, @function
ext4_write_begin:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	r14, QWORD PTR [rsi]
	mov	esi, ebp
	mov	DWORD PTR 48[rsp], ecx
	mov	rcx, QWORD PTR 144[rsp]
	mov	QWORD PTR 24[rsp], rdi
	mov	rdi, r14
	mov	DWORD PTR 36[rsp], edx
	mov	edx, r13d
	mov	QWORD PTR 8[rsp], r9
	mov	QWORD PTR 40[rsp], rcx
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rcx
	xor	ecx, ecx
	mov	ecx, r8d
	mov	DWORD PTR 68[rsp], 0
	call	trace_ext4_write_begin@PLT
	mov	rdi, r14
	call	ext4_writepage_trans_blocks@PLT
	mov	ecx, DWORD PTR PAGE_CACHE_SHIFT[rip]
	add	eax, 1
	mov	DWORD PTR 20[rsp], eax
	mov	eax, ebp
	sar	eax, cl
	mov	ecx, ebp
	mov	DWORD PTR 32[rsp], eax
	mov	eax, DWORD PTR PAGE_CACHE_SIZE[rip]
	add	ecx, r13d
	mov	DWORD PTR 52[rsp], ecx
	sub	eax, 1
	and	eax, ebp
	mov	edx, eax
	mov	DWORD PTR 56[rsp], eax
	mov	eax, r13d
	add	eax, edx
	mov	DWORD PTR 60[rsp], eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L26:
	mov	eax, DWORD PTR ext4_get_block[rip]
	mov	r9, r12
	mov	rsi, r15
	mov	r8d, ebx
	push	rax
	.cfi_def_cfa_offset 152
	push	QWORD PTR 48[rsp]
	.cfi_def_cfa_offset 160
	mov	ecx, DWORD PTR 64[rsp]
	mov	edx, DWORD PTR 52[rsp]
	mov	rdi, QWORD PTR 40[rsp]
	call	block_write_begin@PLT
	pop	rcx
	.cfi_def_cfa_offset 152
	pop	rsi
	.cfi_def_cfa_offset 144
	mov	r12d, eax
.L7:
	test	r12d, r12d
	jne	.L8
.L9:
	mov	eax, r12d
	add	eax, DWORD PTR ENOSPC[rip]
	jne	.L1
.L29:
	mov	edi, DWORD PTR 4[r14]
	lea	rsi, 68[rsp]
	call	ext4_should_retry_alloc@PLT
	test	rax, rax
	je	.L1
.L2:
	mov	esi, DWORD PTR 20[rsp]
	mov	rdi, r14
	call	ext4_journal_start@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L24
	or	ebx, DWORD PTR AOP_FLAG_NOFS[rip]
	mov	esi, DWORD PTR 32[rsp]
	mov	rdi, r15
	mov	edx, ebx
	call	grab_cache_page_write_begin@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L25
	mov	r12, QWORD PTR 8[rsp]
	mov	rdi, r14
	mov	QWORD PTR [r12], rax
	call	ext4_should_journal_data@PLT
	test	eax, eax
	je	.L26
	mov	eax, DWORD PTR ext4_journalled_get_block[rip]
	mov	r8d, ebx
	mov	rsi, r15
	push	rax
	.cfi_def_cfa_offset 152
	push	QWORD PTR 48[rsp]
	.cfi_def_cfa_offset 160
	mov	r9, QWORD PTR 24[rsp]
	mov	ecx, DWORD PTR 64[rsp]
	mov	edx, DWORD PTR 52[rsp]
	mov	rdi, QWORD PTR 40[rsp]
	call	block_write_begin@PLT
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 152
	pop	rdx
	.cfi_def_cfa_offset 144
	test	r12d, r12d
	je	.L27
.L8:
	mov	rdi, rbp
	call	unlock_page@PLT
	mov	rdi, rbp
	call	page_cache_release@PLT
	mov	eax, DWORD PTR 52[rsp]
	cmp	eax, DWORD PTR [r14]
	ja	.L28
.L11:
	mov	rdi, r13
	call	ext4_journal_stop@PLT
	mov	eax, DWORD PTR 52[rsp]
	cmp	eax, DWORD PTR [r14]
	jbe	.L9
	mov	rdi, r14
	call	ext4_truncate_failed_write@PLT
	cmp	QWORD PTR 8[r14], 0
	je	.L9
	xor	edi, edi
	mov	rsi, r14
	call	ext4_orphan_del@PLT
	mov	eax, r12d
	add	eax, DWORD PTR ENOSPC[rip]
	je	.L29
.L4:
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L27:
	.cfi_restore_state
	mov	r12d, DWORD PTR do_journal_get_write_access[rip]
	mov	rdi, rbp
	call	page_buffers@PLT
	mov	ecx, DWORD PTR 60[rsp]
	mov	edx, DWORD PTR 56[rsp]
	xor	r8d, r8d
	mov	r9d, r12d
	mov	esi, eax
	mov	rdi, r13
	call	walk_page_buffers@PLT
	mov	r12d, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, r14
	call	ext4_can_truncate@PLT
	test	rax, rax
	je	.L11
	mov	rsi, r14
	mov	rdi, r13
	call	ext4_orphan_add@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, r13
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, r13
	call	ext4_journal_stop@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ext4_write_begin, .-ext4_write_begin
	.comm	ext4_journalled_get_block,4,4
	.comm	ext4_get_block,4,4
	.comm	do_journal_get_write_access,4,4
	.comm	PAGE_CACHE_SIZE,4,4
	.comm	PAGE_CACHE_SHIFT,4,4
	.comm	ENOSPC,4,4
	.comm	ENOMEM,4,4
	.comm	AOP_FLAG_NOFS,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_inode.c_ext4_write_begin.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ext4_write_begin, %function
ext4_write_begin:
	@ args = 12, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	lr, r0
	mov	ip, #0
	mov	r10, r2
	sub	sp, sp, #68
	str	lr, [sp, #32]
	ldr	lr, .L34
	ldr	r6, [r1]
	ldr	lr, [lr]
	str	lr, [sp, #60]
	mov	lr,#0
	str	ip, [sp, #56]
	ldr	ip, [sp, #108]
	ldr	r7, [sp, #104]
	str	ip, [sp, #20]
	ldr	ip, [sp, #112]
	mov	r2, r3
	mov	fp, r3
	mov	r9, r1
	mov	r3, r7
	mov	r1, r10
	mov	r0, r6
	str	ip, [sp, #36]
	bl	trace_ext4_write_begin
	mov	r0, r6
	bl	ext4_writepage_trans_blocks
	ldr	r3, .L34+4
	ldr	r2, .L34+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	sub	r3, r3, #1
	and	r3, r3, r10
	str	r3, [sp, #48]
	add	r3, fp, r3
	str	r3, [sp, #52]
	asr	r3, r10, r2
	add	r1, r0, #1
	str	r3, [sp, #28]
	add	r3, r10, fp
	ldr	r8, .L34+12
	str	r1, [sp, #24]
	str	r3, [sp, #44]
	str	r10, [sp, #40]
	b	.L2
.L29:
	ldr	r3, .L34+16
	ldr	r2, [sp, #36]
	ldr	r3, [r3]
	mov	r1, r9
	str	r2, [sp, #8]
	str	r4, [sp, #4]
	str	r3, [sp, #12]
	ldr	r2, [sp, #40]
	mov	r3, fp
	ldr	r0, [sp, #32]
	str	r7, [sp]
	bl	block_write_begin
	mov	r4, r0
.L7:
	cmp	r4, #0
	bne	.L8
.L9:
	ldr	r3, .L34+20
	ldr	r3, [r3]
	cmn	r4, r3
	bne	.L1
.L32:
	ldr	r0, [r6, #4]
	add	r1, sp, #56
	bl	ext4_should_retry_alloc
	cmp	r0, #0
	beq	.L1
.L2:
	ldr	r1, [sp, #24]
	mov	r0, r6
	bl	ext4_journal_start
	mov	r10, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L27
	ldr	r3, [r8]
	mov	r0, r9
	orr	r7, r7, r3
	mov	r2, r7
	ldr	r1, [sp, #28]
	bl	grab_cache_page_write_begin
	subs	r5, r0, #0
	beq	.L28
	ldr	r4, [sp, #20]
	mov	r0, r6
	str	r5, [r4]
	bl	ext4_should_journal_data
	cmp	r0, #0
	beq	.L29
	ldr	r2, [sp, #36]
	ldr	r3, .L34+24
	mov	r1, r9
	ldr	r3, [r3]
	str	r2, [sp, #8]
	ldr	r2, [sp, #20]
	str	r3, [sp, #12]
	str	r2, [sp, #4]
	mov	r3, fp
	ldr	r2, [sp, #40]
	ldr	r0, [sp, #32]
	str	r7, [sp]
	bl	block_write_begin
	subs	r4, r0, #0
	beq	.L30
.L8:
	mov	r0, r5
	bl	unlock_page
	mov	r0, r5
	bl	page_cache_release
	ldr	r3, [r6]
	ldr	r2, [sp, #44]
	cmp	r2, r3
	bhi	.L31
.L11:
	mov	r0, r10
	bl	ext4_journal_stop
	ldr	r3, [r6]
	ldr	r2, [sp, #44]
	cmp	r2, r3
	bls	.L9
	mov	r0, r6
	bl	ext4_truncate_failed_write
	ldr	r3, [r6, #8]
	cmp	r3, #0
	beq	.L9
	mov	r1, r6
	mov	r0, #0
	bl	ext4_orphan_del
	ldr	r3, .L34+20
	ldr	r3, [r3]
	cmn	r4, r3
	beq	.L32
.L4:
.L1:
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	mov	r0, r4
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
	mov	r0, r5
	bl	page_buffers
	ldr	r3, .L34+28
	mov	r1, r0
	ldr	r3, [r3]
	mov	r0, r10
	str	r4, [sp]
	str	r3, [sp, #4]
	ldr	r2, [sp, #48]
	ldr	r3, [sp, #52]
	bl	walk_page_buffers
	mov	r4, r0
	b	.L7
.L31:
	mov	r0, r6
	bl	ext4_can_truncate
	cmp	r0, #0
	beq	.L11
	mov	r1, r6
	mov	r0, r10
	bl	ext4_orphan_add
	b	.L11
.L27:
	mov	r0, r10
	bl	PTR_ERR
	mov	r4, r0
	b	.L1
.L28:
	mov	r0, r10
	bl	ext4_journal_stop
	ldr	r3, .L34+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L33:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	.LC0
	.word	PAGE_CACHE_SIZE
	.word	PAGE_CACHE_SHIFT
	.word	AOP_FLAG_NOFS
	.word	ext4_get_block
	.word	ENOSPC
	.word	ext4_journalled_get_block
	.word	do_journal_get_write_access
	.word	ENOMEM
	.size	ext4_write_begin, .-ext4_write_begin
	.comm	ext4_journalled_get_block,4,4
	.comm	ext4_get_block,4,4
	.comm	do_journal_get_write_access,4,4
	.comm	PAGE_CACHE_SIZE,4,4
	.comm	PAGE_CACHE_SHIFT,4,4
	.comm	ENOSPC,4,4
	.comm	ENOMEM,4,4
	.comm	AOP_FLAG_NOFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
