	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid_resume
_raid_resume:                           ## @raid_resume
	.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	_RT_FLAG_RS_RESUMED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_attempt_restore_of_faulty_devices
LBB0_2:
	movq	_RT_FLAG_RS_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	8(%rbx), %r14
	cmpq	$0, (%r14)
	jns	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_rs_set_capacity
LBB0_5:
	movq	%r14, %rdi
	callq	_mddev_lock_nointr
	movq	_MD_RECOVERY_FROZEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%rbx), %rsi
	callq	_clear_bit
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	%r14, %rdi
	callq	_mddev_resume
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mddev_unlock                   ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RT_FLAG_RS_RESUMED,4,2         ## @RT_FLAG_RS_RESUMED
	.comm	_RT_FLAG_RS_SUSPENDED,4,2       ## @RT_FLAG_RS_SUSPENDED
	.comm	_MD_RECOVERY_FROZEN,4,2         ## @MD_RECOVERY_FROZEN
	.no_dead_strip	_raid_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid_resume
_raid_resume:                           ; @raid_resume
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _RT_FLAG_RS_RESUMED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RT_FLAG_RS_RESUMED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_attempt_restore_of_faulty_devices
LBB0_2:
Lloh3:
	adrp	x8, _RT_FLAG_RS_SUSPENDED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RT_FLAG_RS_SUSPENDED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_and_clear_bit
	cbz	x0, LBB0_6
; %bb.3:
	add	x20, x19, #8
	ldr	x8, [x20]
	tbz	x8, #63, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_rs_set_capacity
LBB0_5:
	mov	x0, x20
	bl	_mddev_lock_nointr
Lloh6:
	adrp	x8, _MD_RECOVERY_FROZEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MD_RECOVERY_FROZEN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x19, #32
	bl	_clear_bit
	stp	xzr, xzr, [x19, #16]
	mov	x0, x20
	bl	_mddev_resume
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mddev_unlock
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RT_FLAG_RS_RESUMED,4,2         ; @RT_FLAG_RS_RESUMED
	.comm	_RT_FLAG_RS_SUSPENDED,4,2       ; @RT_FLAG_RS_SUSPENDED
	.comm	_MD_RECOVERY_FROZEN,4,2         ; @MD_RECOVERY_FROZEN
	.no_dead_strip	_raid_resume
.subsections_via_symbols
