	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uuid_store
_uuid_store:                            ## @uuid_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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_nd_region
	movq	%rax, %r12
	movq	$0, -48(%rbp)
	movq	%rbx, %rdi
	callq	_is_namespace_pmem
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_to_nd_namespace_pmem
	jmp	LBB0_4
LBB0_2:
	callq	_is_namespace_blk
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_to_nd_namespace_blk
LBB0_4:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_nd_device_lock
	movq	%rbx, %rdi
	callq	_nvdimm_bus_lock
	movq	%rbx, %rdi
	callq	_wait_nvdimm_bus_probe_idle
	movq	%rbx, %rdi
	callq	_to_ndns
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_nd_uuid_store
	movq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rcx
	callq	_namespace_update_uuid
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_nd_namespace_label_update
	cmpb	$10, -1(%r14,%r15)
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %r8
	cmoveq	%rcx, %r8
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	movq	%r15, %rcx
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_nvdimm_bus_unlock
	movq	%rbx, %rdi
	callq	_nd_device_unlock
LBB0_5:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,8,3                      ## @ENXIO
	.comm	_EBUSY,8,3                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"result: %zd wrote: %s%s"

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

L_.str.2:                               ## @.str.2
	.asciz	"\n"

	.no_dead_strip	_uuid_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uuid_store
_uuid_store:                            ; @uuid_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, x3
	mov	x21, x2
	mov	x20, x0
	ldr	w0, [x0]
	bl	_to_nd_region
	mov	x22, x0
	str	xzr, [sp, #8]
	mov	x0, x20
	bl	_is_namespace_pmem
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_to_nd_namespace_pmem
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_is_namespace_blk
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_to_nd_namespace_blk
LBB0_4:
	mov	x23, x0
	mov	x0, x20
	bl	_nd_device_lock
	mov	x0, x20
	bl	_nvdimm_bus_lock
	mov	x0, x20
	bl	_wait_nvdimm_bus_probe_idle
	mov	x0, x20
	bl	_to_ndns
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	mov	x3, x19
	bl	_nd_uuid_store
	ldr	x2, [sp, #8]
	mov	x0, x22
	mov	x1, x20
	mov	x3, x23
	bl	_namespace_update_uuid
	mov	x0, x22
	mov	x1, x20
	bl	_nd_namespace_label_update
	mov	x2, x0
	add	x8, x19, x21
	ldurb	w8, [x8, #-1]
Lloh0:
	adrp	x9, l_.str.2@PAGE
Lloh1:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh2:
	adrp	x10, l_.str.1@PAGE
Lloh3:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #10
	csel	x4, x10, x9, eq
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_dev_dbg
	mov	x0, x20
	bl	_nvdimm_bus_unlock
	mov	x0, x20
	bl	_nd_device_unlock
LBB0_5:
	mov	x0, x19
	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_6:
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_5
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,8,3                      ; @ENXIO
	.comm	_EBUSY,8,3                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"result: %zd wrote: %s%s"

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

l_.str.2:                               ; @.str.2
	.asciz	"\n"

	.no_dead_strip	_uuid_store
.subsections_via_symbols
