	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nd_region_create_ns_seed       ## -- Begin function nd_region_create_ns_seed
	.p2align	4, 0x90
_nd_region_create_ns_seed:              ## @nd_region_create_ns_seed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_is_nvdimm_bus_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	%rbx, %rdi
	callq	_nd_region_to_nstype
	movq	_ND_DEVICE_NAMESPACE_IO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, %rdi
	callq	_is_nd_blk
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	callq	_nd_namespace_blk_create
	jmp	LBB0_4
LBB0_3:
	callq	_nd_namespace_pmem_create
LBB0_4:
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nd_device_register             ## TAILCALL
LBB0_7:
	movq	%r14, %rdi
	callq	_is_nd_blk
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ND_DEVICE_NAMESPACE_IO,8,3     ## @ND_DEVICE_NAMESPACE_IO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create %s namespace\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"pmem"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nd_region_create_ns_seed       ; -- Begin function nd_region_create_ns_seed
	.p2align	2
_nd_region_create_ns_seed:              ; @nd_region_create_ns_seed
	.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
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_is_nvdimm_bus_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	mov	x0, x20
	bl	_nd_region_to_nstype
Lloh0:
	adrp	x8, _ND_DEVICE_NAMESPACE_IO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ND_DEVICE_NAMESPACE_IO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x19
	bl	_is_nd_blk
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_nd_namespace_blk_create
	str	w0, [x20]
	cbz	w0, LBB0_6
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nd_device_register
LBB0_5:
	mov	x0, x20
	bl	_nd_namespace_pmem_create
	str	w0, [x20]
	cbnz	w0, LBB0_4
LBB0_6:
	mov	x0, x19
	bl	_is_nd_blk
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x2, x9, x8, eq
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ND_DEVICE_NAMESPACE_IO,8,3     ; @ND_DEVICE_NAMESPACE_IO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create %s namespace\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"pmem"

.subsections_via_symbols
