	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_named_array
_add_named_array:                       ## @add_named_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_strlen
	movl	%eax, %r12d
	movq	_DISK_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movslq	%r12d, %rax
	leal	1(%rax), %edx
	movq	%rax, %rcx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	subq	$1, %rcx
	jb	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	%edx
	cmpb	$10, -1(%rbx,%rax)
	movq	%rcx, %rax
	je	LBB0_1
## %bb.4:
	cmpl	%r15d, %edx
	jge	LBB0_5
LBB0_6:
	incl	%edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strlcpy
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_9
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_2:
	xorl	%edx, %edx
	cmpl	%r15d, %edx
	jl	LBB0_6
LBB0_5:
	movq	_E2BIG@GOTPCREL(%rip), %rcx
LBB0_14:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_md_alloc
	jmp	LBB0_15
LBB0_9:
	movsbl	2(%r14), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	addq	$2, %r14
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movq	-48(%rbp), %rsi
	movq	_MINORMASK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	ja	LBB0_13
## %bb.12:
	movq	_MD_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MKDEV
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_md_alloc
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DISK_NAME_LEN,4,2              ## @DISK_NAME_LEN
	.comm	_E2BIG,4,2                      ## @E2BIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md_"

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

	.comm	_MINORMASK,8,3                  ## @MINORMASK
	.comm	_MD_MAJOR,4,2                   ## @MD_MAJOR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_add_named_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_named_array
_add_named_array:                       ; @add_named_array
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
Lloh3:
	adrp	x8, _DISK_NAME_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DISK_NAME_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x19, x9, x10
	mov	sp, x19
	sxtw	x10, w0
	add	w9, w0, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x10, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x11, x20, x10
	sub	x10, x10, #1
	ldurb	w11, [x11, #-1]
	sub	w9, w9, #1
	cmp	w11, #10
	b.eq	LBB0_1
; %bb.3:
	cmp	w9, w8
	b.ge	LBB0_8
LBB0_4:
	add	w2, w9, #1
	mov	x0, x19
	mov	x1, x20
	bl	_strlcpy
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_12
; %bb.5:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #2
	bl	_strncmp
	cbz	x0, LBB0_13
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	w9, #0
	cmp	w9, w8
	b.lt	LBB0_4
LBB0_8:
Lloh14:
	adrp	x8, _E2BIG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldur	x8, [x29, #-24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.11:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x1, x19
	bl	_md_alloc
	b	LBB0_10
LBB0_13:
	ldrsb	w0, [x19, #2]!
	bl	_isdigit
	cbz	x0, LBB0_6
; %bb.14:
	sub	x2, x29, #32
	mov	x0, x19
	mov	w1, #10
	bl	_kstrtoul
	cbnz	x0, LBB0_6
; %bb.15:
	ldur	x1, [x29, #-32]
Lloh19:
	adrp	x8, _MINORMASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MINORMASK@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x1, x8
	b.hi	LBB0_6
; %bb.16:
Lloh22:
	adrp	x8, _MD_MAJOR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MD_MAJOR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_MKDEV
	mov	x1, #0
	bl	_md_alloc
	b	LBB0_10
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DISK_NAME_LEN,4,2              ; @DISK_NAME_LEN
	.comm	_E2BIG,4,2                      ; @E2BIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md_"

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

	.comm	_MINORMASK,8,3                  ; @MINORMASK
	.comm	_MD_MAJOR,4,2                   ; @MD_MAJOR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_add_named_array
.subsections_via_symbols
