	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_check_reshape
_rs_check_reshape:                      ## @rs_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rcx
	leaq	L_.str(%rip), %rax
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.1:
	cmpl	$0, (%rcx)
	je	LBB0_12
## %bb.2:
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	%r14, %rdi
	callq	_rs_is_recovering
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movq	%r14, %rdi
	callq	_rs_is_reshaping
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rax
LBB0_12:
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	callq	_rs_is_raid1
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:
	movq	%r14, %rdi
	callq	_rs_is_raid10
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	callq	_rs_is_raid456
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	leaq	L_.str.4(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reshape not supported"

L_.str.1:                               ## @.str.1
	.asciz	"Can't reshape degraded raid set"

L_.str.2:                               ## @.str.2
	.asciz	"Convert request on recovering raid set prohibited"

L_.str.3:                               ## @.str.3
	.asciz	"raid set already reshaping!"

L_.str.4:                               ## @.str.4
	.asciz	"Reshaping only supported for raid1/4/5/6/10"

	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_rs_check_reshape
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_check_reshape
_rs_check_reshape:                      ; @rs_check_reshape
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
LBB0_5:
	ldr	x9, [x19]
	str	x8, [x9]
Lloh4:
	adrp	x8, _EPERM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	bl	_rs_is_recovering
	cbz	x0, LBB0_9
; %bb.8:
Lloh7:
	adrp	x8, l_.str.2@PAGE
Lloh8:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_9:
	mov	x0, x19
	bl	_rs_is_reshaping
	cbz	x0, LBB0_11
; %bb.10:
Lloh9:
	adrp	x8, l_.str.3@PAGE
Lloh10:
	add	x8, x8, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_11:
	mov	x0, x19
	bl	_rs_is_raid1
	cbnz	x0, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_rs_is_raid10
	cbnz	x0, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_rs_is_raid456
	cbz	x0, LBB0_15
LBB0_14:
	mov	w0, #0
	b	LBB0_6
LBB0_15:
Lloh11:
	adrp	x8, l_.str.4@PAGE
Lloh12:
	add	x8, x8, l_.str.4@PAGEOFF
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reshape not supported"

l_.str.1:                               ; @.str.1
	.asciz	"Can't reshape degraded raid set"

l_.str.2:                               ; @.str.2
	.asciz	"Convert request on recovering raid set prohibited"

l_.str.3:                               ; @.str.3
	.asciz	"raid set already reshaping!"

l_.str.4:                               ; @.str.4
	.asciz	"Reshaping only supported for raid1/4/5/6/10"

	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_rs_check_reshape
.subsections_via_symbols
