	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_volume
_parse_volume:                          ## @parse_volume
	.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	%r8, %r12
	movq	%rdx, %r15
	movl	%esi, %r14d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -64(%rbp)
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.1:
	movq	%rcx, %r13
	movq	%rcx, %rdi
	movl	$44, %esi
	callq	_strchr
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$44, 1(%rax)
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	incl	%ebx
	movq	%rax, %rdi
	movl	$44, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	cmpl	$128, %r14d
	je	LBB0_10
LBB0_5:
	cmpl	$129, %r14d
	je	LBB0_13
## %bb.6:
	cmpl	$130, %r14d
	jne	LBB0_14
## %bb.7:
	cmpl	$1, %ebx
	ja	LBB0_14
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_24
LBB0_9:
	xorl	%ebx, %ebx
	cmpl	$128, %r14d
	jne	LBB0_5
LBB0_10:
	cmpl	$2, %ebx
	ja	LBB0_14
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_24
LBB0_12:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_25
LBB0_13:
	cmpl	$2, %ebx
	jne	LBB0_23
LBB0_14:
	movl	%ebx, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %r13
	movq	%rax, 8(%r12)
	movl	%ebx, (%r12)
	leaq	L_.str.4(%rip), %rsi
	leaq	-64(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_22
## %bb.15:
	movq	%rax, %rbx
	addq	$8, %r13
	leaq	-52(%rbp), %r12
	leaq	-64(%rbp), %r14
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	-52(%rbp), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_mpt_pd_info
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_21
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strsep
	movq	%rax, %rbx
	addq	$16, %r13
	testq	%rax, %rax
	je	LBB0_22
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%r15), %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_mpt_lookup_drive
	testl	%eax, %eax
	je	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%r15), %rsi
	movl	8(%r15), %edx
	movq	%rbx, %rdi
	leaq	-48(%rbp), %rcx
	callq	_mpt_lookup_standalone_disk
	testq	%rax, %rax
	js	LBB0_28
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movslq	-48(%rbp), %rdi
	shlq	$2, %rdi
	addq	(%r15), %rdi
	movq	%rdi, -8(%r13)
	callq	_mpt_lock_physdisk
	testq	%rax, %rax
	jns	LBB0_17
LBB0_21:
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_22:
	xorl	%r14d, %r14d
	jmp	LBB0_27
LBB0_23:
	leaq	L_.str.2(%rip), %rdi
LBB0_24:
	xorl	%eax, %eax
	callq	_warnx
LBB0_25:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %r14d
LBB0_27:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	callq	_warn
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid drive list '%s'"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"RAID0 requires at least 2 drives in each array"

L_.str.2:                               ## @.str.2
	.asciz	"RAID1 requires exactly 2 drives in each array"

L_.str.3:                               ## @.str.3
	.asciz	"RAID1E requires at least 3 drives in each array"

L_.str.4:                               ## @.str.4
	.asciz	","

	.comm	_errno,4,2                      ## @errno
L_.str.5:                               ## @.str.5
	.asciz	"Unable to lookup drive %s"

	.no_dead_strip	_parse_volume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_volume
_parse_volume:                          ; @parse_volume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x4
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	str	x3, [sp, #24]
	cbz	x3, LBB0_4
; %bb.1:
	mov	x24, x3
	mov	x0, x3
	mov	w1, #44
	bl	_strchr
	mov	w22, #1
	cbz	x0, LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0, #1]!
	cmp	w8, #44
	b.eq	LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w22, #1
	mov	w1, #44
	bl	_strchr
	cbnz	x0, LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	cmp	w23, #128
	b.eq	LBB0_11
; %bb.6:
	cmp	w23, #129
	b.eq	LBB0_13
; %bb.7:
	cmp	w23, #130
	b.ne	LBB0_14
; %bb.8:
	cmp	w22, #1
	b.hi	LBB0_14
; %bb.9:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_10:
	str	x24, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_24
LBB0_11:
	cmp	w22, #2
	b.hi	LBB0_14
; %bb.12:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_24
LBB0_13:
	cmp	w22, #2
	b.ne	LBB0_23
LBB0_14:
	mov	x0, x22
	mov	w1, #16
	bl	_calloc
	mov	x23, x0
	str	x0, [x21, #8]
	str	w22, [x21]
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #24
	bl	_strsep
	cbz	x0, LBB0_22
; %bb.15:
	mov	x22, x0
	add	x23, x23, #8
Lloh8:
	adrp	x21, l_.str.4@PAGE
Lloh9:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w1, [sp, #20]
	mov	x0, x20
	mov	x2, #0
	bl	_mpt_pd_info
	str	x0, [x23]
	cbz	x0, LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x0, sp, #24
	mov	x1, x21
	bl	_strsep
	mov	x22, x0
	add	x23, x23, #16
	cbz	x0, LBB0_22
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #12]
	add	x2, sp, #20
	mov	x1, x22
	bl	_mpt_lookup_drive
	cbz	w0, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x1, [x19]
	ldr	w2, [x19, #8]
	add	x3, sp, #16
	mov	x0, x22
	bl	_mpt_lookup_standalone_disk
	tbnz	x0, #63, LBB0_27
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x19]
	ldrsw	x9, [sp, #16]
	add	x0, x8, x9, lsl #2
	stur	x0, [x23, #-8]
	bl	_mpt_lock_physdisk
	tbz	x0, #63, LBB0_17
LBB0_21:
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	b	LBB0_25
LBB0_22:
	mov	w19, #0
	b	LBB0_26
LBB0_23:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_24:
	bl	_warnx
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_25:
	ldr	w19, [x8]
LBB0_26:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_27:
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	w19, [x8]
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x22
	bl	_warn
	b	LBB0_26
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid drive list '%s'"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"RAID0 requires at least 2 drives in each array"

l_.str.2:                               ; @.str.2
	.asciz	"RAID1 requires exactly 2 drives in each array"

l_.str.3:                               ; @.str.3
	.asciz	"RAID1E requires at least 3 drives in each array"

l_.str.4:                               ; @.str.4
	.asciz	","

	.comm	_errno,4,2                      ; @errno
l_.str.5:                               ; @.str.5
	.asciz	"Unable to lookup drive %s"

	.no_dead_strip	_parse_volume
.subsections_via_symbols
