	.file	"extr_md.c_mddev_put.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mddev_put, @function
mddev_put:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rsi, all_mddevs_lock[rip]
	mov	rbp, rdi
	add	rdi, 28
	call	atomic_dec_and_lock@PLT
	test	eax, eax
	je	.L1
	mov	edx, DWORD PTR 24[rbp]
	test	edx, edx
	je	.L11
.L4:
	lea	rdi, all_mddevs_lock[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	spin_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rdi, 20[rbp]
	call	list_empty@PLT
	test	rax, rax
	je	.L4
	cmp	QWORD PTR 0[rbp], 0
	jne	.L4
	mov	eax, DWORD PTR 16[rbp]
	test	eax, eax
	jne	.L4
	lea	rdi, 12[rbp]
	add	rbp, 8
	call	list_del_init@PLT
	mov	esi, DWORD PTR mddev_delayed_delete[rip]
	mov	rdi, rbp
	call	INIT_WORK@PLT
	mov	edi, DWORD PTR md_misc_wq[rip]
	mov	rsi, rbp
	call	queue_work@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L1:
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mddev_put, .-mddev_put
	.comm	mddev_delayed_delete,4,4
	.comm	md_misc_wq,4,4
	.comm	all_mddevs_lock,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_md.c_mddev_put.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mddev_put, %function
mddev_put:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r1, .L12
	mov	r4, r0
	add	r0, r0, #24
	bl	atomic_dec_and_lock
	cmp	r0, #0
	popeq	{r4, pc}
	ldr	r3, [r4, #20]
	cmp	r3, #0
	beq	.L11
.L4:
	pop	{r4, lr}
	ldr	r0, .L12
	b	spin_unlock
.L11:
	add	r0, r4, #16
	bl	list_empty
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L4
	add	r0, r4, #8
	bl	list_del_init
	ldr	r3, .L12+4
	add	r4, r4, #4
	ldr	r1, [r3]
	mov	r0, r4
	bl	INIT_WORK
	ldr	r3, .L12+8
	mov	r1, r4
	ldr	r0, [r3]
	bl	queue_work
	b	.L4
.L13:
	.align	2
.L12:
	.word	all_mddevs_lock
	.word	mddev_delayed_delete
	.word	md_misc_wq
	.size	mddev_put, .-mddev_put
	.comm	mddev_delayed_delete,4,4
	.comm	md_misc_wq,4,4
	.comm	all_mddevs_lock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
