	.file	"extr_segbuf.c_nilfs_segbuf_submit_bio.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nilfs_segbuf_submit_bio, @function
nilfs_segbuf_submit_bio:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	QWORD PTR [rdi], 0
	mov	rbx, rsi
	mov	r12, QWORD PTR [rsi]
	jle	.L2
	mov	rax, QWORD PTR 16[rdi]
	mov	edi, DWORD PTR [rax]
	call	bdi_write_congested@PLT
	test	rax, rax
	jne	.L12
.L2:
	mov	eax, DWORD PTR nilfs_end_bio_write[rip]
	mov	QWORD PTR [r12], rbp
	mov	edx, r13d
	mov	esi, r14d
	mov	rdi, r12
	mov	DWORD PTR 8[r12], eax
	call	bio_set_op_attrs@PLT
	mov	rdi, r12
	call	submit_bio@PLT
	add	QWORD PTR 0[rbp], 1
	mov	esi, DWORD PTR 24[rbx]
	add	esi, DWORD PTR 16[rbx]
	sub	esi, DWORD PTR 8[rbx]
	mov	QWORD PTR [rbx], 0
	mov	DWORD PTR 24[rbx], esi
	mov	edi, DWORD PTR 28[rbx]
	call	min@PLT
	mov	DWORD PTR 32[rbx], eax
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 16[rbx], rax
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L12:
	.cfi_restore_state
	lea	rdi, 12[rbp]
	call	wait_for_completion@PLT
	sub	QWORD PTR 0[rbp], 1
	lea	rdi, 8[rbp]
	call	atomic_read@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	je	.L2
	mov	rdi, r12
	call	bio_put@PLT
	mov	eax, DWORD PTR EIO[rip]
	mov	QWORD PTR [rbx], 0
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nilfs_segbuf_submit_bio, .-nilfs_segbuf_submit_bio
	.comm	nilfs_end_bio_write,4,4
	.comm	EIO,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_segbuf.c_nilfs_segbuf_submit_bio.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nilfs_segbuf_submit_bio, %function
nilfs_segbuf_submit_bio:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r0, [r0]
	mov	r4, r1
	cmp	r0, #0
	mov	r9, r2
	mov	r8, r3
	ldr	r7, [r1]
	ble	.L2
	ldr	r3, [r5, #12]
	ldr	r0, [r3]
	bl	bdi_write_congested
	cmp	r0, #0
	bne	.L12
.L2:
	mov	r6, #0
	ldr	r3, .L13
	mov	r2, r8
	ldr	r3, [r3]
	mov	r1, r9
	str	r3, [r7, #4]
	mov	r0, r7
	str	r5, [r7]
	bl	bio_set_op_attrs
	mov	r0, r7
	bl	submit_bio
	ldr	r0, [r4, #8]
	ldr	r2, [r4, #4]
	ldr	r3, [r5]
	ldr	r1, [r4, #12]
	sub	r2, r2, r0
	add	r3, r3, #1
	sub	r1, r1, r2
	str	r3, [r5]
	ldr	r0, [r4, #16]
	str	r1, [r4, #12]
	str	r6, [r4]
	bl	min
	ldr	r3, [r4, #4]
	str	r0, [r4, #20]
	str	r3, [r4, #8]
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	add	r0, r5, #8
	bl	wait_for_completion
	mov	r0, r5
	ldr	r3, [r5]
	sub	r3, r3, #1
	str	r3, [r0], #4
	bl	atomic_read
	bl	unlikely
	cmp	r0, #0
	beq	.L2
	mov	r0, r7
	bl	bio_put
	mov	r3, #0
	ldr	r2, .L13+4
	ldr	r6, [r2]
	str	r3, [r4]
	rsb	r6, r6, #0
	b	.L1
.L14:
	.align	2
.L13:
	.word	nilfs_end_bio_write
	.word	EIO
	.size	nilfs_segbuf_submit_bio, .-nilfs_segbuf_submit_bio
	.comm	nilfs_end_bio_write,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
