	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid10_check_reshape
_raid10_check_reshape:                  ## @raid10_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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %r15
	cmpl	$1, 16(%r15)
	je	LBB0_3
## %bb.1:
	cmpl	$0, 20(%r15)
	je	LBB0_2
LBB0_3:
	movq	_geo_start@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rdi
	movq	%r14, %rsi
	callq	_setup_geo
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.4:
	cmpl	$2, -40(%rbp)
	jl	LBB0_6
## %bb.5:
	cmpl	$0, -32(%rbp)
	je	LBB0_2
LBB0_6:
	movl	-36(%rbp), %eax
	testl	%eax, (%r14)
	je	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_enough
	testl	%eax, %eax
	je	LBB0_2
## %bb.8:
	movq	8(%r15), %rdi
	callq	_kfree
	movq	$0, 8(%r15)
	movq	8(%r14), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	jle	LBB0_12
## %bb.9:
	addq	16(%r14), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_geo_start,4,2                  ## @geo_start
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_raid10_check_reshape
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid10_check_reshape
_raid10_check_reshape:                  ; @raid10_check_reshape
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	ldr	x19, [x0, #24]
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _geo_start@GOTPAGE
Lloh1:
	ldr	x8, [x8, _geo_start@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, sp
	mov	x1, x20
	bl	_setup_geo
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [sp]
	ldr	w9, [sp, #8]
	cmp	w8, #2
	ccmp	w9, #0, #0, ge
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x20]
	ldr	w9, [sp, #4]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	mov	x0, x19
	mov	w1, #-1
	bl	_enough
	cbz	w0, LBB0_5
; %bb.9:
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
	ldr	x8, [x20, #8]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.10:
	ldr	x9, [x20, #16]
	add	x0, x9, x8
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_12
LBB0_11:
	mov	w0, #0
	b	LBB0_7
LBB0_12:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_geo_start,4,2                  ; @geo_start
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_raid10_check_reshape
.subsections_via_symbols
