	.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), %r12
	movl	$0, (%rcx)
	xorl	%eax, %eax
	testl	%esi, %esi
	je	LBB0_16
## %bb.1:
	movq	%rcx, %r13
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	(%rdx), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-41(%rbp), %rcx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.3:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	incl	(%r13)
	decl	%ebx
	movl	-48(%rbp), %r14d
	cmpl	%ebx, %r14d
	jbe	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_15
LBB0_2:
	leaq	L_.str.1(%rip), %rax
LBB0_15:
	movq	%rax, (%r12)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_11
## %bb.6:
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rcx), %eax
	orl	%eax, (%r15)
	incl	(%r13)
	incq	%r12
	cmpl	%r12d, %r14d
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax,%r12,8), %rbx
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	movq	_DM_RAID1_HANDLE_ERRORS@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	movq	_DM_RAID1_KEEP_LOG@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	leaq	L_.str.5(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	%r15, %rdi
	callq	_errors_handled
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_13:
	movq	%r15, %rdi
	callq	_keep_log
	testq	%rax, %rax
	movl	$0, %eax
	je	LBB0_16
## %bb.14:
	leaq	L_.str.6(%rip), %rax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_15
	.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	"keep_log"

	.comm	_DM_RAID1_KEEP_LOG,4,2          ## @DM_RAID1_KEEP_LOG
L_.str.5:                               ## @.str.5
	.asciz	"Unrecognised feature requested"

L_.str.6:                               ## @.str.6
	.asciz	"keep_log feature requires the handle_errors feature"

	.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, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x24, [x0, #8]
	str	wzr, [x3]
	cbz	w1, LBB0_13
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, 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_4
; %bb.2:
	sub	w8, w22, #1
	ldr	w9, [x20]
	add	w9, w9, #1
	str	w9, [x20]
	ldr	w26, [sp, #12]
	cmp	w26, w8
	b.ls	LBB0_6
; %bb.3:
Lloh2:
	adrp	x25, l_.str.2@PAGE
Lloh3:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x25, l_.str.1@PAGE
Lloh5:
	add	x25, x25, l_.str.1@PAGEOFF
LBB0_5:
	str	x25, [x24]
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_6:
	cbz	w26, LBB0_12
; %bb.7:
	add	x27, x21, #8
Lloh9:
	adrp	x21, l_.str.3@PAGE
Lloh10:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh11:
	adrp	x22, l_.str.4@PAGE
Lloh12:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh13:
	adrp	x28, _DM_RAID1_KEEP_LOG@GOTPAGE
Lloh14:
	ldr	x28, [x28, _DM_RAID1_KEEP_LOG@GOTPAGEOFF]
Lloh15:
	adrp	x25, l_.str.5@PAGE
Lloh16:
	add	x25, x25, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
Lloh17:
	adrp	x8, _DM_RAID1_HANDLE_ERRORS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DM_RAID1_HANDLE_ERRORS@GOTPAGEOFF]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	add	x27, x27, #8
	subs	w26, w26, #1
	b.eq	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x27]
	mov	x0, x21
	mov	x1, x23
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_strcmp
	mov	x8, x28
	cbz	w0, LBB0_9
	b	LBB0_5
LBB0_12:
	mov	x0, x19
	bl	_errors_handled
	cbz	w0, LBB0_15
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	mov	x0, x19
	bl	_keep_log
	cbz	x0, LBB0_14
; %bb.16:
Lloh19:
	adrp	x25, l_.str.6@PAGE
Lloh20:
	add	x25, x25, l_.str.6@PAGEOFF
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.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	"keep_log"

	.comm	_DM_RAID1_KEEP_LOG,4,2          ; @DM_RAID1_KEEP_LOG
l_.str.5:                               ; @.str.5
	.asciz	"Unrecognised feature requested"

l_.str.6:                               ; @.str.6
	.asciz	"keep_log feature requires the handle_errors feature"

	.no_dead_strip	_parse_features
.subsections_via_symbols
