	.file	"extr_sunvdc.c_vdc_end_one.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vdc_end_one, @function
vdc_end_one:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	mov	esi, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	mov	rdi, r14
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	vio_dring_entry@PLT
	xor	edi, edi
	mov	rbx, QWORD PTR 8[r13]
	mov	rbp, rax
	mov	rax, QWORD PTR VIO_DESC_DONE[rip]
	cmp	QWORD PTR 8[rbp], rax
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L8
	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
.L8:
	.cfi_restore_state
	mov	edx, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR 20[rbp]
	mov	eax, r12d
	mov	edi, DWORD PTR 0[r13]
	lea	rbx, [rbx+rax*8]
	call	ldc_unmap@PLT
	mov	rax, QWORD PTR VIO_DESC_FREE[rip]
	mov	rdi, r14
	mov	esi, r12d
	mov	QWORD PTR 8[rbp], rax
	call	vio_dring_next@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	DWORD PTR [r14], eax
	test	rdi, rdi
	je	.L9
	xor	esi, esi
	cmp	QWORD PTR 0[rbp], 0
	mov	QWORD PTR [rbx], 0
	je	.L4
	mov	esi, DWORD PTR BLK_STS_IOERR[rip]
.L4:
	call	blk_mq_end_request@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	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
	jmp	vdc_blk_queue_start@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	mov	rdi, r13
	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
	jmp	vdc_end_special@PLT
	.cfi_endproc
.LFE0:
	.size	vdc_end_one, .-vdc_end_one
	.comm	VIO_DESC_FREE,8,8
	.comm	VIO_DESC_DONE,8,8
	.comm	BLK_STS_IOERR,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_sunvdc.c_vdc_end_one.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vdc_end_one, %function
vdc_end_one:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r1
	mov	r6, r0
	mov	r1, r2
	mov	r0, r7
	mov	r5, r2
	bl	vio_dring_entry
	ldr	r3, .L11
	mov	r4, r0
	ldr	r3, [r3]
	ldr	r0, [r0, #4]
	ldr	r9, [r6, #4]
	subs	r0, r0, r3
	movne	r0, #1
	bl	unlikely
	subs	r8, r0, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	ldr	r0, [r6]
	bl	ldc_unmap
	ldr	r3, .L11+4
	mov	r1, r5
	ldr	r3, [r3]
	mov	r0, r7
	str	r3, [r4, #4]
	bl	vio_dring_next
	ldr	r3, [r9, r5, lsl #2]
	str	r0, [r7]
	cmp	r3, #0
	beq	.L10
	ldr	r1, [r4]
	mov	r0, r3
	cmp	r1, #0
	ldrne	r2, .L11+8
	str	r8, [r9, r5, lsl #2]
	ldrne	r1, [r2]
	bl	blk_mq_end_request
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	vdc_blk_queue_start
.L10:
	mov	r1, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	vdc_end_special
.L12:
	.align	2
.L11:
	.word	VIO_DESC_DONE
	.word	VIO_DESC_FREE
	.word	BLK_STS_IOERR
	.size	vdc_end_one, .-vdc_end_one
	.comm	VIO_DESC_FREE,4,4
	.comm	VIO_DESC_DONE,4,4
	.comm	BLK_STS_IOERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
