	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid5_check_reshape
_raid5_check_reshape:                   ## @raid5_check_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %r15
	movl	(%rdi), %r14d
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	js	LBB0_2
## %bb.1:
	callq	_algorithm_valid_raid5
	testl	%eax, %eax
	je	LBB0_13
LBB0_2:
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.3:
	movl	%r14d, %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$9, %eax
	cmpl	%eax, %r14d
	jl	LBB0_13
## %bb.5:
	leal	-1(%r14), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_6
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpl	$2, 20(%rbx)
	jne	LBB0_12
## %bb.7:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	js	LBB0_9
## %bb.8:
	movq	%rax, (%r15)
	movq	%rax, 24(%rbx)
LBB0_9:
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.10:
	movl	%r14d, 8(%r15)
	movl	%r14d, 32(%rbx)
LBB0_11:
	movq	_MD_SB_CHANGE_DEVS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%rbx), %rsi
	callq	_set_bit
	movl	36(%rbx), %edi
	callq	_md_wakeup_thread
LBB0_12:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_check_reshape                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_MD_SB_CHANGE_DEVS,4,2          ## @MD_SB_CHANGE_DEVS
	.no_dead_strip	_raid5_check_reshape
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid5_check_reshape
_raid5_check_reshape:                   ; @raid5_check_reshape
	.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	x19, x0
	ldr	x21, [x0, #48]
	ldr	w20, [x0]
	ldr	x0, [x0, #8]
	tbnz	x0, #63, LBB0_2
; %bb.1:
	bl	_algorithm_valid_raid5
	cbz	w0, LBB0_6
LBB0_2:
	subs	w22, w20, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_is_power_of_2
	cbz	w0, LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8, asr #9
	b.lt	LBB0_6
; %bb.5:
	ldr	w8, [x19, #16]
	tst	w8, w22
	b.eq	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_7:
	ldr	w8, [x19, #20]
	cmp	w8, #2
	b.ne	LBB0_13
; %bb.8:
	ldr	x8, [x19, #8]
	tbnz	x8, #63, LBB0_10
; %bb.9:
	str	x8, [x21]
	str	x8, [x19, #24]
LBB0_10:
	cmp	w20, #1
	b.lt	LBB0_12
; %bb.11:
	str	w20, [x21, #8]
	str	w20, [x19, #32]
LBB0_12:
Lloh6:
	adrp	x8, _MD_SB_CHANGE_DEVS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MD_SB_CHANGE_DEVS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x19, #40
	bl	_set_bit
	ldr	w0, [x19, #36]
	bl	_md_wakeup_thread
LBB0_13:
	mov	x0, x19
	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
	b	_check_reshape
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_MD_SB_CHANGE_DEVS,4,2          ; @MD_SB_CHANGE_DEVS
	.no_dead_strip	_raid5_check_reshape
.subsections_via_symbols
