	.file	"extr_vfs_subr.c_brelvp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"brelvp(%p) vp %p flags %X"
.LC1:
	.string	"brelvp: NULL"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"brelvp: Buffer %p not on queue."
	.text
	.p2align 4
	.globl	brelvp
	.type	brelvp, @function
brelvp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rdx, rdi
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rcx, QWORD PTR 16[rdi]
	mov	r8d, DWORD PTR 24[rdi]
	mov	edi, DWORD PTR KTR_BUF[rip]
	call	CTR3@PLT
	xor	edi, edi
	cmp	QWORD PTR 16[rbx], 0
	lea	rsi, .LC1[rip]
	setne	dil
	call	KASSERT@PLT
	mov	rbp, QWORD PTR 8[rbx]
	mov	r12, QWORD PTR 16[rbx]
	mov	rdi, rbp
	call	BO_LOCK@PLT
	mov	eax, DWORD PTR BX_VNDIRTY[rip]
	or	eax, DWORD PTR BX_VNCLEAN[rip]
	test	DWORD PTR [rbx], eax
	je	.L2
	mov	rdi, rbx
	call	buf_vlist_remove@PLT
.L3:
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, DWORD PTR BO_ONWORKLST[rip]
	test	edx, eax
	je	.L4
	cmp	QWORD PTR 8[rbp], 0
	je	.L10
.L4:
	mov	QWORD PTR 16[rbx], 0
	mov	rdi, rbp
	mov	QWORD PTR 8[rbx], 0
	call	BO_UNLOCK@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	vdrop@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rsi, rbx
	lea	rdi, .LC2[rip]
	call	panic@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	not	eax
	lea	rdi, sync_mtx[rip]
	and	eax, edx
	mov	DWORD PTR 0[rbp], eax
	call	mtx_lock@PLT
	mov	esi, DWORD PTR bo_synclist[rip]
	mov	rdi, rbp
	call	LIST_REMOVE@PLT
	lea	rdi, sync_mtx[rip]
	sub	DWORD PTR syncer_worklist_len[rip], 1
	call	mtx_unlock@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	brelvp, .-brelvp
	.comm	syncer_worklist_len,4,4
	.comm	sync_mtx,4,4
	.comm	bo_synclist,4,4
	.comm	KTR_BUF,4,4
	.comm	BX_VNDIRTY,4,4
	.comm	BX_VNCLEAN,4,4
	.comm	BO_ONWORKLST,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_subr.c_brelvp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"brelvp(%p) vp %p flags %X\000"
	.align	2
.LC1:
	.ascii	"brelvp: NULL\000"
	.align	2
.LC2:
	.ascii	"brelvp: Buffer %p not on queue.\000"
	.text
	.align	2
	.global	brelvp
	.syntax unified
	.arm
	.fpu softvfp
	.type	brelvp, %function
brelvp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r2, [r0, #12]
	sub	sp, sp, #8
	ldr	r1, .L11
	ldr	r3, [r0, #8]
	str	r2, [sp]
	mov	r2, r0
	ldr	r0, [r1]
	ldr	r1, .L11+4
	bl	CTR3
	ldr	r0, [r4, #8]
	ldr	r1, .L11+8
	subs	r0, r0, #0
	movne	r0, #1
	bl	KASSERT
	ldmib	r4, {r5, r6}
	mov	r0, r5
	bl	BO_LOCK
	ldr	r2, .L11+12
	ldr	r3, .L11+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4]
	orr	r3, r3, r1
	tst	r3, r2
	beq	.L2
	mov	r0, r4
	bl	buf_vlist_remove
.L3:
	ldr	r2, .L11+20
	ldr	r3, [r5]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L4
	ldr	r1, [r5, #4]
	cmp	r1, #0
	beq	.L10
.L4:
	mov	r3, #0
	mov	r0, r5
	str	r3, [r4, #8]
	str	r3, [r4, #4]
	bl	BO_UNLOCK
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	vdrop
.L2:
	mov	r1, r4
	ldr	r0, .L11+24
	bl	panic
	b	.L3
.L10:
	bic	r3, r3, r2
	str	r3, [r5]
	ldr	r0, .L11+28
	bl	mtx_lock
	ldr	r3, .L11+32
	mov	r0, r5
	ldr	r1, [r3]
	bl	LIST_REMOVE
	ldr	r2, .L11+36
	ldr	r0, .L11+28
	ldr	r3, [r2]
	sub	r3, r3, #1
	str	r3, [r2]
	bl	mtx_unlock
	b	.L4
.L12:
	.align	2
.L11:
	.word	KTR_BUF
	.word	.LC0
	.word	.LC1
	.word	BX_VNCLEAN
	.word	BX_VNDIRTY
	.word	BO_ONWORKLST
	.word	.LC2
	.word	sync_mtx
	.word	bo_synclist
	.word	syncer_worklist_len
	.size	brelvp, .-brelvp
	.comm	syncer_worklist_len,4,4
	.comm	sync_mtx,4,4
	.comm	bo_synclist,4,4
	.comm	KTR_BUF,4,4
	.comm	BX_VNDIRTY,4,4
	.comm	BX_VNCLEAN,4,4
	.comm	BO_ONWORKLST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
