	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_cookie_show
_set_cookie_show:                       ## @set_cookie_show
	.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, %r14
	movq	%rdi, %r12
	callq	_to_nd_region
	movq	%rax, %r15
	movq	16(%rax), %r13
	movq	%r12, %rdi
	callq	_is_memory
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	testq	%r13, %r13
	je	LBB0_5
## %bb.2:
	movq	%r12, %rdi
	callq	_nd_device_lock
	movq	%r12, %rdi
	callq	_nvdimm_bus_lock
	movq	%r12, %rdi
	callq	_wait_nvdimm_bus_probe_idle
	cmpq	$0, 8(%r15)
	je	LBB0_7
## %bb.3:
	movq	(%r15), %rdi
	callq	_to_ndd
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	(%rax), %esi
	movq	%rax, %rdi
	callq	_to_namespace_index
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_nd_region_interleave_set_cookie
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_sprintf
	movq	%rax, %rbx
	jmp	LBB0_8
LBB0_5:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_9
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%r12, %rdi
	callq	_nvdimm_bus_unlock
	movq	%r12, %rdi
	callq	_nd_device_unlock
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,8,3                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%#llx\n"

	.no_dead_strip	_set_cookie_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_cookie_show
_set_cookie_show:                       ; @set_cookie_show
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x0
	bl	_to_nd_region
	mov	x21, x0
	ldr	x22, [x0, #16]
	mov	x0, x20
	bl	_is_memory
	cbz	x0, LBB0_5
; %bb.1:
	cbz	x22, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_nd_device_lock
	mov	x0, x20
	bl	_nvdimm_bus_lock
	mov	x0, x20
	bl	_wait_nvdimm_bus_probe_idle
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x0, [x21]
	bl	_to_ndd
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w1, [x0]
	bl	_to_namespace_index
	mov	x1, x0
	mov	x0, x21
	bl	_nd_region_interleave_set_cookie
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	mov	x21, x0
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x21, x8
	b	LBB0_8
LBB0_6:
	mov	x21, #0
LBB0_7:
	mov	x0, x20
	bl	_nvdimm_bus_unlock
	mov	x0, x20
	bl	_nd_device_unlock
	cbz	x21, LBB0_9
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w2, [x22]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sprintf
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,8,3                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%#llx\n"

	.no_dead_strip	_set_cookie_show
.subsections_via_symbols
