	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __md_stop_writes
___md_stop_writes:                      ## @__md_stop_writes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MD_RECOVERY_FROZEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	44(%rbx), %r14
	movq	%r14, %rsi
	callq	_set_bit
	movq	_md_misc_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_flush_workqueue
	cmpq	$0, 48(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_MD_RECOVERY_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	callq	_md_reap_sync_thread
LBB0_2:
	leaq	40(%rbx), %rdi
	callq	_del_timer_sync
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*%rax
	movq	32(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
LBB0_5:
	movq	%rbx, %rdi
	callq	_md_bitmap_flush
	cmpq	$0, (%rbx)
	jne	LBB0_12
## %bb.6:
	cmpl	$0, 8(%rbx)
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_mddev_is_clustered
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	cmpq	$0, 24(%rbx)
	je	LBB0_12
LBB0_9:
	movq	%rbx, %rdi
	callq	_mddev_is_clustered
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	$1, 8(%rbx)
LBB0_11:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_md_update_sb
LBB0_12:
	movq	16(%rbx), %rdi
	callq	_mempool_destroy
	movq	$0, 16(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MD_RECOVERY_FROZEN,4,2         ## @MD_RECOVERY_FROZEN
	.comm	_md_misc_wq,4,2                 ## @md_misc_wq
	.comm	_MD_RECOVERY_INTR,4,2           ## @MD_RECOVERY_INTR
	.no_dead_strip	___md_stop_writes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __md_stop_writes
___md_stop_writes:                      ; @__md_stop_writes
	.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
Lloh0:
	adrp	x8, _MD_RECOVERY_FROZEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MD_RECOVERY_FROZEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #44
	mov	x1, x20
	bl	_set_bit
Lloh3:
	adrp	x8, _md_misc_wq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _md_misc_wq@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_flush_workqueue
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MD_RECOVERY_INTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MD_RECOVERY_INTR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	mov	x0, x19
	bl	_md_reap_sync_thread
LBB0_2:
	add	x0, x19, #40
	bl	_del_timer_sync
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #1
	blr	x8
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
LBB0_5:
	mov	x0, x19
	bl	_md_bitmap_flush
	ldr	x8, [x19]
	cbnz	x8, LBB0_12
; %bb.6:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_mddev_is_clustered
	cbz	w0, LBB0_9
LBB0_8:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_mddev_is_clustered
	cbnz	w0, LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_11:
	mov	x0, x19
	mov	w1, #1
	bl	_md_update_sb
LBB0_12:
	ldr	x0, [x19, #16]
	bl	_mempool_destroy
	str	xzr, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MD_RECOVERY_FROZEN,4,2         ; @MD_RECOVERY_FROZEN
	.comm	_md_misc_wq,4,2                 ; @md_misc_wq
	.comm	_MD_RECOVERY_INTR,4,2           ; @MD_RECOVERY_INTR
	.no_dead_strip	___md_stop_writes
.subsections_via_symbols
