	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mddev_put
_mddev_put:                             ## @mddev_put
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$28, %rdi
	movq	_all_mddevs_lock@GOTPCREL(%rip), %rsi
	callq	_atomic_dec_and_lock
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$0, 24(%rbx)
	je	LBB0_2
LBB0_6:
	movq	_all_mddevs_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	leaq	20(%rbx), %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	cmpq	$0, (%rbx)
	jne	LBB0_6
## %bb.4:
	cmpl	$0, 16(%rbx)
	jne	LBB0_6
## %bb.5:
	leaq	12(%rbx), %rdi
	callq	_list_del_init
	addq	$8, %rbx
	movq	_mddev_delayed_delete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movq	_md_misc_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_queue_work
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_all_mddevs_lock,4,2            ## @all_mddevs_lock
	.comm	_mddev_delayed_delete,4,2       ## @mddev_delayed_delete
	.comm	_md_misc_wq,4,2                 ## @md_misc_wq
	.no_dead_strip	_mddev_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mddev_put
_mddev_put:                             ; @mddev_put
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #28
Lloh0:
	adrp	x1, _all_mddevs_lock@GOTPAGE
Lloh1:
	ldr	x1, [x1, _all_mddevs_lock@GOTPAGEOFF]
	bl	_atomic_dec_and_lock
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_4
LBB0_2:
Lloh2:
	adrp	x0, _all_mddevs_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _all_mddevs_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	add	x0, x19, #20
	bl	_list_empty
	cbz	x0, LBB0_2
; %bb.5:
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.6:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_2
; %bb.7:
	add	x0, x19, #12
	bl	_list_del_init
	add	x19, x19, #8
Lloh4:
	adrp	x8, _mddev_delayed_delete@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mddev_delayed_delete@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_WORK
Lloh7:
	adrp	x8, _md_misc_wq@GOTPAGE
Lloh8:
	ldr	x8, [x8, _md_misc_wq@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_queue_work
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_all_mddevs_lock,4,2            ; @all_mddevs_lock
	.comm	_mddev_delayed_delete,4,2       ; @mddev_delayed_delete
	.comm	_md_misc_wq,4,2                 ; @md_misc_wq
	.no_dead_strip	_mddev_put
.subsections_via_symbols
