	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nd_region_to_nstype            ## -- Begin function nd_region_to_nstype
	.p2align	4, 0x90
_nd_region_to_nstype:                   ## @nd_region_to_nstype
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_is_memory
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	movq	_NDD_ALIASING@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	movl	(%r14), %edi
	callq	_test_bit
	cmpq	$1, %rax
	sbbq	$-1, %r12
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_3
## %bb.4:
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:
	movq	_ND_DEVICE_NAMESPACE_PMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_ND_DEVICE_NAMESPACE_IO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	%r14, %rdi
	callq	_is_nd_blk
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.8:
	movq	_ND_DEVICE_NAMESPACE_BLK@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NDD_ALIASING,4,2               ## @NDD_ALIASING
	.comm	_ND_DEVICE_NAMESPACE_PMEM,4,2   ## @ND_DEVICE_NAMESPACE_PMEM
	.comm	_ND_DEVICE_NAMESPACE_IO,4,2     ## @ND_DEVICE_NAMESPACE_IO
	.comm	_ND_DEVICE_NAMESPACE_BLK,4,2    ## @ND_DEVICE_NAMESPACE_BLK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nd_region_to_nstype            ; -- Begin function nd_region_to_nstype
	.p2align	2
_nd_region_to_nstype:                   ; @nd_region_to_nstype
	.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, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_is_memory
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x21, #0
	mov	x20, #0
Lloh0:
	adrp	x22, _NDD_ALIASING@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NDD_ALIASING@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x1, [x8, x21, lsl #3]
	ldr	w0, [x22]
	bl	_test_bit
	cmp	x0, #0
	cinc	x20, x20, ne
	add	x21, x21, #1
	ldr	x8, [x19]
	cmp	x21, x8
	b.lo	LBB0_3
; %bb.4:
	cbz	x20, LBB0_7
; %bb.5:
Lloh2:
	adrp	x8, _ND_DEVICE_NAMESPACE_PMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ND_DEVICE_NAMESPACE_PMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_is_nd_blk
Lloh4:
	adrp	x8, _ND_DEVICE_NAMESPACE_BLK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ND_DEVICE_NAMESPACE_BLK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, wzr, w8, eq
	b	LBB0_9
LBB0_7:
Lloh7:
	adrp	x8, _ND_DEVICE_NAMESPACE_IO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ND_DEVICE_NAMESPACE_IO@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NDD_ALIASING,4,2               ; @NDD_ALIASING
	.comm	_ND_DEVICE_NAMESPACE_PMEM,4,2   ; @ND_DEVICE_NAMESPACE_PMEM
	.comm	_ND_DEVICE_NAMESPACE_IO,4,2     ; @ND_DEVICE_NAMESPACE_IO
	.comm	_ND_DEVICE_NAMESPACE_BLK,4,2    ; @ND_DEVICE_NAMESPACE_BLK
.subsections_via_symbols
