	.file	"extr_mmp.c_mmp_thread_stop.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"MMP thread stopped pool '%s' gethrtime %llu"
	.text
	.p2align 4
	.globl	mmp_thread_stop
	.type	mmp_thread_stop, @function
mmp_thread_stop:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	lea	rbp, 16[rdi]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rdi, rbp
	lea	r12, 20[rbx]
	call	mutex_enter@PLT
	mov	DWORD PTR [rbx], 1
	mov	rdi, r12
	call	cv_broadcast@PLT
	cmp	QWORD PTR 8[rbx], 0
	je	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, rbp
	mov	rdi, r12
	call	cv_wait@PLT
	cmp	QWORD PTR 8[rbx], 0
	jne	.L3
.L2:
	mov	rdi, rbp
	call	mutex_exit@PLT
	xor	eax, eax
	call	gethrtime@PLT
	mov	rdi, rbx
	mov	r12d, eax
	call	spa_name@PLT
	mov	edx, r12d
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	zfs_dbgmsg@PLT
	xor	edi, edi
	cmp	QWORD PTR 8[rbx], 0
	sete	dil
	call	ASSERT@PLT
	mov	DWORD PTR [rbx], 0
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mmp_thread_stop, .-mmp_thread_stop
	.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_mmp.c_mmp_thread_stop.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"MMP thread stopped pool '%s' gethrtime %llu\000"
	.text
	.align	2
	.global	mmp_thread_stop
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmp_thread_stop, %function
mmp_thread_stop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	add	r6, r0, #8
	mov	r0, r6
	bl	mutex_enter
	mov	r5, r4
	mov	r3, #1
	str	r3, [r5], #12
	mov	r0, r5
	bl	cv_broadcast
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L2
.L3:
	mov	r1, r6
	mov	r0, r5
	bl	cv_wait
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L3
.L2:
	mov	r0, r6
	bl	mutex_exit
	mov	r0, r4
	bl	spa_name
	mov	r5, r0
	bl	gethrtime
	mov	r1, r5
	mov	r2, r0
	ldr	r0, .L10
	bl	zfs_dbgmsg
	ldr	r0, [r4, #4]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	mov	r3, #0
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.size	mmp_thread_stop, .-mmp_thread_stop
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
