	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function to_nd_device_type
_to_nd_device_type:                     ## @to_nd_device_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_is_nvdimm
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ND_DEVICE_DIMM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	%rbx, %rdi
	callq	_is_memory
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ND_DEVICE_REGION_PMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, %rdi
	callq	_is_nd_blk
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ND_DEVICE_REGION_BLK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_is_nd_dax
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	_ND_DEVICE_DAX_PMEM@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	movl	(%rbx), %edi
	callq	_is_nd_region
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%rbx), %edi
	callq	_to_nd_region
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_nd_region_to_nstype            ## TAILCALL
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ND_DEVICE_DIMM,4,2             ## @ND_DEVICE_DIMM
	.comm	_ND_DEVICE_REGION_PMEM,4,2      ## @ND_DEVICE_REGION_PMEM
	.comm	_ND_DEVICE_REGION_BLK,4,2       ## @ND_DEVICE_REGION_BLK
	.comm	_ND_DEVICE_DAX_PMEM,4,2         ## @ND_DEVICE_DAX_PMEM
	.no_dead_strip	_to_nd_device_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function to_nd_device_type
_to_nd_device_type:                     ; @to_nd_device_type
	.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	x19, x0
	bl	_is_nvdimm
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ND_DEVICE_DIMM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ND_DEVICE_DIMM@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	x0, x19
	bl	_is_memory
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _ND_DEVICE_REGION_PMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ND_DEVICE_REGION_PMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	bl	_is_nd_blk
	cbz	x0, LBB0_6
; %bb.5:
Lloh4:
	adrp	x8, _ND_DEVICE_REGION_BLK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ND_DEVICE_REGION_BLK@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_is_nd_dax
	cbz	x0, LBB0_10
; %bb.7:
Lloh6:
	adrp	x8, _ND_DEVICE_DAX_PMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ND_DEVICE_DAX_PMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w0, [x19]
	bl	_is_nd_region
	cbz	x0, LBB0_9
; %bb.11:
	ldr	w0, [x19]
	bl	_to_nd_region
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nd_region_to_nstype
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ND_DEVICE_DIMM,4,2             ; @ND_DEVICE_DIMM
	.comm	_ND_DEVICE_REGION_PMEM,4,2      ; @ND_DEVICE_REGION_PMEM
	.comm	_ND_DEVICE_REGION_BLK,4,2       ; @ND_DEVICE_REGION_BLK
	.comm	_ND_DEVICE_DAX_PMEM,4,2         ; @ND_DEVICE_DAX_PMEM
	.no_dead_strip	_to_nd_device_type
.subsections_via_symbols
