	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_array
_parse_array:                           ## @parse_array
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%esi, %r12d
	movl	%edi, %r15d
	movq	%rdx, -56(%rbp)
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.4:
	movq	%rdx, %r13
	movq	%rdx, %rdi
	movl	$44, %esi
	callq	_strchr
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$44, 1(%rax)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rax
	incl	%ebx
	movq	%rax, %rdi
	movl	$44, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_2
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	movq	_MAX_DRIVES_PER_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%esi, %ebx
	jge	LBB0_3
## %bb.9:
	addl	$-128, %r12d
	cmpl	$5, %r12d
	ja	LBB0_19
## %bb.10:
	movl	$3, %eax
	btl	%r12d, %eax
	jb	LBB0_17
## %bb.11:
	movl	$12, %eax
	btl	%r12d, %eax
	jae	LBB0_12
## %bb.15:
	cmpl	$2, %ebx
	ja	LBB0_19
## %bb.16:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_14
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_35
LBB0_7:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_35
LBB0_17:
	cmpl	$3, %ebx
	ja	LBB0_19
## %bb.18:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_14
LBB0_12:
	testb	$1, %bl
	jne	LBB0_13
LBB0_19:
	movl	%ebx, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	%rax, %r12
	movl	%ebx, (%r14)
	leaq	L_.str.6(%rip), %rsi
	leaq	-56(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	movq	%rax, %r13
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%r13, %rsi
	leaq	-44(%rbp), %rdx
	callq	_mfi_lookup_drive
	testl	%eax, %eax
	jne	LBB0_26
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	-44(%rbp), %esi
	movl	%r15d, %edi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_mfi_pd_get_info
	testq	%rax, %rax
	js	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	(%r12), %rax
	movq	_MFI_PD_STATE_UNCONFIGURED_GOOD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_25 Depth=1
	cmpq	$0, 8(%r12)
	jne	LBB0_33
## %bb.24:                              ##   in Loop: Header=BB0_25 Depth=1
	leaq	-56(%rbp), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strsep
	movq	%rax, %r13
	addq	$16, %r12
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_25
	jmp	LBB0_37
LBB0_20:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_36
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
LBB0_14:
	xorl	%eax, %eax
	callq	_warnx
LBB0_35:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_36:
	movl	(%rax), %ebx
LBB0_37:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	xorl	%ebx, %ebx
	jmp	LBB0_37
LBB0_26:
	movl	%eax, %ebx
	jmp	LBB0_27
LBB0_29:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.7(%rip), %rdi
	movq	%r13, %rsi
	callq	_warn
LBB0_27:
	movq	8(%r14), %rdi
	callq	_free
	movq	$0, 8(%r14)
	jmp	LBB0_37
LBB0_31:
	movl	-44(%rbp), %esi
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_34
LBB0_33:
	movl	-44(%rbp), %esi
	leaq	L_.str.9(%rip), %rdi
LBB0_34:
	xorl	%eax, %eax
	callq	_warnx
	movq	8(%r14), %rdi
	callq	_free
	movq	$0, 8(%r14)
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid drive list '%s'"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX_DRIVES_PER_ARRAY,4,2       ## @MAX_DRIVES_PER_ARRAY
L_.str.1:                               ## @.str.1
	.asciz	"Too many drives for a single array: max is %d"

L_.str.2:                               ## @.str.2
	.asciz	"RAID1 and RAID10 require an even number of drives in each array"

L_.str.3:                               ## @.str.3
	.asciz	"RAID5 and RAID50 require at least 3 drives in each array"

L_.str.4:                               ## @.str.4
	.asciz	"RAID6 and RAID60 require at least 4 drives in each array"

L_.str.5:                               ## @.str.5
	.asciz	"malloc failed"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.6:                               ## @.str.6
	.asciz	","

	.comm	_errno,4,2                      ## @errno
L_.str.7:                               ## @.str.7
	.asciz	"Failed to fetch drive info for drive %s"

	.comm	_MFI_PD_STATE_UNCONFIGURED_GOOD,8,3 ## @MFI_PD_STATE_UNCONFIGURED_GOOD
L_.str.8:                               ## @.str.8
	.asciz	"Drive %u is not available"

L_.str.9:                               ## @.str.9
	.asciz	"Drive %u is foreign"

	.no_dead_strip	_parse_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_array
_parse_array:                           ; @parse_array
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x22, x1
	mov	x20, x0
	str	x2, [sp, #24]
	cbz	x2, LBB0_4
; %bb.1:
	mov	x23, x2
	mov	x0, x2
	mov	w1, #44
	bl	_strchr
	mov	w21, #1
	cbz	x0, LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0, #1]!
	cmp	w8, #44
	b.eq	LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	mov	w1, #44
	bl	_strchr
	cbnz	x0, LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
Lloh0:
	adrp	x8, _MAX_DRIVES_PER_ARRAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_DRIVES_PER_ARRAY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ge	LBB0_11
; %bb.6:
	sub	w8, w22, #128
	cmp	w8, #5
	b.hi	LBB0_16
; %bb.7:
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, #0x3
	b.ne	LBB0_13
; %bb.8:
	tst	w8, #0xc
	b.eq	LBB0_15
; %bb.9:
	cmp	w21, #2
	b.hi	LBB0_16
; %bb.10:
Lloh3:
	adrp	x0, l_.str.3@PAGE
Lloh4:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warnx
	b	LBB0_33
LBB0_11:
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	b	LBB0_33
LBB0_12:
	str	x23, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	b	LBB0_33
LBB0_13:
	cmp	w21, #3
	b.hi	LBB0_16
; %bb.14:
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warnx
	b	LBB0_33
LBB0_15:
	tbnz	w21, #0, LBB0_25
LBB0_16:
	mov	x0, x21
	mov	w1, #16
	bl	_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_24
; %bb.17:
	mov	x22, x0
	str	w21, [x19]
Lloh11:
	adrp	x1, l_.str.6@PAGE
Lloh12:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #24
	bl	_strsep
	cbz	x0, LBB0_26
; %bb.18:
	mov	x24, x0
Lloh13:
	adrp	x25, _MFI_PD_STATE_UNCONFIGURED_GOOD@GOTPAGE
Lloh14:
	ldr	x25, [x25, _MFI_PD_STATE_UNCONFIGURED_GOOD@GOTPAGEOFF]
Lloh15:
	adrp	x23, l_.str.6@PAGE
Lloh16:
	add	x23, x23, l_.str.6@PAGEOFF
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #20
	mov	x0, x20
	mov	x1, x24
	bl	_mfi_lookup_drive
	cbnz	w0, LBB0_27
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w1, [sp, #20]
	mov	x0, x20
	mov	x2, x22
	mov	x3, #0
	bl	_mfi_pd_get_info
	tbnz	x0, #63, LBB0_28
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_31
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x0, sp, #24
	mov	x1, x23
	bl	_strsep
	mov	x24, x0
	mov	w21, #0
	add	x22, x22, #16
	cbnz	x0, LBB0_19
	b	LBB0_35
LBB0_24:
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_warnx
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_34
LBB0_25:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warnx
	b	LBB0_33
LBB0_26:
	mov	w21, #0
	b	LBB0_35
LBB0_27:
	mov	x21, x0
	b	LBB0_29
LBB0_28:
Lloh23:
	adrp	x8, _errno@GOTPAGE
Lloh24:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh25:
	ldr	w21, [x8]
Lloh26:
	adrp	x0, l_.str.7@PAGE
Lloh27:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x24
	bl	_warn
LBB0_29:
	ldr	x0, [x19, #8]
	bl	_free
	str	xzr, [x19, #8]
	b	LBB0_35
LBB0_30:
	ldr	w8, [sp, #20]
	str	x8, [sp]
Lloh28:
	adrp	x0, l_.str.8@PAGE
Lloh29:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_32
LBB0_31:
	ldr	w8, [sp, #20]
	str	x8, [sp]
Lloh30:
	adrp	x0, l_.str.9@PAGE
Lloh31:
	add	x0, x0, l_.str.9@PAGEOFF
LBB0_32:
	bl	_warnx
	ldr	x0, [x19, #8]
	bl	_free
	str	xzr, [x19, #8]
LBB0_33:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_34:
	ldr	w21, [x8]
LBB0_35:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid drive list '%s'"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX_DRIVES_PER_ARRAY,4,2       ; @MAX_DRIVES_PER_ARRAY
l_.str.1:                               ; @.str.1
	.asciz	"Too many drives for a single array: max is %d"

l_.str.2:                               ; @.str.2
	.asciz	"RAID1 and RAID10 require an even number of drives in each array"

l_.str.3:                               ; @.str.3
	.asciz	"RAID5 and RAID50 require at least 3 drives in each array"

l_.str.4:                               ; @.str.4
	.asciz	"RAID6 and RAID60 require at least 4 drives in each array"

l_.str.5:                               ; @.str.5
	.asciz	"malloc failed"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.6:                               ; @.str.6
	.asciz	","

	.comm	_errno,4,2                      ; @errno
l_.str.7:                               ; @.str.7
	.asciz	"Failed to fetch drive info for drive %s"

	.comm	_MFI_PD_STATE_UNCONFIGURED_GOOD,8,3 ; @MFI_PD_STATE_UNCONFIGURED_GOOD
l_.str.8:                               ; @.str.8
	.asciz	"Drive %u is not available"

l_.str.9:                               ; @.str.9
	.asciz	"Drive %u is foreign"

	.no_dead_strip	_parse_array
.subsections_via_symbols
