	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function metadata_store
LCPI0_0:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	90                              ## 0x5a
LCPI0_1:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	90                              ## 0x5a
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_metadata_store:                        ## @metadata_store
	.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	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_mddev_lock
	testl	%eax, %eax
	jne	LBB0_20
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	$0, (%r15)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$9, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	leaq	24(%r15), %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_17
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cmd_match
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,0,90]
LBB0_6:
	movups	%xmm0, (%r15)
LBB0_7:
	movq	%r15, %rdi
	callq	_mddev_unlock
	jmp	LBB0_19
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$9, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_21
## %bb.9:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	-48(%rbp), %r13
	cmpq	%rbx, %r13
	je	LBB0_17
## %bb.10:
	cmpb	$46, (%r13)
	jne	LBB0_17
## %bb.11:
	movl	%eax, %ebx
	incq	%r13
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	-48(%rbp), %rcx
	cmpq	%r13, %rcx
	je	LBB0_17
## %bb.12:
	movb	(%rcx), %cl
	cmpb	$10, %cl
	je	LBB0_14
## %bb.13:
	testb	%cl, %cl
	jne	LBB0_17
LBB0_14:
	movl	%eax, %r13d
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_super_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_17
## %bb.15:
	movl	%ebx, %ecx
	movq	_super_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_17
## %bb.16:
	movl	%ebx, 8(%r15)
	movl	%r13d, 12(%r15)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%r15)
	jmp	LBB0_7
LBB0_17:
	movq	%r15, %rdi
	callq	_mddev_unlock
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.18:
	negl	%r14d
	movq	%r14, %r12
LBB0_19:
	movl	%r12d, %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	leaq	-9(%r12), %rax
	cmpq	$7, %rax
	movl	$7, %r14d
	cmovbq	%rax, %r14
	movq	16(%r15), %rdi
	addq	$9, %rbx
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_strncpy
	movq	16(%r15), %rax
	movb	$0, (%rax,%r14)
	testq	%r14, %r14
	je	LBB0_24
## %bb.22:
	movq	16(%r15), %rax
	cmpb	$10, -1(%r14,%rax)
	jne	LBB0_24
## %bb.23:
	movb	$0, -1(%rax,%r14)
LBB0_24:
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [1,0,0,90]
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"external:"

L_.str.1:                               ## @.str.1
	.asciz	"none"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_super_types,8,3                ## @super_types
	.no_dead_strip	_metadata_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function metadata_store
lCPI0_0:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	90                              ; 0x5a
lCPI0_2:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	90                              ; 0x5a
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_metadata_store:                        ; @metadata_store
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_mddev_lock
	cbnz	w0, LBB0_20
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	ldr	w8, [x20]
	cbz	w8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #9
	bl	_strncmp
	cbz	x0, LBB0_4
LBB0_3:
	add	x0, x20, #24
	bl	_list_empty
	cbz	w0, LBB0_17
LBB0_4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_cmd_match
	cbz	x0, LBB0_8
; %bb.5:
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
LBB0_6:
	str	q0, [x20]
LBB0_7:
	mov	x0, x20
	bl	_mddev_unlock
	b	LBB0_19
LBB0_8:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #9
	bl	_strncmp
	cbz	x0, LBB0_21
; %bb.9:
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #10
	bl	_simple_strtoul
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w24, [x8]
	ldr	x8, [sp, #8]
	cmp	x8, x21
	b.eq	LBB0_17
; %bb.10:
	ldrb	w9, [x8]
	cmp	w9, #46
	b.ne	LBB0_17
; %bb.11:
	mov	x22, x0
	add	x23, x8, #1
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #10
	bl	_simple_strtoul
	ldr	x8, [sp, #8]
	cmp	x8, x23
	b.eq	LBB0_17
; %bb.12:
	mov	x21, x0
	ldrb	w8, [x8]
	cmp	w8, #10
	b.eq	LBB0_14
; %bb.13:
	cbnz	w8, LBB0_17
LBB0_14:
Lloh14:
	adrp	x8, _ENOENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh16:
	ldr	w24, [x8]
Lloh17:
	adrp	x23, _super_types@GOTPAGE
Lloh18:
	ldr	x23, [x23, _super_types@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.ge	LBB0_17
; %bb.15:
	ldr	x8, [x23]
	ldr	x8, [x8, w22, sxtw #3]
	cbz	x8, LBB0_17
; %bb.16:
	stp	w22, w21, [x20, #8]
Lloh19:
	adrp	x8, lCPI0_1@PAGE
Lloh20:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x20]
	b	LBB0_7
LBB0_17:
	mov	x0, x20
	bl	_mddev_unlock
	cbz	w24, LBB0_19
; %bb.18:
	neg	w19, w24
LBB0_19:
	mov	x0, x19
LBB0_20:
	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_21:
	sub	x8, x19, #9
	mov	w9, #7
	cmp	x8, #7
	csel	x22, x8, x9, lo
	ldr	x0, [x20, #16]
	add	x1, x21, #9
	mov	x2, x22
	bl	_strncpy
	ldr	x8, [x20, #16]
	strb	wzr, [x8, x22]
	cbz	x22, LBB0_24
; %bb.22:
	ldr	x8, [x20, #16]
	sub	x9, x22, #1
	ldrb	w10, [x8, x9]
	cmp	w10, #10
	b.ne	LBB0_24
; %bb.23:
	strb	wzr, [x8, x9]
LBB0_24:
Lloh21:
	adrp	x8, lCPI0_2@PAGE
Lloh22:
	ldr	q0, [x8, lCPI0_2@PAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdr	Lloh19, Lloh20
	.loh AdrpLdr	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"external:"

l_.str.1:                               ; @.str.1
	.asciz	"none"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_super_types,8,3                ; @super_types
	.no_dead_strip	_metadata_store
.subsections_via_symbols
