	.file	"extr_vfs_file.c_v9fs_file_write_iter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	v9fs_file_write_iter, @function
v9fs_file_write_iter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 0
	call	generic_write_checks@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L1
	mov	ebx, DWORD PTR [r14]
	mov	edi, DWORD PTR 0[rbp]
	lea	rcx, 4[rsp]
	mov	rdx, r13
	mov	esi, ebx
	call	p9_client_write@PLT
	mov	r12d, eax
	test	eax, eax
	jg	.L11
	mov	r12d, DWORD PTR 4[rsp]
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.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
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	call	file_inode@PLT
	mov	rdi, QWORD PTR [rax]
	mov	rbp, rax
	test	rdi, rdi
	je	.L4
	cmp	QWORD PTR [rdi], 0
	jne	.L13
.L4:
	add	DWORD PTR [r14], r12d
	mov	rdi, rbp
	call	i_size_read@PLT
	mov	esi, DWORD PTR [r14]
	cmp	esi, eax
	jle	.L1
	sub	esi, eax
	mov	rdi, rbp
	call	inode_add_bytes@PLT
	mov	esi, DWORD PTR [r14]
	mov	rdi, rbp
	call	v9fs_i_size_write@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	lea	edx, -1[rbx+r12]
	sar	edx, cl
	sar	ebx, cl
	movsx	rdx, edx
	movsx	rsi, ebx
	call	invalidate_inode_pages2_range@PLT
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	v9fs_file_write_iter, .-v9fs_file_write_iter
	.comm	PAGE_SHIFT,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_vfs_file.c_v9fs_file_write_iter.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	v9fs_file_write_iter, %function
v9fs_file_write_iter:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, .L17
	sub	sp, sp, #8
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	mov	r6, r0
	mov	r5, r1
	ldr	r7, [r0, #4]
	str	r3, [sp]
	bl	generic_write_checks
	subs	r4, r0, #0
	ble	.L1
	ldr	r8, [r6]
	mov	r2, r5
	mov	r1, r8
	mov	r3, sp
	ldr	r0, [r7]
	bl	p9_client_write
	subs	r4, r0, #0
	ldrle	r4, [sp]
	bgt	.L14
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r0, r7
	bl	file_inode
	mov	r5, r0
	ldr	r0, [r0]
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L16
.L4:
	ldr	r3, [r6]
	mov	r0, r5
	add	r3, r3, r4
	str	r3, [r6]
	bl	i_size_read
	ldr	r1, [r6]
	cmp	r1, r0
	ble	.L1
	sub	r1, r1, r0
	mov	r0, r5
	bl	inode_add_bytes
	mov	r0, r5
	ldr	r1, [r6]
	bl	v9fs_i_size_write
	b	.L1
.L16:
	ldr	r3, .L17+4
	add	r2, r8, r4
	ldr	r1, [r3]
	sub	r2, r2, #1
	asr	r2, r2, r1
	asr	r1, r8, r1
	bl	invalidate_inode_pages2_range
	b	.L4
.L15:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	PAGE_SHIFT
	.size	v9fs_file_write_iter, .-v9fs_file_write_iter
	.comm	PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
