	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_md_run
_do_md_run:                             ## @do_md_run
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_MD_NOT_READY@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	4(%r15), %r14
	movq	%r14, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_md_run
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	%r15, %rdi
	callq	_md_bitmap_load
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_md_bitmap_destroy
	jmp	LBB0_6
LBB0_3:
	movq	%r15, %rdi
	callq	_mddev_is_clustered
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_md_allow_write
LBB0_5:
	movq	%r15, %rdi
	callq	_md_start
	movl	32(%r15), %edi
	callq	_md_wakeup_thread
	movl	28(%r15), %edi
	callq	_md_wakeup_thread
	movl	20(%r15), %edi
	movl	24(%r15), %esi
	callq	_set_capacity
	movl	20(%r15), %edi
	callq	_revalidate_disk
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movl	$1, (%r15)
	movl	20(%r15), %edi
	callq	_disk_to_dev
	movq	_KOBJ_CHANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_kobject_uevent
	movl	16(%r15), %edi
	callq	_sysfs_notify_dirent_safe
	movl	12(%r15), %edi
	callq	_sysfs_notify_dirent_safe
	addq	$8, %r15
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_sysfs_notify
LBB0_6:
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MD_NOT_READY,4,2               ## @MD_NOT_READY
	.comm	_KOBJ_CHANGE,4,2                ## @KOBJ_CHANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"degraded"

	.no_dead_strip	_do_md_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_md_run
_do_md_run:                             ; @do_md_run
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x22, _MD_NOT_READY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MD_NOT_READY@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x19, x20, #4
	mov	x1, x19
	bl	_set_bit
	mov	x0, x20
	bl	_md_run
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.1:
	mov	x0, x20
	bl	_md_bitmap_load
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
	mov	x0, x20
	bl	_md_bitmap_destroy
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_mddev_is_clustered
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_md_allow_write
LBB0_5:
	mov	x0, x20
	bl	_md_start
	ldr	w0, [x20, #32]
	bl	_md_wakeup_thread
	ldr	w0, [x20, #28]
	bl	_md_wakeup_thread
	ldp	w0, w1, [x20, #20]
	bl	_set_capacity
	ldr	w0, [x20, #20]
	bl	_revalidate_disk
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x20, #20]
	bl	_disk_to_dev
Lloh2:
	adrp	x8, _KOBJ_CHANGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KOBJ_CHANGE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kobject_uevent
	ldr	w0, [x20, #16]
	bl	_sysfs_notify_dirent_safe
	ldr	w0, [x20, #12]
	bl	_sysfs_notify_dirent_safe
	add	x0, x20, #8
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, #0
	bl	_sysfs_notify
	mov	w21, #0
LBB0_6:
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MD_NOT_READY,4,2               ; @MD_NOT_READY
	.comm	_KOBJ_CHANGE,4,2                ; @KOBJ_CHANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"degraded"

	.no_dead_strip	_do_md_run
.subsections_via_symbols
