	.file	"extr_vfs.c_nfsd_vfs_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nfsd_vfs_write
	.type	nfsd_vfs_write, @function
nfsd_vfs_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, r8
	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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	lea	r15, 4[rbp]
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR 16[rsp], rdx
	mov	rbx, QWORD PTR 128[rsp]
	mov	edx, r13d
	mov	DWORD PTR 32[rsp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR current[rip]
	mov	DWORD PTR 52[rsp], ecx
	mov	rcx, QWORD PTR [rbx]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 44[rsp], eax
	call	trace_nfsd_write_opened@PLT
	mov	edi, DWORD PTR RQ_LOCAL[rip]
	mov	rsi, r15
	call	test_bit@PLT
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR current[rip]
	mov	edx, DWORD PTR PF_LESS_THROTTLE[rip]
	or	DWORD PTR [rax], edx
.L2:
	cmp	DWORD PTR 0[rbp], 2
	mov	rdi, QWORD PTR [r12]
	je	.L3
.L7:
	call	EX_ISSYNC@PLT
	test	eax, eax
	mov	DWORD PTR 28[rsp], eax
	mov	eax, 1
	jne	.L34
.L4:
	mov	esi, DWORD PTR NFS_UNSTABLE[rip]
	mov	DWORD PTR 136[rsp], esi
.L5:
	mov	edx, DWORD PTR 136[rsp]
	test	edx, edx
	setne	BYTE PTR 8[rsp]
	movzx	ecx, BYTE PTR 8[rsp]
	xor	r9d, r9d
	and	al, cl
	je	.L8
	mov	BYTE PTR 8[rsp], al
	mov	r9d, DWORD PTR RWF_SYNC[rip]
.L8:
	lea	r10, 48[rsp]
	mov	ecx, DWORD PTR 32[rsp]
	mov	r8, QWORD PTR [rbx]
	mov	rdx, r14
	mov	esi, DWORD PTR WRITE[rip]
	mov	rdi, r10
	mov	DWORD PTR 40[rsp], r9d
	mov	QWORD PTR 32[rsp], r10
	call	iov_iter_kvec@PLT
	mov	r9d, DWORD PTR 40[rsp]
	mov	r10, QWORD PTR 32[rsp]
	lea	rdx, 52[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	ecx, r9d
	mov	rsi, r10
	call	vfs_iter_write@PLT
	mov	r14d, eax
	test	eax, eax
	js	.L9
	mov	r14, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR [rbx]
	add	QWORD PTR nfsdstats[rip], rax
	mov	rdi, r14
	call	fsnotify_modify@PLT
	test	BYTE PTR 28[rsp], 1
	je	.L10
	cmp	BYTE PTR 8[rsp], 0
	jne	.L35
.L10:
	mov	rcx, QWORD PTR [rbx]
	mov	rsi, r12
	mov	edx, r13d
	mov	rdi, rbp
	call	trace_nfsd_write_io_done@PLT
	mov	r12d, DWORD PTR nfs_ok[rip]
.L12:
	mov	edi, DWORD PTR RQ_LOCAL[rip]
	mov	rsi, r15
	call	test_bit@PLT
	test	rax, rax
	jne	.L36
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L37
	add	rsp, 72
	.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
.L34:
	.cfi_restore_state
	mov	DWORD PTR 28[rsp], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, r14
	call	wait_for_concurrent_writes@PLT
	mov	r14d, eax
	test	eax, eax
	jns	.L10
	mov	ebx, DWORD PTR nfsd_net_id[rip]
	mov	rdi, rbp
	call	SVC_NET@PLT
	mov	edi, eax
	mov	esi, ebx
	call	net_generic@PLT
	mov	edi, eax
	call	nfsd_reset_boot_verifier@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, r12
	mov	ecx, r14d
	mov	edx, r13d
	mov	rdi, rbp
	call	trace_nfsd_write_err@PLT
	mov	edi, r14d
	call	nfserrno@PLT
	mov	r12d, eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L36:
	mov	esi, DWORD PTR PF_LESS_THROTTLE[rip]
	mov	edi, DWORD PTR 44[rsp]
	call	current_restore_flags@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	QWORD PTR 8[rsp], rdi
	call	EX_WGATHER@PLT
	mov	rdi, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L7
	call	EX_ISSYNC@PLT
	test	eax, eax
	jne	.L38
	mov	DWORD PTR 28[rsp], 1
	xor	eax, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L38:
	mov	eax, DWORD PTR 136[rsp]
	mov	DWORD PTR 28[rsp], 1
	test	eax, eax
	setne	BYTE PTR 8[rsp]
	xor	r9d, r9d
	jmp	.L8
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nfsd_vfs_write, .-nfsd_vfs_write
	.comm	nfsdstats,8,8
	.comm	nfsd_net_id,4,4
	.comm	nfs_ok,4,4
	.comm	current,8,8
	.comm	WRITE,4,4
	.comm	RWF_SYNC,4,4
	.comm	RQ_LOCAL,4,4
	.comm	PF_LESS_THROTTLE,4,4
	.comm	NFS_UNSTABLE,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.c_nfsd_vfs_write.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	nfsd_vfs_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	nfsd_vfs_write, %function
nfsd_vfs_write:
	@ args = 16, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	ldr	r4, .L33
	sub	sp, sp, #44
	ldr	ip, [r4]
	str	r3, [sp, #32]
	ldr	lr, .L33+4
	ldr	ip, [ip]
	ldr	r8, [sp, #88]
	ldr	lr, [lr]
	str	lr, [sp, #36]
	mov	lr,#0
	str	ip, [sp, #20]
	ldr	ip, [sp, #80]
	mov	r6, r3
	mov	r7, r2
	mov	r2, r3
	ldr	r3, [r8]
	mov	fp, r1
	str	ip, [sp, #16]
	ldr	r9, [sp, #92]
	bl	trace_nfsd_write_opened
	ldr	r3, .L33+8
	add	r10, r5, #4
	mov	r1, r10
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L2
	ldr	r2, [r4]
	ldr	r1, .L33+12
	ldr	r3, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r2]
.L2:
	ldr	r3, [r5]
	ldr	r4, [fp]
	cmp	r3, #2
	beq	.L3
.L7:
	mov	r0, r4
	bl	EX_ISSYNC
	subs	r3, r0, #0
	str	r3, [sp, #12]
	movne	r3, #0
	mov	r4, #1
	strne	r3, [sp, #12]
	beq	.L4
.L5:
	subs	r9, r9, #0
	movne	r9, #1
	ands	r4, r9, r4
	ldrne	r3, .L33+16
	movne	r9, r4
	ldrne	r4, [r3]
.L8:
	ldr	r3, [r8]
	ldr	r1, .L33+20
	ldr	r2, [sp, #16]
	ldr	r1, [r1]
	add	r0, sp, #28
	str	r3, [sp]
	ldr	r3, [sp, #84]
	bl	iov_iter_kvec
	mov	r3, r4
	mov	r0, r7
	add	r1, sp, #28
	add	r2, sp, #32
	bl	vfs_iter_write
	subs	r4, r0, #0
	blt	.L9
	ldr	r2, .L33+24
	ldr	r1, [r8]
	ldr	r3, [r2]
	mov	r0, r7
	add	r3, r3, r1
	str	r3, [r2]
	bl	fsnotify_modify
	ldr	r3, [sp, #12]
	tst	r3, r9
	bne	.L30
.L10:
	ldr	r3, [r8]
	mov	r2, r6
	mov	r1, fp
	mov	r0, r5
	bl	trace_nfsd_write_io_done
	ldr	r3, .L33+28
	ldr	r4, [r3]
.L12:
	ldr	r3, .L33+8
	mov	r1, r10
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L31
.L1:
	ldr	r3, .L33+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	mov	r0, r4
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r3, .L33+32
	ldr	r9, [r3]
	b	.L5
.L30:
	mov	r0, r7
	bl	wait_for_concurrent_writes
	subs	r4, r0, #0
	bge	.L10
	mov	r0, r5
	bl	SVC_NET
	ldr	r3, .L33+36
	ldr	r1, [r3]
	bl	net_generic
	bl	nfsd_reset_boot_verifier
.L9:
	mov	r3, r4
	mov	r2, r6
	mov	r1, fp
	mov	r0, r5
	bl	trace_nfsd_write_err
	mov	r0, r4
	bl	nfserrno
	mov	r4, r0
	b	.L12
.L31:
	ldr	r3, .L33+12
	ldr	r0, [sp, #20]
	ldr	r1, [r3]
	bl	current_restore_flags
	b	.L1
.L3:
	mov	r0, r4
	bl	EX_WGATHER
	cmp	r0, #0
	beq	.L7
	mov	r0, r4
	bl	EX_ISSYNC
	subs	r4, r0, #0
	moveq	r3, #1
	streq	r3, [sp, #12]
	beq	.L4
	mov	r3, #1
	subs	r9, r9, #0
	movne	r9, #1
	mov	r4, #0
	str	r3, [sp, #12]
	b	.L8
.L32:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	current
	.word	.LC0
	.word	RQ_LOCAL
	.word	PF_LESS_THROTTLE
	.word	RWF_SYNC
	.word	WRITE
	.word	nfsdstats
	.word	nfs_ok
	.word	NFS_UNSTABLE
	.word	nfsd_net_id
	.size	nfsd_vfs_write, .-nfsd_vfs_write
	.comm	nfsdstats,4,4
	.comm	nfsd_net_id,4,4
	.comm	nfs_ok,4,4
	.comm	current,4,4
	.comm	WRITE,4,4
	.comm	RWF_SYNC,4,4
	.comm	RQ_LOCAL,4,4
	.comm	PF_LESS_THROTTLE,4,4
	.comm	NFS_UNSTABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
