	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid10_finish_reshape
_raid10_finish_reshape:                 ## @raid10_finish_reshape
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	56(%rdi), %r12
	movq	_MD_RECOVERY_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	48(%r13), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	cmpq	$0, (%r13)
	jle	LBB0_5
## %bb.2:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_raid10_size
	movl	%eax, %r15d
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_md_set_array_sectors
	movl	44(%r13), %eax
	cmpl	%eax, 52(%r13)
	jle	LBB0_4
## %bb.3:
	movl	%eax, 52(%r13)
	movq	_MD_RECOVERY_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
LBB0_4:
	movl	%r15d, 44(%r13)
	movl	36(%r13), %edi
	movl	40(%r13), %esi
	callq	_set_capacity
	movl	36(%r13), %edi
	callq	_revalidate_disk
	jmp	LBB0_12
LBB0_5:
	js	LBB0_6
LBB0_12:
	movl	28(%r13), %eax
	movl	%eax, 32(%r13)
	movb	4(%r12), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, 8(%r13)
	movq	_MaxSector@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	$0, (%r13)
	movq	$0, 16(%r13)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movslq	(%r12), %r14
	movq	%r14, %rbx
	shlq	$4, %rbx
	movq	_In_sync@GOTPCREL(%rip), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movslq	(%r12), %rax
	subq	(%r13), %rax
	addq	$16, %rbx
	cmpq	%r14, %rax
	jle	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	8(%rax,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %edi
	callq	_clear_bit
	movq	8(%r12), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rax,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %edi
	callq	_clear_bit
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MD_RECOVERY_INTR,4,2           ## @MD_RECOVERY_INTR
	.comm	_MD_RECOVERY_NEEDED,4,2         ## @MD_RECOVERY_NEEDED
	.comm	_In_sync,4,2                    ## @In_sync
	.comm	_MaxSector,4,2                  ## @MaxSector
	.no_dead_strip	_raid10_finish_reshape
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid10_finish_reshape
_raid10_finish_reshape:                 ; @raid10_finish_reshape
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x22, [x0, #56]
Lloh0:
	adrp	x8, _MD_RECOVERY_INTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MD_RECOVERY_INTR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #48
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_raid10_size
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_md_set_array_sectors
	ldr	w9, [x19, #52]
	ldr	w8, [x19, #44]
	cmp	w9, w8
	b.le	LBB0_4
; %bb.3:
	str	w8, [x19, #52]
Lloh3:
	adrp	x8, _MD_RECOVERY_NEEDED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MD_RECOVERY_NEEDED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
LBB0_4:
	str	w21, [x19, #44]
	ldp	w0, w1, [x19, #36]
	bl	_set_capacity
	ldr	w0, [x19, #36]
	bl	_revalidate_disk
	b	LBB0_6
LBB0_5:
	tbnz	x8, #63, LBB0_8
LBB0_6:
	ldr	w8, [x19, #28]
	str	w8, [x19, #32]
	ldr	w8, [x22, #4]
	mov	w9, #1
	lsl	w8, w9, w8
	str	w8, [x19, #8]
Lloh6:
	adrp	x8, _MaxSector@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MaxSector@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	str	xzr, [x19]
	str	xzr, [x19, #16]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldrsw	x20, [x22]
	lsl	x21, x20, #4
Lloh9:
	adrp	x23, _In_sync@GOTPAGE
Lloh10:
	ldr	x23, [x23, _In_sync@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x22]
	ldr	x9, [x19]
	add	x21, x21, #16
	sub	x8, x8, x9
	cmp	x8, x20
	b.le	LBB0_6
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	add	x9, x8, x21
	ldr	x1, [x9, #8]
	cbz	x1, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x23]
	bl	_clear_bit
	ldr	x8, [x22, #8]
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x1, [x8, x21]
	cbz	x1, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x23]
	bl	_clear_bit
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MD_RECOVERY_INTR,4,2           ; @MD_RECOVERY_INTR
	.comm	_MD_RECOVERY_NEEDED,4,2         ; @MD_RECOVERY_NEEDED
	.comm	_In_sync,4,2                    ; @In_sync
	.comm	_MaxSector,4,2                  ; @MaxSector
	.no_dead_strip	_raid10_finish_reshape
.subsections_via_symbols
