	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nd_namespace_store             ## -- Begin function nd_namespace_store
	.p2align	4, 0x90
_nd_namespace_store:                    ## @nd_namespace_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	%rdi, %r15
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	jmp	LBB0_27
LBB0_2:
	movq	%rcx, %rbx
	movq	%rsi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rdx, %rdi
	movq	%rcx, %rsi
	movl	%eax, %edx
	callq	_kstrndup
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_strim
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$9, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_26
LBB0_7:
	movq	(%r12), %r13
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	testq	%r13, %r13
	je	LBB0_11
## %bb.10:
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_dev_name
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	jmp	LBB0_26
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_27
LBB0_8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nd_detach_and_reset
	jmp	LBB0_26
LBB0_11:
	movq	(%r15), %rdi
	movq	_namespace_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_device_find_child
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %rdi
	callq	_to_ndns
	movq	%rax, %r13
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_17
## %bb.14:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_15:
	movq	%r15, %rdi
	callq	_is_nd_btt
	jmp	LBB0_16
LBB0_12:
	movq	(%r15), %rdi
	callq	_dev_name
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	jmp	LBB0_26
LBB0_18:
	movq	%r15, %rdi
	callq	_is_nd_pfn
	jmp	LBB0_16
LBB0_19:
	movq	%r15, %rdi
	callq	_is_nd_dax
LBB0_16:
	testl	%eax, %eax
	je	LBB0_17
LBB0_20:
	movq	%r13, %rdi
	callq	___nvdimm_namespace_capacity
	movq	_SZ_16M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_22
## %bb.21:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_17:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_22:
	movq	%r15, %rdi
	callq	_is_nvdimm_bus_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	___nd_attach_ndns
	testl	%eax, %eax
	jne	LBB0_25
## %bb.23:
	leaq	4(%r13), %rdi
	callq	_dev_name
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_24:
	subq	(%rax), %rbx
LBB0_25:
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_put_device
LBB0_26:
	movq	%r14, %rdi
	callq	_kfree
LBB0_27:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_20
	.long	L0_0_set_19
	.long	L0_0_set_15
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"namespace already active\n"

	.comm	_EBUSY,8,3                      ## @EBUSY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,8,3                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"namespace"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_EINVAL,8,3                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"namespace already set to: %s\n"

	.comm	_namespace_match,4,2            ## @namespace_match
L_.str.4:                               ## @.str.4
	.asciz	"'%s' not found under %s\n"

	.comm	_ENODEV,8,3                     ## @ENODEV
	.comm	_SZ_16M,8,3                     ## @SZ_16M
L_.str.5:                               ## @.str.5
	.asciz	"%s too small to host\n"

	.comm	_ENXIO,8,3                      ## @ENXIO
L_.str.6:                               ## @.str.6
	.asciz	"%s already claimed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nd_namespace_store             ; -- Begin function nd_namespace_store
	.p2align	2
_nd_namespace_store:                    ; @nd_namespace_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	x21, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	x8, [x8]
	neg	x20, x8
	b	LBB0_28
LBB0_3:
	mov	x20, x3
	mov	x22, x1
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	mov	x0, x2
	mov	x1, x3
	mov	x2, x8
	bl	_kstrndup
	cbz	x0, LBB0_11
; %bb.4:
	mov	x19, x0
	bl	_strim
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #9
	bl	_strncmp
	cbz	x0, LBB0_7
; %bb.5:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	ldr	x23, [x22]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.8:
	cbz	x23, LBB0_13
; %bb.9:
	add	x0, x23, #4
	bl	_dev_name
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh17:
	adrp	x8, _EBUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_10:
	ldr	x8, [x8]
	neg	x20, x8
	b	LBB0_27
LBB0_11:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_12:
	mov	x0, x21
	mov	x1, x22
	bl	_nd_detach_and_reset
	b	LBB0_27
LBB0_13:
	ldr	x0, [x21]
Lloh21:
	adrp	x8, _namespace_match@GOTPAGE
Lloh22:
	ldr	x8, [x8, _namespace_match@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_device_find_child
	cbz	x0, LBB0_17
; %bb.14:
	bl	_to_ndns
	mov	x23, x0
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_24
; %bb.15:
Lloh24:
	adrp	x9, lJTI0_0@PAGE
Lloh25:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_16
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_16:
	mov	x0, x21
	bl	_is_nd_btt
	cbnz	w0, LBB0_20
	b	LBB0_24
LBB0_17:
	ldr	x0, [x21]
	bl	_dev_name
	stp	x19, x0, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh28:
	adrp	x8, _ENODEV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
LBB0_18:
	mov	x0, x21
	bl	_is_nd_pfn
	cbnz	w0, LBB0_20
	b	LBB0_24
LBB0_19:
	mov	x0, x21
	bl	_is_nd_dax
	cbz	w0, LBB0_24
LBB0_20:
	mov	x0, x23
	bl	___nvdimm_namespace_capacity
Lloh30:
	adrp	x8, _SZ_16M@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SZ_16M@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_22
; %bb.21:
	str	x19, [sp]
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh35:
	adrp	x8, _ENXIO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_25
LBB0_22:
	mov	x0, x21
	bl	_is_nvdimm_bus_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	___nd_attach_ndns
	cbnz	w0, LBB0_26
; %bb.23:
	add	x0, x23, #4
	bl	_dev_name
	str	x0, [sp]
Lloh37:
	adrp	x1, l_.str.6@PAGE
Lloh38:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_24:
Lloh39:
	adrp	x8, _EBUSY@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_25:
	ldr	x8, [x8]
	neg	x20, x8
LBB0_26:
	add	x0, x23, #4
	bl	_put_device
LBB0_27:
	mov	x0, x19
	bl	_kfree
LBB0_28:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_18-LBB0_16)>>2
	.byte	(LBB0_20-LBB0_16)>>2
	.byte	(LBB0_19-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"namespace already active\n"

	.comm	_EBUSY,8,3                      ; @EBUSY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,8,3                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"namespace"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_EINVAL,8,3                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"namespace already set to: %s\n"

	.comm	_namespace_match,4,2            ; @namespace_match
l_.str.4:                               ; @.str.4
	.asciz	"'%s' not found under %s\n"

	.comm	_ENODEV,8,3                     ; @ENODEV
	.comm	_SZ_16M,8,3                     ; @SZ_16M
l_.str.5:                               ; @.str.5
	.asciz	"%s too small to host\n"

	.comm	_ENXIO,8,3                      ; @ENXIO
l_.str.6:                               ; @.str.6
	.asciz	"%s already claimed\n"

.subsections_via_symbols
