	.file	"extr_arc.c_l2arc_dev_get_next.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	l2arc_dev_get_next, @function
l2arc_dev_get_next:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rdi, spa_namespace_lock[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	mutex_enter@PLT
	lea	rdi, l2arc_dev_mtx[rip]
	call	mutex_enter@PLT
	cmp	QWORD PTR l2arc_ndev[rip], 0
	mov	rbp, QWORD PTR l2arc_dev_last[rip]
	jne	.L8
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, rbp
	call	list_next@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L21
	test	rbx, rbx
	je	.L11
.L22:
	cmp	rbx, rbp
	je	.L7
	mov	edi, DWORD PTR 4[rbp]
	call	vdev_is_dead@PLT
	test	rax, rax
	je	.L7
.L8:
	mov	edi, DWORD PTR l2arc_dev_list[rip]
	test	rbp, rbp
	jne	.L4
	call	list_head@PLT
	mov	rbp, rax
.L24:
	test	rbx, rbx
	jne	.L22
.L11:
	mov	edi, DWORD PTR 4[rbp]
	mov	rbx, rbp
	call	vdev_is_dead@PLT
	test	rax, rax
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR 4[rbp]
	call	vdev_is_dead@PLT
	test	rax, rax
	je	.L23
	mov	QWORD PTR l2arc_dev_last[rip], 0
.L19:
	lea	rdi, l2arc_dev_mtx[rip]
	xor	ebp, ebp
	call	mutex_exit@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, DWORD PTR l2arc_dev_list[rip]
	call	list_head@PLT
	mov	rbp, rax
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rdi, l2arc_dev_mtx[rip]
	mov	QWORD PTR l2arc_dev_last[rip], rbp
	call	mutex_exit@PLT
	mov	ecx, DWORD PTR RW_READER[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	rdx, rbp
	mov	esi, DWORD PTR SCL_L2ARC[rip]
	call	spa_config_enter@PLT
.L3:
	lea	rdi, spa_namespace_lock[rip]
	call	mutex_exit@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rax, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	l2arc_dev_get_next, .-l2arc_dev_get_next
	.comm	spa_namespace_lock,4,4
	.comm	l2arc_ndev,8,8
	.comm	l2arc_dev_mtx,4,4
	.comm	l2arc_dev_list,4,4
	.comm	l2arc_dev_last,8,8
	.comm	SCL_L2ARC,4,4
	.comm	RW_READER,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_arc.c_l2arc_dev_get_next.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	l2arc_dev_get_next, %function
l2arc_dev_get_next:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r0, .L23
	bl	mutex_enter
	ldr	r0, .L23+4
	bl	mutex_enter
	ldr	r3, .L23+8
	ldr	r4, [r3]
	cmp	r4, #0
	beq	.L18
	ldr	r6, .L23+12
	mov	r5, #0
	ldr	r7, .L23+16
	ldr	r4, [r6]
	b	.L8
.L4:
	mov	r1, r4
	bl	list_next
	subs	r4, r0, #0
	beq	.L19
	cmp	r5, #0
	beq	.L11
.L20:
	cmp	r5, r4
	beq	.L7
	ldr	r0, [r4, #4]
	bl	vdev_is_dead
	cmp	r0, #0
	beq	.L7
.L8:
	cmp	r4, #0
	ldr	r0, [r7]
	bne	.L4
	bl	list_head
	mov	r4, r0
.L22:
	cmp	r5, #0
	bne	.L20
.L11:
	ldr	r0, [r4, #4]
	bl	vdev_is_dead
	cmp	r0, #0
	mov	r5, r4
	bne	.L8
.L7:
	ldr	r0, [r4, #4]
	bl	vdev_is_dead
	cmp	r0, #0
	beq	.L21
	mov	r4, #0
	ldr	r0, .L23+4
	str	r4, [r6]
	bl	mutex_exit
	b	.L3
.L19:
	ldr	r0, [r7]
	bl	list_head
	mov	r4, r0
	b	.L22
.L21:
	ldr	r0, .L23+4
	str	r4, [r6]
	bl	mutex_exit
	ldr	r2, .L23+20
	ldr	r3, .L23+24
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r2, r4
	ldr	r0, [r4]
	bl	spa_config_enter
.L3:
	ldr	r0, .L23
	bl	mutex_exit
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	ldr	r0, .L23+4
	bl	mutex_exit
	b	.L3
.L24:
	.align	2
.L23:
	.word	spa_namespace_lock
	.word	l2arc_dev_mtx
	.word	l2arc_ndev
	.word	l2arc_dev_last
	.word	l2arc_dev_list
	.word	SCL_L2ARC
	.word	RW_READER
	.size	l2arc_dev_get_next, .-l2arc_dev_get_next
	.comm	spa_namespace_lock,4,4
	.comm	l2arc_ndev,4,4
	.comm	l2arc_dev_mtx,4,4
	.comm	l2arc_dev_list,4,4
	.comm	l2arc_dev_last,4,4
	.comm	SCL_L2ARC,4,4
	.comm	RW_READER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
