	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recovery_complete
_recovery_complete:                     ## @recovery_complete
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movl	%edi, %r15d
	movq	%rsi, -56(%rbp)
	movq	%rdx, %rdi
	callq	_dm_rh_region_context
	movq	%rax, %rbx
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DMERR_LIMIT
	movq	%rbx, %rdi
	callq	_get_default_mirror
	movq	_DM_RAID1_SYNC_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_fail_mirror
LBB0_2:
	testq	%r13, %r13
	je	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r12d, %r12d
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_DMERR_LIMIT
	cmpl	$0, (%rbx)
	jle	LBB0_12
## %bb.5:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%r12d
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	movslq	(%rbx), %rax
	addq	$4, %r15
	cmpq	%rax, %r14
	jge	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r13
	addq	%r15, %r13
	movq	%rbx, %rdi
	callq	_get_default_mirror
	cmpq	%rax, %r13
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, %edi
	leaq	-56(%rbp), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rdi
	addq	%r15, %rdi
	movq	_DM_RAID1_SYNC_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fail_mirror
	jmp	LBB0_9
LBB0_3:
	movb	$1, %r12b
	jmp	LBB0_12
LBB0_11:
	cmpq	$0, -56(%rbp)
	sete	%r12b
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_12:
	testl	%r15d, %r15d
	sete	%al
	andb	%r12b, %al
	movzbl	%al, %esi
	movq	%r14, %rdi
	callq	_dm_rh_recovery_end
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to read primary mirror during recovery"

	.comm	_DM_RAID1_SYNC_ERROR,4,2        ## @DM_RAID1_SYNC_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Write error during recovery (error = 0x%lx)"

	.no_dead_strip	_recovery_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recovery_complete
_recovery_complete:                     ; @recovery_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	str	x1, [sp, #8]
	mov	x0, x2
	bl	_dm_rh_region_context
	mov	x21, x0
Lloh0:
	adrp	x23, _DM_RAID1_SYNC_ERROR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DM_RAID1_SYNC_ERROR@GOTPAGEOFF]
	cbz	w20, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR_LIMIT
	mov	x0, x21
	bl	_get_default_mirror
	ldr	w1, [x23]
	bl	_fail_mirror
LBB0_2:
	cbz	x22, LBB0_11
; %bb.3:
	str	x22, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DMERR_LIMIT
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x24, #0
	mov	x25, #0
	mov	w22, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w22, w22, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x21]
	add	x24, x24, #4
	cmp	x25, x8
	b.ge	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x26, x8, x24
	mov	x0, x21
	bl	_get_default_mirror
	cmp	x26, x0
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #8
	mov	x0, x22
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #8]
	add	x0, x8, x24
	ldr	w1, [x23]
	bl	_fail_mirror
	b	LBB0_5
LBB0_10:
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w8, eq
	b	LBB0_13
LBB0_11:
	mov	w8, #1
	b	LBB0_13
LBB0_12:
	mov	w8, #0
LBB0_13:
	cmp	w20, #0
	cset	w9, eq
	and	w1, w9, w8
	mov	x0, x19
	bl	_dm_rh_recovery_end
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to read primary mirror during recovery"

	.comm	_DM_RAID1_SYNC_ERROR,4,2        ; @DM_RAID1_SYNC_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Write error during recovery (error = 0x%lx)"

	.no_dead_strip	_recovery_complete
.subsections_via_symbols
