	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	56(%rdi), %r14
	cmpq	$0, (%rdi)
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	cmpq	16(%rbx), %rax
	jne	LBB0_3
## %bb.2:
	movq	24(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	32(%rbx), %rcx
	je	LBB0_6
LBB0_3:
	movq	%r14, %rdi
	callq	_has_failed
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	(%rbx), %rax
	testq	%rax, %rax
	jns	LBB0_10
## %bb.8:
	movq	40(%rbx), %rcx
	movq	_MaxSector@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.9:
	xorl	%ecx, %ecx
	cmpl	$6, 48(%rbx)
	sete	%cl
	addq	%rcx, %rcx
	addq	$2, %rcx
	movslq	52(%rbx), %rdx
	addq	%rdx, %rax
	cmpq	%rcx, %rax
	jl	LBB0_4
LBB0_10:
	movq	%rbx, %rdi
	callq	_check_stripe_cache
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	(%r14), %esi
	addl	(%rbx), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_resize_stripes                 ## TAILCALL
LBB0_11:
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MaxSector,8,3                  ## @MaxSector
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.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	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	x20, x0
	ldr	x19, [x0, #56]
	ldr	x8, [x0]
	cbnz	x8, LBB0_4
; %bb.1:
	ldp	x8, x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldp	x8, x9, [x20, #24]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_has_failed
	cbz	x0, LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x8, [x20]
	tbz	x8, #63, LBB0_11
; %bb.9:
	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_11
; %bb.10:
	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_5
LBB0_11:
	mov	x0, x20
	bl	_check_stripe_cache
	cbz	w0, LBB0_13
; %bb.12:
	ldr	w8, [x19]
	ldr	w9, [x20]
	add	w1, w8, w9
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_resize_stripes
LBB0_13:
Lloh5:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MaxSector,8,3                  ; @MaxSector
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.no_dead_strip	_check_reshape
.subsections_via_symbols
