	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_features
_parse_features:                        ## @parse_features
	.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	8(%rdi), %rax
	movl	$0, (%rcx)
	xorl	%r13d, %r13d
	testl	%esi, %esi
	je	LBB0_9
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-60(%rbp), %rdx
	leaq	-41(%rbp), %rcx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.3:
	incl	(%r14)
	decl	%ebx
	cmpl	%ebx, -60(%rbp)
	jbe	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	8(%r12), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.4(%rip), %rax
LBB0_8:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_DM_RAID1_HANDLE_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	incl	(%r14)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u%c"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid number of features"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Not enough arguments to support feature count"

L_.str.3:                               ## @.str.3
	.asciz	"handle_errors"

	.comm	_DM_RAID1_HANDLE_ERRORS,4,2     ## @DM_RAID1_HANDLE_ERRORS
L_.str.4:                               ## @.str.4
	.asciz	"Unrecognised feature requested"

	.no_dead_strip	_parse_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_features
_parse_features:                        ; @parse_features
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x23, [x0, #8]
	str	wzr, [x3]
	cbz	w1, LBB0_4
; %bb.1:
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x0, [x2]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #11
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.2:
	sub	w8, w22, #1
	ldr	w9, [x19]
	add	w9, w9, #1
	str	w9, [x19]
	ldr	w9, [sp, #12]
	cmp	w9, w8
	b.ls	LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, l_.str.2@PAGE
Lloh3:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_4:
	mov	w0, #0
	b	LBB0_9
LBB0_5:
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldr	x1, [x21, #8]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.7:
Lloh8:
	adrp	x8, l_.str.4@PAGE
Lloh9:
	add	x8, x8, l_.str.4@PAGEOFF
LBB0_8:
	str	x8, [x23]
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
Lloh13:
	adrp	x8, _DM_RAID1_HANDLE_ERRORS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DM_RAID1_HANDLE_ERRORS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u%c"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid number of features"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Not enough arguments to support feature count"

l_.str.3:                               ; @.str.3
	.asciz	"handle_errors"

	.comm	_DM_RAID1_HANDLE_ERRORS,4,2     ; @DM_RAID1_HANDLE_ERRORS
l_.str.4:                               ; @.str.4
	.asciz	"Unrecognised feature requested"

	.no_dead_strip	_parse_features
.subsections_via_symbols
