	.file	"extr_spa_misc.c_spa_config_exit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	spa_config_exit
	.type	spa_config_exit, @function
spa_config_exit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	ebx, DWORD PTR SCL_LOCKS[rip]
	mov	QWORD PTR 8[rsp], rdi
	mov	DWORD PTR 4[rsp], esi
	sub	ebx, 1
	js	.L1
	movsx	rax, ebx
	mov	r14, rdx
	lea	rbp, [rax+rax*2]
	sal	rbp, 3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR 4[rsp]
	mov	ecx, ebx
	sar	eax, cl
	and	eax, 1
	mov	r15d, eax
	je	.L3
	mov	rax, QWORD PTR 8[rsp]
	mov	r13, QWORD PTR [rax]
	add	r13, rbp
	mov	rdi, r13
	lea	r12, 16[r13]
	call	mutex_enter@PLT
	mov	rdi, r12
	call	zfs_refcount_is_zero@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	ASSERT@PLT
	mov	rsi, r14
	mov	rdi, r12
	call	zfs_refcount_remove@PLT
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR 8[r13]
	test	rax, rax
	je	.L5
	xor	r15d, r15d
	cmp	QWORD PTR curthread[rip], rax
	sete	r15b
.L5:
	mov	edi, r15d
	call	ASSERT@PLT
	mov	QWORD PTR 8[r13], 0
	lea	rdi, 4[r13]
	call	cv_broadcast@PLT
.L4:
	mov	rdi, r13
	call	mutex_exit@PLT
.L3:
	sub	ebx, 1
	sub	rbp, 24
	cmp	ebx, -1
	jne	.L6
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	spa_config_exit, .-spa_config_exit
	.comm	curthread,8,8
	.comm	SCL_LOCKS,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_spa_misc.c_spa_config_exit.c"
	.text
	.align	2
	.global	spa_config_exit
	.syntax unified
	.arm
	.fpu softvfp
	.type	spa_config_exit, %function
spa_config_exit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L16
	ldr	r4, [r3]
	subs	r4, r4, #1
	popmi	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r7, r0
	mov	r6, r1
	mov	r8, r2
	ldr	r10, .L16+4
.L6:
	asr	r3, r6, r4
	ands	r5, r3, #1
	beq	.L3
	ldr	fp, [r7]
	add	fp, fp, r4, lsl #4
	add	r9, fp, #12
	mov	r0, fp
	bl	mutex_enter
	mov	r0, r9
	bl	zfs_refcount_is_zero
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	mov	r1, r8
	mov	r0, r9
	bl	zfs_refcount_remove
	cmp	r0, #0
	bne	.L4
	ldr	r2, [fp, #8]
	cmp	r2, #0
	ldrne	r3, [r10]
	subne	r5, r3, r2
	clzne	r5, r5
	lsrne	r5, r5, #5
	mov	r0, r5
	bl	ASSERT
	mov	r3, #0
	add	r0, fp, #4
	str	r3, [fp, #8]
	bl	cv_broadcast
.L4:
	mov	r0, fp
	bl	mutex_exit
.L3:
	subs	r4, r4, #1
	popcc	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	b	.L6
.L17:
	.align	2
.L16:
	.word	SCL_LOCKS
	.word	curthread
	.size	spa_config_exit, .-spa_config_exit
	.comm	curthread,4,4
	.comm	SCL_LOCKS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
