	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_reshape
_check_reshape:                         ## @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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	56(%rdi), %r14
	movq	%r14, %rdi
	callq	_raid5_has_log
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	callq	_raid5_has_ppl
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	cmpq	$0, (%r15)
	jne	LBB0_5
## %bb.3:
	movq	8(%r15), %rax
	cmpq	16(%r15), %rax
	jne	LBB0_5
## %bb.4:
	movq	24(%r15), %rax
	xorl	%ebx, %ebx
	cmpq	32(%r15), %rax
	je	LBB0_9
LBB0_5:
	movq	%r14, %rdi
	callq	_has_failed
	testq	%rax, %rax
	je	LBB0_10
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	(%r15), %rax
	testq	%rax, %rax
	jns	LBB0_13
## %bb.11:
	movq	40(%r15), %rcx
	movq	_MaxSector@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.12:
	xorl	%ecx, %ecx
	cmpl	$6, 48(%r15)
	sete	%cl
	addq	%rcx, %rcx
	addq	$2, %rcx
	movslq	52(%r15), %rdx
	addq	%rdx, %rax
	cmpq	%rcx, %rax
	jl	LBB0_6
LBB0_13:
	movq	%r15, %rdi
	callq	_check_stripe_cache
	testl	%eax, %eax
	je	LBB0_20
## %bb.14:
	movq	(%r15), %rsi
	movq	24(%r15), %rax
	cmpq	32(%r15), %rax
	jg	LBB0_16
## %bb.15:
	testq	%rsi, %rsi
	jle	LBB0_18
LBB0_16:
	movq	(%r14), %r12
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_max
	addq	%rax, %r12
	movq	24(%r15), %rdi
	movq	32(%r15), %rsi
	callq	_max
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_resize_chunks
	testq	%rax, %rax
	js	LBB0_21
## %bb.17:
	movq	(%r15), %rsi
LBB0_18:
	addq	(%r14), %rsi
	xorl	%ebx, %ebx
	cmpq	8(%r14), %rsi
	jle	LBB0_9
## %bb.19:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_resize_stripes                 ## TAILCALL
LBB0_20:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MaxSector,8,3                  ## @MaxSector
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_check_reshape
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_reshape
_check_reshape:                         ; @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	x20, x0
	ldr	x19, [x0, #56]
	mov	x0, x19
	bl	_raid5_has_log
	cbnz	x0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_raid5_has_ppl
	cbnz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
; %bb.3:
	ldp	x8, x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldp	x8, x9, [x20, #24]
	cmp	x8, x9
	b.eq	LBB0_19
LBB0_5:
	mov	x0, x19
	bl	_has_failed
	cbz	x0, LBB0_9
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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_9:
	ldr	x8, [x20]
	tbz	x8, #63, LBB0_12
; %bb.10:
	ldr	x9, [x20, #40]
Lloh2:
	adrp	x10, _MaxSector@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MaxSector@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.11:
	ldp	w9, w10, [x20, #48]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	cmp	w9, #6
	mov	w9, #2
	mov	w11, #4
	csel	x9, x11, x9, eq
	add	x8, x8, x10
	cmp	x8, x9
	b.lt	LBB0_6
LBB0_12:
	mov	x0, x20
	bl	_check_stripe_cache
	cbz	w0, LBB0_20
; %bb.13:
	ldp	x8, x9, [x20, #24]
	ldr	x1, [x20]
	cmp	x8, x9
	b.gt	LBB0_15
; %bb.14:
	cmp	x1, #1
	b.lt	LBB0_17
LBB0_15:
	ldr	x21, [x19]
	mov	x0, #0
	bl	_max
	add	x21, x0, x21
	ldp	x0, x1, [x20, #24]
	bl	_max
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_resize_chunks
	tbnz	x0, #63, LBB0_21
; %bb.16:
	ldr	x1, [x20]
LBB0_17:
	ldp	x8, x9, [x19]
	add	x1, x1, x8
	cmp	x1, x9
	b.le	LBB0_19
; %bb.18:
	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	_resize_stripes
LBB0_19:
	mov	w0, #0
	b	LBB0_8
LBB0_20:
Lloh5:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_7
LBB0_21:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MaxSector,8,3                  ; @MaxSector
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_check_reshape
.subsections_via_symbols
