	.file	"extr_metaslab.c_metaslab_evict.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	metaslab_evict, @function
metaslab_evict:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR 24[rdi]
	test	edx, edx
	je	.L10
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR [rdi], 0
	jne	.L1
	cmp	DWORD PTR TXG_CONCURRENT_STATES[rip], 1
	jle	.L5
	mov	ebp, esi
	mov	ebx, 1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR 16[r12]
	lea	eax, 0[rbp+rbx]
	and	eax, DWORD PTR TXG_MASK[rip]
	add	ebx, 1
	cdqe
	mov	edi, DWORD PTR [rdx+rax*4]
	call	range_tree_space@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	cmp	DWORD PTR TXG_CONCURRENT_STATES[rip], ebx
	jg	.L6
.L5:
	cmp	DWORD PTR 8[r12], -1
	je	.L7
	mov	esi, DWORD PTR METASLAB_ACTIVE_MASK[rip]
	mov	rdi, r12
	not	esi
	and	esi, DWORD PTR 12[r12]
	call	metaslab_passivate@PLT
.L7:
	mov	eax, DWORD PTR metaslab_debug_unload[rip]
	test	eax, eax
	je	.L14
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	metaslab_unload@PLT
	.cfi_endproc
.LFE0:
	.size	metaslab_evict, .-metaslab_evict
	.comm	metaslab_debug_unload,4,4
	.comm	TXG_MASK,4,4
	.comm	TXG_CONCURRENT_STATES,4,4
	.comm	METASLAB_ACTIVE_MASK,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_metaslab.c_metaslab_evict.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	metaslab_evict, %function
metaslab_evict:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #16]
	cmp	r3, #0
	bxeq	lr
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	mov	r5, r0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r7, .L17
	ldr	r3, [r7]
	cmp	r3, #1
	ble	.L5
	mov	r6, r1
	mov	r4, #1
	ldr	r8, .L17+4
.L6:
	ldr	r0, [r8]
	ldr	r2, [r5, #12]
	add	r3, r6, r4
	and	r3, r3, r0
	ldr	r0, [r2, r3, lsl #2]
	bl	range_tree_space
	bl	VERIFY0
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L6
.L5:
	ldr	r3, [r5, #4]
	cmn	r3, #1
	beq	.L7
	ldr	r2, .L17+8
	ldr	r3, [r5, #8]
	ldr	r1, [r2]
	mov	r0, r5
	bic	r1, r3, r1
	bl	metaslab_passivate
.L7:
	ldr	r3, .L17+12
	ldr	r3, [r3]
	cmp	r3, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	metaslab_unload
.L18:
	.align	2
.L17:
	.word	TXG_CONCURRENT_STATES
	.word	TXG_MASK
	.word	METASLAB_ACTIVE_MASK
	.word	metaslab_debug_unload
	.size	metaslab_evict, .-metaslab_evict
	.comm	metaslab_debug_unload,4,4
	.comm	TXG_MASK,4,4
	.comm	TXG_CONCURRENT_STATES,4,4
	.comm	METASLAB_ACTIVE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
