	.file	"extr_write.c_nfs_flush_multi.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nfs_flush_multi, @function
nfs_flush_multi:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	edi, DWORD PTR 36[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rsi]
	lea	r14, 52[rsp]
	mov	QWORD PTR 40[rsp], rax
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 24[rsp], rax
	call	NFS_SERVER@PLT
	mov	edx, DWORD PTR 32[r12]
	mov	esi, DWORD PTR 36[r12]
	mov	rdi, r14
	mov	rax, QWORD PTR [rax]
	mov	r15, rax
	call	nfs_init_cinfo@PLT
	mov	edx, DWORD PTR [r12]
	mov	eax, DWORD PTR FLUSH_COND_STABLE[rip]
	test	edx, eax
	jne	.L2
	mov	rbx, QWORD PTR 8[r12]
.L3:
	lea	rax, 4[r13]
	mov	QWORD PTR 16[rsp], r12
	xor	ebp, ebp
	mov	QWORD PTR 32[rsp], rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR 24[rsp]
	mov	edx, ebp
	mov	r8, r14
	mov	rsi, r12
	mov	QWORD PTR 8[rsp], rdi
	add	ebp, r12d
	mov	QWORD PTR [rax], rcx
	mov	rax, QWORD PTR 16[rsp]
	mov	ecx, DWORD PTR [rax]
	call	nfs_write_rpcsetup@PLT
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	call	list_add@PLT
	sub	rbx, r12
	je	.L15
.L9:
	mov	rsi, r15
	mov	rdi, rbx
	call	min@PLT
	mov	rdi, r13
	mov	esi, 1
	mov	r12, rax
	call	nfs_writedata_alloc@PLT
	mov	rdi, rax
	test	rax, rax
	jne	.L7
	mov	r12, QWORD PTR 16[rsp]
	mov	rsi, r13
	mov	rdi, r12
	call	nfs_flush_error@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
.L1:
	mov	rdx, QWORD PTR 56[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 72
	.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
.L2:
	.cfi_restore_state
	cmp	QWORD PTR 24[r12], 0
	je	.L4
.L13:
	mov	rbx, QWORD PTR 8[r12]
.L5:
	not	eax
	and	eax, edx
	mov	DWORD PTR [r12], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rbx, QWORD PTR 40[rsp]
	mov	r12, QWORD PTR 16[rsp]
	mov	rdi, rbx
	call	nfs_list_remove_request@PLT
	mov	rsi, r13
	mov	rdi, rbx
	call	nfs_list_add_request@PLT
	lea	rax, nfs_write_common_ops[rip]
	mov	QWORD PTR 16[r12], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r14
	call	nfs_reqs_to_commit@PLT
	test	rax, rax
	je	.L6
	mov	edx, DWORD PTR [r12]
	mov	eax, DWORD PTR FLUSH_COND_STABLE[rip]
	jmp	.L13
.L6:
	mov	rbx, QWORD PTR 8[r12]
	cmp	rbx, r15
	jbe	.L3
	mov	edx, DWORD PTR [r12]
	mov	eax, DWORD PTR FLUSH_COND_STABLE[rip]
	jmp	.L5
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nfs_flush_multi, .-nfs_flush_multi
	.comm	nfs_write_common_ops,4,4
	.comm	FLUSH_COND_STABLE,4,4
	.comm	ENOMEM,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_write.c_nfs_flush_multi.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nfs_flush_multi, %function
nfs_flush_multi:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r1, #8]
	sub	sp, sp, #28
	ldr	r2, .L17
	str	r3, [sp, #12]
	ldr	r3, [r3]
	mov	r8, r0
	ldr	r0, [r0, #20]
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	mov	r9, r1
	str	r3, [sp, #8]
	bl	NFS_SERVER
	mov	r3, r0
	ldr	r4, .L17+4
	ldr	r2, [r8, #16]
	ldr	r1, [r8, #20]
	add	r0, sp, #16
	ldr	r10, [r3]
	bl	nfs_init_cinfo
	ldr	r3, [r8]
	ldr	r2, [r4]
	tst	r3, r2
	bne	.L2
	ldr	r6, [r8, #4]
.L3:
	mov	r7, #0
	add	fp, r9, #4
	b	.L9
.L7:
	ldr	r2, [r5, #4]
	ldr	r1, [sp, #8]
	ldr	r3, [r8]
	str	r1, [r2]
	add	r1, sp, #16
	mov	r2, r7
	str	r1, [sp]
	mov	r1, r4
	bl	nfs_write_rpcsetup
	mov	r1, fp
	mov	r0, r5
	bl	list_add
	subs	r6, r6, r4
	add	r7, r7, r4
	beq	.L15
.L9:
	mov	r1, r10
	mov	r0, r6
	bl	min
	mov	r1, #1
	mov	r4, r0
	mov	r0, r9
	bl	nfs_writedata_alloc
	subs	r5, r0, #0
	bne	.L7
	mov	r1, r9
	mov	r0, r8
	bl	nfs_flush_error
	ldr	r3, .L17+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r1, [r8, #12]
	cmp	r1, #0
	beq	.L4
.L13:
	ldr	r6, [r8, #4]
.L5:
	bic	r3, r3, r2
	str	r3, [r8]
	b	.L3
.L15:
	ldr	r4, [sp, #12]
	mov	r0, r4
	bl	nfs_list_remove_request
	mov	r1, r9
	mov	r0, r4
	bl	nfs_list_add_request
	ldr	r3, .L17+12
	mov	r0, r6
	str	r3, [r8, #8]
	b	.L1
.L4:
	add	r0, sp, #16
	bl	nfs_reqs_to_commit
	cmp	r0, #0
	ldrne	r2, [r4]
	ldrne	r3, [r8]
	bne	.L13
.L6:
	ldr	r6, [r8, #4]
	cmp	r6, r10
	bls	.L3
	ldr	r2, [r4]
	ldr	r3, [r8]
	b	.L5
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	FLUSH_COND_STABLE
	.word	ENOMEM
	.word	nfs_write_common_ops
	.size	nfs_flush_multi, .-nfs_flush_multi
	.comm	nfs_write_common_ops,4,4
	.comm	FLUSH_COND_STABLE,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
