	.file	"extr_dbuf.c_dbuf_fini.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dbuf_fini
	.type	dbuf_fini, @function
dbuf_fini:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xor	eax, eax
	call	dbuf_stats_destroy@PLT
	mov	eax, DWORD PTR DBUF_MUTEXES[rip]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR dbuf_hash_table[rip+8]
	lea	rdi, [rax+rbx*4]
	add	rbx, 1
	call	mutex_destroy@PLT
	cmp	DWORD PTR DBUF_MUTEXES[rip], ebx
	jg	.L3
.L2:
	mov	eax, DWORD PTR dbuf_hash_table[rip]
	mov	edi, DWORD PTR dbuf_hash_table[rip+4]
	lea	esi, 8[0+rax*8]
	call	kmem_free@PLT
	mov	edi, DWORD PTR dbuf_kmem_cache[rip]
	call	kmem_cache_destroy@PLT
	mov	edi, DWORD PTR dbu_evict_taskq[rip]
	call	taskq_destroy@PLT
	lea	rdi, dbuf_evict_lock[rip]
	call	mutex_enter@PLT
	mov	rax, QWORD PTR B_TRUE[rip]
	mov	QWORD PTR dbuf_evict_thread_exit[rip], rax
	test	rax, rax
	je	.L4
	lea	rbx, dbuf_evict_cv[rip]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbx
	call	cv_signal@PLT
	lea	rsi, dbuf_evict_lock[rip]
	mov	rdi, rbx
	call	cv_wait@PLT
	cmp	QWORD PTR dbuf_evict_thread_exit[rip], 0
	jne	.L5
.L4:
	lea	rdi, dbuf_evict_lock[rip]
	call	mutex_exit@PLT
	lea	rdi, dbuf_evict_lock[rip]
	call	mutex_destroy@PLT
	lea	rdi, dbuf_evict_cv[rip]
	call	cv_destroy@PLT
	cmp	QWORD PTR DB_CACHE_MAX[rip], 0
	je	.L6
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR dbuf_caches[rip]
	lea	rdi, 4[rax+rbx*8]
	call	zfs_refcount_destroy@PLT
	mov	rax, QWORD PTR dbuf_caches[rip]
	mov	edi, DWORD PTR [rax+rbx*8]
	add	rbx, 1
	call	multilist_destroy@PLT
	cmp	QWORD PTR DB_CACHE_MAX[rip], rbx
	ja	.L7
.L6:
	mov	rdi, QWORD PTR dbuf_ksp[rip]
	test	rdi, rdi
	je	.L1
	call	kstat_delete@PLT
	mov	QWORD PTR dbuf_ksp[rip], 0
.L1:
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dbuf_fini, .-dbuf_fini
	.comm	dbuf_ksp,8,8
	.comm	dbuf_kmem_cache,4,4
	.comm	dbuf_hash_table,16,16
	.comm	dbuf_evict_thread_exit,8,8
	.comm	dbuf_evict_lock,4,4
	.comm	dbuf_evict_cv,4,4
	.comm	dbuf_caches,8,8
	.comm	dbu_evict_taskq,4,4
	.comm	DB_CACHE_MAX,8,8
	.comm	DBUF_MUTEXES,4,4
	.comm	B_TRUE,8,8
	.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_dbuf.c_dbuf_fini.c"
	.text
	.align	2
	.global	dbuf_fini
	.syntax unified
	.arm
	.fpu softvfp
	.type	dbuf_fini, %function
dbuf_fini:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L25
	bl	dbuf_stats_destroy
	ldr	r3, [r6]
	cmp	r3, #0
	ldrle	r5, .L25+4
	ble	.L2
	mov	r4, #0
	ldr	r5, .L25+4
.L3:
	ldr	r0, [r5, #8]
	add	r0, r0, r4, lsl #2
	bl	mutex_destroy
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
.L2:
	ldr	r1, [r5]
	ldr	r0, [r5, #4]
	add	r1, r1, #1
	lsl	r1, r1, #2
	bl	kmem_free
	ldr	r3, .L25+8
	ldr	r5, .L25+12
	ldr	r0, [r3]
	bl	kmem_cache_destroy
	ldr	r3, .L25+16
	ldr	r0, [r3]
	bl	taskq_destroy
	ldr	r0, .L25+20
	bl	mutex_enter
	ldr	r3, .L25+24
	ldr	r3, [r3]
	cmp	r3, #0
	str	r3, [r5]
	beq	.L4
	ldr	r4, .L25+28
	ldr	r6, .L25+20
.L5:
	mov	r0, r4
	bl	cv_signal
	mov	r1, r6
	mov	r0, r4
	bl	cv_wait
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L5
.L4:
	ldr	r0, .L25+20
	bl	mutex_exit
	ldr	r6, .L25+32
	ldr	r0, .L25+20
	bl	mutex_destroy
	ldr	r0, .L25+28
	bl	cv_destroy
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L6
	mov	r4, #0
	ldr	r5, .L25+36
.L7:
	ldr	r0, [r5]
	add	r0, r0, r4, lsl #3
	add	r0, r0, #4
	bl	zfs_refcount_destroy
	ldr	r3, [r5]
	ldr	r0, [r3, r4, lsl #3]
	bl	multilist_destroy
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L7
.L6:
	ldr	r4, .L25+40
	ldr	r0, [r4]
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	bl	kstat_delete
	mov	r3, #0
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L26:
	.align	2
.L25:
	.word	DBUF_MUTEXES
	.word	dbuf_hash_table
	.word	dbuf_kmem_cache
	.word	dbuf_evict_thread_exit
	.word	dbu_evict_taskq
	.word	dbuf_evict_lock
	.word	B_TRUE
	.word	dbuf_evict_cv
	.word	DB_CACHE_MAX
	.word	dbuf_caches
	.word	dbuf_ksp
	.size	dbuf_fini, .-dbuf_fini
	.comm	dbuf_ksp,4,4
	.comm	dbuf_kmem_cache,4,4
	.comm	dbuf_hash_table,12,4
	.comm	dbuf_evict_thread_exit,4,4
	.comm	dbuf_evict_lock,4,4
	.comm	dbuf_evict_cv,4,4
	.comm	dbuf_caches,4,4
	.comm	dbu_evict_taskq,4,4
	.comm	DB_CACHE_MAX,4,4
	.comm	DBUF_MUTEXES,4,4
	.comm	B_TRUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
