	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid1_reshape
_raid1_reshape:                         ## @raid1_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	72(%rdi), %r15
	leaq	-48(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-52(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	cmpq	8(%rbx), %rax
	jne	LBB0_9
## %bb.1:
	cmpq	24(%rbx), %rcx
	jne	LBB0_9
## %bb.2:
	movq	32(%rbx), %rdx
	cmpq	40(%rbx), %rdx
	jne	LBB0_9
## %bb.3:
	movq	%rbx, %rdi
	callq	_mddev_is_clustered
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_md_allow_write
LBB0_5:
	movl	52(%rbx), %r13d
	addl	48(%rbx), %r13d
	movl	(%r15), %esi
	cmpl	%esi, %r13d
	jge	LBB0_20
## %bb.6:
	testl	%esi, %esi
	jle	LBB0_12
## %bb.7:
	movq	16(%r15), %r8
	leaq	-1(%rsi), %rax
	movl	%esi, %edx
	andl	$3, %edx
	cmpq	$3, %rax
	jae	LBB0_13
## %bb.8:
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_9:
	movq	%rax, 8(%rbx)
	movq	%rcx, 24(%rbx)
	movq	32(%rbx), %rax
	movq	%rax, 40(%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_13:
	andl	$-4, %esi
	leaq	80(%r8), %rcx
	xorl	%edi, %edi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$1, -72(%rcx)
	sbbl	$-1, %eax
	cmpq	$1, -48(%rcx)
	sbbl	$-1, %eax
	cmpq	$1, -24(%rcx)
	sbbl	$-1, %eax
	cmpq	$1, (%rcx)
	sbbl	$-1, %eax
	addq	$4, %rdi
	addq	$96, %rcx
	cmpq	%rdi, %rsi
	jne	LBB0_14
LBB0_15:
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.16:
	leaq	(%rdi,%rdi,2), %rcx
	leaq	(%r8,%rcx,8), %rcx
	addq	$8, %rcx
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$1, (%rcx,%rsi)
	sbbl	$-1, %eax
	addq	$24, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_17
LBB0_18:
	cmpl	%r13d, %eax
	jle	LBB0_20
## %bb.19:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_20:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_36
## %bb.21:
	movq	%rbx, 16(%rax)
	leal	(%r13,%r13), %ecx
	movl	%ecx, (%rax)
	movq	_NR_RAID_BIOS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_r1bio_pool_alloc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_rbio_pool_free@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-48(%rbp), %rdi
	movq	%rax, %r14
	movq	%rax, %r8
	callq	_mempool_init
	testl	%eax, %eax
	je	LBB0_24
## %bb.22:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_24:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	$24, %edi
	movl	%r13d, %esi
	movl	$2, %edx
	callq	_array3_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_35
## %bb.25:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_freeze_array
	movl	24(%r15), %eax
	movl	%eax, -52(%rbp)
	movl	-48(%rbp), %eax
	movl	%eax, 24(%r15)
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_34
## %bb.26:
	xorl	%r13d, %r13d
	movl	$8, %r14d
	xorl	%edx, %edx
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_29
LBB0_27:                                ##   in Loop: Header=BB0_29 Depth=1
	movslq	%edx, %rax
	incl	%edx
	leaq	(%rax,%rax,2), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, 8(%rcx,%rax,8)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %eax
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$24, %r14
	cmpq	%rcx, %r13
	jge	LBB0_34
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rcx
	movq	(%rcx,%r14), %r15
	testq	%r15, %r15
	je	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	cmpl	%edx, (%r15)
	je	LBB0_27
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_sysfs_unlink_rdev
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sysfs_unlink_rdev
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sysfs_link_rdev
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testq	%rax, %rax
	je	LBB0_27
## %bb.32:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	%rbx, %rdi
	callq	_mdname
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_27
LBB0_33:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_28
LBB0_34:
	movq	16(%r15), %rdi
	callq	_kfree
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r15)
	movq	8(%r15), %rdi
	callq	_kfree
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r15)
	movq	%r15, %r14
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %eax
	subl	(%r14), %eax
	addl	%eax, 56(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r13d, 48(%rbx)
	movl	%r13d, (%r14)
	movl	$0, 52(%rbx)
	movq	%r14, %rdi
	callq	_unfreeze_array
	movq	_MD_RECOVERY_RECOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	64(%rbx), %r14
	movq	%r14, %rsi
	callq	_set_bit
	movq	_MD_RECOVERY_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movl	60(%rbx), %edi
	callq	_md_wakeup_thread
	leaq	-52(%rbp), %rdi
	callq	_mempool_exit
	jmp	LBB0_11
LBB0_35:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	leaq	-48(%rbp), %rdi
	callq	_mempool_exit
LBB0_36:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_37:
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NR_RAID_BIOS,4,2               ## @NR_RAID_BIOS
	.comm	_r1bio_pool_alloc,4,2           ## @r1bio_pool_alloc
	.comm	_rbio_pool_free,4,2             ## @rbio_pool_free
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md/raid1:%s: cannot register rd%d\n"

	.comm	_MD_RECOVERY_RECOVER,4,2        ## @MD_RECOVERY_RECOVER
	.comm	_MD_RECOVERY_NEEDED,4,2         ## @MD_RECOVERY_NEEDED
	.no_dead_strip	_raid1_reshape
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid1_reshape
_raid1_reshape:                         ; @raid1_reshape
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #72]
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldp	x8, x10, [x19]
	ldr	x9, [x19, #16]
	cmp	x8, x10
	b.ne	LBB0_9
; %bb.1:
	ldr	x10, [x19, #24]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.2:
	ldp	x10, x11, [x19, #32]
	cmp	x10, x11
	b.ne	LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_mddev_is_clustered
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_md_allow_write
LBB0_5:
	ldp	w9, w10, [x19, #48]
	ldr	w8, [x20]
	add	w21, w10, w9
	cmp	w21, w8
	b.ge	LBB0_20
; %bb.6:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:
	ldr	x9, [x20, #16]
	cmp	w8, #9
	b.hs	LBB0_13
; %bb.8:
	mov	x10, #0
	mov	w11, #0
	b	LBB0_16
LBB0_9:
	str	x8, [x19, #8]
	str	x9, [x19, #24]
	ldr	x8, [x19, #32]
	str	x8, [x19, #40]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	mov	w11, #0
	b	LBB0_18
LBB0_13:
	ands	x10, x8, #0x7
	mov	w11, #8
	csel	x10, x11, x10, eq
	sub	x10, x8, x10
	add	x11, x9, #104
	movi.2d	v0, #0000000000000000
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	sub	x13, x11, #96
	sub	x14, x11, #48
	ld3.2d	{ v4, v5, v6 }, [x13]
	ld3.2d	{ v16, v17, v18 }, [x14]
	mov	x13, x11
	ld3.2d	{ v19, v20, v21 }, [x13], #48
	ld3.2d	{ v22, v23, v24 }, [x13]
	cmtst.2d	v4, v4, v4
	xtn.2s	v4, v4
	cmtst.2d	v5, v16, v16
	xtn.2s	v5, v5
	cmtst.2d	v6, v19, v19
	xtn.2s	v6, v6
	cmtst.2d	v7, v22, v22
	xtn.2s	v7, v7
	sub.2s	v0, v0, v4
	sub.2s	v1, v1, v5
	sub.2s	v2, v2, v6
	sub.2s	v3, v3, v7
	add	x11, x11, #192
	subs	x12, x12, #8
	b.ne	LBB0_14
; %bb.15:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w11, s0
LBB0_16:
	mov	w12, #24
	madd	x9, x10, x12, x9
	add	x9, x9, #8
	sub	x8, x8, x10
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #24
	cmp	x10, #0
	cinc	w11, w11, ne
	subs	x8, x8, #1
	b.ne	LBB0_17
LBB0_18:
	cmp	w11, w21
	b.le	LBB0_20
; %bb.19:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_20:
Lloh4:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #24
	bl	_kmalloc
	cbz	x0, LBB0_34
; %bb.21:
	mov	x22, x0
	str	x19, [x0, #16]
	lsl	w8, w21, #1
	str	w8, [x0]
Lloh6:
	adrp	x8, _NR_RAID_BIOS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NR_RAID_BIOS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _r1bio_pool_alloc@GOTPAGE
Lloh10:
	ldr	x8, [x8, _r1bio_pool_alloc@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _rbio_pool_free@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rbio_pool_free@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	add	x0, sp, #12
	mov	x4, x22
	bl	_mempool_init
	cbz	w0, LBB0_23
; %bb.22:
	mov	x23, x0
	mov	x0, x22
	bl	_kfree
	b	LBB0_11
LBB0_23:
	mov	w0, #24
	mov	x1, x21
	mov	w2, #2
	bl	_array3_size
	ldr	w1, [x24]
	bl	_kzalloc
	cbz	x0, LBB0_33
; %bb.24:
	mov	x23, x0
	mov	x0, x20
	mov	w1, #0
	bl	_freeze_array
	ldr	w8, [x20, #24]
	str	w8, [sp, #8]
	ldr	w8, [sp, #12]
	str	w8, [x20, #24]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.25:
	mov	x26, #0
	mov	w27, #0
	mov	w28, #8
	mov	w24, #24
	b	LBB0_28
LBB0_26:                                ;   in Loop: Header=BB0_28 Depth=1
	smaddl	x8, w27, w24, x23
	add	w27, w27, #1
	str	x25, [x8, #8]
	ldr	w8, [x20]
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x26, x26, #1
	add	x28, x28, #24
	cmp	x26, w8, sxtw
	b.ge	LBB0_32
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	ldr	x25, [x9, x28]
	cbz	x25, LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	w8, [x25]
	cmp	w8, w27
	b.eq	LBB0_26
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_sysfs_unlink_rdev
	str	w27, [x25]
	mov	x0, x19
	mov	x1, x25
	bl	_sysfs_unlink_rdev
	mov	x0, x19
	mov	x1, x25
	bl	_sysfs_link_rdev
	cbz	x0, LBB0_26
; %bb.31:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	x0, x19
	bl	_mdname
	mov	x1, x0
	ldr	w2, [x25]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	b	LBB0_26
LBB0_32:
	ldr	x0, [x20, #16]
	bl	_kfree
	str	x23, [x20, #16]
	ldr	x0, [x20, #8]
	bl	_kfree
	str	x22, [x20, #8]
	add	x22, x20, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	ldr	w9, [x19, #56]
	sub	w8, w21, w8
	add	w8, w8, w9
	str	w8, [x19, #56]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	str	w21, [x20]
	stp	w21, wzr, [x19, #48]
	mov	x0, x20
	bl	_unfreeze_array
Lloh17:
	adrp	x8, _MD_RECOVERY_RECOVER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MD_RECOVERY_RECOVER@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x20, x19, #64
	mov	x1, x20
	bl	_set_bit
Lloh20:
	adrp	x8, _MD_RECOVERY_NEEDED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MD_RECOVERY_NEEDED@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	ldr	w0, [x19, #60]
	bl	_md_wakeup_thread
	add	x0, sp, #8
	bl	_mempool_exit
	mov	w23, #0
	b	LBB0_11
LBB0_33:
	mov	x0, x22
	bl	_kfree
	add	x0, sp, #12
	bl	_mempool_exit
LBB0_34:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NR_RAID_BIOS,4,2               ; @NR_RAID_BIOS
	.comm	_r1bio_pool_alloc,4,2           ; @r1bio_pool_alloc
	.comm	_rbio_pool_free,4,2             ; @rbio_pool_free
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md/raid1:%s: cannot register rd%d\n"

	.comm	_MD_RECOVERY_RECOVER,4,2        ; @MD_RECOVERY_RECOVER
	.comm	_MD_RECOVERY_NEEDED,4,2         ; @MD_RECOVERY_NEEDED
	.no_dead_strip	_raid1_reshape
.subsections_via_symbols
