	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_geo
_setup_geo:                             ## @setup_geo
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpl	$130, %edx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_4
## %bb.2:
	leaq	4(%rsi), %rax
	movl	8(%rsi), %r12d
	subl	12(%rsi), %r12d
	jmp	LBB0_5
LBB0_3:
	movl	8(%rsi), %r12d
	movq	%rsi, %rax
	addq	$16, %rsi
	addq	$20, %rax
	jmp	LBB0_5
LBB0_4:
	leaq	20(%rsi), %rax
	movl	12(%rsi), %r12d
	addl	8(%rsi), %r12d
	addq	$16, %rsi
LBB0_5:
	movl	(%rsi), %ecx
	movl	$-1, %ebx
	cmpl	$524287, %ecx                   ## imm = 0x7FFFF
	ja	LBB0_15
## %bb.6:
	movl	(%rax), %r15d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$9, %eax
	movl	$-2, %ebx
	cmpl	%eax, %r15d
	jl	LBB0_15
## %bb.7:
	movl	%ecx, %r13d
	movl	%r15d, %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_15
## %bb.8:
	movl	%r13d, %ecx
	movzbl	%cl, %r13d
	movzbl	%ch, %ebx
	movl	%ecx, %eax
	andl	$65536, %eax                    ## imm = 0x10000
	movl	%r12d, (%r14)
	movl	%r13d, 4(%r14)
	movl	%ebx, 8(%r14)
	movl	%eax, 12(%r14)
	shrl	$17, %ecx
	cmpl	$2, %ecx
	je	LBB0_13
## %bb.9:
	cmpl	$1, %ecx
	je	LBB0_12
## %bb.10:
	movl	%ebx, %eax
	movl	$-1, %ebx
	testl	%ecx, %ecx
	jne	LBB0_15
## %bb.11:
	movl	%r12d, 16(%r14)
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_13:
	movl	%ebx, %eax
	imull	%r13d, %eax
	movl	%eax, 16(%r14)
	jmp	LBB0_14
LBB0_12:
	movl	%r12d, %eax
	cltd
	idivl	%ebx
	movl	%eax, 16(%r14)
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	setl	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN
LBB0_14:
	leal	-1(%r15), %eax
	movl	%eax, 20(%r14)
	notl	%r15d
	movl	%r15d, %edi
	callq	_ffz
	movl	%eax, 24(%r14)
	imull	%r13d, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This RAID10 layout does not provide data safety - please backup and create new array\n"

	.no_dead_strip	_setup_geo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_geo
_setup_geo:                             ; @setup_geo
	.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
	cmp	w2, #130
	b.eq	LBB0_3
; %bb.1:
	cmp	w2, #129
	b.ne	LBB0_4
; %bb.2:
	add	x8, x1, #4
	ldp	w9, w10, [x1, #8]
	sub	w22, w9, w10
	b	LBB0_5
LBB0_3:
	add	x8, x1, #20
	ldr	w22, [x1, #8]
	add	x1, x1, #16
	b	LBB0_5
LBB0_4:
	add	x8, x1, #20
	ldp	w9, w10, [x1, #8]
	add	x1, x1, #16
	add	w22, w10, w9
LBB0_5:
	ldr	w20, [x1]
	lsr	w9, w20, #19
	cbnz	w9, LBB0_12
; %bb.6:
	ldr	w21, [x8]
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w21, w8, asr #9
	b.lt	LBB0_13
; %bb.7:
	mov	x0, x21
	bl	_is_power_of_2
	cbz	w0, LBB0_13
; %bb.8:
	and	w10, w20, #0xff
	ubfx	w8, w20, #8, #8
	and	w9, w20, #0x10000
	stp	w22, w10, [x19]
	stp	w8, w9, [x19, #8]
	lsr	w9, w20, #17
	mul	w20, w8, w10
	cmp	w9, #2
	b.eq	LBB0_14
; %bb.9:
	cmp	w9, #1
	b.eq	LBB0_15
; %bb.10:
	cbnz	w9, LBB0_12
; %bb.11:
	str	w22, [x19, #16]
	b	LBB0_16
LBB0_12:
	mov	w20, #-1
	b	LBB0_17
LBB0_13:
	mov	w20, #-2
	b	LBB0_17
LBB0_14:
	str	w20, [x19, #16]
	b	LBB0_16
LBB0_15:
	sdiv	w9, w22, w8
	str	w9, [x19, #16]
	cmp	w9, w8
	cset	w0, lt
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
LBB0_16:
	sub	w8, w21, #1
	str	w8, [x19, #20]
	mvn	w0, w21
	bl	_ffz
	str	w0, [x19, #24]
LBB0_17:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This RAID10 layout does not provide data safety - please backup and create new array\n"

	.no_dead_strip	_setup_geo
.subsections_via_symbols
